I'm wondering if any one has a handle on how much data can be pumped out of the Puck.js via the BLE UART service, in the real world, bytes/sec. I know there is a lot of over head, as long as I have a timestamp on the data, it can lag quite a bit, just needs to be error free and no dropped information.
Hi - I haven't got any measured figures, but:
The connection interval can be negotiated (depending on the PC) between 7.5 and 20ms - and it can send/receive 20 bytes per interval, so that's between 1000-2700 bytes/second. For reliable comms I'd stick a little below that if possible.
On Espruino's side, newer firmwares will warn you with a FIFO_FULL error message if they believe that they have lost some data (eg. code was busy waiting for a write to complete so didn't have time to process the data that came in)
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem