Skip to content

Latest commit

 

History

History
127 lines (93 loc) · 4.29 KB

class1.data.md

File metadata and controls

127 lines (93 loc) · 4.29 KB

Class=15 (0x0F) - Data

CLASS1.DATA

Description

Representation for different general data types. Byte 0 is the data coding byte described here. Unit may not have meaning for some of the types and should be set to zero in that case.

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

VSCP_TYPE_DATA_GENERAL

General event.


Type=1 (0x01) - I/O value :id=type1

VSCP_TYPE_DATA_IO

General I/O value. First data byte defines format.

Data byte Description
0 Data coding.
1-7 Data with format defined by byte 0.

Type=2 (0x02) - A/D value :id=type2

VSCP_TYPE_DATA_AD

General A/D value. First data byte defines format.

Data byte Description
0 Data coding.
1-7 Data with format defined by byte 0.

Type=3 (0x03) - D/A value :id=type3

VSCP_TYPE_DATA_DA

General D/A value. First data byte defines format.

Data byte Description
0 Data coding.
1-7 Data with format defined by byte 0.

Type=4 (0x04) - Relative strength :id=type4

VSCP_TYPE_DATA_RELATIVE_STRENGTH

Relative strength.

Data byte Description
0 Data coding.
1-7 Data with format defined by byte 0.

Coding of units (Level I)

Code Description
0 Byte count = 2: Min = 0, Max = 255
Byte count = 3: Min = 0, Max = 65535
and so on...
1 db (decibel)
2 dbV (decibel volts)
3 Undefined

Units for Level II are the same as for Level I for the first four units.


Type=5 (0x05) - Signal Level :id=type5

VSCP_TYPE_DATA_SIGNAL_LEVEL

Signal Level is a relative strength value that (as default) has its maximum at 100 and minimum at 0 interpreted as a percentage. For a digital transmission Signal Level it can be used to give an indication of the analogue signal and CLASS1.DATA, Type = 6, Signal Quality can be used to give an indication of the quality of the digital part as BER (Bit Error Ratio) for example.

Data byte Description
0 Data coding.
1-7 Data with format defined by byte 0.

Coding of units (Level I)

Code Description
0 (0-100) percentage.
1 Byte count = 2: Min = 0, Max = 255
Byte count = 3: Min = 0, Max = 65535
and so on...

Units for Level II are the same as for Level I for the first four units.


Type=6 (0x06) - Signal Quality :id=type6

VSCP_TYPE_DATA_SIGNAL_QUALITY

Signal Quality be used to give an indication of the quality of the digital part as BER (Bit Error Ratio) for example.

Data byte Description
0 Data coding.
1-7 Data with format defined by byte 0.

Coding of units (Level I)

Code Description
0 0-100, Percent
1 Byte count = 2: Min = 0, Max = 255 Byte count = 3: Min = 0, Max = 65535 and so on...
2 dBm
3 To be defined

Units for Level II are the same as for Level I for the first four units.


filename