mini-HOWTO Linux-Bluetooth-GPRS-RAZRv3-one.at GPRS INTERNET ACCESS with LINUX COMPUTER via BLUETOOTH-CONNECTED MOTOROLA RAZRv3 PHONE rm 21.-23.Nov.2005 using: - Motorola RAZR v3 / ONE.at - Linux SUSE 10.0 - (Belkin) Bluetooth USB Adapter - most brands and models will do fine 1. USAGE ================================== 1.1. Bluetooth (remember to use your own Bluetooth address instead of 00:15:09:AB:CD:EF - see section 2.2. in Installation below) 1.1.1. Hardware (- power on Bluetooth in the phone if it was off - I have it always on) - insert Bluetooth USB Adapter - then: - in first rootshell: 1.1.2. Bluetooth connection between computer and phone: # rfcomm connect /dev/rfcomm0 00:15:09:AB:CD:EF there must be no errors - (there should be the message to type Ctrl-C to close the connection) 1.2. GPRS connection between computer and internet provider via phone: in second rootshell: # pppd rfcomm0 call gprs-script (you should see a long modem dialog sequence, near the end there should be shown your new local IP address and the hint "type Ctrl-C to terminate" or similar) 1.3. ... use Internet ... - for a quick test you can type > ping artm-friends.at or your favorite ping host 1.4. Shutting off: - terminate pppd by typing Ctrl-C in the second rootshell - terminate bluetooth by typing Ctrl-C in the first rootshell - pull off Bluetooth USB Adapter 2. INSTALLATION =========================== 2.1. script files: create this file and save as /etc/ppp/peers/gprs-script: 115200 debug connect '/usr/sbin/chat -f /etc/ppp/chat-gprs-v3 -r /dev/console' crtscts noipdefault modem usepeerdns defaultroute connect-delay 5000 (end of gprs-script) create this file and save as /etc/ppp/chat-gprs-v3: (remember to adapt your GPRS APN in the but last line, here "web.one.at") TIMEOUT 5 ECHO ON ABORT '\nBUSY\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 12 OK ATE1 OK 'AT+cgdcont=1,"IP","web.one.at"' OK ATD*99***1# (end-of chat-gprs-v3) 2.2. Bluetooth preparations: - insert the Bluetooth USB adapter, close a KDE Bluetooth dialog if one pops up - in the Motorola phone switch Bluetooth on and make it visible ("Find me" in the Bluetooth menu) - find out the Bluetooth address of your phone using the Linux command: # hcitool scan I got 00:15:A8:xx:xx:xx for my phone - replace your phone address everywhere in this file! I use 00:15:09:AB:CD:EF here as an example. Then fiddle with YaST to get pairing working - this is a problem because KDE seems to mix in and because the Motorola can not initiate a pairing sequence like other phones can so you must initiate the pairing from Linux. This only works if the settings in YaST are correct, I now have the following: - Bluetooth services activated - Security Manager - use local PIN (enter your favorite 4 or 5 Digit PIN number) - on the Security Options dialog box - Authentication: ON - Encryption: OFF - Inquiry Scan ON - Page Scan ON note that these are the default settings IMHO, but they worked for me only after I changed them and later changed them back to what they were in the first place! 2.3. Bluetooth device pairing: - in a rootshell type: # rfcomm bind /dev/rfcomm0 00:15:09:AB:CD:EF 1 #or: rfcomm bind /dev/rfcomm0 0 00:15:09:AB:CD:EF 1 #if errors occur release the dev with: rfcomm release /dev/rfcomm0 # try to change Bluetooth settings in YaST... #then issue the bind command again... # until binding is successful ] Pairing will be stored permanently in the Linux system, so you have to do this only once.