Method and device for establishing monitoring network

By selecting appropriate sensor nodes to establish a monitoring network and using beacon information to detect and repair faults, the problems of low automation and accuracy in oil and natural gas pipeline monitoring are solved, and low-cost and efficient oil and gas pipeline monitoring is achieved.

CN114866972BActive Publication Date: 2025-09-26CHINA NAT PETROLEUM CORP +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110151513.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-03
Publication Date
2025-09-26
Estimated Expiration
2041-02-03

AI Technical Summary

Technical Problem

The existing monitoring methods for oil and natural gas pipelines require manual inspection, which is costly, has a low degree of automation, low sensitivity and low detection accuracy.

Method used

By selecting the first sensor node that meets the target requirements based on the hardware information of the sensor nodes, a target monitoring network is established, and beacon information is used to detect network failures and repair them, thereby improving the automation and accuracy of the monitoring network.

Benefits of technology

It reduces the communication error rate of oil and gas pipeline monitoring, improves the automation and accuracy of monitoring, and reduces the need for manual on-site inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114866972B_ABST
    Figure CN114866972B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for establishing a monitoring network, belonging to the technical field of oil and gas pipeline construction. The method includes: based on the hardware information of N sensor nodes, determining a first sensor node whose hardware information meets target requirements, where N is an integer greater than or equal to 1, and each of the N sensor nodes has a communication connection with the oil and gas pipeline; sending an information acquisition instruction to the first sensor node, the information acquisition instruction being used to determine, through the first sensor node, a second sensor node whose received signal strength meets the target strength, where the number of second sensor nodes is at least one; and establishing a target monitoring network based on the first sensor node and the second sensor node, the target monitoring network being used to monitor the oil and gas pipeline. The target monitoring network established by this method has low energy consumption, high monitoring accuracy, and can effectively reduce communication error rates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of oil and gas pipeline construction, and in particular to a method and device for establishing a monitoring network. Background Art

[0002] Oil and natural gas pipelines are characterized by large diameter, high pressure, and large transportation volume. According to the transportation route planning, they are often placed in locations that are difficult to observe, such as the surface or underground. Once pipeline aging, pipeline corrosion, or artificial drilling and oil theft occur, oil and natural gas leakage will occur, causing a series of serious consequences such as environmental pollution, production and transportation suspension, etc.

[0003] In related technologies, a sensor is installed at regular intervals on an oil or natural gas pipeline. The sensor is used to obtain data from the corresponding pipeline. Technicians go to the site to inspect the sensor at regular intervals to obtain data from the pipeline, and determine whether there is a fault in the pipeline based on the data.

[0004] However, the above methods require manual on-site inspection, which is not only costly and wastes manpower and financial resources, but also has a low degree of automation, low sensitivity, and low detection accuracy. Therefore, there is an urgent need for a monitoring network establishment method to establish a network for monitoring oil and gas pipelines, thereby improving the degree of automation and accuracy of oil and gas pipeline monitoring. Summary of the Invention

[0005] The present application provides a method and apparatus for establishing a monitoring network, which can be used to solve the problems in related technologies. The technical solution is as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for establishing a monitoring network, which is applied to an electronic device, and the method includes:

[0007] Determining, based on hardware information of N sensor nodes, a first sensor node whose hardware information meets target requirements, wherein N is an integer greater than or equal to 1, and all of the N sensor nodes have a communication connection with the oil and gas pipeline;

[0008] Sending an information acquisition instruction to the first sensor node, wherein the information acquisition instruction is used to determine, through the first sensor node, a second sensor node whose received signal strength meets a target strength, where the number of the second sensor node is at least one;

[0009] A target monitoring network is established based on the first sensor node and the second sensor node, and the target monitoring network is used to monitor the oil and gas pipeline.

[0010] In a possible implementation, the hardware information of the sensor node includes at least one of power, energy, and storage rate of the sensor node;

[0011] The step of determining, based on the hardware information of the N sensor nodes, a first sensor node whose hardware information meets the target requirement includes:

[0012] In response to the hardware information of the sensor node including the power of the sensor node, determining a sensor node whose power meets the power requirement among the N sensor nodes as the first sensor node;

[0013] Alternatively, in response to the hardware information of the sensor node including the energy of the sensor node, a sensor node whose energy meets the energy requirement among the N sensor nodes is determined as the first sensor node;

[0014] Alternatively, in response to the hardware information of the sensor node including the storage rate of the sensor node, a sensor node whose storage rate meets the storage rate requirement among the N sensor nodes is determined as the first sensor node;

[0015] Alternatively, in response to the hardware information of the sensor node including at least two of the power, energy and storage rate of the sensor node, a sensor node among the N sensor nodes that meets at least two of the power, energy and storage rate corresponding requirements is determined as the first sensor node.

[0016] In a possible implementation, after establishing the target monitoring network based on the first sensor node and the second sensor node, the method further includes:

[0017] In response to receiving a network error message sent by any one of the first sensor node and the second sensor node, the first monitoring network is re-established.

[0018] In a possible implementation, after establishing the target monitoring network based on the first sensor node and the second sensor node, the method further includes:

[0019] Sending beacon information to the first sensor node, which transmits the beacon information in the target monitoring network, wherein the transmission process of the beacon information is used to detect whether there is a fault in the target monitoring network;

[0020] In response to a pause time during the transmission of the beacon information exceeding a target pause time, it is determined that a fault exists in the target monitoring network.

[0021] In a possible implementation, in response to a pause in the transmission of the beacon information lasting longer than a target pause time, after determining that a fault exists in the target monitoring network, the method further includes:

[0022] Determining a faulty sensor node based on the transmission process of the beacon information;

[0023] The faulty sensor nodes are processed to obtain a repaired target monitoring network.

[0024] In a possible implementation, processing the faulty sensor node to obtain a repaired target monitoring network includes:

[0025] Removing the faulty sensor nodes to obtain a repaired target monitoring network;

[0026] Alternatively, based on the node information of the faulty sensor node, sensor nodes adjacent to the faulty sensor node are determined; a target sensor node is determined among the sensor nodes adjacent to the faulty sensor node, and the target sensor node is used to replace the faulty sensor node to obtain a repaired target monitoring network.

[0027] In a second aspect, an embodiment of the present application provides a method for establishing a monitoring network, which is applied to a first sensor node and includes:

[0028] receiving an information acquisition instruction sent by an electronic device, wherein the information acquisition instruction is used to determine a second sensor node whose received signal strength meets a target strength;

[0029] Sending node information of the first sensor node to N-1 sensor nodes other than the first sensor node among the N sensor nodes according to a first power level, where N is an integer greater than 1;

[0030] receiving unicast messages returned by M sensor nodes among the N-1 sensor nodes, where the unicast messages carry node information of the corresponding sensor nodes, and M is an integer greater than or equal to 1 and less than N;

[0031] Determining received signal strengths of the M sensor nodes based on node information of the M sensor nodes, and determining a sensor node whose received signal strength meets a target strength among the M sensor nodes as the second sensor node;

[0032] The node information of the second sensor node is sent to the electronic device, and the electronic device establishes a target monitoring network based on the second sensor node.

[0033] In a possible implementation, after sending the node information of the first sensor node to N-1 sensor nodes other than the first sensor node among the N sensor nodes according to the first power level, the method further includes:

[0034] In response to not receiving a unicast message returned by M sensor nodes among the N-1 sensor nodes within a target time, adjusting the first power level to obtain an adjusted power level;

[0035] The node information of the first sensor node is sent to N-1 sensor nodes excluding the first sensor node among the N sensor nodes according to the adjusted power level.

[0036] In a possible implementation, after determining the sensor node whose received signal strength meets the target strength among the M sensor nodes as the second sensor node, the method further includes:

[0037] The network status information is sent to M-1 sensor nodes excluding the second sensor node among the M sensor nodes respectively, where the network status information is used to indicate the network status of the M-1 sensor nodes.

[0038] In a third aspect, an embodiment of the present application provides a device for establishing a monitoring network, the device comprising:

[0039] a determination module configured to determine, based on hardware information of N sensor nodes, a first sensor node whose hardware information meets target requirements, wherein N is an integer greater than or equal to 1, and each of the N sensor nodes has a communication connection with the oil and gas pipeline;

[0040] A sending module, configured to send an information acquisition instruction to the first sensor node, wherein the information acquisition instruction is used to determine, through the first sensor node, a second sensor node whose received signal strength meets a target strength, and the number of the second sensor node is at least one;

[0041] An establishing module is used to establish a target monitoring network based on the first sensor node and the second sensor node, and the target monitoring network is used to monitor the oil and gas pipeline.

[0042] In a possible implementation, the hardware information of the sensor node includes at least one of power, energy, and storage rate of the sensor node;

[0043] The determining module is configured to determine, in response to the hardware information of the sensor node including the power of the sensor node, a sensor node whose power meets the power requirement among the N sensor nodes as the first sensor node;

[0044] Alternatively, in response to the hardware information of the sensor node including the energy of the sensor node, a sensor node whose energy meets the energy requirement among the N sensor nodes is determined as the first sensor node;

[0045] Alternatively, in response to the hardware information of the sensor node including the storage rate of the sensor node, a sensor node whose storage rate meets the storage rate requirement among the N sensor nodes is determined as the first sensor node;

[0046] Alternatively, in response to the hardware information of the sensor node including at least two of the power, energy and storage rate of the sensor node, a sensor node among the N sensor nodes that meets at least two of the power, energy and storage rate corresponding requirements is determined as the first sensor node.

[0047] In a possible implementation, the establishing module is further configured to re-establish the first monitoring network in response to receiving a network error message sent by any one of the first sensor node and the second sensor node.

[0048] In a possible implementation, the sending module is further configured to send beacon information to the first sensor node, and the first sensor node transmits the beacon information in the target monitoring network, and the transmission process of the beacon information is used to detect whether there is a fault in the target monitoring network;

[0049] The determining module is further configured to determine that a fault exists in the target monitoring network in response to a pause time during the transmission of the beacon information exceeding a target pause time.

[0050] In a possible implementation, the determining module is further configured to determine a faulty sensor node based on a transmission process of the beacon information;

[0051] The device further comprises:

[0052] The processing module is used to process the faulty sensor nodes to obtain a repaired target monitoring network.

[0053] In a possible implementation, the processing module is configured to remove the faulty sensor node to obtain a repaired target monitoring network;

[0054] Alternatively, based on the node information of the faulty sensor node, sensor nodes adjacent to the faulty sensor node are determined; a target sensor node is determined among the sensor nodes adjacent to the faulty sensor node, and the target sensor node is used to replace the faulty sensor node to obtain a repaired target monitoring network.

[0055] In a fourth aspect, an embodiment of the present application provides a device for establishing a monitoring network, the device comprising:

[0056] A receiving module, configured to receive an information acquisition instruction sent by an electronic device, wherein the information acquisition instruction is used to determine a second sensor node whose received signal strength meets a target strength;

[0057] a sending module, configured to send node information of the first sensor node to N-1 sensor nodes excluding the first sensor node among the N sensor nodes according to a first power level, where N is an integer greater than 1;

[0058] The receiving module is configured to receive unicast messages returned by M sensor nodes among the N-1 sensor nodes, wherein the unicast messages carry node information of the corresponding sensor nodes, and M is an integer greater than or equal to 1 and less than N;

[0059] a determining module, configured to determine received signal strengths of the M sensor nodes based on node information of the M sensor nodes, and determine a sensor node whose received signal strength meets a target strength among the M sensor nodes as the second sensor node;

[0060] The sending module is used to send the node information of the second sensor node to the electronic device, so that the electronic device establishes a target monitoring network based on the second sensor node.

[0061] In a possible implementation, the apparatus further includes:

[0062] an adjusting module, configured to adjust the first power level to obtain an adjusted power level in response to not receiving a unicast message returned by M sensor nodes among the N-1 sensor nodes within a target time;

[0063] The sending module is further configured to send the node information of the first sensor node to N-1 sensor nodes excluding the first sensor node among the N sensor nodes according to the adjusted power level.

[0064] In a possible implementation, the sending module is further configured to send network status information to M-1 sensor nodes excluding the second sensor node among the M sensor nodes, respectively, where the network status information is used to indicate the network status of the M-1 sensor nodes.

[0065] The technical solutions provided by the embodiments of the present application bring at least the following beneficial effects:

[0066] The technical solution provided by the embodiments of this application uses high-performance sensor nodes to establish a target monitoring network, resulting in low energy consumption. When used to monitor oil and gas pipelines, this target monitoring network can improve the accuracy of oil and gas pipeline monitoring, thereby reducing the communication error rate of the target monitoring network. Furthermore, since manual on-site testing is not required, the automation level of oil and gas pipeline monitoring can be increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0068] Figure 1 This is a flowchart of a method for establishing a monitoring network provided in an embodiment of the present application;

[0069] Figure 2 This is a flowchart of a method for establishing a monitoring network provided in an embodiment of the present application;

[0070] Figure 3 This is a flowchart of a method for establishing a monitoring network provided in an embodiment of the present application;

