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 Telkom­sel Flash ISP that serve for wire­less GSM Inter­net provider few month ago, i decided to try­ing using new tech­nol­ogy that bring some improve­ment band­width and of course free quota for geeks user from SMART inter­net ser­vice provider. They using new EVDO revi­sion 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 win­dows or mac user cause inter­nal mem­ory sim­u­late some cd-rom device that pop-up prompt for instal­la­tion dri­ver. In Linux espe­cially Open­Suse 11.1 that device can’t be detected well. Device detected as only  cd-rom device. For a while i wait­ing for new ker­nel for Open­Suse that release soon in 11.2 is 26.31.x to make some lit­tle experiment.

1. Check your modem detected with

brigs@linux-oodq:~> lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foun­da­tion 2.0 root hub

Bus 002 Device 001: ID 1d6b:0001 Linux Foun­da­tion 1.1 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foun­da­tion 1.1 root hub

Bus 003 Device 002: ID 19d2:fff5 ONDA Com­mu­ni­ca­tion S.p.A.

If you see that id 19d2:fff5 is detected as USB stor­age device or cd-rom device. That imposib­ble to make it for using as dialup modem. As i say above you must using new ker­nel in 26.28 or up for prob­ing ser­ial port.

2. Down­load here tools for flip-flop device usb_modeswitch and then you can extract them. Just copy 2 impor­tant 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 edi­tor tools. Add these line at lat­est prompt

########################################################

# /etc/usb_modeswitch.conf

#

# Smart ZTE AC2726 (EVDO)

#

Default­Ven­dor=  0x19d2

Default­Prod­uct= 0xfff5

Tar­getVen­dor=   0x19d2

Tar­get­Prod­uct=  0xfff1

MessageContent=“5553424312345678c00000008000069f030000000000000000000000000000”

Plu­gin your usb device and give a com­mand as root

#usb_modeswitch

And then check again your device with lsusb

brigs@linux-oodq:~> lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foun­da­tion 2.0 root hub

Bus 002 Device 001: ID 1d6b:0001 Linux Foun­da­tion 1.1 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foun­da­tion 1.1 root hub

Bus 003 Device 002: ID 19d2:fff1 ONDA Com­mu­ni­ca­tion S.p.A.

If you see­ing that device id change you done.…

4. Make some script for wvdial con­fig­u­ra­tion for connection

[Dialer smart]

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stu­pid Mode = 1

Modem = /dev/ttyUSB0

Phone = #777

New PPPD = yes

Pass­word = smart

Modem Type = USB Modem

Com­puserve = 0

Baud = 921600

Auto DNS = 1

Dial Com­mand = ATDT

Ask Pass­word = 0

ISDN = 0

User­name = smart

Check Def Route = on

Auto Recon­nect = 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 con­fig­u­ra­tion using wvdial

#sudo wvdial –C /home/smart.conf smart

If con­nect­ing well so the above con­fig­u­ra­tion was done, last step was mak­ing lit­tle udev rules for auto­matic flip to modem mode when you plu­gin the device to your usb con­nec­tion. 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”

TechMilieu.com

Back Top

Responses to “[Tips Linux]Smart EVDO ZTE usb modem AC 2726 in Linux”

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Back Top