Now, you are getting something from the Mini Board which you can interpret looking at the User Manual.
What does happen when you connect the RxD line with Mini Board?
Now, you are getting something from the Mini Board which you can interpret looking at the User Manual.
What does happen when you connect the RxD line with Mini Board?
When I connect the RxD to the Mini Board the Engine Software says "ECU not connected to COM5"
This Time I disconnected the Level shifter.
And when I connect only pin 11 (configured to be Rx on arduino) to the Tx Pin on the MiniBoard I get the following:
But as soon as I connect pin 10 as well to the Rx of the mini Board I again get the same message from engine software "ECU not connected to COM5?
So, leave the system in the working condition as per post #44 and try to interpret the message that you are getting on the SM.
Hey but what use is only getting input? I want to send commands also.
The Engine Window is opened separately. I just place it side by side on the Arduino IDE
Connect RXD line. Read User Manual and see for command and the corresponding response. Disconnect PC's connection with the Mini Board and not with the UNO.
Show me a valid command and the corresponding response; I will try to provide codes for it.
Hey I just checked the voltage across the Tx and Gnd and across the Rx and Gnd. They are 3.73 and 3.6V.
Could this be a problem with the 3.3V level converter?
@GolamMostafa I have made some progress. Here are the results.
I connect the Tx pin of the MiniBoard to the Level converter as shown in your post. Which is connected to the Rx pin of the arduino uno (pin 11 in my case)
Using this I am able to read the data. It looks like this:
I made a small change to the code to read the data in the format that the manual specifies. (See examples at the end).
This is working fine it seems.
But the problem arises when I connect the Rx pin of the Mini Board as well. That is connected to the Tx pin of the arduino uno (pin 10).
As soon as I connect that I get the following message:
Why would this be happening? What can I do to correct this?
The commands that I want to send are also listed in the Manual attached in my previous post.
Congratulation! Good work!!
Its still not working though. (Only partially working. I am only able to receive data).
Please refer post#50 for the problem.
As I said you --
Disconnect the PC from the Mini Board and keep only the PC, Arduino, ECU, and Mini Board. Now try to send command to the ECU via Mini Board and Arduino.
TX-line of Mini Board/ECU can drive two devices simultaneously.
It is with the RX-line of the Mini Board, which cannot be connected with TX-line of two devices as by default (when there is no transmission) the TX-line remains at HIGH state. As a result, command sent by either of the two devices can't be accepted by the Mini Board. This is my analysis.
@GolamMostafa The PC was never connected to the MiniBoard! As I have tried to show in the earlier images. Please refer post #23
But you said (in one of your posts) that the Mini Board is not detected when you connect the RxD line. Therefore, to detect the Mini Board you have to connect it with PC using USB Port. How do you connect the PC with the Mini Board when you have only one asynTTL Port in the Mini Board (bottom picture of post #23)? The matter is confusing to me!
I asked for a typical command/response from the user manual which you have not suppled.
@GolamMostafa From post #23. The ECU is not detected when the Rx line of the MiniBoard is connected to the Tx of the arduino uno. The PC is connected to the arduino. The arduino is connected to the Mini Board and the MiniBoard is then connected to the ECU. So I am trying to get the data from the ECU to the MiniBoard to the Arduino which can then give that to the PC.
The structure of the MiniBoard can be found from the Images posted above or the Manual I have attached.
An example of a typical command:
Command: 1,RAC,1
Reply:
1,RAC,1
1,HS,OK,35000,568,1.32,11,30.1
(Examples of commands are given at the end of the manual)
This is the confusing area -- who will detect the presence of the ECU? Does ECU have communication lines? The post #23 does not say that.
@GolamMostafa Oh my god, huge blunder by me. I'll fix it in a minute. Thanks for pointing that out.
@GolamMostafa Here is the updated diagram.
This is a rational diagram. Disconnect the comm line between ECU and PC. Provide me a typical command/response from the user manual. I will try to code it for you and then see what happens.
Have you tried the above dialog?
@GolamMostafa Yes, but I tried with the PC connected to the ECU. When the PC was connected I was able to connect the Rx pin of the Arduino to the MiniBoard's Tx pin and was able to read the data. There was a continuous stream of replies of the form
1,HS,OK,3500,568,1.32,11,30.1
When I started up the software on the PC. This is shown in post #49.
But when I also connected the Tx pin (talking only about software serial ports) of the arduino to the Rx of the MiniBoard then I got the message "ECU not connected" as in post #50.
Therefore, I was never able to "send" a command from the serial port, was only able to read.
(Btw I respect your immense patience, I was totally ready for an angry message after I shared the new diagram)