Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] How to use eMobile Huawei USB dongles (with Asashi net)



Someone asked me how to use a eMobile PCMCIA card with Ubuntu; I'm not
sure. Does anybody know?



Here's how I use an eMobile USB 3G modem with Ubuntu, just in case this
might be of interest to the list. It starts up pppd with udev as soon as
the dongle is plugged in.

Thanks to Bruce for recommending the Asahi net system, which uses the
eMobile 3G network but Asahi net IPs. It's been reliable and doesn't
have a vicious contract period. Note that the eMobile 3G network is a
bit sketchy even in central Tokyo (e.g., around Ikebukuro) and, in my
limited experience, rather hopeless anywhere outside Tokyo not
qualifying as a decent city.

Username should be xxxx@example.com for Asahi Net or em for plain eMobile.
The password is your Asahi Net password or em for plain eMobile. Disable
Init3 in wvdial.conf for plain eMobile.

/etc/wvdial.conf:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","atson.net","",0,0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/modem
ISDN = 0
Phone = *99***1#
Password = ${password}
Username = ${username}
Stupid mode = yes

Now you should be able to change the Modem = /dev/modem line to the
correct USB device and connect with

    sudo wvdial

Alternatively, a few extra settings will get the thing to work
automatically when plugged in.

/etc/ppp/peers/asahi-net:
/dev/modem
init "wvdial -c"
usepeerdns
persist
user ${username}

/etc/udev/rules.d/99-vii-usb-wvdial.rules:
ACTION!="add|change", GOTO="vii_usb_wvdial_rules_end"
SUBSYSTEM!="tty", GOTO="vii_usb_wvdial_rules_end"
KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*",GOTO="vii_usb_wvdial_rules_end"

IMPORT="usb_id --export %p"

ENV{ID_USB_INTERFACE_NUM}!="00",GOTO="vii_usb_wvdial_rules_end"
ENV{ID_MODEL}!="HUAWEI*",GOTO="vii_usb_wvdial_rules_end"

SYMLINK+="modem"
RUN+="/usr/sbin/pppd call asahi-net"

LABEL="vii_usb_wvdial_rules_end"


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links