[0071] Figure 4 This is a flowchart of a method for establishing a monitoring network provided in an embodiment of the present application;

[0072] Figure 5 This is a schematic diagram of the structure of a monitoring network establishment device provided in an embodiment of the present application;

[0073] Figure 6 It is a structural diagram of a monitoring network establishment device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0075] The embodiment of the present application provides a method for establishing a monitoring network, which can be described by the interaction between an electronic device and a sensor node, or by the interaction between a server and a sensor node. The electronic device is any electronic product that can interact with a user through one or more methods such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a handheld computer PPC (Pocket PC), and a tablet computer. The server is a single server, or a server cluster consisting of multiple servers, or at least one of a cloud computing platform and a virtualization center, and the embodiment of the present application does not limit this.

[0076] Those skilled in the art should understand that the above-mentioned electronic devices and servers are only examples. Other existing or future electronic devices or servers that are applicable to this application should also be included in the scope of protection of this application and are incorporated herein by reference.

[0077] This embodiment provides a method for establishing a monitoring network. The method for establishing a monitoring network can be described by the interaction between electronic devices and sensor nodes. Figure 1 The method includes the following steps 101 to 108.

[0078] In step 101, the electronic device determines, based on hardware information of N sensor nodes, a first sensor node whose hardware information meets target requirements.

[0079] In one possible implementation, N is an integer greater than 1, and all N sensor nodes have a communication connection with the oil and gas pipeline. In order to facilitate the acquisition of relevant data of the oil and gas transmission pipeline, one or more sensor nodes are installed at intervals on the oil and gas transmission pipeline, or sensor nodes are installed in the valve room of the oil and gas station with electronic equipment, or sensor nodes are installed in edge devices such as the oil and gas station monitoring station, so that the installed sensor nodes can obtain relevant data of the oil and gas transmission pipeline, thereby facilitating the electronic equipment to obtain relevant data of the oil and gas transmission pipeline, and then the electronic equipment can determine whether there is a fault in the oil and gas transmission pipeline based on the relevant data of the oil and gas transmission pipeline.

[0080] The sensor node is any one of a pressure sensor, a temperature sensor, and a weight sensor, or may be other types of sensor nodes. The embodiment of the present application does not limit the type of the sensor node.

[0081] In a possible implementation, a technician inputs the hardware information of each sensor node into the electronic device, so that the electronic device determines a first sensor node whose hardware information meets target requirements based on the hardware information of the sensor nodes.

[0082] In one possible implementation, the hardware information of the sensor node includes at least one of power, energy, and storage rate of the sensor node. Based on the hardware information of the sensor node, determining the first sensor node whose hardware information meets the target requirement may be performed in the following situations.

[0083] Case 1: In response to the hardware information of the sensor node including the power of the sensor node, a sensor node whose power meets the power requirement among the N sensor nodes is determined as the first sensor node.

[0084] For example, the sensor node with the highest power among the N sensor nodes is determined as the first sensor node. Alternatively, the N sensor nodes are sorted in ascending or descending order of power, and any sensor node among the sensor nodes ranked at a target number of bits is determined as the first sensor node. The target number of bits is any value, such as 3 or 5.

[0085] Case 2: In response to the hardware information of the sensor node including the energy of the sensor node, a sensor node whose energy meets the energy requirement among the N sensor nodes is determined as the first sensor node.

[0086] For example, the sensor node with the highest energy among the N sensor nodes is determined as the first sensor node. Alternatively, the N sensor nodes are sorted in ascending or descending energy order, and any sensor node among the sensor nodes ranked at a target number of bits is determined as the first sensor node. The target number of bits is any value, such as 3 or 5.

[0087] Case 3: In response to the hardware information of the sensor node including the storage rate of the sensor node, a sensor node whose storage rate meets the storage rate requirement among the N sensor nodes is determined as the first sensor node.

[0088] For example, the sensor node with the highest storage rate among the N sensor nodes is determined as the first sensor node. Alternatively, the N sensor nodes are sorted in ascending or descending order of storage rate, and any sensor node among the sensor nodes ranked at a target number of bits is determined as the first sensor node. The target number of bits is any value, such as 3 or 5.

[0089] Case 4: In response to the sensor node hardware information including at least two of the power, energy and storage rate of the sensor node, a sensor node among the N sensor nodes that meets at least two of the corresponding requirements of power, energy and storage rate is determined as the first sensor node.

[0090] Exemplarily, the hardware information of the sensor node includes the power and energy of the sensor node, and the sensor node with the largest power and the largest energy among the N sensor nodes is determined as the first sensor node.

[0091] It should be noted that the hardware information of the sensor node may also include the signal and quality of the sensor node. When determining the first sensor node based on the hardware information of the sensor node, the sensor node with the strongest signal may be determined as the first sensor node, or the sensor node with the best quality may be determined as the first sensor node. Of course, the hardware information of the sensor node may also include other information, which is not limited in the embodiments of the present application.

[0092] It should also be noted that other methods may be used to determine the first sensor node from the N sensor nodes. For example, a sensor node may be randomly determined from the N sensor nodes as the first sensor node. The embodiment of the present application does not limit the process of determining the first sensor node.

[0093] In step 102, the electronic device sends an information acquisition instruction to the first sensor node, where the information acquisition instruction is used to determine, through the first sensor node, a second sensor node whose received signal strength meets a target strength.

[0094] In one possible implementation, after the electronic device determines the first sensor node whose hardware information meets the target requirements in the above step 101, it directly sends an information acquisition instruction to the first sensor node, thereby determining a second sensor node whose received signal strength meets the target strength through the first sensor node, and the number of the second sensor node is at least one.

[0095] In step 103, the first sensor node receives an information acquisition instruction sent by the electronic device.

[0096] In a possible implementation, after the first sensor node receives the signal acquisition instruction sent by the electronic device, it executes steps 104 to 106 to determine the second sensor node.

[0097] In step 104 , the first sensor node sends node information of the first sensor node to N−1 sensor nodes excluding the first sensor node among the N sensor nodes according to the first power level.

[0098] Among them, based on different sensor nodes, their power levels also vary. Generally, the power levels of sensor nodes are 0-10 levels, or 0-13 levels, where level 0 is the maximum power level and level 10 or level 13 is the minimum power level.

[0099] In one possible implementation, the first power level is the minimum power level, that is, the first power level is level 10 or level 13. The first sensor node transmits node information of the first sensor node to N-1 sensor nodes other than the first sensor node among the N sensor nodes according to the first power level. The node information is in the form of a data message, and the data message includes a data header, data content, and a data trailer. The data header includes location information of the first sensor node, the data content includes IP (Internet Protocol) information of the first sensor node and the operating status of the first sensor node, and the data trailer includes vendor information of the first sensor node. Of course, other content may also be transmitted to the N-1 sensor nodes other than the first sensor node among the N sensor nodes, and this is not limited in this embodiment of the present application.

