November 22nd, 2009
[Tips Linux]Smart EVDO ZTE usb modem AC 2726 in Linux
Computer Hardware & Software, Tips & trick, by brigs.
After i’m quit from Telkomsel Flash ISP that serve for wireless GSM Internet provider few month ago, i decided to trying using new technology that bring some improvement bandwidth and of course free quota for geeks user from SMART internet service provider. They using new EVDO revision A that promises for the future. Bring back to home with small usb modem from ZTE AC 2726. It’s modem very easy to use for windows or mac user cause internal memory simulate some cd-rom device that pop-up prompt for installation driver. In Linux especially OpenSuse 11.1 that device can’t be detected well. Device detected as only cd-rom device. For a while i waiting for new kernel for OpenSuse that release soon in 11.2 is 26.31.x to make some little experiment.
1. Check your modem detected with
brigs@linux-oodq:~> 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 19d2:fff5 ONDA Communication S.p.A.
If you see that id 19d2:fff5 is detected as USB storage device or cd-rom device. That imposibble to make it for using as dialup modem. As i say above you must using new kernel in 26.28 or up for probing serial port.
2. Download here tools for flip-flop device usb_modeswitch and then you can extract them. Just copy 2 important files for your configuration
cp /path to extract/usb_modeswitch /usr/sbin/usb_modeswitch
cp /path to extract/usb_modeswitch.conf /etc/usb_modeswitch.conf
3. Open file usb_modeswitch.conf with your fav editor tools. Add these line at latest prompt
########################################################
# /etc/usb_modeswitch.conf
#
# Smart ZTE AC2726 (EVDO)
#
DefaultVendor= 0x19d2
DefaultProduct= 0xfff5
TargetVendor= 0x19d2
TargetProduct= 0xfff1
MessageContent=“5553424312345678c00000008000069f030000000000000000000000000000”
Plugin your usb device and give a command as root
#usb_modeswitch
And then check again your device with lsusb
brigs@linux-oodq:~> 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 19d2:fff1 ONDA Communication S.p.A.
If you seeing that device id change you done.…
4. Make some script for wvdial configuration for connection
[Dialer smart]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem = /dev/ttyUSB0
Phone = #777
New PPPD = yes
Password = smart
Modem Type = USB Modem
Compuserve = 0
Baud = 921600
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = smart
Check Def Route = on
Auto Reconnect = On
Save the file where ever you like for the name and place such smart.conf at /home directory.
Now you can test the modem with these configuration using wvdial
#sudo wvdial –C /home/smart.conf smart
If connecting well so the above configuration was done, last step was making little udev rules for automatic flip to modem mode when you plugin the device to your usb connection. Just make file 52-zte-ac2726.rules put at /etc/udev/rules.d/ and fill with the config
SUBSYSTEM==“usb”, SYSFS{idVendor}==“19d2”, SYSFS{idProduct}==“fff5”, RUN+=”/usr/sbin/usb_modeswitch”
Responses to “[Tips Linux]Smart EVDO ZTE usb modem AC 2726 in Linux”
Leave a Reply