View Single Post
Old 12-23-2014, 04:57 AM   #837 (permalink)
Majl-ta
EcoModding Lurker
 
Join Date: Sep 2014
Location: Czech republik
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by yensen View Post
I've been absorbing a lot of information from this thread so I thought I'd share something that might help others with their 'init failed' problems. Within void iso_write_byte(byte b) change line "Serial.print(b);" to "Serial.write(b);".

Using the logic analyzer I could see with "print" it was sending 0x32 0x34 0x37 instead of the intended 0xF7 (as part of the init sequence). Changing to "write" fixed this and it was able to complete init. I suspect the newest Arduino IDE versions have a Serial function that performs differently than what was implemented back when this code was getting more focus. In other words "print" probably worked with older Arduino versions.

I'm working with Arduino 1.0.5, MC33290, 2002 VW TDI. Still not fully functional yet...
With the modifications that you specify the init sequence succeeds and Arduino connects to the car?
  Reply With Quote