ttyS0 / com1 Doesn't Exist

Hello everyone.

I have installed OpenSuse 11.1 and got the problem that there is no serial port, at least not the way that I could access it. However, I need it for printing on an EPSON ESC/POS printer. In Slackware 12 and Windows Vista it works all fine, and I’ve noticed that OpenSuse is looking for a modem device on that port when you run YaST (obviously it is sending control characters to the printer, which then are printed).

Anyone got an idea how I could solve this problem?

Does the device exist?

ls -l /dev/ttyS0

Is any process listening on it? Like a login or a serial protocol process? If so you have to disable it. It will interfere with the printing.

Who are you running the printing process as? The device is owned by root, group uucp.If you are running the process as yourself, you should add yourself to the uucp group.

I’ve tried it with the user groups, I even tried it as root. The output of ls is as follows:

crw-rw---- 1 root uucp 4, 64 31. Jan 17:03 /dev/ttyS0

How exactly can I find a process that is blocking ttyS0?

Try

lsof | grep ttyS0

As root of course. Normally there should be nothing holding it open, unless you have enabled logins or networking on that terminal.

You could also try something simpler like a terminal program like minicom to check that the connection is working.

Alright, I got it working yesterday. Sorry for the late reply, I’ve been too busy. Thanks for the help! :slight_smile:

KovuTN schrieb:
> Alright, I got it working yesterday. Sorry for the late reply, I’ve been
> too busy. Thanks for the help! :slight_smile:

Care to share how you did it?


Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany

I already add myselft to the uucp group. Still no connection.
I wine my application on root and it made a connection. I wouldn’t know you only need to be root to use it.
I also wouldn’t play with the permission of /dev/ttyS0.
Anyone would know a work around?

-John