View Single Post
Old 07-30-2012, 10:21 AM   #800 (permalink)
njakts
EcoModding Lurker
 
Join Date: May 2010
Location: Latvia
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts
ok! success!

my obduino works with Elm327 and v193

Code:
 // ask protocol
  elm_command(str, PSTR("ATDPN\r"));
  // str[0] should be 'A' for automatic
  // set header to talk directly to ECU#1
  if(str[1]=='1')  // PWM
    elm_command(str, PSTR("ATSHE410F1\r"));
  else if(str[1]=='2')  // VPW
    elm_command(str, PSTR("ATSHA810F1\r"));
  else if(str[1]=='3')  // ISO 9141
    elm_command(str, PSTR("ATSH6810F1\r"));
  else if(str[1]=='6')  // CAN 11 bits
    elm_command(str, PSTR("ATSH7E0\r"));
  else if(str[1]=='7')  // CAN 29 bits
    elm_command(str, PSTR("ATSHDA10F1\r"));
had to uncomment this part to get it working...

now having problems with startup after eingne is been off. I think I will solve it with adding a delay on-off relay on power line

Last edited by njakts; 08-08-2012 at 02:42 AM..
  Reply With Quote