This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB 3G

Hello Sir/Mam, i got a problem to solve.....Please let me know..........i am new to this concept

usb 3g modem am using is Huawei e173......

i placed my file in the following directory:

system ->xbin->usb_modeswitch-1.1.9-arm-static.bz2(exe-file)

system->xbin->usb_modeswitch.conf

system->xbin->chat(exe-file)

system->etc->ppp->airtel.chat(script file)

when i used to run the commands it shows me like this:

1. mount -t usbfs usbfs /proc/bus/usb 

2.  /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.9 (C) Josua Dietze 2011
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x1436
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint=0x01
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
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 001
usb_os_find_busses: Found 002
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 003 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002

Looking for target devices ...
searching devices, found USB ID 12d1:1446
found matching vendor ID
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 15d9:0a37
searching devices, found USB ID 1a40:0101
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 1a40:0101
searching devices, found USB ID 15d9:0a37
searching devices, found USB ID 1a40:0101
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 005 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
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
USB error: could not clear/halt ep 129: Protocol error
Could not reset endpoint (probably harmless): -71
Resetting message endpoint 0x01
USB error: could not clear/halt ep 1: Protocol error
Could not reset endpoint (probably harmless): -71

Checking for mode switch (m[ 917.817687] usb 1-1.4.2: USB disconnect, device n5
ax. 20 times, once per second) ...
Searching for target devices ...
usb_os_find_busses: Found 001
usb_os_find_busses: Found 002
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 003 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 15d9:0a37
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 001
usb_os_find_busses: Found 002
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 003 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 15d9:0a37
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 001
usb_os_find_busses: Found 002
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 003 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 15d9:0a37
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 001
usb_os_find_busses: Found 002
[ 921.890716] usb 1-1.4.2: new high-speed USB device number 6 using musb-hdrc
[ 921.992523] usb 1-1.4.2: New USB device found, idVendor=12d1, idProduct=1436
[ 921.999877] usb 1-1.4.2: New USB device strings: Mfr=4, Product=3, SerialNum0
[ 922.007720] usb 1-1.4.2: Product: HUAWEI Mobile
[ 922.012451] usb 1-1.4.2: Manufacturer: HUAWEI Technology
[ 922.023010] option 1-1.4.2:1.0: GSM modem (1-port) converter detected
[ 922.030273] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 922.043518] cdc_ether 1-1.4.2:1.1: wwan0: register 'cdc_ether' at usb-musb-h0
[ 922.061798] option 1-1.4.2:1.3: GSM modem (1-port) converter detected
[ 922.068969] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 922.077911] option 1-1.4.2:1.4: GSM modem (1-port) converter detected
[ 922.085083] usb 1-1.4.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 922.100006] scsi5 : usb-storage 1-1.4.2:1.5
[ 922.106597] scsi6 : usb-storage 1-1.4.2:1.6
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 003 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 15d9:0a37
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002
[ 923.102233] scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 P2
[ 923.112335] scsi 5:0:0:0: Attached scsi generic sg0 type 5
[ 923.132232] scsi 6:0:0:0: Direct-Access HUAWEI SD Storage 2.31 P2
Searching for target devices ...
usb_os_find_busses: Found 001[ 923.146087] sd 6:0:0:0: Attached scsi generic s0

usb_os_find_busses: Found 002
usb_os_find_devices: Found 006 on 001
skipping descriptor 0xB
skipped 1 class/vendor specific endpoint descri[ 923.164215] sd 6:0:0:0: [sda]k
ptors
skipped 3 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 003 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
searching devices, found USB ID 12d1:1436
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 15d9:0a37
searching devices, found USB ID 1a40:0101
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002

Found target device, now opening

Found target device 006 on bus 001

Target device description data
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Found correct target device

Mode switch succeeded. Bye.
3. /system/bin/pppd /dev/ttyUSB0 115200 persist defaultroute usepeerdns updetach crtscts noauth debug connect "/system/xbin/chat -v -s -f /system/etc/ppp/airtel.chat"

timeout set to 10 seconds
abort on (BUSY)
abort on (NOANSWER)
abort on (ERROR)
StartingGPRSconnectscript
send (ATZ^M)
SettingAPN
expect (OK)
^M
^BOOT:1141512,0,0,0,20^M
^M
OK
-- got it

send (AT+CGDCONT=1,"IP","airtelgprs.com"^M)
abort on (NOCARRIER)
Dialing...
expect (OK)
^M
AT+CGDCONT=1,"IP","airtelgprs.com"^M^M
OK
-- got it

send (ATD*99***1#^M)
expect (CONNECT)
^M
ATD*99***1#^M^M
CONNECT
-- got it

timeout set to 10 seconds
abort on (BUSY)
abort on (NOANSWER)
abort on (ERROR)
StartingGPRSconnectscript
send (ATZ^M)
SettingAPN
expect (OK)
ATZ^M^M
OK
-- got it

send (AT+CGDCONT=1,"IP","airtelgprs.com"^M)
abort on (NOCARRIER)
Dialing... +-----------------------------+
expect (OK) | |
^M | Cannot open /dev/ttyUSB2! |
AT+CGDCONT=1,"IP","airtel| |
OK +-----------------------------+
-- got it

send (ATD*99***1#^M)
expect (CONNECT)
^M
ATD*99***1#^M^M
NO CARRIER^M
^M
^BOOT:1141512,0,0,0,20^M
alarm
Failed

4.Finally,what is primary and secondary dns server IPs?