|
Thursday, 22 November 2007 |
|
***NOTE*** This tutorial has been superseded by the 3egprs package and is only kept here for reference purposes. ----- This step-by-step guide will show you how to pair a bluetooth phone with your 3epc to use as a GPRS modem. I am planning on making this into a shell script or even a python script to simplify the process. It is taken largely from this guide with a few modifications and improvements added. Anything in <> brackets indicates you have to fill your details here, so <address> means to type your address (bluetooth address) into this space (note: don't type the brackets). Setup process (only needs to be completed once): - Plug in your Bluetooth dongle to the 3epc and make sure your phone has bluetooth on
- Open a console (by pressing ctrl-t) and type: sudo su
- Type: hciconfig hci0 up
- Type: hcitool scan
- If step 4 was successful it should've listed the bluetooth devices within range along with their addresses. Copy your bluetooth address or write it down.
- Type: sdptool search -bdaddr <address>
- You should see a lot of servie entries listed, find the one called dial-up networking and make a note of the Channel it uses.
- Type: kate /etc/bluetooth/hcid.conf
- Replace the line "security user;" to "security auto;"
- Replace the passkey with the one you would like to use, or leave it as "1234" (note: this is not very secure as most people know 1234 is default)
- Save the file and close kate
- Type: kate /etc/bluetooth/rfcomm.conf
- Insert your bluetooth address and dial-up networking channel (from step 5)
- Save the file and close kate
- Type: kate /etc/ppp/peers/gprs
- Paste this text into kate:
- /dev/rfcomm0
connect '/usr/sbin/chat -v -f /etc/ppp/peers/gprs-chat'
defaultroute replacedefaultroute noipdefault usepeerdns 912600
debug noauth nopcomp
maxfail 10 lcp-echo-interval 5 lcp-echo-failure 12 holdoff 3 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp lock nocrtscts - Save the file and close kate
- Type: kate /etc/ppp/peers/gprs-chat
- Paste this text into kate:
TIMEOUT 10 ECHO ON ABORT '\nABORT\r' ABORT '\nERROR\r' ABORT '\nNO ANSWER\r' ABORT '\nNO CARRIER\r' ABORT '\nNO DIALTONE\r' ABORT '\nRINGING\r\n\r\nRINGING\r' '' \rAT TIMEOUT 15 OK ATE1 OK 'AT+cgdcont=1,"IP","<Your APN goes here>"' OK ATD*99# CONNECT - Make sure you change the <Your APN goes here> part, you can find your APN in your phone by looking under services or connections and seeing the name of the connection used to dial-up to the internet.
- That's it for the configuration.
- From your phone initiate the pairing process with your 3epc (it should list devices in range and one of them should be something like "myname-eeepc")
- Now to start the connection just type: pon gprs
- And to stop the connection just type: poff gprs
|