4.4 Example Application

With the release of the Flash software, it is possible to develop a simple temperature sensor application by periodically sending the wM-Bus telegrams with temperature data of the chip.

Use #define WMBUS_PERIODIC_TEMP_TELEGRAM in wmbus_flash.h to enable the temperature sensor application. The Timer4 module triggers the temperature measurement for every 30s, and sends out a wM-Bus telegram (in the S2 mode) with measured data according to the EN13757-3:2005 standard. For more details, refer to the EN13757-3:2005 Standard.

Data structure:

  • Short data header (CI-field = 0x7A)
  • Data block 1: measured temperature value
  • Data block 2: maximum temperature value (volatile – cleared by Reset)
  • Data block 3: minimum temperature value (volatile – cleared by Reset)
  • Data block 4: on-time (volatile – cleared by Reset)