openSUSE Forums > Network/Internet » How to configure USB modem in opensuse 11.1

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 2 of 3 1 2 3
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 20-Sep-2009, 12:45
vendetta18's Avatar
Explorer Penguin
 
Join Date: Oct 2008
Location: Pune, India
Posts: 233
vendetta18 hasn't been rated much yet
Send a message via MSN to vendetta18 Send a message via Yahoo to vendetta18 Send a message via Skype™ to vendetta18
Default Re: How to configure USB modem in opensuse 11.1

Tried above method but the script gets hung at
Code:
Looking for target devices ...
 Found devices in target mode or class (1)
Looking for default devices ...
 Found default devices (1)
Accessing device 013 on bus 001 ...
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached
__________________
Thanks,
Vivek Bhat
(
Linux User #496540)
Reply With Quote
  #12 (permalink)  
Old 20-Sep-2009, 14:58
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,884
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: How to configure USB modem in opensuse 11.1

This line that you quoted tells the codes:
Quote:
usb 1-1: New USB device found, idVendor=12d1, idProduct=140b
Check that the usbserial driver exists with this command (run su to become root first):
Code:
modprobe -l usbserial
It should return someting like this:
Code:
/lib/modules/2.6.27.29-0.1-default/kernel/drivers/usb/serial/usbserial.ko

Then run this command (still as su root):
Code:
modprobe -v usbserial vendor=0x12d1 product=0x140b
See this tutorial for an example: Wireless broadband in Suse/openSUSE for Bigpond Next G Network (HSDPA-enabled bp3-usb)
Except that example didn't have the complication of the pseudo CD device.

Might be worth a try.
__________________
Drop in and visit some time.

Last edited by swerdna; 20-Sep-2009 at 15:05.
Reply With Quote
  #13 (permalink)  
Old 20-Sep-2009, 15:05
Wise Penguin
 
Join Date: Jun 2008
Location: NZ
Posts: 1,851
deano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura about
Default Re: How to configure USB modem in opensuse 11.1

Hi vendetta18. I see you are still trying to get your device to be seen as a modem. The udev rule you created will not work, since it is trying to assign the block device as a modem. The way forward is to expose the modem device, which can only be done after disabling the storage device.

Your dmesg results show

Quote:
scsi 11:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
sr1: scsi-1 drive
sr 11:0:0:0: Attached scsi CD-ROM sr1
sr 11:0:0:0: Attached scsi generic sg2 type 5
From a terminal (as root) try

eject /dev/sr1
modprobe -r usb_storage

A commmon manual approach was then to reload the usbserial module with something like

modeprobe usbserial vendor=<0xvendorid> product=<0xproductid>

but you need the actual modem device ID first. I can't remember, but this may be shown with 'lshal -m' running in another terminal while issuing the first commands I mentioned.

Anyway, see if you have any usb serial ports available with

ls -l /dev/ttyU*

Does anything get reported?

I note the usb_modeswitch link given from your guide link has this in the Troubleshooting section.

Quote:
In newer kernels, some device families (Huawei, ZTE since 2.6.26) get a special treatment in the usb-storage code to enable switching right away. You don't even need USB_ModeSwitch anymore; on the other hand you have no choice of accessing the "CD-ROM" part of your device. Plus, there were cases when the special treatment obviously brought no results and even prevented USB_ModeSwitch to work properly afterwards (happened with ZTE devices, error "-2").
So it appears this utility is not needed for Huawei devices at least.
Reply With Quote
  #14 (permalink)  
Old 20-Sep-2009, 21:29
Wise Penguin
 
Join Date: Jun 2008
Location: NZ
Posts: 1,851
deano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura about
Default Re: How to configure USB modem in opensuse 11.1

A blog I found that may help you get your Huawei EC 1260 (aka Reliance NetConnect Broadband) to work:

tata-indicom-photon-and-reliance-netconnect-broadband-on-ubuntu

Note: There should be no need to issue the mknod commands. The kernel should take care of the /dev/tty/USB0 device creation for you.

Once you have /dev/ttyUSB0 (or similar), it should be possible to dial out via wvdial or KInternet (configured via YaST).
Reply With Quote
  #15 (permalink)  
Old 21-Sep-2009, 06:28
vendetta18's Avatar
Explorer Penguin
 
Join Date: Oct 2008
Location: Pune, India
Posts: 233
vendetta18 hasn't been rated much yet
Send a message via MSN to vendetta18 Send a message via Yahoo to vendetta18 Send a message via Skype™ to vendetta18
Default Re: How to configure USB modem in opensuse 11.1

Finally its done Thanks a lot deano_ferrari and swerdna for sticking out on this for me, a lot of thanks again

Here is the solution:
The device was actually acting like a storage device. Here are the steps I undertook to make system recogonise it as a modem instead of a storage device:

Get the device id by using dmesg or devadm.
Code:
$ lsusb
Bus 003 Device 003: ID 12d1:140b Huawei Technologies Co., Ltd.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 138a:0001
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 093a:2510 Pixart Imaging, Inc.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 064e:a127 Suyin Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


The bold part will be my vendor id and product id. So my product id was "0x140b" and vendor id is "0x12d1".
Now with this information I took further steps:
Code:
$ modprobe -r usb-storage usbserial
$ modeprobe usbserial vendor=0x12d1 product=0x140b
After that execute usb-modeswitch

Now check
/etc/usb_modeswitch.confto check if it contains your device definitions. Mine was not there, so I added:

Code:
DefaultVendor=  0x12d1
DefaultProduct= 0x140b

TargetVendor=   0x12d1
TargetProduct=  0x140b

# only for reference
# MessageEndpoint=0x07

MessageContent="555342431234567824000000800008FF05B112AEE102000000000000000000"
Now I executed "usb_modeswitch -W". The output is like
Code:
 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 1.0.2 (C) Josua Dietze 2009                              
 * Works with libusb 0.1.12 and probably other versions             

Reading config file: /etc/usb_modeswitch.conf
DefaultVendor=  0x12d1                       
DefaultProduct= 0x140b                       
TargetVendor=   0x12d1                       
TargetProduct=  0x140b                       
TargetClass=    not set                      

DetachStorageOnly=0
HuaweiMode=0       
SierraMode=0       
SonyMode=0         
MessageEndpoint= not set
MessageContent="555342431234567824000000800008FF05B112AEE102000000000000000000"
NeedResponse=0                                                                 
ResponseEndpoint= not set                                                      
Interface=0x00                                                                 

InquireDevice enabled (default)
Success check disabled         

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 003                    
usb_os_find_busses: Found 006                    
usb_os_find_busses: Found 005                    
usb_os_find_busses: Found 004                    
usb_os_find_busses: Found 002                    
usb_os_find_busses: Found 001                    
usb_os_find_devices: Found 003 on 003            
usb_os_find_devices: Found 001 on 003            
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 006                            
usb_os_find_devices: Found 002 on 005                            
usb_os_find_devices: Found 001 on 005                            
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 004                            
skipped 1 class/vendor specific interface descriptors            
usb_os_find_devices: Found 001 on 004                            
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002                            
usb_os_find_devices: Found 002 on 001                            
skipping descriptor 0xB                                          
skipped 1 class/vendor specific endpoint descriptors             
skipped 6 class/vendor specific interface descriptors            
skipping descriptor 0x25                                         
skipped 1 class/vendor specific endpoint descriptors             
skipped 9 class/vendor specific interface descriptors            
usb_os_find_devices: Found 001 on 001                            
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
 Found devices in target mode or class (1)
Looking for default devices ...           
 Found default devices (1)                
Accessing device 003 on bus 003 ...       
Using endpoints 0x02 (out) and 0x82 (in)  
Not a storage device, skipping SCSI inquiry

Device description data (identification)
-------------------------               
Manufacturer: HUA�WEI TECHNOLOGIES      
     Product: HUAWEI Mobile             
  Serial No.: �������������������       
-------------------------               
Looking for active driver ...           
 OK, driver found ("usbserial_generic") 
 OK, driver "usbserial_generic" detached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x02 ...
 OK, message successfully sent                 
-> Run lsusb to note any changes. Bye.
Now here I got /dev/ttyUSB1 and
/dev/ttyUSB1
Make changes in /etc/wvdial.conf. Here are my chanages:
Code:
[Dialer Defaults]
Modem = /dev/ttyUSB2
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 =
Area Code =
Phone = #777
Username = myusername
Password = my_password
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 300
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
I first tested with ttyUSB1, but it did not work so I selected ttyUSB2 then.
Ran wvdial from prompt and got connected

Thanks again to everyone who helped me...

Can anyone help me in automating the above operations ...

__________________
Thanks,
Vivek Bhat
(
Linux User #496540)
Reply With Quote
  #16 (permalink)  
Old 21-Sep-2009, 06:41
Wise Penguin
 
Join Date: Jun 2008
Location: NZ
Posts: 1,851
deano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura about
Default Re: How to configure USB modem in opensuse 11.1

Pretty much as I expected. Good work. Yes, its not hard to automate, however late for me. I'll check on your status tomorrow.

Edit:I'm an addict!! I need sleep though...

Check this out:

http://www.draisberghof.de/usb_modes...33f4dadd9ce72a

Shows a udev rule that you can adapt.

Another:

http://tensixtyone.com/perma/howto-d...y-huawei-e160g
Reply With Quote
  #17 (permalink)  
Old 22-Sep-2009, 12:40
vendetta18's Avatar
Explorer Penguin
 
Join Date: Oct 2008
Location: Pune, India
Posts: 233
vendetta18 hasn't been rated much yet
Send a message via MSN to vendetta18 Send a message via Yahoo to vendetta18 Send a message via Skype™ to vendetta18
Default Re: How to configure USB modem in opensuse 11.1

I got a friend who got the same USB modem device from the same service provider. He uses fedora and told me that the device was working flawlessly on his HP Pavillion dv4. So I did a install of Fedora 11 on my system and the modem usb device did work exactly the way it should. It got detected itself and worked just as it should.

What is the reason that it is working fine on fedora and not on suse??? Is it the kernel?? Fedora 11 uses 2.6.29 while suse is at 2.6.27.

I am asking as I am not expert in these things, so just seeking an opinion. I did try out Fedora but I was lost I seriously missed yast .

suse 11.2 is scheduled to get released in November. And I am sure this problem will get solved in this release, I have faith in suse developers ...

Now I need to get a workaround this problem. The solution I gave in last thread did work, but sometimes, not all the times
__________________
Thanks,
Vivek Bhat
(
Linux User #496540)
Reply With Quote
  #18 (permalink)  
Old 22-Sep-2009, 15:32
Wise Penguin
 
Join Date: Jun 2008
Location: NZ
Posts: 1,851
deano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura about
Default Re: How to configure USB modem in opensuse 11.1

Quote:
I got a friend who got the same USB modem device from the same service provider. He uses fedora and told me that the device was working flawlessly on his HP Pavillion dv4. So I did a install of Fedora 11 on my system and the modem usb device did work exactly the way it should. It got detected itself and worked just as it should.
Is this via NetworkManager? For the device to be recognised by hal, it needs to be included in /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi file. If you have a look through this, you will find a section for Huawei devices. Now, since you were able to dial out via wvdial, then there is a chance, you could simply add your product ID to the list, and it will then be recognised by NM. Others have tried adding devices this way and have been successful.

Now, I tried this for my Sierra (CDMA) device, and although it was recognised after editing 10-modem.fdi, it would not connect properly. (This was a NM specific issue, probably corrected in later version).

Quote:
What is the reason that it is working fine on fedora and not on suse??? Is it the kernel?? Fedora 11 uses 2.6.29 while suse is at 2.6.27.
This is a typical situation. As new devices appear, developments are made, and new distro's will support the new range of devices. AFAIK, openSUSE 11.1 has a kernel update available, but I think you'll find it depends heavily on NM version.

Thats about all I can offer. Use the distro that works for you with your hardware.
Reply With Quote
  #19 (permalink)  
Old 22-Sep-2009, 22:24
vendetta18's Avatar
Explorer Penguin
 
Join Date: Oct 2008
Location: Pune, India
Posts: 233
vendetta18 hasn't been rated much yet
Send a message via MSN to vendetta18 Send a message via Yahoo to vendetta18 Send a message via Skype™ to vendetta18
Default Re: How to configure USB modem in opensuse 11.1

Quote:
Originally Posted by deano_ferrari View Post
Is this via NetworkManager?
Yes it is!!

Quote:
Originally Posted by deano_ferrari View Post
For the device to be recognised by hal, it needs to be included in /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi file. If you have a look through this, you will find a section for Huawei devices. Now, since you were able to dial out via wvdial, then there is a chance, you could simply add your product ID to the list, and it will then be recognised by NM. Others have tried adding devices this way and have been successful.
Thanks deano_ferrari for the information I will surely check that.

Quote:
Originally Posted by deano_ferrari View Post
Thats about all I can offer. Use the distro that works for you with your hardware.
Frankly speaking I do not want to try another distro just because SUSE failed to detect some of my hardware. I am not using Linux just for Desktop use, but I want to learn it.. so if something is failing, it gives me chance to learn things

I tried fedora, it worked but I missed SUSE sorely.

This is what I plan to do now, will install SUSE. After two months openSUSE 11.2 is releasing so that release should most probably solve my problem. In the mean time I will install two openSUSE setups in my laptop. One for my general day to day use and I will keep another for testing purposes where I will test my experiments ... It is a wait for just two months and till then I think I can manage things .. hope so..

Thanks again deano_ferrari for your valuable information, patience and time ....
__________________
Thanks,
Vivek Bhat
(
Linux User #496540)
Reply With Quote
  #20 (permalink)  
Old 23-Sep-2009, 02:34
Dexter1979's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: +52° 9' 13.68", -8° 37' 57.07"
Posts: 510
Dexter1979 's reputation will be famous soon enoughDexter1979 's reputation will be famous soon enoughDexter1979 's reputation will be famous soon enough
Default Re: How to configure USB modem in opensuse 11.1

Umts - openSUSE <- try that
__________________
Lord Flasheart: Always treat your plane like you treat your woman.
Lieutenant George: Take her home at the weekend to meet your mother?
Lord Flasheart: No, get inside her five times a day and take her to heaven and back!
Reply With Quote
Reply
Page 2 of 3 1 2 3

Bookmarks

Tags
usb modem config for suse


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2