[0100] In one possible implementation, node information of a first sensor node is transmitted to N-1 sensor nodes other than the first sensor node among N sensor nodes at a first power level in order to receive unicast messages returned by the N-1 sensor nodes. If unicast messages returned by the N-1 sensor nodes are not received within a target time, the power level for transmitting the node information of the first sensor node is increased, and the node information of the first sensor node is continuously transmitted to the N-1 sensor nodes at the increased power level until unicast messages returned by M of the N-1 sensor nodes are received. If unicast messages returned by any of the N-1 sensor nodes are still not received after the power level is increased to the maximum, a notification message is transmitted to the electronic device to notify the electronic device of establishing a monitoring network based on the first sensor node. M is an integer greater than or equal to 1 and less than N.

[0101] It should be noted that the target time can be any length of time, for example, the target time is 3 minutes, and another example is the target time is 1 minute. The embodiment of the present application does not limit the length of the target time.

[0102] For example, a first sensor node sends its node information to N-1 sensor nodes excluding the first sensor node among N sensor nodes at a power level of 10. If no sensor node replies to the unicast message within the target time (3 minutes), the power level is adjusted to 9, and the node information of the first sensor node is sent to N-1 sensor nodes at a power level of 9.

[0103] In step 105 , the first sensor node receives unicast messages returned by M sensor nodes among the N−1 sensor nodes. The unicast messages carry node information of the corresponding sensor nodes.

[0104] Among them, the unicast messages returned by the M sensor nodes are also in the form of data packets, including a data packet header, data content and a data packet trailer. Among them, the data packet header is the location information of the sensor node, the data content includes the IP information of the sensor node and the operating status of the sensor node, and the data packet trailer includes the supplier information of the sensor node.

[0105] For example, there are 10 sensor nodes installed on the oil and gas pipeline, namely sensor nodes 1 to 10. Sensor node 1 is the first sensor node. Sensor node 1 sends its node information to the remaining 9 sensor nodes at the first power level. Sensor nodes 2, 3, and 4 return unicast messages. The unicast message returned by sensor node 2 carries its node information, the unicast message returned by sensor node 3 carries its node information, and the unicast message returned by sensor node 4 carries its node information.

[0106] In step 106 , the first sensor node determines the received signal strengths of the M sensor nodes based on the node information of the M sensor nodes, and determines a sensor node whose received signal strength meets the target strength as the second sensor node.

[0107] In one possible implementation, since the node information of the M sensor nodes includes the IP information of the M sensor nodes, the signals and power levels of the M sensor nodes are determined based on the IP information of the M sensor nodes. Determining the received signal strengths of the M sensor nodes based on the node information of the M sensor nodes includes: determining the signals and power levels of the M sensor nodes based on the node information of the M sensor nodes; and determining the received signal strengths of the M sensor nodes based on the signals and power levels of the M sensor nodes.

[0108] Among them, different weight parameters can be assigned to the signal of the sensor node and the power of the sensor node, and the received signal strength of the sensor node is determined according to the signal of the sensor node, the weight parameter corresponding to the signal of the sensor node, and the power of the sensor node, the weight parameter corresponding to the power of the sensor node.

[0109] For example, the signal strength of sensor node 2 is 90, the battery level is 70, the weight parameter corresponding to the signal of the sensor node is 50%, and the weight parameter corresponding to the battery level of the sensor node is 50%. Based on the signal strength of sensor node 2, the battery level, the weight parameter corresponding to the signal of the sensor node, and the weight parameter corresponding to the battery level, it is determined that the received signal strength of sensor node 2 is 80.

[0110] It should be noted that the process of determining the received signal strength of other sensor nodes is consistent with the process of determining the received signal strength of the sensor node 2 described above, and will not be repeated here.

[0111] It should also be noted that the representation of the received signal strength of the sensor node can be in the form of a numerical value or a grid number. The above only takes the representation of the received signal strength of the sensor node as a numerical value as an example, and is not used to display the representation of the received signal strength.

[0112] In one possible implementation, after determining the received signal strengths of the M sensor nodes, the process of determining the sensor node whose received signal strength meets the target strength among the M sensor nodes as the second sensor node is as follows: determining the sensor node with the largest received signal strength among the M sensor nodes as the second sensor node.

[0113] It should be noted that other methods may also be used to determine the second sensor node, which is not limited in the embodiment of the present application.

[0114] In a possible implementation, the first sensor node may further send indication information to the second sensor node. The indication information is used to instruct the creation of a forward connection between the first sensor node and the second sensor node. The indication information is also used by the second sensor node to determine other second sensor nodes according to the process of the first sensor node determining the second sensor node.

[0115] In a possible implementation, the indication information further carries hop information for indicating a link speed between the first sensor node and the second sensor node.

[0116] The relationship between hop information and link speed is shown in Table 1 below.

[0117] Table 1

[0118] Link speed Hop Information >200MB 10 >20MB, ≤200MB 20 >4MB, ≤20MB 30 >500KB, ≤4MB 40 ≤500KB 50

[0119] It can be seen from Table 1 above that when the link speed is greater than or equal to 200MB (megabytes), the corresponding hop information is 10; when the link speed is greater than 20MB and less than or equal to 200MB, the corresponding hop information is 20; when the link speed is greater than 4MB and less than or equal to 20MB, the corresponding hop information is 30; when the link speed is greater than 500KB (kilobytes) and less than or equal to 4MB, the corresponding hop information is 40; when the link speed is less than or equal to 500KB, the corresponding hop information is 50.

[0120] It should be noted that the hop information carried in the indication information and used to indicate the link speed between the first sensor node and the second sensor node is hop information randomly determined by the first sensor node.

[0121] In one possible implementation, the first sensor node further needs to send network status information to M-1 sensor nodes other than the second sensor node among the M sensor nodes. The network status information is used to indicate the network status of the M-1 sensor nodes. Since the second sensor node has been determined among the M sensor nodes, the network status of the M-1 sensor nodes other than the second sensor node among the M sensor nodes is a dormant state. The network status information is sent to the M-1 sensor nodes to inform the M-1 sensor nodes that their network status is a dormant state.

[0122] It should be noted that the process of determining other second sensor nodes is consistent with the process of determining the second sensor node by the first sensor node, and will not be described in detail here.

[0123] For example, there are 10 sensor nodes installed on an oil and gas pipeline, namely sensor nodes 1 to 10. Sensor node 1 is the first sensor node. Sensor node 1 sends its node information to the remaining 9 sensor nodes at a first power level. Based on the unicast messages returned by the remaining 9 sensor nodes, sensor node 2 is determined to be the first second sensor node. Sensor node 2 sends its node information to the remaining 8 sensor nodes at a first power level. Based on the unicast messages returned by the remaining 8 sensor nodes, sensor node 3 is determined to be the second second sensor node. Sensor node 3 sends its node information to the remaining 7 sensor nodes, but does not receive any unicast messages from them. Even after adjusting the power level, no unicast messages are received. Therefore, sensor node 3 is determined to be the last second sensor node.

[0124] In step 107 , the first sensor node sends node information of the second sensor node to the electronic device.

[0125] In a possible implementation, after determining the second sensor node in step 106 , the first sensor node sends node information of the second sensor node to the electronic device, so that the electronic device establishes a target monitoring network based on the second sensor node.

[0126] In one possible implementation, after the second sensor node identifies a second second sensor node, it also needs to send the node information of the second second sensor node to the electronic device. After the second second sensor node identifies a third second sensor node, it also needs to send the node information of the third second sensor node to the electronic device. In other words, as soon as the first sensor node identifies the second sensor node, it needs to send the node information of the second sensor node to the electronic device, thereby making the target monitoring network established by the electronic device cover more comprehensive sensor nodes.

[0127] In step 108 , the electronic device establishes a target monitoring network based on the first sensor node and the second sensor node, where the target monitoring network is used to monitor the oil and gas pipeline.

[0128] In a possible implementation, the first sensor node and the second sensor node determined above are connected to obtain a target monitoring network, which is used to monitor whether there is a fault in the oil and gas pipeline.

[0129] In one possible implementation, after the target monitoring network is established based on the first sensor node and the second sensor node, the first monitoring network is re-established in response to receiving a network error message sent by any one of the first sensor node and the second sensor node. The process of re-establishing the first monitoring network is consistent with the process of establishing the target monitoring network, and will not be repeated here.

[0130] In one possible implementation, after establishing the target monitoring network, it is necessary to monitor the target monitoring network to prevent failures in the target monitoring network. The process of monitoring the target monitoring network is as follows: beacon information is sent to the first sensor node, which transmits the beacon information in the target monitoring network. The beacon information transmission process is used to detect whether there is a failure in the target monitoring network; in response to a pause in the beacon information transmission process that exceeds a target pause time, it is determined that there is a failure in the target monitoring network. The beacon information is information that carries inspection content or repair content, which is not limited in the embodiments of the present application.

[0131] In one possible implementation, in response to a target monitoring network failure, the target monitoring network needs to be processed to obtain a repaired target monitoring network. The process is as follows: based on the transmission process of beacon information, the faulty sensor node is determined; the faulty sensor node is processed to obtain a repaired target monitoring network.

[0132] In a possible implementation, there are two implementations described below to process the faulty sensor nodes and obtain a repaired target monitoring network.

[0133] Implementation method 1: Remove the faulty sensor nodes to obtain the repaired target monitoring network.

[0134] For example, the target monitoring network includes four sensor nodes: a first sensor node, a first second sensor node, a second second sensor node, and a third second sensor node. The pause time between the first second sensor node transmitting beacon information to the second second sensor node is greater than the target pause time. Therefore, the second second sensor node is determined to be a faulty sensor node and is removed. The remaining monitoring network, consisting of the first sensor node, the first second sensor node, and the third second sensor node, serves as the repaired target monitoring network.

[0135] Implementation method 2: determine the target sensor node, replace the faulty sensor node with the target sensor node, and obtain a repaired target monitoring network.

[0136] In one possible implementation, based on the node information of the faulty sensor node, the sensor nodes adjacent to the faulty sensor node are determined, a target sensor node is determined among the sensor nodes adjacent to the faulty sensor node, and the target sensor node is used to replace the faulty sensor node to obtain a repaired target monitoring network.

[0137] The process of determining a target sensor node from among the sensor nodes adjacent to the faulty sensor node is as follows: determining the received signal strengths of the sensor nodes adjacent to the faulty sensor node, and determining the sensor node with the highest received signal strength as the target sensor node. Alternatively, other methods can be used to determine the target sensor node from among the sensor nodes adjacent to the faulty sensor node, which is not limited in this embodiment of the present application.

[0138] It should be noted that, when there is only one sensor node adjacent to the faulty sensor node, the sensor node adjacent to the faulty sensor node is directly determined as the target sensor node.

[0139] For example, the target monitoring network includes four sensor nodes: a first sensor node, a first second sensor node, a second second sensor node, and a third second sensor node. The pause time between the first second sensor node transmitting beacon information to the second second sensor node is greater than the target pause time. Therefore, the second second sensor node is determined to be a faulty sensor node. Based on the node information of the second second sensor node, the adjacent sensor nodes are determined to be sensor nodes 5 and 6. The received signal strength of sensor node 5 is determined to be 80, and the received signal strength of sensor node 6 is determined to be 70. Since the received signal strength of sensor node 5 is higher than that of sensor node 6, sensor node 5 is determined to be the target sensor node. Sensor node 5 replaces the second second sensor node, resulting in a repaired target monitoring network. The repaired target monitoring network includes the first sensor node, the first second sensor node, sensor node 5, and the third second sensor node.

[0140] It should be noted that, in response to a target monitoring network failure, any of the above implementation methods can be selected to process the faulty sensor node to obtain a repaired target monitoring network, which is not limited in the embodiments of the present application.

[0141] It should be noted that the method for establishing the monitoring network can also be described by the interaction between the server and the sensor node. The embodiment of the present application only uses the method for establishing the monitoring network as an example of the interaction between the electronic device and the sensor node, and is not used to limit the present application.

[0142] In summary, the method of the present embodiment uses high-performance sensor nodes to establish a target monitoring network, resulting in low energy consumption. Using this target monitoring network for oil and gas pipeline monitoring can improve the accuracy of oil and gas pipeline monitoring, thereby reducing the communication error rate of the target monitoring network. Furthermore, since manual on-site testing is not required, the automation level of oil and gas pipeline monitoring can be increased.

[0143] Figure 2 The flowchart shown is a method for establishing a monitoring network provided in an embodiment of the present application. The electronic device is used as the execution body, and the method includes the following steps 201 to 203.

[0144] In step 201 , based on hardware information of N sensor nodes, a first sensor node whose hardware information meets target requirements is determined, where N is an integer greater than or equal to 1, and all the N sensor nodes have a communication connection with the oil and gas pipeline.

[0145] In a possible implementation, the process of determining the first sensor node is consistent with the process of step 101 above, which will not be described in detail here.

[0146] In step 202, an information acquisition instruction is sent to the first sensor node. The information acquisition instruction is used to determine, through the first sensor node, a second sensor node whose received signal strength meets the target strength. The number of the second sensor node is at least one.

[0147] In a possible implementation, the process of sending the information acquisition instruction to the first sensor node is consistent with the process of step 102 above, and will not be described in detail here.

[0148] In step 203, a target monitoring network is established based on the first sensor node and the second sensor node, and the target monitoring network is used to monitor the oil and gas pipeline.

[0149] In a possible implementation, the process of establishing the target monitoring network is consistent with the process of step 108 above, which will not be described in detail here.

[0150] This method uses high-performance sensor nodes to establish a target monitoring network, resulting in low energy consumption. This target monitoring network improves the accuracy of oil and gas pipeline monitoring, thereby reducing the communication error rate within the target monitoring network. Furthermore, since manual on-site inspections are no longer required, the automation level of oil and gas pipeline monitoring can be increased.

[0151] Figure 3 The flowchart shown is a method for establishing a monitoring network provided by an embodiment of the present application. The method is performed by a first sensor node and includes the following steps 301 to 305 .

[0152] In step 301, an information acquisition instruction sent by an electronic device is received, where the information acquisition instruction is used to determine a second sensor node whose received signal strength meets a target strength.

[0153] In a possible implementation, the process of receiving the information acquisition instruction sent by the electronic device is consistent with the process of the above step 103 and is not repeated here.

[0154] In step 302 , node information of the first sensor node is sent to N−1 sensor nodes excluding the first sensor node among the N sensor nodes according to a first power level, where N is an integer greater than 1.

[0155] In a possible implementation, the process of sending the node information of the first sensor node to N-1 sensor nodes other than the first sensor node among the N sensor nodes according to the first power level is consistent with the process of step 104 above, which is not repeated here.

[0156] In step 303 , unicast messages returned by M sensor nodes among the N−1 sensor nodes are received. The unicast messages carry node information of the corresponding sensor nodes, where M is an integer greater than or equal to 1 and less than N.

[0157] In a possible implementation, the process of receiving unicast messages returned by M sensor nodes among the N-1 sensor nodes is consistent with the process of step 105 above, and will not be described in detail here.

[0158] In step 304 , based on the node information of the M sensor nodes, the received signal strengths of the M sensor nodes are determined, and a sensor node whose received signal strength meets the target strength among the M sensor nodes is determined as a second sensor node.

[0159] In a possible implementation, the process of determining the second sensor node is consistent with the process of step 106 above, which will not be described in detail here.

[0160] In step 305, the node information of the second sensor node is sent to the electronic device, and the electronic device establishes a target monitoring network based on the second sensor node.

[0161] In a possible implementation, the process of sending the node information of the second sensor node to the electronic device is consistent with the process of step 107 above, and is not described again here.

[0162] The above method determines the second sensor node based on the node information of M sensor nodes, so that the determined second sensor node is a sensor node with higher performance. Therefore, when a target monitoring network is established based on the second sensor node, the communication error rate of the target monitoring network can be reduced, and thus when the oil and gas pipeline is monitored based on the target monitoring network, the accuracy of the oil and gas pipeline monitoring can be improved.

[0163] Figure 4 The flowchart of the method for establishing a monitoring network provided by the embodiment of the present application is shown. Figure 4 In the process, based on the hardware information of N sensor nodes, the first sensor node is determined, the minimum power level is determined, and the node information of the first sensor node is sent to N-1 sensor nodes other than the first sensor node among the N sensor nodes based on the minimum power level. The N-1 sensor nodes are waited for to reply to the unicast message. If no sensor node replies to the unicast message, the power level continues to increase until a sensor node replies to the unicast message or the power level is increased to the maximum power level.

[0164] If no sensor node responds to the unicast message even after the power level is increased to the maximum, a target monitoring network is established based on the first sensor node. If unicast messages are received from N-1 sensor nodes, the received signal strength of the sensor node that responded to the unicast message is determined based on the unicast message; a second sensor node is determined based on the received signal strength; an indication is sent to the second sensor node, the indication being used to instruct the second sensor node to determine at least one third sensor node; and a target monitoring network is established based on the first sensor node, the second sensor node, and the at least one third sensor node. The target monitoring network is used to monitor the oil and gas pipeline.

[0165] This embodiment also provides a device for establishing a monitoring network, such as Figure 5 As shown, the device includes:

[0166] A determination module 501 is configured to determine, based on hardware information of N sensor nodes, a first sensor node whose hardware information meets target requirements, where N is an integer greater than or equal to 1, and all of the N sensor nodes have a communication connection with the oil and gas pipeline;

[0167] A sending module 502 is configured to send an information acquisition instruction to the first sensor node, wherein the information acquisition instruction is configured to determine, through the first sensor node, a second sensor node whose received signal strength meets a target strength, and the number of the second sensor node is at least one;

[0168] The establishing module 503 is configured to establish a target monitoring network based on the first sensor node and the second sensor node, where the target monitoring network is used to monitor the oil and gas pipeline.

[0169] In a possible implementation, the hardware information of the sensor node includes at least one of power, energy, and storage rate of the sensor node;

[0170] The determining module 501 is configured to determine, in response to the hardware information of the sensor node including the power of the sensor node, a sensor node whose power meets the power requirement among the N sensor nodes as the first sensor node;

[0171] Alternatively, in response to the hardware information of the sensor node including the energy of the sensor node, determining a sensor node whose energy meets the energy requirement among the N sensor nodes as the first sensor node;

[0172] Alternatively, in response to the hardware information of the sensor node including the storage rate of the sensor node, a sensor node whose storage rate meets the storage rate requirement among the N sensor nodes is determined as the first sensor node;

[0173] Alternatively, in response to the hardware information of the sensor node including at least two of the power, energy and storage rate of the sensor node, a sensor node among the N sensor nodes that meets at least two of the corresponding requirements of power, energy and storage rate is determined as the first sensor node.

[0174] In a possible implementation, the establishing module 503 is further configured to re-establish the first monitoring network in response to receiving a network error message sent by any one of the first sensor node and the second sensor node.

[0175] In a possible implementation, the sending module 502 is further configured to send beacon information to the first sensor node, and the first sensor node transmits the beacon information in the target monitoring network. The transmission process of the beacon information is used to detect whether there is a fault in the target monitoring network.

