-
Notifications
You must be signed in to change notification settings - Fork 6
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
Can't use multiprocessing on the BLE connections to retrieve data from multipe devices at the same time #8
Comments
What are you running the library on? Is it a host computer that's running regular Python, and you're using Blinka, or are you using an nRF or Airlift board? My guess is the first thing, if you're using |
I have tried it on a Raspberry Pi 4 and a Mac |
The It would also be interesting for you to sidestep |
Thanks, @dhalbert for your reply. I modified the code a little bit and ran it on mac, windows, and Raspberry Pi OS. Both Mac and Windows machines are now streaming at the same time just fine in multiprocessing. But the issue is still happening in Raspberry Pi OS. In Raspberry Pi 4 with Raspberry Pi OS, the connect method in BLERadio class is getting called and it is waiting forever and not throwing timeout exception. When I removed the multiprocessing, connect method works fine in Raspberry Pi OS. It seems like a library issue. Please suggest. |
There is an issue with the BLE firmware for Raspberry Pi 3B+ and 4. See https://learn.adafruit.com/circuitpython-ble-libraries-on-any-computer/install-ble-libraries#raspberry-pi-3b-plus-and-4b-firmware-fix-3074928-6. The firmware is now at version |
I have been trying to get data out from multiple pulse-oximeters at the same time. I was able to run them separately in two different environments and able to extract data from two pulse-oximeters at the same time. I tried to use multiprocessing after the BLE connection to retrieve data parallelly from two pulse-oximeters in the same environment, the connection is getting lost and data is no longer getting received. Then I removed multiprocessing to check whether the code is right and verified that the data is getting retrieved from the code. I am using the example simple test code as a reference.
How do I retrieve data from multiple BLE devices at the same time using multiprocessing with the library?
The text was updated successfully, but these errors were encountered: