Instalasi Modem Smartfren ZTE AC2726 di Linux

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 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”

Comments