Manual valve status monitoring method, monitoring system, equipment and readable storage medium

Through the sensor module designed by the main command switch and rocker arm, the problem of high energy consumption of manual valve status monitoring in a powerless wiring environment is solved, low-power valve status monitoring is achieved, operating accuracy and stability are improved, and battery life time is extended.

CN119825981BActive Publication Date: 2025-08-19SOUTH CHINA QUANTUM TECHNOLOGY (GUANGZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510087768.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-08-19
Estimated Expiration
2045-01-20

AI Technical Summary

Technical Problem

In the prior art, manual valve status monitoring relies on gyroscope sensors or magnetic inductance sensors to require power support, and cannot be used for scenarios without power wiring, and there are problems of poor operating accuracy and stability.

Method used

The sensor module designed with the main command switch and rocker arm generates forward or reverse rotation signals through the rotational drive of the manual valve, and combines the first and second mode states with low power consumption to realize manual valve status monitoring, which is suitable for powerless wiring environments.

Benefits of technology

It reduces energy consumption requirements, improves operating accuracy and stability, extends battery life time, is suitable for scenarios without power wiring, and reduces battery replacement frequency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119825981B_ABST
    Figure CN119825981B_ABST
Patent Text Reader

Abstract

The present application relates to a manual valve state monitoring method, monitoring system, equipment and readable storage medium, the method comprising: when a forward rotation signal or a reverse rotation signal is received, starting to switch the working state of the valve monitor to a first mode state; obtaining manual valve rotation information according to the number of forward rotation signals and reverse rotation signals and preset calculation rules; reporting a manual valve state change message, and after receiving a response confirmation message, marking the manual valve rotation information report as successful; the manual valve state change message includes manual valve rotation information; switching the working state of the valve monitor to a second mode state; compared with the existing monitoring method of a gyroscope sensor or a magnetic sensor, the present application adopts a completely different monitoring method and monitoring structure, cleverly combines the shape characteristics of the manual valve, and realizes manual valve state monitoring with less energy consumption, which is particularly suitable for application in scenarios without power wiring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of valve monitoring technology, and in particular to a manual valve status monitoring method, monitoring system, equipment, and readable storage medium. Background Art

[0002] Manual valves are opened and closed by rotating the handwheel to drive the valve stem. Pipeline systems (especially petrochemical oil pipelines) usually have thousands or even tens of thousands of manual valves. These rely on manual operation to judge and record the valve status, resulting in relatively poor operating accuracy and stability, leading to uncertainty in the transmission process. Summary of the Invention

[0003] In response to the above technical problems, the inventors found that the existing technology exists a method of monitoring the status of manual valves by adding gyroscope sensors or magnetic sensors to the manual valves, but these solutions usually rely on electricity to realize the monitoring function and are greatly affected by the environment, and cannot be applied in wireless usage scenarios.

[0004] The present application provides a manual valve status monitoring method, monitoring system, equipment and readable storage medium, which can realize manual valve status monitoring with less energy consumption and is suitable for application in scenarios without power wiring.

[0005] In a first aspect, the present application provides a manual valve status monitoring method, which is applied to a valve monitor. The valve monitor includes a sensor module, the sensor module includes a master switch, and the master switch is provided with a rocker arm. The rocker arm is at least partially located in the rotation path of the manual valve. When the rocker arm is driven by the manual valve to rotate, the master switch is triggered to generate a forward rotation signal or a reverse rotation signal. The method includes:

[0006] When a forward rotation signal or a reverse rotation signal is received, the working state of the valve monitor is switched to a first mode state, where the first mode state is a business state;

[0007] Obtaining manual valve rotation information based on the number of forward rotation signals and reverse rotation signals and a preset calculation rule; the manual valve rotation information is used to represent the number of forward rotations or reverse rotations of the current manual valve, and the preset calculation rule is related to the spokes of the handwheel of the current manual valve;

[0008] Reporting a manual valve state change message, and after receiving a response confirmation message, marking the manual valve rotation information as reported successfully; the manual valve state change message includes the manual valve rotation information;

[0009] The working state of the valve monitor is switched to a second mode state, where the second mode state is a sleep state.

[0010] In an optional embodiment, the method further comprises:

[0011] Regularly report device status messages; the device status messages include device ID information, battery level information, temperature information, manual valve rotation information, and fault warning information; the fault warning information is used to indicate the fault code of the abnormal status of the current monitoring device;

[0012] After reporting the device status message, the working state is switched to the second mode state.

[0013] In an optional embodiment, the method further comprises:

[0014] Periodically receive an external clock reference signal, and determine a pre-set sampling range and expected sampling value according to the type of the external clock reference signal;

[0015] Counting a local clock signal outputted by a local clock source within the sampling range to obtain a sampling value;

[0016] Compare the expected sampling value with the sampling value to obtain a difference result,

[0017] According to the difference result, the output clock frequency of the local clock source is adjusted to correct the local clock source;

[0018] After the local clock source is corrected, the working state is switched to the second mode state.

[0019] In an optional implementation, adjusting the output clock frequency of the local clock source according to the difference result includes:

[0020] When the difference result exceeds a first preset threshold, adjusting a first clock frequency output by the local clock source;

[0021] Counting within the sampling range based on the local clock signal corresponding to the first clock frequency to obtain a new sampling value;

[0022] Comparing the expected sampling value with the new sampling value to obtain a new difference result;

[0023] When the new difference result does not exceed the second preset threshold, the second clock frequency output by the local clock source is adjusted, and the second clock frequency is used as the final corrected clock frequency.

[0024] In an optional embodiment, when a forward rotation signal or a reverse rotation signal is received, before initiating switching the working state to the first mode state, the method includes:

[0025] Receiving a network access message broadcast by a wireless access device, wherein the network access message includes a time frame allocation quantity value; the time frame allocation quantity value is calculated based on the number of valve monitors to be accessed by the wireless access device;

[0026] Generate a random variable value based on the time frame allocation quantity value and device ID information, and send a response access request to the wireless access device within the time frame segment corresponding to the current random variable value;

[0027] When receiving the access completion message broadcast by the wireless access device, the current monitoring device is marked as connected to the wireless network; and the device status message is reported within the time frame corresponding to the random variable value. The device status message includes device ID information, battery power information, temperature information, manual valve rotation information and fault warning information;

[0028] Switch the working state to the second mode state.

[0029] In an optional embodiment, a random variable value is generated based on the time frame allocation quantity value and the device ID information, and after sending a reply access request to the wireless access device within the time frame segment corresponding to the current random variable value, the method includes:

[0030] receiving a new network access message broadcast by the wireless access device within a preset time, wherein the new network access message includes a new time frame allocation quantity value;

[0031] If the new time frame allocation quantity value is inconsistent with the previous time frame allocation quantity value, a random variable value is generated again according to the time frame allocation quantity value and the device ID information, and a response access request is sent to the wireless access device within the time frame segment corresponding to the current random variable value;

[0032] Until receiving the access completion message broadcast by the wireless access device.

[0033] In an optional embodiment, the method further comprises:

[0034] Receiving a device wake-up message continuously broadcast by a wireless access device within a preset air interface signal detection period;

[0035] Perform correlation sequence analysis on the received device wake-up message and the local reference wake-up sequence to obtain the peak result;

[0036] If the peak value result exceeds the preset relevant threshold, the working state is switched to the first mode state;

[0037] In the first mode, service data sent by the network device is received.

[0038] On the second aspect, the manual valve status monitoring system provided in this application includes a server, a wireless access device and several monitoring devices. The valve monitor is used to execute the manual valve status monitoring method as described in any one of the above items, the wireless access device is used to receive and forward the data reported by the valve monitor, and the server is used to perform visual analysis on the data reported by the valve monitor.

[0039] In a third aspect, the present application provides an electronic device, which includes: at least one processor and a memory; the at least one processor is coupled to the memory, and the at least one processor is used to read the computer program stored in the memory to execute the steps of any of the methods described above.

[0040] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, the steps of executing any of the above methods are implemented.

[0041] Compared with the prior art, this application has at least the following beneficial effects:

[0042] The valve monitor of the present embodiment utilizes a monitoring method that differs significantly from gyroscopes or magnetic sensors. The sensor module is designed using a master switch and a rocker arm. The master switch does not require power to activate its switching action. By cleverly integrating the shape of a manual valve and cooperating with the rocker arm, the master switch drives the rocker arm when the manual valve's handwheel is rotated. The master switch triggers the generation of a forward or reverse rotation signal, which in turn triggers the valve monitor to report changes in the manual valve's status, requiring minimal energy consumption. Furthermore, compared to gyroscopes or magnetic sensors, the sensor module employed in the present embodiment is less susceptible to environmental factors, such as temperature, humidity, and magnetic fields, and is only affected by the rotation of the manual valve. Furthermore, the valve monitor of the present embodiment is configured with a first mode and a second mode. In other words, when no external trigger is present, the valve monitor can operate in a low-power or sleep state, reducing energy consumption. This makes it particularly suitable for applications without power wiring. With the same battery capacity, it can last several times longer, significantly reducing the frequency of battery replacement. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A manual valve status monitoring system according to an embodiment of the present application;

[0044] Figure 2 A schematic diagram of the process steps of the manual valve status monitoring method according to an embodiment of the present application;

[0045] Figure 3 This is a schematic diagram of the three-dimensional structure of a valve monitor according to an embodiment of the present application;

[0046] Figure 4 This is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0047] The present invention is described in detail below with reference to specific embodiments.

