Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 2.78 KB

class1.measurementx1.md

File metadata and controls

47 lines (28 loc) · 2.78 KB

Class=11 (0x0B) - Measurement

CLASS1.MEASUREMENTX1

Description

Measurements are fetched from the SI units and from SI derived units. The SI unit (or the SI derived unit) is also used as the default unit. As in the SI unit standard, names for a unit is in lower case ("newton") and the unit ("N") is in upper case.

Byte 0 is the data coding byte for all measurement packages. The default unit has bits 0,1,2 set to 000 and the first optional unit 001 and so on. It also have a field for the item ( if more than one sensor is controlled by the node) that the value belongs to. See data-coding for a full description on data coding used.

All events in this class are mirrored in CLASS1.MEASUREMENT32=70 (0x46) as a single precision float. Default unit is used.

All events in this class are mirrored in CLASS1.MEASUREMENT64=60 (0x3C) as floating point values using only the default unit .

All events in this class are mirrored in CLASS1.MEASUREZONE=65 (0x41) as normalized integer values with index, zone, sub-zone. Default unit is used.

All events in this class are mirrored in CLASS1.SETVALUEZONE=85 (0x55) as a normalized value using only the default unit but with index/zone/subzone.

All of the above is also available as LEVEL I events over Level II.

All events in this class are mirrored in CLASS2.MEASUREMENT_STR=1040 (0x410) as the events, in the range 256-511, which use decimal string values.

All events in this class are mirrored in CLASS2.MEASUREMENT_FLOAT=1060 (0x424) as the events, in the range 256-511, which use decimal float values.

The relationship between Level II measurement events and Level I measurement events is like this

Level II measurement events with type >= 1280 have no relation to any Level I measurement events.

Type=0 (0x00) - General event :id=type0

VSCP_TYPE_MEASUREMENTX1_GENERAL

This is a general (custom) event that can be used if no other event is suitable.


filename