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

High CPU usage with BLEUART #109

Open
darkcurrent opened this issue Nov 22, 2020 · 0 comments
Open

High CPU usage with BLEUART #109

darkcurrent opened this issue Nov 22, 2020 · 0 comments

Comments

@darkcurrent
Copy link

There is high CPU usage observed when reading bytes from BLEUART connection. With modified (bigger) buffer size in adafruit_ble/services/nordic.py, if I read 180 bytes of BLE buffer in about 50 times per second, that uses the total CPU about 20%-25% with RaspberryPi4. RPi4 has 4 cores so that means it uses the single core about 80% to 100% percent.

Current configuration:

Raspberry Pi OS: 5.4.72-v7l+
Adafruit_CircuitPython_BLE: 7.3.1
Adafruit_Blinka_bleio: 2.0.4
Bluez: 5.50-1.2~deb10u1+rpt2
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

1 participant