Page 1 of 1

RevpiPyload send_on_event message rate & sensitivity

Posted: 28 Sep 2022, 13:37
by benaodisee
Hi,

Maybe a silly question, but I was wondering what the sample-rate/message-rate is when sending message with MQTT using Revpipyload if send_on_event is enabled?
And which change in input will trigger such an event?

For clarification:
  1. An analog input is currently at 123mV and rises to 124mV => Will an event be triggered?
  2. An analog input is currently at 123mV, rises in an instant to 9000mV and 10 milliseconds after drops to 6000mV => Will an event be triggered (and thus a message be sent) for both values?

Re: RevpiPyload send_on_event message rate & sensitivity

Posted: 13 Oct 2022, 11:18
by RevPiModIO
That's not a silly question!

The default cycle time on a multicore RevPi (everything except the Core 1) is 20 ms! And that is the detection rate, too!

So:

1) Yes, if the value changes from 123 to 124, we have an event, same thing in the other direction.
2) No, the internal detection rate is 20 ms (maybe we could crate an update to switch it to 10 ms), so 123 to 9000 and back to 6000 in 10 ms will throw an event after another 10 ms with the value 6000.

Keep in mind, the piBridge's cycle time is about 10 ms, if you use an AIO check "ADC_DataRate" (piCtory) to fit the 10ms if needed.

Sven

Re: RevpiPyload send_on_event message rate & sensitivity

Posted: 17 Oct 2022, 14:16
by benaodisee
Thank you for the clarification, it's crystal clear now :D