|
[2023-04-19 21:39:04,036] chirp.drivers.ft7100 - DEBUG: Magic 16-byte chunk:
|
|
000: ee ff 03 00 0e 0f 0e 0f ........
|
|
008: 00 00 00 00 00 02 00 00 ........
|
|
|
|
=====================================================================
|
|
|
|
|
|
[2023-04-19 22:21:15,389] chirp.wxui.clone - DEBUG: Showing pre_upload prompt
|
|
[2023-04-19 22:21:22,889] chirp.wxui.clone - DEBUG: Setting flag for prompt pre_upload
|
|
[2023-04-19 22:21:22,889] chirp.wxui.clone - DEBUG: Opening serial 'COM7' after upload prompt
|
|
[2023-04-19 22:21:22,902] chirp.wxui.clone - DEBUG: Serial opened: Serial<id=0x1467d99a650, open=True>(port='COM7', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=0.25, xonxoff=False, rtscts=False, dsrdtr=False) (rts=True dtr=True)
|
|
[2023-04-19 22:21:25,769] chirp.wxui.clone - ERROR: Failed to clone: Failed to communicate with radio: Failed to read ACK. No response from radio.
|
|
Traceback (most recent call last):
|
|
File "c:\Users\jjarrell\Documents\chirp\chirp\drivers\ft7100.py", line 584, in sync_out
|
|
_upload(self)
|
|
File "c:\Users\jjarrell\Documents\chirp\chirp\drivers\ft7100.py", line 140, in _upload
|
|
_wait_for_ack(radio.pipe)
|
|
File "c:\Users\jjarrell\Documents\chirp\chirp\drivers\ft7100.py", line 66, in _wait_for_ack
|
|
raise Exception("Failed to read ACK. No response from radio.")
|
|
Exception: Failed to read ACK. No response from radio.
|
|
|
|
During handling of the above exception, another exception occurred:
|
|
|
|
Traceback (most recent call last):
|
|
File "c:\Users\jjarrell\Documents\chirp\chirp\wxui\clone.py", line 66, in run
|
|
self._fn()
|
|
File "c:\Users\jjarrell\Documents\chirp\chirp\drivers\ft7100.py", line 588, in sync_out
|
|
raise errors.RadioError("Failed to communicate with radio: %s" % e)
|
|
chirp.errors.RadioError: Failed to communicate with radio: Failed to read ACK. No response from radio.
|
|
|
|
=====================================================================
|
|
|
|
diff --git a/chirp/drivers/ft7100.py b/chirp/drivers/ft7100.py
|
|
index b5f61695..5061e927 100644
|
|
--- a/chirp/drivers/ft7100.py
|
|
+++ b/chirp/drivers/ft7100.py
|
|
@@ -42,7 +42,7 @@ def _send(pipe, data):
|
|
pipe.write(bytes([ch]))
|
|
time.sleep(0.0012) # 0.0011 is to short. No ACK after a few packets
|
|
echo = pipe.read(len(data))
|
|
- if data == b"":
|
|
+ if echo == b"":
|
|
raise Exception("Failed to read echo."
|
|
" Maybe serial hardware not connected."
|
|
" Maybe radio not powered or not in receiving mode.")
|
|
@@ -135,7 +135,7 @@ def _upload(radio):
|
|
|
|
# write 16 Byte block
|
|
# If there should be a problem, see remarks in _download(radio)
|
|
- _send(radio.pipe, b"\xEE\x77\x01\x00\x0E\x07\x0E\x07"
|
|
+ _send(radio.pipe, b"\xEE\xFF\x03\x00\x0E\x0F\x0E\x0F"
|
|
b"\x00\x00\x00\x00\x00\x02\x00\x00")
|
|
_wait_for_ack(radio.pipe)
|
|
|