[0048] The terms "system" and "network" in the embodiments of the present invention can be used interchangeably. "Multiple" refers to two or more. In view of this, "multiple" can also be understood as "at least two" in the embodiments of the present invention. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the previous and next associated objects are in an "or" relationship. In addition, it should be understood that in the description of the embodiments of the present invention, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0049] The monitoring device of the embodiment of the present application can access the network through a wired or wireless method, or through a combination of partially wireless and partially wired methods. Figure 1 As shown, an embodiment of the present application provides a manual valve status monitoring system, which can be composed of a wired access solution and a wireless access solution. The valve monitor 6 can be connected to the network after being connected to the explosion-proof wiring main box 1 through wiring. In the case where wiring cannot be performed, the valve monitor 6 is connected to the network wirelessly. The system includes a server 2, a wireless access device 5 and several valve monitors 6. The valve monitor 6 is used to collect and report the rotation status information of the manual valve 7. The wireless access device 5 is used to receive and forward the data reported by the valve monitor 6. The embodiment of the present application also includes an industrial gateway device 3, a data exchange device 4 and a visual display device. Several monitoring devices are connected to the network through the wireless access device 5. The wireless access device 5 is connected to the data exchange device 4. The data exchange device 4 is responsible for high-speed data forwarding between devices in the network. The industrial gateway device 3 communicates with the data exchange device 4 to provide remote management and control, and finally uploads the reported data to the server 2. The server 2 is used to visualize and analyze and display the data reported by the valve monitor 6.

