[chirp_devel] Help with New Radio Support

Dan Smith
Thu Feb 26 15:59:57 PST 2015


>     _echo_write(radio, "PROGRAM")
>     response = radio.pipe.read(3)
>     if response != "QX\x06":
>         print "Response was:\n%s" % util.hexprint(response)
>         raise errors.RadioError("Unsupported model")
> 
> For example, the above code sends "PROGRAM" to the radio to initiate
> cloning, but then aborts with an "Unsupported model" error. The
> printing of "response" show that it is "nul", but my port monitor
> clearly show that "QX\x06" was returned.

Without looking, I think _echo_write() writes something to the device,
and then, expecting a complete echo, reads and discards the same number
of characters so that the caller doesn't see the echo. Maybe this new
radio/cable doesn't echo and your response is getting eaten and discarded?

--Dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20150226/3a00f587/attachment-0001.bin 


More information about the chirp_devel mailing list