|
Activation Codes and Methods, Hardware Details, Sniffing
-
gouciano
- Posts: 6
- Joined: 13 Feb 2014, 20:02
Post
by gouciano » 13 Feb 2014, 20:16
Hi,
I'm using a Huawei E303 on an openwrt router.
So I did the modeswitch and everything is working.
USB Stick is in hilink mode and wan works with cdc-ether driver.
No I want to switch the stick to serial modem mode so since I have problem with Hilink NAT functions and port forwarding.
lsusb shows
Bus 002 Device 038: ID 12d1:14dc Huawei Technologies Co., Ltd.
I tried several alternatives also on my ubuntu pc with latest package but none of the worked
Code: Select all sudo usb_modeswitch -v 12d1 -p 14dc -V 12d1 -P 1001 -M '55534243000000000000000000000011060000000000000000000000000000'
sudo usb_modeswitch -v 12d1 -p 14dc -V 12d1 -P 1001 -M '55534243000000000000000000000611060000000000000000000000000000'
sudo usb_modeswitch -v 12d1 -p 14dc -V 12d1 -P 1001 -M '55534243123456780000000000000011062000000100000000000000000000'
sudo usb_modeswitch -v 12d1 -p 14dc -V 12d1 -P 1001 -M '55534243123456780000000000000a11062000000000000100000000000000'
I get errors like
Code: Select all Error: can't use storage command in MessageContent with interface 0;
interface class is 2, expected 8. Abort
or
Code: Select all No devices in default mode found. Nothing to do. Bye!
sudo usb_modeswitch -e
Code: Select all * Version 2.1.0 (C) Josua Dietze 2013
* Based on libusb1/libusbx
Pls help
Thx
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 13 Feb 2014, 20:43
There is no way to "switch back" from one of the modem modes. You always have to start in the plug-in mode.
If you want to use multiple target modes you would have to provide a modified configuration as needed. I don't know if usb_modeswitch's custom folder is factored in on OpenWRT - on a PC, you could add custom config files in "/etc/usb_modeswitch.d" and they will get higher priority than the 'stock' configuration files.
-
gouciano
- Posts: 6
- Joined: 13 Feb 2014, 20:02
Post
by gouciano » 13 Feb 2014, 21:01
Thx for the quick reply.
The thing is the stick is always in the hilink mode 12d1:14dc.
Regardless if I plug it into the router or ubuntu and windows pc (without modeswitch software)
It always comes up with 12d1:14dc
How do I get it into plugin mode again?
I want to set it to serial modem only and not switch again.
In openwrt I just used standard command without any parameters
and it worked. I think old product code was 1f01
openwrt uses a default config file
default: /etc/usb-mode.json
see attachment
-
Attachments
-
- usb-mode.json.txt
- from latest openwrt trunk
- (37.87 KiB) Downloaded 1478 times
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 13 Feb 2014, 22:06
For OpenWRT, I think that LOM is a better advisor.
Regarding Ubuntu, are you sure that usb_modeswitch is not installed as part of the standard distribution? Did you check for the folder /etc/usb_modeswitch.d ?
-
gouciano
- Posts: 6
- Joined: 13 Feb 2014, 20:02
Post
by gouciano » 13 Feb 2014, 22:59
OK let's stick to ubuntu and forget about openwrt for the moment.
I now removed usb_modeswitch and usb_modeswitch_data and deleted the config folder on ubuntu pc
I had the latest version installed manually...
Code: Select all usb-modeswitch-2.1.0$ sudo make uninstall
[sudo] password for:
/bin/rm -f /usr/sbin/usb_modeswitch
/bin/rm -f /usr/sbin/usb_modeswitch_dispatcher
/bin/rm -f /lib/udev/usb_modeswitch
/bin/rm -f /etc/usb_modeswitch.conf
/bin/rm -f /usr/share/man/man1/usb_modeswitch.1
/bin/rm -f -R /var/lib/usb_modeswitch
/bin/rm -f /etc/systemd/system/usb_modeswitch@.service
usb-modeswitch-2.1.0$ cd ../usb-modeswitch-data-20140129/
usb-modeswitch-data-20140129$ sudo make uninstall
/bin/rm -f /lib/udev/rules.d/40-usb_modeswitch.rules
/bin/rm -f -R /usr/share/usb_modeswitch
sudo rm -R /etc/usb_modeswitch.d
sudo reboot
After a reboot the stick still comes up with ID 12d1:14dc
How can I change to serial modem mode?
dmesg|grep usb
Code: Select all [ 0.284570] usbcore: registered new interface driver usbfs
[ 0.284580] usbcore: registered new interface driver hub
[ 0.284606] usbcore: registered new device driver usb
[ 0.673641] usbcore: registered new interface driver libusual
[ 0.964051] usb 1-2: new high-speed USB device number 2 using ehci_hcd
[ 1.208078] usb 1-4: new high-speed USB device number 3 using ehci_hcd
[ 1.528159] usb 1-2.1: new high-speed USB device number 4 using ehci_hcd
[ 1.627877] scsi7 : usb-storage 1-2.1:1.0
[ 1.627935] usbcore: registered new interface driver usb-storage
[ 1.696149] usb 1-2.4: new low-speed USB device number 5 using ehci_hcd
[ 1.817255] input: CHICONY HP Basic USB Keyboard as /devices/pci0000:00/0000:00:1a.7/usb1/1-2/1-2.4/1-2.4:1.0/input/input5
[ 1.817344] generic-usb 0003:03F0:0024.0001: input,hidraw0: USB HID v1.11 Keyboard [CHICONY HP Basic USB Keyboard] on usb-0000:00:1a.7-2.4/input0
[ 1.817356] usbcore: registered new interface driver usbhid
[ 1.817357] usbhid: USB HID core driver
[ 1.880164] usb 1-4.4: new low-speed USB device number 6 using ehci_hcd
[ 1.986349] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4.4/1-4.4:1.0/input/input6
[ 1.986801] generic-usb 0003:046D:C046.0002: input,hidraw1: USB HID v1.10 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1a.7-4.4/input0
[ 2.224065] usb 5-2: new full-speed USB device number 2 using uhci_hcd
[ 88.756031] usb 2-1: new high-speed USB device number 3 using ehci_hcd
[ 88.953883] scsi9 : usb-storage 2-1:1.0
[ 89.183159] usb 2-1: USB disconnect, device number 3
[ 89.552072] usb 2-1: new high-speed USB device number 4 using ehci_hcd
[ 89.871154] scsi10 : usb-storage 2-1:1.2
[ 90.609182] cdc_ether 2-1:1.0: usb0: register 'cdc_ether' at usb-0000:00:1d.7-1, CDC Ethernet Device, fe:d7:d8:ba:11:08
[ 90.609367] usbcore: registered new interface driver cdc_ether
[ 101.552037] usb0: no IPv6 routers present
Thanks for your help!
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 14 Feb 2014, 04:09
Show me the output from lsusb -v -d 12d1:14dc , I want to see how many interfaces the dongle expose on the usb bus. Do also include the output from uname -a so I can see what kernel version you are using.
Your dmesg clearly shows that the dongle get switched:
[ 88.756031] usb 2-1: new high-speed USB device number 3 using ehci_hcd
[ 88.953883] scsi9 : usb-storage 2-1:1.0
That was the first appearance of the dongle on the bus, it has been assigned device number 3 and the
storage interface is #0, typical for install mode where there is only a single interface and that interface being the virtual cd-rom.
[ 89.183159] usb 2-1: USB disconnect, device number 3
Here it got switched, disappears
[ 89.552072] usb 2-1: new high-speed USB device number 4 using ehci_hcd
[ 89.871154] scsi10 : usb-storage 2-1:1.2
[ 90.609182] cdc_ether 2-1:1.0: usb0: register 'cdc_ether' at usb-0000:00:1d.7-1, CDC Ethernet Device, fe:d7:d8:ba:11:08
Here it came back, being assigned the next device number on the bus, with cdc_ether on interface #0 and
a storage device (likely the TF card reader) on interface #2.
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 14 Feb 2014, 09:08
gouciano,
in your system log (likely "/var/log/messages"), there will be some notices from usb_modeswitch, stating the USB IDs it is going to handle. This will give you the initial ID of the dongle that "dmesg" doesn't for some reason.
With this ID, go to /usr/share/usb_modeswitch and pick the config file with that name (it's probably packed into a TGZ file).
Copy that file into the folder "/etc/usb_modeswitch.d"; it will now take priority over the original. Change the content according to your other MessageContent.
-
gouciano
- Posts: 6
- Joined: 13 Feb 2014, 20:02
Post
by gouciano » 14 Feb 2014, 16:23
hmmm I don't know who or what is doing the switch
lsusb -v -d 12d1:14dc
Code: Select all Bus 002 Device 013: ID 12d1:14dc Huawei Technologies Co., Ltd.
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x14dc
bcdDevice 1.02
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 94
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 6 Ethernet Networking
bInterfaceProtocol 0
iInterface 5
CDC Header:
bcdCDC 1.10
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC Ethernet:
iMacAddress 7 (??)
bmEthernetStatistics 0x00000000
wMaxSegmentSize 1514
wNumberMCFilters 0x0000
bNumberPowerFilters 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 9
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 6
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
uname -a
Code: Select all Linux schlappy 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25 21:22:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
I have no /var/log/messages but syslog instead
Code: Select all Feb 14 15:10:37 schlappy kernel: [27910.676108] usb 2-5: new high-speed USB device number 12 using ehci_hcd
Feb 14 15:10:37 schlappy mtp-probe: checking bus 2, device 12: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-5"
Feb 14 15:10:37 schlappy mtp-probe: bus: 2, device: 12 was not an MTP device
Feb 14 15:10:37 schlappy kernel: [27910.865302] scsi18 : usb-storage 2-5:1.0
Feb 14 15:10:37 schlappy kernel: [27910.959238] usb 2-5: USB disconnect, device number 12
Feb 14 15:10:38 schlappy kernel: [27911.492127] usb 2-5: new high-speed USB device number 13 using ehci_hcd
Feb 14 15:10:38 schlappy mtp-probe: checking bus 2, device 13: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-5"
Feb 14 15:10:38 schlappy mtp-probe: bus: 2, device: 13 was not an MTP device
Feb 14 15:10:38 schlappy kernel: [27911.850380] cdc_ether 2-5:1.0: usb0: register 'cdc_ether' at usb-0000:00:1d.7-5, CDC Ethernet Device, fe:d7:d8:ba:11:08
Feb 14 15:10:38 schlappy kernel: [27911.851099] scsi19 : usb-storage 2-5:1.2
Feb 14 15:10:38 schlappy NetworkManager[1063]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-5/2-5:1.0/net/usb0, iface: usb0)
Feb 14 15:10:38 schlappy NetworkManager[1063]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-5/2-5:1.0/net/usb0, iface: usb0): no ifupdown configuration found.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <warn> failed to allocate link cache: (-10) Operation not supported
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): carrier is OFF
Feb 14 15:10:38 schlappy NetworkManager[1063]: <error> [1392387038.696401] [nm-device-ethernet.c:456] real_update_permanent_hw_address(): (usb0): unable to read permanent MAC address (error 0)
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): new Ethernet device (driver: 'cdc_ether' ifindex: 12)
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): exported as /org/freedesktop/NetworkManager/Devices/6
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): now managed
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): bringing up device.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): carrier now ON (device state 20)
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): preparing device.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): deactivating device (reason 'managed') [2]
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Added default wired connection 'Kabelnetzwerkverbindung 1' for /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-5/2-5:1.0/net/usb0
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Auto-activating connection 'Kabelnetzwerkverbindung 1'.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) starting connection 'Kabelnetzwerkverbindung 1'
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) started...
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) scheduled...
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) complete.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) starting...
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): device state change: prepare -> config (reason 'none') [40 50 0]
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) successful.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) scheduled.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) complete.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) started...
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): device state change: config -> ip-config (reason 'none') [50 70 0]
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> dhclient started with pid 6634
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Beginning IP6 addrconf.
Feb 14 15:10:38 schlappy kernel: [27911.891943] ADDRCONF(NETDEV_UP): usb0: link is not ready
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) complete.
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): carrier now OFF (device state 70, deferring action for 4 seconds)
Feb 14 15:10:38 schlappy dhclient: Internet Systems Consortium DHCP Client 4.1-ESV-R4
Feb 14 15:10:38 schlappy dhclient: Copyright 2004-2011 Internet Systems Consortium.
Feb 14 15:10:38 schlappy dhclient: All rights reserved.
Feb 14 15:10:38 schlappy dhclient: For info, please visit https://www.isc.org/software/dhcp/
Feb 14 15:10:38 schlappy dhclient:
Feb 14 15:10:38 schlappy kernel: [27911.892291] ADDRCONF(NETDEV_UP): usb0: link is not ready
Feb 14 15:10:38 schlappy NetworkManager[1063]: <info> (usb0): DHCPv4 state changed nbi -> preinit
Feb 14 15:10:38 schlappy dhclient: Listening on LPF/usb0/fe:d7:d8:ba:11:08
Feb 14 15:10:38 schlappy dhclient: Sending on LPF/usb0/fe:d7:d8:ba:11:08
Feb 14 15:10:38 schlappy dhclient: Sending on Socket/fallback
Feb 14 15:10:38 schlappy dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 3
Feb 14 15:10:39 schlappy kernel: [27912.849243] scsi 19:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
Feb 14 15:10:39 schlappy kernel: [27912.851103] sd 19:0:0:0: Attached scsi generic sg3 type 0
Feb 14 15:10:39 schlappy kernel: [27912.855171] sd 19:0:0:0: [sdc] 7819264 512-byte logical blocks: (4.00 GB/3.72 GiB)
Feb 14 15:10:39 schlappy kernel: [27912.855654] sd 19:0:0:0: [sdc] Write Protect is off
Feb 14 15:10:39 schlappy kernel: [27912.855664] sd 19:0:0:0: [sdc] Mode Sense: 0f 00 00 00
Feb 14 15:10:39 schlappy kernel: [27912.856169] sd 19:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Feb 14 15:10:39 schlappy kernel: [27912.862870] sdc: sdc1
Feb 14 15:10:39 schlappy kernel: [27912.865436] sd 19:0:0:0: [sdc] Attached SCSI removable disk
Feb 14 15:10:41 schlappy dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 4
Feb 14 15:10:42 schlappy NetworkManager[1063]: <info> (usb0): device state change: ip-config -> unavailable (reason 'carrier-changed') [70 20 40]
Feb 14 15:10:42 schlappy NetworkManager[1063]: <info> (usb0): deactivating device (reason 'carrier-changed') [40]
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> (usb0): canceled DHCP transaction, DHCP client pid 6634
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Policy set 'LAN' (eth0) as default for IPv4 routing and DNS.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <error> [1392387043.33473] [nm-system.c:1121] nm_system_replace_default_ip6_route(): (eth0): failed to set IPv6 default route: -7
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Policy set 'LAN' (eth0) as default for IPv6 routing and DNS.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Policy set 'LAN' (eth0) as default for IPv4 routing and DNS.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <error> [1392387043.34118] [nm-system.c:1121] nm_system_replace_default_ip6_route(): (eth0): failed to set IPv6 default route: -7
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Policy set 'LAN' (eth0) as default for IPv6 routing and DNS.
Feb 14 15:10:43 schlappy kernel: [27916.204264] ADDRCONF(NETDEV_UP): usb0: link is not ready
Feb 14 15:10:43 schlappy kernel: [27916.882876] ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> (usb0): carrier now ON (device state 20)
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> (usb0): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Auto-activating connection 'Kabelnetzwerkverbindung 1'.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) starting connection 'Kabelnetzwerkverbindung 1'
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> (usb0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) started...
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) scheduled...
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) complete.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) starting...
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> (usb0): device state change: prepare -> config (reason 'none') [40 50 0]
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) successful.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) scheduled.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) complete.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) started...
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> (usb0): device state change: config -> ip-config (reason 'none') [50 70 0]
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> dhclient started with pid 6663
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Beginning IP6 addrconf.
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) complete.
Feb 14 15:10:43 schlappy dhclient: Internet Systems Consortium DHCP Client 4.1-ESV-R4
Feb 14 15:10:43 schlappy dhclient: Copyright 2004-2011 Internet Systems Consortium.
Feb 14 15:10:43 schlappy dhclient: All rights reserved.
Feb 14 15:10:43 schlappy dhclient: For info, please visit https://www.isc.org/software/dhcp/
Feb 14 15:10:43 schlappy dhclient:
Feb 14 15:10:43 schlappy NetworkManager[1063]: <info> (usb0): DHCPv4 state changed nbi -> preinit
Feb 14 15:10:43 schlappy dhclient: Listening on LPF/usb0/fe:d7:d8:ba:11:08
Feb 14 15:10:43 schlappy dhclient: Sending on LPF/usb0/fe:d7:d8:ba:11:08
Feb 14 15:10:43 schlappy dhclient: Sending on Socket/fallback
Feb 14 15:10:43 schlappy dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 3
Feb 14 15:10:46 schlappy dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 5
Feb 14 15:10:46 schlappy dhclient: DHCPREQUEST of 192.168.8.100 on usb0 to 255.255.255.255 port 67
Feb 14 15:10:46 schlappy dhclient: DHCPOFFER of 192.168.8.100 from 192.168.8.1
Feb 14 15:10:46 schlappy dhclient: DHCPACK of 192.168.8.100 from 192.168.8.1
Feb 14 15:10:46 schlappy dhclient: bound to 192.168.8.100 -- renewal in 32894 seconds.
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> (usb0): DHCPv4 state changed preinit -> bound
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> address 192.168.8.100
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> prefix 24 (255.255.255.0)
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> gateway 192.168.8.1
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> nameserver '192.168.8.1'
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> nameserver '192.168.8.1'
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> domain name 'hi.link'
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Feb 14 15:10:46 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 5 of 5 (IPv4 Commit) started...
Feb 14 15:10:47 schlappy NetworkManager[1063]: <info> (usb0): writing resolv.conf to /sbin/resolvconf
Feb 14 15:10:47 schlappy dnsmasq[1946]: vorgelagerte Server von DBus gesetzt
Feb 14 15:10:47 schlappy dnsmasq[1946]: Benutze Namensserver 192.168.8.1#53
Feb 14 15:10:47 schlappy dnsmasq[1946]: Benutze Namensserver fd69:3d60:f6dd::1#53
Feb 14 15:10:47 schlappy dnsmasq[1946]: Benutze Namensserver 208.67.220.220#53
Feb 14 15:10:47 schlappy dnsmasq[1946]: Benutze Namensserver 208.67.222.222#53
Feb 14 15:10:47 schlappy dnsmasq[1946]: Benutze Namensserver 192.168.0.1#53
Feb 14 15:10:47 schlappy dnsmasq[1946]: Benutze Namensserver 8.8.4.4#53
Feb 14 15:10:47 schlappy dnsmasq[1946]: Benutze Namensserver 8.8.8.8#53
Feb 14 15:10:48 schlappy NetworkManager[1063]: <info> Policy set 'LAN' (eth0) as default for IPv4 routing and DNS.
Feb 14 15:10:48 schlappy NetworkManager[1063]: <error> [1392387048.25930] [nm-system.c:1121] nm_system_replace_default_ip6_route(): (eth0): failed to set IPv6 default route: -7
Feb 14 15:10:48 schlappy NetworkManager[1063]: <info> Policy set 'LAN' (eth0) as default for IPv6 routing and DNS.
Feb 14 15:10:48 schlappy NetworkManager[1063]: <info> (usb0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Feb 14 15:10:48 schlappy NetworkManager[1063]: <info> Activation (usb0) successful, device activated.
Feb 14 15:10:48 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 5 of 5 (IPv4 Commit) complete.
Feb 14 15:10:48 schlappy dbus[735]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Feb 14 15:10:48 schlappy dbus[735]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 14 15:10:54 schlappy kernel: [27927.748073] usb0: no IPv6 routers present
Feb 14 15:10:56 schlappy ntpdate[6725]: adjust time server 91.189.94.4 offset 0.019074 sec
Feb 14 15:11:03 schlappy NetworkManager[1063]: <info> (usb0): IP6 addrconf timed out or failed.
Feb 14 15:11:03 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Feb 14 15:11:03 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Feb 14 15:11:03 schlappy NetworkManager[1063]: <info> Activation (usb0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
I double checked and there should be no usb modeswitch software installed.
At least I can't find the config
Code: Select all ls /usr/share/usb_modeswitch
ls: Zugriff auf /usr/share/usb_modeswitch nicht möglich: Datei oder Verzeichnis nicht gefunden
ls /etc/usb_mod*
ls: Zugriff auf /etc/usb_mod* nicht möglich: Datei oder Verzeichnis nicht gefunden
sudo apt-get remove usb-modeswitch usb-modeswitch-data
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
Paket usb-modeswitch ist nicht installiert, wird also auch nicht entfernt.
Paket usb-modeswitch-data ist nicht installiert, wird also auch nicht entfernt.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 14 Feb 2014, 17:02
gouciano wrote:
uname -a
Code: Select all Linux schlappy 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25 21:22:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Update your kernel, it has the unwanted "feature" of automatically switching Huawei dongles, introduced in March 2013 and kicked out of the kernel in May 2013.
-
gouciano
- Posts: 6
- Joined: 13 Feb 2014, 20:02
Post
by gouciano » 14 Feb 2014, 20:47
just tested with Ubuntu 13.10 live cd and after removing usb_modeswitch the stick now connects in plugin mode.
Code: Select all lsusb
Bus 002 Device 024: ID 12d1:1f01 Huawei Technologies Co., Ltd.
OK from here I'm able to switch it to 3 different product IDs
- 1442
Code: Select all sudo usb_modeswitch -v 12d1 -p 1f01 -M '55534243000000000000000000000611060000000000000000000000000000'
--> or
sudo usb_modeswitch -v 12d1 -p 1f01 -M '55534243000000000000000000000011060000000000000000000000000000'
lsusb|grep 12d1
Bus 002 Device 025: ID 12d1:1442 Huawei Technologies Co., Ltd.
- 1001
Code: Select all sudo usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000011062000000100000000000000000000'
lsusb|grep 12d1
Bus 002 Device 029: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
- 14dc
Code: Select all sudo usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000'
lsusb|grep 12d1
Bus 002 Device 031: ID 12d1:14dc Huawei Technologies Co., Ltd.
So far it is clear.
14dc is the normal target mode which is also used in windows and works with Hilink and usb tethering.
Still I want to use the dongle in serial modem mode.
Following the instructions from other sources
I switched to mode 1001 which includes 3 serial ports
ls /dev/ttyUSB*
Code: Select all /dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
I connected via mincom to use AT commands. However only the basic commands worked but the AT^U2DIAG command always returns errors.
CME ERROR: 50
It is supposed to permanetly switch the dongle to 1c05
Code: Select all AT
OK
ATI
Manufacturer: huawei
Model: E303
Revision: 22.318.19.00.00
IMEI: 862565020171152
+GCAP: +CGSM,+DS,+ES
OK
AT^U2DIAG=0
+CME ERROR: 50
AT^U2DIAG=1
+CME ERROR: 50
AT^U2DIAG=255
+CME ERROR: 50
AT^U2DIAG=256
+CME ERROR: 50
AT^U2DIAG=257
+CME ERROR: 50
AT^U2DIAG=276
+CME ERROR: 50
I tried the same procedure with the 2 serial ports which are offered in mode 1442 but without access!
Any ideas what am I doing wrong?
Nevertheless I managed a ppp connection from ubuntu with 1001
dmesg
Code: Select all [ 7711.768092] usb 2-6: new high-speed USB device number 34 using ehci-pci
[ 7711.901741] usb 2-6: New USB device found, idVendor=12d1, idProduct=1f01
[ 7711.901753] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7711.901761] usb 2-6: Product: HUAWEI Mobile
[ 7711.901767] usb 2-6: Manufacturer: HUAWEI
[ 7711.901774] usb 2-6: SerialNumber: FFFFFFFFFFFFFFFF
[ 7711.954207] usb-storage 2-6:1.0: USB Mass Storage device detected
[ 7711.954384] scsi29 : usb-storage 2-6:1.0
[ 7721.440022] usb 2-6: USB disconnect, device number 34
[ 7722.836132] usb 2-6: new high-speed USB device number 35 using ehci-pci
[ 7722.969246] usb 2-6: New USB device found, idVendor=12d1, idProduct=1001
[ 7722.969258] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7722.969265] usb 2-6: Product: HUAWEI Mobile
[ 7722.969272] usb 2-6: Manufacturer: HUAWEI
[ 7723.266659] option 2-6:1.0: GSM modem (1-port) converter detected
[ 7723.266949] usb 2-6: GSM modem (1-port) converter now attached to ttyUSB0
[ 7723.267139] option 2-6:1.1: GSM modem (1-port) converter detected
[ 7723.267337] usb 2-6: GSM modem (1-port) converter now attached to ttyUSB1
[ 7723.267491] option 2-6:1.2: GSM modem (1-port) converter detected
[ 7723.267713] usb 2-6: GSM modem (1-port) converter now attached to ttyUSB2
sudo cat /sys/kernel/debug/usb/devices
Code: Select all T: Bus=02 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 35 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1001 Rev= 1.02
S: Manufacturer=HUAWEI
S: Product=HUAWEI Mobile
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
Now I try to redo everything on openwrt. So far I already managed to switch to 1001 and now struggling with the
GSM driver. I should have installed all relevant packages but somehow it uses the genereic driver and not the option driver like in ubuntu
dmesg|grep usb
Code: Select all [ 4.910000] usbcore: registered new interface driver usbfs
[ 4.920000] usbcore: registered new interface driver hub
[ 4.920000] usbcore: registered new device driver usb
[ 5.320000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 7.260000] usb 1-1.2: new high-speed USB device number 3 using ehci-platform
[ 7.460000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 7.470000] scsi0 : usb-storage 1-1.2:1.0
[ 7.470000] usbcore: registered new interface driver usb-storage
[ 10.530000] usbcore: registered new interface driver usbserial
[ 10.530000] usbcore: registered new interface driver usbserial_generic
[ 10.550000] usbserial: USB Serial support registered for generic
[ 10.570000] usbcore: registered new interface driver cdc_acm
[ 10.730000] usbcore: registered new interface driver cdc_ether
[ 10.890000] usbcore: registered new interface driver option
[ 10.910000] usbserial: USB Serial support registered for GSM modem (1-port)
[ 10.940000] usbcore: registered new interface driver rndis_host
[ 16.760000] usb 1-1.2: USB disconnect, device number 3
[ 18.520000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[ 18.960000] usbserial_generic 1-1.2:1.0: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 18.970000] usbserial_generic 1-1.2:1.0: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 18.980000] usbserial_generic 1-1.2:1.0: generic converter detected
[ 19.000000] usb 1-1.2: generic converter now attached to ttyUSB0
[ 19.000000] usbserial_generic 1-1.2:1.1: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 19.010000] usbserial_generic 1-1.2:1.1: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 19.020000] usbserial_generic 1-1.2:1.1: generic converter detected
[ 19.070000] usb 1-1.2: generic converter now attached to ttyUSB1
[ 19.070000] usbserial_generic 1-1.2:1.2: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 19.080000] usbserial_generic 1-1.2:1.2: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 19.090000] usbserial_generic 1-1.2:1.2: generic converter detected
[ 19.140000] usb 1-1.2: generic converter now attached to ttyUSB2
cat /sys/kernel/debug/usb/devices
Code: Select all T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1001 Rev= 1.02
S: Manufacturer=HUAWEI
S: Product=HUAWEI Mobile
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
uname -a
Code: Select all Linux OpenWrt 3.10.28 #1 Wed Feb 5 09:57:22 PST 2014 mips GNU/Linux
-
gouciano
- Posts: 6
- Joined: 13 Feb 2014, 20:02
Post
by gouciano » 15 Feb 2014, 01:19
OK close to the end I got stuck again
Dongle is switched on openwrt and option drivers are loaded.
Removed 12d1 1001 from /etc/modules.d/60-usb-serial
and added to /etc/rc.local
Code: Select all echo '12d1 1001' > /sys/bus/usb-serial/drivers/option1/new_id
Only the connection is not working!
As far as I understand the logs - carrier is OK, connection established and authentication works.
But then the connection gets terminated but I don't understand why.
Pls help
logread
Code: Select all Sat Feb 15 00:17:05 2014 daemon.notice netifd: Interface 'wan3' is now down
Sat Feb 15 00:17:08 2014 daemon.notice netifd: wan3 (11078): SIM ready
Sat Feb 15 00:17:08 2014 daemon.notice netifd: wan3 (11078): PIN set successfully
Sat Feb 15 00:17:09 2014 daemon.notice netifd: wan3 (11078): Trying to set mode
Sat Feb 15 00:17:09 2014 daemon.notice pppd[11099]: pppd 2.4.5 started by root, uid 0
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: abort on (BUSY)
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: abort on (NO CARRIER)
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: abort on (ERROR)
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: report (CONNECT)
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: timeout set to 10 seconds
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: send (AT&F^M)
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: expect (OK)
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: AT&F^M^M
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: OK
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: -- got it
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: send (ATE1^M)
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: expect (OK)
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: ^M
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: ATE1^M^M
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: OK
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: -- got it
Sat Feb 15 00:17:10 2014 local2.info chat[11101]: send (AT+CGDCONT=1,"IP","a1.net"^M)
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: timeout set to 30 seconds
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: expect (OK)
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: ^M
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: AT+CGDCONT=1,"IP","a1.net"^M^M
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: OK
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: -- got it
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: send (ATD*99#^M)
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: expect (CONNECT)
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: ^M
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: ATD*99#^M^M
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: CONNECT
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: -- got it
Sat Feb 15 00:17:11 2014 local2.info chat[11101]: send ( ^M)
Sat Feb 15 00:17:11 2014 daemon.debug pppd[11099]: Script USE_APN=a1.net /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat finished (pid 11100), status = 0x0
Sat Feb 15 00:17:11 2014 daemon.info pppd[11099]: Serial connection established.
Sat Feb 15 00:17:11 2014 daemon.debug pppd[11099]: using channel 279
Sat Feb 15 00:17:11 2014 daemon.info pppd[11099]: Using interface 3g-wan3
Sat Feb 15 00:17:11 2014 daemon.notice pppd[11099]: Connect: 3g-wan3 <--> /dev/ttyUSB0
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x26eab4af>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [LCP ConfReq id=0x1 <accomp> <pcomp> <asyncmap 0x0> <mru 1500> <magic 0x659> <auth chap MD5>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [LCP ConfRej id=0x1 <accomp> <pcomp>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x26eab4af>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <mru 1500> <magic 0x659> <auth chap MD5>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [LCP ConfAck id=0x2 <asyncmap 0x0> <mru 1500> <magic 0x659> <auth chap MD5>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [LCP EchoReq id=0x0 magic=0x26eab4af]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [CHAP Challenge id=0x1 <a4c408c33ca9a88822a6782083805b7e>, name = "HUAWEI_CHAP_SRVR"]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [CHAP Response id=0x1 <0fedacf9416c9090c69b797e8413d656>, name = "ppp@a1plus.net"]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [LCP EchoRep id=0x0 magic=0x659]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [CHAP Success id=0x1 "Welcome!!"]
Sat Feb 15 00:17:12 2014 daemon.info pppd[11099]: CHAP authentication succeeded: Welcome!!
Sat Feb 15 00:17:12 2014 daemon.notice pppd[11099]: CHAP authentication succeeded
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [IPCP ConfReq id=0x1]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [IPCP ConfNak id=0x1 <addr 0.0.0.0>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [IPCP ConfNak id=0x1 <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: rcvd [IPCP ConfReq id=0x2]
Sat Feb 15 00:17:12 2014 daemon.debug pppd[11099]: sent [IPCP ConfAck id=0x2]
Sat Feb 15 00:17:13 2014 daemon.debug pppd[11099]: sent [LCP EchoReq id=0x1 magic=0x26eab4af]
Sat Feb 15 00:17:13 2014 daemon.debug pppd[11099]: rcvd [LCP EchoRep id=0x1 magic=0x659]
Sat Feb 15 00:17:13 2014 daemon.debug pppd[11099]: rcvd [LCP TermReq id=0x3]
Sat Feb 15 00:17:13 2014 daemon.info pppd[11099]: LCP terminated by peer
Sat Feb 15 00:17:13 2014 daemon.debug pppd[11099]: sent [LCP TermAck id=0x3]
Sat Feb 15 00:17:13 2014 daemon.debug pppd[11099]: rcvd [IPCP TermReq id=0x3]
Sat Feb 15 00:17:13 2014 daemon.debug pppd[11099]: Discarded non-LCP packet when LCP not open
Sat Feb 15 00:17:13 2014 daemon.notice pppd[11099]: Modem hangup
Sat Feb 15 00:17:13 2014 daemon.notice pppd[11099]: Connection terminated.
Sat Feb 15 00:17:14 2014 daemon.info pppd[11099]: Exit.
Sat Feb 15 00:17:14 2014 daemon.notice netifd: Interface 'wan3' is now down
cat /sys/kernel/debug/usb/device
Code: Select all T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1001 Rev= 1.02
S: Manufacturer=HUAWEI
S: Product=HUAWEI Mobile
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
dmesg| grep GSM
Code: Select all [ 10.930000] usbserial: USB Serial support registered for GSM modem (1-port)
[ 18.680000] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 18.680000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 18.700000] option 1-1.2:1.1: GSM modem (1-port) converter detected
[ 18.730000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 18.730000] option 1-1.2:1.2: GSM modem (1-port) converter detected
[ 18.770000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
cat /etc/config/network
Code: Select all config interface 'wan3'
option proto '3g'
option device '/dev/ttyUSB0'
option service 'umts'
option apn 'a1.net'
option pincode '5267'
option username 'ppp@a1plus.net'
option password 'ppp'
option pppd_options 'debug'
option dns '8.8.8.8'
Also tried with
Code: Select all option pppd_options 'noipdefault'
or with PAP only
option pppd_options 'noipdefault refuse-chap refuse-mschap refuse-mschap-v2 refuse-eap'
But Authentication seems OK
cat /etc/chatscripts/3g.chat
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
"" "AT&F"
OK "ATE1"
OK 'AT+CGDCONT=1,"IP","$USE_APN"'
SAY "Calling UMTS/GPRS"
TIMEOUT 30
OK "ATD*99#"
CONNECT ' '
Also tried "ATD*99***1#"
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 15 Feb 2014, 04:35
Be aware that you are using an unofficial switch message and the unofficial AT^U2DIAG cmd which are heavily dependent on the dongles internal firmware.
That they work on someone else's E303 or another Huawei model is no guarantee at all that they will work on your dongle, do not expect to be able to get your dongle configured into being 12d1:1c05 even if someone else has managed that on his dongle.
12d1:1c05 has the same 3 serial interfaces as 12d1:1001 but have 2 additional storage interfaces, the virtual cd-rom and the tf-card reader which are irrelevant for the 3G connection.
I have no idea what causes your ppp connect problem in OpenWRT but your problem is now not a mode switching problem. You may want to take a look at other ppp option settings, timeouts and persists are settings that comes to mind, the linux man page for ppp will tell you their meanings and syntax.
|
|