Thanks, well done!
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.
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:
Next, I configured the phone to operate as a modem:GPRS: Enabled [OK]
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:Setup > USB Mode > Modem [Save]
This listed all USB devices including my USB modem:lsusb [enter]
To show only lines containing the word “Motorola” I could have changed the command as follows: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
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:lsusb | grep Motorola [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 apt-get update [enter]
sudo apt-get install wvdial [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 wvdialconf [enter]
and then added the following line denoting a local and remote IP address:sudo gedit /etc/ppp/options
I then saved the changes and closed the file.0.0.0.0:10.1.1.254
Next, I opened the wvdial configuration file for editing:
and then added / edited the following lines:sudo gedit /etc/wvdial.conf
After the changes, the edited file looked like this:Init3 = AT+CGDCONT=1,"IP","www.dtac.co.th"
Stupid Mode = 1
Phone = *99#
Username = ''
Password = ''
NOTE : The red colored is your APN
That was the configuration completed![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
Using wvdial to connect to the Internet
To connect to the Internet using wvdial and a USB modem, I now issue the following command:
This normally outputs something like this:sudo wvdial [enter]
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:--> 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
UPDATEAttempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 0.2 minutes.
--> Disconnecting at Wed Jun 30 13:45:00 2010
ADDED A SCRIPT THAT WILL DO EVERYTHING DESCRIBED HERE JUST DO LIKE THIS
execute in terminal
This worked for me I hope this will be useful for many of you motorola and Linux lovers....sudo chmod 0777 ./script
sudo ./script
Thanks and Credits to ADMIN @ Bangkok Library | Digital library and information center for Bangkok, Thailand
Original Post : How to configure Ubuntu 10.04 and Motorola E6 mobile phone (USB GPRS Modem) | Bangkok Library
Last edited by kundancool; 11-20-2010 at 01:08 PM.
Motorola A1200 : Beast
Motorola MOTOROKR E6/E6e : GoldenBird/Bricked
Samsung Galaxy Y S5360 : Stock ROM (Gingerbread 2.3.6) - ROOTED
Thanks, well done!
I was part of that strange race of people aptly described as spending their lives doing things they detest to make money they don't want to buy things they don't need to impress people they dislike. -- Emile Henry Gauvreay
Motorola A1200 : Beast
Motorola MOTOROKR E6/E6e : GoldenBird/Bricked
Samsung Galaxy Y S5360 : Stock ROM (Gingerbread 2.3.6) - ROOTED