Author Message

<  Setup Discussion  ~  Huawei 1261 with Slackware 12.1

PostPosted: Sat Sep 11, 2010 8:50 am
Posts: 9Location: IndiaJoined: Wed Jun 02, 2010 7:06 pm
Hello all,

I have Huawei 1261 working with Ubunuty Hardy using usb_modeswitch. I had an old Slackware 12.1 and I thought I would get that working too. The link of my Ubuntu is:
http://www.draisberghof.de/usb_modes...hp?p=2661#2661

I followed exactly the above steps for my Slackware but can't connect to the internet. I installed usb_modeswitch without any problem. I installed wvdial also. The outputs are

Quote:
root@shiv:/home/shivkvi# usb_modeswitch -I -W -c /etc/usb_modeswitch.conf
Reading config file: /etc/usb_modeswitch.conf

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x14ac
TargetClass= not set

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

InquireDevice disabled
Success check disabled
System integration mode disabled

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

Looking for target devices ...
searching devices, found USB ID 0bc2:3001
searching devices, found USB ID 03f0:7711
searching devices, found USB ID 0000:0000
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1446
found matching vendor ID
searching devices, found USB ID 0000:0000
searching devices, found USB ID 046d:c019
searching devices, found USB ID 0000:0000
searching devices, found USB ID 05a9:2640
searching devices, found USB ID 0000:0000
searching devices, found USB ID 0000:0000
searching devices, found USB ID 0000:0000
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 0bc2:3001
searching devices, found USB ID 03f0:7711
searching devices, found USB ID 0000:0000
searching devices, found USB ID 0000:0000
searching devices, found USB ID 12d1:1446
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 0000:0000
searching devices, found USB ID 046d:c019
searching devices, found USB ID 0000:0000
searching devices, found USB ID 05a9:2640
searching devices, found USB ID 0000:0000
searching devices, found USB ID 0000:0000
searching devices, found USB ID 0000:0000
Found devices in default mode or class (1)
Accessing device 002 on bus 006 ...

USB description data (for identification)
-------------------------
Manufacturer: HUA<FF>WEI TECHNOLOGIES
Product: HUAWEI Mobile
Serial No.: <FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
USB error: could not clear/halt ep 8: Protocol error
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.


The output of lsusb:
Quote:
root@shiv:/home/shivkvi# lsusb
Bus 002 Device 004: ID 0bc2:3001 Seagate RSS LLC
Bus 002 Device 002: ID 03f0:7711 Hewlett-Packard
Bus 002 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 003: ID 12d1:140b Huawei Technologies Co., Ltd.
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 002: ID 046d:c019 Logitech, Inc. Optical Tilt Wheel Mouse
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 002: ID 05a9:2640 OmniVision Technologies, Inc.
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000


Quote:
root@shiv:/home/shivkvi# modprobe -v usbserial vendor=0x12d1 product=0x140b
insmod /lib/modules/2.6.24.5-smp/kernel/drivers/usb/serial/usbserial.ko vendor=0x12d1 product=0x140b


Quote:
root@shiv:/home/shivkvi# wvdial cdma
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Sep 11 11:56:26 2010
--> Pid of pppd: 3915
--> Using interface ppp0
--> pppd: `[06][08]`[06][08][06][08]
--> pppd: `[06][08]`[06][08][06][08]
--> pppd: `[06][08]`[06][08][06][08]
--> pppd: `[06][08]`[06][08][06][08]
--> pppd: `[06][08]`[06][08][06][08]
--> local IP address 115.118.73.186
--> pppd: `[06][08]`[06][08][06][08]
--> remote IP address 172.29.243.161
--> pppd: `[06][08]`[06][08][06][08]
--> primary DNS address 121.242.190.180
--> pppd: `[06][08]`[06][08][06][08]
--> secondary DNS address 121.242.190.211


But still can't connect to internet. Checked to see if Firefox is in offline mode. It isn't.

Thanks in advance


Offline Profile
PostPosted: Thu Oct 07, 2010 8:18 am
Site AdminPosts: 4839Joined: Sat Nov 03, 2007 12:30 am
Well, the connection is made and seems O.K. It's probably a routing problem. You should be able to find lots of information about that (start with the "route" command).


Offline Profile
PostPosted: Mon Oct 11, 2010 4:25 pm
Posts: 9Location: IndiaJoined: Wed Jun 02, 2010 7:06 pm
Thanks for your reply Josh. I still can't get it to work in Slackware.

I tried out the route command in Slackware and this is what I got:
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.29.243.161 * 255.255.255.255 UH 0 0 0 ppp0
default * 0.0.0.0 U 0 0 0 ppp0


The output of route in Ubuntu is:
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.29.243.161 * 255.255.255.255 UH 0 0 0 ppp0
link-local * 255.255.0.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
default * 0.0.0.0 U 1000 0 0 eth0


But when I do:
Quote:
/etc/rc.d/rc.inet1 stop

in slackware to stop my DHCP wired connection and then do "wvdial cdma", Firefox tries to connect to the internet but fails after a while. If I don't do "/etc/rc.d/rc.inet1 stop" and directly do "wvdial cdma", Firefox gives up immedaitely.

Thanks in advance.


Offline Profile
PostPosted: Mon Oct 11, 2010 11:52 pm
Site AdminPosts: 4839Joined: Sat Nov 03, 2007 12:30 am
Please understand that my time is very limited and that I rather focus on usb_modeswitch issues. Maybe there is a Slackware community to help you with your connection problems.


Offline Profile
PostPosted: Tue Oct 12, 2010 4:47 am
Posts: 9Location: IndiaJoined: Wed Jun 02, 2010 7:06 pm
I understand. I'll post in a Slackware forum and get back with the link when the problem is solved in case others here might have the same problem.
Thanks.


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
5 posts
Users browsing this forum: No registered users and 0 guests
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum