Chapter 7. Using a Serial Port with Wine

Table of Contents
Serial Port Access
Modem Access

This chapter will cover using serial ports with applications and get modem access. For setting up Winsock TCP/IP connections, please refer to the chapter Chapter 6.

Serial Port Access

To access a serial port with Wine applications, the serial port must be set up in win.ini and Wine configuration file properly as described above in Chapter 5. In addition, you need access to the serial port. Normally the serial ports belong to the group "dialout".
ls -al /dev/ttyS*
crw-rw----   1 root     dialout    4,  64 Feb 13 14:32 /dev/ttyS0
crw-rw----   1 root     dialout    4,  65 Aug  1  1997 /dev/ttyS1
crw-rw----   1 root     dialout    4,  66 Aug  1  1997 /dev/ttyS2
crw-rw----   1 root     dialout    4,  67 Aug  1  1997 /dev/ttyS3
If you want a user to be able to connect the port directly, you should add him or her to the group dialout. Some people make /dev/ttyS0 (or any other port worldwide read and writable. But that's not a good idea.

To add a user to the group dialout, you could do that using gpasswd. You will have to be root to do so. Syntax: gpasswd -a user group.
$ sudo gpasswd -a luser dialout
Adding user luser to group dialout
Now the user luser may access the serial ports.