[chirp_devel] Serial port parameters / initialization

Ran Katz
Tue Mar 15 23:32:06 PDT 2022


Hi ,
I need to update the TG-UV2+ driver to use 2 stop bits on the UART,
I've added the following line in do_ident(radio) function:

radio.pipe.stopbits = serial.STOPBITS_TWO
(After the radio.pipe.timeout setting and before the first write to
the radio)

The fix works,
However,
bBefore submitting the patch, I wanted to know if there is a need to clean
this back to "normal" (1 stop bit) somewhere? Or, is the serial port
re-initialized every time a new download starts (e.g. if a user would
download from one radio type and then from another)?

(I tested this with the 2 radio types I have (first downloading from the
TG-UV2+ with 2 stop bits and then from a UV-5R (which Imagine uses 1 stop
bit )  and it worked fine, but that could be just luck....

Thanks!
Ran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20220316/7689d4a9/attachment-0001.html 


More information about the chirp_devel mailing list