Trouble with Rev Pi Nodes Server
Posted: 05 Jan 2021, 09:31
Hi there,
I have recently been using the rev-pi-nodes-server on Node RED and I started to conduct some tests on the polling rate that it has. One thing I noticed is that the input pin only provides an output under the condition that a value change has been detected, which differs from how polling operates. Nevertheless, I tested the node with a temperature sensor and collected the data along with timestamps, I induced a change in the temperature sensor by placing my finger on it. After analyzing the data and the timestamps, I noticed that how fast the change is detected is not consistent between data points. For example, when the ADC sampling rate is set to 20Hz, on average the time taken between points lie in the region of 200-270 ms, but occasionally it would be off by 100 ms. My questions are:
1) How does the revpi nodes server operate? Why would there be such discrepancies in the time taken between data points?
2) If polling were to be achieved, meaning fixed rate of receiving data, how would it be achieved with the rev pi nodes server?
Thank you!
I have recently been using the rev-pi-nodes-server on Node RED and I started to conduct some tests on the polling rate that it has. One thing I noticed is that the input pin only provides an output under the condition that a value change has been detected, which differs from how polling operates. Nevertheless, I tested the node with a temperature sensor and collected the data along with timestamps, I induced a change in the temperature sensor by placing my finger on it. After analyzing the data and the timestamps, I noticed that how fast the change is detected is not consistent between data points. For example, when the ADC sampling rate is set to 20Hz, on average the time taken between points lie in the region of 200-270 ms, but occasionally it would be off by 100 ms. My questions are:
1) How does the revpi nodes server operate? Why would there be such discrepancies in the time taken between data points?
2) If polling were to be achieved, meaning fixed rate of receiving data, how would it be achieved with the rev pi nodes server?
Thank you!