-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Year 2017+ Header doesn't parse #11
Comments
python-2.6.6 on CentOS 6, 2017 Zero FXS ./zero_log_parser.py 538XXBZ48HCJ08346_MBB_2017-11-04.bin I note that my VIN is at offset 0x252 and bike model at 0x26c I don't know Python well enough to debug; I'm better at Perl |
Does any one have a 2016 log file? It looks like the format was extended. There is a zeroed out chunk where the current code is looking for the VIN. As @adaviel points out, the VIN is at 0x252, not 0x240 as the current code expects. |
Here's a few sample logs of older files that should parse properly. |
And a few more 2017 samples |
2018 samples? |
My suspicion is the firmware revision changed and the log file parser needs to track the firmware version of the file. |
I'll double check but haven't seen any 2018 VINs yet. I don't think it's related to firmware version. My 2014, vin 03455 in the zip file above, has the latest firmware but still parses fine. You'll also notice that in 2015 or 2016 the .bin file sizes doubled from 128k to 256k. So there are definitely differences in the years beyond firmware. |
Here are some logs from a 2018 SR. |
Here are a 2019 DSR logs, the original converted and the way I manually modify the header so I can correctly parse the data in Keith Thomas' Google Sheets Visual Zero Log spreadsheet. |
I forgot about this issue, sorry. I did receive a 2019 log which I managed to parse reasonably well, but without an official decoding from Zero, I had to guess. Please try the latest log parser on these logs. I'll take time to re-test it myself now as well but might be delayed. |
Revised to handle firmware revision and model better: |
I have a similar issue with a 2022 FXE MBB log (reproduced with two of two different samples):
The BMS headers repeat as follows (looks ok to me):
Output test.py:
There's a third a third MBB*.bin in that directory where no FAIL was reported. Tested this, output seems ok except from Model and Initial date (model=FXE, logfile date is from 2022-08-25; bike was produced 2021-07):
|
The header section of the MBB files don't parse properly on 2017 (and presumably newer) VINs. The data in the file seems to parse ok but the header looks like this:
"
Zero MBB log
Serial number Z�tWR� ] sj421
VIN 20:12
Firmware rev. 1536
Board rev. 125
Model W
Printing 3925 of 3925 log entries..
Entry Time of Log Event Conditions
+--------+----------------------+--------------------------+----------------------------------
"
( none of the fields above show proper data - Serial number through Model
The text was updated successfully, but these errors were encountered: