Serial Port Hardware Handshake not working under OS X?
Posted: Mon Jan 22, 2018 3:46 pm
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
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