I want to use ZTE MF 112(v=0x19d2 p 0x19d2) mobile broad band USB modem on CENTOS 5.
I think every thing is installed fine, but my problem is when I switched USB modem with usb_modeswitch command; I cannot find the right block on /dev, which is supposed to be mounted to one of the ttyS0-S4.
I wrote down every thing that I’ve done on my system:
I installed usb_modeswitch (Version 1.1.5) from source code then I tried to install usb_modeswitch data which gave me, this error:
Code: Select all
[root@localhost usb-modeswitch-data-20100826]# make install
install -d /etc/usb_modeswitch.d
install -D --mode=644 40-usb_modeswitch.rules /lib/udev/rules.d/40-usb_modeswitch.rules
install --mode=644 -t /etc/usb_modeswitch.d ./usb_modeswitch.d/*
if [ -f /etc/issue ]; then \
if [ -n `which udevadm 2>/dev/null` ]; then \
UDEVADM=`which udevadm`; \
UDEVADM_VER=`$UDEVADM -V 2>/dev/null`; \
if [ -z $UDEVADM_VER ]; then \
UDEVADM_VER=`$UDEVADM --version 2>/dev/null`; \
fi; \
if [ $UDEVADM_VER -gt 127 ]; then \
$UDEVADM control --reload-rules; \
else \
$UDEVADM control --reload_rules; \
fi \
elif [ `which udevcontrol 2>/dev/null` ]; then \
`which udevcontrol` reload_rules; \
fi \
fi
which: no udevadm in (/usr/kerberos/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/tomcat/bin)
/bin/sh: line 7: [: -gt: unary operator expected
/bin/sh: line 10: control: command not found
make: *** [rules-reload] Error 127
I’ve already installed udev
Code: Select all
[root@localhost usb-modeswitch-data-20100826]# rpm -q udev
udev-095-14.21.el5_5.1
Any way
I can run # /usr/sbin/usb_modeswitch -v 0x19d2 -p 0x0103 -c /etc/usb_modeswitch.d/19d2\:0103
Code: Select all
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode or class (1)
Accessing device 007 on bus 002 ...
Using endpoints 0x01 (out) and 0x81 (in)
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: HSPA
Model String: USB SCSI CD-ROM
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: ZTE,Incorporated
Product: ZTE WCDMA Technologies MSM
Serial No.: P673A3H3GD010000
-------------------------
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 the message (CSW) ...
OK, response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x01 ...
OK, message successfully sent
Reading the response to message 2 ...
OK, response successfully read (13 bytes).
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device can't be accessed anymore. Good.
Searching for target devices ...
Searching for target devices ...
Found correct target device
Mode switch succeeded. Bye.
It’s seems usb_modeswitch, switched my modem and I can confirm it with /sbin./lsusb:
Code: Select all
[root@localhost usb-modeswitch-data-20100826]# /sbin/lsusb
Bus 002 Device 008: ID 19d2:0031
Every thing should be fine, and usbmodem suppose to be mounted to one “ttyS0-ttyS4” blocks.
The problem is:
When I tried to run wvdial , wvidial couldn’t find modem at any block of ttyS0-ttyS4.
Do you have any idea that what is the problem?
I appreciate your help
Thank you
Arash