November 22nd, 2009
[Tips Linux]Smart EVDO ZTE usb modem AC 2726 in Linux
Computer Hardware & Software, Tips & trick, by brigs.
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. Not too long from me to bring back home with small usb modem from ZTE Corporation model AC 2726. It’s handy modem very easy to use especially for windows or mac user cause internal memory simulate act-like 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 cd-rom device only. 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= 0×19d2
DefaultProduct= 0xfff5
TargetVendor= 0×19d2
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 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 you can connecting and browsing the website is good so the above configuration was done, last step is make little udev rules for automatic flip to modem mode when you plugin the device to your usb port. 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”













Nice!
I like this one, and I’ll be happy to meet some other friend like you in Bandung.
Btw, we live in same town, right?
yeap
thanks for visiting me, it’s nice to know you andi