LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-29-2010, 05:19 PM   #1
debsys07
Member
 
Registered: Mar 2007
Posts: 46

Rep: Reputation: 16
Using USB Serial Adapter for IP Traffic


My regular (Debian) server has a serial connection to an external processor. The server's ppp daemon is started for an IP connection as shown below. It is used for tftp, mounting a remote drive, ssh, etc.

/usr/sbin/pppd ttyS0 115200 lock -detach local passive persist noauth allow-ip 192.168.4.2 192.168.4.1:192.168.4.2 &

I want to set up a laptop as a mobile "server" occasionally to communicate to the same device but being a late model laptop it has no serial port. Is attaching one of the USB-to-serial adapters a transparent way to accomplish this? In other words, would the ppp daemon start the same way as above or do I have to do more complicated things to deal with the USB?

Thanks,
Ron
 
Old 07-29-2010, 05:33 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,743

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
Yes, assuming your usb serial port adapter is recognized the device ID will be /dev/ttyUSB0
 
Old 12-20-2010, 05:32 PM   #3
debsys07
Member
 
Registered: Mar 2007
Posts: 46

Original Poster
Rep: Reputation: 16
I had to drop this issue some months ago, but am now back to trying to solve it.

I tried the same command to start the ppp daemon using the /dev/ttyUSB0, but no luck. I get the error msg

LCP: timeout sending Config-Requests

and pinging the subordinate address gets no answer. Are any of the command options I'm using inappropriate for USB-as-serial?

Thanks,
Ron
 
Old 12-20-2010, 05:49 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,743

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
Does /dev/ttyUSB0 exist?
Post the output of the command:
lsusb
 
Old 12-20-2010, 06:17 PM   #5
debsys07
Member
 
Registered: Mar 2007
Posts: 46

Original Poster
Rep: Reputation: 16
Yes, it exists:

crw-rw---- 1 root dialout 188, 0 2010-12-20 15:13 /dev/ttyUSB0

'lsusb' results:
Bus 002 Device 006: ID 1a86:7523 Unknown HL-340 USB-Serial adapter
Bus 002 Device 004: ID 0461:4d81 Primax Electronics, Ltd
Bus 002 Device 003: ID 413c:2101 Dell Computer Corp. SmartCard Reader Keyboard
Bus 002 Device 002: ID 8087:0020
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Hmmm. So I need to identify the adapter? I think I picked it up at BestBuy or Office Depot & didn't keep any specs on it, if there were any. I saw a mention of using the insmod command with vendor & product identifiers as I've been googling around, but was hoping not to have to do that. Shucks -- what happened to universality? :-)

Ron
 
Old 12-20-2010, 06:26 PM   #6
debsys07
Member
 
Registered: Mar 2007
Posts: 46

Original Poster
Rep: Reputation: 16
Ooh -- never mind. I had been using a null modem adapter for the serial connection on the old system & still had that between the serial line & the USB-to-serial adapter. That was probably causing the problem with the system unable to ID the adapter. When I took that out of the picture things work fine.

Thanks so much for your help anyway.

Ron
 
  


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
USB-Serial Adapter problem oceanfun Linux - Hardware 1 10-26-2005 06:29 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 - Networking

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