Ubuntu/Kubuntu 6.10 > 7.10
per la connessione Bluetooth
—————————–
——> inserire dispositivo bluetooth (penna o altro)
——> controllare presenza modulo (modprobe -l|grep bluetooth) e/o
——> caricare modulo bluetooth (modprobe bluetooth)
——> installare i componenti necessari da root
apt-get install bluez-utils <– (per gnome se necessario)
——solo gnome——
——> digitare il comando:
hcitool scan
kaihei@lapt:/etc/bluetooth$ hcitool scan
Scanning …
00:19:67:24:50:D4 nomedispositivo
——anche kubuntu—–
——> poi dopo…
sdptool browse
——> e scegliere il canale da utilizzare ed
——> editare successivamente il file /etc/rfcomm.conf:
#
# RFCOMM configuration file.
#
rfcomm0 {
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device 00:19:67:24:50:D4; <– ECCO L’INDIRIZZO DEVICE
#
# # RFCOMM channel for the connection
# # Il canale
channel 2; <– ED ECCO IL CANALE SCELTO (2 = Dial-Up)
#
# # Description of the connection
# comment “Example Bluetooth device”;
}
——> successivamente digitare il comando:
rfcomm bind /dev/rfcomm0 00:19:67:24:50:D4 2 <–device+indirizzo + canale scelto
——> editare il file /etc/hcid.conf (se diverso dal seguente)
#
# HCI daemon configuration file.
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none – Security manager disabled
# auto – Use local PIN for incoming connections
# user – Always ask user for a PIN
#
security user;
# Pairing mode
# none – Pairing disabled
# multi – Allow pairing with already paired devices
# once – Pair once and deny successive attempts
pairing multi;
# Default PIN code for incoming connections
passkey “1234″;
}
# Default settings for HCI devices
device {
# Local device name
# %d – device id
# %h – host name
name “%h-%d”;
# Local device class
class 0×3e0100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
discovto 0;
# Default link mode
# none – no specific policy
# accept – always accept incoming connections
# master – become master on incoming connections,
# deny role switch on outgoing connections
lm accept;
# Default link policy
# none – no specific policy
# rswitch – allow role switch
# hold – allow hold mode
# sniff – allow sniff mode
# park – allow park mode
lp rswitch,hold,sniff,park;
}
——> configurare /etc/wvdial.conf con un qualsiasi editor (es. vi /etc/wvdial.conf)
[Dialer Bluetooth]
Init1 = ATZ
Init2 = AT+CGDCONT=1,”IP”,”ibox.tim.it”,,0,0 <– (VALIDO PER CELL. TIM)
<– PER ALTRI TIPI CERCARE IN RETE –>
Phone = *99# <– (CERCARE O CHIAMARE IL CENTRO ASSISTENZA DELL’OPERATORE CHE VI DA IL SERVIZIO TELEFONICO PERCHÈ IL NUMERO CAMBIA ANCHE IN BASE AL MODELLO DI CELLULARE CHE UTILIZZATE)
Username = guest
Password = guest
Modem = /dev/rfcomm0
Baud = 460800
——> digitare il comando:
wvdial Bluetooth
——> si può anche utilizzare pppconfig
sudo pppconfig <– (CONFIGURATE SEGUENDO I VARI PASSAGGI, SEGUIRE SOPRA PER NUMERO, UTENTE, PASSWORD ETC. LA STRINGA D’INIZIALIZZAZIONE (Init2) DEL WVDIAL.CONF SOPRA VA INSERITA NELL’ADVANCE OPTION DEL PPPCONFIG AL POSTO DI “d/c/” O COMUNQUE COME STRINGA Init2)
N.B.
In Kubuntu le operazioni sopra risultano più semplici perchè con kbluetooth basta cliccare e cercare i nuovi dispositivi per ottenerne gli indirizzi per poi comunque editare il file /etc/bluetooth/rfcomm.
Prima di editare i file controllare
con il comando “ls -la” i permessi dei suddetti
ex: ls -la /etc/rfcomm.conf
-rw-r–r– 1 root root 1341 2007-11-10 23:19 rfcomm.conf
il file sopra va cambiato da root (su+password oppure sudo+password)