This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can I use BlueZ in Raspberry Pi 3 model B to control 51822/52832 device?

Hi,

I am trying to use BlueZ in "Raspberry Pi 3B" to connect my 51822/52832 device.

My Hardware is Raspberry Pi 3 model B, and use internal bluetooth interface, the OS is "2017-08-16-raspbian-stretch.img" and does not do any update.

I use try fol following command to connect to nordic device, but it fail.

root@raspberrypi:/home/pi/BlueZ# hcitool lecc 68:C9:0B:05:14:0C
Connection handle 64
root@raspberrypi:/home/pi/BlueZ# bluetoothctl -v
5.43
root@raspberrypi:/home/pi/BlueZ# dpkg --status bluez | grep '^Version:'
Version: 5.43-2+rpi1
root@raspberrypi:/home/pi/BlueZ# hciconfig hci0 down
root@raspberrypi:/home/pi/BlueZ# hciconfig hci0 up
root@raspberrypi:/home/pi/BlueZ# hcitool lescan
LE Scan ...
20:91:48:29:59:21 (unknown)
20:91:48:29:59:21 BP3L 11070
88:0F:10:94:2A:A5 (unknown)
18:EE:69:2D:7B:64 (unknown)
18:EE:69:2D:7B:64 (unknown)
88:0F:10:94:2A:A5 MI_SCALE
EC:F3:A7:A3:6D:57 Thingy
EC:F3:A7:A3:6D:59 (unknown)
EC:F3:A7:A3:6D:57 (unknown)
root@raspberrypi:/home/pi/BlueZ# hcitool lecc EC:F3:A7:A3:6D:57
Could not create connection: Connection timed out

But, if I try connect to other device, it can connect successful, please find following message

root@raspberrypi:/home/pi# hciconfig hci0 up
root@raspberrypi:/home/pi# hcitool lescan
LE Scan ...
18:EE:69:2D:7B:64 (unknown)
20:91:48:29:59:21 (unknown)
68:C9:0B:05:14:0C (unknown)
EC:F3:A7:A3:6D:59 (unknown)
68:C9:0B:05:14:0C Cybertan SensorTag
EC:F3:A7:A3:6D:57 Thingy
EC:F3:A7:A3:6D:57 (unknown)
20:91:48:29:59:21 BP3L 11070
18:EE:69:2D:7B:64 (unknown)
88:0F:10:94:2A:A5 (unknown)
^Croot@raspberrypi:/home/pi#
root@raspberrypi:/home/pi# hcitool lecc 68:C9:0B:05:14:0C
Connection handle 64

Would you please tell me how to fix this problem?

Thank you,

Chianglin

Related