[an error occurred while processing this directive] Frequently Asked Questions for FreeBSD 2.X : Serial Communications : How do I access the serial ports once FreeBSD is running?
Previous: Hey, I just upgraded to 2.0.5 and my tty0X are missing!
Next: How do I configure the kernel for my multiport serial card?

11.3. How do I access the serial ports once FreeBSD is running?

The third serial port, sio2 (known as COM3 in DOS), is on /dev/cuaa2 for dial-out devices, and on /dev/ttyd2 for dial-in devices. What's the difference between these two classes of devices?

You use ttydX for dial-ins. When opening /dev/ttydX in blocking mode, a process will wait for the corresponding cuaaX device to become inactive, and then wait for the carrier detect line to go active. When you open the cuaaX device, it makes sure the serial port isn't already in use by the ttydX device. If the port's available, it ``steals'' it from the ttydX device. Also, the cuaXX device doesn't care about carrier detect. With this scheme and an auto-answer modem, you can have remote users log in and you can still dialout with the same modem and the system will take care of all the conflicts.


Frequently Asked Questions for FreeBSD 2.X : Serial Communications : How do I access the serial ports once FreeBSD is running?
Previous: Hey, I just upgraded to 2.0.5 and my tty0X are missing!
Next: How do I configure the kernel for my multiport serial card? [an error occurred while processing this directive]