xjjak / LapCal

Building gloves that enable typing on a 34-key keyboard without an actual physical keyboard using IMUs and machine learning.
Other
2 stars 0 forks source link

[FEATURE] BLE data collection #32

Open xjjak opened 5 months ago

xjjak commented 5 months ago

Transfer the data via BLE to a host PC or another ESP. This should incorporate #14 but can't be seen as dependent yet as the BLE data structure is to be determined.

This will serve as initial reference.

Parallelization will need to be disabled at first, as BLE will probably be using utilizing the second core as well. This will have to be harmonized later.

xjjak commented 4 months ago

As the next step, with parallelization easy to disable with #40, I am going to enable bleSerial output (again), perhaps also controllable with a build flag.

xjjak commented 3 months ago

For now, BLESerial seems practical enough to keep using it. Is it possible to make some quick improvements by sending binary data over a Serial connection instead of strings, that need to be formatted first? Look at this library and see if this can be used on top of BLESerial for easy binary transmission. Also look further into transmitting structs with Serial.write() as this could be sufficient and save overhead.

xjjak commented 3 months ago

With the BLE_SERIAL flag added: