|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
This line that you quoted tells the codes:
Quote:
Code:
modprobe -l usbserial 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 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. |
|
|||
|
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:
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:
|
|
|||
|
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). |
|
||||
|
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 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" 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.
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 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) |
|
|||
|
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 |
|
||||
|
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) |
|
|||
|
Quote:
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:
Thats about all I can offer. Use the distro that works for you with your hardware.
|
|
||||
|
Yes it is!!
Quote:
I will surely check that.Quote:
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) |
|
||||
|
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! |
![]() |
|
| Bookmarks |
| Tags |
| usb modem config for suse |
| Thread Tools | |
| Display Modes | |
|
|