<div dir="ltr"><div>Hi group,<br><br>I think I finally have a handle on what is causing the CHIRP &#39;Unsupported Model&quot; problem with the UV-B5 and UV-B6 radios. Under certain conditions, one confirmed as receive CTCSS tones selections, things change that cause CHIRP to stop working with radio.<br>
<br></div>Here is the radio &#39;ident&#39; check.<br><div><br>    ident = radio.pipe.read(8)<br>    print util.hexprint(ident)<br>    if ident != &quot;HKT511\x00\x04&quot;:<br>        raise errors.RadioError(&quot;Unsupported model&quot;)<br>
<br></div><div>The HKT511\x00\x04 ident is what is returned from a factory radio or a radio that has been reset. When you program certain receive CTCSS frequencies (and some other settings will cause this, too), the &#39;ident&#39; changes to the following.<br>
<br>HKT511\x00\x00<br><br></div><div>This can be easily fixed by checking for both ident strings or by shorting the string to just 7 characters.<br><br></div><div>When this is done, CHIRP starts the download process, but then the clone process is ended with &#39;Unexpected respose&#39;.<br>
<br></div><div>Here is where the process fails.<br><br>        ecks = radio.pipe.read(1)<br>        if ecks != &quot;x&quot;:<br>            raise errors.RadioError(&quot;Unexpected response&quot;)<br><br></div><div>What happens is when the &#39;ident&#39; changes, the &#39;ecks&#39; value changes too. I have seen as many as three different responses (including the original &#39;x&#39;).<br>
<br></div><div>The easiest &#39;fix&#39; would be to just remove the check. Either Baofeng doesn&#39;t check or they know what to check for.<br><br>Another &#39;fix&#39; would be to grab the first &#39;ack&#39; and then use it to check the rest. Maybe something like this?<br>
<br>        ack = radio.pipe.read(1)<br></div><div>        if i == 0<br>            ack0 == ack<br></div><div>        if ack != ack0:<br>            raise errors.RadioError(&quot;Unexpected response&quot;)<br><br></div><div>
Does anyone have any better ideas to work around this UV-B5/B6 quirk?<br><br></div><div>Thanks,<br></div><div>Jim KC9HI<br></div><div><br><br></div></div>