Pages : 1
#1 Le 29/06/2015, à 15:53
- Didier JCM
connection GPS bluetooth
Bonjour,
Je n'arrive pas a connecter mon GPS bluetooth (Locosys BGT 31).
J'ai suivi la section 2.2 de la page GPS de la doc.
didier@EeePC:~$ hcitool scan
Scanning ...
00:0B:0D:94:BD:ED Bluetooth GPS (94:bd:ed)
didier@EeePC:~$ sudo rfcomm connect 0 00:0B:0D:94:BD:ED
sudo: unable to resolve host EeePC
Connected /dev/rfcomm0 to 00:0B:0D:94:BD:ED on channel 1
Press CTRL-C for hangup
^CDisconnected
didier@EeePC:~$ sdptool browse 00:0B:0D:94:BD:ED
Browsing 00:0B:0D:94:BD:ED ...
Service Name: SPP slave
Service Description: Bluetooth SPP V1.06
Service RecHandle: 0x10000
Service Class ID List:
"Serial Port" (0x1101)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Contenu du fichier /etc/bluetooth/rfcomm.conf :
#
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:0B:0D:94:BD:ED;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "serial port";
}
didier@EeePC:~$ /etc/init.d/bluetooth restart
[ ok ] Restarting bluetooth (via systemctl): bluetooth.service.
didier@EeePC:~$ rfcomm connect 0
Can't open RFCOMM device: Permission denied
didier@EeePC:~$ sudo rfcomm connect 0
sudo: unable to resolve host EeePC
Connected /dev/rfcomm0 to 00:0B:0D:94:BD:ED on channel 1
Press CTRL-C for hangup
^CDisconnected
didier@EeePC:~$ gpsd /dev/rfcomm0
didier@EeePC:~$ xgps
Là je me pose plusieurs questions :
- pourquoi le 'permission denied avecla commande rfcomm ?
- pourquoi : sudo: unable to resolve host EeePC ?
- La réponse n'est pas celle attendue (address already in use)
- La fenetre xgps ne contient aucune donnée : la connexion n'est pas établie.
pour complémént d'info
didier@EeePC:~$ lsusb
Bus 001 Device 004: ID 04f2:b071 Chicony Electronics Co., Ltd 2.0M UVC Webcam / CNF7129
Bus 001 Device 003: ID 0951:1606 Kingston Technology Eee PC 701 SD Card Reader [ENE UB6225]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Merci d'avance a qui voudra bien se pencher sur mon cas !
Dernière modification par Didier JCM (Le 29/06/2015, à 15:55)
Hors ligne
Pages : 1