CN-117544539-B - Method for detecting equipment change and related device
Abstract
The application provides a method and a related device for detecting equipment change, wherein the method comprises the steps of configuring a heartbeat period of target access equipment, determining whether a heartbeat signal of the target access equipment is received when a time corresponding to the heartbeat period of the target access equipment arrives, acquiring current parameter data of the target access equipment through an energy management device if the heartbeat signal is received, analyzing whether the target access equipment fails according to the current parameter data, acquiring a first current fluctuation value and a first voltage fluctuation value under the condition that the target access equipment fails, determining whether equipment to be accessed exists according to the first current fluctuation value and the first voltage fluctuation value, and generating equipment access response information if the equipment to be accessed exists. The application can quickly respond to the device change event and establish communication connection with the new access device in time.
Inventors
- WANG YUANPENG
- LI HAOWEN
Assignees
- 厦门海辰储能科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20231222
Claims (10)
- 1. A method of detecting a change in a device, characterized by a server applied to an energy management system comprising the server, an energy management apparatus and at least one accessed device, the server, the at least one accessed device and the energy management apparatus being communicatively connected respectively, the method comprising: configuring a heartbeat period of a target access device, wherein the target access device is an access device in the at least one accessed device; When the time corresponding to the heartbeat period of the target access equipment arrives, determining whether a heartbeat signal of the target access equipment is received; if the heartbeat signal is received, acquiring current parameter data of the target access equipment through the energy management device, wherein the current parameter data comprises a current first current value and a current first voltage value of the target access equipment; analyzing whether the target access equipment fails according to the current parameter data; Acquiring a first current fluctuation value according to the first current value and the standard current value under the condition that the target access equipment is not in fault; determining whether equipment to be accessed exists according to the first current fluctuation value and the first voltage fluctuation value; if so, generating equipment access response information, wherein the equipment access response information is used for guiding the equipment to be accessed to establish communication connection.
- 2. The method of claim 1, wherein the determining whether a device to be accessed is present based on the first current ripple value and the first voltage ripple value comprises: generating a first check code according to the first current fluctuation value and the first voltage fluctuation value; Acquiring a second check code from the energy management device, wherein the second check code is a check code generated when the energy management device establishes communication connection with a reference access device, and the reference access device is an access device except the target access device in the at least one accessed device; Determining the similarity of the first check code and the second check code to obtain a similarity result; and determining whether the equipment to be accessed exists according to the similarity result.
- 3. The method of claim 2, wherein the generating a first check code from the first current ripple value and the first voltage ripple value comprises: acquiring a first current characteristic parameter from the first current fluctuation value and acquiring a first voltage characteristic parameter from the first voltage fluctuation value; acquiring the working time length of the target access equipment; And generating a first check code according to the first current characteristic parameter, the first voltage characteristic parameter and the working time.
- 4. The method of claim 2, wherein the obtaining a second check code from the energy management device comprises: acquiring a second current fluctuation value and a second voltage fluctuation value of the reference access equipment when the energy management device and the reference access equipment are in communication connection; acquiring a second current characteristic parameter according to the second current fluctuation value, and acquiring a second voltage characteristic parameter according to the second voltage fluctuation value; acquiring at least one working time length of the reference access equipment under the normal operation condition; calculating the average value of the at least one working time length to obtain a standard working time length; And generating a second check code according to the second current characteristic parameter, the second voltage characteristic parameter and the standard working time length.
- 5. The method of claim 1, wherein the configuring the heartbeat cycle of the target access device comprises: Acquiring the equipment type and the identification information of the target access equipment, wherein the identification information comprises an identification code for indicating the target access equipment; configuring the life cycle of the target access equipment according to the equipment type and the identification information; and configuring a heartbeat cycle according to the equipment type of the target access equipment and the life cycle.
- 6. The method of claim 5, wherein the obtaining, by the energy management device, current parameter data of the target access device comprises: determining an identification code of the target access equipment according to the heartbeat period of the target access equipment; And acquiring current parameter data of the target access equipment from the energy management device according to the identification code.
- 7. The method of claim 1, wherein the current parameter data further includes a first charge-discharge response time, a first charge-discharge conversion time, and a first line communication function, and wherein analyzing whether the target access device is faulty based on the current parameter data includes: Acquiring a plurality of target parameter data of the target access equipment, which correspond to the current parameter data, wherein the plurality of target parameter data comprise a second current value, a second voltage value, a second charge-discharge response time, a second charge-discharge conversion time and a second line communication function of the target access equipment under the condition of normal communication; comparing the current parameter data with the target parameter data to obtain a plurality of comparison results corresponding to the target parameter data; Determining a difference item according to the plurality of comparison results, wherein the difference item is used for indicating target parameter data with a value difference greater than a threshold range in the comparison results; acquiring an interruption reason diagnosis record when the historical communication of the target access equipment is interrupted; and determining whether the target access equipment is faulty according to the difference item and the interruption reason diagnosis record.
- 8. An apparatus for detecting a change in a device, comprising: a configuration unit, configured to configure a heartbeat cycle of a target access device, where the target access device is an access device in the at least one accessed device; A first determining unit, configured to determine whether a heartbeat signal of the target access device is received when a time corresponding to a heartbeat period of the target access device arrives; The first acquisition unit is used for acquiring current parameter data of the target access equipment through the energy management device if the heartbeat signal is received, wherein the current parameter data comprises a current first current value and a current first voltage value of the target access equipment; the analysis unit is used for analyzing whether the target access equipment fails according to the current parameter data; the second acquisition unit is used for acquiring a first current fluctuation value according to the first current value and the standard current value under the condition that the target access equipment is not in fault; the second determining unit is used for determining whether equipment to be accessed exists or not according to the first current fluctuation value and the first voltage fluctuation value; And the generating unit is used for generating equipment access response information if the equipment access response information exists, and the equipment access response information is used for guiding the equipment to be accessed to establish communication connection.
- 9. A server for a server, which comprises a server and a server, characterized by comprising the following steps: one or more processors; a memory having one or more programs stored thereon; when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
- 10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
Description
Method for detecting equipment change and related device Technical Field The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting a change of a device. Background The energy management system is accessed with mass devices, so that the working states of all the accessed devices are difficult to know, the access of new devices is difficult to sense, and whether the devices are removed or fail is difficult to judge for the accessed devices, so that the change of the devices in the energy management system cannot be sensed. Disclosure of Invention The embodiment of the application provides a method and a related device for detecting equipment change, which are used for rapidly responding to the equipment change. In a first aspect, an embodiment of the present application provides a method for detecting a device change, which is applied to a server of an energy management system, where the energy management system includes the server, an energy management apparatus, and at least one accessed device, where the server, the at least one accessed device, and the energy management apparatus are respectively communicatively connected, and the method includes: configuring a heartbeat period of a target access device, wherein the target access device is an access device in the at least one accessed device; When the time corresponding to the heartbeat period of the target access equipment arrives, determining whether a heartbeat signal of the target access equipment is received; if the heartbeat signal is received, acquiring current parameter data of the target access equipment through the energy management device, wherein the current parameter data comprises a current first current value and a current first voltage value of the target access equipment; analyzing whether the target access equipment fails according to the current parameter data; Acquiring a first current fluctuation value according to the first current value and the standard current value under the condition that the target access equipment is not in fault; determining whether equipment to be accessed exists according to the first current fluctuation value and the first voltage fluctuation value; if so, generating equipment access response information, wherein the equipment access response information is used for guiding the equipment to be accessed to establish communication connection. In a second aspect, an embodiment of the present application provides an apparatus for detecting a change in a device, including: a configuration unit, configured to configure a heartbeat cycle of a target access device, where the target access device is an access device in the at least one accessed device; A first determining unit, configured to determine whether a heartbeat signal of the target access device is received when a time corresponding to a heartbeat period of the target access device arrives; The first acquisition unit is used for acquiring current parameter data of the target access equipment through the energy management device if the heartbeat signal is received, wherein the current parameter data comprises a current first current value and a current first voltage value of the target access equipment; the analysis unit is used for analyzing whether the target access equipment fails according to the current parameter data; the second acquisition unit is used for acquiring a first current fluctuation value according to the first current value and the standard current value under the condition that the target access equipment is not in fault; the second determining unit is used for determining whether equipment to be accessed exists or not according to the first current fluctuation value and the first voltage fluctuation value; And the generating unit is used for generating equipment access response information if the equipment access response information exists, and the equipment access response information is used for guiding the equipment to be accessed to establish communication connection. In a third aspect, an embodiment of the present application provides a server, including: one or more processors; a memory having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method according to the first aspect described above. In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method according to the first aspect. It can be seen that in the embodiment of the application, a heartbeat period of a target access device is firstly configured, the target access device is an access device in the at least one accessed device, whether a heartbeat signal of the target access device is received is determined when a time corresponding to the heartbe