This software solution consists of 2 programs:
ARDUINO program to read consumption data in SML format with the help of a reading head from an EHZ. Sends the data on with a serial connection via the USB connection. The program source code includes detailed documentation for how it works and to set up the SML format. The program tries to read data from the reading head continuously as soon as the Arduino is switched on. Even after dropping of connections, the reading continues without which a restart of the Arduino is necessary.
The format of each data packet during transmission is XX:Y;n , where XX indicates the type of data, Y the decimal representation of a maximum of 32bit large integer.
Types:
Example:
MT:1873;
CP:60;
C#console program to read the data from the Arduino and make it available via HTTP. Also includes an HTML front end, which represents the current meter state and consumption as a graph. The frontend is located in the Resources/folder of the Visual Studio Project.
At the start, a double -click on the EHZReaderServer.exe , whereupon the serial interface to which the Arduino is connected must be typed. The expected serial baud rate and the URL, under which the frontend can be reached, are in the head of the program edition. These settings can be adjusted in the EHZReaderServer.exe.config . A restart of the program is necessary.
How often the frontend the current data queries and how many values are displayed in the graph can also be configured in said file.
The actual data is provided at <adresse>/data . These are in JSON format and are available as a float.
Example:
{ "mt": 187.3, "cp": 60.0 }