microsoft / jacdac

Device and service catalogs for Jacdac.
https://aka.ms/jacdac
Creative Commons Attribution 4.0 International
66 stars 25 forks source link

Fix polling strategy #9

Closed pelikhan closed 3 years ago

pelikhan commented 4 years ago

Too much polling or too little

pelikhan commented 4 years ago

Is it possible to specify the preferred polling rate for a given sensor? Also error -/+

mmoskal commented 4 years ago

There is currently no error margin handling.

What polling rate would you like? Eg what's the rate for say thermometer or accelerometer? We could slap typical min/max on streaming interval registers.

BTW, I think these issues should be on the jacdac repo.

cc @jamesadevine

pelikhan commented 4 years ago

Min polling interval would be enough. Thermometer (10s) vs accelerometer (20ms). max could be considered the cut-off frequency which also also to create a low-pass filter. Do the device filter data by default?

pelikhan commented 3 years ago

See also https://github.com/microsoft/jacdac/issues/18

tballmsft commented 3 years ago

This discussion relates to the service specification: https://microsoft.github.io/jacdac-ts/reference/service-specification/

We will use an optional const register.

pelikhan commented 3 years ago

https://github.com/microsoft/jacdac/pull/92