CONNECTING PLDT WEROAM ON LINUX

Test Machine:

OS:                                             OpenSuSE 10.3 32-bit
usb_modeswitch            -->     http://www.draisberghof.de/usb_modeswitch/
                                                   Check the list of supported devices.
libusb, comgt or gcom   -->    prerequisites to control your 3G/GPRS cards.
Test Device:                             ZTE MF620 HSDPA data card.


HOWTO:

Note: Unplug your device until the configuration is ready.

1.Install the usb_modeswitch

    #> tar jxvf usb_modeswitch-0.9.4.tar.bz2
    #> cd usb_modeswitch-0.9.4
    #> ./compile.sh

    #> cp usb_modeswitch /sbin
                or
    #> cp usb_modeswitch /usr/sbin


2. Copy the usb_modeswitch.conf to /etc. You can also use the updated version found in http://www.draisberghof.de/usb_modeswitch/.

3. For ZTE MF620, comment out the designated configuration for the said device, or enter the following at the bottom of the file:

DefaultVendor=  0x19d2
DefaultProduct= 0x2000

TargetVendor=   0x19d2
TargetProduct=  0x0001

MessageEndpoint=0x04
MessageContent="55534243123456780000000000000600000000000000000000000000000000"



4. Create a new udev rule for ZTE MF620 device.

ACTION!="add", GOTO="ZTE_End"

SUBSYSTEM=="usb", SYSFS{idProduct}=="2000",
SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"

SUBSYSTEM=="usb", SYSFS{idProduct}=="0001",
SYSFS{idVendor}=="19d2", GOTO="ZTE_Modem"

LABEL="ZTE_ZeroCD"

#RUN+="/sbin/rmmod usb_storage"

LABEL="ZTE_Modem"
RUN+="/sbin/usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001"
RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x0001",
MODE="660", GROUP="dialout"
MODE="660", GROUP="tty"
LABEL="ZTE_End"

5. Install comgt and libusb in case not yet done.

6.create a file named /etc/ppp/peers/pldt

/dev/ttyUSB0
nobsdcomp
novj
refuse-chap
nodeflate
ipcp-accept-local
ipcp-no-address
ipcp-no-addresses
ipcp-max-configure 20
user [EMAIL PROTECTED]
password pldt
crtscts
modem
noipdefault
replacedefaultroute
defaultroute
lock
noauth
connect '/usr/sbin/chat -f /etc/ppp/peers/pldt.chat'
ipcp-restart 8
ipcp-max-configure 50
ipcp-accept-local
ipcp-accept-remote
usepeerdns

7. Then create a file named /etc/ppp/peers/pldt.chat

ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT "NO DIALTONE"
"" ATZ
OK AT+CGDCONT=1,"IP","weroam"
OK ATDT*99#
'CONNECT' '\c'
'TIMEOUT' '20'

8. Now plug your ZTE MF620 device and on  root console, type:

    #> tail -f /var/log/messages

    Check for the following log messages which indicates that Linux properly detects the device.

Jun 12 16:19:26 linux kernel: usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0
Jun 12 16:19:26 linux kernel: usb 1-1: Product: ZTE CDMA Technologies MSM
Jun 12 16:19:26 linux kernel: usb 1-1: Manufacturer: Qualcomm, Incorporated
Jun 12 16:19:26 linux kernel: usb 1-1: configuration #1 chosen from 1 choice
Jun 12 16:19:26 linux kernel: usbserial_generic 1-1:1.0: generic converter detected
Jun 12 16:19:26 linux kernel: usb 1-1: generic converter now attached to ttyUSB0
Jun 12 16:19:26 linux kernel: usbserial_generic 1-1:1.1: generic converter detected
Jun 12 16:19:26 linux kernel: usb 1-1: generic converter now attached to ttyUSB1
Jun 12 16:19:26 linux kernel: usbserial_generic 1-1:1.2: generic converter detected
Jun 12 16:19:26 linux kernel: usb 1-1: generic converter now attached to ttyUSB2

   
9. Close the tail of /var/log/messages by pressing CTRL-C on the keyboard.

10. Execute the comgt or gcom command.
   
    #> comgt -d /dev/ttyUSB0

    Check for the following log to confirm if Linux successfully configure your device.

SIM ready
Waiting for Registration..(120 sec max)..
Registered on Home network: "Smart Communications Inc.",2
Signal Quality: 16,99





11. Then execute the pppd script afterwards.

    #> pppd call pldt



12. The only problem with the procedure is that it cannot configures the default gateway  or the network routing is not properly configured. I fixed it by adding the following command in OpenSuSE:

    #> /etc/sysconfig/network/scripts/ifup-route <IP addr of PPP0>

    or

    #> route add default gw <IP addr of  PPP0>

13. Test your internet connection.






_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to