[chirp_devel] Help with New Radio Support
Jim Unroe
Thu Feb 26 19:10:44 PST 2015
On Thu, Feb 26, 2015 at 6:59 PM, Dan Smith <dsmith at danplanet.com> wrote:
>> _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
>
Yep. That was it. Thanks again Dan.
Jim
More information about the chirp_devel
mailing list