Note that there are some explanatory texts on larger screens.

plurals
  1. POMac - Virtual Serial Port
    text
    copied!<p>I need to create a Cocoa app that will create a virtual serial port available to other apps, meaning registered in the IO Kit Registry. </p> <p>Gist of the app: </p> <ul> <li>Create a virtual serial port (listed in /dev and registered with the IOKit Registry)</li> <li>Initiate a tcp connection out to another computer</li> <li>Proxy everything received on the virtual serial port out to the network and vice versa.</li> </ul> <p>This app will be used by third party apps that talk to serial ports on the computer, allowing for the particular serial device to be located across the network. The Cocoa and network part is no problem, I've written several apps that talk over the network. My hangup is the serial port. </p> <p>I've done the test with socat/netcat/minicom to verify that it all works to proxy pty/tty traffic over the network but the tty I use doesn't show up as usable by random applications because it's not registered in the IO Kit Registry.</p> <p>While I can use a pty/tty master/slave for the communication, I need this slave tty to show up to Mac applications. What would be very handy is a way to register a tty in the IO Kit Registry. </p> <p>Do I really need to create a custom IOKit kext driver that gets registered at Cocoa app runtime? If so, I have a big learning curve ahead of me. Where should I start reading? Or, can I use IOKit to create a virtual serial port and register it as a usable serial port for applications without having to load any kernel extensions?</p> <p>Thank you for any help you can provide,<br> Stateful</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload