LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-13-2007, 02:29 PM   #1
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Rep: Reputation: 32
Question Connect from FC6 box to other device via serial/usb


I am trying to connect from my linux box to another device using a USB to serial adapter. The device has a terminal available via serial. How do I connect to the terminal on the other device from my Linux box through the serial/usb adapter?

Assuming FC6 has some sort of plugNplay for serial/usb where can i find what /dev/ttyS* the serial device has been associated as? How do I go about opening a connection to that device?

The whole world of serial on Linux is new to me. Any type of tutorials or HOWTOs along these lines would be helpful.


thanks


Steve

distro: FC6
kernel: 2.6.18-1.2798.fc6
 
Old 03-13-2007, 02:39 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The first device will be /dev/ttyUSB0. You can look at the output of the dmesg command in a console window to confirm.

There are several applications, minicom is a console utility and gtkterm is a GUI application. You can google for linux serial programming howto for additional information.
 
Old 03-13-2007, 03:10 PM   #3
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Original Poster
Rep: Reputation: 32
I'm trying to connect w/ minicom and having a bit of trouble is there a more n00b friendly command line terminal program around?


thanks

steve
 
Old 03-13-2007, 03:24 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
There is g-kermit but I do not have any experience using it so I can not say if it is easier. What device are you trying to connect.

If you start minicom with the -s option you can configure the serial port right away.
 
Old 03-13-2007, 03:36 PM   #5
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Original Poster
Rep: Reputation: 32
type of device: a router. I need to be able to remotely access it, even if i hose the ssh server.

Configuration I've tried to do so far w/o any avail-
baud rate 9600
parity= none
dateBit= 8
StopBit= 9

Serial Device= /dev/ttyUSB0

I'm assuming ttyUSB0 is correct, considering the usb2serial cable is the only USB device connected to my box and ttyUSB0 is the only usb device listed in my /dev directory.

thanks for all the help

steve
 
Old 03-13-2007, 03:43 PM   #6
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Original Poster
Rep: Reputation: 32
after quick install of gtkterm, i was able to connect via ttyUSB0. I do not normally have access to X Windows, so thats not really solution (although I now know it is infact the right device...)
 
  


Reply



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
USB device as serial device BlackHatRob Linux - Hardware 1 06-08-2006 07:09 PM
Could not connect to Bluetooth device through the serial port dubrick_vit Linux - Hardware 0 01-16-2006 07:57 AM
USB-Serial Custom Device with C d13VB Programming 0 05-11-2005 09:45 AM
Device driver for a USB to RS-232 Serial DB9 Adapter for red Hat 8 or 9 sp022 Linux - Hardware 1 04-18-2005 09:39 AM
USB->Serial Device hugoveiga Linux - Hardware 0 01-06-2005 07:04 AM

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

All times are GMT -5. The time now is 08:32 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