pine64 / OpenPineBuds

Community maintained firmware for PineBuds Pro
148 stars 18 forks source link

BadChecksumErrors #95

Closed mattchrist closed 6 months ago

mattchrist commented 6 months ago

I'm running into issues trying to backup my PineBuds firmware. When running backup.sh, I get checksum errors:

com is: 0
1
This tool assumes your buds are the only thing connected and are enumerated {right,left} order. YMMV
Right bud is at 0
Left bud is at 1
Please disconnect and reconnect the bud on the right
Reading binary data from /dev/ttyACM0 @ 921600
2024-04-02T22:40:54.786472Z  INFO bestool::cmds::read_image: Starting loader and checking communications
2024-04-02T22:40:54.786477Z  INFO bestool::beslink::helper_sync_and_load_programmer: Syncing into bootloader
2024-04-02T22:40:54.786489Z  INFO bestool::beslink::message: Sent message type Sync [BE, 50, 0, 1, 1, EF]
2024-04-02T22:41:09.700125Z  WARN bestool::beslink::message: Bad Checksum!! BadChecksumError { failed_packet: [190, 15, 43, 62, 140, 211, 222, 183, 6, 78, 223, 208, 24, 192, 143, 24, 241, 26, 77, 19, 154, 88, 47, 77, 19, 24, 225, 62, 15, 126, 26, 190, 80, 0, 3, 0, 0, 1, 237, 24, 24, 40, 42, 33, 154, 74, 236, 62, 11, 210, 30, 216, 208, 28, 192, 64, 31, 22, 61, 192, 48, 31, 172, 74, 8, 96, 192], got: 192, wanted: 57 }
2024-04-02T22:41:09.700135Z  WARN bestool::beslink::sync: Ignoring bad checksum; you might not be in programmer mode.
2024-04-02T22:41:50.861182Z  WARN bestool::beslink::message: Bad Checksum!! BadChecksumError { failed_packet: [190, 80, 0, 3, 0, 0, 1, 237], got: 237, wanted: 190 }
2024-04-02T22:41:50.861192Z  WARN bestool::beslink::sync: Ignoring bad checksum; you might not be in programmer mode.

Do you have any suggestions how I might get this working?

Thank you!

shymega commented 6 months ago

This is more of a bestool issue, could you open an issue there? I'm in the process of refactoring that tool, but it shouldn't affect you right now.

Also, when you open an issue here, please post the output of lsusb with the PineBuds plugged in.