Skip to content

Instantly share code, notes, and snippets.

@SergeyBurlaka
Last active January 25, 2021 12:33
Show Gist options
  • Save SergeyBurlaka/41f5be4fd735dbf6741ff3a00686e54a to your computer and use it in GitHub Desktop.
Save SergeyBurlaka/41f5be4fd735dbf6741ff3a00686e54a to your computer and use it in GitHub Desktop.
1. connect the headset to the phone via USB (tp-c)
2. check if ap connected to hs
3. check current app set (0 or 1)
4. send Img Persist file to start firmware.
Wait when the IMG file is finalized.
Then update the next 3 files in the same way.
audioMgr.sendCommand(
UPDATE_IMAGE_COMMAND,
address,
fileBytes,
0x00_06_01,
firmwareType,
if (currentAppSet == APP_SET_0) 1 else 0
)
if current app set is 0 we detec address for 1 app set
address PARAMS_SET_1 = 0x0021C000 for 1 app set as example.
5. Try to do test firmware update 3,4 times to check that update stability works for 1 and 0 app set. The most cases when it does not work or stops on 2 file on 25%
Actual result: app updates success only one time but command update image does not work next to other 3 attempts.
The most cases when it does not work or stops on 2 file on 25%. But other commands work and BL works.
Expected result: the app can update success each time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment