LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Connect from FC6 box to other device via serial/usb (https://www.linuxquestions.org/questions/linux-hardware-18/connect-from-fc6-box-to-other-device-via-serial-usb-537158/)

Hewson 03-13-2007 02:29 PM

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

michaelk 03-13-2007 02:39 PM

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.

Hewson 03-13-2007 03:10 PM

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

michaelk 03-13-2007 03:24 PM

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.

Hewson 03-13-2007 03:36 PM

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

Hewson 03-13-2007 03:43 PM

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...)


All times are GMT -5. The time now is 02:06 PM.