Page 1 of 1
[ASK] ZTE ac2726 on Android Tablet
Posted: 17 Apr 2012, 11:22
by Yessah
Right now I am trying to make my Android tablet to support my CDMA modem (ZTE ac2726). I am using ICS 4 OS on my tablet. After a lot of searching trough google I have try many way to connect it.. but still not connected..
The last was I made a file under /etc/usb_modeswitch.d/ called 19d2_fff1 because there is no file for my device and fill it with:
Code: Select all
########################################################
# ZTE ac2726 try
DefaultVendor= 0x19d2
DefaultProduct=0xfff1
TargetVendor= 0x19d2
TargetProductList=0xfff1
MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"
Then I open Network Operators and it said "Error finding operator"
I try to running usb_modeswitch like this:
"usb_modeswitch -c /etc/usb_modeswitch.d/19d2_fff1"
Here is the result of the command:
Code: Select all
Looking for target device...
Found device in target mode or class(1)
Looking for default device...
Found device in default mode, class or configuration(1)
Accessing device 003 on bus 001...
Getting the current device configuration..
OK, got current device configuration(1)
Using first interface: 0x00
Using endpoints 0x02 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry
USB description data (for identification)
------------------------------
Manufacturer: ZTE, Incorporated
Product: ZTA CDMA Tech
Serial No.: not provided
-----------------------------
Looking for active driver ...
No driver found, either detached before or never attached
Setting up communication with interface 0
Using endpoints 0x02 for message sending...
Trying to send message 1 to endpoint 0x02...
Ok, message successfully sent
Reading the response to message 1(CSW)...
Response reading got error -110
Device is gone, skipping any further commands
Checking for mode switch(max. 20 times, once per second) ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
.
.
Searching for target devices ...
No new device in target mode or class found
Mode switch has failed. Bye.
I have no more clue after that, is the kernel do not have driver of my modem? Is there generic modem driver for android?
Thanks in advance
Posted: 18 Apr 2012, 23:10
by Josh
The message "Device is gone" means that something (probably good) happened to your stick.
The success check of usb_modeswitch relies on the values in the config file, so it will report failure if the "target" values given there are not found. It's likely though that your device changed its ID in the process, so your "TargetProduct" value may not match with reality.
To see more ID details, run your command with the verbose option -W. You can also skip the SCSI check with -I:
Code: Select all
# usb_modeswitch -W -I -c /etc/usb_modeswitch.d/19d2_fff1
Posted: 21 Apr 2012, 11:11
by Yessah
Thanks for reply..
I've executed the command, it still same, I think it because the ROM doesn't have driver for my modem so my modem will not working.
Fix me if I wrong.
Posted: 22 Apr 2012, 00:18
by Josh
Are you sure you are seeing the "install mode" of the stick? Maybe the fff1 ID is the modem mode already? In some configurations of usb_modeswitch, it is a
target ID.
It would help to see the output of "lsusb -v" (not sure if it is present on I.C.S.).
You can also just try to bind the serial driver:
Code: Select all
# modprobe -v option (will probably fail)
# echo "19d2 fff1" > /sys/bus/usb-serial/drivers/option1/new_id
Posted: 25 Apr 2012, 11:06
by Yessah
Too bad lsusb and modprobe not available in ICS..
Here is the result:
Code: Select all
# usb_modeswitch -W -I -c /etc/usb_modeswitch.d/19d2_fff1
Reading config file: /etc/usb_modeswitch.d/19d2_fff1
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.0 (C) Josua Dietze 2011
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x19d2
DefaultProduct= 0xfff1
TargetVendor= 0x19d2
TargetProduct= 0xfff1
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="5553424312345678c00000008000069f030000000000000000000000000000"
NeedResponse=1
ResponseEndpoint= not set
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 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 004
usb_os_find_devices: Found 001 on 004
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 003 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 0bda:8176
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 19d2:fff1
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
Found devices in target mode or class (1)
Looking for default devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0bda:8176
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 19d2:fff1
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
Found devices in default mode, class or configuration (1)
Accessing device 003 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x02 (out) and 0x82 (in)
USB description data (for identification)
-------------------------
Manufacturer: ZTE, Incorporated
Product: ZTE CDMA Tech
Serial No.: not provided
-------------------------
Looking for active driver ...
USB error: could not get bound driver: No data available
No driver found. Either detached before or never attached
Setting up communication with interface 0
Using endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
OK, message successfully sent
Reading the response to message 1 (CSW) ...
Response reading got error -110
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 004
usb_os_find_devices: Found 001 on 004
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0bda:8176
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 19d2:fff1
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
.
.
.
No new devices in target mode or class found
Mode switch has failed. Bye.
I have no more clue..
Posted: 25 Apr 2012, 11:51
by Yessah
I try dmesg like here (
http://www.draisberghof.de/usb_modeswit ... .php?t=893) after add into new id, here is the result:
Code: Select all
<7>[ 443.160000] ------------IRQ CONNECT-------------
<7>[ 443.160000]
<7>[ 443.330000] [sw_hcd]: reset port.
<7>[ 443.390000] [sw_hcd]: reset port stopped.
<6>[ 443.450000] usb 1-1: new full speed USB device number 3 using sw_hcd_host0
<7>[ 443.450000] [sw_hcd]: reset port.
<7>[ 443.550000] [sw_hcd]: reset port stopped.
<7>[ 443.560000] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
<7>[ 443.560000] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
<7>[ 443.610000] [sw_hcd]: sw_hcd_h_disable, epnum = 0
<7>[ 443.610000] [sw_hcd]: sw_hcd_h_disable, epnum = 0
<6>[ 443.640000] option 1-1:1.0: GSM modem (1-port) converter detected
<6>[ 443.640000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
<6>[ 443.680000] option 1-1:1.1: GSM modem (1-port) converter detected
<6>[ 443.690000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
<6>[ 443.690000] option 1-1:1.2: GSM modem (1-port) converter detected
<6>[ 443.730000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
<6>[ 443.740000] option 1-1:1.3: GSM modem (1-port) converter detected
<6>[ 443.780000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
<6>[ 443.810000] option 1-1:1.4: GSM modem (1-port) converter detected
<6>[ 443.830000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
<7>[ 444.220000] rtl8192c_dm_RF_Saving(): RF_Save
<6>[ 444.860000] init: waitpid returned pid 1414, status = 00000000
<3>[ 444.860000] init: untracked pid 1414 exited
<7>[ 445.730000] [sw_hcd]: sw_hcd_urb_dequeue, sw_hcd(d98ce0ec, 0x0, 0x3f),urb(d8efbf80, 16, 0), dev = 3, ep = 1, dir = in
<7>[ 445.730000] WRN:L3143(drivers/usb/sun4i_usb/hcd/core/sw_hcd_host.c):ERR: not support type(3)
<7>[ 445.730000] sw_hcd_cleanup_urb: qh(0xcf40eac0,0x1,0x3), urb(0xd8efbf80,16,0), ep(0xd98ce1dc,2,0xcf40eac0,0x (null))
<3>[ 445.730000] option: option_instat_callback: error -108
<6>[ 445.760000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
<6>[ 445.770000] option 1-1:1.0: device disconnected
The message I got from it is that my 3G modem is not supported.. Is there a way for my tablet? I am sorry if I have too many question, I am lack of knowledge..
Sorry for my bad English.