CN112702202B - Ammeter communication link fault recovery method and device and computer equipment - Google Patents

Ammeter communication link fault recovery method and device and computer equipment Download PDF

Info

Publication number
CN112702202B
CN112702202B CN202011541575.6A CN202011541575A CN112702202B CN 112702202 B CN112702202 B CN 112702202B CN 202011541575 A CN202011541575 A CN 202011541575A CN 112702202 B CN112702202 B CN 112702202B
Authority
CN
China
Prior art keywords
data
adjacent node
node
sent
communication
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
CN202011541575.6A
Other languages
Chinese (zh)
Other versions
CN112702202A (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.)
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute 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 Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202011541575.6A priority Critical patent/CN112702202B/en
Publication of CN112702202A publication Critical patent/CN112702202A/en
Application granted granted Critical
Publication of CN112702202B publication Critical patent/CN112702202B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides an ammeter communication link fault recovery method, an ammeter communication link fault recovery device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining data to be sent, increasing the count value of an unidentified frame counter, sending the data to be sent to a target adjacent node, if response data are not received from the target adjacent node within preset response time, obtaining the current count value of the unidentified frame counter, if the current count value reaches a preset threshold value, judging that a communication fault exists with the target adjacent node, initiating a connection request to the target adjacent node to reestablish the communication connection, detecting the communication fault state of the adjacent node through a slave node, initiating connection reestablishment aiming at the adjacent node when the fault occurs, and avoiding centralized fault recovery through a power meter reader, so that the efficiency of fault recovery of a communication link of the ammeter is improved.

Description

Ammeter communication link fault recovery method and device and computer equipment
Technical Field
The present application relates to the field of power grid communication counting, and in particular, to a method and an apparatus for recovering a fault of a communication link of an electricity meter, a computer device, and a storage medium.
Background
In an electric power network, a power meter reading concentrator is usually used as a master node, and a communication network is established with electric meters equipped with communication modules as slave nodes to acquire data from each electric meter.
In the prior art, link failure is generally judged through a power meter reading concentrator, recovery is initiated aiming at the failure, the communication link in a power network is complex in hierarchy, the time required by the communication link failure recovery is long, and the failure recovery efficiency is low.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for recovering a communication link failure of an electricity meter, aiming at the technical problem that the recovery efficiency of the communication link failure in the prior art is low.
An electric meter communication link fault recovery method is applied to an electric meter communication module, and comprises the following steps:
acquiring data to be sent, increasing the count value of an unacknowledged frame counter, and sending the data to be sent to a target adjacent node;
if response data are not received from the target adjacent node within preset response time, acquiring the current count value of the uncertified frame counter;
if the current count value reaches a preset count threshold value, judging that a communication fault exists between the current count value and the target adjacent node;
and initiating a connection request to the target adjacent node to reestablish the communication connection.
In one embodiment, before acquiring data to be transmitted, the method includes:
and transmitting a link check frame to each adjacent node according to a preset link check period so as to check the validity of the communication link with each adjacent node.
In one embodiment, the link check period is a waiting time for the communication module to acquire the data to be sent; transmitting a link check frame to each neighboring node, comprising:
monitoring and acquiring the waiting time of the data to be sent;
and if the waiting time exceeds a preset waiting time threshold, sending the link check frame to each adjacent node.
In one embodiment, after the obtaining of the data to be sent, the method further includes:
and storing the data to be sent in a cache submodule.
In one embodiment, the method further comprises:
if the current count value of the unacknowledged frame counter is smaller than a preset threshold value, acquiring the data to be sent from the cache submodule;
and sending the data to be sent to the target adjacent node.
In one embodiment, the method further comprises:
and if response data are received from the target adjacent node within preset response time, clearing the count value of the unacknowledged frame counter and clearing the data to be sent in the cache submodule.
In one embodiment, the method further comprises: and the networking mode between the master node and the slave node of the communication link is a Mesh networking mode.
An ammeter communication link failure recovery device is applied to an ammeter communication module, and the device comprises:
the data acquisition module is used for acquiring data to be transmitted, increasing the count value of the unacknowledged frame counter and transmitting the data to be transmitted to a target adjacent node;
a frame count value confirmation module, configured to obtain a current count value of the uncertified frame counter if no response data is received from the target neighboring node within a preset response time;
the communication fault judgment module is used for judging that a communication fault exists between the current counting value and the target adjacent node if the current counting value reaches a preset counting threshold value;
and the reconnection module is used for initiating a connection request to the target adjacent node so as to reestablish the communication connection.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring data to be sent, increasing the count value of an unacknowledged frame counter, and sending the data to be sent to a target adjacent node; if response data are not received from the target adjacent node within preset response time, acquiring the current count value of the uncertified frame counter; if the current count value reaches a preset count threshold value, judging that a communication fault exists between the current count value and the target adjacent node; and initiating a connection request to the target adjacent node to reestablish the communication connection.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring data to be sent, increasing the count value of an unidentified frame counter, and sending the data to be sent to a target adjacent node; if response data are not received from the target adjacent node within preset response time, acquiring the current count value of the uncertified frame counter; if the current count value reaches a preset count threshold value, judging that a communication fault exists between the current count value and the target adjacent node; and initiating a connection request to the target adjacent node to reestablish the communication connection.
According to the method, the device, the computer equipment and the storage medium for recovering the fault of the communication link of the electric meter, the data to be transmitted are obtained, the count value of the unidentified frame counter is increased, the data to be transmitted are transmitted to the target adjacent node, if the response data are not received from the target adjacent node within the preset response time, the current count value of the unidentified frame counter is obtained, if the current count value reaches the preset threshold value, the communication fault with the target adjacent node is judged, the connection request is initiated to the target adjacent node to reestablish the communication connection, the slave node detects the communication fault state of the adjacent node and initiates the reestablishment of the connection aiming at the adjacent node, the centralized operation is not needed through the electric meter reading concentrator, and the efficiency of recovering the fault of the communication link of the electric meter is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for recovering a fault of a communication link of an electricity meter in an embodiment;
FIG. 2 is a schematic diagram of an embodiment of a network architecture for a meter communication link;
FIG. 3 is a schematic flow chart illustrating a method for recovering from a fault in a communication link of an electricity meter according to an embodiment;
FIG. 4 is a schematic flow chart of a method for recovering from a fault of a communication link of an electricity meter in another embodiment;
FIG. 5 is a schematic flow chart of a method for recovering from a fault of a communication link of an electricity meter in another embodiment;
FIG. 6 is a block diagram of an embodiment of a device for recovering from a failure of a communication link of an electricity meter;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for recovering the fault of the communication link of the electric meter can be applied to the application environment shown in fig. 1. The electric meter reading concentrator 102 is communicated with the electric meter communication modules 104 through a wireless network, the electric meter reading concentrator 102 forms a main node of the electric meter communication link, the electric meter communication modules 104 form slave nodes of the electric meter communication link, adjacent slave nodes are formed by partial electric meters in adjacent relation according to a networking structure, and the adjacent slave nodes are communicated through the wireless network. The ammeter communication module can acquire data to be sent from the adjacent node and send the data to the target adjacent node, and if communication failure occurs, a connection request is sent to the target adjacent node to recover the communication failure. The power meter reading concentrator 102 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, the networking mode between the master node and the slave node of the electric meter communication link may be a Mesh networking mode, as shown in fig. 2, where the master node may be a power meter reading concentrator, the slave node may be each electric meter, and each slave node may include a plurality of downstream adjacent slave nodes. When networking is performed, a corresponding network hierarchy can be configured for each slave node according to the hierarchy of the slave node in the topological structure. The Mesh network is a wireless Mesh network, is a multi-hop (multi-hop) network, is a dynamic and continuously expandable network architecture, and any two devices can be wirelessly interconnected.
In one embodiment, as shown in fig. 3, a method for recovering from a fault of a meter communication link is provided, which is described by taking the method as an example applied to the meter communication module 104 in fig. 1, and includes the following steps:
step S301, acquiring data to be transmitted, increasing the count value of the unidentified frame counter, and transmitting the data to be transmitted to a target adjacent node.
The unacknowledged frame counter may be a counter configured in the electric meter communication module 104, and may be represented as an unconfirmed counter, and may be configured to record the number of times that the response data of the target neighboring node is not received after the data is sent from the communication module to the neighboring node, that is, the number of times that the transmission is not acknowledged successfully, where the counter may be accumulated and is used to determine the stability of a communication link between the electric meter communication module 104 and the target neighboring node. The electric meter communication module 104 may have a plurality of neighboring nodes, and each neighboring node may be configured with an unacknowledged frame counter to count respectively. The data flow of the data to be sent may be meter reading instruction data sent from the upstream neighboring node of the meter communication module 104 to the downstream target node, or may also be meter data sent from the downstream neighboring node to the upstream neighboring node. The target neighbor node may be a neighbor node corresponding to data to be transmitted.
In a specific implementation, the electric meter communication module 104 may obtain data to be sent from the neighboring node, determine a target neighboring node according to the data to be sent, and send the data to be sent to the target neighboring node after increasing the count value of the unidentified frame counter of the target neighboring node.
Step S302, if no response data is received from the target neighboring node within a preset response time, obtaining a current count value of the unacknowledged frame counter.
The response time may be a preset maximum time for receiving the response data from the target neighboring node. The response data may be a response frame returned by the target neighboring node after receiving the data to be sent.
In a specific implementation, the electric meter communication module 104 may start timing after sending data to be sent to a target neighboring node, and receive response data from the target neighboring node if a preset response time elapses. The current count value of the unidentified frame counter corresponding to the target adjacent node needs to be obtained to confirm the communication connection state between the electric meter communication module 104 and the target adjacent node.
Step S303, if the current count value reaches the preset count threshold, it is determined that a communication failure exists with the target neighboring node.
The preset counting threshold may be a maximum value of the unacknowledged frame between the preset first configured electric meter communication module 104 and the target neighboring node, and the larger the threshold is, the more the number of times of the unacknowledged frame that is acceptable for the communication link between the electric meter communication module 104 and the target neighboring node is.
In a specific implementation, if the current count value of the unacknowledged frame counter is equal to the preset count threshold, it may be determined that the target neighboring node has a situation that the transmission is not acknowledged for multiple times, and when the current count value reaches the upper limit acceptable for the communication link, it may be determined that a communication fault occurs between the electric meter communication module 104 and the target neighboring node.
Step S304, a connection request is sent to the target adjacent node to reestablish the communication connection.
The meter communication module 104 may initiate a connection request to the target neighboring node, so that the target neighboring node reestablishes a communication connection between the meter communication module 104 and the target neighboring node in response to the connection request.
According to the ammeter communication link fault recovery method, data to be sent are obtained, the count value of the unidentified frame counter is increased, the data to be sent are sent to the target adjacent node, if response data are not received from the target adjacent node within preset response time, the current count value of the unidentified frame counter is obtained, if the current count value reaches a preset count threshold value, the fact that communication faults exist between the current count value and the target adjacent node is judged, a connection request is sent to the target adjacent node to reestablish communication connection, the slave node detects the communication fault state of the adjacent node, connection reestablishment is sent to the adjacent node when the faults occur, fault recovery does not need to be conducted through a power meter reading concentrator in a centralized mode, and the ammeter communication link fault recovery efficiency is improved.
In one embodiment, the electric meter communication module 104 sends a connection request to the electric meter reading concentrator, enters a normal service data transceiving mode after accessing the electric meter communication link, and determines whether the current link is available through periodic link check.
In one embodiment, each meter communication module 104 may be configured with a white list of neighboring nodes, so that when a connection request of a neighboring node is received, the white list of neighboring nodes may be identity-matched, and a communication connection may be established in response to the connection request.
In an embodiment, before the step of determining to acquire data to be transmitted in step S301, the method includes:
and transmitting a link check frame to each adjacent node according to a preset link check period so as to check the validity of the communication link with each adjacent node.
In this embodiment, the link check period may be a preset link check period, for example, after the electric meter communication module 104 enters the service data transceiving mode, a link check frame is sent to each neighboring node at an interval of T time to determine a communication condition between the electric meter communication module 104 and each neighboring node.
In some embodiments, the link check period may also be triggered by a data transmission requirement, which may be a waiting time for the meter communication module 104 to acquire the data to be transmitted. The meter communication module 104 may start to perform waiting time timing after sending the previous piece of data, and if the waiting time exceeds a preset waiting time threshold, trigger a link check period, and the meter communication module 104 sends a link check frame to each adjacent node to determine a communication condition between the meter communication module 104 and each adjacent node, ensure validity of each communication link and start fault recovery in time, so as to avoid that the data cannot be sent due to a link fault when there is a data sending demand.
According to the scheme of the embodiment, the link check frame is sent to each adjacent node according to the preset link check period so as to check the validity of the communication link between each adjacent node, and the timeliness of acquiring the communication condition between the electric meter communication module 104 and each adjacent node is improved.
In one embodiment, the step after acquiring the data to be transmitted determined in step S301 includes:
and storing the data to be sent in the cache submodule.
In this embodiment, the electric meter communication module includes a cache submodule, and is configured to cache data to be sent corresponding to each target neighboring node, and is configured to send the data to the target neighboring node again when the response data of the target neighboring node is not received and the current count value of the unacknowledged frame counter does not reach the preset count threshold, so as to avoid data loss.
According to the scheme of the embodiment, the data to be sent is stored in the cache submodule and is used for being sent again when the set conditions are met, and the stability of data transmission between adjacent nodes is improved.
In one embodiment, the step after acquiring the data to be transmitted determined in step S301 includes:
if the current count value of the frame unacknowledged counter is smaller than a preset threshold value, acquiring data to be sent from the cache submodule; and sending the data to be sent to the target adjacent node.
In this embodiment, when the current count value of the unacknowledged frame counter is smaller than the preset threshold, and the number of times of the unacknowledged transmission success is within the acceptable range of the communication link, that is, there is no communication fault, the ammeter communication module 104 may obtain the data to be transmitted from the buffer submodule, retry transmit the data to the target neighboring node, and increase the current count value of the unacknowledged frame counter.
In some cases, if the response data is not received within the preset response time after the retransmission, the latest count value of the uncertified frame counter may be obtained, and compared with the preset threshold value again, whether a communication fault exists is determined according to the comparison result, and corresponding processing measures are respectively taken, that is, if a communication fault exists, a connection request is initiated to reestablish the communication connection, and if it is determined that a communication fault does not exist, the data is retransmitted.
According to the scheme of the embodiment, if the current count value of the frame uncertainties counter is smaller than the preset threshold value, the data to be sent in the cache submodule is sent to the target adjacent node, and timeliness and effectiveness of data sending are improved.
In one embodiment, the method further comprises:
and if response data are received from the target adjacent node within the preset response time, clearing the count value of the unacknowledged frame counter and clearing the data to be sent in the cache submodule.
In this embodiment, after the electric meter communication module 104 sends the data to be sent to the target neighboring node, timing is started, and if the response data is received from the target neighboring node within the preset response time, it indicates that the target neighboring node successfully receives the data. The meter communication module 104 may clear the count value of the unidentified frame counter so that the count value of the unidentified frame counter matches the actual communication transmission condition. The meter communication module 104 may also clear the data to be sent in the cache submodule to reduce the data cache pressure of the meter communication module 104.
According to the scheme of the embodiment, if the response data is received within the preset response time, it indicates that the data is successfully received, and the ammeter communication module 104 accordingly clears the count value of the unacknowledged frame counter and clears the data to be sent in the cache submodule, so that the accuracy of counting by the unacknowledged frame counter is improved, and the data cache pressure of the cache submodule is reduced.
In one embodiment, each time the count value of the unacknowledged frame counter is increased, the corresponding change value may be set to 1, and the corresponding preset threshold may be 2. For example, after acquiring data to be transmitted, the count value of the unacknowledged frame counter may be incremented by 1.
In one embodiment, after the power meter reading concentrator sends the meter reading instruction, if the meter reading data is not received within a preset time period, the meter reading instruction can be sent again according to the service data requirement, and the meter reading instruction is sent to the corresponding slave node through the communication link. After the electric meter communication module 104 restarts the communication connection with the adjacent node, the unacknowledged frame counter may be processed according to the newly received data to be transmitted.
In one embodiment, as shown in fig. 4, there is provided a method for recovering from a failure of a communication link of an electricity meter, the method comprising:
step S401, acquiring data to be transmitted, storing the data to be transmitted in a cache submodule, increasing the count value of the unacknowledged frame counter, and transmitting the data to be transmitted to a target adjacent node.
Step S402, if no response data is received from the target neighboring node within the preset response time, obtaining the current count value of the unacknowledged frame counter.
Step 4021, if the current count value reaches a preset count threshold, judging that a communication fault exists between the current count value and a target adjacent node; a connection request is initiated to the target neighboring node to reestablish the communication connection.
Step 4022, if the current count value of the frame counter is not confirmed to be smaller than a preset threshold value, acquiring data to be sent from a buffer submodule; and sending the data to be sent to the target adjacent node.
Step S403, if the response data is received from the target neighboring node within the preset response time, clearing the count value of the unacknowledged frame counter, and clearing the data to be sent in the cache sub-module.
According to the embodiment, the data to be sent is acquired and stored in the cache submodule, the count value of the frame counter is increased, the data to be sent is sent to the target adjacent node, the communication fault condition of the target adjacent node is judged according to different conditions of receiving response data in the preset response time, different processing measures are adopted respectively, the communication fault state of the node adjacent to the node is detected from the slave node, connection is reestablished aiming at the adjacent node, the centralized operation of the power meter reading concentrator is not needed, and the efficiency of ammeter communication link fault identification and the efficiency of ammeter communication link recovery are improved.
It should be understood that although the various steps in the flow diagrams of fig. 3-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In order to more clearly illustrate the scheme provided by the application, the method for recovering the fault of the electric meter communication link of the embodiment of the application is explained in the following specific application. As shown in fig. 5:
and the ammeter communication module is added into the network, a communication link is successfully established, a service data transceiving mode is entered, and the count value of the unConfirmedCounter is cleared.
And if the data to be sent exists, increasing the count value of the unConfirmedCounter by 1, sending the data to the target adjacent node, and if response data is received from the target adjacent node, resetting the count value of the unConfirmedCounter to zero, and entering the processing process of the next data to be sent. If no response data is received from the neighboring target node, the count value of unconfirmed counter may be obtained, and it is determined whether the count value is equal to a preset threshold (e.g., 2), if the count value is equal to the preset threshold, the communication link with the target neighboring node is re-established, and if the count value is less than the preset threshold, it is determined whether there is data to be sent again. The ammeter communication module can be configured with preset response time for receiving response data, so that long-time response waiting is avoided, and the communication efficiency is improved.
And entering a service data receiving and sending mode, clearing the count value of the unconfirmed counter, and entering waiting time until the data to be sent is obtained if the data to be sent does not exist. The meter communication module may periodically transmit a link check frame to check a communication link condition with the neighboring node.
In one embodiment, as shown in fig. 6, there is provided an apparatus for recovering from a failure of a communication link of an electricity meter, applied to a communication module of the electricity meter, the apparatus 600 including:
a data obtaining module 601, configured to obtain data to be sent, increase a count value of an unacknowledged frame counter, and send the data to be sent to a target neighboring node;
a frame count value confirmation module 602, configured to obtain a current count value of an uncertified frame counter if no response data is received from the target neighboring node within a preset response time;
a communication failure determining module 603, configured to determine that a communication failure exists with a target adjacent node if the current count value reaches a preset count threshold;
a reconnect module 604 for initiating a connection request to the target neighboring node to reestablish the communication connection.
In one embodiment, the data acquisition module 601 includes: and the link checking unit is used for sending a link checking frame to each adjacent node according to a preset link checking period so as to check the validity of the communication link with each adjacent node.
In one embodiment, a link check unit includes: the waiting time unit is used for monitoring and acquiring waiting time of data to be sent; and if the waiting time exceeds a preset waiting time threshold, sending a link check frame to each adjacent node.
In one embodiment, the data acquisition module 601 includes: and the cache unit is used for storing the data to be sent in the cache submodule.
In one embodiment, the apparatus 600 further comprises: the secondary sending module is used for acquiring data to be sent from the buffer submodule if the current count value of the frame unacknowledged counter is smaller than a preset threshold value; and sending the data to be sent to the target adjacent node.
In one embodiment, the apparatus 600 further comprises: and the successful sending module is used for clearing the count value of the unacknowledged frame counter and clearing the data to be sent in the cache submodule if response data is received from the target adjacent node within the preset response time.
In one embodiment, the apparatus 600 further comprises: the networking mode between the master node and the slave node of the communication link is a Mesh networking mode.
For specific limitations of the electric meter communication link fault recovery device, reference may be made to the above limitations of the electric meter communication link fault recovery method, which are not described herein again. All or part of each module in the ammeter communication link fault recovery device can be realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The method for recovering the fault of the communication link of the electric meter can be applied to computer equipment, the computer equipment can be the electric meter, and the internal structure diagram can be shown in fig. 7. The computer device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program when executed by a processor implements a method for meter communication link failure recovery. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A method for recovering a fault of a communication link of an electric meter is applied to a communication module of the electric meter, and comprises the following steps:
according to a preset link check period, sending a link check frame to each adjacent node to check the validity of a communication link between each adjacent node and the adjacent node;
acquiring data to be sent, increasing the count value of an unacknowledged frame counter, and sending the data to be sent to a target adjacent node;
if response data are not received from the target adjacent node within preset response time, acquiring the current count value of the uncertified frame counter;
if the current count value reaches a preset count threshold value, judging that a communication fault exists between the current count value and the target adjacent node;
and initiating a connection request to the target adjacent node to reestablish the communication connection.
2. The method of claim 1,
the data flow direction of the data to be sent is meter reading instruction data from an upstream adjacent node of the ammeter communication module to a downstream target node; or, meter data sent from a downstream neighbor node to an upstream neighbor node.
3. The method according to claim 1, wherein the link check period is a waiting time for the communication module to acquire the data to be transmitted; transmitting a link check frame to each neighboring node, comprising:
monitoring and acquiring the waiting time of the data to be sent;
and if the waiting time exceeds a preset waiting time threshold, sending the link check frame to each adjacent node.
4. The method of claim 1, wherein after obtaining the data to be transmitted, the method further comprises:
and storing the data to be sent in a cache submodule.
5. The method of claim 4, further comprising:
if the current count value of the unacknowledged frame counter is smaller than a preset threshold value, acquiring the data to be sent from the cache submodule;
and sending the data to be sent to the target adjacent node.
6. The method of claim 4, further comprising:
and if response data are received from the target adjacent node within preset response time, clearing the count value of the unacknowledged frame counter and clearing the data to be sent in the cache submodule.
7. The method according to any one of claims 1 to 6, further comprising: and the networking mode between the master node and the slave node of the communication link is a Mesh networking mode.
8. An electric meter communication link fault recovery device, which is applied to an electric meter communication module, and comprises:
a link check unit, configured to send a link check frame to each neighboring node according to a preset link check period, so as to check validity of a communication link with each neighboring node;
the data acquisition module is used for acquiring data to be sent, increasing the count value of the unidentified frame counter and sending the data to be sent to a target adjacent node;
a frame count value confirmation module, configured to obtain a current count value of the uncertified frame counter if no response data is received from the target neighboring node within a preset response time;
the communication fault judgment module is used for judging that a communication fault exists between the current counting value and the target adjacent node if the current counting value reaches a preset counting threshold value;
and the reconnection module is used for initiating a connection request to the target adjacent node so as to reestablish communication connection.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011541575.6A 2020-12-23 2020-12-23 Ammeter communication link fault recovery method and device and computer equipment Active CN112702202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011541575.6A CN112702202B (en) 2020-12-23 2020-12-23 Ammeter communication link fault recovery method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011541575.6A CN112702202B (en) 2020-12-23 2020-12-23 Ammeter communication link fault recovery method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN112702202A CN112702202A (en) 2021-04-23
CN112702202B true CN112702202B (en) 2023-01-20

Family

ID=75509461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011541575.6A Active CN112702202B (en) 2020-12-23 2020-12-23 Ammeter communication link fault recovery method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112702202B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113595778B (en) * 2021-07-23 2023-08-01 宁波三星医疗电气股份有限公司 Method for processing abnormal self-recovery of meter reading business of module terminal
CN114024903A (en) * 2021-11-08 2022-02-08 深圳市共进电子股份有限公司 Network switching method and device and gateway equipment
CN117439871B (en) * 2023-12-22 2024-02-27 北京智芯微电子科技有限公司 Meter reading fault positioning method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145988A (en) * 2007-07-19 2008-03-19 中兴通讯股份有限公司 A detection and recovery method for communication link failure
CN105142175A (en) * 2015-06-09 2015-12-09 刘芳 Method for quickly detecting state of link between wireless network equipment
WO2015184739A1 (en) * 2014-10-21 2015-12-10 中兴通讯股份有限公司 Fault detection method and device
CN109560993A (en) * 2018-12-20 2019-04-02 航天信息股份有限公司 The method of communication link abnormality detection, device, electronic equipment and network
CN111835564A (en) * 2020-07-02 2020-10-27 北京邮电大学 Self-adaptive recovery method and system for power Internet of things communication link fault

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145988A (en) * 2007-07-19 2008-03-19 中兴通讯股份有限公司 A detection and recovery method for communication link failure
WO2015184739A1 (en) * 2014-10-21 2015-12-10 中兴通讯股份有限公司 Fault detection method and device
CN105142175A (en) * 2015-06-09 2015-12-09 刘芳 Method for quickly detecting state of link between wireless network equipment
CN109560993A (en) * 2018-12-20 2019-04-02 航天信息股份有限公司 The method of communication link abnormality detection, device, electronic equipment and network
CN111835564A (en) * 2020-07-02 2020-10-27 北京邮电大学 Self-adaptive recovery method and system for power Internet of things communication link fault

Also Published As

Publication number Publication date
CN112702202A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN112702202B (en) Ammeter communication link fault recovery method and device and computer equipment
JP4984162B2 (en) Monitoring control method and monitoring control apparatus
JP5727194B2 (en) Wireless communication system and wireless communication method
US11146090B2 (en) Battery management system, and method and apparatus for transmitting information
US9832086B2 (en) Initiator apparatus, target apparatus, communication system, timeout detection method, and timeout detection program
CN104506392B (en) A kind of delay machine detection method and equipment
EP3531791A1 (en) Method and device for recovering radio downlink failure
WO2022078070A1 (en) Device detection method and apparatus, and communication device
US20190082341A1 (en) Data transmission method, apparatus, and system
CN105450469A (en) Method for detecting faults of rapid communication bus in industrial equipment
CN111436067A (en) Method for processing cell connection failure, terminal equipment and network side equipment
JP6282955B2 (en) Unauthorized connection detection system, method and program
CN113344743A (en) Fault hazard index calculation and vulnerability assessment method for smart power grid
CN102106105A (en) Protocols for multi-hop relay system with centralized scheduling
JP2020065153A (en) Unauthorized device detection apparatus and method
EP2988476A1 (en) Method and apparatus for processing operation on endpoint peripheral
CN109495384B (en) Method and device for improving reliability of network routing
CN113965466A (en) Data transmission system adaptive to network bandwidth
JP4710719B2 (en) Retransmission device when communication is abnormal
CN115883037A (en) Method, device and terminal for detecting beam failure
CN110562817B (en) Method and device for monitoring elevator fault, computer equipment and storage medium
CN112929354B (en) Practical Byzantine fault-tolerant anti-attack deadlock method and device
JP2017050608A (en) Radio communication device, method, program and system
JP2013026794A (en) Radio communication system, and method for detecting silent fault in radio communication system
CN114257978A (en) Method and device for transmitting sensing data of outdoor power transmission equipment and computer equipment

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
TR01 Transfer of patent right

Effective date of registration: 20230412

Address after: Full Floor 14, Unit 3, Building 2, No. 11, Middle Spectra Road, Huangpu District, Guangzhou, Guangdong 510700

Patentee after: China Southern Power Grid Digital Grid Technology (Guangdong) Co.,Ltd.

Address before: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

TR01 Transfer of patent right