[0050] See also Figure 2 The present embodiment includes a method for monitoring the status of a manual valve 7, which is applied to a valve monitor 6. The valve monitor 6 is at least partially located in the rotation path of the manual valve 7. When the valve monitor 6 is driven by the manual valve 7 to rotate, it triggers the generation of a forward rotation signal or a reverse rotation signal. The method includes the following steps S100 to S400:

[0051] Step S100: When a forward rotation signal or a reverse rotation signal is received, the working state is switched to a first mode state, which is a business state.

[0052] It should be noted that, see Figure 3 The valve monitor 6 of the embodiment of the present application includes a box body 61 installed at the manual valve 7, a sensor module 62 arranged on the box body 61, and a data transmission module 65 for communicating with the wireless access device 5. It should be emphasized that the valve monitor 6 is installed on the manual valve 7 with a handwheel, and the handwheel has spokes. The valve monitor 6 is at least partially located on the rotation path of the manual valve 7, that is, the sensor module 62 is partially located on the rotation path of the manual valve 7. When the sensor module 62 is driven by the manual valve 7 to rotate, it triggers the generation of a forward rotation signal or a reverse rotation signal. Specifically, the sensor module 62 includes a main switch 63, and the main switch 63 includes a movable rocker arm 64. The rocker arm 64 is located on the rotation path of the handwheel, and the rocker arm 64 can rotate left and right to trigger the generation of a forward rotation signal or a reverse rotation signal.

