-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth LE Sensor Nodes to Raspberry Pi WiFi Bridge - Stuck at scanning #11
Comments
Hi hi, I'm using this at my house and wrote it originally. Sorry I didn't see those posts, I only look in the CircuitPython forum. Does |
Hi, The output seems to mirror that of the python script as in seeing nothing in a scan
and nothing else unfortunately Conversely - to know Bluetooth is working on the device, albeit not through the tools used for this CP example , I checked
Doesn't see the Clue in this scan although I'd imagine its broadcasting in a non-pairable state. |
Does the python process bloat over time? Watching it in |
EDIT: SEE BELOW re I reproduced the essence of this problem, also on a freshly installed Pi Zero W. I installed the latest RPi Zero W, v5.50: If I run If I initiate the scan with RPi 4: Same problem; I thought it might be the weak processor on the RPi zero. x64 Ubuntu 20.04, v5.53: By comparison, running the same commands on an adjacent x64 Ubuntu 20.04 machine prints advertisements continuously, in my rich Bluetooth environment. On this machine, the commands are version 5.53. I will try an Ubuntu build on an RPi, since I can get up to v5.53. |
Htop sees the python process running over 95% cpu on the zero w and hcitool lescan forms many duplicates |
Does |
No errors in dmesg or syslog, but I realize that I forgot to do I'm a little confused as to why I didn't have to do that on the Ubuntu x64 box. When I was testing |
For
|
@wildestpixel did you follow the instructions in the guide here about adding your user to the |
Yes - all of the following
and user Ref my dmesg , no bluetooth errors
However some errors elsewhere , look wlan related
And this is a very clean install of latest PI OS, just apt updated and upgraded and the guide followed. |
Hi - I've been attempting the same project with a new CLUE and fresh install on Raspberry Pi 4 and get a similar response... Fetching existing feeds. Traceback (most recent call last): |
As this is tagged as a bug, once fixed it will be referenced here. Maybe days, maybe months, it maybe it’s dependant on the actions of other individuals or packages that Adafruit have no direct control over. |
So looking at _bleio/scan_entry.py around line 151, I printed out the list of bytes that it receives from the Clue and see what causes it to enter an infinite loop inside a while loop that looks at index idx. So, here is an example: First one should be the length, but sice 0x1d == 29, it only increments idx by 29. Then it looks at the last byte, which is 0, so it sits there incrementing the index by zero. All the while it is appending 0 to a list until it runs out of memory and crashes. That's as far as I got. I don't know enough about the libraries to understand if it's the Clue sending the wrong number of bytes, or the raspberry pi reading the last byte wrong. |
From the guide by John Park at https://learn.adafruit.com/bluetooth-le-broadcastnet-sensor-node-raspberry-pi-wifi-bridge/overview ......
Following through the guide and executing on an upto date Pi OS on Zero W everything goes fine until you actually execute
python3 ble_broadcastnet_blinka_bridge.py
After this , instead of finding the Clue (which has the prescribed basic broadcast script running and is tested with both CP5.3 and CP5.4BETA), the output is stuck at
This is BroadcastNet bridge: b827eb2d289a
until after about 15 minutes an error (memory error) stops python 3.7 running on the Pi Zero W and the following extra output is given :
This same fault was raised by another use in Adafruit Customer forums in MArch at https://forums.adafruit.com/viewtopic.php?f=50&t=163964 and by myself earlier today at https://forums.adafruit.com/viewtopic.php?f=65&t=166701
Would like to get this to work, and given I can see the CLUE in a bluetooth scan from Bluefruit Connect iOS app I'm at a loss as to whether this is down to Adafruit_CircuitPython_BLE_BroadcastNet or the CP library adafruit_ble_broadcastnet.mpy
The text was updated successfully, but these errors were encountered: