armadsen / ORSSerialPort

Serial port library for Objective-C and Swift macOS apps
MIT License
753 stars 183 forks source link

Serial Break #134

Closed jdelaune closed 5 years ago

jdelaune commented 5 years ago

Is it possible to send a serial break?

Thanks

armadsen commented 5 years ago

Not directly with the ORSSerialPort API, no. To be honest, this is the first time this question has come up. You may be able to use tcsendbreak() on the underlying file descriptor for the serial port, but that's not something I've tested myself. The file descriptor is available in the fileDescriptor property on ORSSerialPort. That's a "private" property, not exposed in the public interface, but you could redeclare it in a category to access it, at least to try this approach out. If you get it working, I'd love to know about it.

armadsen commented 5 years ago

Closing as answered.