Release: ThetisIPCat

User avatar
oe3ide
Posts: 389
Joined: Tue May 05, 2020 8:36 am
Location: JN78XK
Contact:

Release: ThetisIPCat

Postby oe3ide » Wed May 18, 2022 4:28 pm

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
cmd interface.jpg (81.7 KiB) Viewed 3217 times


You can parse the output ("returndata:") for reading the returned data from Thetis

Have fun :-)

73 Ernst
ea3aqr
Posts: 270
Joined: Mon Mar 04, 2019 10:50 pm
Location: BCN

Re: Release: ThetisIPCat

Postby ea3aqr » Wed May 18, 2022 4:34 pm

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?
New call sign EA3CL
User avatar
w-u-2-o
Posts: 5540
Joined: Fri Mar 10, 2017 1:47 pm

Re: Release: ThetisIPCat

Postby w-u-2-o » Wed May 18, 2022 4:46 pm

Very handy, Ernst!

Would the source code be available for download?

73,

Scott
User avatar
oe3ide
Posts: 389
Joined: Tue May 05, 2020 8:36 am
Location: JN78XK
Contact:

Re: Release: ThetisIPCat

Postby oe3ide » Wed May 18, 2022 4:48 pm

Hi,

make a cmd-file, like:

ptton.cmd
c:\yourpath\thetisipcat.exe /ZZTX1

pttoff.cmd
c:\yourpath\thetisipcat.exe /ZZTX0

73 Ernst
User avatar
oe3ide
Posts: 389
Joined: Tue May 05, 2020 8:36 am
Location: JN78XK
Contact:

Re: Release: ThetisIPCat

Postby oe3ide » Wed May 18, 2022 5:01 pm

w-u-2-o wrote:Very handy, Ernst!

Would the source code be available for download?

73,

Scott


Sure ;-)
https://github.com/oe3ide/ThetisIPCat

73 Ernst
ea3aqr
Posts: 270
Joined: Mon Mar 04, 2019 10:50 pm
Location: BCN

Re: Release: ThetisIPCat

Postby ea3aqr » Wed May 18, 2022 5:04 pm

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
New call sign EA3CL
User avatar
w-u-2-o
Posts: 5540
Joined: Fri Mar 10, 2017 1:47 pm

Re: Release: ThetisIPCat

Postby w-u-2-o » Wed May 18, 2022 5:24 pm

oe3ide wrote:
w-u-2-o wrote:Very handy, Ernst!

Would the source code be available for download?

73,

Scott


Sure ;-)
https://github.com/oe3ide/ThetisIPCat

73 Ernst

Thanks Ernst! :)
w9mdb
Posts: 446
Joined: Sun Apr 09, 2017 5:53 pm

Re: Release: ThetisIPCat

Postby w9mdb » Wed May 18, 2022 5:31 pm

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
Mike W9MDB
w9mdb
Posts: 446
Joined: Sun Apr 09, 2017 5:53 pm

Re: Release: ThetisIPCat

Postby w9mdb » Wed May 18, 2022 5:35 pm

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.
Mike W9MDB
User avatar
oe3ide
Posts: 389
Joined: Tue May 05, 2020 8:36 am
Location: JN78XK
Contact:

Re: Release: ThetisIPCat

Postby oe3ide » Wed May 18, 2022 6:13 pm

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-output

73 Ernst
User avatar
oe3ide
Posts: 389
Joined: Tue May 05, 2020 8:36 am
Location: JN78XK
Contact:

Re: Release: ThetisIPCat

Postby oe3ide » Wed May 18, 2022 6:15 pm

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
w9mdb
Posts: 446
Joined: Sun Apr 09, 2017 5:53 pm

Re: Release: ThetisIPCat

Postby w9mdb » Wed May 18, 2022 6:22 pm

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.
Mike W9MDB

Return to “Digital Mode, Rig Control & Logging Software”