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"));
#endif
after this my obduino started to work.
I had trouble with re-init after engine restart, so after each engine start I had to restart obduino to initialize again.