Help - Pat on MAC OS Big SUR 11.3.1 - Bad address

64 views
Skip to first unread message

KF4ZUO

unread,
Nov 7, 2021, 10:45:44 AM11/7/21
to pat-users
I am trying to get Pat to talk to my PTCIIE modem over USB serial port. It was working but then something went wrong and i get the following error message:

Pactor initialization failed: include serial port: operation system error: bad addresss

 Am able to use the same port to access the model using Serial with no issues at all

I have tried the following
1. Removed the USB driver (using “CSRUTIL” to get at the files which typically cannot be deleted.
2. Reinstalled the driver
3. Removed and reinstalled Pat
4. Checked the USB driver in the configure file and tried both CU and tty versions. TTY used to work

Any help very much appreciated

regards
 Chris 
KF4ZUO on SV BEDOUIN

KF4ZUO

unread,
Nov 9, 2021, 2:34:22 PM11/9/21
to pat-users
Could anyone please point me to how to turn on debug as well as where one would specify the log file name so i can analyze.

Regards
 Chris 
 KF4ZUO
SV BEDOUIN

hare...@gmail.com

unread,
Nov 11, 2021, 2:34:21 AM11/11/21
to pat-users
Hi Chris,

I fear Pat's debugging features will not help here. The problem is that Pat is not able to communicate with the modem at all. 

My advice would be to use a tool like


to figure out the correct device name and to verify that you actually can talk to the modem. 

BTW: you will find the debug option for the modem communication here: https://github.com/harenber/ptc-go#debugging

Good luck! 
 73s 

 Torsten DL1THM

KF4ZUO

unread,
Nov 11, 2021, 3:55:17 PM11/11/21
to pat-users
EC69DF5A-290E-4956-BD71-C752EEB6E220.pngD2A59A59-0ED7-46A0-8593-3C5027029EEB.pngF0B7C5F1-568F-4D25-BDE5-1930596579FE.pngHi Torsten,

Thank you for coming back with the information. 
I have downloaded and connected with no issues. 
Below are screen shots of the outputs. 
Any ideas ?

Dr. Torsten Harenberg

unread,
Nov 12, 2021, 2:17:18 AM11/12/21
to KF4ZUO, pat-users
Hi Chris,

Am 11.11.21 um 21:55 schrieb KF4ZUO:
> Thank you for coming back with the information.
> I have downloaded and connected with no issues.
> Below are screen shots of the outputs.
> Any ideas ?

that is weird! So indeed SerialTools can connect to the modem w/o any
issues but Pat gets a OS error back.

I never tried Pat on a Mac myself, but have a Macbook Pro at QRL which I
can take home home during the weekend. Will try to reproduce the error
and see what I can find out.

The error message you see is most probably coming from the serial
library https://github.com/albenik/go-serial we use to talk to the
serial port.

73s

Torsten DL1THM

KF4ZUO

unread,
Nov 12, 2021, 4:07:04 AM11/12/21
to pat-users
Torsten,

Thanks. I have also used SERIAL as a Terminal program and it too connects without issue. 
I have also downloaded the code and taken a look but i am not familiar with go. Is there a developers guide someplace where i could set it up so i could run under an IDE with debug on and then i could try and help.

Regards
 Chris 

KF4ZUO

KF4ZUO

unread,
Nov 12, 2021, 10:28:17 AM11/12/21
to pat-users
Torsten,

Never mind on code download and documentation. I found it all, have downloaded. Need to change .make_bash file so i can build from source locally for PTC. I will then also take a look and see if i can figure out what is happening. 

73’s
KF4ZUO
 Chris

On Thursday, November 11, 2021 at 2:34:21 AM UTC-5 hare...@gmail.com wrote:

hare...@gmail.com

unread,
Nov 14, 2021, 12:48:29 PM11/14/21
to pat-users
Hi Chris,

I think I could identify the problem: it's in the "github.com/albenik/go-serial/v2" library and starts with the current v2.3.0.

Wrote a small  test program using go-serial, used the recent v2.3.0 and voilà:  this shows exactly the same behaviour you reported. But after downgrading to v2.2.0, the serial device does open normally. 

Problem is that v2.3.0 is pulled in by serial dependencies:

Torsten-Harenbergs-MacBook-Air-2:pat harenber$ go mod graph| grep go-serial
Torsten-Harenbergs-MacBook-Air-2:pat harenber$

Here ends my knowledge about Go dependencies. Maybe Martin has a clever idea how to ensure that the PACTOR driver uses the v2.1.0 which is in its go.mod. 

In any case I will open a bug report with the go-serial developers.

73s

 Torsten DL1THM

hare...@gmail.com

unread,
Nov 14, 2021, 1:03:07 PM11/14/21
to pat-users
hare...@gmail.com schrieb am Sonntag, 14. November 2021 um 18:48:29 UTC+1:

In any case I will open a bug report with the go-serial developers.


KF4ZUO

unread,
Nov 14, 2021, 4:52:25 PM11/14/21
to pat-users
Oh wow - Thank you for finding this. 
I will monitor to see when fixed.

Any ideas on how i get around this for now ?

Regards
 Chris

hare...@gmail.com

unread,
Nov 21, 2021, 5:58:56 AM11/21/21
to pat-users
Hi Chris,

the error was fixed by the author of the library. As soon as a new version is tagged, we can try to build a new Pat version with this error fixed.

Cheers

   Torsten DL1THM

hare...@gmail.com

unread,
Nov 27, 2021, 9:58:30 AM11/27/21
to pat-users
KF4ZUO schrieb am Sonntag, 14. November 2021 um 22:52:25 UTC+1:
Oh wow - Thank you for finding this. 
I will monitor to see when fixed.

Any ideas on how i get around this for now ?


I compiled a Mac version with the bug fixed:


Will update the repo soon, so that it get updated in the next Pat release.

73s

  Torsten DL1THM 
Reply all
Reply to author
Forward
0 new messages