getVIN method in firmware V4 datalogger
getVIN method in firmware V4 datalogger
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
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.
Changed line where p += 10 to p += 7.
Now getVIN method returns all 17 characters in buffer.
Re: getVIN method in firmware V4 datalogger
Thank you! I had the same issue.
Re: getVIN method in firmware V4 datalogger
Latest revision of library already has this fixed.