[0176] The determining module 501 is further configured to determine that a fault exists in the target monitoring network in response to a pause time during the transmission of the beacon information exceeding a target pause time.

[0177] In a possible implementation, the determining module 501 is further configured to determine a faulty sensor node based on the transmission process of the beacon information;

[0178] The device also includes:

[0179] The processing module is used to process the faulty sensor node to obtain a repaired target monitoring network.

[0180] In a possible implementation, the processing module is configured to remove the faulty sensor node to obtain a repaired target monitoring network;

[0181] Alternatively, based on the node information of the faulty sensor node, sensor nodes adjacent to the faulty sensor node are determined; a target sensor node is determined among the sensor nodes adjacent to the faulty sensor node, and the target sensor node is used to replace the faulty sensor node to obtain a repaired target monitoring network.

[0182] In summary, the device provided in the embodiments of the present application uses high-performance sensor nodes to establish a target monitoring network, resulting in low energy consumption. When used to monitor oil and gas pipelines, this target monitoring network can improve the accuracy of oil and gas pipeline monitoring, thereby reducing the communication error rate of the target monitoring network. Furthermore, since manual on-site testing is not required, the automation level of oil and gas pipeline monitoring can be increased.

[0183] This embodiment also provides a device for establishing a monitoring network, such as Figure 6 As shown, the device includes:

[0184] A receiving module 601 is configured to receive an information acquisition instruction sent by an electronic device, wherein the information acquisition instruction is configured to determine a second sensor node whose received signal strength meets a target strength;

[0185] A sending module 602 is configured to send node information of the first sensor node to N-1 sensor nodes other than the first sensor node among the N sensor nodes according to a first power level, where N is an integer greater than 1;

[0186] The receiving module 601 is configured to receive unicast messages returned by M sensor nodes among the N-1 sensor nodes, where the unicast messages carry node information of the corresponding sensor nodes, and M is an integer greater than or equal to 1 and less than N.

[0187] A determination module 603 is configured to determine received signal strengths of the M sensor nodes based on the node information of the M sensor nodes, and determine a sensor node whose received signal strength meets a target strength among the M sensor nodes as the second sensor node;

[0188] The sending module 602 is configured to send the node information of the second sensor node to the electronic device, so that the electronic device establishes a target monitoring network based on the second sensor node.

[0189] In a possible implementation, the device further includes:

[0190] an adjusting module, configured to adjust the first power level in response to not receiving a unicast message returned by M sensor nodes among the N-1 sensor nodes within a target time, to obtain an adjusted power level;

[0191] The sending module 602 is further configured to send the node information of the first sensor node to N-1 sensor nodes excluding the first sensor node among the N sensor nodes according to the adjusted power level.

[0192] In a possible implementation, the sending module 602 is further configured to send network status information to M-1 sensor nodes excluding the second sensor node among the M sensor nodes, respectively, where the network status information is used to indicate the network status of the M-1 sensor nodes.

[0193] To sum up, the device provided in the embodiment of the present application determines the second sensor node based on the node information of M sensor nodes, so that the determined second sensor node is a sensor node with higher performance. Therefore, when a target monitoring network is established based on the second sensor node, the communication error rate of the target monitoring network can be reduced, thereby improving the accuracy of oil and gas pipeline monitoring when monitoring the oil and gas pipeline based on the target monitoring network.

[0194] It should be noted that the apparatus provided in the above embodiments is merely illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0195] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.

[0196] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein at least one instruction is stored in the computer-readable storage medium. When the at least one instruction is executed by a processor of an electronic device, any of the above-mentioned methods for establishing a monitoring network is implemented.

[0197] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0198] The above description is merely an embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for establishing a monitoring network, characterized in that: Applied to electronic equipment, the method includes: Determining, based on hardware information of N sensor nodes, a first sensor node whose hardware information meets target requirements, wherein N is an integer greater than or equal to 1, and all of the N sensor nodes have a communication connection with the oil and gas pipeline; Sending an information acquisition instruction to the first sensor node, the information acquisition instruction is used to send node information of the first sensor node to N-1 sensor nodes other than the first sensor node among N sensor nodes through the first sensor node at a first power level; in response to not receiving a unicast message returned by the N-1 sensor nodes within a target time, increasing the power level of the first power, and sending the node information of the first sensor node to the N-1 sensor nodes at the increased power level until unicast messages returned by M sensor nodes among the N-1 sensor nodes are received, and determining a second sensor node whose received signal strength meets the target strength among the M sensor nodes, the number of the second sensor nodes being at least one; the first sensor node is further used to send indication information to the second sensor node, the indication information being used to instruct the establishment of a forward connection between the first sensor node and the second sensor node, the indication information being further used to instruct the second sensor node to determine other second sensor nodes according to the process by which the first sensor node determines the second sensor node, and sending the node information of the other second sensor nodes to the electronic device; Establishing a target monitoring network based on the first sensor node, the second sensor node, and the other second sensor nodes, wherein the target monitoring network is used to monitor the oil and gas pipeline; Beacon information is sent to the first sensor node, and the first sensor node transmits the beacon information in the target monitoring network. The transmission process of the beacon information is used to detect whether there is a fault in the target monitoring network; in response to a pause time exceeding a target pause time in the transmission process of the beacon information, it is determined that there is a fault in the target monitoring network; the beacon information is information carrying inspection content or repair content.

2. The method according to claim 1, characterized in that The hardware information of the sensor node includes at least one of power, energy, and storage rate of the sensor node; The step of determining, based on the hardware information of the N sensor nodes, a first sensor node whose hardware information meets the target requirement includes: In response to the hardware information of the sensor node including the power of the sensor node, determining a sensor node whose power meets the power requirement among the N sensor nodes as the first sensor node; Alternatively, in response to the hardware information of the sensor node including the energy of the sensor node, a sensor node whose energy meets the energy requirement among the N sensor nodes is determined as the first sensor node; Alternatively, in response to the hardware information of the sensor node including the storage rate of the sensor node, a sensor node whose storage rate meets the storage rate requirement among the N sensor nodes is determined as the first sensor node; Alternatively, in response to the hardware information of the sensor node including at least two of the power, energy and storage rate of the sensor node, a sensor node among the N sensor nodes that meets at least two of the power, energy and storage rate corresponding requirements is determined as the first sensor node.

3. The method according to claim 1 or 2, characterized in that After establishing the target monitoring network based on the first sensor node and the second sensor node, the method further includes: In response to receiving a network error message sent by any one of the first sensor node and the second sensor node, the first monitoring network is re-established.

