Skip to content

firmware version barf #127

Open
Open
@jeffgi

Description

It's not a bug per se but I think I have an issue for uvk# radios going forward. I'm working with a recent uv-k6 from Amazon and a uv-k5(99) fresh from China. I suspect that the latest OEM firmware shipping is incompatible with establish protocols.

UVMod downloads firmware images. Both radios have the same 58,674 bytes firmware.
UVMod and several other modder softwares barf very early reporting No data received.

Python proves that drivers and cables are working. fwversion_read bombs with:
C:\jg\git2\amn02\Quansheng_UV-K5_Firmware\python-utils>python fwversion_read.py COM3
uvk5.uart_receive_msg<raw< abcd0800026910e6680d6224950bdcba
uvk5.uart_receive_msg<dec< abcd080014050400469c6f64b43edcba
Traceback (most recent call last):
File "C:\jg\git2\amn02\Quansheng_UV-K5_Firmware\python-utils\fwversion_read.py", line 14, in
print(radio.get_fw_version())
^^^^^^^^^^^^^^^^^^^^^^
File "C:\jg\git2\amn02\Quansheng_UV-K5_Firmware\python-utils\libuvk5.py", line 127, in get_fw_version
return reply[8:].split(b'\0', 1)[0].decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 1: invalid start byte

i comment out line 21 of configmem_read and get:
uvk5.uart_receive_msg<raw< abcd0c000d691ce66e9e054067a9ba2421ebdcba
uvk5.uart_receive_msg<dec< abcd0c001b050800400f0800469c6f6432e8dcba
469c6f64

firmware_read.py is incompatible with 58,674 bytes firmware?
if 469c6f64 is a reasonable configmem, successful fwversion_read is no longer a prerequisite in configmem_read (and other readers)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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