DataID value conversion

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Post Reply
Ierlandfan
Member
Member
Posts: 151
Joined: Thu Oct 03, 2013 7:53 pm

DataID value conversion

Post by Ierlandfan »

According to the Opentherm specifications, some dataId' s are using High byte (HB), Low byte (LB) value.
For example I have a device that outputs dataId 0 in this value; value 0=02, Value1=00
(I assume it's in hex, could also be decimals, don't know)
(OT specifications: Flag8, Flag8, HB master info , LB slave info)

I think I get the part High byte, Low byte, which oversimplified means read from left to right (HB) and right to left (HB)
Just like we do in decimals. (20 is bigger dan 02) HB=2(0) LB=(2)0

I got stuck there. Can anybody enligthen me?
D_Hailsham
Starting Member
Starting Member
Posts: 41
Joined: Tue Aug 13, 2013 10:45 am

Re: DataID value conversion

Post by D_Hailsham »

The Data part of any Opentherm message is always 2 bytes (16 bits) long. The first 8 bits (reading left to right) is the High Byte (HB), the second 8 bits is the Low Byte (LB). If the ID uses the "flag 8" format, it means each individual bit has a separate meaning and can be turned on and off individually.

Take ID 0 for example:

bit 0 of the HB tells you if CH is enabled (1) or disabled (0). While bit 0 of the LB tells you if the slave (boiler) has a fault (1) or no fault (0)

What do you mean by "value 0=02" and "value 1= 00"? Is "value 0" the HB and "value 1" the LB?

PS at these low values hex and decimal are the same!
Post Reply

Return to “Opentherm Gateway Forum”