View Single Post
Posts: 20 | Thanked: 3 times | Joined on Mar 2010
#238
Originally Posted by jlu View Post
Maybe something like this could help in libobd's obd-chan-elm.c after ATAT2 command and its response test and before sending "0101"

Code:
	if(obdchanelm_ssendcmd(chan, "ATSP0", 6)) { /* Set protocol to Automatic  */
		ret = OBDCHANERR_SETUP_ERROR;
		goto error;
	}

	if(!strstr(pelm->buffer, "OK"))
		LOG_WARNING("Unable to set ELM to use Automatic protocol");
The third parameter of obdchanelm_ssendcmd is a timeout, so a suitable value might have to be tested.
Jlu thanks for pointing out that.

Can you please tell me, which file in carman software or libobd's should be changed?
Where can I find that file, and how can I entre the commands you mentioned above?

As I am not expert like you, so I many need bit more guidance.

Cheers.