Injecting CAT Command as part of varafm connect

10 views
Skip to first unread message

Derrick Beard

unread,
Dec 28, 2025, 6:39:54 PM (23 hours ago) Dec 28
to pat-users
Is it possible to inject a rigctld command as part of connecting to Vara FM?  either part of my hamlib_rigs as follows:

  "hamlib_rigs": {
    "ftx-1": {
      "address": "localhost:4532",
      "network": "tcp"
    },
    "ftx-1-fm": {
      "address": "localhost:4532",
      "network": "tcp",
      "vfo": "VFOB",
      "ptt_vfo": "VFOB",
      "pre_connect_hook": "rigctl -m 2 -r localhost:4532 w 'VS1;'"
    }
  },

or 

  "varafm": {
    "addr": "localhost:8302",
    "bandwidth": 0,  
    "rig": "ftx-1-fm",
    "ptt_ctrl": true
  },

rigctl -m 2 -r localhost:4532 w "VS1;" runs fine from the command line, changes my ftx-1 active Main-side to active Sub-side.  Pat changes the frequency on the VFOB side, but I don't think hamlib 5.0 can do this yet.

Martin Hebnes Pedersen

unread,
1:31 AM (16 hours ago) 1:31 AM
to Derrick Beard, pat-users
Hi,

No, there is no such feature at this time unfortunately.

Are you trying to achieve a switch from Main to Sub before connecting with VARA FM so that the rig uses Sub for the connection?

-- 
73 de LA5NTA / Martin

--
You received this message because you are subscribed to the Google Groups "pat-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pat-users+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/pat-users/e638e7d6-4914-48a8-bf74-b13167f3f178n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages