Page 1 of 1

getVIN method in firmware V4 datalogger

Posted: Sat Sep 03, 2016 5:19 am
by kengisi
Testing a Freematics ONE with a Freematics OBD-II emulator using the datalogger sketch as a base. The getVIN method is updating the buffer with the last 16 characters of a 17-character VIN. In other words, its returning "P0ZZZ99ZTS392124" instead of "WP0ZZZ99ZTS392124" as expected. I have tested the Freematics OBD-II emulator with an ODBLink MX adapter and the emulator is broadcasting the full 17-character VIN correctly. Am I missing something simple or is this a known bug?

Re: getVIN method in firmware V4 datalogger

Posted: Sat Sep 03, 2016 6:05 am
by kengisi
I updated the getVIN method in the FreematicsONE.cpp to correct the issue.

Changed line where p += 10 to p += 7.

Now getVIN method returns all 17 characters in buffer.

Re: getVIN method in firmware V4 datalogger

Posted: Wed Aug 23, 2017 8:12 pm
by 1am
Thank you! I had the same issue.

Re: getVIN method in firmware V4 datalogger

Posted: Wed Aug 30, 2017 11:42 pm
by stanley
Latest revision of library already has this fixed.