Skip to content
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 #120

Open
sreerajpunnoli opened this issue Mar 10, 2021 · 2 comments

Comments

@sreerajpunnoli
Copy link

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.
How do I retrieve data from multiple BLE devices at the same time using multiprocessing with the library?

@sreerajpunnoli sreerajpunnoli changed the title Can't use multiprocessing on the BLE connections to get multiple connections at the same time Can't use multiprocessing on the BLE connections to retrieve data from multipe devices at the same time Mar 10, 2021
@sreerajpunnoli
Copy link
Author

This is happening only in Raspberry Pi. I have tried it in mac and windows, both are working fine. 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.

@Jeffreyfrmn
Copy link

@sreerajpunnoli I'm also experiencing this issue... did you find any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants