MQTT Support – technology verification (Release 0.9)
We want to make a very simple demonstration project where we can demo the MQTT technology, and from that verify the best plan of implementation.
This demo system will contain the following modules:
We have bought a samle of the SmartPi from www.enerserve.eu.
The product can be located on the following link: [login to view URL]
In the specifications for the device it lists MQTT as a supported protocol:
And the software of the device provides access to a configuration screen with the following options:
The challenge is that I cannot find any reference or documentation on how this is implemented, and what functionality are provided with the MQTT protocol block.
The SmartPi devices measures a number of energy related data (referenced from the website):
SmartPi 2.0 measures all important data:
• Active power
• Reactive power
• Apparent power
• Energy consumption
• Energy production
• Power consumption
• Power production
• Cos Phi
Important: The above data are listed for 3 power lines, so it 3xV, 3xI, 3xP, accumulated power and so on.
I do not have the skills to debug the code either…
Required functionality for the project:
1. Report the measured data on MQTT, when a request command is received.
2. Added functionality in the settings screen so it becomes possible to set an automatic reporting interval.
3. All of the real time data must be reported as values that are measured values.
At the time of writing this its V, I, P, Active, Reactive, Apparent power, frequency, Cos phi.
4. All of the production/consumption counters have to be reported as incremental values. This is the only way for us to ensure that accumulated consumption is measured correctly, even if we miss a package or several. (You existing power meter to you house does it this way).
The MQTT updates must refer uniquely to the device. This can be solved by using a combination of
An example of a MQTT Subject could be: MQTTtopic/Name/Serial
Which in this example translates to: “Submeter/House/smartpi12345”
For the pilot we will use the WiFi and Ethernet ports of the SmartPi to connect to either a local network or a 3G router.
A standardized MQTT broker will be used for now (Its already setup).
MQTT Test software
If nothing else is suggested we will use:
Release 0.91 – Two-way communication
The SmartPi has a building relay, which we want to be able to remote control using the MQTT protocol.
Release 0.92 - Test with protocol gateway
When the above setup is ready we will connect another protocol converter.
This will enable us to connect the PLC’s from Siemens and other manufacturers.
I do not yet know how we will have the data presented on the MQTT Broker, and therefore I cannot specify how we will match the data received to records in a database.
This section will be defined in detail when we have a demo system to learn from.
Release 0.93 – Data are delivered to the existing Energy Management system
Based on the above test and experiences developed we will agree on the beat possible way to integrate the data feed into the existing energy management system.
Release 1.00 – System deployment
When finished and tested it will be raised to a production release.
Release 1.10 – Proprietary data presentation.
The software developed in section/release 0.92 will provide access to additional datasets that the existing system doesn’t support for the time being.
We envisage that we will implement a dedicated software module, that presents both live data and historic data.
Again – when we know more we will agree on this.
23 pekerja bebas membida secara purata €600 untuk pekerjaan ini
Hi. I'm professional programmer/electronic hardware developer with experience over 20 years. I know raspberry PI as well as MQTT protocol. Regards, Alex.