davidmpye / RT73-utils

GNU General Public License v3.0
3 stars 2 forks source link

Added APRS Fixed Location & PL-Tone (QT/DQT) #6

Closed DavidB445 closed 3 years ago

DavidB445 commented 3 years ago

+Added APRS menu toggle +Added Button Long Press parameter +Changed AX25 TX Freq to 4 bytes

I meant to do this after I closed the last pull request but been busy with work etc :) In addition to the last one where I added the Ham Groups upload and added a Timeslot ON check;

I have added APRS Fixed Location, Found it was just stored as a 4 byte int32 in DMS format. Dividing it by 100,000 would get it back to Degrees . MinutesSeconds then of course multiply it by 100,000 to get back to int32 and convert that to bytes. I have left it as the integer within the JSON and done the conversion within the editor but could easily store it in another format and convert it back within the script. Done some testing with it and it does upload to APRS.fi, although seems to lose some accuracy versus the actual location set but it does work

Added QT DQT for Analog APRS, This is simply stored as the index within the list of CTCSS and DCS codes, normal and invert. Stored in the JSON as "Off", CTCSS tone, DxxxN or DxxxI

Changed the Analog APRS Tx Freq to use 4 bytes, as it does actually use more than 3 if the frequency is over ~167MHz so would need 4 bytes for frequencies in the 70cm band, although I guess the most common use is 2 meters 144Mhz.

Also added the button long press timeout and a menu toggle for the APRS menu as with the recent firmware update the menu seemed to disappear, turns out there is now a toggle for it and as it wasn't defined it was always set to 0, hidden.

I also tried to look into the 255 contact issue but any time I tried adding enough contacts to test it the radio would lose all contacts, tried uploading via the CPS and the script. The codeplug would write but a message on the radio when it reboots after writing suggests an error somewhere. "!LM APP SORT" I doubt many people would want or need that many talkgroups or contacts separate from the ham contacts list so I may just leave that for now :)

Cheers, David.

davidmpye commented 3 years ago

Cheers once again :-)