Search

CN-122001810-A - Air pressure sensor communication link switching method and system for fault self-diagnosis

CN122001810ACN 122001810 ACN122001810 ACN 122001810ACN-122001810-A

Abstract

The invention discloses a method and a system for switching communication links of an air pressure sensor for fault self-diagnosis, which are used for switching communication links which are connected between a data receiving end and air pressure sensor nodes, wherein the communication links consist of at least one main link, at least one wired standby link and at least one wireless standby link, and the main link is in communication connection with the air pressure sensor nodes by default, and comprises the steps of collecting a first transmission parameter set of the main link and working state parameters of the air pressure sensor nodes in real time after the main link is started; diagnosing whether the main link is faulty according to the first transmission parameter set and the working state parameter, and acquiring the fault type and the fault parameter of the main link based on a diagnosis result under the condition of the main link fault; the method can solve the problems of easy connection and congestion of the existing link switching, and ensure the continuity, stability and low delay of pneumatic data transmission.

Inventors

  • ZHONG XINRONG
  • LIU SHANJIN
  • ZHOU WEI

Assignees

  • 长沙大微半导体有限公司

Dates

Publication Date
20260508
Application Date
20260331

Claims (10)

  1. 1. A method for switching a communication link of a barometric sensor for fault self-diagnosis, for switching a communication link between a data receiving end and each barometric sensor node, the communication link being composed of at least one main link, at least one wired standby link and at least one wireless standby link, and the main link being in communication connection with the barometric sensor node by default, comprising: S10, acquiring a first transmission parameter set of a main link and working state parameters of a pressure sensor node in real time after starting the main link; S20, diagnosing whether the main link is faulty according to the first transmission parameter set and the working state parameters, and acquiring the fault type and the fault parameters of the main link based on a diagnosis result under the condition of the main link fault; S30, dividing the failure level of the main link according to the failure type and the failure parameter; s40, monitoring the real-time state of each link, and screening and obtaining an optimal standby link from the wired standby link or the wireless standby link based on the real-time state and the fault level; s50, performing differential seamless switching on the optimal standby link according to the fault level, connecting the air pressure sensor node with the optimal standby link in a communication way, and returning a receiving confirmation identifier to the air pressure sensor node; S60, continuously monitoring the first transmission parameter set of the main link and the second transmission parameter set of the optimal standby link in real time after returning the receiving confirmation identification; and S70, judging whether the fault of the main link is repaired according to the first transmission parameter set, and executing a reverse seamless switching strategy on the air pressure sensor node under the condition that the fault of the main link is repaired and the second transmission parameter set is normal, so that the main link is in communication connection with the air pressure sensor node again, and the optimal standby link is restored to a standby state.
  2. 2. The method for switching a communication link of a barometric sensor for fault self-diagnosis according to claim 1, wherein in step S50, comprising: S51, connecting the optimal standby link with each air pressure sensor node foundation based on a communication protocol of the optimal standby link and a communication protocol of the air pressure sensor; s52, acquiring the residual bandwidth value of the optimal standby link and the transmission data quantity of the air pressure sensor node; S53, according to the transmission data quantity, combining with a preset monitoring rule, respectively dividing priority labels for all the air pressure sensor nodes to be switched and configuring corresponding priority weight values; S54, substituting the fault level into a pre-stored cache granularity mapping table to obtain the cache granularity corresponding to the air pressure data acquired by the air pressure sensor node under the mapping rule; s55, based on the cache granularity, taking the air pressure data as a cache unit to carry out local cache; S56, the data receiving end performs dynamic load balancing distribution on each air pressure sensor node, and bandwidth execution instructions and synchronous identifiers of the nodes are obtained; s57, executing link switching actions matched with the fault level on the air pressure sensor nodes corresponding to the cache units according to the fault level, the bandwidth execution instruction, the synchronous identification and the local cache data, and generating switched link switching characteristics; S58, the air pressure sensor node performs integrity check on a first batch of data frames transmitted by the optimal standby link based on the link switching characteristics, and sends a check result feedback packet after link switching to the data receiving end after the check is completed; And S59, after the data receiving end receives the verification result feedback packet, the data receiving end transmits a receiving confirmation identifier back to the air pressure sensor node, and the switching is completed.
  3. 3. The method for switching a communication link of a barometric sensor for fault self-diagnosis according to claim 2, wherein in step S56, comprising: S561, obtaining bandwidth monitoring frequency according to the residual bandwidth value and preset basic monitoring frequency; s562, collecting a residual bandwidth value and a transmission data quantity according to the bandwidth monitoring frequency interval, and calculating the transmission data quantity by combining with a priority weight value to obtain a normalized data quantity; S563, substituting the residual bandwidth value and the normalized data quantity into a preset dynamic load distribution algorithm, and distributing an initial bandwidth for the air pressure sensor node to be switched; s564, integrating initial bandwidth allocation results of the air pressure sensor nodes to obtain bandwidth allocation lists of the links, and setting a bandwidth adjustment threshold set; s565, judging whether to execute the bandwidth dynamic adjustment according to the bandwidth adjustment threshold value, and repeatedly executing the steps S562 and S564 under the condition of executing the bandwidth dynamic adjustment until judging that the bandwidth dynamic adjustment is not executed; S566, synchronizing the distribution result and the bandwidth distribution list according to the initial bandwidth distribution to the corresponding air pressure sensor node and the link, and obtaining a bandwidth execution instruction and a distribution result synchronization identifier.
  4. 4. The method for switching a communication link of a barometric sensor according to claim 1, wherein said fault parameters include at least a single parameter deviation and a comprehensive fault value, and said step S20 includes: S21, comparing each parameter in the first transmission parameter set and the working state parameter with a normal threshold range of a corresponding parameter in a preset parameter threshold mapping table, and determining a state identifier corresponding to each parameter; s22, determining single parameter deviation degrees corresponding to the parameters according to the state identification of the parameters, and performing range locking processing on initial values of the single parameter deviation degrees of the parameters; S23, invoking weight values corresponding to the parameters from a parameter threshold mapping table, and carrying out weighted summation operation by combining single parameter deviation degree to generate a comprehensive fault value; s24, comparing the comprehensive fault value with a pre-stored fault diagnosis threshold value to determine a diagnosis result of the main communication link; S25, screening abnormal parameters with single parameter deviation degree larger than 0 from the single parameter deviation degree of each parameter under the condition that the diagnosis result is a fault, and generating an abnormal parameter characteristic set; s26, comparing and matching the abnormal parameter feature set with a preset fault type feature library, and determining the fault type of the main link.
  5. 5. The method for switching a communication link of a barometric sensor for fault self-diagnosis according to claim 1, wherein in said step S30, said fault type includes at least signal interference, link congestion, poor contact and link interruption, said data receiving end divides the fault level of the main link based on said fault type and fault parameters in combination with preset fault diagnosis threshold values and critical fault threshold values, said fault level includes a light fault, a medium fault and a heavy fault, wherein, Under the condition that the fault type is signal interference, the fault diagnosis threshold value is less than or equal to 50% of the comprehensive fault value < serious fault threshold value, and the single parameter deviation degree is less than or equal to 30%, the fault type is determined to be classified as mild fault; Confirming the classification of medium faults under the condition that the fault type is link congestion, the total fault value is less than or equal to 50% and less than or equal to 80% of the total fault value is less than or equal to 80% of the total fault value, and the single parameter deviation degree is less than or equal to 60% of the total fault value is 30%; In case the fault type is bad contact or link break and the severe fault threshold is 80% < integrated fault value and 60% < single parameter deviation, the classification as severe fault is confirmed.
  6. 6. The method for switching a communication link of a barometric sensor for fault self-diagnosis according to claim 3, wherein said step S561 comprises: S5611, collecting real-time residual bandwidth values of the optimal standby links with continuous preset groups under basic monitoring frequency, respectively performing difference operation on two adjacent groups of residual bandwidth values to generate bandwidth fluctuation amplitude corresponding to each group, and performing time-series difference operation on multiple groups of continuous bandwidth fluctuation amplitudes to generate bandwidth fluctuation trend characteristics; S5612, according to the bandwidth fluctuation trend characteristics, corresponding reference parameters are called from a pre-stored reference interval mapping library of the data receiving end, and a bandwidth monitoring basic interval value is generated; s5613, performing weighted correction operation on the bandwidth monitoring basic interval value according to the priority weight value to generate a priority interval value; s5614, performing secondary correction operation on the priority interval value according to the fault parameters and the fault level to generate a fault risk interval value; S5615, calculating a proportion value of the priority weight value of the air pressure sensor node to the total priority weight value of all nodes to be switched according to the priority weight value, and performing three correction operations on the fault risk interval value based on the proportion value to generate a bandwidth demand interval value; S5616, performing range locking on the bandwidth demand interval value based on the interval upper and lower limit thresholds in the reference interval mapping library, and calculating and obtaining bandwidth monitoring frequency according to the final bandwidth demand interval value.
  7. 7. The method for switching a communication link of a barometric sensor for fault self-diagnosis according to claim 3, further comprising, before said step S564: Under the condition that the bandwidth of the optimal standby link is insufficient, starting from the air pressure sensor node with the highest priority weight value, calculating the initial bandwidth allocated by the node on the optimal standby link based on a dynamic load allocation algorithm, and accumulating the initial bandwidth node by node until the accumulated value of the allocated initial bandwidth is larger than the residual bandwidth value of the optimal standby link; dividing the nodes with accumulated values not exceeding the residual bandwidth values into optimal link node groups, and dividing the residual nodes into shunting node groups; Screening and obtaining a shunting standby link from other links which do not comprise the optimal standby link according to the real-time state of each link and the fault level of the main link; And acquiring the residual bandwidth value and bandwidth monitoring frequency of the shunt standby link and the normalized data quantity of each node in the shunt node group, and distributing the initial bandwidth of each node in the shunt node group by the shunt standby link in combination with the dynamic load distribution algorithm.
  8. 8. The method for switching a communication link of a barometric sensor for fault self-diagnosis according to claim 3, wherein the bandwidth adjustment threshold set includes a bandwidth fluctuation trigger threshold, a data volume fluctuation trigger threshold, and a node queue change trigger threshold; And when judging whether to execute the bandwidth dynamic adjustment according to the bandwidth adjustment threshold, judging to execute the bandwidth dynamic adjustment under the condition that the change rate between two adjacent groups of residual bandwidth values is larger than a bandwidth fluctuation trigger threshold or the change rate between two adjacent groups of transmission data amounts is larger than a data amount fluctuation trigger threshold or the change rate between two adjacent groups of normalized data amounts is larger than a node queue change trigger threshold under the bandwidth monitoring frequency.
  9. 9. The method for switching a communication link of a barometric sensor for fault self-diagnosis according to claim 8, wherein said bandwidth allocation list includes a total bandwidth of a link, a residual bandwidth value of the link in real time, and a link load rate obtained by calculating from said total bandwidth and residual bandwidth value, and setting a bandwidth adjustment threshold set includes: calculating and acquiring a bandwidth fluctuation trigger threshold according to the fault parameters, the fault level, the serious fault threshold and the link load rate; Determining an average priority weight value of all the nodes to be switched and a weight difference value between a maximum value and a minimum value of the priority weight values based on the priority weight values of all the nodes to be switched, and calculating and acquiring a data quantity fluctuation trigger threshold according to the average priority weight value and the weight difference value; And determining a queue triggering coefficient based on the average priority weight value and the fault parameter, and calculating and acquiring a node queue change triggering threshold according to the queue triggering coefficient, the link load rate and the bandwidth monitoring frequency.
  10. 10. A barometric sensor communication link switching system for performing the failure self-diagnosis barometric sensor communication link switching method according to any one of claims 1 to 9, comprising: the parameter acquisition module is used for acquiring a first transmission parameter set of the main link and working state parameters of the air pressure sensor node in real time after the main link is started; The link fault diagnosis module is used for diagnosing whether the main link is faulty according to the first transmission parameter set and the working state parameters, and acquiring the fault type and the fault parameters of the main link based on a diagnosis result under the condition of the main link fault; The fault grade judging module is used for dividing the fault grade of the main link according to the fault type and the fault parameters; The link management module is used for monitoring the real-time state of each link and screening and obtaining the optimal standby link from the wired standby link or the wireless standby link based on the real-time state and the fault level; the link switching control module is used for executing differential seamless switching on the optimal standby link according to the fault level, connecting the air pressure sensor node with the optimal standby link in a communication way, and returning a receiving confirmation identifier to the air pressure sensor node; The link monitoring module is used for continuously monitoring the first transmission parameter set of the main link and the second transmission parameter set of the optimal standby link in real time after returning the receiving confirmation identification; And the link switching back module is used for judging whether the fault of the main link is repaired according to the first transmission parameter set, executing a reverse seamless switching strategy on the air pressure sensor node under the condition that the fault of the main link is repaired and the second transmission parameter set is normal, and connecting the main link with the air pressure sensor node again in a communication way and recovering the optimal standby link to a standby state.

