Page 1 of 1
Release: ThetisIPCat
Posted: Wed May 18, 2022 4:28 pm
by oe3ide
Hi,
just made a commandline tool for sending CAT-Commands via TCP/IP to Thetis:
https://www.oe3ide.com/sdm_downloads/thetisipcat/Usage:Just call the program. The ini-file (thetisipcat.ini) will be auto-generated in the same directory as the exe. Adjust IP & Port.
Examples:Code: Select all
thetisipcat.exe /ZZFA00014250000 /ZZSP1 /ZZFB00014260
- cmd interface.jpg (81.7 KiB) Viewed 3411 times
You can parse the output ("returndata:") for reading the returned data from Thetis
Have fun
73 Ernst
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 4:34 pm
by ea3aqr
Thanks Ernst!
Could you post an script to to change PTT state from OFF to ON or ON to OFF in just one key stroke?
Is that possible with your tool?
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 4:46 pm
by w-u-2-o
Very handy, Ernst!
Would the source code be available for download?
73,
Scott
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 4:48 pm
by oe3ide
Hi,
make a cmd-file, like:
ptton.cmd
c:\yourpath\thetisipcat.exe /ZZTX1
pttoff.cmd
c:\yourpath\thetisipcat.exe /ZZTX0
73 Ernst
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 5:01 pm
by oe3ide
w-u-2-o wrote:Very handy, Ernst!
Would the source code be available for download?
73,
Scott
Sure
https://github.com/oe3ide/ThetisIPCat73 Ernst
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 5:04 pm
by ea3aqr
oe3ide wrote:Hi,
make a cmd-file, like:
ptton.cmd
c:\yourpath\thetisipcat.exe /ZZTX1
pttoff.cmd
c:\yourpath\thetisipcat.exe /ZZTX0
73 Ernst
Looks like I'm not explaining myself well enough...
I would like to know if we can have a batch file assigned to a keystroke than can acts exactly like "space" bar on Thetis that togles ON/OFF my PTT.
I know I can use 2 .bat files but this is not what I'm looking for...
Can you explain in depth how to parse the output ("returndata:") for reading the returned data from Thetis
Thanks
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 5:24 pm
by w-u-2-o
Thanks Ernst!
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 5:31 pm
by w9mdb
You can do the same with Hamlib's rigctl (rigctl-wsjtx or rigctl-jtdx).
Freq
rigctl -m 2048 --vfo -r 127.0.0.1:13013 f VFOA
18100000
rigctl -m 2048 --vfo -r 127.0.0.1:13013 m VFOA
PKTUSB
3050
rigctl -m 2048 --vfo -r 127.0.0.1:13013 get_vfo_info VFOA
18100000
PKTUSB
3050
Turn PTT on
rigctl -m 2048 --vfo -r 127.0.0.1:13013 T 1
Turn PTT off
rigctl -m 2048 --vfo 127.0.0.1:13013 T 0
PTT status
rigctl -m 2048 --vfo 127.0.0.1:13013 t
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 5:35 pm
by w9mdb
If we already have the space bar in Thetis why do you want it in another window?
I was thinking about making a utility with programmable/movable buttons that you could assign to commands like this with keyboard shortcuts too.
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 6:13 pm
by oe3ide
ea3aqr wrote:oe3ide wrote:Hi,
make a cmd-file, like:
ptton.cmd
c:\yourpath\thetisipcat.exe /ZZTX1
pttoff.cmd
c:\yourpath\thetisipcat.exe /ZZTX0
73 Ernst
Looks like I'm not explaining myself well enough...
I would like to know if we can have a batch file assigned to a keystroke than can acts exactly like "space" bar on Thetis that togles ON/OFF my PTT.
I know I can use 2 .bat files but this is not what I'm looking for...
Can you explain in depth how to parse the output ("returndata:") for reading the returned data from Thetis
Thanks
You could place a shortcut on the desktop and assign a keystroke.
Parsing: Could be done via PowerShell (never tried it):
https://stackoverflow.com/questions/205 ... and-output73 Ernst
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 6:15 pm
by oe3ide
w9mdb wrote:You can do the same with Hamlib's rigctl (rigctl-wsjtx or rigctl-jtdx).
Freq
rigctl -m 2048 --vfo -r 127.0.0.1:13013 f VFOA
18100000
rigctl -m 2048 --vfo -r 127.0.0.1:13013 m VFOA
PKTUSB
3050
rigctl -m 2048 --vfo -r 127.0.0.1:13013 get_vfo_info VFOA
18100000
PKTUSB
3050
Turn PTT on
rigctl -m 2048 --vfo -r 127.0.0.1:13013 T 1
Turn PTT off
rigctl -m 2048 --vfo 127.0.0.1:13013 T 0
PTT status
rigctl -m 2048 --vfo 127.0.0.1:13013 t
Yes correct. But I guess not for Thetis-specific CAT-commands.
73 Ernst
Re: Release: ThetisIPCat
Posted: Wed May 18, 2022 6:22 pm
by w9mdb
rigctl -m 2048 --vfo 127.0.0.1:13013 W ZZFA; 16
rigctl -m 2048 --vfo 127.0.0.1:13013 W ZZFA00014250000; 0
The W command writes raw data and take the # of bytes expected in the return.