Nissan Consult and Arduino

robtillaart - I'm pretty sure you are correct about it not actually initializing. After fiddling with it some last night, I don't think it actually looks for the correct response - it just looks for anything on the RX line. I started by plugging/unplugging the jumper wires that connected the RS232-TTL adapter to the arduino TX/RX lines and found that if I unplugged the RX line it and reset it would give the "failed to connect" message in the code. However - immediately upon connection it would say it was connected, without the TX/RX lights on either the adapter or the arduino flashing(or maybe they just flashed so fast I couldn't see it). It would then continue to say "Connected to ECU" and try to read the two programed values, but always return "could not read value" - even if I disconnected the lines. This morning I did some more fiddling and noticed that If I connected a female RS232-TTL adapter (not connected to anything else) to the male RS232-TTL adapter that is connected to the arduino, it would say it was connected to the ECU, even though it clearly isn't. Then I connected another arduino to the 2nd rs232-ttl adapter and used a software serial/hardware serial echo to send/receive the code from the consult arduino. (see pic) Using this method I confirmed that I can send junk to the consult unit (using the echo unit) and it will say that it's initialized. The info I guess I need to learn more about how this serial communication stuff works.

To answer your requests:
What works as expected -All the LCD stuff works as expected.
What works but not as expected - the initialize ecu line command/return. (as described above).
What does not work at all - everything else. Any time I try to send a command to the ECU using the above code have it send something back - i get nothing.

A1: I've not been able to read any register from the car using arduino- but I'm new to serial communication in hex. I can send to my LCD and the like, but it's reading the serial communications I'm not entirely clear on.

I have attempted switching TX/RX lines, nothing changed. I believe that the arduino TX should go to the adapter TX and the RX should go to the RX. This is based on the fact that if I change them i can't get it to say its connected.

Like I mentioned previously, the consult cable will work with a USB-Serial adapter and my laptop. I have not been able to find any open source software for the Consult Interface. Maybe I can use a serial sniffer program on the virtual serial port to see what the PC is sending/receiving over the serial port?

I'll do some research on what is needed for the sniffer program and logic analyzer for the arduino.