[0053] The valve monitor 6 includes at least two modes. The first mode is the business mode. In this first mode, all modules in the valve monitor 6 operate normally, and the communication delay between modules is small. The second mode is the sleep mode. In this second mode, except for the data transmission module 65 that periodically opens to monitor air interface data, other modules such as the signal processing module in the valve monitor 6 are in a low power consumption state or a sleep state. Only when an external trigger condition is received will the working state be switched to the normal business state. Specifically, in the embodiment of the present application, when the manual valve 7 rotates to drive the rocker arm 64 to rotate forward or reverse, the main switch 63 generates a forward rotation signal or a reverse rotation signal to trigger and wake up the other modules of the valve monitor 6.

[0054] In step S200, the rotation information of the manual valve 7 is obtained according to the number of forward rotation signals and reverse rotation signals and the preset calculation rules. The rotation information of the manual valve 7 is used to represent the number of forward rotation circles or reverse rotation circles of the current manual valve 7. The preset calculation rules are related to the handwheel spokes of the current manual valve 7.

[0055] It should be noted that when the handwheel is rotated forward to open the manual valve 7, the spokes of the handwheel reach the position of the rocker arm 64, and the rocker arm 64 is driven forward. The master switch 63 counts forward by +1. The rocker arm 64 is driven forward N times, and the master switch 63 counts forward by +N. Similarly, when the handwheel is rotated backward to open the manual valve 7, the rocker arm 64 is driven backward, and the master switch 63 counts backward by -N. For example, if the handwheel rotates forward three times and reverses once, the manual valve 7 currently rotates forward twice. When the valve monitor 6 is installed on the manual valve 7, a preset calculation rule can be set based on the number of handwheel spokes of the manual valve 7. For example, if the number of handwheel spokes is 3, if the master switch 63 counts forward by 4 and reversely by 1, the manual valve 7 has rotated forward once to open.

[0056] Step S300 , reporting a status change message of the manual valve 7 , and after receiving a response confirmation message, marking the manual valve 7 rotation information reporting as successful; the manual valve 7 status change message includes the manual valve 7 rotation information.

[0057] Before the above-mentioned step S100, the valve monitor 6 of the embodiment of the present application has been connected to the network. The valve monitor 6 can first send a request message, and after receiving the response message, establish a communication channel, report the manual valve 7 state change message, and after receiving the response confirmation message, mark the manual valve 7 rotation information as successfully reported. The manual valve 7 state change message includes the manual valve 7 rotation information and may also include a unique identification code for the message. The unique identification code can be generated in combination with the device ID information and the current time to avoid repeated data transmission.

[0058] Step S400: Switch the working state to the second mode state, which is the sleep state.

[0059] Existing solutions monitor the status of manual valve 7 by adding a gyroscopic sensor or magnetic sensor to the manual valve 7. Due to the characteristics of these sensors, they require power to operate normally and detect angular velocity or rotation angle, resulting in high energy consumption. Therefore, they can only be used in scenarios where electrical wiring is available. However, if there are a large number of manual valves 7, this wiring installation is difficult. Furthermore, it is not suitable for all petrochemical oil pipelines, potentially causing safety issues. Conventional batteries may only provide power for a few days or even less, requiring frequent battery replacement and unsuitable for situations with a large number of manual valves 7. Compared to the existing technologies, the valve monitor 6 of the present embodiment adopts a completely different monitoring method. The sensor module 62 is designed using a master switch 63 and a rocker arm 64. The master switch 63 does not require power to activate the switch. By cleverly integrating the shape of the manual valve 7 and cooperating with the rocker arm 64, the master switch 63 drives the rocker arm 64 to rotate when the manual valve handwheel rotates. The master switch 63 triggers the generation of a forward or reverse rotation signal, and the valve monitor 6 reports the status change of the manual valve 7, requiring minimal energy consumption. Furthermore, compared to gyroscopes or magnetic sensors, the present sensor module 62 is less susceptible to environmental influences, such as temperature, humidity, and magnetic fields, and is only affected by the rotation of the manual valve 7. Furthermore, the valve monitor 6 of the present embodiment is configured in a first mode and a second mode. In other words, in the absence of external triggers, the valve monitor 6 can be in a low-power or sleep state, reducing energy consumption. This makes it particularly suitable for applications without power wiring. With the same battery capacity, it can last several times longer, significantly reducing the frequency of battery replacement.

[0060] In the embodiment of the present application, before steps S100 to S400, a number of valve monitors 6 may experience access conflicts when first accessing the network, resulting in access failure. The longer the number of valve monitors 6 access time, the greater the energy consumption. Therefore, the embodiment of the present application optimizes the wireless access process to shorten the access time of the valve monitors 6. The specific method steps include the following:

[0061] Step A100: receiving a network access message broadcasted by the wireless access device 5 , the network access message including a time frame allocation quantity value; the time frame allocation quantity value is calculated based on the number of valve monitors to be accessed by the wireless access device 5 .

[0062] Before connecting to the network, valve monitor 6 can remain in the first mode and then switch to the second mode after connecting to the network, reducing power consumption. Valve monitor 6 may receive network access messages broadcast by multiple network devices (i.e., wireless access device 5) in the same time period. Based on the signal strength indicator (RSSI) and the allocated time frame value, valve monitor 6 can select the network device with the strongest signal strength and the largest allocated time frame value for network access. The allocated time frame value included in the network access message can be calculated based on the number of valve monitors in the sub-area. For example, if the number of valve monitors is estimated to be 200, the allocated time frame value can be 400.

[0063] Step A200: Generate a random variable value according to the time frame allocation quantity value and the device ID information, and send a response access request to the wireless access device 5 within the time frame segment corresponding to the current random variable value.

[0064] The minimum value of the random variable is 1, and the maximum value is the time frame allocation quantity (such as 400). By combining the unique identifier such as the device ID information to generate the random variable value, the random variable generated by the valve monitor 6 in the area can be dynamically changed, ensuring that the monitoring equipment has minimal conflict within a time period, allowing several valve monitors 6 to access the network within a time period, and speeding up the process of the valve monitor 6 accessing the network.

[0065] Network devices (such as industrial gateway devices 3 or wireless access devices 5) can infer signal conflicts based on the erroneous data received by the current wireless access device 5. If it is detected that there are a high number of conflicts in the access request of the current wireless access device 5, it is inferred that the monitoring devices in this area or this batch cannot currently access the network effectively, and it is necessary to expand the time frame allocation quantity value and then rebroadcast a new network access message. The new network access message includes a new time frame allocation quantity value, and the new time frame allocation quantity value is greater than the previous time frame allocation quantity value.

[0066] If a new network access message is received before the corresponding broadcast access completion message from the wireless access device 5 is received, a new random variable value needs to be generated again, and the above step A200 is repeated. In other words, the random variable value is generated based on the time frame allocation number value and the device ID information, and after sending a reply access request to the wireless access device 5 within the time frame segment corresponding to the current random variable value, the method includes:

[0067] A210: A new network access message broadcast by the wireless access device 5 is received within a preset time. The new network access message includes a new time frame allocation quantity value.

[0068] A220, if the new time frame allocation quantity value is inconsistent with the previous time frame allocation quantity value, a random variable value is generated again based on the time frame allocation quantity value and the device ID information, and a response access request is sent to the wireless access device 5 within the time frame segment corresponding to the current random variable value; until the access completion message broadcast by the wireless access device 5 is received.

[0069] In step A300, upon receiving the access completion message broadcast by the wireless access device 5, the current monitoring device is marked as connected to the wireless network; and a device status message is reported within the time frame corresponding to the random variable value. The device status message includes device ID information, battery power information, temperature information, manual valve 7 rotation information, and fault warning information.

[0070] It should be noted that the fault warning information is used to characterize the hardware fault condition of the current valve monitor 6, such as 001 characterizing the failure of the sensor module 62, 002 characterizing the power supply failure, etc. The message message of the embodiment of the present application can be defined based on the MQTT protocol.

[0071] Step A400: switch the working state to the second mode state.

[0072] After the valve monitor 6 is connected to the network, it can regularly report device status messages, and the server 2 can visualize this data to facilitate remote management and monitoring. The reporting time interval can be determined according to the system and energy consumption requirements. Specifically, the method also includes:

[0073] B100, regularly reports device status information; device status information includes device ID information, battery power information, temperature information, manual valve 7 rotation information and fault warning information; fault warning information is used to indicate the fault code of the abnormal status of the current monitoring device;

[0074] B200, after reporting the device status message, switches the working state to the second mode state.

[0075] It should be noted that before regularly reporting the device status message, the valve monitor 6 may be in the second mode, that is, in a dormant state or a low-power state. The timer can be configured to trigger an interrupt and start switching the working state of the valve monitor 6 to the first mode. After the business is processed, the working state can be switched to the second mode to achieve overall low power consumption and low energy consumption.

[0076] To achieve the above functions, the valve monitor 6 usually requires precise timing to ensure the reliability of data transmission. In the embodiment of the present application, the local clock source can be periodically corrected by receiving an external GPS clock signal. The method includes:

[0077] C100 periodically receives an external clock reference signal and determines a preset sampling range and an expected sampling value according to the type of the external clock reference signal.

[0078] It should be noted that the valve monitor 6 in this embodiment of the present application can include a built-in GPS receiver module to receive GPS clock signals. If the GPS clock signal is unavailable, it can also receive a broadcast clock synchronization signal to correct the local clock. The interval for regular reception can be determined based on system and energy requirements. If the signal type is GPS clock, the oscillator of the local clock source is searched and controlled to output a frequency related to the GPS clock signal, and the sampling range and expected sampling value are configured accordingly.

[0079] C200 counts the local clock signal output by the local clock source within the sampling range to obtain a sampled value. Specifically, the high-precision counter of the local clock source counts the clock signal output by the oscillator at this time. When the sampling range window is closed, the counting stops and the sampled value is obtained.

[0080] C300 compares the expected sampling value with the sampling value to obtain the difference result.

[0081] C400 adjusts the output clock frequency of the local clock source according to the difference result to correct the local clock source.

[0082] In step C400, the embodiment of the present application can adjust the output clock frequency in two steps. The first step controls the output clock frequency to be near the target frequency. The second step repeats the first step to correct the influence of various factors on the frequency, so that the clock signal frequency reaches the target frequency and the output clock frequency remains unchanged. Specifically, the method is as follows:

[0083] C410: When the difference result exceeds a first preset threshold, adjust a first clock frequency output by the local clock source.

[0084] C420, counting within a sampling range based on the local clock signal corresponding to the first clock frequency to obtain a new sampling value;

[0085] C430, compares the expected sampling value with the new sampling value to obtain a new difference result;

[0086] According to the difference result obtained in step C300, when it exceeds the first preset threshold, the frequency of the oscillator can be fine-tuned by adjusting the frequency control value of the local clock source, and the difference result can be re-counted and calculated to meet the first preset threshold so that the output clock frequency is near the target frequency, such as near the target frequency of 700MHz.

