LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-26-2011, 02:12 PM   #1
Aldebaran
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 13.1
Posts: 72

Rep: Reputation: 15
3G modem not visible as /dev/ttyUSBX


Hi.
I'm currently trying to get my Option 0505 3G modem to work in Slackware 13.1.
My Problem is that when I plug the device in no /dev/ttyUSBX appears.
I're read quite a few threads as to connect these modems, but none seems to cover my problems.

This is my dmesg after plugging in:
PHP Code:
usb 1-1: new high speed USB device using ehci_hcd and address 6
usb 1
-1: New USB device foundidVendor=0af0idProduct=d055
usb 1
-1: New USB device stringsMfr=1Product=2SerialNumber=0
usb 1
-1ProductGlobetrotter GI0505
usb 1
-1ManufacturerOption Wireless Technology
scsi9 
usb-storage 1-1:1.0
usb 1
-1USB disconnectaddress 6
usb 1
-1: new high speed USB device using ehci_hcd and address 7
usb 1
-1: New USB device foundidVendor=0af0idProduct=d055
usb 1
-1: New USB device stringsMfr=1Product=2SerialNumber=0
usb 1
-1ProductGlobetrotter GI0505
usb 1
-1ManufacturerOption Wireless Technology
hso
drivers/net/usb/hso.c1.2 Option Wireless
hso0
Disabled Privacy Extensions
usbcore
registered new interface driver hso
CE
hpet increasing min_delta_ns to 33750 nsec 
I then try "#modprobe option", and get output for dmesg:

PHP Code:
usbcoreregistered new interface driver usbserial
USB Serial support registered 
for generic
usbcore
registered new interface driver usbserial_generic
usbserial
USB Serial Driver core
USB Serial support registered 
for GSM modem (1-port)
usbcoreregistered new interface driver option
option
v0.7.2:USB Driver for GSM modems 
I'va also tried to prevent the hso module to load by blacklisting it, and only use the option module, but without any luck.

This is #lsusb:
PHP Code:
Bus 001 Device 001ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004
ID 0bda:0158 Realtek Semiconductor CorpUSB 2.0 multicard reader
Bus 001 Device 005
ID 04f2:b1b8 Chicony Electronics Co., Ltd 
Bus 001 Device 007
ID 0af0:d055 Option 
Bus 002 Device 001
ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002
ID 046d:c062 LogitechInc
Bus 003 Device 001ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002
ID 0489:e00d Foxconn Hon Hai 
Bus 004 Device 001
ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001
ID 1d6b:0001 Linux Foundation 1.1 root hub 
I've also set the usb_modeswitch to logging, this is my /var/log/usb_modeswitch:

PHP Code:
USB_ModeSwitch log from Wed Jan 26 20:42:52 CET 2011

Using 
global config file: /etc/usb_modeswitch.conf
raw args from udev
1-1:1.0/1-1:1.0
USB dir exists
: /sys/bus/usb/devices/1-1
Warning
USB attribute "serial" not found.
----------------
USB values from sysfs:
  
manufacturer  Option Wireless Technology
  product       Globetrotter GI0505
  serial
----------------
SCSI attributes not neededmoving on
checking config
: /etc/usb_modeswitch.d/0af0:d055
matchednow switching
 
(running command: /usr/sbin/usb_modeswitch ---/etc/usb_modeswitch.d/0af0:d055)

verbose output of usb_modeswitch:
--------------------------------
Reading config file: /etc/usb_modeswitch.d/0af0:d055

 
usb-modeswitchhandle USB devices with multiple modes
 
