ElectricMotorcycleForum.com

Makes And Models => Zero Motorcycles Forum | 2013+ => Topic started by: Rfasic on July 17, 2019, 06:12:50 AM

Title: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
Post by: Rfasic 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.. :)
Title: Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
Post by: clockfort 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
Title: Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
Post by: Rfasic 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
Title: Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
Post by: JaimeC 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/
Title: Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
Post by: JaimeC on July 18, 2019, 05:59:17 AM
Well, took a quick run down to the drugstore and back and so far, so good...
Title: Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
Post by: GeneralSP 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.
Title: Re: Firmware 2019, rev 2 for ZERO S/SR, DS/DSR
Post by: JaimeC 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??