[0087] C440 , when the new difference result does not exceed the second preset threshold, adjust the second clock frequency output by the local clock source, and use the second clock frequency as the final corrected clock frequency.

[0088] That is, the output clock frequency needs to first meet the first preset threshold and then meet the second preset threshold at the target frequency, so that the clock signal frequency reaches the target frequency.

[0089] C450, after correcting the local clock source, switches the working state to the second mode.

[0090] The embodiment of the present application uses a phase-locked loop (PLL) to implement clock correction. Through the above steps C100 to C400, after two stages of frequency adjustment, a more stable clock frequency can be output to correct the local clock source.

[0091] In the second mode, most functions of the valve monitor 6 are turned off, with only a few modules such as the clock source maintaining low power consumption. The data transmission module 65 is periodically turned on to receive air interface data. Therefore, when the network device issues a service, the valve monitor device needs to be awakened. The method includes:

[0092] D100 , receiving the device wake-up message continuously broadcast by the wireless access device 5 within a preset air interface signal detection period; it should be noted that the air interface signal detection period can be preset according to the system and energy consumption.

[0093] D200, performs correlation sequence analysis on the received device wake-up message and the local wake-up reference sequence to obtain the peak result; at this time, the signal processing module is turned on to perform row demodulation and calculation processing on the data, and the data transmission module 65 is turned off. All peak results do not exceed the preset correlation threshold, and the data transmission module 65 continues to remain in sleep mode and wait for the next air interface signal detection cycle.

[0094] D300: If the peak value exceeds the preset threshold, the operating state is switched to the first mode. If at least one of the peak values exceeds the preset threshold, the air interface data is valid, and the functional modules of the valve monitor 6 are awakened, such as the data transmission module 65.

[0095] D400 receives service data sent by the network device in the first mode.

[0096] In the embodiment of the present application, before determining that the air interface data is valid, the data transmission module 65 and other modules can continue to remain in the second mode state to save energy consumption. After determining that the service needs to be received, it is adjusted to the first mode state, and in the first mode state, the service data sent by the network device is received and the service data is processed.

[0097] Based on the same technical concept, the present application also provides an electronic device, which can implement the methods provided in the above embodiments. Figure 4 As shown, electronic device 400 includes: at least one processor 401 and memory 402, and these components may be connected via one or more communication buses. The at least one processor 401 is coupled to the memory 402 and is configured to read a computer program stored in the memory to execute the methods provided in the above embodiments. The electronic device may be a computer, server, or the like.

[0098] Based on the above application embodiments, the present application embodiments further provide a computer-readable storage medium, which stores a computer program. When the computer program is executed, the computer executes the method provided in the above embodiments.

[0099] The storage medium may be any available medium that can be accessed by a computer. By way of example and not limitation, computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer.

[0100] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0101] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0102] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the scope of protection of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the essence and scope of the technical solutions of the present invention.

Claims

1. A manual valve status monitoring method, characterized in that: Applied to a valve monitor, the valve monitor includes a sensor module, the sensor module includes a master switch, the master switch is provided with a rocker arm, the rocker arm is at least partially located on the rotation path of the manual valve, when the manual valve rotates and drives the rocker arm to rotate, the master switch is triggered to generate a forward rotation signal or a reverse rotation signal; the method includes: When a forward rotation signal or a reverse rotation signal is received, the working state of the valve monitor is switched to a first mode state, where the first mode state is a business state; Obtain manual valve rotation information based on the number of forward rotation signals and reverse rotation signals and a preset calculation rule; the manual valve rotation information is used to represent the number of forward rotations or reverse rotations of the current manual valve, the preset calculation rule is related to the handwheel spokes of the current manual valve, when the handwheel spokes reach the rocker arm position, the rocker arm is driven to move forward or reverse, and the master switch counts forward or reverse once; Reporting a manual valve state change message, and after receiving a response confirmation message, marking the manual valve rotation information as reported successfully; the manual valve state change message includes the manual valve rotation information; The working state of the valve monitor is switched to a second mode state, where the second mode state is a sleep state.

