getVIN method in firmware V4 datalogger

Inquiry and support for Freematics products
Post Reply
kengisi
Posts: 2
Joined: Sat Sep 03, 2016 5:05 am

getVIN method in firmware V4 datalogger

Post 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?
kengisi
Posts: 2
Joined: Sat Sep 03, 2016 5:05 am

Re: getVIN method in firmware V4 datalogger

Post 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.
1am
Posts: 4
Joined: Wed Jul 05, 2017 4:35 pm

Re: getVIN method in firmware V4 datalogger

Post by 1am »

Thank you! I had the same issue.
stanley
Site Admin
Posts: 1018
Joined: Sat Mar 01, 2014 3:15 am

Re: getVIN method in firmware V4 datalogger

Post by stanley »

Latest revision of library already has this fixed.
Post Reply