Using processors and filters to control streaming data

Hi Eric,

I learned from the documents that onboard processor can do some basic data filtering and processing. I wonder if this use case can be implemented to save battery:

The sample frequency f is predefined.

1. After connection, the data routes are configured. By using filters and processors, still signals (increment of the acceleration is less than the threshold) are filtered and not sent in the stream.
2. If a sample point's acceleration exceeds the threshold, the data point will be sent out.
3. The following 3*f data points (within 3 seconds) will be sent no matter it's still signal or not
4. If there's any data point's acceleration exceeds the threshold within the 3-second period, the 3-second period is refreshed and extended.

I had a hard time figuring out how to implement 2~4 with the filters and processor. Can you help me out?

Thank you.

Comments

  • You can probably do this with the passthrough filter.  

    • Feed the acceleration data into a passthrough filter in counter mode.
    • Create threshold processors that check whichever axis you want
    • Attach monitors to the threshold processors that set the passthrough count to 3*f
    I haven't though about the 3s timeout yet but this should get you started in the right direction.
This discussion has been closed.