Version 1.1.2alpha (CJosua Dietze 2010
 
Based on libusb0 (0.1.12 and above)

 ! 
PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0af0
DefaultProduct
0xd055
argetVendor
=   not set
TargetProduct
=  not set
TargetClass
=    0xff

DetachStorageOnly
=0
HuaweiMode
=0
SierraMode
=0
SonyMode
=0
GCTMode
=0
MessageEndpoint
not set
MessageContent
="55534243785634120100000080000601000000000000000000000000000000"
NeedResponse=0
ResponseEndpoint
not set
Interface=0x00

InquireDevice disabled
Success check enabled
maxwait time 10 seconds
System integration mode enabled


Looking 
for target devices ...
  
searching devicesfound USB ID 1d6b:0002
  searching devices
found USB ID 0bda:0158
  searching devices
found USB ID 04f2:b1b8
  searching devices
found USB ID 0af0:d055
   found matching vendor ID
   found matching product ID
   target 
class ff not matching
  searching devices
found USB ID 1d6b:0001
  searching devices
found USB ID 046d:c062
searching devices
found USB ID 1d6b:0001
  searching devices
found USB ID 0489:e00d
  searching devices
found USB ID 1d6b:0001
  searching devices
found USB ID 1d6b:0001
 No devices in target mode 
or class found
Looking 
for default devices ...
  
searching devicesfound USB ID 1d6b:0002
  searching devices
found USB ID 0bda:0158
  searching devices
found USB ID 04f2:b1b8
  searching devices
found USB ID 0af0:d055
   found matching vendor ID
   found matching product ID
   target 
class ff not matching
   adding device 
as default
  
searching devicesfound USB ID 1d6b:0001
  searching devices
found USB ID 046d:c062
  searching devices
found USB ID 1d6b:0001
  searching devices
found USB ID 0489:e00d
  searching devices
found USB ID 1d6b:0001
  searching devices
found USB ID 1d6b:0001
 Found devices in 
default mode or class (1)
Accessing device 013 on bus 001 ...

USB description data (for identification)
-------------------------
ManufacturerOption Wireless Technology
     Product
Globetrotter GI0505
  Serial No
.: not provided
-------------------------
Looking for active driver ...
OKdriver found ("dummy")
 
OKdriver "dummy" detached
Setting up communication with 
interface ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
libusb:error [op_clear_haltclear_halt failed error -1 errno 71
 OK
message successfully sent
 Device is gone
skipping any further commands

Checking 
for mode switch (max10 timesonce per second) ...
 
Original device is gone alreadynot checking
 Searching 
for target devices ...
  
searching devicesfound USB ID 0af0:d055
   found matching vendor ID
   found matching product ID
   target 
class ff matching
   adding device
  searching devices
found USB ID 1d6b:0002
  searching devices
found USB ID 0bda:0158
  searching devices
found USB ID 04f2:b1b8
  searching devices
found USB ID 1d6b:0001
  searching devices
found USB ID 046d:c062
  searching devices
found USB ID 1d6b:0001
  searching devices
found USB ID 0489:e00d
  searching devices
found USB ID 1d6b:0001
  searching devices
found USB ID 1d6b:0001

Found target device 014 on bus 001
Target device description data
-------------------------
ManufacturerOption Wireless Technology
     Product
Globetrotter GI0505
  Serial No
.: not provided
-------------------------
 
Found correct target device

Mode 
switch succeededBye.

ok:
--------------------------------
(
end of usb_modeswitch output)

Doing no driver checking or binding for this device
Checking 
for AVOID_RESET_QUIRK attribute
 AVOID_RESET_QUIRK not present

All done
exiting 
As far as I can deduct anything from the usb_modeswitch log, it seems to be able to find the device and switch it, but something else outside is not able to create the /dev/ttyUSBX link.

I'm using the 2.6.33.4-smp kernel that came with the distro.

Ah, one more thing: when i uninstall usb_modeswitch and plug in the 3G modem, it is recognized as a usb memory stick.

The computer is a Lenovo Ideapad S10-3.

Some (alot) of this info may be of no use, but I hope someone may present a solution to my existential, all consuming problem....

Best regards
 
Old 01-26-2011, 11:24 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,464

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Your device should be handled without issue. It appears that udev is detecting the device but that usb_modeswitch is unable to access the serial modem port. Perhaps this is relevant.

From http://www.draisberghof.de/usb_modeswitch/#hardware
Quote:
Annother way of influencing the kernel behaviour is the parameter "delay_use" of "usb-storage" which sets the time in seconds after plugging when the storage device will actually be used (and probably automounted). The default value is 5; this might affect the switching result under certain conditions.
To change the default add in /etc/modprobe.conf:

options usb-storage delay_use=1 (or 10, or other)
 
1 members found this post helpful.
Old 01-27-2011, 12:07 AM   #3
tomtomjkw
Member
 
Registered: Jan 2008
Distribution: Slackware64-current
Posts: 127

Rep: Reputation: 31
Hi

You don't need your modem to show as ttyUSBx. Option modems show as ttyHSOx and the corresponding hsox interface is used instead of pppx; all you need seems to be there:
http://peck.org.uk/forum/index.php/topic,743.0.html.
 
1 members found this post helpful.
Old 01-27-2011, 02:44 PM   #4
Aldebaran
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 13.1
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks for good replies.
As You mentioned the device came up as /dev/ttyHS0 thru /dev/HS3.
I read further and came over an article that suggested to do: #ln -s /dev/ttyHS0 /dev/modem.

This because the KPPP does not have /dev/ttyHS0 as an option in modems.
I've not been able to get the HSOconnect up and running yet. And as far as i know its possible to use the KPPP.

So when i start the KPPP, after setting it up, it states that the modem is found, and ready, but I get an error when dialing:

PHP Code:
ATZ
OK
ATM1L1
OK
ATDT
*99#
ERROR 
I'm guessing it's caused by a minor error in the set up of KPPP. Anyone know how to set this up?

As far as my original question is concerned, I know it's solved, but I'll wait a few hours to see if this last minor problem also gets solved before I change the status.

Best Regards
 
Old 01-27-2011, 10:18 PM   #5
tomtomjkw
Member
 
Registered: Jan 2008
Distribution: Slackware64-current
Posts: 127

Rep: Reputation: 31
More links:
http://www.pharscape.org/forum/index...pic,809.0.html

Follow the manual, should be ok. I haven't been using hso-based modems for a couple of time so I'm pretty suprised that HSOConnect has graphical interface now Try it instead of kppp.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora 13 will not connect to Internet - modem is visible with Dns shown Iseeawl Linux - Networking 10 01-24-2011 07:48 AM
External HD partition not visible under /dev/sdb Setya Linux - General 4 10-20-2010 05:58 AM
Char device not visible in /dev cold Linux - Kernel 1 02-03-2009 07:50 AM
Force a USB device to use a specific /dev/ttyUSBX garnser Linux - Software 4 02-10-2006 06:28 AM
USB pilot-link under Fedora Core 3: /dev/ttyUSBx there but not there reeder.29 Linux - Laptop and Netbook 2 10-17-2005 10:25 AM


All times are GMT -5. The time now is 07:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration