LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2008, 08:54 AM   #1
baddah
Member
 
Registered: Feb 2006
Location: Cape Town,South Africa
Distribution: Fedora Core 8
Posts: 185

Rep: Reputation: 30
Log into serial port remotely


Hi,

I'm trying to connect to a serial device on a remote linux server. So the serial device is connected to a remote box's serial port. I am ssh 'ing into that server, and now i want to connect to the device on the serial port. (like using cutecom,only now i only have text mode).

How can i connect to this device in runlevel 3.(Text mode.)

Any program i can install that will enable this?

Thanks
 
Old 02-05-2008, 09:19 AM   #2
Lepakko
Member
 
Registered: Feb 2008
Location: Mannheim, Germany
Distribution: Debian Etch
Posts: 44

Rep: Reputation: 16
You can use a program called minicom to communicate with a serial device in text mode. Or, if you're running the X server on the computer you're ssh'ing with, you can tunnel X and start cutecom remotely. For this, you need to start ssh with the -X parameter and tunneling X has to be enabled on the SSH settings on the server side. If you only need to send a few bytes to the serial device, you can do this with e.g.

echo -e "message\n" >/dev/ttyS0

and read the serial buffer with

cat /dev/ttyS0
 
Old 02-06-2008, 08:36 AM   #3
baddah
Member
 
Registered: Feb 2006
Location: Cape Town,South Africa
Distribution: Fedora Core 8
Posts: 185

Original Poster
Rep: Reputation: 30
Hi,

I'm trying to connect using minicom to an IP DSLAM that's connected to the pc's serial port.I've got all the settings as i should.I should expect minicom to connect to it right away,am i right?(by running minicom and using the correct settings). I would expect a login prompt, but minicom gives me nothing. I do notice a Offline at the bottom.

My question now,is there any command i can run in linux to check if the device is actually connected on the serial port, and to which one.(/dev/ttyS0,/dev/ttyS1,etc).

Thanks
 
Old 02-06-2008, 11:07 AM   #4
Lepakko
Member
 
Registered: Feb 2008
Location: Mannheim, Germany
Distribution: Debian Etch
Posts: 44

Rep: Reputation: 16
To figure out which device file the device is using you have to try them out one by one. You can setup minicom with the -s switch (as root) or change the configuration within the program to try out different serial ports. Minicom should connect to your device automatically, but I think it's optimized for use with standard modems that use AT commands, so you may first have to type in some initialization commands yourself.
 
  


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
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 02:15 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
Log incomming data from a serial port shoekstr Linux - Hardware 6 05-28-2004 11:53 AM
how do I log out remotely? kleptophobiac Linux - Software 6 01-28-2004 11:16 PM
I need a Advance Serial Port Monitor/Rcvr/Log sfingerh Linux - Software 5 04-09-2003 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration