ElectricMotorcycleForum.com

  • November 27, 2024, 12:30:48 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Electric Motorcycle Forum is live!

Pages: [1]

Author Topic: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR  (Read 1052 times)

Rfasic

  • Newbie
  • *
  • Posts: 4
    • View Profile
Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
« on: July 17, 2019, 06:12:50 AM »

Hi all,

I just check the firmware tab on the Zero Motorcycles app on my phone and discover that 2 new versions of the firmware are proposed as updates for the BMS and the MBB:

- For the MBB, rev 27 is proposed as a replacement of the existing rev 26.
- For the BMS, rev 35 instead of rev 34.

Has anyone tried (when previous firmware were proposed to be downloaded to the bike) to logg and record the BT transfer ? (perhaps is it scrambled during the transfer .... i dont know ...).

More information is welcomed.. :)
Logged

clockfort

  • Newbie
  • *
  • Posts: 41
  • 2015 Zero SR; Silicon Valley USA
    • View Profile
Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
« Reply #1 on: July 17, 2019, 08:32:54 AM »

Let me brain dump since I'm going to eventually forget all of this

idk if they updated it since I last disassembled their android app in February 2017, but then it just downloaded onto your android device unscrambled (iirc to the storage directory so any other file explorer kind of app or any of the android debug tools should be able to read it), and even if you didn't want to grab it from an android device it was also easy to see the login pattern and grab the static authorization bearer and other expected HTTP headers to download the firmware.
e.g.
Code: [Select]
#grab an auth token
curl -v -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Authorization: Bearer <snip don't want zero yelling at me too much>" -H "User-Agent: ZeroMoto/1.0" -d '{"email":""}' -X POST https://fupdater.zeromotorcycles.com/auth/login

#grab the firmware
curl -L -O -J -v  -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Authorization: Bearer <snip don't want zero yelling at me too much>" -H "User-Agent: ZeroMoto/1.0" -H 'ZeroAPIAuth: <another snip don't want zero yelling at me too much>' -X GET "https://fupdater.zeromotorcycles.com/builds?currentversion&download=1"


which if you keep unpacking gets you files like this
Code: [Select]
75-08036-12_my17_mbb_firmware_banka_2016-10-26_160406.347.bin  75-08037-21_my17_bms_firmware_bankb_2016-10-26_155606.320.bin
75-08036-12_my17_mbb_firmware_bankb_2016-10-26_160406.347.bin  75-08118-15_zero_bootloader_2016-10-26_155428.128129a.bin
75-08037-21_my17_bms_firmware_banka_2016-10-26_155606.320.bin

The only other thing I remember being weird is they had an extra HTTP header that was a SHA-256 of the firmware tar.gz download, but it was called ZeroSha256 or something
« Last Edit: July 17, 2019, 08:35:25 AM by clockfort »
Logged

Rfasic

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
« Reply #2 on: July 17, 2019, 06:54:37 PM »

Hi clockfort,

Thx for your clear and detailed answer, unfortunately it seems that the link "https://fupdater. _____________" is not available any more  :(
Anyway I will probably be able to extract the new link from the new app revision (as you did in 2017...) or in a more lazy way accept the update through the phone and fetch the files inside the android device. The only risk in that last case is to discover (when riding) some new bugs brought by this updated firmware rev   :-\

Thx again for you help.

Eric
Logged

JaimeC

  • Hero Member
  • *****
  • Posts: 1987
    • View Profile
    • Facebook page
Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
« Reply #3 on: July 17, 2019, 10:35:16 PM »

Crossing my fingers and installing the update now...

For the curious, see:  https://www.zeromotorcycles.com/owner-resources/firmware/
« Last Edit: July 17, 2019, 10:37:16 PM by JaimeC »
Logged
1999 BMW K1200LT
2019 Yamaha XMAX
2021 Zero SR

JaimeC

  • Hero Member
  • *****
  • Posts: 1987
    • View Profile
    • Facebook page
Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
« Reply #4 on: July 18, 2019, 05:59:17 AM »

Well, took a quick run down to the drugstore and back and so far, so good...
Logged
1999 BMW K1200LT
2019 Yamaha XMAX
2021 Zero SR

GeneralSP

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
« Reply #5 on: July 21, 2019, 05:12:24 AM »

The new firmware description 27 and 35 is not there, only 26 and 34. I dont know whats is the corrections.
« Last Edit: July 21, 2019, 11:08:43 PM by GeneralSP »
Logged

JaimeC

  • Hero Member
  • *****
  • Posts: 1987
    • View Profile
    • Facebook page
Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
« Reply #6 on: July 21, 2019, 07:59:02 PM »

The new firmware description 27 and 35 is not there, only 26 and 35. I dont know whats is the corrections.

You're right; I just went back and looked.  The listing under 2019 is an exact duplicate of what is listed for 2018.  WTF??
Logged
1999 BMW K1200LT
2019 Yamaha XMAX
2021 Zero SR
Pages: [1]