I’ve entered the vif codes for a small number of the potential variable types, see lines 201 to 215: if (val=0x06) Serial.print("Energy kWh") The reader currently implements a basic data packet decode. Troubleshooting: If no acknowledgement is received make sure Arduino serial line ending is set to “Both NL & CR” and the serial monitor baudrate is set to 115200. This is what the reply looks like from the third page of the Sontex 531 Heat Meter: Command sent: request data To read a frame of data from the M-Bus meter, enter character ‘n’ and press enter. If the meter receives the command it will reply with an acknowledgement (ACK). Some M-Bus meters store multiple pages of results, to access pages other than 1 enter character ‘p’ with the page number immediately appended e.g: ‘p2’ and press enter. Command sent: set address 100Įnter character ‘n’ and press enter. The MBUS address to set is hard coded in the MBUS_Reader firmware. In the Arduino Serial Monitor enter character ‘a’ and press enter. After uploading to the Heatpump Monitor or Arduino with the M-Bus reader circuit, the following options should be presented: Arduino M-Bus reader This is also available in the HeatpumpMonitor repository here:Ī quick example of what the MBUS_Reader tool can do. Send Normalise and Application Reset commands.Select the page of data to read (sontex 531 has several pages of data).Read the meter data, (including a partial decode of data types and positions in the reply).I’ve also put together a more generic M-Bus Reader tool, that can be used to: Using M-Bus its possible to access a lot of useful data from the Sontex meter, page1 provides cumulative kWh heat output, page3 provides: #define KAMSTRUP_402 // KAMSTRUP_403 or SONTEX_531, Using the main heatpump monitor firmware: HeatpumpMonitor_AutoTemp, reading from the sontex 531 can be enabled by changing the default Kamstrup_402: #define MBUS_ENABLE 1 A quick note for those interested in heat metering and M-Bus, I’ve managed to read from the Sontex 531 Heat Meter via M-Bus using the heatpump monitor board.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |