LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-08-2006, 10:24 AM   #1
chun-mee
LQ Newbie
 
Registered: Jan 2005
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
Serial Port HowTo (Cannot open /dev/ttyS0)


Hi!

My problem is that I have no idea how to make the device actually installed in the serial port actually appear on and be used by the system.

What I need to achieve is to get scmxx to talk to my Siemens ME45 mobile phone using the datacable first (and then IrDA, but that will be another thread). The cable, the phone and the serial port are known to be working (under Windows).

I recently installed Kanotix, which I totally unfamiliar with (2.6.14-kanotix-9), and scmxx returns this message

root@KanotixBox:~# scmxx --info
Using "ANSI_X3.4-1968" as system character set.
Accessing device /dev/ttyS0...
Error: No such file or directory

Error: Cannot open /dev/ttyS0

I type dmesg and there is no sign of the phone that I connect anywhere.

I am using USB palm pda in a similar manner and I have to specify the port manually, but for that device I press hotsync first and then it creates the port so I can see it by typing dmesg, but this phone does not have a hotsync button so how to talk to it usign scmxx?

My feeling is that this could apply to any similar device, and that my problem is that I have no idea how to check if the device is attached to the serial port, or how to talk to it.

Thank you in advance for all the help!
 
Old 07-08-2006, 10:51 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Lets check a few things first.
Are you using com1 on the windows side to communicate?
If so then usually it will be /dev/ttyS0

To see if it exist use the command ' ls -la /dev/ttyS* ' and post output.
If get something like this
Code:
[crusher58@lcomp58 ~]$ ls -la /dev/ttyS*
crw-rw----  1 root uucp 4, 64 Jul  8 05:36 /dev/ttyS0
crw-rw----  1 root uucp 4, 65 Jul  8 05:36 /dev/ttyS1
crw-rw----  1 root uucp 4, 66 Jul  8 05:36 /dev/ttyS2
crw-rw----  1 root uucp 4, 67 Jul  8 05:36 /dev/ttyS3
Then root owns the device and lets no one else to use it. This is a permissions issue.
To fix use the command login as root ' su ' and issue the command ' /sbin/chmod 666 /dev/ttyS0 '.
Now you get the following for ttyS0
Code:
[crusher58@lcomp58 ~]$ ls -la /dev/ttyS*
crw-rw-rw-  1 root uucp 4, 64 Jul  8 05:36 /dev/ttyS0
Now try connecting.

Brian1
 
Old 07-14-2006, 06:35 PM   #3
chun-mee
LQ Newbie
 
Registered: Jan 2005
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
No such file

To see if it exist use the command ' ls -la /dev/ttyS* ' and post output.
If get something like this
Code:
[crusher58@lcomp58 ~]$ ls -la /dev/ttyS*
crw-rw----  1 root uucp 4, 64 Jul  8 05:36 /dev/ttyS0
crw-rw----  1 root uucp 4, 65 Jul  8 05:36 /dev/ttyS1
crw-rw----  1 root uucp 4, 66 Jul  8 05:36 /dev/ttyS2
crw-rw----  1 root uucp 4, 67 Jul  8 05:36 /dev/ttyS3
Hey, Brian, thank you for helping!

I do that, but:
Code:
root@KanotixBox:~# ls -la /dev/ttyS*
ls: /dev/ttyS*: No such file or directory
What next?
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
writing to serial port, /dev/ttyS0 togunter Programming 2 06-08-2008 10:27 AM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 09:07 PM
Unable to communicate using serial port (COM1) /dev/ttys0 vinaybms Linux - Networking 1 03-11-2005 09:08 AM
Serial comms - script to poll /dev/ttyS0 chr15t0 Linux - Networking 1 07-08-2003 11:18 PM
Telnet into Cisco router via /dev/ttyS0 (aka COM1 serial port) naesyllek Linux - Networking 2 06-25-2003 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration