Quote:
Originally Posted by Magister
R110 use UART, it uses serialRead() and serialWrite(), for the 10400 baud. (For the 5 baud it still uses bit banging, I don't know if the UART works at 5 baud?)
The answer should be 55 08 08 for ISO9141, maybe your car talks ISO14230?
Anyway as you receive 88, you should send ~88 as the answer, try it?
|
I'm fairly new to the Arduino, all the examples I've seen use Serial.read() and Serial.print(), so the serialRead() and serialWrite() confused me. I see now that the software serial functions are different.
I tried using the UART for the 5 baud, it didn't seem to work. I looked at it on a 'scope, and it looked like the bit spacing was 5 baud, but the bit period was much shorter, so I went back to bit banging.
I have the BR-3 interface and software for my PC, it IDs the car as ISO9141, so that's what I've been trying.
I'll try inverting the 88 and sending it back to see what I get. It may be a few days before I can try it, but I'll post results here.
There's a question that I haven't been able to find an answer to, maybe you can help... Once the UART is initialized, you can't use digitalWrite on pin 1. Do you know if there's a function to disconnect the UART without directly manipulating the control register? I discovered that if my init fails, I can't retry without reseting the arduino.
Thanks,
Russ