Serial Port Hardware Handshake not working under OS X?

Mac OSX specific forum
m1bfp
New User
New User
Posts: 6
Joined: Mon Jan 22, 2018 2:55 pm

Serial Port Hardware Handshake not working under OS X?

Post by m1bfp »

Hello,

I am trying to send a text file to a radio modem (Terminal Node Controller). The text file is being sent as a String called send$.

Port Settings are-
OpenSerialPort(0, "/dev/" + "tty.usbserial", 19200, #PB_SerialPort_NoParity, 8, 1, #PB_SerialPort_RtsCtsHandshake, 1024, 1024)

Sent using the command -
WriteSerialPortString(0, send$, #PB_Ascii)

Now, Under Windows XP running on a Macbook using Bootcamp this works fine. The whole File or string ends up at the destination complete and intact.
Under OS X I only get about 1k worth of data sent before it fails to send anymore. Like the Hardware handshaking is not working.

This is all done using the same usb - serial adapter (prolific) and cable on both systems but it always fails on the Mac.
I also have XP running under VirtualBox on my Mac which also completes sending of the file, so the Handshaking seems to be working on that ok.

So, Am I doing something wrong?
Is there a Hardware Handshaking problem in the Mac version of Purebasic?
Is it a Mac version Driver problem for the USB - Serial adapter?
Can anyone confirm that Hardware Handshaking works on the Mac version of Purebasic?

Thank you for any help. I am only a hobbyist programmer so my skills are very limited!

Dave
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Serial Port Hardware Handshake not working under OS X?

Post by infratec »

Hi,

maybe I can check it with an oscilloscope during the next week.
Up to now I never used handshake on a Mac.

Bernd
m1bfp
New User
New User
Posts: 6
Joined: Mon Jan 22, 2018 2:55 pm

Re: Serial Port Hardware Handshake not working under OS X?

Post by m1bfp »

Hello Bernd,

Thank you for your help. It will be interesting to see what you find.

Dave
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Serial Port Hardware Handshake not working under OS X?

Post by infratec »

Hi,

last week I tried to do some tests, but ...

I tried to use a PB program with 5.46LTS x64 and 5.62b2 x64 in both cases my program crashes after CloseSerialPort().

Can you confirm this? Which PB version do you use?

Bernd
m1bfp
New User
New User
Posts: 6
Joined: Mon Jan 22, 2018 2:55 pm

Re: Serial Port Hardware Handshake not working under OS X?

Post by m1bfp »

Hello Bernd,

The version I am using is 5.61 x64 under HighSierra.
I think I may have even tried an earlier version as well to see if it gave different results but no change.
As for the CloseSerialPort() statement I have not used it yet as the port is constantly open and in use.

I really enjoy writing code to talk to various radios and tnc's on the Mac and this little problem has stopped progress in its tracks.
Once again thank you for any help that you can provide.

Dave
Post Reply