[chirp_devel] Fwd: [PATCH 1 of 2] [RT22] Address original RT22 block read errors

Jim Unroe
Mon May 24 18:49:42 PDT 2021


---------- Forwarded message ---------
From: Jim Unroe <kc9hi at comcast.net>
Date: Mon, May 24, 2021 at 9:46 PM
Subject: [PATCH 1 of 2] [RT22] Address original RT22 block read errors
To: <Rock.Unroe at gmail.com>


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1621905597 14400
#      Mon May 24 21:19:57 2021 -0400
# Node ID 05cad5ed5ef71ee0b7cd7555fd3f7fbeccc315ba
# Parent  47a1e03308716b00c2a685c44bbf0ce395e69b41
[RT22] Address original RT22 block read errors

While investigating this issue, the original RT22 was often experiencing read
errors while cloning from the radio to CHIRP. It was eventually discovered
that the radio was eventually missing an ACK at some point during the download
which stopped the cloning process with an error.

This patch adds a small delay between the reading a block of data an the
sending of the ACK back to the radio indicating that the block of data was
received OK. The original RT22 radio now receives every ACK reliably.


related to #9043

diff -r 47a1e0330871 -r 05cad5ed5ef7 chirp/drivers/retevis_rt22.py
--- a/chirp/drivers/retevis_rt22.py     Wed May 19 20:58:53 2021 -0400
+++ b/chirp/drivers/retevis_rt22.py     Mon May 24 21:19:57 2021 -0400
@@ -216,6 +216,7 @@

         block_data = response[4:]

+        time.sleep(0.005)
         serial.write(CMD_ACK)
         ack = serial.read(1)
     except:



More information about the chirp_devel mailing list