WO2021004197A1 - Method and device for checking electric energy data, and system - Google Patents

Method and device for checking electric energy data, and system Download PDF

Info

Publication number
WO2021004197A1
WO2021004197A1 PCT/CN2020/093845 CN2020093845W WO2021004197A1 WO 2021004197 A1 WO2021004197 A1 WO 2021004197A1 CN 2020093845 W CN2020093845 W CN 2020093845W WO 2021004197 A1 WO2021004197 A1 WO 2021004197A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
electric energy
type
message
electric
Prior art date
Application number
PCT/CN2020/093845
Other languages
French (fr)
Chinese (zh)
Inventor
孙茂杰
李福存
张楠
谷庆
田敏超
陈琦
Original Assignee
江苏金恒信息科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 江苏金恒信息科技股份有限公司 filed Critical 江苏金恒信息科技股份有限公司
Publication of WO2021004197A1 publication Critical patent/WO2021004197A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • This application relates to the technical field of electric meter equipment, and in particular to a method, device and system for verifying electric energy data.
  • the present application provides a method, device and system for verifying electrical energy data, which can be used to solve the technical problem that manual verification of electrical energy data in the prior art easily leads to low verification efficiency and waste of labor.
  • an embodiment of the present application provides a method for verifying electric energy data.
  • the method is suitable for a monitoring system for electric energy data.
  • the system includes at least one first-type data acquisition device and multiple second-type data acquisition devices. And a plurality of electric meter devices; the first type of data acquisition device establishes a connection with the second type of data acquisition device, and the second type of data acquisition device establishes a connection with the plurality of electric meter devices; the method includes:
  • the second-type data collection device After the second-type data collection device sends a data collection instruction to the electric meter device, it receives the electric energy data information returned by the electric meter device, where the electric energy data information includes electric energy data values; and, generates a report based on the electric energy data information. And send the message to the first-type data collection device;
  • the first-type data acquisition device parses the message to obtain an electric energy data value.
  • the electric energy data value includes total electric energy data, electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data And, if it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is equal to the electric energy total data, it is determined that the message passes the verification.
  • the electrical energy data information further includes the identification of the electricity meter device
  • the second-type data collection device generates a message according to the electric energy data information, including:
  • the second-type data collection device parses the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and, according to the electric energy data value, the identification of the electric meter device, and the second-type data Collect the identification of the device and generate a message.
  • the system further includes an upper computer, and the upper computer is connected to the first type data collection device through a network;
  • the method also includes:
  • the first-type data collection device performs processing of the electric energy data value, the identification of the electricity meter device, and the identification of the second-type data collection device according to the preset communication protocol. After packing, it is sent to the host computer.
  • the first-type data collection device packages the electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data collection device according to a preset communication protocol, and then sends the package to the host Machines, including:
  • the first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer
  • the first-type data acquisition device packages the converted electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data acquisition device according to a preset communication protocol, and then sends the package to the host computer.
  • the method further includes:
  • the second-type data acquisition device verifies the electric energy data value in an even check, and if the electric energy data value is correct, generates the message according to the electric energy data information.
  • the method further includes:
  • a warning prompt is sent.
  • the condition that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is equal to the total electric energy data is:
  • the preset threshold is set by itself.
  • an electrical energy data verification device the device includes:
  • the sending unit is used to send data collection instructions to the electricity meter equipment
  • a receiving unit configured to receive electric energy data information returned by the electric meter device, where the electric energy data information includes an electric energy data value;
  • a processing unit configured to generate a message according to the electrical energy data information
  • the sending unit is further configured to send the message to the first type data collection device
  • the electrical energy data information further includes the identification of the electricity meter device
  • the processing unit is specifically used for:
  • the processing unit is further configured to:
  • the electric energy data value is checked by an even check, and if the electric energy data value is correct, the message is generated based on the electric energy data information.
  • an embodiment of the present application provides a verification device for electric energy data, the device including:
  • the receiving unit is used to receive messages
  • the processing unit is configured to parse the message to obtain an electric energy data value, the electric energy data value including total electric energy data, electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data; and, if the electric energy peak data is determined If the sum of the power peak data, the power level data and the power valley data is equal to the total power data, it is determined that the message passes the verification.
  • processing unit is specifically configured to:
  • the device also includes:
  • the sending unit is configured to, if it is determined that the message passes the verification, the first-type data collection device transmits the electric energy data value, the identifier of the electric meter device, and the second-type data according to a preset communication protocol
  • the identification of the collection device is packaged and sent to the upper computer.
  • the device further includes:
  • the warning unit is configured to send a warning prompt if it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data.
  • the sending unit is specifically configured to:
  • the first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer
  • the first-type data acquisition device packages the converted electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data acquisition device according to a preset communication protocol, and then sends the package to the host computer.
  • warning unit is specifically used for:
  • a warning prompt is sent to the upper computer.
  • an embodiment of the present application provides a verification system for electric energy data.
  • the system includes at least one first-type data acquisition device and multiple second-type data acquisition devices;
  • the second type of data collection equipment is connected via a network;
  • the second type of data collection device is configured to receive electrical energy data information returned by the electrical meter device after sending a data collection instruction to the electrical meter device, where the electrical energy data information includes electrical energy data values; and, according to the electrical energy data Information generation message, and sending the message to the first type data collection device;
  • the first-type data acquisition device is configured to parse the message to obtain an electric energy data value after receiving the message, and the electric energy data value includes total electric energy data, electric energy tip data, electric energy peak data, and electric energy level data And power valley data; and, if it is determined that the sum of the power tip data, the power peak data, the power level data, and the power valley data is equal to the total power data, it is determined that the message passes the check ;
  • a warning prompt is sent to the upper computer.
  • the electrical energy data information further includes the identification of the electricity meter device
  • the second type data collection device is specifically used for:
  • the second-type data collection device parses the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and, according to the electric energy data value, the identification of the electric meter device, and the second-type data Collect the identification of the device and generate a message.
  • the system further includes an upper computer, and the upper computer is connected to the first type data collection device through a network;
  • the first type data collection device is also used for:
  • the communication protocol packages the electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data collection device and sends them to the upper computer.
  • the first type of data collection device is specifically used for:
  • the first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer; and, the first-type data acquisition device converts the converted electric energy data according to a preset communication protocol
  • the value, the identifier of the electric meter device, and the identifier of the second-type data collection device are packaged and sent to the host computer.
  • the second-type data collection device is further used for: before generating a message according to the electric energy data information:
  • the electric energy data value is checked by an even check, and if the electric energy data value is correct, the message is generated according to the electric energy data information.
  • the message is sent to the first type of data acquisition device, and then the first type of data acquisition device can parse the message, and can parse the message according to the analysis
  • the total energy data, energy tip data, energy peak data, energy level data, and energy valley data obtained afterwards are used to verify the message.
  • this application does not require manual verification, which greatly reduces labor costs.
  • the first-type data collection device verifies messages, which can improve work efficiency and accuracy.
  • the second type of data acquisition equipment is only responsible for receiving the electric energy data information sent by the electric meter device.
  • the first type of data collection device is only responsible for receiving the message sent by the second type of data collection device, and the division of labor is clear.
  • the type of data collection device is responsible for verifying messages, which can greatly reduce the working pressure of the host computer compared to the way the upper computer checks the messages.
  • Figure 1 is a schematic structural diagram of a system to which an embodiment of this application is applicable;
  • FIG. 2 is a schematic flow diagram corresponding to a method for verifying electric energy data provided by an embodiment of the application
  • FIG. 3 is a schematic structural diagram of an electrical energy data verification device provided by an embodiment of the application.
  • Figure 4 is a schematic structural diagram of another device for verifying electrical energy data provided by an embodiment of the application.
  • the system 100 may include at least one first type data collection device, such as the first type data collection device 1011 and the first type data collection device 1012 shown in FIG. 1; and multiple second type data collection devices, such as FIG. 1
  • the first type of data acquisition device can establish a connection with the upper computer 104, for example, as shown in FIG. 1, the first type of data acquisition device 1011 can establish a connection with the upper computer 104, and the first type of data acquisition device 1012 can establish a connection with the upper computer 104. 104 The connection is established.
  • the first type of data collection device can also establish a connection with the second type of data collection device.
  • the first type of data collection device 1011 can be connected to the second type of data collection device 1021 and the second type of data collection device, respectively.
  • a connection is established at 1022, and the first-type data acquisition device 1012 can establish a connection with the second-type data acquisition device 1023 and the second-type data acquisition device 1024 respectively.
  • first type of data collection device and the second type of data collection device can be connected via a Lora wireless network; or, it can also be connected by other means, such as between the first type of data collection device and the second type of data collection device It can be connected via 4G, Bluetooth, WIFI, and it is not limited.
  • the second type of data collection device can establish connections with multiple electric meter devices.
  • the second type of data collection device 1021 can establish connections with the electricity meter device 1031 and the electricity meter device 1032
  • the second type data collection device 1022 can A connection is established with the electric meter device 1033 and the electric meter device 1034
  • the second type data collection device 1023 can establish a connection with the electric meter device 1035 and the electric meter device 1036
  • the second type data collection device 1024 can establish a connection with the electric meter device 1037 and the electric meter device 1038.
  • the second-type data acquisition device and the electric meter device can be connected through the RS485 interface; or the second-type data acquisition device and the electric meter The devices can be connected through the RJ45 network port interface, which is not limited.
  • Such an interface can not only ensure the data communication problem between the second type data acquisition device and the electric meter device, but also solve the real-time communication problem with the first type data acquisition device.
  • the electric meter device may be multiple types of devices, for example, it may be any one of electric meter devices, water meter devices, and gas meter devices, which is not specifically limited.
  • FIG. 2 exemplarily shows a schematic flowchart corresponding to a method for verifying electric energy data provided by an embodiment of the present application. As shown in Figure 2, it specifically includes the following steps:
  • Step 201 After sending a data collection instruction to the electricity meter device, the second type data acquisition device receives the electric energy data information returned by the electricity meter device.
  • Step 202 The second-type data acquisition device generates a message according to the electric energy data information, and sends the message to the first-type data acquisition device.
  • Step 203 After receiving the message, the first-type data acquisition device parses the message to obtain an electric energy data value.
  • Step 204 If the first-type data acquisition device determines that the sum of the electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data is equal to the total electric energy data, it determines that the message passes the verification.
  • the message is sent to the first type of data acquisition device, and then the first type of data acquisition device can parse the message, and can parse the message according to the analysis
  • the total energy data, energy tip data, energy peak data, energy level data, and energy valley data obtained afterwards are used to verify the message.
  • this application does not require manual verification, which greatly reduces labor costs.
  • the first-type data collection device verifies messages, which can improve work efficiency and accuracy.
  • the second type of data acquisition equipment is only responsible for receiving the electric energy data information sent by the electric meter device.
  • the first type of data acquisition equipment is only responsible for receiving the messages sent by the second type of data acquisition equipment.
  • the division of labor is clear, and the type of data acquisition equipment is responsible for verifying the messages, compared to the way the upper computer verifies the messages. In other words, it can greatly reduce the working pressure of the host computer.
  • the first type of data acquisition equipment is only responsible for receiving the messages sent by the second type of data acquisition equipment
  • the second type of data acquisition equipment is only responsible for receiving the electrical energy data information sent by the meter equipment.
  • the division of labor between the two is clear.
  • This method It is not easy to think of.
  • a method that is easy to think of is a collection device and multiple meter devices that transmit to the host computer.
  • the collection device is responsible for sending collection instructions, receiving electrical energy data sent by the meter device, analyzing data, generating messages, and analyzing messages. Packing and sending messages to the upper computer.
  • the upper computer is responsible for receiving, verifying, and storing messages.
  • this method has certain drawbacks.
  • the collection equipment and the upper computer are responsible for more content.
  • the upper computer is also responsible for verifying messages.
  • the pressure on the collection device and the upper computer is relatively high, and on the other hand, it may reduce efficiency.
  • the second-type data collection device establishes a connection with the multiple electric meter devices, and there are multiple ways for the second-type data collection device to send data collection instructions to the electric meter device.
  • the second type of data collection device can first send a data collection instruction to the first electric meter device, and after the first preset period of time, send the data collection instruction to the second electric meter device until the The multiple electric meter devices connected to the second-type data collection device all receive the data collection instruction.
  • the first electric meter device is any one of a plurality of electric meter devices connected to the second type of data acquisition device
  • the second electric meter device is any one of the plurality of electric meter devices connected to the second type of data acquisition device except for the first electric meter device Any one of.
  • the first preset time period may be determined by those skilled in the art based on experience and actual conditions.
  • the second type data collection device 1021 can first send a data collection instruction to the electric meter device 1031, and then send a data collection instruction to the electric meter device 1032 after the first preset time period; similar Ground, the second type of data collection device 1022 may first send a data collection instruction to the electricity meter device 1033, and after the first preset time period, then send a data collection instruction to the electricity meter device 1034, the rest of the second type shown in Figure 1
  • the process of sending data collection instructions from the data collection device is similar, and will not be described in detail here.
  • the number of electric meter devices connected to the second type of data acquisition device may be more than that shown in Figure 1 with only two electric meter devices. Then, for the third electric meter device, the second type of data The collection device may send the data collection instruction to the third power meter device after waiting for the first preset time period after sending the data collection instruction to the second power meter device. Similarly, for the fourth and fifth meter devices, the second-type data collection device can send data collection instructions in a similar manner.
  • the process of sending data collection instructions by the second type of data collection device may be a continuous cyclic process. That is, the second-type data collection device 1021 may send the data collection instruction to the electric meter device 1032 again after the first preset time period.
  • the process of sending data collection instructions by the above-mentioned second type data collection device may also be a cyclically reciprocating process. That is, in the current cycle, the second type of data collection device may first send a data collection instruction to the first electricity meter device, and after the first preset time period, send a data collection instruction to the second electricity meter device until the Multiple electric meter devices connected to the second type data collection device all receive the data collection instruction; in the next cycle, the second type data collection device repeats the above process.
  • the second-type data collection device can also send data collection instructions to multiple electric meter devices at the same time, which is not specifically limited.
  • the data collection instruction may include a forward active energy data acquisition instruction and a reverse active energy data acquisition instruction.
  • Active power refers to the amount of electricity actually used by the user, and the unit can be kilowatt-hours (commonly known as degrees).
  • reactive power refers to the reactive power of user equipment, and the unit is kva-hour.
  • the forward direction refers to the power transmission from the grid to the user
  • the reverse direction refers to the power transmission from the user to the grid
  • the second-type data collection device may send a forward active energy data collection instruction to the meter device; and, after the second preset time period, send a reverse active energy data collection instruction to the meter device.
  • the second preset time period may be determined by those skilled in the art based on experience and actual conditions; the time length of the second preset time period may be the same as the time length of the first preset time period, or may be inconsistent. Make a limit.
  • the second-type data collection device may also send a forward active energy data collection instruction to the first electric meter device; and, after the second preset time period, send a reverse active energy data collection instruction to the first electric meter device; Furthermore, after the first preset time period, send a forward active energy data collection instruction to the second electric meter device; and, after the second preset time period, send a reverse active energy data collection instruction to the second electric meter device.
  • the second-type data collection device may send a reverse active energy data collection instruction to the meter device; and, after the second preset time period, send a forward active energy data collection instruction to the meter device.
  • the second-type data collection device may also send a reverse active energy data collection instruction to the first electric meter device; and, after the second preset time period, send a forward active energy data collection instruction to the first electric meter device; Furthermore, after the first preset time period, send a reverse active energy data collection instruction to the second electric meter device; and, after the second preset time period, send a forward active energy data collection instruction to the second electric meter device.
  • the first electric meter device may be any one of the plurality of electric meter devices connected to the second type of data acquisition device; the second electric meter device may be any one of the plurality of electric meter devices connected to the second type of data acquisition device. Any one other than an electric meter device.
  • the electrical energy data information may be collected based on the Modbus protocol, or may be collected based on other types of protocols.
  • the electric energy data information may include multiple types of content.
  • the electric energy data information may include the electric energy data value, the identification of the electric meter device, and the data collection time, which is not specifically limited.
  • the electric energy data value may include multiple types of electric energy data, such as total electric energy data, electric energy tip data, electric energy peak data, electric energy level data, and electric energy valley data, etc., which are not specifically limited.
  • Total refers to the total energy data, which is the total directly monitored by the energy meter.
  • Electric energy data, peaks, peaks, flats, and valleys are specific classifications of residential electricity consumption by time period, among which:
  • the “tip” on the electricity meter indicates the peak period of residential electricity consumption, which generally refers to 19:00-22:00.
  • the electrical energy peak data generally indicates the residential electricity consumption during the peak period. For example, the time for everyone to get home after get off work is about 7 o'clock, and the daily bed time is about 22:00, so the time between 19:00 and 22:00 is usually the time when the family is at home.
  • the electricity consumption of the residents during this time period can be It is called electric energy tip data;
  • the “peak” on the meter indicates the peak period of residential electricity consumption, which generally refers to 8:00-11:00 in the morning and 15:00-19:00 in the afternoon.
  • the peak number of electric energy generally indicates the residential power consumption during the peak period. the amount.
  • the electricity consumption of residents in the two time periods of 8:00-11:00 in the morning and 15:00-19:00 in the afternoon can be called power peak data;
  • the “level” on the electricity meter indicates the flat period of residential electricity consumption, which generally refers to 7:00-8:00, 11:00-15:00, and 22:00-23:00.
  • the power level data generally indicates Residential electricity consumption during flat periods;
  • the "valley” on the meter indicates the low period of residential electricity consumption, which generally refers to 23:00-7:00 the next day.
  • the power valley data generally represents the residential power consumption during the low period. For example, every day from 23:00 to 7:00 the next day is generally everyone’s sleep time, and the low period of electricity consumption is reached at this time.
  • the electricity consumption of residents during this time period can be called the energy valley data. As shown in Table 1, it is an example of electrical energy data information.
  • Table 1 An example of power data information
  • the power data information 1 includes the contents of the total power data A0 corresponding to the meter A, the power tip data A1, the power peak data A2, the power level data A3 and the power valley data A4;
  • the power data information 2 includes the content: Electric energy meter B corresponds to total energy data B0, energy tip data B1, energy peak data B2, energy level data B3, and energy valley data B4;
  • energy data information 3 includes the contents of electricity meter C corresponding to total energy data C0, energy tip data C1, Power peak data C2, power level data C3 and power valley data C4.
  • the second-type data acquisition device Before performing step 202, the second-type data acquisition device can also use even parsing to verify the electrical energy data value. If the electrical energy data value is correct, it can perform subsequent step 202 (that is, generate a message based on the electrical energy data information) . In this way, the accuracy of the data can be improved and the sending of wrong data can be avoided.
  • the second type of data acquisition device can first parse the electrical energy data information to obtain the electrical energy data value and the identity of the electrical meter device, and then can based on the electrical energy data value, The identification of the electricity meter device and the identification of the second-type data collection device generate a message.
  • the second type of data collection device may also directly generate a message based on the electrical energy data information and the identification of the second type of data collection device.
  • step 203 and step 204 after receiving the message, the data acquisition device of the first type can parse the message to obtain the electric energy data value, and then, if it is determined that the electric energy peak data, electric energy peak data, and electric energy level data in the electric energy data value If the sum of the power valley data is equal to the total power data, it is determined that the message passes the verification.
  • the method used by the first type of data acquisition equipment to verify the message is: "If it is determined that the sum of the power peak data, power peak data, power level data, and power valley data in the power data value is equal to the total power data, It is determined that the message passes the check", where "equal” is not absolute equal, but a certain error is allowed, if the following formula (1) is satisfied:
  • the sources of each data in the formula are:
  • the total energy data is the value directly monitored by the meter
  • Electric energy peak data, electric energy peak data, electric energy level data and electric energy valley data are also the values monitored by the electric meter;
  • the preset threshold is a value set by each power agency according to the actual situation. Generally, the threshold does not exceed 1 (in degrees).
  • the total energy data obtained is A0
  • the energy tip data is A1
  • the energy peak data is A2
  • the energy level data is A3
  • the verification method adopted in this application is to determine whether the sum of the total energy data and the data of "power tip data + power peak data + power level data + power valley data" is equal, this application
  • the electric energy summation calculation of is not a simple summation calculation that can be applied to any scenario, but has a specific meaning and can produce a specific effect. For ease of understanding, an example is given here.
  • simple summation refers to whether the sum of several items of data is equal to the total sum, but this method is easy to think of when applied to electric energy calibration and is flawed.
  • the existing total is 8, one transmission method is 1+3+4, the other transmission method is 2+2+4, the sum of these two methods is both 8, and what we want may be 1+ The combination of 3+4, but this simple summation cannot verify the error of the data itself, that is, the error of 2+2+4 cannot be judged, as long as the sum is 8 is enough, this is it The drawbacks.
  • this simple summation check cannot distinguish the error of each data sub-item, and no matter what data, data loss or abnormal data may inevitably occur during the transmission process, as is the electrical energy data. Similarly, at this time, the data itself needs to be filtered out.
  • the sum check in this application runs through every process of electric energy data transmission. On the one hand, it checks whether the sum of the total electric energy data and the "energy tip data + energy peak data + energy level data + energy valley data" data Equality, on the other hand, is also different from simple summation calculations in any field. The verification is based on the characteristics of the meter data and can filter out each sub-data, that is, it can verify the summation calculation. Whether each sub-item is correct, which improves the accuracy of the verification. It can be seen that whether the sum of the total energy data in this application is equal to the "energy tip data + energy peak data + energy level data + energy valley data" data is not a simple summation that can be applied to any scenario Operation.
  • the first-type data collection device can parse the message after verifying the message to obtain the identity of the electric meter device and the identity of the second-type data collection device; further, if it is determined that the message passes After verification, the first-type data collection device can package the electric energy data value, the identification of the electric meter device, and the identification of the second-type data collection device according to the preset communication protocol, and then send it to the host computer. Furthermore, the first-type data acquisition device can also convert the format corresponding to the electrical energy data value into a data format suitable for the host computer, and then can convert the converted electrical energy data value, the identity of the meter device, and the first data format according to the preset communication protocol. The identification of the second type data acquisition device is packaged and sent to the host computer.
  • the first type of data collection device is responsible for converting the data format.
  • the upper computer can receive the message sent by the first type of data collection device, it can directly analyze the data carried in it, without additional data conversion. Process, which can reduce the workload of the host computer and improve the work efficiency of the host computer.
  • the first type of data acquisition equipment, the second type of data acquisition equipment and the host computer are used in the mutual transmission mode, where the second type of data acquisition equipment is used to send data collection instructions to the electricity meter device, and then the receiving electricity meter device returns
  • the electric energy data information includes electric energy data values, and a message is generated according to the electric energy data information and sent to the first type of data acquisition device; the first type of data acquisition device is used to receive the message After the text, the message is parsed to obtain the electric energy data value.
  • the electric energy data value includes the total electric energy data, the electric energy peak data, the electric energy peak data, the electric energy level data and the electric energy valley data; and, if the electric energy peak data and the electric energy peak data are determined If the sum of the power level data and the power valley data is equal to the total power data, it is determined that the message passes the verification. It can be seen that, compared with the method of verifying messages by the upper computer, the method adopted in this application can greatly reduce the working pressure of the upper computer, and the first type of data collection equipment and the second type of data collection equipment also perform their duties. , And then improve work efficiency together with the host computer.
  • the first type of data acquisition device is in the process of verifying the electric energy data, if it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy
  • a warning prompt is sent to the upper computer. After the upper computer receives the warning prompt, it will re-collect the meter data.
  • Fig. 3 exemplarily shows a schematic structural diagram of an electrical energy data verification device provided in an embodiment of the present application.
  • the device has the function of realizing the above-mentioned electric energy data verification, and the function can be realized by hardware, or by hardware executing corresponding software.
  • the device includes: a sending unit 301, a receiving unit 302, and a processing unit 303.
  • the sending unit 301 is used to send data collection instructions to the electric meter device
  • the receiving unit 302 is configured to receive electric energy data information returned by the electric meter device, where the electric energy data information includes an electric energy data value;
  • the processing unit 303 is configured to generate a message according to the electrical energy data information
  • the sending unit 301 is further configured to send the message to the first-type data collection device
  • the electrical energy data information further includes the identification of the electricity meter device
  • the processing unit 303 is specifically configured to:
  • the processing unit 303 is further configured to:
  • the electric energy data value is checked by an even check, and if the electric energy data value is correct, the message is generated according to the electric energy data information.
  • Fig. 4 exemplarily shows a schematic structural diagram of another device for verifying electric energy data provided by an embodiment of the present application.
  • the device has the function of realizing the above-mentioned electric energy data verification, and the function can be realized by hardware, or by hardware executing corresponding software.
  • the device includes: a receiving unit 401, a processing unit 402, and a sending unit 403.
  • the receiving unit 401 is configured to receive messages
  • the processing unit 402 is configured to parse the message to obtain an electric energy data value, the electric energy data value including total electric energy data, electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data; and, if the electric energy peak is determined If the sum of the data, the power peak data, the power level data, and the power valley data is equal to the total power data, it is determined that the message passes the verification.
  • the processing unit 402 is specifically configured to:
  • the device also includes:
  • the sending unit 403 is configured to, if it is determined that the message passes the verification, the first type data collection device transmits the electric energy data value, the identifier of the electric meter device, and the second type according to a preset communication protocol.
  • the identification of the data acquisition device is packaged and sent to the upper computer.
  • the device further includes:
  • the warning unit 404 is configured to send a warning prompt if it is determined that the sum of the electric energy peak data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data.
  • the sending unit 403 is specifically configured to:
  • the first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer
  • the first-type data acquisition device packages the converted electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data acquisition device according to a preset communication protocol, and then sends the package to the host computer.
  • warning unit 404 is specifically configured to:
  • a warning prompt is sent to the upper computer.
  • an embodiment of the present application also provides a system for verifying electrical energy data.
  • the system includes at least one first-type data acquisition device and multiple second-type data acquisition devices; the first-type data acquisition The device is connected to the second-type data collection device through a network;
  • the second type of data collection device is configured to receive electrical energy data information returned by the electrical meter device after sending a data collection instruction to the electrical meter device, where the electrical energy data information includes electrical energy data values; and, according to the electrical energy data Information generation message, and sending the message to the first type data collection device;
  • the first-type data acquisition device is configured to parse the message to obtain an electric energy data value after receiving the message, and the electric energy data value includes total electric energy data, electric energy tip data, electric energy peak data, and electric energy level data And power valley data; and, if it is determined that the sum of the power tip data, the power peak data, the power level data, and the power valley data is equal to the total power data, it is determined that the message passes the check .
  • the electrical energy data information further includes the identification of the electricity meter device
  • the second type data collection device is specifically used for:
  • the second-type data collection device parses the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and, according to the electric energy data value, the identification of the electric meter device, and the second-type data Collect the identification of the device and generate a message.
  • the system further includes an upper computer, and the upper computer is connected to the first type data collection device through a network;
  • the first type data collection device is also used for:
  • the communication protocol packages the electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data collection device and sends them to the upper computer.
  • the first type of data collection device is specifically used for:
  • the first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer; and, the first-type data acquisition device converts the converted electric energy data according to a preset communication protocol
  • the value, the identifier of the electric meter device, and the identifier of the second-type data collection device are packaged and sent to the host computer.
  • the second-type data collection device is further used for: before generating a message according to the electric energy data information:
  • the electric energy data value is checked by an even check, and if the electric energy data value is correct, the message is generated according to the electric energy data information.
  • a computer-readable storage medium stores a computer program or smart contract, and the computer program or smart contract is loaded and executed by a node to implement the above-mentioned embodiments.
  • Transaction processing method may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. .
  • the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present application can be embodied in the form of a software product in essence or a part that contributes to the prior art.
  • the computer software product can be stored in a storage medium, such as ROM/RAM , Magnetic disks, optical disks, etc., including a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the application or some parts of the embodiment.

