switchdoclabs / iBeacon-Scanner-

Reliable Bluetooth LE (iBeacon) scanner for Raspberry Pi
202 stars 120 forks source link

Raspberry Pi 3 B+ Code No Longer Works #23

Open dixon1e opened 6 years ago

dixon1e commented 6 years ago

This program will hang without receiving advertising when using this test code on the Raspberry Pi 3 B+, with the following updated versions, N.B. bluez-firmware and pi-bluetooth appear to be the key changes:

ii  bluez                           5.43-2+rpt2+deb9u2           armhf        Bluetooth tools and daemons
ii  bluez-firmware                  1.2-3+rpt6                   all          Firmware for Bluetooth devices
ii  bluez-hcidump                   5.43-2+rpt2+deb9u2           armhf        Analyses Bluetooth HCI packets
ii  libbluetooth-dev                5.43-2+rpt2+deb9u2           armhf        Development files for using the BlueZ Linux Bluetooth library
ii  libbluetooth3:armhf             5.43-2+rpt2+deb9u2           armhf        Library to use the BlueZ Linux Bluetooth stack
ii  pi-bluetooth                    0.1.8                        all          Raspberry Pi 3 bluetooth
ii  python-bluez                    0.22-1                       armhf        Python wrappers around BlueZ for rapid bluetooth development

To do a workaround, we are using the following steps:

hciconfig hci0 down
hciconfig hci0 up
hcitool lescan

And then running our program in another terminal while the scan is running. When the lescan stops, our code keeps going as long as we don't reopen the hci0 device.

What is happening with the latest update to the Raspberry Pi BLE code and firmware? What is the behavioral change?

aadhi0319 commented 4 years ago

Were you able to fix this? Two years later I'm facing the same issue on Linux 5.5 Debian Buster. I can't use your work around beacuse hcitool lescan returns "Set scan parameters failed: Input/output error"

dixon1e commented 4 years ago

Oooh, I don't remember. Will see if I can find that project and remember what that was about.