4. The method according to claim 1, wherein After determining that a fault exists in the target monitoring network in response to a pause time during the transmission of the beacon information exceeding a target pause time, the method further includes: Determining a faulty sensor node based on the transmission process of the beacon information; The faulty sensor nodes are processed to obtain a repaired target monitoring network.

5. The method according to claim 4, characterized in that The processing of the faulty sensor nodes to obtain a repaired target monitoring network includes: Removing the faulty sensor nodes to obtain a repaired target monitoring network; Alternatively, based on the node information of the faulty sensor node, sensor nodes adjacent to the faulty sensor node are determined; a target sensor node is determined among the sensor nodes adjacent to the faulty sensor node, and the target sensor node is used to replace the faulty sensor node to obtain a repaired target monitoring network.

6. A method for establishing a monitoring network, characterized in that: Applied to a first sensor node, the method includes: receiving an information acquisition instruction sent by an electronic device, wherein the information acquisition instruction is used to determine a second sensor node whose received signal strength meets a target strength; Sending node information of the first sensor node to N-1 sensor nodes other than the first sensor node among the N sensor nodes according to a first power level, where N is an integer greater than 1; In response to not receiving the unicast message returned by the N-1 sensor nodes within the target time, increasing the power level of the first power to obtain an increased power level; sending the node information of the first sensor node to the N-1 sensor nodes according to the increased power level until receiving unicast messages returned by M sensor nodes among the N-1 sensor nodes; receiving unicast messages returned by M sensor nodes among the N-1 sensor nodes, where the unicast messages carry node information of the corresponding sensor nodes, and M is an integer greater than or equal to 1 and less than N; Determining received signal strengths of the M sensor nodes based on node information of the M sensor nodes, and determining a sensor node whose received signal strength meets a target strength among the M sensor nodes as the second sensor node; Sending instruction information to the second sensor node, where the instruction information is used to instruct the establishment of a forward connection between the first sensor node and the second sensor node, and the instruction information is further used to instruct the second sensor node to determine other second sensor nodes according to the process in which the first sensor node determines the second sensor node, and send node information of the other second sensor nodes to the electronic device; Sending node information of the second sensor node to the electronic device, so that the electronic device establishes a target monitoring network based on the first sensor node, the second sensor node, and the other second sensor nodes; Receive beacon information sent by the electronic device, and the transmission process of the beacon information is used to detect whether there is a fault in the target monitoring network; in response to a pause time exceeding a target pause time during the transmission process of the beacon information, it is determined that there is a fault in the target monitoring network; the beacon information is information carrying inspection content or repair content.

7. The method according to claim 6, characterized in that After determining the sensor node whose received signal strength meets the target strength among the M sensor nodes as the second sensor node, the method further includes: The network status information is sent to M-1 sensor nodes excluding the second sensor node among the M sensor nodes respectively, where the network status information is used to indicate the network status of the M-1 sensor nodes.

8. A device for establishing a monitoring network, characterized in that: The device comprises: a determination module configured to determine, based on hardware information of N sensor nodes, a first sensor node whose hardware information meets target requirements, wherein N is an integer greater than or equal to 1, and each of the N sensor nodes has a communication connection with the oil and gas pipeline; a sending module, configured to send an information acquisition instruction to the first sensor node, the information acquisition instruction being configured to send node information of the first sensor node to N-1 sensor nodes other than the first sensor node among N sensor nodes at a first power level through the first sensor node; in response to not receiving a unicast message returned by the N-1 sensor nodes within a target time, increasing the power level of the first power, and sending the node information of the first sensor node to the N-1 sensor nodes at the increased power level until unicast messages returned by M sensor nodes among the N-1 sensor nodes are received, and determining a second sensor node whose received signal strength meets the target strength among the M sensor nodes, the number of the second sensor nodes being at least one; the first sensor node being further configured to send indication information to the second sensor node, the indication information being configured to instruct establishment of a forward connection between the first sensor node and the second sensor node, the indication information being further configured to instruct the second sensor node to determine other second sensor nodes according to the process by which the first sensor node determines the second sensor node, and to send node information of the other second sensor nodes to the electronic device; An establishing module, configured to establish a target monitoring network based on the first sensor node, the second sensor node, and the other second sensor nodes, wherein the target monitoring network is used to monitor the oil and gas pipeline; The sending module is further configured to send beacon information to the first sensor node, and the first sensor node transmits the beacon information in the target monitoring network, wherein the transmission process of the beacon information is used to detect whether there is a fault in the target monitoring network; The determination module is further configured to determine that a fault exists in the target monitoring network in response to a pause time exceeding a target pause time during the transmission of the beacon information; the beacon information is information carrying inspection content or repair content.

9. A device for establishing a monitoring network, characterized in that: The device comprises: A receiving module, configured to receive an information acquisition instruction sent by an electronic device, wherein the information acquisition instruction is used to determine a second sensor node whose received signal strength meets a target strength; a sending module, configured to send node information of the first sensor node to N-1 sensor nodes excluding the first sensor node among the N sensor nodes according to a first power level, where N is an integer greater than 1; an adjusting module, configured to increase the power level of the first power to obtain an increased power level in response to not receiving the unicast message returned by the N-1 sensor nodes within a target time; The sending module is further configured to send the node information of the first sensor node to the N-1 sensor nodes according to the increased power level until a unicast message returned by M sensor nodes among the N-1 sensor nodes is received; The receiving module is configured to receive unicast messages returned by M sensor nodes among the N-1 sensor nodes, wherein the unicast messages carry node information of the corresponding sensor nodes, and M is an integer greater than or equal to 1 and less than N; a determination module, configured to determine, based on the node information of the M sensor nodes, received signal strengths of the M sensor nodes, and determine a sensor node whose received signal strength meets a target strength among the M sensor nodes as the second sensor node; send instruction information to the second sensor node, the instruction information being used to instruct the establishment of a forward connection between the first sensor node and the second sensor node, the instruction information being further used to instruct the second sensor node to determine other second sensor nodes according to the process by which the first sensor node determines the second sensor node, and send node information of the other second sensor nodes to the electronic device; The sending module is used to send the node information of the second sensor node to the electronic device, so that the electronic device establishes a target monitoring network based on the second sensor node and other second sensor nodes; The receiving module is further configured to receive beacon information sent by the electronic device, wherein the transmission process of the beacon information is used to detect whether there is a fault in the target monitoring network; The determination module is further configured to determine that a fault exists in the target monitoring network in response to a pause time exceeding a target pause time during the transmission of beacon information; the beacon information is information carrying inspection content or repair content.

Citation Information

Patent Citations

  • Target locating and tracking method and system based on wireless sensor network

    CN102573052A

  • Networking method of wireless sensor network and wireless sensor network system

    CN102647472A