rigctld refuses connection

201 views
Skip to first unread message

kha...@orange-road.com

unread,
Mar 13, 2021, 4:11:52 AM3/13/21
to pat-users
I'm trying to get Pat set up on a Mac, and have run into an obstacle. I'm using this command:

rigctld -m 1043 /dev/tty.usbserial-AG6BJM6Y -s 38400

This produces the output:

rig.c(745):rig_open return

When I then do "pat interactive", I see this:

Unable to get frequency from rig 897: dial tcp [::1]:4532: connect: connection refused.

I've tried using cu.usbserial-AG6BJM6Y instead, as that's the device I use for everything else that talks to my FT-897, but it doesn't make any difference.

I searched through the group's archive, but didn't find any solution (aside from checking for typos, which I did). There is a mention in the Pat docs that I can recompile it to use the conventional hamlib, but before I try that I thought I'd see if anyone had successfully gotten Pat talking to rigctld on a Mac.

kha...@orange-road.com

unread,
Mar 19, 2021, 8:25:31 PM3/19/21
to pat-users
Since rigctld apparently doesn't work on the Mac, I turned my attention to this line in the documentation:

"Pat can use the conventional hamlib via serial/usb, but you'll need to recompile Pat with -tags libhamlib."

I'm reasonably confident that conventional hamlib works just fine, since WSJT-X uses it. This raises the question: how exactly do I recompile Pat with -tags libhamlib?

Carlos

unread,
Mar 20, 2021, 6:45:43 PM3/20/21
to pat-users
It sure works on the Mac. Admittedly I used this on an old Mac a few years ago and you’ll need to change the device name:

rigctld -m 120 -r /dev/tty.usbserial-A603I02H -s 38400 -t 4532 -C stop_bits=2&


That was for an FT-817nd


Ken Hagler

unread,
Mar 21, 2021, 12:48:07 AM3/21/21
to Carlos, pat-users
On Mar 20, 2021, at 5:45 PM, Carlos <cve...@gmail.com> wrote:
>
> It sure works on the Mac. Admittedly I used this on an old Mac a few years ago and you’ll need to change the device name:
> rigctld -m 120 -r /dev/tty.usbserial-A603I02H -s 38400 -t 4532 -C stop_bits=2&

This made me realize I was missing an ‘r’, which got me moving again. I finally got the following line to work:

rigctld -m 1023 -r /dev/cu.usbserial-AG6BJM6Y -s 38400 -p /dev/cu.usbserial-AG6BJM6Y -P RTS

So, progress!

I did find some build instructions for Pat here:

https://github.com/la5nta/pat/wiki/Building-from-source

I considered trying to rebuild it to use hamlib just so I wouldn’t have to jump through a pointless extra hoop, but then it occurred to me that there probably wouldn’t be any way to actually set the relevant preferences if I did. :-/
--
Ken Hagler

| http://www.orange-road.com/ |
| And tho' we are not now that strength which in old days |
| Moved earth and heaven, that which we are, we are --Tennyson |

signature.asc
Reply all
Reply to author
Forward
0 new messages