CN110753057B - Communication method, device and equipment of fault indicator - Google Patents

Communication method, device and equipment of fault indicator Download PDF

Info

Publication number
CN110753057B
CN110753057B CN201911023305.3A CN201911023305A CN110753057B CN 110753057 B CN110753057 B CN 110753057B CN 201911023305 A CN201911023305 A CN 201911023305A CN 110753057 B CN110753057 B CN 110753057B
Authority
CN
China
Prior art keywords
communication
data
time
slave
master
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911023305.3A
Other languages
Chinese (zh)
Other versions
CN110753057A (en
Inventor
朱佩
张进伟
李燕
王凯
袁卫忠
曹宗岭
邓艳茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shr Automation Co ltd
Original Assignee
Shanghai Shr Automation Co ltd
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 Shanghai Shr Automation Co ltd filed Critical Shanghai Shr Automation Co ltd
Priority to CN201911023305.3A priority Critical patent/CN110753057B/en
Publication of CN110753057A publication Critical patent/CN110753057A/en
Application granted granted Critical
Publication of CN110753057B publication Critical patent/CN110753057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/04Protocols for data compression, e.g. ROHC

Abstract

The embodiment of the invention discloses a communication method, a device and equipment of a fault indicator, wherein the method comprises the following steps: the method comprises the steps that slave equipment sends a time synchronization request to master equipment, and receives a master equipment time stamp returned by the master equipment and a communication time slice corresponding to the slave equipment; the slave equipment updates a local time scale according to the master equipment time scale to generate an updated time scale; the slave device performs second-order difference compression on the acquired original data to generate compressed data, and determines communication data based on the compressed data; and the slave device transmits the communication data to the master device based on the update time scale and the corresponding communication time slice. According to the embodiment of the invention, the problems of data interference, high power consumption and low transmission efficiency of the fault indicator are solved by adopting time division multiplexing and performing second-order difference compression on the data for communication time, the accuracy and stability of communication are improved, and the data transmission efficiency is improved while lower electric quantity is consumed.

Description

Communication method, device and equipment of fault indicator
Technical Field
The embodiment of the invention relates to the technical field of power system communication, in particular to a communication method, a communication device and communication equipment of a fault indicator.
Background
With the development of power distribution system intellectualization, the rapid positioning of the faults of the power distribution network becomes a big problem. The fault indicator is applied to power transmission and distribution lines, power cables and switch cabinet incoming and outgoing lines and is used for indicating fault current circulation. By using the fault indicator, the fault section can be marked, and maintenance personnel can quickly find the fault section according to the alarm signal of the fault indicator and break the fault section, so that the power supply of the fault-free section is recovered in time, a large amount of searching and positioning time can be saved, and the power failure time and the power failure range can be reduced.
The fault indicator generally comprises a master device and a plurality of slave devices, wherein the slave devices are responsible for collecting primary side current and voltage and judging line faults, and the master device is responsible for collecting information of the slave devices and uploading the information to a remote monitoring master station. When a fault occurs, the slave equipment needs to record 4 cycles before the fault and 8 cycles after the fault to form recording data, and the transmission and synchronization of the recording data are completed in a short time, so that a line fault waveform at the fault moment can be completely recorded. In the prior art, a real-time communication mode is directly adopted between the slave device and the master device, that is, the slave device sends acquired data to the master device in real time.
The conventional communication method causes high power consumption of the master device and the slave devices, and the plurality of slave devices simultaneously transmit information to the master device, so that the problems of collision and interference of network communication are easily caused, and the information received by the master device is unstable. Meanwhile, when the slave device performs data compression before sending data, the existing compression algorithm is complex or the compression rate is not high, so that the power consumption of the fault indicator can be increased, and the network communication efficiency is not high.
Disclosure of Invention
The embodiment of the invention provides a communication method, a communication device and communication equipment of a fault indicator, and aims to improve the communication stability of the fault indicator and reduce power consumption.
In a first aspect, an embodiment of the present invention provides a method for communicating a fault indicator, where the method includes:
the method comprises the steps that slave equipment sends a time synchronization request to master equipment, and receives a master equipment time stamp returned by the master equipment and a communication time slice corresponding to the slave equipment;
the slave equipment updates a local time scale according to the master equipment time scale to generate an updated time scale;
the slave device performs second-order difference compression on the acquired original data to generate compressed data, and determines communication data based on the compressed data;
and the slave device transmits the communication data to the master device based on the update time scale and the corresponding communication time slice.
In a second aspect, an embodiment of the present invention further provides a communication method for a fault indicator, where the method includes:
the method comprises the steps that a master device receives a time synchronization request sent by at least one slave device, and sends a master device time stamp and communication time slices corresponding to the slave devices sending the time synchronization request to the slave devices respectively;
and the master device receives communication data sent by at least one slave device according to the corresponding communication time slice and an updating time scale generated based on the master device time scale, and uploads the communication data to the monitoring master station.
In a third aspect, an embodiment of the present invention further provides a communication apparatus for a fault indicator, configured in a slave device, where the apparatus includes:
the time synchronization request sending module is used for sending a time synchronization request to the master device and receiving a master device time mark returned by the master device and a communication time slice corresponding to the slave device;
the local time scale updating module is used for updating the local time scale according to the main equipment time scale to generate an updated time scale;
the compressed data generation module is used for performing second-order difference compression on the acquired original data to generate compressed data and determining communication data based on the compressed data;
and the communication data sending module is used for sending the communication data to the main equipment based on the updating time scale and the corresponding communication time slice.
In a fourth aspect, an embodiment of the present invention further provides a communication apparatus for a fault indicator, configured in a master device, where the apparatus includes:
the time synchronization request communication module is used for receiving a time synchronization request sent by at least one slave device and respectively sending a master device time stamp and a communication time slice corresponding to each slave device sending the time synchronization request to each slave device;
and the communication data uploading module is used for receiving the communication data sent by at least one slave device according to the corresponding communication time slice and the updating time scale generated based on the time scale of the master device, and uploading the communication data to the monitoring master station.
In a fifth aspect, an embodiment of the present invention further provides a fault indicator, where the device includes a master device and at least one slave device;
the at least one slave device sends a time tick request to the master device, and the master device receives the time tick request and sends a master device time tick and a communication time slice corresponding to each slave device sending the time tick request to each slave device respectively; the slave devices update the local time scale according to the master device time scale to generate an updated time scale; the slave devices perform second-order difference compression on the collected original data to generate compressed data, and determine communication data based on the compressed data; and based on the update time scale and the corresponding communication time slice, each slave device sends communication data to the master device, and the master device uploads the received communication data to the monitoring master station.
According to the embodiment of the invention, the problems of data interference, high power consumption and low transmission efficiency of the fault indicator are solved by adopting time division multiplexing and performing second-order difference compression on the data for communication time, the accuracy and stability of communication are improved, and the data transmission efficiency is improved while lower electric quantity is consumed.
Drawings
Fig. 1 is a flowchart of a communication method of a fault indicator according to an embodiment of the present invention.
Fig. 2 is a flowchart of a communication method of a slave device according to an embodiment of the present invention.
Fig. 3 is a flowchart of a communication method of a fault indicator according to a second embodiment of the present invention.
Fig. 4 is a flowchart of a communication method of a master device according to a second embodiment of the present invention.
Fig. 5 is a schematic diagram of a communication device of a fault indicator according to a third embodiment of the present invention.
Fig. 6 is a schematic diagram of a communication device of a fault indicator according to a fourth embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a fault indicator according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a communication method of a fault indicator according to an embodiment of the present invention, where the embodiment is applicable to a situation indicating a line fault in a power distribution system, and the method may be performed by a communication device of the fault indicator, where the communication device may be implemented in software and/or hardware, and the communication device may be configured in a slave device in the fault indicator. The method specifically comprises the following steps:
s110, the slave device sends a time synchronization request to the master device, and receives a master device time stamp returned by the master device and a communication time slice corresponding to the slave device.
The slave device is responsible for collecting primary side current and voltage and judging line faults, and the master device is responsible for receiving data information sent by the slave device and uploading the data information to the remote monitoring master station. The master device and the slave device usually adopt a Sub-1G radio frequency band for communication, and the master device communicates with the monitoring master station through an optical cable or a GPRS network.
During the initialization process of the fault indicator, the slave device configures a local time scale and listens to the distribution line, and the master device configures related parameter information, such as the number of connections of the slave device, the unique identifier of the slave device, the time scale of the master device and the like. The unique identifier of the slave device is represented by a 32-bit number and is used as a unique address for networking communication. In one embodiment, optionally, before the slave device sends the time tick request to the master device, the slave device receives the networking request sent by the master device, stores the networking information, and responds positively or negatively to the networking request. And when the slave equipment does not find the corresponding unique identifier in the stored networking information, the networking request is negatively responded. And after the slave equipment affirms the networking request, sending a time setting request according to the communication address of the master equipment in the networking information. Wherein the networking request is for establishing a communication connection between the slave device and the master device. Illustratively, the time tick request includes, but is not limited to, a communication address of the master device and a communication address of the slave device in order to establish time synchronization of the slave device and the master device.
In one embodiment, optionally, the slave device sends the time tick request to the master device under a preset condition. The preset conditions comprise at least one of the establishment of communication connection between the slave equipment and the master equipment, the disconnection of the slave equipment and a preset time interval. In one embodiment, after the slave device is disconnected, the networking request sent by the master device is received again, and after the communication connection between the slave device and the master device is established, the slave device sends a time-setting request to the master device. In one embodiment, the slave device sends the time synchronization request to the master device according to a preset time interval, wherein the preset time interval may be 1 hour, 24 hours or one week, and the preset time interval is not limited herein. The advantage of the arrangement is that the problem of collision and interference of network communication in the subsequent data transmission process is prevented from occurring due to the fact that the timing device of the slave device is not time-synchronized with the timing device of the master device, and the local time scale of the slave device is different from the time scale of the master device along with the time. In one embodiment, optionally, the slave device sends a pair time request to the master device when a network communication between the slave device and the master device conflicts. As long as the network communication between the slave device and the master device conflicts, the master device will clear the communication time slice corresponding to each current slave device, and the slave device will resend the time synchronization request to the master device.
The communication time slice refers to a time period in which the slave device communicates with the master device in one communication cycle, and the slave device can send communication data to the master device in the received corresponding communication time slice. In one embodiment, optionally, the communication time slices may be the same length or different lengths.
And S120, the slave device updates the local time scale according to the master device time scale to generate an updated time scale.
In an embodiment, optionally, the slave device updates the local time stamp according to the master time stamp and the local outage offset time, and generates an updated time stamp. The master device sends information such as master device time stamps and communication time slices of the slave devices to the slave devices, and local interrupt offset time is generated in the process that the slave devices receive the information. The local interrupt offset time comprises information transmission time and hardware message interrupt time error. Specifically, after receiving the master time stamp, the slave device calculates the information transmission time according to the data size of the information sent by the master device. And the slave equipment updates the local time mark according to the master equipment time mark and the local interrupt offset time to generate an updated time mark, thereby realizing the time synchronization of the slave equipment and the master equipment. The advantage of this arrangement is to ensure that the local timestamp of the slave device is not affected by information transmission and hardware message interruption, so that the local timestamp of the slave device is inconsistent with the timestamp of the master device.
And S130, the slave device performs second-order difference compression on the collected original data to generate compressed data, and determines communication data according to the compressed data.
In the operation process of the fault indicator, the slave equipment periodically performs self-checking to acquire current and voltage information on a line and sends working data to the master equipment. When a fault occurs, the slave equipment automatically records waves, namely current information of 4 cycles before the fault and 8 cycles after the fault is collected to generate wave recording data. In one embodiment, the raw data optionally includes working data and recording data collected from the device.
In one embodiment, optionally, the communication data includes a frame header, a second order difference reference, and a second order difference data, where the frame header includes at least one of a master address, a local address, a communication time slice tag, a communication data start point, and a communication data point number.
The communication time slice includes a communication time slice note, and for example, the communication time slice note refers to the corresponding number of communication time slices of the current slave device in one communication cycle. For example, the master device divides one communication cycle into 2 communication time slices, such as T1 and T2, and sends the 2 communication time slices to the two slave devices a and B, respectively, and then the communication time slice tag in the frame header of the communication data sent by the slave device B is T2. The advantage of this arrangement is that when the communication between the slave device and the master device has collision and interference problems, the master device can conveniently determine whether the communication time slices of the slave devices are overlapped or missed by looking at the communication time slice labels sent by the slave devices.
In an embodiment, optionally, the first 2 original data points in each frame of original data are selected as a second-order difference reference, and the original data points after the second-order difference reference and the data points in the second-order difference reference are subjected to second-order difference compression to generate compressed data. For second-order difference compression, for example, assuming that the original data includes original data points a, b, c, and d, and the resulting compressed data includes data points a, b, e, and f, the second-order difference of the data point e is calculated as e ═ a + c-2 × b, and the second-order difference of the data point f is calculated as f ═ b + d-2 × c. The second-order difference compression algorithm has the advantages of low power consumption, small calculation amount, data compression rate close to 50% and the like, and reduces the power consumption of data compression and improves the data transmission efficiency under the condition of occupying lower memory and CPU resources.
In one embodiment, optionally, the slave device determines second order difference data based on the data range of each data point in the compressed data and determines communication data based on the second order difference data. And marking each data point according to the difference of the data range of each data point in the compressed data to determine the second-order difference data. Illustratively, when the data range of a certain data point of the obtained compressed data is less than 7 bits, the data point is represented by 8 bits and the highest bit is set to 0, and when the data range of another data point of the obtained compressed data is greater than 7 bits, the data point is represented by 16 bits and the highest bit is set to 1. The advantage of this arrangement is that when decompressing the communication data, the data range of the data point can be determined according to the highest bit of each data point, and each data point is extracted and decompressed based on the data range corresponding to the data point.
And S140, the slave device sends the communication data to the master device based on the update time scale and the corresponding communication time slice.
In the operation process of the fault indicator, the slave equipment periodically performs self-checking to acquire current and voltage information on a line and sends working data to the master equipment. When a fault occurs, the slave equipment automatically records waves, namely current information of 4 cycles before the fault and 8 cycles after the fault is collected to generate wave recording data. In one embodiment, optionally, the communication data includes operational data and recording data collected from the device.
When a line fails, the data volume of the wave recording data acquired by the slave equipment is large and is limited by factors such as power consumption of the slave equipment, power supply and the like, and the slave equipment can only send part of the wave recording data to the master equipment in one communication period. In one embodiment, optionally, the slave device sends the communication data to the master device periodically, that is, sends the communication data to the master device multiple times in multiple communication cycles until the communication data is sent completely.
For example, fig. 2 is a flowchart of a communication method of a slave device according to an embodiment of the present invention. After the slave equipment is powered on, a local time scale is initialized, a networking request sent by the master equipment is received, a time synchronization request is started to the master equipment after networking information is stored, and a master equipment time scale and a corresponding communication time slice sent by the master equipment are received to indicate that time synchronization is successful. If the time synchronization is successful, the slave device updates the local time scale according to the time scale of the master device to generate an updated time scale, so as to realize the synchronization of the local time scale. When the slave equipment has original data to be sent, performing second-order difference compression on the original data to generate compressed data, further processing the compressed data to obtain communication data, sending the communication data in the distributed communication time slice by the slave equipment, detecting whether the sending of the communication data is finished, and if not, continuing sending the communication data in the next communication time slice until the sending of the communication data is finished.
It should be understood that, in the present embodiment, the execution order of each step is not limited, and the steps may also be executed according to other execution orders not listed, and each step may be executed at different time or may also be executed at the same time. The execution sequence and execution time of each step are not limited in this embodiment.
According to the technical scheme, time division multiplexing is adopted for communication time, and second-order difference compression is carried out on data, so that the problems of data interference, high power consumption and low transmission efficiency of the fault indicator are solved, the accuracy and stability of communication are improved, and the data transmission efficiency is improved while lower electric quantity is consumed.
Example two
Fig. 3 is a flowchart of a communication method of a fault indicator according to a second embodiment of the present invention, where the method is applicable to a situation indicating a line fault in a power distribution system, and the method may be executed by a communication apparatus of the fault indicator, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a master device in the fault indicator. The method specifically comprises the following steps:
s210, the master device receives the time tick request sent by at least one slave device, and sends the master device time stamp and the communication time slice corresponding to each slave device that sent the time tick request to each slave device.
The communication time slice refers to a time period during which the slave device communicates with the master device in one communication cycle. In one embodiment, optionally, the time lengths of the communication time slices may be the same or different. Specifically, the time length of the communication time slice is longer than the sending time of the maximum frame length message of the corresponding slave device. Illustratively, the length of the communication time slice may be greater than 2 times the transmission time of the maximum frame length message corresponding to the slave device.
In an embodiment, optionally, the master device determines, according to a preset communication rule, a communication time slice corresponding to each slave device. In an embodiment, optionally, the master device divides a communication cycle into equal parts, randomly sends the time periods obtained by the equal division to each slave device as communication time slices, and determines the communication time slices corresponding to each slave device. For example, the fault indicator includes 9 slave devices and 1 master device, and the communication cycle is T. If the time lengths of the communication time slices are the same, the number of the communication time slices is 10, the length of the communication time slices is T/10, and one communication time slice is used for the master device to send and receive data to the slave device.
In an embodiment, optionally, the master device divides the communication cycle into a plurality of time segments, sends the time segments with different time lengths as communication time slices to corresponding slave devices according to a preset allocation rule, and determines the communication time slices corresponding to the slave devices. For example, the preset allocation rule may be to allocate a communication time slice with a longer time length to the slave device corresponding to the line with the larger number of faults. The advantage of setting up like this is, when guaranteeing to break down, the slave unit can be fast send to master equipment after compressing the record ripples data that acquire to maintenance personal monitors this circuit.
The manner in which the master allocates the communication time slots to the slaves is not limited here.
In one embodiment, optionally, the master device stores the communication time slice corresponding to each slave device in the memory of the master device, and when a time pairing request is received, the corresponding communication time slice is sent to the slave device.
S220, the master device receives communication data sent by at least one slave device according to the corresponding communication time slice and an updating time scale generated based on the master device time scale, and uploads the communication data to the monitoring master station.
In an embodiment, optionally, the master device decompresses the received communication data to obtain original data, and uploads the original data to the monitoring master station. For example, assuming that the original data includes original data points a, b, c, and d, and the received communication data points are a, b, e, and f, the decompression of the original data point c is calculated as c ═ e +2 × b-a, and the decompression of the data point d is calculated as d ═ f +2 × c-b.
Fig. 4 is a flowchart of a communication method of a master device according to a second embodiment of the present invention. After the master device is powered on, the master device time mark is initialized, a networking request is sent to each slave device, and communication connection is established between the master device and each slave device. And if a time setting request sent by the slave equipment is received, sending the master equipment time mark and the communication time slice corresponding to each slave equipment, polling all the communication time slices, and judging whether the communication data is received. And if the communication data are received, decompressing the communication data, and sending the feedback information of the received communication data to the slave equipment in the communication time slice corresponding to the master equipment. If the slave device is found to be offline in the process, the communication time slice of the offline slave device is cleared, and the time tick request of the offline slave device is received again. All time slices are re-polled if no communication data is received.
According to the technical scheme of the embodiment, the problem of data interference caused by the fact that a plurality of slave devices send communication data to the master device at the same time is solved by adopting time division multiplexing on the communication time, the power consumption of the slave devices can be effectively reduced by sending the data in a time division mode, and the accuracy and the stability of communication are improved.
EXAMPLE III
Fig. 5 is a schematic diagram of a communication device of a fault indicator according to a third embodiment of the present invention. The present embodiment may be applied to the case of indicating line fault in the power distribution system, and the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a slave device in the fault indicator. The device includes: a time tick request sending module 310, a local time tick updating module 320, a compressed data generating module 330, and a communication data sending module 340.
The time synchronization request sending module 310 is configured to send a time synchronization request to the master device, and receive a master device time stamp and a communication time slice corresponding to the slave device, where the master device time stamp and the communication time slice are returned by the master device;
a local time scale updating module 320, configured to update the local time scale according to the master time scale, and generate an updated time scale;
the compressed data generation module 330 is configured to perform second-order difference compression on the acquired original data to generate compressed data, and determine communication data based on the compressed data;
and a communication data sending module 340, configured to send the communication data to the master device based on the update time stamp and the corresponding communication time slice.
According to the embodiment of the invention, the problems of data interference, high power consumption and low transmission efficiency of the fault indicator are solved by adopting time division multiplexing and performing second-order difference compression on the data for communication time, the accuracy and stability of communication are improved, and the data transmission efficiency is improved while lower electric quantity is consumed.
On the basis of the foregoing embodiment, optionally, the compressed data generating module 330 includes:
and the second order difference data determining unit is used for determining second order difference data according to the data range of each data point in the compressed data and determining communication data according to the second order difference data.
Optionally, the communication data includes a frame header, a second order difference reference, and second order difference data, where the frame header includes at least one of a master device address, a local address, a communication time slice tag, a communication data start point, and a communication data point number.
Optionally, the local timestamp updating module 320 includes:
and the local time scale updating unit is used for updating the local time scale according to the master equipment time scale and the local interrupt deviation time to generate an updated time scale.
Optionally, the time synchronization request sending module 310 includes:
the device comprises a time synchronization request sending unit, which is used for sending a time synchronization request to the master device under a preset condition, wherein the preset condition comprises at least one of the establishment of communication connection between the slave device and the master device, the disconnection of the slave device and a preset time interval.
The communication device of the fault indicator provided by the embodiment of the invention can be used for executing the communication method of the fault indicator provided by the embodiment of the invention, and has corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the communication device of the fault indicator, the included units and modules are merely divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 6 is a schematic diagram of a communication device of a fault indicator according to a fourth embodiment of the present invention. The present embodiment is applicable to a case of indicating a line fault in a power distribution system, and the apparatus may be implemented in software and/or hardware, and the apparatus may be configured in a master device in a fault indicator. The device includes: a time tick request communication module 410 and a communication data upload module 420.
The time synchronization request communication module 410 is configured to receive a time synchronization request sent by at least one slave device, and send a master device time stamp and a communication time slice corresponding to each slave device that sends the time synchronization request to each slave device respectively;
and a communication data uploading module 420, configured to receive communication data sent by at least one slave device according to the corresponding communication time slice and the update time stamp generated based on the master device time stamp, and upload the communication data to the monitoring master station.
According to the technical scheme of the embodiment, the problem of data interference caused by the fact that a plurality of slave devices send communication data to the master device at the same time is solved by adopting time division multiplexing on the communication time, the power consumption of the slave devices can be effectively reduced by sending the data in a time division mode, and the accuracy and the stability of communication are improved.
On the basis of the above technical solution, optionally, the apparatus further includes:
and the communication time slice determining module is used for determining the communication time slices corresponding to the slave devices according to a preset communication rule.
The communication device of the fault indicator provided by the embodiment of the invention can be used for executing the communication method of the fault indicator provided by the embodiment of the invention, and has corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the communication device of the fault indicator, the included units and modules are merely divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
EXAMPLE five
Fig. 7 is a schematic structural diagram of a fault indicator according to a fifth embodiment of the present invention, where the fifth embodiment of the present invention provides services for implementing the communication method of the fault indicator according to the fifth embodiment of the present invention, and a communication device capable of configuring the fault indicator according to a third embodiment of the present invention and a fourth embodiment of the present invention may be configured. FIG. 7 illustrates a block diagram of an exemplary fault indicator suitable for use in implementing embodiments of the present invention. The fault indicator shown in fig. 7 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
The fault indicator comprises a master device 51 and at least one slave device 52. At least one slave device 52 sends a time tick request to the master device 51, the master device 51 receives the time tick request, and sends the time tick of the master device 51 and the communication time slice corresponding to each slave device 52 sending the time tick request to each slave device 52; each slave device 52 updates the local timestamp based on the master device 51 timestamp to generate an updated timestamp. Each slave device 52 performs second order difference compression on the acquired raw data to generate compressed data, and determines communication data based on the compressed data. Each slave device 52 transmits communication data to the master device 51 based on the update time stamp and the corresponding communication time slice, and the master device 51 uploads the received communication data to the monitoring master.
The components of master device 51 and at least one slave device 52 in the fault indicator also include respective processors and memories (not shown in the figures). The memory of the main device 51 is used as a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the communication method of the fault indicator in the embodiment of the present invention (for example, the time tick request receiving module 410 and the communication data uploading module 420). The processor executes various functional applications and data processing of the main device by executing software programs, instructions and modules stored in the memory, that is, implements the above-described communication method of the fault indicator.
The memory of the slave device 52 serves as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the communication method of the fault indicator in the embodiment of the present invention (for example, the time tick request transmission module 310, the local time stamp update module 320, the compressed data generation module 330, and the communication data transmission module 340). The processor executes various functional applications and data processing of the main device by executing software programs, instructions and modules stored in the memory, that is, implements the above-described communication method of the fault indicator.
By adopting time division multiplexing and second-order difference compression on data for communication time through the fault indicator, the problems of data interference, high power consumption and low transmission efficiency of the fault indicator are solved, the accuracy and stability of communication are improved, and the data transmission efficiency is improved while lower electric quantity is consumed.
EXAMPLE six
The sixth embodiment of the invention also provides a storage medium containing the computer executable instructions. The computer executable instructions, when executed by a computer processor, perform a method of communication of a fault indicator, the method comprising:
the slave device sends a time synchronization request to the master device and receives a master device time mark returned by the master device and a communication time slice corresponding to the slave device;
the slave equipment updates the local time scale according to the master equipment time scale to generate an updated time scale;
the slave equipment performs second-order difference compression on the acquired original data to generate compressed data, and determines communication data based on the compressed data;
the slave device transmits the communication data to the master device based on the update time stamp and the corresponding communication time slice.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the above method operations, and may also perform related operations in the communication method of the fault indicator provided by any embodiments of the present invention.
EXAMPLE seven
The seventh embodiment of the present invention further provides a storage medium containing computer-executable instructions. The computer executable instructions, when executed by a computer processor, perform a method of communication of a fault indicator, the method comprising:
the method comprises the steps that a master device receives a time synchronization request sent by at least one slave device, and sends a master device time stamp and a communication time slice corresponding to each slave device sending the time synchronization request to each slave device;
and the master device receives the communication data transmitted by the at least one slave device according to the corresponding communication time slice and the updating time scale generated based on the master device time scale, and uploads the communication data to the monitoring master station.
For the specific implementation, reference is made to the above embodiments, and details are not repeated here to avoid repetition.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of communicating a fault indicator, comprising:
the method comprises the steps that slave equipment sends a time synchronization request to master equipment, and receives a master equipment time stamp returned by the master equipment and a communication time slice corresponding to the slave equipment;
the slave equipment updates a local time scale according to the master equipment time scale to generate an updated time scale;
the slave device performs second-order difference compression on the acquired original data to generate compressed data, and determines communication data based on the compressed data;
the slave device transmits the communication data to the master device based on the update time stamp and the corresponding communication time slice;
performing second-order difference compression, namely selecting the first 2 original data points in each frame of original data as a second-order difference reference, and performing second-order difference compression calculation on the original data points after the second-order difference reference and the data points in the second-order difference reference to generate compressed data; specifically, when the original data includes original data points a, b, c, and d, the resulting compressed data includes data points a, b, e, and f, the second order difference of the data point e is calculated as e ═ a + c-2 × b, and the second order difference of the data point f is calculated as f ═ b + d-2 × c.
2. The method of claim 1, wherein determining communication data based on the compressed data comprises:
and the slave equipment determines second-order difference data according to the data range of each data point in the compressed data and determines the communication data according to the second-order difference data.
3. The method of claim 2, wherein the communication data comprises a header, a second order difference reference, and a second order difference data, wherein the header comprises at least one of a master address, a local address, a communication time slice label, a communication data start point, and a number of communication data points.
4. The method of claim 1, wherein the slave device updates a local timestamp based on the master timestamp to generate an updated timestamp, comprising:
and the slave equipment updates the local time scale according to the master equipment time scale and the local interrupt deviation time to generate the updated time scale.
5. The method of claim 1, wherein the slave device sends a time tick request to the master device, comprising:
under a preset condition, the slave device sends a time setting request to the master device, wherein the preset condition comprises at least one of the establishment of communication connection between the slave device and the master device, the disconnection of the slave device and a preset time interval.
6. A method of communicating a fault indicator, comprising:
the method comprises the steps that a master device receives a time synchronization request sent by at least one slave device, and sends a master device time stamp and communication time slices corresponding to the slave devices sending the time synchronization request to the slave devices respectively;
the method comprises the steps that a master device receives communication data sent by at least one slave device according to a corresponding communication time slice and an updating time scale generated based on a time scale of the master device, decompresses the received communication data to obtain original data, and uploads the original data to a monitoring master station; specifically, when the original data includes original data points a, b, c, and d, and the received communication data points are a, b, e, and f, the decompression calculation of the original data point c is c ═ e +2 × b-a, and the decompression calculation of the data point d is d ═ f +2 × c-b.
7. The method of claim 6, wherein before sending the master timestamp and the communication time slice corresponding to each slave device that sent the timestamp request to each of the slave devices, respectively, further comprising:
and the master equipment determines the communication time slices corresponding to the slave equipment according to a preset communication rule.
8. A communication device of a fault indicator, configured in a slave device, comprising:
the time synchronization request sending module is used for sending a time synchronization request to the master device and receiving a master device time mark returned by the master device and a communication time slice corresponding to the slave device;
the local time scale updating module is used for updating the local time scale according to the main equipment time scale to generate an updated time scale;
the compressed data generation module is used for performing second-order difference compression on the acquired original data to generate compressed data and determining communication data based on the compressed data;
a communication data sending module, configured to send the communication data to the master device based on the update time stamp and the corresponding communication time slice;
performing second-order difference compression, namely selecting the first 2 original data points in each frame of original data as a second-order difference reference, and performing second-order difference compression calculation on the original data points after the second-order difference reference and the data points in the second-order difference reference to generate compressed data; specifically, when the original data includes original data points a, b, c, and d, the resulting compressed data includes data points a, b, e, and f, the second order difference of the data point e is calculated as e ═ a + c-2 × b, and the second order difference of the data point f is calculated as f ═ b + d-2 × c.
9. A communication apparatus of a fault indicator, configured in a master device, comprising:
the time synchronization request communication module is used for receiving a time synchronization request sent by at least one slave device and respectively sending a master device time stamp and a communication time slice corresponding to each slave device sending the time synchronization request to each slave device;
the communication data uploading module is used for receiving communication data sent by at least one slave device according to a corresponding communication time slice and an updating time scale generated based on the time scale of the master device, decompressing the received communication data to obtain original data, and uploading the original data to the monitoring master station; specifically, when the original data includes original data points a, b, c, and d, and the received communication data points are a, b, e, and f, the decompression calculation of the original data point c is c ═ e +2 × b-a, and the decompression calculation of the data point d is d ═ f +2 × c-b;
and the communication time slice determining module is used for determining the communication time slices corresponding to the slave devices according to a preset communication rule.
10. A fault indicator comprising a master device and at least one slave device;
the at least one slave device sends a time tick request to the master device, and the master device receives the time tick request and sends a master device time tick and a communication time slice corresponding to each slave device sending the time tick request to each slave device respectively; the slave devices update the local time scale according to the master device time scale to generate an updated time scale; the slave devices perform second-order difference compression on the collected original data to generate compressed data, and determine communication data based on the compressed data; based on the update time scale and the corresponding communication time slice, each slave device sends communication data to the master device, and the master device uploads the received communication data to the monitoring master station;
performing second-order difference compression, namely selecting the first 2 original data points in each frame of original data as a second-order difference reference, and performing second-order difference compression calculation on the original data points after the second-order difference reference and the data points in the second-order difference reference to generate compressed data; specifically, when the original data includes original data points a, b, c, and d, the resulting compressed data includes data points a, b, e, and f, the second order difference of the data point e is calculated as e ═ a + c-2 × b, and the second order difference of the data point f is calculated as f ═ b + d-2 × c.
CN201911023305.3A 2019-10-25 2019-10-25 Communication method, device and equipment of fault indicator Active CN110753057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911023305.3A CN110753057B (en) 2019-10-25 2019-10-25 Communication method, device and equipment of fault indicator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911023305.3A CN110753057B (en) 2019-10-25 2019-10-25 Communication method, device and equipment of fault indicator

Publications (2)

Publication Number Publication Date
CN110753057A CN110753057A (en) 2020-02-04
CN110753057B true CN110753057B (en) 2021-11-23

Family

ID=69279980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911023305.3A Active CN110753057B (en) 2019-10-25 2019-10-25 Communication method, device and equipment of fault indicator

Country Status (1)

Country Link
CN (1) CN110753057B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941116A (en) * 2014-03-12 2014-07-23 珠海创能科世摩电气科技有限公司 Data compression method for fault recording indicator
CN106556754A (en) * 2016-10-12 2017-04-05 国网上海市电力公司 A kind of online acquisition method of distribution line failure waveform
CN108051708A (en) * 2017-12-31 2018-05-18 杭州柯林电气股份有限公司 A kind of transient state recording type fault detector

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9733869B1 (en) * 2015-09-25 2017-08-15 Amazon Technologies, Inc. Provisioning a slave for data storage using metadata with updated references

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941116A (en) * 2014-03-12 2014-07-23 珠海创能科世摩电气科技有限公司 Data compression method for fault recording indicator
CN106556754A (en) * 2016-10-12 2017-04-05 国网上海市电力公司 A kind of online acquisition method of distribution line failure waveform
CN108051708A (en) * 2017-12-31 2018-05-18 杭州柯林电气股份有限公司 A kind of transient state recording type fault detector

Also Published As

Publication number Publication date
CN110753057A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN106612308B (en) Data transmission method and device
CN112954045B (en) Data transmission method, device, medium and electronic equipment in node
CN108459944A (en) System operation monitoring method, device and server
CN107832169B (en) Memory data migration method and device, terminal equipment and storage medium
CN103441861A (en) Method and device for generating data records
US11419175B2 (en) Reconstructing a personal area network or system after a failure in the network or system
CN103457748A (en) Data transmission method, system and device
CN114675983A (en) Business data processing method and device, storage medium and electronic equipment
US9781010B2 (en) Managing remote devices
US11012290B2 (en) Systems and methods for node outage determination and reporting
CN106953809B (en) 485 time-sharing communication-based equipment resource acquisition method
CN110753057B (en) Communication method, device and equipment of fault indicator
CN107483084B (en) Broadband carrier networking method, site and system
CN111078463A (en) Data backup method, device and system
CN111679925A (en) Database fault processing method and device, computing equipment and storage medium
CN110224872B (en) Communication method, device and storage medium
CN106534259B (en) Web data acquisition method, Web server and web data acquisition system based on Docker
JP2009253403A (en) Log level collecting device and log level collection method
CN107612764B (en) Transmission network management data acquisition device and method
CN104010010A (en) Internet resource acquisition method, device and cache system
CN102026253B (en) Alarm reporting and processing method, system and equipment
CN107835097B (en) Alarm information synchronization method and device, and network element
CN110166322A (en) A kind of detection method and relevant apparatus of metering automation terminal
CN112820092B (en) Method for collecting electricity consumption data, terminal equipment and storage medium
CN112312376B (en) Method and system for remotely and interactively managing multifunctional electric meter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant