ElectricMotorcycleForum.com

  • May 15, 2024, 06:39:46 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Electric Motorcycle Forum is live!

Pages: [1] 2

Author Topic: Zero Log Parsing for 2017+ models  (Read 997 times)

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Zero Log Parsing for 2017+ models
« on: February 22, 2020, 12:19:42 AM »

This is a technical assistance request for owners of Zero models in the S+DS and FX/FXS platforms made on or after 2017.


Background:
The unofficial log parser is a community project to help owners decode Zero logs. The code is at:
https://github.com/zero-motorcycle-community/zero-log-parser/
and the service that uses it is at:
http://home.hasslers.net/zerologparser/


There is a format change that Zero introduced to the log header, currently documented as a bug:
https://github.com/zero-motorcycle-community/zero-log-parser/issues/15


I introduced a change recently to help address this, BUT we are missing files that help us understand how Zero decodes those logs, and this ultimately prevents us from a correct interpretation of those logs.


In this way, BTW, the unofficial log parser has become a victim of its own success, because it was built by emulating the output that Zero provides to owners when they share their logs with customer service. Because the unofficial log parser has become so commonplace to use and mostly correct, this process of correction stalled.


So, I'm looking for volunteers who can send me text-file logs that Zero has provided to them, NOT unofficial log parse text-file logs, so that we can compare and correct the unofficial log parser. Obviously, the original log (that ends in .bin) will also be helpful.


You can email me at (my forum handle) at gmail.com to avoid sharing it publicly and also to avoid forum attachment size limits.


Thanks!
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

MrBlc

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Zero Log Parsing for 2017+ models
« Reply #1 on: April 22, 2020, 08:50:23 PM »

*bump*
is this the reason for this error?:
File "zero_log_parser.py", line 74
    def decode_str(log_text_segment: bytearray) -> str:
                                   ^
SyntaxError: invalid syntax
Logged

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Re: Zero Log Parsing for 2017+ models
« Reply #2 on: April 22, 2020, 10:16:55 PM »

*bump*
is this the reason for this error?:
File "zero_log_parser.py", line 74
    def decode_str(log_text_segment: bytearray) -> str:
                                   ^
SyntaxError: invalid syntax


No, that's because you're using it with Python 2, which we've migrated off of because it's now deprecated. Please run it with Python 3.

The issue is that the header byte structure was changed significantly, and we have no official parsed logs from Zero to compare and emulate. That's how the log parser was built in the first place, and this process is now broken or non-existent anyway.
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

MrBlc

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Zero Log Parsing for 2017+ models
« Reply #3 on: April 23, 2020, 01:49:32 AM »

To be honest i wanted to have a reason to bump the thread for you, and i just happened to get that error.
Weirdly enough i had installed python3, but you were right (as usual).
Thank you for quick reply :)
Logged

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Re: Zero Log Parsing for 2017+ models
« Reply #4 on: April 23, 2020, 03:09:06 AM »

Okay, I'm glad someone is paying attention, because this does concern me. Access to bike data is important for owners to be able to independently understand and verify claims from the manufacturer and service technicians. We need to understand how our bikes operate (and how they sometimes fail!).

The specific request I have is: if you own a 2017+ year model, please get Zero customer service to send you a decoded log, and send me or someone who can work on the Python code your binary and decoded text log so we can understand what is contained in this header so we can emulate Zero's tools.
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

MrBlc

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Zero Log Parsing for 2017+ models
« Reply #5 on: April 29, 2020, 12:20:50 PM »

Easier said than done.. I was hoping my last error would initiate such a request from customer service, but when i talked to them, he just replied "that error means we need to get the bike in to a shop to read out the diagnostics directly. The information you pull from the app is not enough".
Seems to me that they are aware and try to avoid divulging more information than they have to..
Logged

valnar

  • Sr. Member
  • ****
  • Posts: 360
    • View Profile
Re: Zero Log Parsing for 2017+ models
« Reply #6 on: April 29, 2020, 05:16:30 PM »

It seems the easiest way to crack this nut is to have a good relationship with your local Zero dealer.  Maybe just ask them?
Logged
Zero FXS 2020

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Re: Zero Log Parsing for 2017+ models
« Reply #7 on: April 30, 2020, 12:56:51 AM »

It seems the easiest way to crack this nut is to have a good relationship with your local Zero dealer.  Maybe just ask them?

That's not how the mobile application works. It sends the logs directly to Zero.

But yes, I would invite an owner to ask their dealer for a log decode. We need the actual files, though, not hearsay.
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

JaimeC

  • Hero Member
  • *****
  • Posts: 1958
    • View Profile
    • Facebook page
Re: Zero Log Parsing for 2017+ models
« Reply #8 on: April 30, 2020, 06:08:51 PM »

Okay then... here's a stupid question:  Has anyone reached out to Harlan Flagg for this?
Logged
1999 BMW K1200LT
2019 Yamaha XMAX
2021 Zero SR

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Re: Zero Log Parsing for 2017+ models
« Reply #9 on: May 01, 2020, 12:44:37 AM »

Okay then... here's a stupid question:  Has anyone reached out to Harlan Flagg for this?

They/you could. I'm not going to ask a dealer for one of their customers' logs, though. I'd hope I can ask them for one of their own bikes' logs. So hopefully a customer can ask for their own logs and forward them for study.

For what it's worth, I did get someone to help identify the firmware revision field, and I've inferred the board revision field if someone can run zero_log_parser.py directly to confirm (since Greg Hassler's site is broken lately).
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

JaimeC

  • Hero Member
  • *****
  • Posts: 1958
    • View Profile
    • Facebook page
Re: Zero Log Parsing for 2017+ models
« Reply #10 on: May 01, 2020, 04:22:07 AM »

Unfortunately I'm on the other side of the country from Hollywood Electrics... but I'm assuming he has his own Zero, if not he could pull the logs from a demo bike...
Logged
1999 BMW K1200LT
2019 Yamaha XMAX
2021 Zero SR

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Re: Zero Log Parsing for 2017+ models
« Reply #11 on: May 01, 2020, 06:41:18 AM »

Yeah, dealers can do this. What I need are matching copies of OFFICIALLY decoded and raw logs. Pretty simple, just not something we get access to, which is kind of my point - that Zero may be cutting owners off, and that is not in anyone's best interest, despite it likely appealing to Zero's self-protective nature.
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

gadgetgirl

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Zero Log Parsing for 2017+ models
« Reply #12 on: May 02, 2020, 09:49:38 AM »

This may be old news, but I was told by Zero today that they consider decoded logs for my SR/F to be proprietary information, and have a policy to not disclose them.
Logged
Current: 2020 SR/F Premium Seabright Blue (J1772)
Former: 2011 VRSCDX Sedona Orange

Crissa

  • Hero Member
  • *****
  • Posts: 3144
  • Centauress
    • View Profile
Re: Zero Log Parsing for 2017+ models
« Reply #13 on: May 02, 2020, 09:53:29 AM »

Yes, their position is pretty legally shakey if also common.

-Crissa
Logged
2014 Zero S ZF8.5

Auriga

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Zero Log Parsing for 2017+ models
« Reply #14 on: May 02, 2020, 10:04:34 AM »

Yes, their position is pretty legally shakey if also common.

-Crissa

I'm curious why you think it's legally shaky? Other than OBDII information, I'm not sure I've ever been able to access software logs in any vehicle I've owned. Tesla folks have been having this argument too, and it looks like they also have been unsuccessful(except for the crash data recorder).
Logged
Pages: [1] 2