Hello all
I've been working on a project that involves communicating with an ECU. From the ECU, i have TX RX (and i suppose a GND and VO black and red wire- not sure about this, no info about it) connected to arduino Serial1 (MEGA pins 18 and 19). From the little information i've got regarding the operation of the ECU, i know that it understands binary data.
The commands and requests follow a very specific data frame. A command usually has about 12 chars {{D20202D6}}, for example.
I'm having lot of problems communicating with the ECU, since i cannot get a proper answer from it and I was wondering where did I went wrong.
I just want to understand how arduino writes in the serialPort. Been reading about all the possibilities but after so much time, I guess I'm confused and don't know what else to do.
I want to perform a really simple test.
To send a command {{D20202D6}} and to read the answer out of Serial port in the proper format. How should i proceed?
I've tried Serial.write('{') and send byte per byte and i do have an answer, but It should follow the same specifications regarding startframe and end frame ( "{{" and "}}"). Not sure if the equipment is not working properly, or if I am.
Thanks!