How to tether my Motorola Q phone to my computer, so that I can use it as a modem when I'm not in range of a wireless network?I read a whole lot of stupid forum posts on this topic, mostly by seriously confused people, and I was under the mistaken impression that (a) it's really hard to do, (b) it requires special software, and (c) Sprint has removed the features enabling tethering from the phone.
Well, it ain't true. In the course of a few hours, I figured out not how to tether my Moto Q in two different ways: first, using a USB cable, and second, via Bluetooth. So I'm going to explain how to do it both ways under Ubuntu Linux 8.10. It should be pretty much the same under other Linux variants.
Using a USB cable
You need to have pppd, chat, and pon/poff commands installed. Under Debian or Ubuntu, just do apt-get install ppp to install them.- First, on the phone go to: Start Menu | Accessories | Modem Link. Check that the Connection type is set to USB. Then press Activate.
- A screen will pop up telling you to press OK before plugging in the USB cable. Do it, then plug in the cable. (Linux is apparently smart enough to not get confused if you keep the cable plugged in the whole time, so you can basically ignore this part.)
- Okay, now go to your computer. You should now have a new device node, /dev/ttyACM0. The Linux kernel makes the phone look just like a good ol' fashioned serial modem using this driver.
- Now let's make a configuration file for pppd. Some of you may remember this from the dark ages of dial-up-modems. From the command line, start up an editor as root:
$ sudo nano /etc/ppp/peers/motoq_usbAnd enter the following contents of this file:
/dev/ttyACM0 # connect to the serial port /dev/ttyACM0 460800 # ... at 460800 bps (as fast as possible) usepeerdns # get DNS servers from the phone defaultroute # and use this as the default internet connection crtscts # use hardware flow control lcp-echo-failure 0 # if you forget this, ppp will drop the connection # (ask me if you want the gory details) # This explains to pppd how to talk to the "modem" # to set things up. Really simple! Just dial a # made-up number and then you're done. # connect "chat '' ATZ OK 'ATDT#777' CONNECT ''"
$ pon motoq_usb nodetachIf all goes well, you'll see something like this:
Serial connection established. Using interface ppp0 Connect: ppp0 <--> /dev/ttyACM0 Cannot determine ethernet address for proxy ARP local IP address 68.246.162.72 remote IP address 68.28.113.69 primary DNS address 68.28.114.91 secondary DNS address 68.28.122.93
$ pon motoq_usb # to connect $ poff motoq_usb # to disconnect
Using Bluetooth
In my next installment, I'll explain how to use the Moto Q as a Bluetooth modem. Obviously, you need a Bluetooth adapter on your computer to do this. I got a tiny one for $3 and it works great. With the phone as a Bluetooth modem, things are really überl33t. You can keep the phone in your pocket and use it as a modem without ever messing with any cables :-)Coming soon...
No comments:
Post a Comment