How to configure Ubuntu 10.04 and Motorola E6 mobile phone (USB GPRS Modem)

EASY STEP-BY-STEP INSTRUCTIONS TO ENABLE INTERNET ACCESS FROM A MOTOROLA E6 MOBILE PHONE. CONFIGURE YOUR MOTOROLA E6 MOBILE PHONE AS A GPRS MODEM FOR USE WITH UBUNTU.

motorola motorokr e6 pda phone

Introduction

These instructions explain how I configured Ubuntu 10.04 LTS (64 bit) to connect to the Internet using a Motorola E6 mobile phone. Although I cannot guarantee they may work, the instructions may be useful for someone with similar requirements and hardware. For reference, I used the following:

  • IBM Lenovo R61i laptop computer
  • USB cable
  • Motorola E6 (MotoRokr) smart phone
  • Happy DTAC SIM

Please note that I had already subscribed to a GPRS package with the carrier DTAC (Thailand). This cost about 100 baht per month for a maximum of 20 hours usage.

Installation

On the phone, I clicked the “status bar” (with icons for signal strength, remaining battery, etc.) and selected the following:

GPRS: Enabled [OK]

Next, I configured the phone to operate as a modem:

Setup > USB Mode > Modem [Save]

After this step was completed, I connected the phone to the laptop computer using a standard USB cable. I then opened a terminal window and issued the following command:

lsusb [enter]

This listed all USB devices including my USB modem:

Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 22b8:3802 Motorola PCS C330/C350L/C450/EZX GSM Phone (AT)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

To show only lines containing the word “Motorola” I could have changed the command as follows:

lsusb | grep Motorola [enter]

Next, I had to install an essential program named wvdial. To do this I had to connect to the Internet (a chicken and egg problem). There were no “free” wifi signals in my neighborhood so I disconnected the USB cable and then took the laptop computer to a nearby Internet café where they allowed me to use a spare Ethernet connection. Connected to the Internet, I issued the following commands:

sudo apt-get update [enter]
sudo apt-get install wvdial [enter]

The dialer program (“wvdial”) downloaded and installed very quickly. I then reconnected the phone using the USB cable and then issued the following command:

sudo wvdialconf [enter]

Auto-configuration took just a few seconds. I then opened the PPP (peer to peer protocol) options file using a simple text editor:

sudo gedit /etc/ppp/options

and then added the following line denoting a local and remote IP address:

0.0.0.0:10.1.1.254

I then saved the changes and closed the file.

Next, I opened the wvdial configuration file for editing:

sudo gedit /etc/wvdial.conf

and then added / edited the following lines:

Init3 = AT+CGDCONT=1,"IP","www.dtac.co.th"
Stupid Mode = 1
Phone = *99#
Username = ''
Password = ''

After the changes, the edited file looked like this:

[Dialer Defaults]
Modem = /dev/ttyACM0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","www.dtac.co.th"
Stupid Mode = 1
Modem Type = USB Modem
Phone = *99#
New PPPD = yes
ISDN = 0
Username = ''
Password = ''
Baud = 460800

That was the configuration completed!

Using wvdial to connect to the Internet

To connect to the Internet using wvdial and a USB modem, I now issue the following command:

sudo wvdial [enter]

This normally outputs something like this:

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","www.dtac.co.th"
AT+CGDCONT=1,"IP","www.dtac.co.th"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Jun 30 13:44:42 2010
--> Pid of pppd: 3457
--> Using interface ppp0
--> local IP address 115.67.241.2
--> remote IP address 10.1.1.254
--> primary DNS address 124.40.237.228
--> secondary DNS address 124.40.237.236

The Internet connection is slow but adequate for basic web browsing and checking emails. When I have finished using the dial-up connection, I press Ctrl + C to end the session:

Attempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 0.2 minutes.
--> Disconnecting at Wed Jun 30 13:45:00 2010

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.