-
Notifications
You must be signed in to change notification settings - Fork 2
Desktop Remote Power Meter Application Configuration
There are only a few things to know here.
- What is your USB serial port number?
- To connect to the Arduino, especially the M5Stack device on Windows you normally need to have the driver specified for your CPU of choice. If you can program it then you are ready to use it here.
-
Do you have Python (preferably the current 3.8 version) loaded? Also load pip installer. Consult the internet for instructions if needed.
-
Install the pySerial package. Use the command pip install pyserial
-
Download py-wsjt files from GitHub here and extract them to the folder where your program will reside. Preserve the folder structure.
-
Edit a few configuration constants at the top of the program file.
-
A sample from the file is presented here. Most people will only need to change mRig, myTitle, and the UDP_PORT values. * If your are not using WSJT-X then you can likely ignore the UDP_PORT and IP address part.
#Change the next 2 values to suit your station myTitle = "K7MDL Remote Power Meter for VHF-UHF Bands" # Windows Title Bar Text #edit these to match your meter ID and Rig/Location text for this meter instance myRig = "K3 Florida" # Rig name and location - about 10 characters max
These next 2 will usually stay the same. They would be changed to run multiple instance of meter and WSJT-X
myRig_meter_ID = "101" # Change to match your power meter ID. Always 3 digits, pad with leading 0 if needed on meter side
myWSJTX_ID = "WSJT-X" # "WSJT-X" default as of WSJT-X version V2.1. Change this to match your WSJT-X instance name. See below.
*The IP address is typically 127.0.0.1 unless using a multicast address. Here is a multicast address suggestion but it is commented out with the # character.
#UDP_IP = '224.1.1.1' # multicast address and port alternative
#UDP_PORT = 5007
If using WSJT-X and anther program with it like JTAlert then you need to match up the UDP port numbers carefully. Each program has the ability to change its port numbers. I am using 2334 with JTAlert re-broadcasting
If using JTAlert, it optionally re-broadcasts all WSJT-X network messages.
You will want to then make sure you match up with JTALert port number for that.
JTAlert talks to WSJT-X directly on another port, usually 2237.
UDP_IP = "127.0.0.1" # default local machine address
UDP_PORT = 2334 # change to match your WSJTX source of data port number. 2237 is a common WSJTX default port. See below for more info...
- Start the program with the command line (On Windows)
python.exe pyRFPowermeter.py COMMXX
- XX is replaced by your Windows Com port number. If you do not know what it is, you can open Windows Device Manager and look under Ports and see what is there.
- If you are still not sure looking at the list, simply unplug and plug back in the USB cable to the Arduino and see which one comes and goes.
- Consider creating a desktop shortcut and append the com port name to the target file name. This removes the prompt to enter a serial port and you can then start it up with the text window minimized. When you have it working OK, set the Minimize window on startup option in the shortcut properties dialog.