Raspberry pi e Bluetooth
Começando...
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get install bluetooth bluez-utils blueman
Ligar o usb de bluetooth
lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Está ligado correctamente
vamos verificar estado do serviço
/etc/init.d/bluetooth status
[ ok ] bluetooth is running.
Ok vamos lá pesquisar equipamentos ....
hcitool scan
Scanning ...
...
...
Scanning ...
FC:A1:3E:C0:7A:D9 Viper5000Galaxy
00:21:4F:4B:08:E1 SONY
:) encontrou alguma coisa ... :)
vamos lá testar a ligação
sudo l2ping -c 1 00:21:4F:4B:08:E1
neste caso estou a pingar o mac do Sony
Ping: 00:21:4F:4B:08:E1 from 00:15:83:15:A3:10 (data size 44) ...
0 bytes from 00:21:4F:4B:08:E1 id 0 time 1598.02ms
1 sent, 1 received, 0% loss
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get install bluetooth bluez-utils blueman
Ligar o usb de bluetooth
lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Está ligado correctamente
vamos verificar estado do serviço
/etc/init.d/bluetooth status
[ ok ] bluetooth is running.
Ok vamos lá pesquisar equipamentos ....
hcitool scan
Scanning ...
...
...
Scanning ...
FC:A1:3E:C0:7A:D9 Viper5000Galaxy
00:21:4F:4B:08:E1 SONY
:) encontrou alguma coisa ... :)
vamos lá testar a ligação
sudo l2ping -c 1 00:21:4F:4B:08:E1
neste caso estou a pingar o mac do Sony
Ping: 00:21:4F:4B:08:E1 from 00:15:83:15:A3:10 (data size 44) ...
0 bytes from 00:21:4F:4B:08:E1 id 0 time 1598.02ms
1 sent, 1 received, 0% loss
Comentários