Description

Air pressure sensor communication link switching method and system for fault self-diagnosis Technical Field The invention relates to the field of communication link switching, and particularly discloses a method and a system for switching a communication link of a fault self-diagnosis air pressure sensor. Background The air pressure sensor is a core sensing device for converting atmospheric pressure physical quantity into a quantifiable electric signal through an air pressure sensing element, is a core component unit of the distributed air pressure sensing data transmission system of the Internet of things, and is widely applied to scenes such as industrial cavity safety monitoring, oil and gas pipe network pressure early warning, atmospheric environment monitoring, intelligent equipment working condition management and control and the like. Under the distributed deployment architecture, a large number of air pressure sensor nodes need to upload air pressure data acquired in real time to an edge gateway or a cloud platform (a data receiving end) through a main communication link, and the continuity, stability and low delay of data transmission of the air pressure sensor nodes directly determine the early warning effectiveness and operation reliability of a monitoring system. In order to avoid interruption of data transmission caused by failure of a main communication link, the industry generally adopts a main-standby redundant communication architecture, and the main link is switched to a standby link to ensure data transmission when the main link fails, but the prior art still has core technical defects which cannot be solved, and is difficult to meet the severe transmission requirements of the distributed sensing scene of the Internet of things. In the distributed air pressure sensing data transmission system of the Internet of things, the air pressure sensor communication link is easily affected by factors such as industrial electromagnetic interference, link congestion or poor hardware contact and the like to cause faults, and the existing link switching scheme is mostly a single hard switching mode without grading, so that the problems of data loss and transmission interruption are easily caused in the switching process. After the switching is finished, the dynamic adapting capability to the transmission quality of the link is easily lacking, and a switching-back mode adopted by the prior art after the fault of the main link is repaired generally directly replaces the standby link with the main link, and the stability of the main link is not monitored, so that the secondary interruption of data transmission is easily caused. In addition, the existing switching mode is not generally suitable for a load balancing mechanism for multi-node concurrent switching after the standby link is activated, so that the standby link is very easy to be congested when a large number of distributed air pressure sensor nodes are simultaneously switched to the same standby link, and the core requirements of the sensing data of the Internet of things on transmission continuity, stability and low delay cannot be met. On the basis of the defects of the whole architecture, the prior art further has the technical problems that even if a part of schemes adopt a basic switching mode of soft switching/hard switching and data buffering, two core defects which cannot be solved still exist, namely, firstly, the granularity of data buffering is not differently designed, the total amount of buffered data can be additionally increased in the soft switching of light faults, link load and switching delay are increased, the buffer granularity is too thin in the hard switching of heavy faults, the breakpoint continuous transmission efficiency is low, switching requirements of different fault levels cannot be adapted, secondly, the load balance of a standby link only adopts a global static distribution mode, the real-time transmission data amount of a standby link and the real-time residual bandwidth of the standby link are not dynamically distributed, and when the multi-air pressure sensor node is simultaneously switched to the same standby link, local congestion still occurs, so that the data transmission delay and packet loss after switching are caused, and seamless and low-delay link switching cannot be truly realized. Even though the existing scheme optimizes the basic switching flow aiming at the problems, in the core link of dynamic load balancing distribution, the prior art still has the deep technical problems that even if a part of schemes adopt a basic load distribution mode of 'statistic data quantity + distribution bandwidth', three technical defects of incapability of breaking exist, namely, firstly, the residual bandwidth of a standby link adopts fixed frequency monitoring and cannot adapt to dynamic fluctuation of the link bandwidth, when the standby link has sudden congestion, the fixed frequency monitoring leads to delayed