VERY simple question
Posted: Tue 11. Nov 2014, 06:09
Hi there: I am using code written some years ago for monitoring CAN traffic on a Nissan Altima. We never had to send a telegram to the ECM (as a matter of fact we didn't WANT to send anything- dangerous if you make a mistake). Anyway, now I need to add OBD2 polling. I tried building the poll string, ala "m s 0x7df 2 1 0x10" (an OBD2 broadcast poll, requesting the value of the MAF sensor). But I didn't get any response. I noticed our original code used fgets to get a string. Now, fgets returns a pointer to a string ending in either a newline or EOF. So do I need to add a linefeed at the end of my string? (The documentation doesn't mention a termination character, so I didn't think I needed one.) Thanks!