Now the problem: I know how to set up serial ports, including selection from a drop-down list, etc. But how can I detect if one or more of the serial ports reported by the system is already in use by another application?
[quote=100319:@Richard Francis]Firstly: I’m using MacOS X
Now the problem: I know how to set up serial ports, including selection from a drop-down list, etc. But how can I detect if one or more of the serial ports reported by the system is already in use by another application?
[/quote]
Normally, opening a port will change DataCarrierDetect, maybe other hardware signal pins. You may want to use the code example from http://documentation.xojo.com/index.php/Serial.DataCarrierDetect to monitor the pins of a serial port, and open it from another application, to see what kind of change occurs.