Skip to content

Flasher version check fail #9

@rakenrowl7

Description

@rakenrowl7

Hello!

I'm running k5prog under cygwin and successfully read eeprom data with radio in normal mode

$ ./k5prog -r -v -p /dev/com3
Quansheng UV-K5 EEPROM programmer v0.5 (c) 2023 Jacek Lipkowski <sq5bpf@lipkowski.org>

k5_prepare: try 0
******  Connected to firmware version: [2.01.31]
Sucessfuly read eeprom


However, when reading flasher/bootloader version, the program fails

$ ./k5prog -r -D -Y -vvv -p /dev/com3
Quansheng UV-K5 EEPROM programmer v0.5 (c) 2023 Jacek Lipkowski <sq5bpf@lipkowski.org>

"I know what i'm doing" value set to 1
wait_flash_message try 9999
RXRXRX:

0x000004 |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: ab cd 14 00                                       ....
magic:

0x000004 |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: ab cd 14 00                                       ....
RXRXRX:

0x000018 |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: 0e 69 14 e6 2f 93 0f 42 2f 66 85 0a 24 44 16 81   .i../..B/f..$D..
0x000010: 86 6c 9e e6 ff ff dc ba                           .l......
bad crc 0x6ed1 (should be 0x7f14)
********  k5 command hexdump [obf_len:28 clear_len:22 crc_ok:0 **********
## obfuscated ##

0x00001c |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: ab cd 14 00 0e 69 14 e6 2f 93 0f 42 2f 66 85 0a   .....i../..B/f..
0x000010: 24 44 16 81 86 6c 9e e6 ff ff dc ba               $D...l......
## cleartext ##

0x000016 |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: 18 05 00 00 01 02 02 02 0e 53 50 4a 37 47 ff 01   .........SPJ7G..
0x000010: 90 00 8a 00 d1 6e                                 .....n
*****************
********  k5 command hexdump [obf_len:28 clear_len:20 crc_ok:0 **********
## obfuscated ##

0x00001c |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: ab cd 14 00 0e 69 14 e6 2f 93 0f 42 2f 66 85 0a   .....i../..B/f..
0x000010: 24 44 16 81 86 6c 9e e6 ff ff dc ba               $D...l......
## cleartext ##

0x000014 |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: 18 05 00 00 01 02 02 02 0e 53 50 4a 37 47 ff 01   .........SPJ7G..
0x000010: 90 00 8a 00                                       ....
*****************
********  k5 command hexdump [obf_len:28 clear_len:20 crc_ok:0 **********
## obfuscated ##

0x00001c |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: ab cd 14 00 0e 69 14 e6 2f 93 0f 42 2f 66 85 0a   .....i../..B/f..
0x000010: 24 44 16 81 86 6c 9e e6 ff ff dc ba               $D...l......
## cleartext ##

0x000014 |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |a |b |c |d |e |f |
---------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+------------
0x000000: 18 05 00 00 01 02 02 02 0e 53 50 4a 37 47 ff 01   .........SPJ7G..
0x000010: 90 00 8a 00                                       ....
*****************
wait_flash_message: got unexpected command length 20
wait_flash_message try 9998

I'm using a generic ch340 'baofeng' serial cable, cygwin under windows 11. I can confirm the radio and cable works with official QS updater.

I suspect that this issue prevents flashing firmware through k5prog and k5prog-win. https://github.com/OneOfEleven/k5prog-win/issues/4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions