Building Energy Monitoring System Data Acquisition Gateway - Smart Energy Management Building Energy Efficiency
As a professional provider of IoT data acquisition solutions and an expert in industrial IoT data acquisition, the editor of Shanghai Data Acquisition IOT Technology Co., Ltd, (daq-iot) hereby presents the following introduction, and sincerely welcomes discussions and exchanges. Supported Communication Interfaces: CAN, RS485, Mbus, 4–20mA, Profibus, CC-Link, HART, digital I/O, etc. Industrial Protocols: Modbus RTU/TCP, HJ212, IEC104, DLT645, DLMS, IEC61850, MQTT, etc. Mail:export@daq-iot.com
asIoTData Acquisition solution Professional provider, data acquisitionIoTEditor daq iot Here is an introduction to the following content, and we sincerely welcome everyone to discuss and exchange ideas.
As a professional provider of IoT data collection solutions, daq-iot, the data acquisition and IoT editor, will introduce the following content here and sincerely welcome everyone to discuss and communicate.
Data upload

Data upload address port: http://www.daq-iot.com:8033
1. The project implementation party should self review the consistency between the energy consumption data collected by each monitoring branch and the actual load, submit a data verification table, and ensure that the measurement deviation is within a reasonable range;
2. The energy consumption data collected by each monitoring branch is consistent with the direct reading data of the energy consumption metering device. The uploaded data received by the monitoring center should be consistent with the original data collected on site. And the number of raw data received should meet the requirements of formula (1).
N
24
f
n
- ——In the formula: N is the total number of raw data that the system should upload per day;
F is the frequency of data upload, unit: times/hour;
N is the total number of measurement points in the system;

3. To ensure the authenticity, reliability, and stability of data uploading,energy consumption dataThe energy consumption data should be uploaded directly from the data collector (Gateway), and it is not supported to export energy consumption data from the building monitoring system or power monitoring system database to the monitoring center. If the energy consumption data is uploaded using theData Acquisitiondevice of the power monitoring system, theData Acquisitiondevice must have two data transmission channels and be able to ensure the normal operation of both systems simultaneously.
Appendix 1Data Acquisition Deviceperformance metrics
| parameter | indicator |
|---|---|
| collection interface | At least 2 channels are available RS-485 interface |
| Collecting communication speed | The maximum speed is not less than 9600bps |
| Collect communication Protocol | Supports DL/T645-1997, CJ/T188-2004GB/T19582-2008Each interface is independently configurable |
| Support the number of measuring devices | No less than 64 units |
| sampling cycle | According to data center commands or active scheduled collection, the timing cycle can be configured from 10 minutes to 1 hour |
| Data processing method | Analyze Protocol, perform addition, subtraction, and multiplication operations, and add additional information |
| storage capacity | Not less than 32MB |
| Remote transmission interface | At least one wired or wireless interface |
| Remote transmission cycle | According to the collection cycle Real-time remote transmission |
| Number of supported data servers | At least 2 |
| Configure/maintain interfaces | Having a local configuration/maintenance interface |
| Network function | Receive commands, report faults, encrypt data, resume breakpoint transmission, DNS resolution |
| power | Less than 10W |
Appendix 2 Collector Communication Protocol
- Data encryption
TcpProtocol
Use AES encryption algorithmEncrypt XML packets (encrypt all data) with a key length of 128 bits. The encryption key is stored in the local file system of the data center and Data Acquisition device.
Encryption key: aesmodeaes.mode
Encryption mode: ECB
Filling method: PKCS7-PKS5Padding
Character set: UTF-8
Binary: Hexadecimal
Encryption/Decryption Test Address:https://www.mklab.cn/utils/aes Test configuration as shown in the figure

- XML data format for data transmission
2.1 Authentication Data Packet (id_malidate)
<root>
<! -- General Part -->
<!--
Building_id: Building number
Gateway_id: Collector ID
Type: The type of authentication packet
--><common>
<building_id>XXXXXXXXXX</building_id >
<gateway_id>XX</gateway_id>
<type>One of the following two types of operations</type>
</common>
<! -- Authentication -->
<! -- There are 2 types of operations
Request: Collector requests authentication (this packet is sent by the collector to the server)
Result: The server sends the verification result, and the result sub element is valid (this data packet is sent by the server to the collector)
-->
<id_validate operation="request/result">
<result>pass/fail</result>
</id_validate>
</root>
2.2 Heartbeat/Timing Data Packet (Heart_teat)
<root>
<! -- General Part -->
<!—
Building_id: Building number
Gateway_id: Collector ID
Type: The type of heartbeat/timing packet
-->
<common>
<building_id>XXXXXXXXXX</building_id > <gateway_id>XX</gateway_id >
<type>One of the following two types of operations</type>
</common>
<! -- Heartbeat/Timing ->
<! -- There are 2 types of operations
Notify: The collector regularly sends survival notifications to the server, without the need for child elements (once every minute, set offline if not sent for five minutes, and close the link) (this data packet is sent by the collector to the server)
Time: After receiving the survival notification, the server sends the timing information. At this time, the sub element time is valid, and the collector's time needs to be based on the server time (this data packet is sent by the server to the collector)
-->
<heart_beat operation="notify/time">
<time>yyyyMMddHHmmss</time>
</heart_beat>
</root>
2.3 Energy consumption remote transmission data packet
<root>
<! -- General Part -->
<!—
Building_id: Building number
Gateway_id: Collector ID
Type: Type of energy consumption remote transmission data packet
-->
<common>
<building_id>XXXXXXXXXX</building_id>
<gateway_id>XX</gateway_id>
<type>One of the following two types of operations</type>
</common>
<! -- Energy consumption remote transmission -->
<! -- There are 4 types of operations
Report: Energy consumption data regularly reported by the collector (this data packet is sent by the collector to the server)
Continuous check: After the data packet is received, the server responds to the uploaded data with one response for each piece of data, without the need for child elements (this data packet is sent by the server to the collector)
There are 5 types of elements
Sequence element: The sequence number of the data sent by the collector to the server (the collector guarantees uniqueness, with a length not exceeding 20 digits)
Parser element: Whether the data sent to the server has been parsed by the collector (pass yes)
Time element: Data Acquisition Time
Meter element: Equipment number of the measuring device
Function element: The specific acquisition function of each measuring device, with the following three types
Attribute
ID attribute: Data Acquisition function number of the measuring device
1. Multi functional energy meter:
1: Total active energy
2: A-phase current
3: B-phase current
4: C-phase current
5: A-phase voltage
6: B-phase voltage
7: C-phase voltage
8: Total active power
9: Total power factor
Encoding Instructions
Build_i (Building Code) -10 digits, unique to each building, assigned by the higher-level platform
Gateway_i (Collector ID) -2 digits, unique to each collector, customized by the manufacturer
Energy consumption coding attribute: Energy consumption data classification/item coding is shown in the table below
(Note: Coding is unique under the same collector, and the same coding energy consumption data is summed and uploaded)
Energy consumption coding instructions
| 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|
| Energy consumption classification code | Sub item energy consumption code | Electricity coding | Serial number (0-9&A-Z) | |
| X X | X | X | X |
Energy consumption classification code
| Energy consumption classification | Energy consumption classification code |
|---|---|
| electricity | 01 |
| water | 02 |
| Gas (natural gas or coal gas) | 03 |
| Centralized heating capacity | 04 |
| Centralized cooling capacity | 05 |
| other energy sources | 06 |
| coal | 07 |
| liquefied petroleum gas | 08 |
| Artificial gas | 09 |
| gasoline | 10 |
| kerosene | 11 |
| diesel | 12 |
| renewable energy | 13 |
Sub item energy consumption code
| Sub item energy consumption | Sub item energy consumption code |
|---|---|
| Electricity consumption for lighting sockets | A |
| Air conditioning electricity consumption | B |
| Power consumption | C |
| Special electricity usage | D |
| Total electricity consumption | E |
Use a code meter
| Sub item energy consumption | electricity consumer name | Using electrical codes | Example (last x takes 0-9&A-Z) |
|---|---|---|---|
| 01A | Electricity consumption for lighting sockets | 0 | 01A0x |
| 01A | Lighting and sockets | 1 | 01A1x |
| 01A | Corridor and Emergency Response | 2 | 01A2x |
| 01A | outdoor lighting | 3 | 01A3x |
| 01B | Air conditioning electricity consumption | 4 | 01A4x |
| 01B | Cold and hot stations | 5 | 01A5x |
| 01B | cryogenic pump | 6 | 01A6x |
| 01B | cooling pump | 7 | 01A7x |
| 01B | cold machine | 8 | 01A8x |
| 01B | cooling tower | 9 | 01A9x |
| 01B | hot water circulating pump | A | 01AAx |
| 01B | electric boiler | B | 01ABx |
| 01B | Air conditioning terminal | C | 01ACx |
| 01B | All air unit | D | 01ADx |
| 01B | Fresh Air Handling Unit | E | 01AEx |
| 01B | exhaust fan unit | F | 01AFx |
| 01C | Power consumption | 0 | 01C0x |
| 01C | elevator | 1 | 01C1x |
| 01C | water pump | 2 | 01C2x |
| 01C | ventilator | 3 | 01C3x |
| 01C | Electric water heater | 4 | 01C4x |
| 01D | Other electricity consumption | 0 | 01D0x |
| 01D | Information Center | 1 | 01D1x |
| 01D | kitchen equipment | 2 | 01D2x |
| 01D | special equipment | 3 | 01D3x |
| 01E | Main circuit electricity consumption | 0 | 01E0x |
| 01E | Main and backup circuit power consumption | 1 | 01E1x |
Error attribute: The status code for this feature indicating an error, 0 indicates no error, and 1 indicates a fault
-->
<data operation="report/continuous_ack">
<sequence>XXXXXXXX</sequence>
<parser>yes/no</parser>
<time>yyyyMMddHHmmss</time>
<meter id="1">
<function id="1" coding="XXXX" error="XX">Data value/function>
<function id="2" coding="XXXX" error="XX">Data value/function>
</meter>
<meter id="2">
<function id="1" coding="XXXX" error="XX">Data value/function>
<function id="2" coding="XXXX" error="XX">Data value/function>
</meter>
</data>
</root>
2.4 Configuration Information Package (config)
This data packet will be returned to the collector by the server simultaneously with the authentication information and configuration information during the authentication process. If the configuration information is modified, the server will
It will also send configuration information to the collector.
<root>
<! -- General Part -->
<!—
Building_id: Building number
Gateway_id: Collector ID
Type: Configure the type of information packet
-->
<common>
<building_id>XXXXXXXXXX</building_id >
<gateway_id>XX</gateway_id >
<type>One of the two types of operations</type>
</common>
<! -- Configuration Information -->
<! -- There are 2 types of operations
Period: represents the server's configuration of the collector's collection period, and the period sub element is valid (this data packet is sent by the server to the collector)
Period_ack: represents the response of the collector to the server's collection cycle configuration information (this data packet is sent by the collector to the server)
-->
<config operation="period/period_ack">
<period>15</period>
</config>
</root>
- Data transmission format
Byte length of data packet (4 bytes)+data packet (encrypted data) Example: Full data packet format: 132<root>Data</root>
132: Represents the byte length of "<root>data</root>", which is hexadecimal (4 bytes). <root>Data</root>: represents encrypted data - Encryption case:
Cipher text:
000001801224FE967F74404694D77C944945B594701DEFC2188624BA6589C8115AA7C98F644B46E9F39F186D3A6D67692CBC9B65F13FBA22A1022EB9D1E3724D1DE48AE868958738368E80022A1748EB008648BFAE0E62F57CAD266DD65CD37FFA8B5727BC8A90DA4FBCB11F6EB437B5D1A808CC7ABDDC9AB972AA03EB252B28D9D2AC186E206B9ED5A32F01D4921EC898CEB09962A6EE96453A5F91A499FA565F3E27AD4267E364B307C871D91482F1D1F0CA5543F3738CB8B80AC872AD4DA7917A4C9D
among which 00000180 Represents the length of the ciphertext (not encrypted), and the following data is a complete ciphertext packet.
Clear text:
<root><common><building_id>420100A002</building_id><gateway_id >01</gateway_id><type>result</type></common><id_validate operation="result"><result>pass</result></id_validate></root> - Message example:
---------Register---------------
Collector sends:
<root><common><building_id>500229H001</building_id><gateway_id>01</gateway_id><type>request</type></common></root>
Server response:
<root><common><building_id>500229H001</building_id><gateway_id>01</gateway_id><type>result</type></common><id_validate operation="result"><result>pass</result></id_validate></root>
-----------Data transmission---------
Collector sends:
<root><common><building_id>500229H001</building_id><gateway_id>01</gateway_id><type>report</type></common><data operation="report"><sequence>00020221017152341570</sequence><parser>yes</parser><time>20221017152341</time><meter id="1"><function id="1" coding="01A00" error="0" >1</function><function id="1" coding="01B00" error="0" >2</function><function id="1" coding="01C00" error="0" >3</function><function id="1" coding="01D00" error="0" >4</function></meter></data></root>
Server response:
<root><common><building_id>500229H002</building_id><gateway_id>01</gateway_id><type>continuous_ack</type></common></root>
评论
发表评论