I download and run the scantest code found in the link https://github.com/carsonmcdonald/bluez ... scantest.c
It works on raspberry pi 2 but only report once for any specific BLE device on raspberry pi 3. I have localize the problem to be the following statement:
read(current_hci_state.device_handle, buf, sizeof(buf))
It only picks up one BLE packet from a BLE device on raspberry pi 3. The same program can pick up all the packets from a BLE device.
The configuration of my raspberry pi 2:
Linux rpi1 4.1.21-v7+ #2 SMP Tue Apr 26 13:37:54 CST 2016 armv7l GNU/Linux
The configuration of my raspberry pi 3:
Linux rpi3 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
Any help will be greatly appreciated.