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 08-05-2011, 09:05 PM   #1
takayama
Member
 
Registered: Sep 2009
Posts: 97

Rep: Reputation: 0
Usb to serial adapter.


Hello
I have bought this, http://www.vscom.de/608.htm and have it connected to a small computer with ssh. I dont really understand how im supposed to connect to the switches i have connected with to the seriel adapter with linux.
 
Old 08-05-2011, 09:26 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
It would help to know what kind of devices you are attaching to it.
 
Old 08-05-2011, 09:40 PM   #3
takayama
Member
 
Registered: Sep 2009
Posts: 97

Original Poster
Rep: Reputation: 0
Well some switches and firewalls of different brand, but is that really relavant?
 
Old 08-05-2011, 09:55 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Yes, it is important.

If they are ethernet switches, they are not going to work.

This device does serial communication. Are they serial devices?
 
Old 08-06-2011, 02:54 AM   #5
takayama
Member
 
Registered: Sep 2009
Posts: 97

Original Poster
Rep: Reputation: 0
I still dont really get it, i have one minicomputer connected to this adapter with a usb cable. From the adapter i have serialcabels to the differnt switches/firwalls managment interface (serial)
 
Old 08-06-2011, 04:52 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
We use those deals for a lot of legacy deals. QNX and other OS's use them. If you installed it correctly the rs-232c would be as any other rs-232. They do seem to lock up a lot too.
 
Old 08-08-2011, 11:02 AM   #7
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Is this for configuring the switches? You'd need to download a terminal emulator like minicom to allow you to talk to them (Like Hyperterminal in Windows)
I assume your system sees the adapter? You can check this by running
Code:
dmesg
before pluggin it in and again after. The adapter should be identified somewhere within the messages if you've a chance.
Note you have to run minicom from a terminal and as root (It has to "claim" a usb port as a hardware resource to allow you to use it.)

Check
Code:
man minicom
for setup details.

Play Bonny!
 
Old 08-09-2011, 09:54 AM   #8
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
Hi there

There is a trap for the inexperienced when using USB to RS232 converter cables.
The problem seems to apply to a subset of the adapters, wherein the manner in which they "simulate" the hardware control signals on the RS232 interface side of the device are less than perfect timing wise. Just because the manufacturer specifies that all of the RS232 control signals are supported by pins in the interface doesn't necessarily imply that the timing of the state changes of the control signals is in strict accordance with the RS232 standard in normal operation.

If you are having problems with a USB to RS232 interface I recommend that you connect the RS232 side to another PC running a terminal emulator and verify the output of the device;
and if that appears to be correct try cabling an RS232 protocol monitoring device (eg. PC with a real RS232 serial port, running a monitoring program) or or an RS232 protocol monitor (ie a purpose built test instrument), and examine what is actually taking place during data transmission between your PC (to which the USB-RS232 device is connected) and the external device in question. It may indeed come down to RS232 control signal transition timing issues.

Given older PCs with Serial ports are as cheap as chips these days it might pay to do some initial testing with a PC with a "real" RS232 port, and them move on to using your machine with a USB to RS232 converter.

If you are interested, Google the subject of USB to RS232 control signal timing issues/problems for further reading.

Hope that assists

C.
 
Old 08-09-2011, 10:04 AM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Do this:

Code:
tail -f /var/log/messages
Plug in the adapter. Note it's USB port (ttyUSB0 probably)

Install minicom

Code:
yum install minicom
Start minicom

Code:
minicom -s
Go to serial port config, add this to "serial device" (or whatever USB port it configured in messages)

Code:
/dev/ttyUSB0
Go to modem and dialing, remove the "init string"

Save as default

Plug in the adapter to a serial port on a switch and open minicom

Code:
minicom
Thats all there is to it.
 
Old 08-17-2011, 07:41 PM   #10
MaxMus
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
Thanks a lot for the info. I got an USB to Serial adapter with a FTDI chipset and drivers. Followed above instructions and it works flawlessly. Connected the serial end to another old PC with a serial port, and there seems to be no problems with timing. Im receiving everything I send from the other computer, so there seems to be no problems with timing.
 
  


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->Serial adapter abolishtheun Linux - Hardware 3 11-25-2008 07:13 PM
Obscure USB-serial adapter ratman96 Linux - Hardware 23 01-06-2007 11:02 PM
USB - Serial RS232 Adapter blox Linux - Hardware 3 01-28-2005 10:58 AM
zoom external serial with usb to serial adapter foustware Linux - Hardware 1 12-07-2003 02:02 AM
serial-usb adapter DMRansom Linux - Hardware 1 11-21-2003 10:22 AM

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

All times are GMT -5. The time now is 05:40 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
Open Source Consulting | Domain Registration