LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Understanding USB (https://www.linuxquestions.org/questions/linux-newbie-8/understanding-usb-605955/)

vcore 12-10-2007 11:23 PM

Understanding USB
 
I'm having some problems working with USB on my Xandros system.

basically I am getting something like this "unrecognized option '/dev/ttyUSB0'"

1) Can someone help explain the difference between USB0, USB1, and ttyUSB0?


2) If I run lsusb it returns : Bus 002 Device 002: ID 1199:0120 Sierra Wireless, Inc.

Does this tell me if I should be using a certain USB designation?


Thanks so much

Simon Bridge 12-10-2007 11:42 PM

Quote:

basically I am getting something like this "unrecognized option '/dev/ttyUSB0'"
"Something like"? We need to see the exact error. What are you doing to get this error? What are you trying to achieve?

Quote:

Sierra Wireless, Inc.
You are trying to get your wireless car to work? AFAIK: Sierra wireless cards have poor linux support, but there are ways for specific cards. (Hint hint.)

vcore 12-11-2007 12:14 AM

Thanks for the fast response Simon.

Well, I am trying to get a Sierra Wireless 595u mobile broadband card to work with Xandros but so have have been unable.

The error that is confusing me is:
pppd: In file /etc/ppp/peers/1xevdo: unrecognized option '/dev/ttyUSB0'

I was also hoping someone could help explain the basics (or link me to a place that does) of USB vs. USB1 vs. that ttyUSB0 and ACM, which is the original reason I posted here in the newbies section.

Thanks for all your time and effort.

Simon Bridge 12-11-2007 01:13 AM

Quote:

pppd: In file /etc/ppp/peers/1xevdo: unrecognized option '/dev/ttyUSB0'
What do you do to elicit this response? You are not just sitting there minding your own business, you did something: what was it?

http://www.sierrawireless.com/faq/ShowFAQ.aspx?ID=607
pppd is not normally appropriate for a wireless card - however, sierra have set their cards to interface as if they were dailup modems (shudder). Don't know if this extends to the current GPL drivers though.

MP595 is supported. Don't know if this includes the 595u though.
Kernel 2.6.23+ includes the drivers and patches.
The site has a warning:
Quote:

IMPORTANT!! If you have a CDMA device and it has not yet been activated you must first use the device on a Windows system with the supplied connection manager. Some carriers do pre-activation, however it is still recommended to first try the device on a Windows machine.
... check with your carrier. Do they do pre-activation?

What does "modinfo sierra" tell you?
What does "pppd call CDMA" tell you?

Funny... suspect your modem is at /dev/USB/ttyUSB1
These devices are only created while the modem is present and detected, so ls /dev/ttyU* should give you a list.

If none are present (they are normally a link to /dev/USBx anyway) then point pppd at the existing /dev/USB0,1,2,3... etc until you get a hit.

vcore 12-11-2007 10:40 AM

The command issued to get the system to put out:
pppd: In file /etc/ppp/peers/1xevdo: unrecognized option '/dev/ttyUSB0'
was:
pppd call 1xevdo

As for the 595u, it has been activated and works well on a Windows notebook.

modinfo sierra:
filename: /lib/modules/2.6.21.4-eeepc/kernel/drivers/usb/serial/sierra.ko
author: Kevin Lloyd <linux@sierrawireless.com>
description: USB Driver for Sierra Wireless USB modems
version: v.1.0.6
license: GPL
vermagic: 2.6.21.4-eeepc mod_unload PENTIUMM
depends: usbserial,usbcore
alias: usb:v1199p0017d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0018d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0218d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0020d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0019d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0021d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6802d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6804d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6803d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6812d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6820d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0112d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0F3Dp0112d*dc*dsc*dp*ic*isc*ip*
srcversion: 35E80830DFEBA15175431D8

and

pppd call 1xevdo:
pppd: In file /etc/ppp/peers/1xevdo: unrecognized option '/dev/ttyUSB0'

and:
ls /dev/USB/ttyUSB1
ls: /dev/USB/ttyUSB1: No such file or directory
ls /dev/USB/ttyUSB0
ls: /dev/USB/ttyUSB0: No such file or directory

does any of this help? Thanks

Simon Bridge 12-11-2007 11:01 AM

Sort of... it is clear that the /dev/USB directory hasn't been created' and you have the driver you need. The link I gave has a howto to get pppd to dial with your modem. However, the howto also uses /dev/USB/ttyUSB0 as the device.

ls -d /dev/USB ... bet that directory doesn't exist.

Chances are that it is one of your /dev/usbx files then. Change your pppd configuration to use /dev/usb1 then /dev/usb2 then... etc. I've had reports of modems being found on one of those. Stop when one of them works.

mapleneckblues 04-11-2008 06:54 PM

Hi,

I have the same problem and changing my /etc/ppp/peers/gsm file to point to /dev/usb* does not help either.

/dev lists the following
usbdev1.1_ep00 usbdev2.1_ep00 usbdev3.1_ep00 usbdev4.13_ep00 usbdev4.13_ep04 usbdev4.13_ep81 usbdev4.13_ep84 usbdev4.1_ep00 usbdev5.1_ep00 usbmon0 usbmon2 usbmon4
usbdev1.1_ep81 usbdev2.1_ep81 usbdev3.1_ep81 usbdev4.13_ep02 usbdev4.13_ep05 usbdev4.13_ep82 usbdev4.13_ep85 usbdev4.1_ep81 usbdev5.1_ep81 usbmon1 usbmon3 usbmon5

Pointing to /dev/usbdevx.y-epvw gives

Failed to open /dev/usbdev4.13_ep00: No such device or address

(4.13_epxx are created when i plug in my modem).

dmesg shows the following on plugging in the modem:

usb 4-1: new full speed USB device using uhci_hcd and address 14
usb 4-1: configuration #1 chosen from 1 choice
usb-storage: device ignored
sierra: probe of 4-1:1.0 failed with error -5
usb 4-1: USB disconnect, address 14
usb 4-1: new full speed USB device using uhci_hcd and address 15
usb 4-1: configuration #1 chosen from 1 choice


I am running fc8 and have the sierra wireless drivers preinstalled and loaded

modinfo sierra gives the following:

filename: /lib/modules/2.6.23.1-42.fc8/kernel/drivers/usb/serial/sierra.ko
license: GPL
version: v.1.2.5b
description: USB Driver for Sierra Wireless USB modems
author: Kevin Lloyd <linux@sierrawireless.com>
srcversion: A86FB5D609F70624155BE46
alias: usb:v1199p0FFFd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0F3Dp0112d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0112d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6853d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6852d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6851d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6850d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6833d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6832d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6820d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6812d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6803d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6804d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p6802d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0120d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0021d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0019d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0020d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0F30p1B1Dd*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0218d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0018d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1199p0017d*dc*dsc*dp*ic*isc*ip*
depends: usbserial
vermagic: 2.6.23.1-42.fc8 SMP mod_unload 686 4KSTACKS

I am trying to use the sierra wireless ac881u usb dongle.

Any help would be really appreciated,
Thanks,
-A.


All times are GMT -5. The time now is 12:58 PM.