3G USB Modem configurations for Android

1,241 views
Skip to first unread message

Vikas KM

unread,
Jan 2, 2012, 8:27:24 AM1/2/12
to android-porting, andro...@googlegroups.com, android-...@googlegroups.com
Hi All,


Android Version: 2.3.4
Kernel Version : 3.1
USB Modem: Huawei e1731


I want to know where do we add the entries corresponding to the USB Modem, so that the usb_modeswitch can detect and load the driver.

I have pasted below the log by running the usb_modeswitch..


kernel config followed is
usb-mass storage is disabled
------------------------------------------------------------------------
Device Drivers --->

[*] USB support --->

<*> USB Serial Converter support --->

[*] USB Generic Serial Driver

<*> USB driver for GSM and CDMA modems


Device Drivers --->

[*] Network device support --->

<*> PPP (point-to-point protocol) support

<*> PPP support for async serial ports

<*> PPP support for sync tty ports

<*> PPP Deflate compression

<*> PPP BSD-Compress compression


________________________________________________


I have pasted below the logcat of the usb_modeswitch command


--------------------------------------------------------------------------------------------
# mount -t usbfs usbfs /proc/bus/usb
# /system/xbin/usb_modeswitch -I -W -c /system/xbin/usb_modeswitch.conf

Reading config file: /system/xbin/usb_modeswitch.conf

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.1.6 (C) Josua Dietze 2010
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1446
TargetVendor=   0x12d1
TargetProduct=  not set
TargetClass=    not set
TargetProductList="1001,1406,140b,140c,1412,141b,1436,14ac"

DetachStorageOnly=1
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint=0x01
MessageContent="55534243000000000000000000000011060000000100000000000000000000"
NeedResponse=1
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
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 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001

Looking for target devices ...
  searching devices, found USB ID 12d1:1446
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 1d6b:0002
 No devices in target mode or class found
Looking for default devices ...
  searching devices, found USB ID 12d1:1446
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 1d6b:0002
 Found devices in default mode, class or configuration (1)
Accessing device 002 on bus 002 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Only detaching storage driver for switching ...
Looking for active driver ...
USB error: could not get bound driver: No data available
 No driver found. Either detached before or never attached
Warning: ignoring MessageContent. Can't combine with special mode

Checking for mode switch (max. 20 times, once per second) ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
 Original device still present after the timeout

Mode switch most likely failed. Bye.

------------------------------------------------------------------------------------------------




usb_modeswitch.conf   contents

----------------------------------------------------------------------
########################################################
# Huawei, newer modems

DefaultVendor= 0x12d1
DefaultProduct=0x1446

TargetVendor=  0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,1436,14ac"

CheckSuccess=20

MessageContent="55534243000000000000000000000011060000000100000000000000000000"

-------------------------------------------------------------------------------------



Can anyone tell me what might be wrong ????????


--------------
Regards

Vikas KM
Message has been deleted

hedwin

unread,
Jan 2, 2012, 3:28:00 PM1/2/12
to andro...@googlegroups.com
A usb modem device uses a number of different usb serial connections for status, data and contro. The huawei modem I use uses 3.
Does you config file contain the correct usb serial devices?

Hedwin


On Mon, Jan 2, 2012 at 5:31 PM, tabletsx86 <rbg.tab...@gmail.com> wrote:
no..can't tell what might be wrong...but start here:

http://forum.xda-developers.com/archive/index.php/t-1016921.html


On Jan 2, 8:27 am, Vikas KM <vikki...@gmail.com> wrote:
> Hi All,
>
> *Android Version:* 2.3.4
> *Kernel Version :* 3.1
> *USB Modem:* Huawei e1731

>
> I want to know where do we add the entries corresponding to the USB Modem,
> so that the usb_modeswitch can detect and load the driver.
>
> I have pasted below the log by running the usb_modeswitch..
>
> kernel config followed is
> usb-mass storage is disabled
> ------------------------------------------------------------------------
> Device Drivers --->
>
> [*] USB support --->
>
> <*> USB Serial Converter support --->
>
> [*] USB Generic Serial Driver
>
> <*> USB driver for GSM and CDMA modems
>
> Device Drivers --->
>
> [*] Network device support --->
>
> <*> PPP (point-to-point protocol) support
>
> <*> PPP support for async serial ports
>
> <*> PPP support for sync tty ports
>
> <*> PPP Deflate compression
>
> <*> PPP BSD-Compress compression
>
> ________________________________________________
>
> I have pasted below the logcat of the *usb_modeswitch* command
>
> --------------------------------------------------------------------------------------------
> # *mount -t usbfs usbfs /proc/bus/usb*
> # */system/xbin/usb_modeswitch -I -W -c /system/xbin/usb_modeswitch.conf*
> *usb_modeswitch.conf*   contents

>
> ----------------------------------------------------------------------
> ########################################################
> # Huawei, newer modems
>
> DefaultVendor= 0x12d1
> DefaultProduct=0x1446
>
> TargetVendor=  0x12d1
> TargetProductList="1001,1406,140b,140c,1412,141b,1436,14ac"
>
> CheckSuccess=20
>
> MessageContent="55534243000000000000000000000011060000000100000000000000000000"
>
> -------------------------------------------------------------------------------------
>
> Can anyone tell me what might be wrong ????????
>
> --------------
> Regards
>
> Vikas KMhttp://arowboat.org

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.


Vikas KM

unread,
Jan 9, 2012, 6:17:44 AM1/9/12
to andro...@googlegroups.com
thnx got it working..
--------------
Regards

Vikas KM


fabio ferreira

unread,
Apr 9, 2012, 7:16:16 AM4/9/12
to andro...@googlegroups.com
hi, my modem 3G uses 3 usb serial connection, it is huawei. How config this ? 3 message content ?
To unsubscribe from this group, send email to android-x86+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages