UV-B6 (ub-b5) - Failed to communicate with radio
jmaumene opened this issue · 0 comments
jmaumene commented
hello
ERROR: -- Exception: --
ERROR: Traceback (most recent call last):
File "/home/julien/Applications/chirp/chirp/drivers/uvb5.py", line 331, in sync_in
self._mmap = do_download(self)
File "/home/julien/Applications/chirp/chirp/drivers/uvb5.py", line 212, in do_download
frame = struct.pack(">cHB", "R", i, 16)
struct.error: char format requires a bytes object of length 1
I change this :
--- a/chirp/drivers/uvb5.py
+++ b/chirp/drivers/uvb5.py
@@ -209,7 +209,7 @@ def do_download(radio):
data += (b"\x00" * 16)
firstack = None
for i in range(0, 0x1000, 16):
- frame = struct.pack(">cHB", "R", i, 16)
+ frame = struct.pack(">cHB", b"R", i, 16)
you need to reset the uv-b6 like this before (https://chirp.danplanet.com/issues/901:
1. Press and hold the [MENU] key while switching on the radio
2. Press either the [UP] (or [DN]) arrow key to switch to the ALL selection
3. Press the [AB] key
Solved here : #5
Thanks