...
When the HNZ south plugin establishes a new connection wit ha with a HNZ device, it will automatically send the following messages to the device:
...
Attribute | Description | Expected values | Mandatory |
---|---|---|---|
do_type | message type | TS, TM, TC, TVC | YES |
do_station | station address | YES | |
do_address | message address | YES | |
do_value | value | TM (do_an = TMA): [-127..127] TM (do_an = TM8): [0..255] TM (do_an = TM16): [-32768..32767] TS: [0..1] TC: [1..2] (01b = offon, 10b = onoff) TVC: [-255..255] | YES except in quality update readings |
do_valid | validity | valid = 0 or invalid = 1 | YES |
do_an | TM type (analogic / numeric) | "TMA", "TM8", "TM16" | TM only |
do_cg | TS source | CG = 1 or CE = 0 | TS only |
do_outdated | Outdated message (after connection loss) | up to date =0, outdated = 1 | TM and TS only |
do_ts | timestamp | epoch timestamp in milliseconds | TS CE only |
do_ts_iv | timestamp invalid | valid = 0 or invalid = 1 (from bit HNV) | TS CE only |
do_ts_c | loss of chronology | lost = 1 else = 0 (from bit CV) | TS CE only |
do_ts_s | ts not synchronized | synchronized = 0 else = 1 (from bit S) | TS CE only |
...
Code Block | ||
---|---|---|
| ||
{
"data_object":{
"do_type":"TC",
"do_station":12,
"do_addr":71,
"do_value":1,
"do_valid":0
}
} |
Example for a TVC (after receiving ACK):
Code Block | ||
---|---|---|
| ||
{
"data_object":{
"do_type":"TVC",
"do_station":12,
"do_addr":31,
"do_value":42,
"do_valid":0
}
} |
NB: if an attribute is not required, then it is not put in the output data object, which means that the output object structure always fits the protocol model object type.
...
Order | Attribute | Description | Expected values | Mandatory | |||
---|---|---|---|---|---|---|---|
0 | co_type | message type | TC, TVC | YES | |||
1 | co_addr | message address | YES | [0..255][0..7] (ADO + ADB) for a TC, [0..31] for a TVC | YES | ||
2 | co_value | value | [1..2] (01b = on, 10b = off) | 2 | co_value | value | YES |
The processing of FLEDGE commands should evolve. Below is an example of JSON format :
Example for a TC:
Code Block | ||
---|---|---|
| ||
{ "command_object":{ "co_type":"TC", "co_addr":325, "co_value":1 } } |
Example for a TVC:
Code Block | ||
---|---|---|
| ||
{ "command_object":{ "co_type":"TVC", "co_addr":31, "co_value":1 } 42 } |
NB: if an attribute is not required, then it is not put in the output data object, which means that the output object structure always fits the protocol model object type.
...