I'm using PLDT WeROAM and been using it for about 2 months now. I've managed to connect it using wvdial/ppp. Earlier tried to use comgt and make it work but with intermittent connection. You need to use usb_modeswitch to switch the device from storage to modem mode.

Here's the howto:

Test Machine:

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



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. Save it as /etc/udev/rules.d/15-zte-mf620.rules 

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. Edit the /etc/ppp/peers/wvdial file. Add / modify it with the following:

usepeerdns
plugin passwordfd.so
noauth
name wvdial
defaultroute
replacedefaultroute
noipdefault
novj
nobsdcomp



6. I haven't fixed my  /etc/ppp/option.. try removing redundant entries, but here what I currently configured.

noipdefault
refuse-chap
debug
kdebug 7
noauth
modem
crtscts
lock
asyncmap 0
#usepeerdns
#replacedefaultroute
#defaulroute
lcp-echo-interval 30
lcp-echo-failure 0
lcp-max-configure 60
lcp-restart 8
ipcp-accept-local
ipcp-accept-remote
ipcp-no-address
ipcp-no-addresses
ipcp-max-configure 50
ipcp-restart 8
idle 6000
noipx
novj
mtu 1456
file /etc/ppp/filters



7. Then modify your /etc/wvdial.conf with entry similar to this:


[Dialer Defaults]
Phone = *99***2#
Username = YOURUSERNAME
Password = YOURPASSWORD
APN = ACCESS POINT NAME OF YOUR NETWORK
Stupid Mode = 1


[Dialer weroam]
Modem = /dev/ttyUSB0
Baud = 921600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CFUN=1;+CGDCONT=2,"IP","weroam"
Area Code =
Ask Password = 0
Dial Command = ATD
FlowControl=NOFLOW
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 3000
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1



8. Now plug the usb device and wait around 1-2 minutes to establish device detection. you can verify it via

tail -f /var/log/messages


and wait for the message similar below to appear:

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. Then execute

wvdial weroam

Note: Check the following configuration in /etc/wvdial.conf


Baud = 921600  ## This is the highest setup you can also use 460800 or 384600
Phone = *99***2#   ## By default normal 3G connection in the philippines uses *99#
Init3 = AT+CFUN=1;+CGDCONT=2,"IP","weroam"  ## when using *99# on phone option change the  +CGDCONT=2  to +CGDCONT=1




On 08/08/2008 06:49 PM, bryan wrote:
Hi,

Last Sunday I purchased a smartbro prepaid kit.

Though smart said it only works on Xandros, I found a message on a discussion where the author said he
managed to get it to work on  fedoracore  8.... so I decided to take the chance.... and it paid off

Managed to get it to work on Slackware 12.1

used the ppp files options(etc/ppp/peers/gprs) and pppscript(etc/ppp/peers/loadbro_dial) in the .deb package found on smart's webpage.... used alien to convert it to .tgz then exploded the package....

Had to comment out some unsupported commands and set the baud rate to 460800 the fastest most
linux distros will allow. Xandros appears to be tweaked....

And had to borrow a windows based pc to activate the 3G sim in the modem(you have to do this once for Mac & linux--- that includes Xandros), after which ppp-on dialed up okay...

just had to set the contents of resolv.conf for the DNS (does not do it automatically)

it's as fast as a  telephone based  DSL connection  (thus up to x7 faster than dial-up,using 3G/HSPDA) and portable

NB:

    After plugging the modem :
    if your distro loads the  usb_storage module remove it.
    then modprobe usbserial vendor=0x19d2 product=0x0001
    then wait for the modem 2 change mode b4 dialing

     Conflicts with HAL, coz the modem first appears as  a usb storage( CD) then changes to a serial  
     device later. so I disabled HAL-- and messagebus, which needs HAL so no point in starting it.


Hope this is good news
please give Max Limpag of Sunstar Cebu the head's up if you know him --- and if he's not monitoring this LUG hehehe thanks :)

Have fun!

-AKA Cagalli

Send instant messages to your online friends http://uk.messenger.yahoo.com

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


_________________________________________________
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