:: Cluster ad Alta Disponibilità   :: Partnership LXE   :: Linux Real Time - RTAI   :: Partnership Endian   :: Visione Artificiale nelle linee produttive MTS   :: Tag RFID ed Esempi Applicativi   :: TimePro Project   :: TimePro Zinco   :: TimePro TeleControl   :: TimePro Production   :: Progetto di Ricerca - Analisi e Supervisione Guasti   :: Integra Agent Framework   :: TimePro TeleMetry   :: TimePro Evolution   :: Linux su HP dv6000
Friday, 03 September 2010
Linux, Bluetooth and GPRS - A Practical Guide Print E-mail
User Rating: / 32
PoorBest 

The goal of the following guide is to be a step-by-step practical aid for those people who, like me, have the need to access Internet when they are travelling, using just the mobile phone and the Linux laptop.
Image

The laptop must have bluetooth, either internal or external is fine, and a mobile phone with Bluetooth and GPRS. To run the steps described in this guide we used: a laptop i386 running Kubuntu 5.10, an USB-Bluetooth adapter and a Motorola V3 razr; the mobile has the Vodafone business contract SIM card.

Steps to follow are described below :


Verify the GPRS access and setup

First of all we have to be sure we can access the web through the mobile phone browser (follow mobile phone instructions). Our V3 was not properly configured: we called the Vodafone 190 (Vodafone help desk) to have all parameters necessary to access the internet.


Required software installation

The package to install is the bluez-utils that includes different programs and utilities for mapping and handling bluetooth devices.
For Debian/Kubuntu the following instruction:
sudo apt-get install bluez-utils
executes all necessary steps to solve packet dependence and it also installs the necessary libbluetooth1 package. For others distributions (RPM o source based) you should search the internet.



Setup the mobile phone as a Modem

This step shows you how to connect the mobile and pairing it with the pc. The term pairing means the matching procedure between the pc and the bluetooth device where the safety PIN is required. In the case that the procedure has never been executed before, we have to change the safety PIN using the following instruction:
sudo echo "1234" > /etc/bluetooth/pin
where the 1234 is the personal pin you choose (insert a personal pin).
When you are asked to, from the mobile or from the pc, insert this pin.

Now you have to be sure the bluetooth service on the mobile is up and running and it is visible to the not-matched devices. In our specific case the service must be enabled following:
Settings -> Connection –> BlueTooth Link -> Setup -> Power (On)
then allow it to be visible :
Settings -> Connection –> BlueTooth Link -> Setup -> Find Me

At this point, the instruction :
hcitool inq
gives us the phisical address of the bluetooth device.

If there is no other BlueTooth device within the connection range, the result will be similar to:
Inquiring ...
        00:11:22:33:44:55       clock offset: 0x1234    class: 0x123456

now, find out the channel the mobile phone uses to run the “Dial-up” service :
sdptool browse 00:11:22:33:44:55
The result will be a list of supported services including necessary information; identify the service and the channel you have to use. The V3 “dial-up” service, example, it is showed in the first line as:
Service Name: Dial-up networking Gateway
Service Description: Dial-up networking Gateway
Service Provider: /a/mobile/system/cl.gif
Service RecHandle: 0x10001
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
.......
The info we need is the Channel (Channel: 1): it will be useful for the next step.
Now, we will create a virtual communication port that uses the GPRS-connection-bluetooth-bridge.
Edit the file/etc/bluetooth/rfcomm.conf inserting following rows:
rfcomm0 {
 device 00:11:22:33:44:55;
 channel 1;
 comment 'BT DUN';
}
replacing the device address and channel with the ones found out in previous steps.

Activate the virtual port :
sudo rfcomm bind rfcomm0
rfcomm

If everything has been executed properly, the second command displays the matched device, the channel and the status as in the example:
rfcomm0: 00:14:9A:75:87:2D channel 1 closed


Connection setup

Run KPPP, select Configure->Modem->New...


The figures show the two modem configuration tabs after the informations have been inserted

Image


Image


Select the "Comandi Modem..."  in the "Modem", tab and insert data as in the figure

Image


Replace the "Stringa di inizializzazione 2" with the one given from the own GRPS provider (the string in the figure works for the Vodafone provider)

Close all windows and open the main KPPP window and select :
Configure->Account->New->Manual Configuration
The final result must be similar to this

Image


Note that the displayed phone number could be not the right number for Nokia or others; try the *99# or search the web for the right one.

Select the "Personalizza gli argomenti di PPPD..." and insert "noauth" as in the figure:

Image


The setup should be completed; from the main KPPP window

Image


select the “Connetti” option and verify the result.

The segnalibri link contains the link to the original document that explains (less detailed) the same configuration.
 
Main Menu
Home
Contatti
Dove Siamo
Documenti
Indicizzazione Riviste
Amministra Sito
Login
Partners

linux.png apache.png php.png mysql.png joomla.png siteground.png
  

Sito Ottimizzato per Firefox e risoluzione di 800x600 o superiore