[chirp_devel] [PATCH 4 of 4] [ft8x7] Add messages to help users remember clone procedure
Marco IZ3GME
Tue Oct 8 10:36:45 PDT 2013
I find it!
That code is from yaesu_clone.py so ... you are right! the vx7 doesn't
display the message
I was double checking the ft8x7 as per the message subject :(
73 de IZ3GME Marco
On 10/08/2013 06:47 PM, Tom Hayward wrote:
> On Tue, Oct 8, 2013 at 9:43 AM, Marco IZ3GME <iz3gme.marco at gmail.com> wrote:
>> blocks start from 0 and is incremented only after receiving a good ACK.
>> Anyway I'm pretty sure that while testing I saw each message for each of
>> the patch I sent, don't you?
>
> No, I only saw the TX msg displayed after applying your patch.
>
> blocks = 0
> pos = 0
> for block in radio._block_lengths:
> blocks += 1
> if blocks != len(radio._block_lengths):
> #print "Sending %i-%i" % (pos, pos+block)
> pipe.write(radio.get_mmap()[pos:pos+block])
> buf = pipe.read(1)
> if buf and buf[0] != chr(CMD_ACK):
> buf = pipe.read(block)
> if not buf or buf[-1] != chr(CMD_ACK):
> if blocks == 0:
> raise Exception(_("Radio did not ack first block\n")
> + radio._START_CLONE_RX_MSG)
> else :
> raise Exception(_("Radio did not ack block %i") % blocks)
>
> Looks to me like blocks is incremented before the ACK (not after).
> That would explain why I never saw the message. With no radio
> connected, the error I get is "Radio did not ack block 1".
>
> Tom KD7LXL
> _______________________________________________
> chirp_devel mailing list
> chirp_devel at intrepid.danplanet.com
> http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
> Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
>
More information about the chirp_devel
mailing list