Script for personalizing a common codeplug

OpenGD77CPS
Post Reply
oh1fss
Posts: 74
Joined: Mon May 04, 2020 11:53 am

Script for personalizing a common codeplug

Post by oh1fss » Sat Dec 26, 2020 2:37 pm

Have you built your codeplug from scratch? Or have you copied it from your friend or ham club? If you have copied, what do you do if the source changes? You could personalize it by using OpenGD77CPS. But it does not run natively in Linux. And anyway, it involves some manual work, at least you DMR ID and your personal hotspot settings.

I wrote some scripts to automate personalizing a common codeplug for my needs without having to use OpendGD77CPS manually.

Here is a Linux script which downloads a model codeplug from a web site, changes hotspot settings (channel named "Personal hotspot", frequency 434.4875 MHz, color code 13) and then my DMR ID and callsign, and finally writes it to my radio:

Code: Select all

wget http://ourhamclub.org/codeplug.g77
TEMPORARY_FILE=temp.g77
MY_CODEPLUG=OH1FSS.g77
./GD77ChangeChannel.py -i codeplug.g77 -o $TEMPORARY_FILE -n 'Personal Hotspot' -r 434487500 -c 13
./GD77changeid.py -i $TEMPORARY_FILE -o $MY_CODEPLUG -d 2441033 -c OH1FSS
rm -f $TEMPORARY_FILE
# for safety, you might want to run the following only after checking the previous command results...
./GD77transfer.py -w -f $MY_CODEPLUG
This script uses two other Python programs which you can download from:

GD77transfer

and

GD77changeid

The third Python script is attached to this posting. That program includes many functions which are not needed here, but which might be useful if you want to extend the functionality yourself.

Extract all three programs to a directory and adapt the script above for your needs!

The programs are experimental, so make backups and be careful! I tested the programs in Fedora 33 Linux using Python version 3.9.1.
Attachments

[The extension tgz has been deactivated and can no longer be displayed.]


VK3KYY
Posts: 7473
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Script for personalizing a common codeplug

Post by VK3KYY » Tue Jan 19, 2021 9:57 pm

Thanks

Post Reply