Ignore:
Timestamp:
Jun 25, 2019, 11:55:14 PM (7 years ago)
Author:
markus
Message:

Full OT 2.2 Support (dummy)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Arduino/projects/OT_slave/OT_slave.ino

    r5 r6  
    7979  delay(100); // Opentherm defines delay between request and response
    8080  switch (message.id) {
    81     case OT_MSGID_STATUS: // 0
     81    case OT_MSGID_STATUS: // 0  (Master and slave status flags) [M:ReadAck]
    8282      StatusReq(message);
    8383      break;
    84     case OT_MSGID_CH_SETPOINT:  // 1
     84    case OT_MSGID_CH_SETPOINT:  // 1  (Control setpoint ie CH water temp. setpoint) [M:WriteAck]
    8585      message.type = OT_MSGTYPE_WRITE_ACK;
    8686      CH_Temperature(message.f88());
    8787      break;
    88     case OT_MSGID_SLAVE_CONFIG: // 3
     88    case OT_MSGID_SLAVE_CONFIG: // 3  (Slave configuration flags) [M:ReadAck]
    8989      ConfigReq(message);
    9090      break;
    91     case OT_MSGID_FAULT_FLAGS:  // 5
     91    case OT_MSGID_FAULT_FLAGS:  // 5  (Application-specific fault flags / OEM fault code)
    9292      FaultReq(message);
    9393      break;
    94     case OT_MSGID_DHW_SETPOINT: // 56
     94    case 14:  // 14 (Maximum relative modulation level setting) [M:WriteAck] 
     95      message.type = OT_MSGTYPE_WRITE_ACK;
     96      break;
     97    case OT_MSGID_MODULATION_LEVEL: // 17 (Relative modulation level)  [M:ReadAck|DataInvalid]
     98      message.type = OT_MSGTYPE_DATA_INVALID;
     99      break;
     100    case OT_MSGID_FEED_TEMP:  // 25 (Boiler temperature)  [M:ReadAck|DataInvalid]
     101      message.type = OT_MSGTYPE_DATA_INVALID;
     102      break;
     103    case OT_MSGID_DHW_SETPOINT: // 56 (DHW setpoint)
    95104      if (message.type == OT_MSGTYPE_READ_DATA) {
    96105        message.type = OT_MSGTYPE_READ_ACK;
    … …  
    104113      }
    105114      break;
    106     case OT_MSGID_VERSION_SLAVE:  // 127
     115    case OT_MSGID_VERSION_SLAVE:  // 127  (Slave product version number and type)
    107116      message.type = OT_MSGTYPE_READ_ACK;
    108117      message.valueHB = 0;  //  product type
Note: See TracChangeset for help on using the changeset viewer.