Questa guida spiega come connettere il nokia 6230 tramite bluetooth ad un pc linux con un adattatore usb.
Configurazioni:
-Pc:Toshiba Satellite A40 con Linux Slackware 10 (current 16/07/2004 e kernel 2.6.6)
-Nokia 6230 con gprs Wind
Pacchetti necessari:
-bluez-bluefw-1.0.tar.gz
-bluez-hciemu-1.0.tar.gz
-bluez-pin-0.23.tar.gz
-bluez-hcidump-1.8.tar.gz
-bluez-libs-2.7.tar.gz
-bluez-utils-2.7.tar.gz
Installate con tar xjvf nomefile poi entrate nella cartella che viene creata e date da root "./configure && make && make install".
Script:Ecco gli script da me fatti per la connessione bluetooth al cellulare
/etc/bluetooth/hcid.conf
# 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 auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
#pin_helper /etc/bluetooth/pin;
pin_helper bluepin;
# D-Bus PIN helper
#dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "ToshibaA40";
# Local device class
class 0x100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# 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,master;
#
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp hold,sniff,park;
# Authentication and Encryption
#auth enable;
#encrypt enable;
}
/etc/bluetooth/rfcomm.conf
rfcomm0 {
bind yes;
device 00:00:00:00:00:00; //mac address del cellulare
channel 1;
comment "Cosavolete";
}
bluepin
#!/bin/bash
echo "PIN:1234"
connectbluenokia deve avere i permessi di esecuzione chmod +x nomefile)
hcid -f /etc/bluetooth/hcid.conf
hcitool scan
mknod /dev/rfcomm0 c 216 0
rfcomm connect rfcomm0 00:00:00:00:00:00 //mac addr cel
Script di connessione gprs wind:Nota tutti devono avere i permessi di esecuzione
/etc/ppp/peers/connect-chat-gprs
ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
'' ATZ
OK-AT-OK AT+CGDCONT=1,"IP","internet.wind"
OK "ATD*99#"
CONNECT ''
/etc/ppp/peers/gprs
/dev/rfcomm0 57600
connect '/usr/sbin/chat -v -f /etc/ppp/peers/connect-chat-gprs'
noauth
defaultroute
debug
Per lanciare la connessione da root il comando è
localhost#pppd call gprs
naturalmente prima dovete aver connesso il cellulare col bluetooth.
Postato il Saturday, 17 July @ 19:22:49 CEST di Ir0nFl4m3