I am trying to read some sensor data from a wireless BLE IMU sensor into my Raspberry Pi 3B. I need to be able to read the data at 100Hz (10ms intervals). It appears that one of the aspects I need to configure is the polling interval of "hcitool lecup". Here are the two main things I am struggling:
- How can I configure the command from my python script without having to run it from my terminal window?
- What would be the correct way to configure the intervals to get 10Hz polling rate? Can I set the min and max intervals to be the same:
hcitool lecup -H handle -m 0x0008 -M 0x0008 -l 0000 -t 0x0064
?
Thank you!