2. The manual valve status monitoring method according to claim 1, characterized in that: The method further comprises: Regularly report device status messages; the device status messages include device ID information, battery level information, temperature information, manual valve rotation information, and fault warning information; the fault warning information is used to indicate the fault code of the abnormal status of the current monitoring device; After reporting the device status message, the working state is switched to the second mode state.

3. The manual valve status monitoring method according to claim 1, characterized in that: The method further comprises: Periodically receive an external clock reference signal, and determine a pre-set sampling range and expected sampling value according to the type of the external clock reference signal; Counting a local clock signal outputted by a local clock source within the sampling range to obtain a sampling value; Compare the expected sampling value with the sampling value to obtain a difference result, According to the difference result, the output clock frequency of the local clock source is adjusted to correct the local clock source; After the local clock source is corrected, the working state is switched to the second mode state.

4. The manual valve status monitoring method according to claim 3, characterized in that: The step of adjusting the output clock frequency of the local clock source according to the difference result includes: When the difference result exceeds a first preset threshold, adjusting a first clock frequency output by the local clock source; Counting within the sampling range based on the local clock signal corresponding to the first clock frequency to obtain a new sampling value; Comparing the expected sampling value with the new sampling value to obtain a new difference result; When the new difference result does not exceed the second preset threshold, the second clock frequency output by the local clock source is adjusted, and the second clock frequency is used as the final corrected clock frequency.

5. The manual valve status monitoring method according to claim 1, characterized in that: When a forward rotation signal or a reverse rotation signal is received, before starting to switch the working state to the first mode state, the method includes: Receiving a network access message broadcast by a wireless access device, wherein the network access message includes a time frame allocation quantity value; the time frame allocation quantity value is calculated based on the number of valve monitors to be accessed by the wireless access device; Generate a random variable value based on the time frame allocation quantity value and device ID information, and send a response access request to the wireless access device within the time frame segment corresponding to the current random variable value; When receiving the access completion message broadcast by the wireless access device, the current monitoring device is marked as connected to the wireless network; and the device status message is reported within the time frame corresponding to the random variable value. The device status message includes device ID information, battery power information, temperature information, manual valve rotation information and fault warning information; Switch the working state to the second mode state.

6. The manual valve status monitoring method according to claim 5, characterized in that: The method includes generating a random variable value based on the time frame allocation quantity value and device ID information, and sending a response access request to the wireless access device within the time frame segment corresponding to the current random variable value. receiving a new network access message broadcast by the wireless access device within a preset time, wherein the new network access message includes a new time frame allocation quantity value; If the new time frame allocation quantity value is inconsistent with the previous time frame allocation quantity value, a random variable value is generated again according to the time frame allocation quantity value and the device ID information, and a response access request is sent to the wireless access device within the time frame segment corresponding to the current random variable value; Until receiving the access completion message broadcast by the wireless access device.

7. The manual valve status monitoring method according to claim 1, characterized in that: The method further comprises: Receiving a device wake-up message continuously broadcast by a wireless access device within a preset air interface signal detection period; Perform correlation sequence analysis on the received device wake-up message and the local reference wake-up sequence to obtain the peak result; If the peak value result exceeds the preset relevant threshold, the working state is switched to the first mode state; In the first mode, service data sent by the network device is received.

8. Manual valve status monitoring system, characterized in that, It includes a server, a wireless access device and several valve monitors. The valve monitor is used to execute the manual valve status monitoring method as described in any one of claims 1 to 7. The wireless access device is used to receive and forward the data reported by the valve monitor. The server is used to visualize and analyze the data reported by the valve monitor.

9. An electronic device, characterized in that The device comprises: at least one processor and a memory; the at least one processor is coupled to the memory, and the at least one processor is configured to read a computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, which, when executed on a computer, implement the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Non-contact two-way communication low-power-consumption gate opening instrument for water conservancy industry

    CN116734713A

  • Method for determing a position of a valve closure element moved by a rotatable valve actuator shaft

    WO2016175800A1