Posted on 2008-11-12 15:58:52-08 by ae3wp
TH-D7A(G) Questions

I am a Perl newbie playing around with this module as part of my gaining some Perl experience.

I have the A(G) model and was wondering if anyone knows if there is any significant difference between the A and A(G) models?

Working my way through the commands provided in this Perl Module, I find that I can't get the MemoryRead command to return any data. I simply get the 'N' returned which apparently means invalid command. I am not using any polling or callbacks yet and as such AI is turned off in the radio.

I had little trouble getting the Buffer command to work, which provides almost as much data as the MemoryRead command, so I assumed that Polling and callbacks aren't required for MemoryRead to function.

I can add some information about the the Buffer command:

a. Buffer command will work for Reading from either the VFO or a memory channel.

b. The X1 parameter returns a 1 if the radio can transmit on the selected freq., a 0 if transmission is blocked on freq. outside of legal amateur band.

Also, the %REV_STEPS and %REV_TONES calls to the Step's and Tone's hashs were not working for me. I changed the lines to $REV_STEPS = reverse(%STEPS); and $REV_TONES = reverse(%TONES); accordingly and they work for me now. I can't say whether this is better or even correct, but it works for me.

Any help would be appreciated.

It appears that there hasn't been a lot of activity on this module, but hope I can help in the future as I learn more.

Bill AE3WP

Direct Responses: 9323 | Write a response
Posted on 2008-11-15 16:01:52-08 by ae3wp in response to 9287
Re: TH-D7A(G) Questions
I am afraid the memory is going, because I didn't have the code in front of me when I wrote my original post, I made some errors.

b. The X1 parameter returns a 1 if the radio can transmit on the selected freq., a 0 if transmission is blocked on freq. outside of legal amateur band.

should read:
b. The X1 parameter returns 0 if the Repeater offset is turned off(simplex), a 1 if using a POSITIVE offset, and 2 if using a NEGATIVE offset.

I am getting the same return values using the SFT(shift) command, so either the G model has changed the return values, or the Constants POSITIVE and NEGATIVE need to be changed.

This paragraph:
Also, the %REV_STEPS and %REV_TONES calls to the Step's and Tone's hashs were not working for me. I changed the lines to $REV_STEPS = reverse(%STEPS); and $REV_TONES = reverse(%TONES); accordingly and they work for me now. I can't say whether this is better or even correct, but it works for me.
should read:
Also, the %REV_STEPS and %REV_TONES calls to the Step's and Tone's hashs were not working for me. I changed the lines to $REV_STEPS = reverse %STEPS; and $REV_TONES = reverse %TONES; accordingly and they work for me now. I can't say whether this is better or even correct, but it works for me.

Bill AE3WP
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.