Huawei GP02 (E587 mobile router, japanese variant)
Hello, I just wanted to post a working config (sniffed on WinXP). Please add this to data package. Thank you.
Huawei GP02 (E587 mobile router, japanese variant)
http://3g-modem.wetpaint.com/page/Huawei+E587
Works fine with patched cdc_ncm driver. Thanks Tommy, Bjørn and Olof!
"How to use my Huawei E3276 4G modem on Ubuntu 12.04"
https://answers.launchpad.net/ubuntu/+s ... ion/211095
Logs:
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 015: ID 12d1:1c1b Huawei Technologies Co., Ltd.
# usb_modeswitch -v 0x12d1 -p 0x1c1b -V 0x12d1 -P 0x1506 -M 55534243000000000000000000000011060000000100000000000000000000 -n -W
Taking all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.3 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1c1b
TargetVendor= 0x12d1
TargetProduct= 0x1506
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint= not set
MessageContent="55534243000000000000000000000011060000000100000000000000000000"
NeedResponse=1
ResponseEndpoint= not set
InquireDevice enabled (default)
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 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 015 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:1c1b
found matching vendor ID
searching devices, found USB ID 1d6b:0002
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:1c1b
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0002
Found device in default mode, class or configuration (1)
Accessing device 015 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass storage
Revision String: ffff
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Reading the response to message 1 (CSW) ...
USB error: error reaping URB: No such device
USB error: error submitting URB: No such device
Device seems to have vanished after reading. Good.
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 016: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Huawei GP02 (E587 mobile router, japanese variant)
http://3g-modem.wetpaint.com/page/Huawei+E587
Works fine with patched cdc_ncm driver. Thanks Tommy, Bjørn and Olof!
"How to use my Huawei E3276 4G modem on Ubuntu 12.04"
https://answers.launchpad.net/ubuntu/+s ... ion/211095
Logs:
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 015: ID 12d1:1c1b Huawei Technologies Co., Ltd.
# usb_modeswitch -v 0x12d1 -p 0x1c1b -V 0x12d1 -P 0x1506 -M 55534243000000000000000000000011060000000100000000000000000000 -n -W
Taking all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.3 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1c1b
TargetVendor= 0x12d1
TargetProduct= 0x1506
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint= not set
MessageContent="55534243000000000000000000000011060000000100000000000000000000"
NeedResponse=1
ResponseEndpoint= not set
InquireDevice enabled (default)
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 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 015 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:1c1b
found matching vendor ID
searching devices, found USB ID 1d6b:0002
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:1c1b
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0002
Found device in default mode, class or configuration (1)
Accessing device 015 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass storage
Revision String: ffff
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Reading the response to message 1 (CSW) ...
USB error: error reaping URB: No such device
USB error: error submitting URB: No such device
Device seems to have vanished after reading. Good.
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 016: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Re: Huawei GP02 (E587 mobile router, japanese variant)
Thanks a lot !
This will go into the next data package release, of course.
There is an "official" mode switching command for Huawei devices and Linux. Could you try it once for the sake of device documentation? Afterwards, an output of "lsusb -v"would be most welcome.
This is 'the other' command:
MessageContent="55534243000000000000000000000011062000000100000000000000000000"
This will go into the next data package release, of course.
There is an "official" mode switching command for Huawei devices and Linux. Could you try it once for the sake of device documentation? Afterwards, an output of "lsusb -v"would be most welcome.
This is 'the other' command:
MessageContent="55534243000000000000000000000011062000000100000000000000000000"
Re: Huawei GP02 (E587 mobile router, japanese variant)
Thank you for your advice. I misunderstood how to find the message.
I did it again with the 'standard' MessageContent (recommended by Huawei).
sudo usb_modeswitch -v 0x12d1 -p 0x1c1b -M "55534243123456780000000000000a11062000000000000100000000000000"
..and I got same result!
$ lsusb
$ lsusb -v -d 12d1:1c1b
$ sudo usb_modeswitch -v 0x12d1 -p 0x1c1b -M '55534243123456780000000000000a11062000000000000100000000000000'
$ lsusb -v -d 12d1:1506
I did it again with the 'standard' MessageContent (recommended by Huawei).
sudo usb_modeswitch -v 0x12d1 -p 0x1c1b -M "55534243123456780000000000000a11062000000000000100000000000000"
..and I got same result!
$ lsusb
Code: Select all
Bus 001 Device 007: ID 12d1:1c1b Huawei Technologies Co., Ltd.
Code: Select all
Bus 001 Device 007: ID 12d1:1c1b Huawei Technologies Co., Ltd.
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1c1b
bcdDevice 0.01
iManufacturer 2
iProduct 1
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
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 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Code: Select all
Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 007 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass storage
Revision String: ffff
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Could not reset endpoint (probably harmless): -71
Resetting message endpoint 0x01
Could not reset endpoint (probably harmless): -19
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.
Code: Select all
Bus 001 Device 008: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1506 E398 LTE/UMTS/GSM Modem/Networkcard
bcdDevice 0.01
iManufacturer 2
iProduct 1
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 156
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 2
bInterfaceProtocol 2
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 04 24 02 0f
** UNRECOGNIZED: 05 24 01 03 00
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 5
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 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 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
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
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 1
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 2
bInterfaceProtocol 22
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 06 24 1a 00 01 1f
** UNRECOGNIZED: 0d 24 0f 04 05 00 00 00 ea 05 03 00 01
** UNRECOGNIZED: 05 24 06 02 02
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 5
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 1
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 2
bInterfaceProtocol 22
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 5
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
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 32
Re: Huawei GP02 (E587 mobile router, japanese variant)
That is not the std Huawei message, compare again with the msg Josh posted.CawCaw wrote:Thank you for your advice. I misunderstood how to find the message.
I did it again with the 'standard' MessageContent (recommended by Huawei).
sudo usb_modeswitch -v 0x12d1 -p 0x1c1b -M "55534243123456780000000000000a11062000000000000100000000000000"
..and I got same result!
You have that single "1" in a different position and its position is important!
You also got an "a" before 11062 which isn't part of a std message.
Re: Huawei GP02 (E587 mobile router, japanese variant)
Thanks for your support, give me a chance again.
$ sudo usb_modeswitch -v 0x12d1 -p 0x1c1b -M "55534243000000000000000000000011062000000100000000000000000000"
I copied from Josh posted. And got same result.
I am sorry, I putted "!" mark at last time, it means " and ". I did not criticize anybody, so please don't be offended. Thank you for your support again.
$ sudo usb_modeswitch -v 0x12d1 -p 0x1c1b -M "55534243000000000000000000000011062000000100000000000000000000"
I copied from Josh posted. And got same result.
I am sorry, I putted "!" mark at last time, it means " and ". I did not criticize anybody, so please don't be offended. Thank you for your support again.
Re: Huawei GP02 (E587 mobile router, japanese variant)
Thanks for checking, no problem with "smilies" ...
So there seems to be only one mode for this router, and it has "Huawei NCM devices disguised as vendor specific" (quote from Bjørn's patch).
Interesting.
Thanks again, CawCaw. If you want you can give me your name (or any nickname of your choice) via PM or mail, and I'll include you as the contributor of this device in the reference file.
So there seems to be only one mode for this router, and it has "Huawei NCM devices disguised as vendor specific" (quote from Bjørn's patch).
Interesting.
Thanks again, CawCaw. If you want you can give me your name (or any nickname of your choice) via PM or mail, and I'll include you as the contributor of this device in the reference file.
Re: Huawei GP02 (E587 mobile router, japanese variant)
Hi
I am trying to connect the E587 to an Openwrt router for sharing over a network as the speed is far superior to ADSL lines where I live
So the target router is TL-3420 with Openwrt flashed Luci web interface etc... followed the setup at https://forum.openwrt.org/viewtopic.php?id=41069 no problems
I am using the manufacturer recommended modeswitch "55534243000000000000000000000011060000000100000000000000000000"
What I get is a router reboot as soon as the automatic modeswitch happens (seconds after plugging in the modem). the output of dmesg and logread just before the reset are as follows:
dmesg
[ 349.910000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 350.340000] usb 1-1: USB disconnect, device number 2
[ 350.710000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 350.870000] option 1-1:1.0: GSM modem (1-port) converter detected
[ 350.880000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 350.920000] usb 1-1: MAC-Address: 0x0c:0x5b:0x8f:0x27:0x9a:0x64
[ 350.930000] cdc_ncm 1-1:1.2: wwan0: register 'cdc_ncm' at usb-ehci-platform-1, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64
[ 350.950000] device wwan0 entered promiscuous mode
[ 350.950000] cdc_ncm: wwan0: network connection: connected
[ 350.960000] br-lan: port 2(wwan0) entered forwarding state
[ 350.960000] cdc_ncm: wwan0: 42 mbit/s downlink 42 mbit/s uplink
[ 350.970000] br-lan: port 2(wwan0) entered forwarding state
[ 352.970000] br-lan: port 2(wwan0) entered forwarding state
logread
Feb 8 11:00:00 OpenWrt kern.info kernel: [ 161.340000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Feb 8 11:00:00 OpenWrt kern.info kernel: [ 161.510000] scsi0 : usb-storage 1-1:1.0
Feb 8 11:00:00 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=1234567890ABCDEF
Feb 8 11:00:00 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:14fe for mode switching
Feb 8 11:00:00 OpenWrt syslog.notice usb_modeswitch: switching device 12d1:14fe on 001/002
Feb 8 11:00:00 OpenWrt kern.info kernel: [ 161.770000] usb 1-1: USB disconnect, device number 2
Feb 8 11:00:01 OpenWrt kern.info kernel: [ 162.110000] usb 1-1: new high-speed USB device number 3 using ehci-platform
Could this be a sudden power drain on the router or some other problem with the modeswitch?
Has anyone seen anything similar?
Reagards mclev
I am trying to connect the E587 to an Openwrt router for sharing over a network as the speed is far superior to ADSL lines where I live
So the target router is TL-3420 with Openwrt flashed Luci web interface etc... followed the setup at https://forum.openwrt.org/viewtopic.php?id=41069 no problems
I am using the manufacturer recommended modeswitch "55534243000000000000000000000011060000000100000000000000000000"
What I get is a router reboot as soon as the automatic modeswitch happens (seconds after plugging in the modem). the output of dmesg and logread just before the reset are as follows:
dmesg
[ 349.910000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 350.340000] usb 1-1: USB disconnect, device number 2
[ 350.710000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 350.870000] option 1-1:1.0: GSM modem (1-port) converter detected
[ 350.880000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 350.920000] usb 1-1: MAC-Address: 0x0c:0x5b:0x8f:0x27:0x9a:0x64
[ 350.930000] cdc_ncm 1-1:1.2: wwan0: register 'cdc_ncm' at usb-ehci-platform-1, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64
[ 350.950000] device wwan0 entered promiscuous mode
[ 350.950000] cdc_ncm: wwan0: network connection: connected
[ 350.960000] br-lan: port 2(wwan0) entered forwarding state
[ 350.960000] cdc_ncm: wwan0: 42 mbit/s downlink 42 mbit/s uplink
[ 350.970000] br-lan: port 2(wwan0) entered forwarding state
[ 352.970000] br-lan: port 2(wwan0) entered forwarding state
logread
Feb 8 11:00:00 OpenWrt kern.info kernel: [ 161.340000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Feb 8 11:00:00 OpenWrt kern.info kernel: [ 161.510000] scsi0 : usb-storage 1-1:1.0
Feb 8 11:00:00 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=1234567890ABCDEF
Feb 8 11:00:00 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:14fe for mode switching
Feb 8 11:00:00 OpenWrt syslog.notice usb_modeswitch: switching device 12d1:14fe on 001/002
Feb 8 11:00:00 OpenWrt kern.info kernel: [ 161.770000] usb 1-1: USB disconnect, device number 2
Feb 8 11:00:01 OpenWrt kern.info kernel: [ 162.110000] usb 1-1: new high-speed USB device number 3 using ehci-platform
Could this be a sudden power drain on the router or some other problem with the modeswitch?
Has anyone seen anything similar?
Reagards mclev
Last edited by mclev on 08 Feb 2013, 15:13, edited 1 time in total.
Re: Huawei GP02 (E587 mobile router, japanese variant)
Try with a separately powered usb hub in between to see if it is a power drop issue.
TP-Link routers do often have "weak" power on the usb port, I have a MR-3420v1 which can handle some 3G modems but not others.
In your case I think it may be the charging circuit for the battery in the E587 that switches in and makes the power drop so much that the router itself doesn't get enough power.
TP-Link routers do often have "weak" power on the usb port, I have a MR-3420v1 which can handle some 3G modems but not others.
In your case I think it may be the charging circuit for the battery in the E587 that switches in and makes the power drop so much that the router itself doesn't get enough power.
Re: Huawei GP02 (E587 mobile router, japanese variant)
Thanks for your reply
That helps me a lot, as at one time I was working well with it without resets and I couldnt work out what had changed but it was most likely a partial battery discharge that has upset the whole issue, I will try a powered usb hub and see how it goes.
at first I thought it was some parameter in the usbswitch message.
Regards mclev
That helps me a lot, as at one time I was working well with it without resets and I couldnt work out what had changed but it was most likely a partial battery discharge that has upset the whole issue, I will try a powered usb hub and see how it goes.
at first I thought it was some parameter in the usbswitch message.
Regards mclev
Re: Huawei GP02 (E587 mobile router, japanese variant)
No, your dmesg shows that the modeswitch was successful and the ncm drivers gets loaded after the device reappears in target mode.mclev wrote: at first I thought it was some parameter in the usbswitch message.
Re: Huawei GP02 (E587 mobile router, japanese variant)
Hi
Still have the same problem even with a powered usb hub, it still seem to be when the usbswitch happens or very close to this , I cannot tell as the tplink unit locks up as soon as it happens
The new dmesg is
[ 236.230000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 236.380000] hub 1-1:1.0: USB hub found
[ 236.380000] hub 1-1:1.0: 4 ports detected
[ 236.680000] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[ 236.820000] scsi0 : usb-storage 1-1.1:1.0
[ 236.920000] usb 1-1.4: new high-speed USB device number 4 using ehci-platform
[ 237.060000] scsi1 : usb-storage 1-1.4:1.0
[ 237.270000] usb 1-1.1: USB disconnect, device number 3
[ 237.520000] usb 1-1.1: new high-speed USB device number 5 using ehci-platform
[ 237.670000] option 1-1.1:1.0: GSM modem (1-port) converter detected
[ 237.670000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 237.680000] scsi2 : usb-storage 1-1.1:1.1
[ 237.740000] usb 1-1.1: MAC-Address: 0x0c:0x5b:0x8f:0x27:0x9a:0x64
[ 237.750000] cdc_ncm 1-1.1:1.2: wwan0: register 'cdc_ncm' at usb-ehci-platform-1.1, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64
[ 237.760000] device wwan0 entered promiscuous mode
[ 237.770000] cdc_ncm: wwan0: network connection: connected
[ 237.770000] br-lan: port 2(wwan0) entered forwarding state
[ 237.780000] cdc_ncm: wwan0: 42 mbit/s downlink 42 mbit/s uplink
[ 237.790000] br-lan: port 2(wwan0) entered forwarding state
[ 238.060000] scsi 1:0:0:0: Direct-Access Multi Flash Reader 1.00 PQ: 0 ANSI: 0
[ 238.070000] sd 1:0:0:0: [sda] Attached SCSI removable disk
Logread is
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2501.700000] usb 1-1: new high-speed USB device number 4 using ehci-platform
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2501.850000] hub 1-1:1.0: USB hub found
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2501.850000] hub 1-1:1.0: 4 ports detected
Feb 8 09:41:31 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=? Serial=?
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.150000] usb 1-1.1: new high-speed USB device number 5 using ehci-platform
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.290000] scsi1 : usb-storage 1-1.1:1.0
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.390000] usb 1-1.4: new high-speed USB device number 6 using ehci-platform
Feb 8 09:41:31 OpenWrt user.notice usb-modeswitch: 1-1.1:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=1234567890ABCDEF
Feb 8 09:41:31 OpenWrt user.notice usb-modeswitch: 1-1.1:1.0: Selecting /etc/usb_modeswitch.d/12d1:14fe for mode switching
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.530000] scsi2 : usb-storage 1-1.4:1.0
Feb 8 09:41:31 OpenWrt syslog.notice usb_modeswitch: switching device 12d1:14fe on 001/005
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.630000] usb 1-1.1: USB disconnect, device number 5
Any help would be appreciated
Regards mclev
Still have the same problem even with a powered usb hub, it still seem to be when the usbswitch happens or very close to this , I cannot tell as the tplink unit locks up as soon as it happens
The new dmesg is
[ 236.230000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 236.380000] hub 1-1:1.0: USB hub found
[ 236.380000] hub 1-1:1.0: 4 ports detected
[ 236.680000] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[ 236.820000] scsi0 : usb-storage 1-1.1:1.0
[ 236.920000] usb 1-1.4: new high-speed USB device number 4 using ehci-platform
[ 237.060000] scsi1 : usb-storage 1-1.4:1.0
[ 237.270000] usb 1-1.1: USB disconnect, device number 3
[ 237.520000] usb 1-1.1: new high-speed USB device number 5 using ehci-platform
[ 237.670000] option 1-1.1:1.0: GSM modem (1-port) converter detected
[ 237.670000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 237.680000] scsi2 : usb-storage 1-1.1:1.1
[ 237.740000] usb 1-1.1: MAC-Address: 0x0c:0x5b:0x8f:0x27:0x9a:0x64
[ 237.750000] cdc_ncm 1-1.1:1.2: wwan0: register 'cdc_ncm' at usb-ehci-platform-1.1, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64
[ 237.760000] device wwan0 entered promiscuous mode
[ 237.770000] cdc_ncm: wwan0: network connection: connected
[ 237.770000] br-lan: port 2(wwan0) entered forwarding state
[ 237.780000] cdc_ncm: wwan0: 42 mbit/s downlink 42 mbit/s uplink
[ 237.790000] br-lan: port 2(wwan0) entered forwarding state
[ 238.060000] scsi 1:0:0:0: Direct-Access Multi Flash Reader 1.00 PQ: 0 ANSI: 0
[ 238.070000] sd 1:0:0:0: [sda] Attached SCSI removable disk
Logread is
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2501.700000] usb 1-1: new high-speed USB device number 4 using ehci-platform
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2501.850000] hub 1-1:1.0: USB hub found
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2501.850000] hub 1-1:1.0: 4 ports detected
Feb 8 09:41:31 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=? Serial=?
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.150000] usb 1-1.1: new high-speed USB device number 5 using ehci-platform
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.290000] scsi1 : usb-storage 1-1.1:1.0
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.390000] usb 1-1.4: new high-speed USB device number 6 using ehci-platform
Feb 8 09:41:31 OpenWrt user.notice usb-modeswitch: 1-1.1:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=1234567890ABCDEF
Feb 8 09:41:31 OpenWrt user.notice usb-modeswitch: 1-1.1:1.0: Selecting /etc/usb_modeswitch.d/12d1:14fe for mode switching
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.530000] scsi2 : usb-storage 1-1.4:1.0
Feb 8 09:41:31 OpenWrt syslog.notice usb_modeswitch: switching device 12d1:14fe on 001/005
Feb 8 09:41:31 OpenWrt kern.info kernel: [ 2502.630000] usb 1-1.1: USB disconnect, device number 5
Any help would be appreciated
Regards mclev
Re: Huawei GP02 (E587 mobile router, japanese variant)
I can't see any problem from your logs, whatever makes the router reboot is lost from being logged, usb_modeswitch has done what it should do and has exited after loading the option driver.
Comment out the bridging of the wwan0 device in the luci gui so that the device is not used and check if the router still reboots.
Do you use the latest 3.7.5 from trunk with the updated ncm driver?
You are probably better helped by posting your problem in the openwrt thread you linked to, the users there has a better knowledge about the builds and their configurations.
Comment out the bridging of the wwan0 device in the luci gui so that the device is not used and check if the router still reboots.
Do you use the latest 3.7.5 from trunk with the updated ncm driver?
You are probably better helped by posting your problem in the openwrt thread you linked to, the users there has a better knowledge about the builds and their configurations.