View Single Post
Old March 6th, 2011   #1
nomis52
Task Group Member
 
Join Date: May 2010
Location: San Franciscio
Posts: 57
Default Question about resetting sensors

The standard states:

"The SET_COMMAND may be used in conjunction with SENSOR_VALUE to reset or clear a given sensor. When a sensor is successfully reset the values for Present, Lowest/Highest, Recorded values in the response message shall all be equal. "

What does this actually mean? I'd read that to say that at the moment of resetting, the current value should be copied into present and lowest, highest & recorded set to the current value.

But further in the standard it states:

"Recorded Value:
... Support for this data is optional. If this value is not supported, then this field shall be set to 0x0000.
"""

The same text is used for highest & lowest as well.

So if the responder doesn't support recording values or highest / lowest, what should the value of the recorded/highest/lowest field be? This is one of the last tests I need to write and I'm having a hard time deciding what behavior to expect.

There is the separate issue of what to return when all sensors (0xff) have but that's been discussed before.


Simon
nomis52 is offline   Reply With Quote