Abstract

The present application provides a method and a device for checking electric energy data, and a system. The method comprises: after a second-type data acquisition device sends a data acquisition instruction to an electricity meter device, receiving electric energy data information returned by the electricity meter device, generating a message according to the electric energy data information, and sending the message to a first-type data acquisition device; then, the first-type data acquisition device parsing the message, and checking the message according to total electric energy data, electric energy head data, electric energy peak data, electric energy shoulder data and electric energy valley data obtained after the parsing. Compared with the prior art, the present application does not need manual checking, thereby reducing labor costs; furthermore, a first-type data acquisition device checking a message can improve the working efficiency and accuracy rate.

Description

一种电能数据的校验方法、装置及系统Method, device and system for verifying electric energy data
本申请要求在2019年07月05日提交中国专利局、申请号为201910607640.1、发明名称为“一种电能数据的校验方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910607640.1, and the invention title is "a method, device and system for verifying electrical energy data" on July 5, 2019, the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本申请涉及电表设备技术领域,特别涉及一种电能数据的校验方法、装置及系统。This application relates to the technical field of electric meter equipment, and in particular to a method, device and system for verifying electric energy data.
背景技术Background technique
随着信息技术和网络技术的发展,电表设备的应用越来越广。电是人们日常生活中所必须要的,几乎家家户户都安装有电表设备,居民每隔一段时间就要根据使用的电缴纳对应的费用,电使用量是通过电表设备进行统计的。With the development of information technology and network technology, the application of electricity meter equipment is becoming wider and wider. Electricity is necessary in people's daily life. Almost every household is equipped with electric meter equipment. Residents must pay corresponding fees according to the electricity used every once in a while. Electricity usage is counted through the meter equipment.
而目前常见的监控电表读数的方式是由物业管理人员来到居民家中,挨家挨户的手动抄取,再人工核对电表数据。然而,这种方式效率低下且浪费人工。At present, the common way to monitor the meter readings is that the property management personnel come to the residents' homes, manually copy from house to house, and then manually check the meter data. However, this method is inefficient and wastes labor.
基于此,目前亟需一种电能数据的校验方法,用于解决现有技术中人工核对电能数据容易导致核对效率低且浪费人工的问题。Based on this, there is an urgent need for a verification method of electrical energy data to solve the problem that manual verification of electrical energy data in the prior art easily leads to low verification efficiency and waste of labor.
发明内容Summary of the invention
本申请提供了一种电能数据的校验方法、装置及系统,可用于解决在现有技术中人工核对电能数据容易导致核对效率低且浪费人工的技术问题。The present application provides a method, device and system for verifying electrical energy data, which can be used to solve the technical problem that manual verification of electrical energy data in the prior art easily leads to low verification efficiency and waste of labor.
第一方面,本申请实施例提供一种电能数据的校验方法,所述方法适用于电能数据的监控系统,所述系统包括至少一个第一类型数据采集设备、多个第二类型数据采集设备和多个电表设备;所述第一类型数据采集设备与所述第二类型数据采集设备建立连接,所述第二类型数据采集设备与所述多个电表设备建立连接;所述方法包括:In the first aspect, an embodiment of the present application provides a method for verifying electric energy data. The method is suitable for a monitoring system for electric energy data. The system includes at least one first-type data acquisition device and multiple second-type data acquisition devices. And a plurality of electric meter devices; the first type of data acquisition device establishes a connection with the second type of data acquisition device, and the second type of data acquisition device establishes a connection with the plurality of electric meter devices; the method includes:
所述第二类型数据采集设备向所述电表设备发送数据采集指令后,接收所述电表设备返回的电能数据信息,所述电能数据信息包括电能数据值;以及,根据所述电能数据信息生成报文,并向所述第一类型数据采集设备发送所述报文;After the second-type data collection device sends a data collection instruction to the electric meter device, it receives the electric energy data information returned by the electric meter device, where the electric energy data information includes electric energy data values; and, generates a report based on the electric energy data information. And send the message to the first-type data collection device;
所述第一类型数据采集设备接收所述报文后,解析所述报文得到电能数据值,所述电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验。After receiving the message, the first-type data acquisition device parses the message to obtain an electric energy data value. The electric energy data value includes total electric energy data, electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data And, if it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is equal to the electric energy total data, it is determined that the message passes the verification.
可选地,所述电能数据信息还包括所述电表设备的标识;Optionally, the electrical energy data information further includes the identification of the electricity meter device;
所述第二类型数据采集设备根据所述电能数据信息生成报文,包括:The second-type data collection device generates a message according to the electric energy data information, including:
所述第二类型数据采集设备解析所述电能数据信息得到所述电能数据值和所述电表设备的标识;以及,根据所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识,生成报文。The second-type data collection device parses the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and, according to the electric energy data value, the identification of the electric meter device, and the second-type data Collect the identification of the device and generate a message.
可选地,所述系统还包括上位机,所述上位机与所述第一类型数据采集设备通过 网络连接;Optionally, the system further includes an upper computer, and the upper computer is connected to the first type data collection device through a network;
所述方法还包括:The method also includes:
所述第一类型数据采集设备解析所述报文,得到所述电表设备的标识和所述第二类型数据采集设备的标识;Parsing the message by the first-type data collection device to obtain the identification of the electricity meter device and the identification of the second-type data collection device;
如果确定所述报文通过校验,则所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。If it is determined that the message passes the verification, the first-type data collection device performs processing of the electric energy data value, the identification of the electricity meter device, and the identification of the second-type data collection device according to the preset communication protocol. After packing, it is sent to the host computer.
可选地,所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机,包括:Optionally, the first-type data collection device packages the electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data collection device according to a preset communication protocol, and then sends the package to the host Machines, including:
所述第一类型数据采集设备将所述电能数据值对应的格式转换成所述上位机适用的数据格式;The first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer;
所述第一类型数据采集设备根据预设的通信协议将转换后的电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。The first-type data acquisition device packages the converted electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data acquisition device according to a preset communication protocol, and then sends the package to the host computer.
可选地,在所述第二类型数据采集设备接收所述电表设备返回的电能数据信息之后,根据所述电能数据信息生成报文之前,所述方法还包括:Optionally, after the second-type data acquisition device receives the electric energy data information returned by the electric meter device, before generating a message according to the electric energy data information, the method further includes:
所述第二类型数据采集设备采用偶校验的方式对所述电能数据值进行校验,如果所述电能数据值无误,则根据所述电能数据信息生成所述报文。The second-type data acquisition device verifies the electric energy data value in an even check, and if the electric energy data value is correct, generates the message according to the electric energy data information.
可选地,所述方法还包括:Optionally, the method further includes:
如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据,则发送警告提示。If it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data, a warning prompt is sent.
可选地,所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据适用的条件为:Optionally, the condition that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is equal to the total electric energy data is:
电能总数据—(电能尖数据+电能峰数据+电能平数据+电能谷数据)<预设阈值;Total energy data—(energy tip data + energy peak data + energy level data + energy valley data) <preset threshold;
其中,预设阈值自行设定。Among them, the preset threshold is set by itself.
第二方面,本申请实施例提供一种电能数据的校验装置,所述装置包括:In a second aspect, an embodiment of the present application provides an electrical energy data verification device, the device includes:
发送单元,用于向电表设备发送数据采集指令;The sending unit is used to send data collection instructions to the electricity meter equipment;
接收单元,用于接收所述电表设备返回的电能数据信息,所述电能数据信息包括电能数据值;A receiving unit, configured to receive electric energy data information returned by the electric meter device, where the electric energy data information includes an electric energy data value;
处理单元,用于根据所述电能数据信息生成报文;A processing unit, configured to generate a message according to the electrical energy data information;
所述发送单元,还用于向所述第一类型数据采集设备发送所述报文;The sending unit is further configured to send the message to the first type data collection device;
可选地,所述电能数据信息还包括所述电表设备的标识;Optionally, the electrical energy data information further includes the identification of the electricity meter device;
所述处理单元具体用于:The processing unit is specifically used for:
解析所述电能数据信息得到所述电能数据值和所述电表设备的标识;以及,根据所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识,生成报文。Analyze the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and generate a message according to the electric energy data value, the identification of the electric meter device, and the identification of the second-type data collection device .
可选地,在所述接收单元接收所述电表设备返回的电能数据信息之后,在所述处理单元根据所述电能数据信息生成报文之前,所述处理单元还用于:Optionally, after the receiving unit receives the electrical energy data information returned by the electricity meter device, before the processing unit generates a message according to the electrical energy data information, the processing unit is further configured to:
采用偶校验的方式对所述电能数据值进行校验,如果所述电能数据值无误,则根 据所述电能数据信息生成所述报文。The electric energy data value is checked by an even check, and if the electric energy data value is correct, the message is generated based on the electric energy data information.
第三方面,本申请实施例提供一种电能数据的校验装置,所述装置包括:In a third aspect, an embodiment of the present application provides a verification device for electric energy data, the device including:
接收单元,用于接收报文;The receiving unit is used to receive messages;
处理单元,用于解析所述报文得到电能数据值,所述电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验。The processing unit is configured to parse the message to obtain an electric energy data value, the electric energy data value including total electric energy data, electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data; and, if the electric energy peak data is determined If the sum of the power peak data, the power level data and the power valley data is equal to the total power data, it is determined that the message passes the verification.
可选地,所述处理单元具体用于:Optionally, the processing unit is specifically configured to:
解析所述报文,得到所述电表设备的标识和所述第二类型数据采集设备的标识;Parse the message to obtain the identification of the electric meter device and the identification of the second-type data collection device;
所述装置还包括:The device also includes:
发送单元,用于如果确定所述报文通过校验,则所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至上位机。The sending unit is configured to, if it is determined that the message passes the verification, the first-type data collection device transmits the electric energy data value, the identifier of the electric meter device, and the second-type data according to a preset communication protocol The identification of the collection device is packaged and sent to the upper computer.
可选地,所述装置还包括:Optionally, the device further includes:
警告单元,用于如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据,则发送警告提示。可选地,所述发送单元具体用于:The warning unit is configured to send a warning prompt if it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data. Optionally, the sending unit is specifically configured to:
所述第一类型数据采集设备将所述电能数据值对应的格式转换成所述上位机适用的数据格式;The first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer;
所述第一类型数据采集设备根据预设的通信协议将转换后的电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。The first-type data acquisition device packages the converted electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data acquisition device according to a preset communication protocol, and then sends the package to the host computer.
可选地,所述警告单元具体用于:Optionally, the warning unit is specifically used for:
当确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据时,发送警告提示至上位机。When it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data, a warning prompt is sent to the upper computer.
第四方面,本申请实施例提供一种电能数据的校验系统,所述系统包括至少一个第一类型数据采集设备和多个第二类型数据采集设备;所述第一类型数据采集设备与所述第二类型数据采集设备通过网络连接;In a fourth aspect, an embodiment of the present application provides a verification system for electric energy data. The system includes at least one first-type data acquisition device and multiple second-type data acquisition devices; The second type of data collection equipment is connected via a network;
所述第二类型数据采集设备,用于向所述电表设备发送数据采集指令后,接收所述电表设备返回的电能数据信息,所述电能数据信息包括电能数据值;以及,根据所述电能数据信息生成报文,并向所述第一类型数据采集设备发送所述报文;The second type of data collection device is configured to receive electrical energy data information returned by the electrical meter device after sending a data collection instruction to the electrical meter device, where the electrical energy data information includes electrical energy data values; and, according to the electrical energy data Information generation message, and sending the message to the first type data collection device;
所述第一类型数据采集设备,用于在接收所述报文后,解析所述报文得到电能数据值,所述电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验;The first-type data acquisition device is configured to parse the message to obtain an electric energy data value after receiving the message, and the electric energy data value includes total electric energy data, electric energy tip data, electric energy peak data, and electric energy level data And power valley data; and, if it is determined that the sum of the power tip data, the power peak data, the power level data, and the power valley data is equal to the total power data, it is determined that the message passes the check ;
如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据时,发送警告提示至上位机。If it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data, a warning prompt is sent to the upper computer.
可选地,所述电能数据信息还包括所述电表设备的标识;Optionally, the electrical energy data information further includes the identification of the electricity meter device;
所述第二类型数据采集设备具体用于:The second type data collection device is specifically used for:
所述第二类型数据采集设备解析所述电能数据信息得到所述电能数据值和所述电 表设备的标识;以及,根据所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识,生成报文。The second-type data collection device parses the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and, according to the electric energy data value, the identification of the electric meter device, and the second-type data Collect the identification of the device and generate a message.
可选地,所述系统还包括上位机,所述上位机与所述第一类型数据采集设备通过网络连接;Optionally, the system further includes an upper computer, and the upper computer is connected to the first type data collection device through a network;
所述第一类型数据采集设备,还用于:The first type data collection device is also used for:
解析所述报文,得到所述电表设备的标识和所述第二类型数据采集设备的标识;以及,如果确定所述报文通过校验,则所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。Analyze the message to obtain the identification of the electricity meter device and the identification of the second-type data collection device; and, if it is determined that the message passes the verification, the first-type data collection device is based on a preset The communication protocol packages the electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data collection device and sends them to the upper computer.
可选地,所述第一类型数据采集设备具体用于:Optionally, the first type of data collection device is specifically used for:
所述第一类型数据采集设备将所述电能数据值对应的格式转换成所述上位机适用的数据格式;以及,所述第一类型数据采集设备根据预设的通信协议将转换后的电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。The first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer; and, the first-type data acquisition device converts the converted electric energy data according to a preset communication protocol The value, the identifier of the electric meter device, and the identifier of the second-type data collection device are packaged and sent to the host computer.
可选地,所述第二类型数据采集设备在接收所述电表设备返回的电能数据信息之后,在根据所述电能数据信息生成报文之前,还用于:Optionally, after receiving the electric energy data information returned by the electric meter device, the second-type data collection device is further used for: before generating a message according to the electric energy data information:
采用偶校验的方式对所述电能数据值进行校验,如果所述电能数据值无误,则根据所述电能数据信息生成所述报文。The electric energy data value is checked by an even check, and if the electric energy data value is correct, the message is generated according to the electric energy data information.
采用上述方法,第二类型数据采集设备根据电能数据信息生成报文后,将该报文发送给第一类型数据采集设备,然后,第一类型数据采集设备可以解析该报文,并且可以根据解析后得到的电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据对报文进行校验。相比于现有技术,本申请无需人工校验,大大降低了人工成本,同时,由第一类型数据采集设备对报文进行校验,能够提高工作效率和准确率。Using the above method, after the second type of data acquisition device generates a message based on the power data information, the message is sent to the first type of data acquisition device, and then the first type of data acquisition device can parse the message, and can parse the message according to the analysis The total energy data, energy tip data, energy peak data, energy level data, and energy valley data obtained afterwards are used to verify the message. Compared with the prior art, this application does not require manual verification, which greatly reduces labor costs. At the same time, the first-type data collection device verifies messages, which can improve work efficiency and accuracy.
进一步地,本申请实施例中采用两种类型的数据采集设备相互配合,实现对电能数据的校验,在这一过程中,第二类型数据采集设备只负责接收电表设备发送的电能数据信息,第一类型数据采集设备只负责接收第二类型数据采集设备发送的报文,两者分工明确。并且,以类型数据采集设备负责校验报文,相比于由上位机校验报文的方式而言,能够大大降低上位机的工作压力。Further, in the embodiment of the present application, two types of data acquisition devices are used to cooperate with each other to realize the verification of electric energy data. In this process, the second type of data acquisition equipment is only responsible for receiving the electric energy data information sent by the electric meter device. The first type of data collection device is only responsible for receiving the message sent by the second type of data collection device, and the division of labor is clear. In addition, the type of data collection device is responsible for verifying messages, which can greatly reduce the working pressure of the host computer compared to the way the upper computer checks the messages.
附图说明Description of the drawings
图1为本申请实施例适用的一种系统的结构示意图;Figure 1 is a schematic structural diagram of a system to which an embodiment of this application is applicable;
图2为本申请实施例提供的一种电能数据的校验方法所对应的流程示意图;FIG. 2 is a schematic flow diagram corresponding to a method for verifying electric energy data provided by an embodiment of the application;
图3为本申请实施例提供的一种电能数据的校验装置的结构示意图;FIG. 3 is a schematic structural diagram of an electrical energy data verification device provided by an embodiment of the application;
图4为本申请实施例提供的另一种电能数据的校验装置的结构示意图。Figure 4 is a schematic structural diagram of another device for verifying electrical energy data provided by an embodiment of the application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
下面首先结合图1对本申请实施例适用的可能的系统架构进行介绍。The following first introduces a possible system architecture applicable to the embodiment of the present application in conjunction with FIG. 1.
请参考图1,其示例性示出了本申请实施例适用的一种系统的结构示意图。该系 统100可以包括至少一个第一类型数据采集设备,例如图1中示出的第一类型数据采集设备1011和第一类型数据采集设备1012;以及多个第二类型数据采集设备,例如图1中示出的第二类型数据采集设备1021、第二类型数据采集设备1022、第二类型数据采集设备1023和第二类型数据采集设备1024;以及多个电表设备,例如图1中示出的电表设备1031、电表设备1032、电表设备1033、电表设备1034、电表设备1035、电表设备1036、电表设备1037和电表设备1038;以及上位机104。Please refer to FIG. 1, which exemplarily shows a schematic structural diagram of a system to which an embodiment of the present application is applicable. The system 100 may include at least one first type data collection device, such as the first type data collection device 1011 and the first type data collection device 1012 shown in FIG. 1; and multiple second type data collection devices, such as FIG. 1 The second-type data acquisition device 1021, the second-type data acquisition device 1022, the second-type data acquisition device 1023, and the second-type data acquisition device 1024 shown in FIG. 1; and a plurality of electric meter devices, such as the electric meter shown in FIG. The device 1031, the electric meter device 1032, the electric meter device 1033, the electric meter device 1034, the electric meter device 1035, the electric meter device 1036, the electric meter device 1037, and the electric meter device 1038; and the upper computer 104.
其中,第一类型数据采集设备可以与上位机104建立连接,例如图1中示出的,第一类型数据采集设备1011可以与上位机104建立连接,第一类型数据采集设备1012可以与上位机104建立连接。Among them, the first type of data acquisition device can establish a connection with the upper computer 104, for example, as shown in FIG. 1, the first type of data acquisition device 1011 can establish a connection with the upper computer 104, and the first type of data acquisition device 1012 can establish a connection with the upper computer 104. 104 The connection is established.
第一类型数据采集设备还可以与第二类型数据采集设备建立连接,例如图1中示出的,第一类型数据采集设备1011可以分别与第二类型数据采集设备1021和第二类型数据采集设备1022建立连接,第一类型数据采集设备1012可以分别与第二类型数据采集设备1023和第二类型数据采集设备1024建立连接。The first type of data collection device can also establish a connection with the second type of data collection device. For example, as shown in FIG. 1, the first type of data collection device 1011 can be connected to the second type of data collection device 1021 and the second type of data collection device, respectively. A connection is established at 1022, and the first-type data acquisition device 1012 can establish a connection with the second-type data acquisition device 1023 and the second-type data acquisition device 1024 respectively.
进一步地,第一类型数据采集设备与第二类型数据采集设备之间可以通过Lora无线网络连接;或者,也可以通过其它方式连接,比如第一类型数据采集设备与第二类型数据采集设备之间可以通过4G、蓝牙、WIFI连接,具体不做限定。Further, the first type of data collection device and the second type of data collection device can be connected via a Lora wireless network; or, it can also be connected by other means, such as between the first type of data collection device and the second type of data collection device It can be connected via 4G, Bluetooth, WIFI, and it is not limited.
第二类型数据采集设备可以与多个电表设备建立连接,例如图1中示出的,第二类型数据采集设备1021可以与电表设备1031和电表设备1032建立连接,第二类型数据采集设备1022可以与电表设备1033和电表设备1034建立连接,第二类型数据采集设备1023可以与电表设备1035和电表设备1036建立连接,第二类型数据采集设备1024可以与电表设备1037和电表设备1038建立连接。The second type of data collection device can establish connections with multiple electric meter devices. For example, as shown in FIG. 1, the second type of data collection device 1021 can establish connections with the electricity meter device 1031 and the electricity meter device 1032, and the second type data collection device 1022 can A connection is established with the electric meter device 1033 and the electric meter device 1034, the second type data collection device 1023 can establish a connection with the electric meter device 1035 and the electric meter device 1036, and the second type data collection device 1024 can establish a connection with the electric meter device 1037 and the electric meter device 1038.
进一步地,第二类型数据采集设备与电表设备的连接方式可以有多种,例如,第二类型数据采集设备与电表设备之间可以通过RS485接口建立连接;或者,第二类型数据采集设备与电表设备之间可以通过RJ45网口接口建立连接,具体不做限定。这样的接口既可以保证第二类型数据采集设备与电表设备的数据通讯问题,也可以解决与第一类型数据采集设备之间进行实时通讯的问题。Further, there may be many ways to connect the second-type data acquisition device and the electric meter device. For example, the second-type data acquisition device and the electric meter device can be connected through the RS485 interface; or the second-type data acquisition device and the electric meter The devices can be connected through the RJ45 network port interface, which is not limited. Such an interface can not only ensure the data communication problem between the second type data acquisition device and the electric meter device, but also solve the real-time communication problem with the first type data acquisition device.
本申请实施例中,电表设备可以为多种类型的设备,比如可以为电表设备、水表设备、燃气表设备中的任意一项,具体不做限定。In the embodiments of the present application, the electric meter device may be multiple types of devices, for example, it may be any one of electric meter devices, water meter devices, and gas meter devices, which is not specifically limited.
基于图1所示的系统架构,图2示例性示出了本申请实施例提供的一种电能数据的校验方法所对应的流程示意图。如图2所示,具体包括如下步骤:Based on the system architecture shown in FIG. 1, FIG. 2 exemplarily shows a schematic flowchart corresponding to a method for verifying electric energy data provided by an embodiment of the present application. As shown in Figure 2, it specifically includes the following steps:
步骤201,第二类型数据采集设备向电表设备发送数据采集指令后,接收电表设备返回的电能数据信息。Step 201: After sending a data collection instruction to the electricity meter device, the second type data acquisition device receives the electric energy data information returned by the electricity meter device.
步骤202,第二类型数据采集设备根据电能数据信息生成报文,并向第一类型数据采集设备发送报文。Step 202: The second-type data acquisition device generates a message according to the electric energy data information, and sends the message to the first-type data acquisition device.
步骤203,第一类型数据采集设备接收报文后,解析报文得到电能数据值。Step 203: After receiving the message, the first-type data acquisition device parses the message to obtain an electric energy data value.
步骤204,第一类型数据采集设备如果确定电能尖数据、电能峰数据、电能平数据和电能谷数据之和等于电能总数据,则确定报文通过校验。Step 204: If the first-type data acquisition device determines that the sum of the electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data is equal to the total electric energy data, it determines that the message passes the verification.
采用上述方法,第二类型数据采集设备根据电能数据信息生成报文后,将该报文发送给第一类型数据采集设备,然后,第一类型数据采集设备可以解析该报文,并且 可以根据解析后得到的电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据对报文进行校验。相比于现有技术,本申请无需人工校验,大大降低了人工成本,同时,由第一类型数据采集设备对报文进行校验,能够提高工作效率和准确率。Using the above method, after the second type of data acquisition device generates a message based on the power data information, the message is sent to the first type of data acquisition device, and then the first type of data acquisition device can parse the message, and can parse the message according to the analysis The total energy data, energy tip data, energy peak data, energy level data, and energy valley data obtained afterwards are used to verify the message. Compared with the prior art, this application does not require manual verification, which greatly reduces labor costs. At the same time, the first-type data collection device verifies messages, which can improve work efficiency and accuracy.
进一步地,本申请实施例中采用两种类型的数据采集设备相互配合,实现对电能数据的校验,在这一过程中,第二类型数据采集设备只负责接收电表设备发送的电能数据信息,第一类型数据采集设备只负责接收第二类型数据采集设备发送的报文,两者分工明确,并且,以类型数据采集设备负责校验报文,相比于由上位机校验报文的方式而言,能够大大降低上位机的工作压力。Further, in the embodiment of the present application, two types of data acquisition devices are used to cooperate with each other to realize the verification of electric energy data. In this process, the second type of data acquisition equipment is only responsible for receiving the electric energy data information sent by the electric meter device. The first type of data acquisition equipment is only responsible for receiving the messages sent by the second type of data acquisition equipment. The division of labor is clear, and the type of data acquisition equipment is responsible for verifying the messages, compared to the way the upper computer verifies the messages. In other words, it can greatly reduce the working pressure of the host computer.
上文中提到,第一类型数据采集设备只负责接收第二类型数据采集设备发送的报文,第二类型数据采集设备只负责接收电表设备发送的电能数据信息,两者分工明确,这种方法是不容易想到的。一般容易想到的方法为,一种采集设备和多个电表设备与上位机相互传输,其中,采集设备负责发送采集指令、接收电表设备发送的电能数据、解析数据、生成报文、解析报文、向上位机打包并发送报文等,上位机负责接收报文、校验报文、存储报文等,但这种方式存在一定的弊端,例如,采集设备和上位机负责的内容都比较多,尤其上位机还负责校验报文,一方面采集设备和上位机压力比较大,另一方面可能会降低效率。As mentioned above, the first type of data acquisition equipment is only responsible for receiving the messages sent by the second type of data acquisition equipment, and the second type of data acquisition equipment is only responsible for receiving the electrical energy data information sent by the meter equipment. The division of labor between the two is clear. This method It is not easy to think of. Generally, a method that is easy to think of is a collection device and multiple meter devices that transmit to the host computer. The collection device is responsible for sending collection instructions, receiving electrical energy data sent by the meter device, analyzing data, generating messages, and analyzing messages. Packing and sending messages to the upper computer. The upper computer is responsible for receiving, verifying, and storing messages. However, this method has certain drawbacks. For example, the collection equipment and the upper computer are responsible for more content. In particular, the upper computer is also responsible for verifying messages. On the one hand, the pressure on the collection device and the upper computer is relatively high, and on the other hand, it may reduce efficiency.
具体来说,步骤201中,第二类型数据采集设备与所述多个电表设备建立连接,第二类型数据采集设备向电表设备发送数据采集指令的方式有多种。Specifically, in step 201, the second-type data collection device establishes a connection with the multiple electric meter devices, and there are multiple ways for the second-type data collection device to send data collection instructions to the electric meter device.
一种可能的实现方式为,第二类型数据采集设备可以先向第一电表设备发送数据采集指令,以及在第一预设时间段后,再向第二电表设备发送数据采集指令,直至与所述第二类型数据采集设备连接的多个电表设备均接收到所述数据采集指令。One possible implementation is that the second type of data collection device can first send a data collection instruction to the first electric meter device, and after the first preset period of time, send the data collection instruction to the second electric meter device until the The multiple electric meter devices connected to the second-type data collection device all receive the data collection instruction.
其中,第一电表设备为与第二类型数据采集设备连接的多个电表设备中的任意一个,第二电表设备为与第二类型数据采集设备连接的多个电表设备中除第一电表设备以外的任意一个。第一预设时间段可以是本领域技术人员根据经验和实际情况确定的。Wherein, the first electric meter device is any one of a plurality of electric meter devices connected to the second type of data acquisition device, and the second electric meter device is any one of the plurality of electric meter devices connected to the second type of data acquisition device except for the first electric meter device Any one of. The first preset time period may be determined by those skilled in the art based on experience and actual conditions.
以图1示出的系统架构为例,第二类型数据采集设备1021可以先向电表设备1031发送数据采集指令,以及在第一预设时间段后,再向电表设备1032发送数据采集指令;类似地,第二类型数据采集设备1022可以先向电表设备1033发送数据采集指令,以及在第一预设时间段后,再向电表设备1034发送数据采集指令,图1中示出的其余第二类型数据采集设备发送数据采集指令的过程类似,此处不再详细描述。Taking the system architecture shown in FIG. 1 as an example, the second type data collection device 1021 can first send a data collection instruction to the electric meter device 1031, and then send a data collection instruction to the electric meter device 1032 after the first preset time period; similar Ground, the second type of data collection device 1022 may first send a data collection instruction to the electricity meter device 1033, and after the first preset time period, then send a data collection instruction to the electricity meter device 1034, the rest of the second type shown in Figure 1 The process of sending data collection instructions from the data collection device is similar, and will not be described in detail here.
需要说明的是:It should be noted:
(1)在其它可能的示例中,与第二类型数据采集设备连接的电表设备的数量可能不止图1中示出的只有两个电表设备,那么,对于第三个电表设备,第二类型数据采集设备可以在向第二个电表设备发送数据采集指令后,等待第一预设时间段后,再向第三个电表设备发送数据采集指令。与此类似,对于第四个、第五个等电表设备,第二类型数据采集设备可以采用类似的方式发送数据采集指令。(1) In other possible examples, the number of electric meter devices connected to the second type of data acquisition device may be more than that shown in Figure 1 with only two electric meter devices. Then, for the third electric meter device, the second type of data The collection device may send the data collection instruction to the third power meter device after waiting for the first preset time period after sending the data collection instruction to the second power meter device. Similarly, for the fourth and fifth meter devices, the second-type data collection device can send data collection instructions in a similar manner.
(2)上述第二类型数据采集设备发送数据采集指令的过程,可以是一个连续的循环往复的过程。即,第二类型数据采集设备1021可以在向电表设备1032发送数据采集指令后,可以在第一预设时间段后,重新向电表设备1031发送数据采集指令。(2) The process of sending data collection instructions by the second type of data collection device may be a continuous cyclic process. That is, the second-type data collection device 1021 may send the data collection instruction to the electric meter device 1032 again after the first preset time period.
(3)上述第二类型数据采集设备发送数据采集指令的过程,也可以是一个周期性 地循环往复的过程。即,在当前周期内,第二类型数据采集设备可以先向第一电表设备发送数据采集指令,以及在第一预设时间段后,再向第二电表设备发送数据采集指令,直至与所述第二类型数据采集设备连接的多个电表设备均接收到所述数据采集指令;在下一周期内,第二类型数据采集设备重复上述过程。(3) The process of sending data collection instructions by the above-mentioned second type data collection device may also be a cyclically reciprocating process. That is, in the current cycle, the second type of data collection device may first send a data collection instruction to the first electricity meter device, and after the first preset time period, send a data collection instruction to the second electricity meter device until the Multiple electric meter devices connected to the second type data collection device all receive the data collection instruction; in the next cycle, the second type data collection device repeats the above process.
在其它可能的实现方式中,第二类型数据采集设备也可以同时向多个电表设备发送数据采集指令,具体不做限定。In other possible implementation manners, the second-type data collection device can also send data collection instructions to multiple electric meter devices at the same time, which is not specifically limited.
进一步地,数据采集指令可以包括正向有功电能数据采集指令和反向有功电能数据采集指令。Further, the data collection instruction may include a forward active energy data acquisition instruction and a reverse active energy data acquisition instruction.
有功是指用户实际用掉的电量,单位可以是千瓦时(俗称度)。相应地,无功是指用户设备的无功电量,单位是千乏时。Active power refers to the amount of electricity actually used by the user, and the unit can be kilowatt-hours (commonly known as degrees). Correspondingly, reactive power refers to the reactive power of user equipment, and the unit is kva-hour.
正向是指电网向用户传输的电能,反向是指用户向电网传输电能。The forward direction refers to the power transmission from the grid to the user, and the reverse direction refers to the power transmission from the user to the grid.
一个示例中,第二类型数据采集设备可以向电表设备发送正向有功电能数据采集指令;以及,在第二预设时间段后,向电表设备发送反向有功电能数据采集指令。其中,第二预设时间段可以是本领域技术人员根据经验和实际情况确定的;第二预设时间段的时间长度可以与第一预设时间段的时间长度一致,也可以不一致,具体不做限定。In one example, the second-type data collection device may send a forward active energy data collection instruction to the meter device; and, after the second preset time period, send a reverse active energy data collection instruction to the meter device. Among them, the second preset time period may be determined by those skilled in the art based on experience and actual conditions; the time length of the second preset time period may be the same as the time length of the first preset time period, or may be inconsistent. Make a limit.
进一步地,第二类型数据采集设备还可以向第一电表设备发送正向有功电能数据采集指令;以及,在第二预设时间段后,向第一电表设备发送反向有功电能数据采集指令;进而,在第一预设时间段之后,向第二电表设备发送正向有功电能数据采集指令;以及,在第二预设时间段后,向第二电表设备发送反向有功电能数据采集指令。Further, the second-type data collection device may also send a forward active energy data collection instruction to the first electric meter device; and, after the second preset time period, send a reverse active energy data collection instruction to the first electric meter device; Furthermore, after the first preset time period, send a forward active energy data collection instruction to the second electric meter device; and, after the second preset time period, send a reverse active energy data collection instruction to the second electric meter device.
另一个示例中,第二类型数据采集设备可以向电表设备发送反向有功电能数据采集指令;以及,在第二预设时间段后,向电表设备发送正向有功电能数据采集指令。In another example, the second-type data collection device may send a reverse active energy data collection instruction to the meter device; and, after the second preset time period, send a forward active energy data collection instruction to the meter device.
进一步地,第二类型数据采集设备还可以向第一电表设备发送反向有功电能数据采集指令;以及,在第二预设时间段后,向第一电表设备发送正向有功电能数据采集指令;进而,在第一预设时间段之后,向第二电表设备发送反向有功电能数据采集指令;以及,在第二预设时间段后,向第二电表设备发送正向有功电能数据采集指令。Further, the second-type data collection device may also send a reverse active energy data collection instruction to the first electric meter device; and, after the second preset time period, send a forward active energy data collection instruction to the first electric meter device; Furthermore, after the first preset time period, send a reverse active energy data collection instruction to the second electric meter device; and, after the second preset time period, send a forward active energy data collection instruction to the second electric meter device.
上述示例中,第一电表设备可以为与第二类型数据采集设备连接的多个电表设备中的任意一个;第二电表设备可以为与第二类型数据采集设备连接的多个电表设备中除第一电表设备以外的任意一个。In the above example, the first electric meter device may be any one of the plurality of electric meter devices connected to the second type of data acquisition device; the second electric meter device may be any one of the plurality of electric meter devices connected to the second type of data acquisition device. Any one other than an electric meter device.
本申请实施例中,电能数据信息可以是基于Modbus协议采集到的,也可以是基于其它类型的协议采集到的。电能数据信息可以包括多种类型的内容,比如,电能数据信息可以包括电能数据值,也可以包括电表设备的标识,还可以包括数据采集时间,具体不做限定。In the embodiments of the present application, the electrical energy data information may be collected based on the Modbus protocol, or may be collected based on other types of protocols. The electric energy data information may include multiple types of content. For example, the electric energy data information may include the electric energy data value, the identification of the electric meter device, and the data collection time, which is not specifically limited.
进一步地,电能数据值可以包括多种类型的电能数据,比如电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据等,具体不做限定。Further, the electric energy data value may include multiple types of electric energy data, such as total electric energy data, electric energy tip data, electric energy peak data, electric energy level data, and electric energy valley data, etc., which are not specifically limited.
举例说明,我们家用的电表上面一般标注有“总”、“尖”、“峰”、“平”、“谷”的字样,“总”即电能总数据,是电能表直接监测到的总的电能数据,尖、峰、平、谷是居民用电量按时段划分的具体分类,其中:For example, our household electric meters are generally marked with the words "total", "tip", "peak", "flat", and "valley". "Total" refers to the total energy data, which is the total directly monitored by the energy meter. Electric energy data, peaks, peaks, flats, and valleys are specific classifications of residential electricity consumption by time period, among which:
电表上的“尖”表示居民用电的尖峰时段,一般指19:00-22:00,相应的,电能尖 数据则一般表示尖峰时段内的居民用电量。例如,大家下班后到家的时间大概七点左右,每天睡觉时间大概22点左右,那么19:00-22:00之间一般是家人们在家用电时间,此时间段内的居民用电量可称为电能尖数据;The "tip" on the electricity meter indicates the peak period of residential electricity consumption, which generally refers to 19:00-22:00. Correspondingly, the electrical energy peak data generally indicates the residential electricity consumption during the peak period. For example, the time for everyone to get home after get off work is about 7 o'clock, and the daily bed time is about 22:00, so the time between 19:00 and 22:00 is usually the time when the family is at home. The electricity consumption of the residents during this time period can be It is called electric energy tip data;
电表上的“峰”表示居民用电的高峰时段,一般指上午8:00-11:00,下午15:00-19:00,相应的,电能峰数则一般表示高峰时段内的居民用电量。例如,上午8:00-11:00和下午15:00-19:00的这两个时间段内的居民用电量我们可以称为电能峰数据;The "peak" on the meter indicates the peak period of residential electricity consumption, which generally refers to 8:00-11:00 in the morning and 15:00-19:00 in the afternoon. Correspondingly, the peak number of electric energy generally indicates the residential power consumption during the peak period. the amount. For example, the electricity consumption of residents in the two time periods of 8:00-11:00 in the morning and 15:00-19:00 in the afternoon can be called power peak data;
电表上的“平”表示居民用电的平段时段,一般指7:00-8:00、11:00-15:00以及22:00-23:00,相应的,电能平数据则一般表示平段时段内的居民用电量;The “level” on the electricity meter indicates the flat period of residential electricity consumption, which generally refers to 7:00-8:00, 11:00-15:00, and 22:00-23:00. Correspondingly, the power level data generally indicates Residential electricity consumption during flat periods;
电表上的“谷”表示居民用电的低谷时段,一般指23:00-次日7:00,相应的,电能谷数据则一般表示低谷时段内的居民用电量。例如,每天23:00-次日7:00一般都是大家的睡觉时间,这时候达到用电量的低谷期,此时间段内的居民用电量可称为电能谷数据。如表1所示,为电能数据信息的一种示例。The "valley" on the meter indicates the low period of residential electricity consumption, which generally refers to 23:00-7:00 the next day. Correspondingly, the power valley data generally represents the residential power consumption during the low period. For example, every day from 23:00 to 7:00 the next day is generally everyone’s sleep time, and the low period of electricity consumption is reached at this time. The electricity consumption of residents during this time period can be called the energy valley data. As shown in Table 1, it is an example of electrical energy data information.
表1:电能数据信息的一种示例Table 1: An example of power data information
Figure PCTCN2020093845-appb-000001
Figure PCTCN2020093845-appb-000001
表1中,电能数据信息1包括的内容为,电表A对应电能总数据A0,电能尖数据A1,电能峰数据A2,电能平数据A3和电能谷数据A4;电能数据信息2包括的内容为,电表B对应电能总数据B0,电能尖数据B1,电能峰数据B2,电能平数据B3和电能谷数据B4;电能数据信息3包括的内容为,电表C对应电能总数据C0,电能尖数据C1,电能峰数据C2,电能平数据C3和电能谷数据C4。In Table 1, the power data information 1 includes the contents of the total power data A0 corresponding to the meter A, the power tip data A1, the power peak data A2, the power level data A3 and the power valley data A4; the power data information 2 includes the content: Electric energy meter B corresponds to total energy data B0, energy tip data B1, energy peak data B2, energy level data B3, and energy valley data B4; energy data information 3 includes the contents of electricity meter C corresponding to total energy data C0, energy tip data C1, Power peak data C2, power level data C3 and power valley data C4.
需要说明的是,表1示出的内容仅为一种示例,在其它可能的示例中,本领域技术人员可以根据经验和实际情况修改表1中的内容,具体不做限定。It should be noted that the content shown in Table 1 is only one example. In other possible examples, those skilled in the art can modify the content in Table 1 based on experience and actual conditions, and the specifics are not limited.
在执行步骤202之前,第二类型数据采集设备还可以采用偶校验的方式对电能数据值进行校验,如果电能数据值无误,则可以执行后续步骤202(即根据电能数据信息生成报文)。如此,能够提高数据的准确率,避免发送错误数据。Before performing step 202, the second-type data acquisition device can also use even parsing to verify the electrical energy data value. If the electrical energy data value is correct, it can perform subsequent step 202 (that is, generate a message based on the electrical energy data information) . In this way, the accuracy of the data can be improved and the sending of wrong data can be avoided.
步骤202中,根据电能数据信息生成报文的方式有多种,一个示例中,第二类型数据采集设备可以先解析电能数据信息得到电能数据值和电表设备的标识,然后可以根据电能数据值、电表设备的标识和第二类型数据采集设备的标识,生成报文。In step 202, there are many ways to generate a message based on the electrical energy data information. In one example, the second type of data acquisition device can first parse the electrical energy data information to obtain the electrical energy data value and the identity of the electrical meter device, and then can based on the electrical energy data value, The identification of the electricity meter device and the identification of the second-type data collection device generate a message.
在其它可能的示例中,第二类型数据采集设备也可以直接根据电能数据信息和第二类型数据采集设备的标识,生成报文。In other possible examples, the second type of data collection device may also directly generate a message based on the electrical energy data information and the identification of the second type of data collection device.
步骤203和步骤204中,第一类型数据采集设备接收所述报文后,可以解析该报文得到电能数据值,进而,如果确定电能数据值中的电能尖数据、电能峰数据、电能平数据和电能谷数据之和等于电能总数据,则确定报文通过校验。In step 203 and step 204, after receiving the message, the data acquisition device of the first type can parse the message to obtain the electric energy data value, and then, if it is determined that the electric energy peak data, electric energy peak data, and electric energy level data in the electric energy data value If the sum of the power valley data is equal to the total power data, it is determined that the message passes the verification.
值得说明的是,第一类型数据采集设备校验报文采用的方式为:“如果确定电能数据值中的电能尖数据、电能峰数据、电能平数据和电能谷数据之和等于电能总数据,则确定报文通过校验”,这里的“等于”并不是绝对的等于,而是允许存在一定的误差,如果满足如下公式(1):It is worth noting that the method used by the first type of data acquisition equipment to verify the message is: "If it is determined that the sum of the power peak data, power peak data, power level data, and power valley data in the power data value is equal to the total power data, It is determined that the message passes the check", where "equal" is not absolute equal, but a certain error is allowed, if the following formula (1) is satisfied:
电能总数据—(电能尖数据+电能峰数据+电能平数据+电能谷数据)<预设阈值;Total energy data—(energy tip data + energy peak data + energy level data + energy valley data) <preset threshold;
即可认为“电能尖数据、电能峰数据、电能平数据和电能谷数据之和等于电能总数据”,具体的,公式中各项数据来源为:That is to say, “the sum of the peak data, peak data, power level data, and power valley data is equal to the total power data”. Specifically, the sources of each data in the formula are:
电能总数据,为电表直接监测到的数值;The total energy data is the value directly monitored by the meter;
电能尖数据、电能峰数据、电能平数据和电能谷数据,同样为电表监测的数值;Electric energy peak data, electric energy peak data, electric energy level data and electric energy valley data are also the values monitored by the electric meter;
预设阈值,为各电力机构根据实际情况自行设定的数值,一般阈值不超过1(单位为度)。为了便于理解,此处举例说明,结合表1,以电表A的各项电能数据值为例,我们设定预设阈值为0.1。假如:A0为30,A1为9.87,A2为11.56,A3为5.21,A4为3.32,利用公式(1),则具体计算为:30-(9.87+11.56+5.21+3.32)=0.04,与预设阈值0.1相比,满足公式(1),则认为电表A通过了电能数据的校验。The preset threshold is a value set by each power agency according to the actual situation. Generally, the threshold does not exceed 1 (in degrees). For ease of understanding, an example is given here, combined with Table 1, taking the value of various electrical energy data of meter A as an example, we set the preset threshold to 0.1. If: A0 is 30, A1 is 9.87, A2 is 11.56, A3 is 5.21, A4 is 3.32, using formula (1), the specific calculation is: 30-(9.87+11.56+5.21+3.32)=0.04, and the default Compared with the threshold value of 0.1, and the formula (1) is satisfied, it is considered that the electric meter A has passed the verification of the electric energy data.
特别说明,文中出现的所有“电能尖数据、电能峰数据、电能平数据和电能谷数据之和等于电能总数据”都是指这种算法,都不是绝对意义上的“等于”,即按照公式(1)的算法,只要电能总数据与“电能尖数据、电能峰数据、电能平数据和电能谷数据之和”的差值在预设阈值范围内都满足““电能尖数据、电能峰数据、电能平数据和电能谷数据之和等于电能总数据”这个结论。In particular, all "the sum of the electric energy tip data, electric energy peak data, electric energy level data and electric energy valley data is equal to the total electric energy data" in the article refers to this algorithm, and it is not "equal" in the absolute sense, that is, according to the formula (1) The algorithm, as long as the difference between the total energy data and the sum of the "energy spike data, energy peak data, energy level data, and energy valley data" is within the preset threshold range, the "energy spike data, energy peak data" The conclusion that the sum of power level data and power valley data is equal to total power data.
举个例子,以表1中示出的内容为例,假设对报文进行解析后,得到的电能总数据为A0,电能尖数据为A1,电能峰数据为A2,电能平数据为A3,电能谷数据为A4,如果A0=A1+A2+A3+A4,则可以确定该报文通过校验。For example, take the content shown in Table 1 as an example, suppose that after parsing the message, the total energy data obtained is A0, the energy tip data is A1, the energy peak data is A2, the energy level data is A3, and the energy The valley data is A4. If A0=A1+A2+A3+A4, it can be determined that the message passes the check.
在判断报文是否通过校验过程中,本申请采用的校验方式为,判断电能总数据与“电能尖数据+电能峰数据+电能平数据+电能谷数据”数据之和是否相等,本申请的电能求和计算并不是可以应用到任意场景的简单求和计算,而是有特定意义能够产生特定效果的,为了便于理解,此处举例说明。In judging whether the message passes the verification process, the verification method adopted in this application is to determine whether the sum of the total energy data and the data of "power tip data + power peak data + power level data + power valley data" is equal, this application The electric energy summation calculation of is not a simple summation calculation that can be applied to any scenario, but has a specific meaning and can produce a specific effect. For ease of understanding, an example is given here.
例如,简单的求和相加是指,几项数据加一起的和是否与总和相等,但这种方式应用在电能校验里是容易想到的,并且是有缺陷的。例如,现有总和为8,一种传输方式为1+3+4,另一种传输方式为2+2+4,这两种方式的和都为8,而我们想要的可能为1+3+4这种组合,但这种简单的求和相加并不能验证数据本身的错误,也就是不能判断出2+2+4的这种错误,只要满足总和为8就可以,这就是它的弊端。也就是说,这种简单的求和校验并不能分辨出每个数据分项的错误,而无论什么数据,在传输过程中均不可避免的可能出现数据损耗,或出现异常数据,电能数据也是一样,此时就需要对数据本身进行滤除。For example, simple summation refers to whether the sum of several items of data is equal to the total sum, but this method is easy to think of when applied to electric energy calibration and is flawed. For example, the existing total is 8, one transmission method is 1+3+4, the other transmission method is 2+2+4, the sum of these two methods is both 8, and what we want may be 1+ The combination of 3+4, but this simple summation cannot verify the error of the data itself, that is, the error of 2+2+4 cannot be judged, as long as the sum is 8 is enough, this is it The drawbacks. In other words, this simple summation check cannot distinguish the error of each data sub-item, and no matter what data, data loss or abnormal data may inevitably occur during the transmission process, as is the electrical energy data. Similarly, at this time, the data itself needs to be filtered out.
本申请中的求和校验是贯穿电能数据传输的每个过程,目的在于,一方面校验电 能总数据与“电能尖数据+电能峰数据+电能平数据+电能谷数据”数据之和是否相等,另一方面,同时也是与任意领域简单的求和计算不同的方面,在于该校验基于电表数据特征可对每个分项数据进行数据滤除,即它能够校验求和计算中的每个分项是否正确,这样就提高了校验的准确率。由此可见,本申请中电能总数据与“电能尖数据+电能峰数据+电能平数据+电能谷数据”数据之和是否相等这种校验方法并不是一个可适用于任意场景的简单求和运算。执行步骤204之后,第一类型数据采集设备在对报文进行校验后,还可以解析该报文,从而得到电表设备的标识和第二类型数据采集设备的标识;进而,如果确定报文通过校验,则第一类型数据采集可以设备根据预设的通信协议将电能数据值、电表设备的标识和第二类型数据采集设备的标识进行打包后发送至上位机。更进一步地,第一类型数据采集设备还可以将电能数据值对应的格式转换成上位机适用的数据格式,然后可以根据预设的通信协议将转换后的电能数据值、电表设备的标识和第二类型数据采集设备的标识进行打包后发送至上位机。The sum check in this application runs through every process of electric energy data transmission. On the one hand, it checks whether the sum of the total electric energy data and the "energy tip data + energy peak data + energy level data + energy valley data" data Equality, on the other hand, is also different from simple summation calculations in any field. The verification is based on the characteristics of the meter data and can filter out each sub-data, that is, it can verify the summation calculation. Whether each sub-item is correct, which improves the accuracy of the verification. It can be seen that whether the sum of the total energy data in this application is equal to the "energy tip data + energy peak data + energy level data + energy valley data" data is not a simple summation that can be applied to any scenario Operation. After performing step 204, the first-type data collection device can parse the message after verifying the message to obtain the identity of the electric meter device and the identity of the second-type data collection device; further, if it is determined that the message passes After verification, the first-type data collection device can package the electric energy data value, the identification of the electric meter device, and the identification of the second-type data collection device according to the preset communication protocol, and then send it to the host computer. Furthermore, the first-type data acquisition device can also convert the format corresponding to the electrical energy data value into a data format suitable for the host computer, and then can convert the converted electrical energy data value, the identity of the meter device, and the first data format according to the preset communication protocol. The identification of the second type data acquisition device is packaged and sent to the host computer.
如此,由第一类型数据采集设备负责转换数据格式,这样的话,上位机可以接收到第一类型数据采集设备发送的报文后,可以直接对其中携带的数据进行分析,无需额外进行数据转换的过程,从而可以减轻上位机的工作负担,提高上位机的工作效率。In this way, the first type of data collection device is responsible for converting the data format. In this case, after the upper computer can receive the message sent by the first type of data collection device, it can directly analyze the data carried in it, without additional data conversion. Process, which can reduce the workload of the host computer and improve the work efficiency of the host computer.
本申请中,采用第一类型数据采集设备、第二类型数据采集设备与上位机相互传输的模式,其中,第二类型数据采集设备,用于向电表设备发送数据采集指令后,接收电表设备返回的电能数据信息,电能数据信息包括电能数据值,以及根据所述电能数据信息生成报文,并向第一类型数据采集设备发送报文;第一类型数据采集设备,用于在接收所述报文后,解析报文得到电能数据值,电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验。可见,相比于由上位机校验报文的方式而言,本申请采用的方式能够大大降低上位机的工作压力,且第一类型数据采集设备与第二类型数据采集设备也各司其职,进而与上位机共同提高工作效率。In this application, the first type of data acquisition equipment, the second type of data acquisition equipment and the host computer are used in the mutual transmission mode, where the second type of data acquisition equipment is used to send data collection instructions to the electricity meter device, and then the receiving electricity meter device returns The electric energy data information includes electric energy data values, and a message is generated according to the electric energy data information and sent to the first type of data acquisition device; the first type of data acquisition device is used to receive the message After the text, the message is parsed to obtain the electric energy data value. The electric energy data value includes the total electric energy data, the electric energy peak data, the electric energy peak data, the electric energy level data and the electric energy valley data; and, if the electric energy peak data and the electric energy peak data are determined If the sum of the power level data and the power valley data is equal to the total power data, it is determined that the message passes the verification. It can be seen that, compared with the method of verifying messages by the upper computer, the method adopted in this application can greatly reduce the working pressure of the upper computer, and the first type of data collection equipment and the second type of data collection equipment also perform their duties. , And then improve work efficiency together with the host computer.
同时,第一类型数据采集设备在对电能数据进行校验过程中,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据,则向上位机发送警告提示,上位机接收到警告提示提示后,则对电表数据进行重新采集。At the same time, the first type of data acquisition device is in the process of verifying the electric energy data, if it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy For the total data, a warning prompt is sent to the upper computer. After the upper computer receives the warning prompt, it will re-collect the meter data.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of this application, which can be used to implement the method embodiments of this application. For details not disclosed in the device embodiment of this application, please refer to the method embodiment of this application.
图3示例性示出了本申请实施例提供的一种电能数据的校验装置的结构示意图。如图3所示,该装置具有实现上述电能数据校验的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。所述装置包括:发送单元301、接收单元302和处理单元303。Fig. 3 exemplarily shows a schematic structural diagram of an electrical energy data verification device provided in an embodiment of the present application. As shown in FIG. 3, the device has the function of realizing the above-mentioned electric energy data verification, and the function can be realized by hardware, or by hardware executing corresponding software. The device includes: a sending unit 301, a receiving unit 302, and a processing unit 303.
发送单元301,用于向电表设备发送数据采集指令;The sending unit 301 is used to send data collection instructions to the electric meter device;
接收单元302,用于接收所述电表设备返回的电能数据信息,所述电能数据信息包括电能数据值;The receiving unit 302 is configured to receive electric energy data information returned by the electric meter device, where the electric energy data information includes an electric energy data value;
处理单元303,用于根据所述电能数据信息生成报文;The processing unit 303 is configured to generate a message according to the electrical energy data information;
所述发送单元301,还用于向所述第一类型数据采集设备发送所述报文;The sending unit 301 is further configured to send the message to the first-type data collection device;
可选地,所述电能数据信息还包括所述电表设备的标识;Optionally, the electrical energy data information further includes the identification of the electricity meter device;
所述处理单元303具体用于:The processing unit 303 is specifically configured to:
解析所述电能数据信息得到所述电能数据值和所述电表设备的标识;以及,根据所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识,生成报文。Analyze the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and generate a message according to the electric energy data value, the identification of the electric meter device, and the identification of the second-type data collection device .
可选地,在所述接收单元302接收所述电表设备返回的电能数据信息之后,在所述处理单元303根据所述电能数据信息生成报文之前,所述处理单元303还用于:Optionally, after the receiving unit 302 receives the electric energy data information returned by the electric meter device, before the processing unit 303 generates a message according to the electric energy data information, the processing unit 303 is further configured to:
采用偶校验的方式对所述电能数据值进行校验,如果所述电能数据值无误,则根据所述电能数据信息生成所述报文。The electric energy data value is checked by an even check, and if the electric energy data value is correct, the message is generated according to the electric energy data information.
图4示例性示出了本申请实施例提供的另一种电能数据的校验装置的结构示意图。如图4所示,该装置具有实现上述电能数据校验的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。所述装置包括:接收单元401、处理单元402和发送单元403。Fig. 4 exemplarily shows a schematic structural diagram of another device for verifying electric energy data provided by an embodiment of the present application. As shown in FIG. 4, the device has the function of realizing the above-mentioned electric energy data verification, and the function can be realized by hardware, or by hardware executing corresponding software. The device includes: a receiving unit 401, a processing unit 402, and a sending unit 403.
接收单元401,用于接收报文;The receiving unit 401 is configured to receive messages;
处理单元402,用于解析所述报文得到电能数据值,所述电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验。可选地,所述处理单元402具体用于:The processing unit 402 is configured to parse the message to obtain an electric energy data value, the electric energy data value including total electric energy data, electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data; and, if the electric energy peak is determined If the sum of the data, the power peak data, the power level data, and the power valley data is equal to the total power data, it is determined that the message passes the verification. Optionally, the processing unit 402 is specifically configured to:
解析所述报文,得到所述电表设备的标识和所述第二类型数据采集设备的标识;Parse the message to obtain the identification of the electric meter device and the identification of the second-type data collection device;
所述装置还包括:The device also includes:
发送单元403,用于如果确定所述报文通过校验,则所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至上位机。The sending unit 403 is configured to, if it is determined that the message passes the verification, the first type data collection device transmits the electric energy data value, the identifier of the electric meter device, and the second type according to a preset communication protocol. The identification of the data acquisition device is packaged and sent to the upper computer.
可选地,所述装置还包括:Optionally, the device further includes:
警告单元404,用于如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据,则发送警告提示。可选地,所述发送单元403具体用于:The warning unit 404 is configured to send a warning prompt if it is determined that the sum of the electric energy peak data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data. Optionally, the sending unit 403 is specifically configured to:
所述第一类型数据采集设备将所述电能数据值对应的格式转换成所述上位机适用的数据格式;The first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer;
所述第一类型数据采集设备根据预设的通信协议将转换后的电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。The first-type data acquisition device packages the converted electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data acquisition device according to a preset communication protocol, and then sends the package to the host computer.
可选地,所述警告单元404具体用于:Optionally, the warning unit 404 is specifically configured to:
当确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据时,发送警告提示至上位机。When it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data, a warning prompt is sent to the upper computer.
基于同样的发明构思,本申请实施例还提供一种电能数据的校验系统,所述系统包括至少一个第一类型数据采集设备和多个第二类型数据采集设备;所述第一类型数据采集设备与所述第二类型数据采集设备通过网络连接;Based on the same inventive concept, an embodiment of the present application also provides a system for verifying electrical energy data. The system includes at least one first-type data acquisition device and multiple second-type data acquisition devices; the first-type data acquisition The device is connected to the second-type data collection device through a network;
所述第二类型数据采集设备,用于向所述电表设备发送数据采集指令后,接收所 述电表设备返回的电能数据信息,所述电能数据信息包括电能数据值;以及,根据所述电能数据信息生成报文,并向所述第一类型数据采集设备发送所述报文;The second type of data collection device is configured to receive electrical energy data information returned by the electrical meter device after sending a data collection instruction to the electrical meter device, where the electrical energy data information includes electrical energy data values; and, according to the electrical energy data Information generation message, and sending the message to the first type data collection device;
所述第一类型数据采集设备,用于在接收所述报文后,解析所述报文得到电能数据值,所述电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验。The first-type data acquisition device is configured to parse the message to obtain an electric energy data value after receiving the message, and the electric energy data value includes total electric energy data, electric energy tip data, electric energy peak data, and electric energy level data And power valley data; and, if it is determined that the sum of the power tip data, the power peak data, the power level data, and the power valley data is equal to the total power data, it is determined that the message passes the check .
可选地,所述电能数据信息还包括所述电表设备的标识;Optionally, the electrical energy data information further includes the identification of the electricity meter device;
所述第二类型数据采集设备具体用于:The second type data collection device is specifically used for:
所述第二类型数据采集设备解析所述电能数据信息得到所述电能数据值和所述电表设备的标识;以及,根据所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识,生成报文。The second-type data collection device parses the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and, according to the electric energy data value, the identification of the electric meter device, and the second-type data Collect the identification of the device and generate a message.
可选地,所述系统还包括上位机,所述上位机与所述第一类型数据采集设备通过网络连接;Optionally, the system further includes an upper computer, and the upper computer is connected to the first type data collection device through a network;
所述第一类型数据采集设备,还用于:The first type data collection device is also used for:
解析所述报文,得到所述电表设备的标识和所述第二类型数据采集设备的标识;以及,如果确定所述报文通过校验,则所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。Analyze the message to obtain the identification of the electricity meter device and the identification of the second-type data collection device; and, if it is determined that the message passes the verification, the first-type data collection device is based on a preset The communication protocol packages the electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data collection device and sends them to the upper computer.
可选地,所述第一类型数据采集设备具体用于:Optionally, the first type of data collection device is specifically used for:
所述第一类型数据采集设备将所述电能数据值对应的格式转换成所述上位机适用的数据格式;以及,所述第一类型数据采集设备根据预设的通信协议将转换后的电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。The first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer; and, the first-type data acquisition device converts the converted electric energy data according to a preset communication protocol The value, the identifier of the electric meter device, and the identifier of the second-type data collection device are packaged and sent to the host computer.
可选地,所述第二类型数据采集设备在接收所述电表设备返回的电能数据信息之后,在根据所述电能数据信息生成报文之前,还用于:Optionally, after receiving the electric energy data information returned by the electric meter device, the second-type data collection device is further used for: before generating a message according to the electric energy data information:
采用偶校验的方式对所述电能数据值进行校验,如果所述电能数据值无误,则根据所述电能数据信息生成所述报文。The electric energy data value is checked by an even check, and if the electric energy data value is correct, the message is generated according to the electric energy data information.
在示例性实施例中,还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序或智能合约,所述计算机程序或智能合约被节点加载并执行以实现上述实施例提供的事务处理方法。可选地,上述计算机可读存储介质可以是只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(Random Access Memory,RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium is also provided, the storage medium stores a computer program or smart contract, and the computer program or smart contract is loaded and executed by a node to implement the above-mentioned embodiments. Transaction processing method. Optionally, the above-mentioned computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. .
本领域的技术人员可以清楚地了解到本申请实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present application can be embodied in the form of a software product in essence or a part that contributes to the prior art. The computer software product can be stored in a storage medium, such as ROM/RAM , Magnetic disks, optical disks, etc., including a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the application or some parts of the embodiment.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其 它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The description and the embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are pointed out by the following claims. It should be understood that the present disclosure is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims (15)

  1. 一种电能数据的校验方法,其特征在于,所述方法适用于电能数据的监控系统,所述系统包括至少一个第一类型数据采集设备、多个第二类型数据采集设备和多个电表设备;所述第一类型数据采集设备与所述第二类型数据采集设备建立连接,所述第二类型数据采集设备与所述多个电表设备建立连接;所述方法包括:A method for verifying electric energy data, characterized in that the method is suitable for a monitoring system for electric energy data, and the system includes at least one first-type data acquisition device, multiple second-type data acquisition devices, and multiple electric meter devices The first type of data collection device establishes a connection with the second type of data collection device, and the second type of data collection device establishes a connection with the plurality of electric meter devices; the method includes:
    所述第二类型数据采集设备向所述电表设备发送数据采集指令后,接收所述电表设备返回的电能数据信息,所述电能数据信息包括电能数据值;以及,根据所述电能数据信息生成报文,并向所述第一类型数据采集设备发送所述报文;After the second-type data collection device sends a data collection instruction to the electric meter device, it receives the electric energy data information returned by the electric meter device, where the electric energy data information includes electric energy data values; and, generates a report based on the electric energy data information. And send the message to the first-type data collection device;
    所述第一类型数据采集设备接收所述报文后,解析所述报文得到电能数据值,所述电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验。After receiving the message, the first-type data acquisition device parses the message to obtain an electric energy data value. The electric energy data value includes total electric energy data, electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data And, if it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is equal to the electric energy total data, it is determined that the message passes the verification.
  2. 根据权利要求1所述的方法,其特征在于,所述电能数据信息还包括所述电表设备的标识;The method according to claim 1, wherein the electric energy data information further includes an identification of the electric meter device;
    所述第二类型数据采集设备根据所述电能数据信息生成报文,包括:The second-type data collection device generates a message according to the electric energy data information, including:
    所述第二类型数据采集设备解析所述电能数据信息得到所述电能数据值和所述电表设备的标识;以及,根据所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识,生成报文。The second-type data collection device parses the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and, according to the electric energy data value, the identification of the electric meter device, and the second-type data Collect the identification of the device and generate a message.
  3. 根据权利要求2所述的方法,其特征在于,所述系统还包括上位机,所述上位机与所述第一类型数据采集设备通过网络连接;The method according to claim 2, wherein the system further comprises an upper computer, and the upper computer is connected to the first type data collection device through a network;
    所述方法还包括:The method also includes:
    所述第一类型数据采集设备解析所述报文,得到所述电表设备的标识和所述第二类型数据采集设备的标识;Parsing the message by the first-type data collection device to obtain the identification of the electricity meter device and the identification of the second-type data collection device;
    如果确定所述报文通过校验,则所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。If it is determined that the message passes the verification, the first-type data collection device performs processing of the electric energy data value, the identification of the electricity meter device, and the identification of the second-type data collection device according to the preset communication protocol. After packing, it is sent to the host computer.
  4. 根据权利要求3所述的方法,其特征在于,所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机,包括:The method according to claim 3, wherein the first-type data acquisition device combines the power data value, the identifier of the electric meter device, and the second-type data acquisition device according to a preset communication protocol. The identifier is packaged and sent to the host computer, including:
    所述第一类型数据采集设备将所述电能数据值对应的格式转换成所述上位机适用的数据格式;The first-type data acquisition device converts the format corresponding to the electric energy data value into a data format suitable for the host computer;
    所述第一类型数据采集设备根据预设的通信协议将转换后的电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至所述上位机。The first-type data acquisition device packages the converted electric energy data value, the identifier of the electric meter device, and the identifier of the second-type data acquisition device according to a preset communication protocol, and then sends the package to the host computer.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,在所述第二类型数据采集设备接收所述电表设备返回的电能数据信息之后,根据所述电能数据信息生成报文之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein after the second-type data acquisition device receives the electric energy data information returned by the electric meter device, before generating a message according to the electric energy data information , The method further includes:
    所述第二类型数据采集设备采用偶校验的方式对所述电能数据值进行校验,如果所述电能数据值无误,则根据所述电能数据信息生成所述报文。The second-type data acquisition device verifies the electric energy data value in an even check, and if the electric energy data value is correct, generates the message according to the electric energy data information.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据,则发送警告提示。The method according to claim 1, wherein the method further comprises: if it is determined that the sum of the power tip data, the power peak data, the power level data, and the power valley data is not equal to the For total energy data, a warning is sent.
  7. 根据权利要求1所述的方法,其特征在于,所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据适用的条件为:电能总数据—(电能尖数据+电能峰数据+电能平数据+电能谷数据)<预设阈值;The method according to claim 1, wherein the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is equal to the total electric energy data. The applicable condition is: electric energy Total data—(power peak data+power peak data+power level data+power valley data)<preset threshold;
    其中,预设阈值自行设定。Among them, the preset threshold is set by itself.
  8. 一种电能数据的校验装置,其特征在于,所述装置包括:A verification device for electric energy data, characterized in that the device comprises:
    发送单元,用于向电表设备发送数据采集指令;The sending unit is used to send data collection instructions to the electricity meter equipment;
    接收单元,用于接收所述电表设备返回的电能数据信息,所述电能数据信息包括电能数据值;A receiving unit, configured to receive electric energy data information returned by the electric meter device, where the electric energy data information includes an electric energy data value;
    处理单元,用于根据所述电能数据信息生成报文;A processing unit, configured to generate a message according to the electrical energy data information;
    所述发送单元,还用于向所述第一类型数据采集设备发送所述报文。The sending unit is further configured to send the message to the first type data collection device.
  9. 根据权利要求8所述的装置,其特征在于,所述电能数据信息还包括所述电表设备的标识;The apparatus according to claim 8, wherein the electrical energy data information further includes an identification of the electric meter device;
    所述处理单元具体用于:The processing unit is specifically used for:
    解析所述电能数据信息得到所述电能数据值和所述电表设备的标识;以及,根据所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识,生成报文。Analyze the electric energy data information to obtain the electric energy data value and the identification of the electric meter device; and generate a message according to the electric energy data value, the identification of the electric meter device, and the identification of the second-type data collection device .
  10. 一种电能数据的校验装置,其特征在于,所述装置包括:A verification device for electric energy data, characterized in that the device comprises:
    接收单元,用于接收报文;The receiving unit is used to receive messages;
    处理单元,用于解析所述报文得到电能数据值,所述电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验。The processing unit is configured to parse the message to obtain an electric energy data value, the electric energy data value including total electric energy data, electric energy peak data, electric energy peak data, electric energy level data, and electric energy valley data; and, if the electric energy peak data is determined If the sum of the power peak data, the power level data and the power valley data is equal to the total power data, it is determined that the message passes the verification.
  11. 根据权利要求10所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 10, wherein the processing unit is specifically configured to:
    解析所述报文,得到所述电表设备的标识和所述第二类型数据采集设备的标识;Parse the message to obtain the identification of the electric meter device and the identification of the second-type data collection device;
    所述装置还包括:The device also includes:
    发送单元,用于如果确定所述报文通过校验,则所述第一类型数据采集设备根据预设的通信协议将所述电能数据值、所述电表设备的标识和所述第二类型数据采集设备的标识进行打包后发送至上位机。The sending unit is configured to, if it is determined that the message passes the verification, the first-type data collection device transmits the electric energy data value, the identifier of the electric meter device, and the second-type data according to a preset communication protocol The identification of the collection device is packaged and sent to the upper computer.
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    警告单元,用于如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和 所述电能谷数据之和不等于所述电能总数据,则发送警告提示。The warning unit is configured to send a warning prompt if it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data.
  13. 根据权利要求12所述的装置,其特征在于,所述警告单元具体用于:The device according to claim 12, wherein the warning unit is specifically configured to:
    当确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据时,发送警告提示至上位机。When it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data, a warning prompt is sent to the upper computer.
  14. 一种电能数据的校验系统,其特征在于,所述系统包括至少一个第一类型数据采集设备和多个第二类型数据采集设备;所述第一类型数据采集设备与所述第二类型数据采集设备通过网络连接;An electric energy data verification system, characterized in that the system includes at least one first-type data acquisition device and a plurality of second-type data acquisition devices; the first-type data acquisition device and the second-type data acquisition device The collection equipment is connected through the network;
    所述第二类型数据采集设备,用于向所述电表设备发送数据采集指令后,接收所述电表设备返回的电能数据信息,所述电能数据信息包括电能数据值;以及,根据所述电能数据信息生成报文,并向所述第一类型数据采集设备发送所述报文;The second type of data collection device is configured to receive electrical energy data information returned by the electrical meter device after sending a data collection instruction to the electrical meter device, where the electrical energy data information includes electrical energy data values; and, according to the electrical energy data Information generation message, and sending the message to the first type data collection device;
    所述第一类型数据采集设备,用于在接收所述报文后,解析所述报文得到电能数据值,所述电能数据值包括电能总数据、电能尖数据、电能峰数据、电能平数据和电能谷数据;以及,如果确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和等于所述电能总数据,则确定所述报文通过校验。The first-type data acquisition device is configured to parse the message to obtain an electric energy data value after receiving the message, and the electric energy data value includes total electric energy data, electric energy tip data, electric energy peak data, and electric energy level data And power valley data; and, if it is determined that the sum of the power tip data, the power peak data, the power level data, and the power valley data is equal to the total power data, it is determined that the message passes the check .
  15. 根据权利要求14所述的系统,其特征在于,所述第一类型数据采集设备,还用于:The system according to claim 14, wherein the first type data collection device is further used for:
    当确定所述电能尖数据、所述电能峰数据、所述电能平数据和所述电能谷数据之和不等于所述电能总数据时,发送警告提示至上位机。When it is determined that the sum of the electric energy tip data, the electric energy peak data, the electric energy level data, and the electric energy valley data is not equal to the electric energy total data, a warning prompt is sent to the upper computer.
PCT/CN2020/093845 2019-07-05 2020-06-02 Method and device for checking electric energy data, and system WO2021004197A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910607640.1A CN110336876A (en) 2019-07-05 2019-07-05 A kind of method of calibration of energy data, apparatus and system
CN201910607640.1 2019-07-05

Publications (1)

Publication Number Publication Date
WO2021004197A1 true WO2021004197A1 (en) 2021-01-14

Family

ID=68143201

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093845 WO2021004197A1 (en) 2019-07-05 2020-06-02 Method and device for checking electric energy data, and system

Country Status (2)

Country Link
CN (1) CN110336876A (en)
WO (1) WO2021004197A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114252692A (en) * 2021-12-23 2022-03-29 国网辽宁省电力有限公司沈阳供电公司 Data complementary acquisition and storage method and system for electric energy acquisition system
CN115442401A (en) * 2022-08-31 2022-12-06 国网四川省电力公司泸州供电公司 Method and device for acquiring electric energy data in transformer substation and storage medium
CN116708514A (en) * 2023-08-02 2023-09-05 深圳龙电华鑫控股集团股份有限公司 Electric energy meter data acquisition method and system based on Internet of things

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336876A (en) * 2019-07-05 2019-10-15 江苏金恒信息科技股份有限公司 A kind of method of calibration of energy data, apparatus and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110282510A1 (en) * 2010-05-13 2011-11-17 Lsis Co., Ltd. Apparatus and method for energy management
CN102436249A (en) * 2012-01-19 2012-05-02 四川谊田集群科技有限公司 Intelligent electric quantity management and control system and method
CN106443562A (en) * 2016-09-30 2017-02-22 千江(上海)信息科技有限公司 Networked online inspection system for electric energy metering devices
CN108023614A (en) * 2017-12-15 2018-05-11 国网江苏省电力有限公司电力科学研究院 Low-voltage powerline carrier communication device and power information acquisition system and acquisition method
CN110336876A (en) * 2019-07-05 2019-10-15 江苏金恒信息科技股份有限公司 A kind of method of calibration of energy data, apparatus and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101126002B1 (en) * 2010-09-29 2012-03-20 한국전력공사 Automatic meter reading system for monitoring power consumption or power loss
CN103473908A (en) * 2013-09-05 2013-12-25 山西省电力公司大同供电分公司 Power utilization information acquiring system
CN204066380U (en) * 2014-07-22 2014-12-31 内蒙古华仁达科技有限公司 Based on the carrier power meter supervisory system of low pressure concentrator
CN105427571A (en) * 2015-12-31 2016-03-23 天津市赛鸣科技有限公司 Binary channel communication remote meter reading monitoring and analysis system
CN105699761A (en) * 2016-01-29 2016-06-22 哈尔滨工业大学 Electric energy information acquisition and monitor method on the basis of internet of things
CN106875662A (en) * 2017-04-07 2017-06-20 广东电网有限责任公司电力科学研究院 A kind of data acquisition for electric energy method and device
CN107505588A (en) * 2017-08-08 2017-12-22 国网重庆市电力公司电力科学研究院 A kind of electric energy meter combines error testing method and system
CN109188196B (en) * 2018-08-23 2021-08-31 宁波三星医疗电气股份有限公司 Electric quantity sudden change fault positioning method based on hamming codes
CN109727437A (en) * 2018-12-19 2019-05-07 国网山东省电力公司无棣县供电公司 A kind of long-distance wireless meter-reading system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110282510A1 (en) * 2010-05-13 2011-11-17 Lsis Co., Ltd. Apparatus and method for energy management
CN102436249A (en) * 2012-01-19 2012-05-02 四川谊田集群科技有限公司 Intelligent electric quantity management and control system and method
CN106443562A (en) * 2016-09-30 2017-02-22 千江(上海)信息科技有限公司 Networked online inspection system for electric energy metering devices
CN108023614A (en) * 2017-12-15 2018-05-11 国网江苏省电力有限公司电力科学研究院 Low-voltage powerline carrier communication device and power information acquisition system and acquisition method
CN110336876A (en) * 2019-07-05 2019-10-15 江苏金恒信息科技股份有限公司 A kind of method of calibration of energy data, apparatus and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114252692A (en) * 2021-12-23 2022-03-29 国网辽宁省电力有限公司沈阳供电公司 Data complementary acquisition and storage method and system for electric energy acquisition system
CN114252692B (en) * 2021-12-23 2024-02-20 国网辽宁省电力有限公司沈阳供电公司 Data complement acquisition and storage method and system for electric energy acquisition system
CN115442401A (en) * 2022-08-31 2022-12-06 国网四川省电力公司泸州供电公司 Method and device for acquiring electric energy data in transformer substation and storage medium
CN116708514A (en) * 2023-08-02 2023-09-05 深圳龙电华鑫控股集团股份有限公司 Electric energy meter data acquisition method and system based on Internet of things
CN116708514B (en) * 2023-08-02 2023-10-31 深圳龙电华鑫控股集团股份有限公司 Electric energy meter data acquisition method and system based on Internet of things

Also Published As

Publication number Publication date
CN110336876A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
WO2021004197A1 (en) Method and device for checking electric energy data, and system
US20200379947A1 (en) Systems and methods for collecting, analyzing, billing, and reporting data from intelligent electronic devices
US6990395B2 (en) Energy management device and architecture with multiple security levels
Jin et al. Optimal storage operation under demand charge
CN109791727B (en) Measurement data acquisition system, method and recording medium storing the same
Wang et al. Research on the remote maintenance system architecture for the rapid development of smart substation in China
CN106443166B (en) A kind of kilowatt meter reading-out system based on platform of internet of things
US20120206274A1 (en) System for sending utility meter alerts
CN102724325A (en) Energy consumption monitoring data acquisition designing method based on VxWorks
CN115547013A (en) Carbon emission monitoring and alarming system and method for active power distribution network
CN113506096B (en) Inter-system interface method based on industrial internet identification analysis system
CN112944221B (en) Risk prevention method and system based on natural gas full-cycle energy
Popa Smart meters reading through power line communications
US11204936B2 (en) Utility meter reading type code conversion
CN116228495A (en) Method and acquisition device for determining dynamic carbon emission factors of multifunctional complementary enterprises
CN110633191A (en) Method and system for monitoring service health degree of software system in real time
CN106405224A (en) Method and system for energy-saving diagnosis based on bulk electric energy data
Bahatskyi et al. Smart Home Subsystem for Calculating the Quality of Public Utilities
US8842563B1 (en) Communication and processing for power line communication systems
McLauchlan et al. Towards remote monitoring of power use: A case for smart meters
CN110246324A (en) A kind of monitoring system and monitoring method of instrumented data
EP2498062A2 (en) System and Method for Communicating Device Specific Data Over an Advanced Metering Infrastructure (AMI) Network
Jiang et al. Electricity anomalies diagnose method based on the electricity information acquisition system
Park et al. Study on Smart Meter Concentration Protocol for AMI
Wang et al. Research on the SCADA system constructing methodology based on SOA

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20836001

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20836001

Country of ref document: EP

Kind code of ref document: A1