Manual valve state monitoring method, monitoring system, equipment and readable storage medium
By using the sensor module designed by the main command switch and rocker arm on the manual valve, combined with the configuration of the first and second mode states, the problem of power required for manual valve status monitoring in the prior art is solved, and low energy consumption monitoring in the scenario without power wiring is achieved, which extends the equipment usage time.
Patent Information
- Application Number
- CN202510087768.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2045-01-20
AI Technical Summary
The prior art requires power to rely on manual valve status monitoring and is not suitable for use scenarios without power wiring, resulting in the construction of power wiring in the case of a large number of manual valves, and is not safe.
The sensor module designed with the main command switch and rocker arm drives the rocker arm to rotate through the rotation of the manual valve. The main command switch triggers the forward or reverse rotation signal to realize monitoring of the manual valve status, and configures the first mode state and the second mode state to reduce energy consumption.
It realizes low-energy-consuming manual valve status monitoring in scenarios without power wiring, extends battery usage time, reduces battery replacement frequency, and is suitable for scenarios with a large number of manual valves.
Smart Images

Figure CN119825981A_ABST
Abstract
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] The opening and closing of manual valves are achieved by rotating the handwheel to drive the valve stem. For pipeline systems (especially petrochemical oil pipelines), there are usually thousands or even tens of thousands of manual valves, which rely on manual operation to judge and record the valve status. There are relatively poor operating accuracy and stability, which leads to uncertainty in the transmission process. Summary of the invention
[0003] In response to the above technical problems, the inventors found that in the prior art there is a method of monitoring the status of a manual valve by adding a gyroscope sensor or a magnetic sensor to the manual valve, but these solutions usually need to 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, a monitoring system, a device and a readable storage medium, which can realize manual valve status monitoring with less energy consumption and are suitable for application scenarios without power wiring.
[0005] In a first aspect, the manual valve state monitoring method provided by the present application is applied to a valve monitor, wherein the valve monitor comprises a sensor module, wherein the sensor module comprises a master switch, wherein the master switch is provided with a rocker arm, wherein the rocker arm is at least partially located on a rotation path of the manual valve, and 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 comprises: 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, wherein the first mode state is a business state; According to the number of the forward rotation signal and the reverse rotation signal and the preset calculation rule, the manual valve rotation information is obtained; 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 hand wheel spokes of the current manual valve; Reporting a manual valve state change message, and after receiving a response confirmation message, marking the manual valve rotation information as being successfully reported; 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, wherein the second mode state is a sleep state.
[0006] In an optional embodiment, the method further comprises: Regularly report device status messages; the device status messages include device ID information, battery power information, temperature information, manual valve rotation information and fault warning information; the fault warning information is used to characterize the fault code of the abnormal state of the current monitoring device; After reporting the device status message, the working state is switched to the second mode state.
[0007] In an optional embodiment, the method further comprises: Periodically receiving an external clock reference signal, and determining a preset sampling range and an 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.
[0008] In an optional implementation, 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 a 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.
[0009] In an optional embodiment, 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 broadcasted 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 according to the time frame allocation quantity value and the 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 to be 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.
[0010] In an optional implementation, a random variable value is generated according to a time frame allocation quantity value and device ID information, and after sending a response access request to the wireless access device within a time frame segment corresponding to the current random variable value, the method includes: 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.
[0011] In an optional embodiment, 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 a 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.
[0012] On the second aspect, the manual valve status monitoring system provided in the present 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 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 visualize and analyze the data reported by the valve monitor.
[0013] In a third aspect, the present application provides an electronic device, the device comprising: 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.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the steps of executing any of the above methods are implemented.
[0015] Compared with the prior art, this application has at least the following beneficial effects: The valve monitor of the embodiment of the present application adopts a monitoring method that is completely different from that of the gyroscope sensor or the magnetic sensor. The sensor module is designed through the main command switch and the rocker arm. The main command switch does not need to be powered on to perform the switch action. It cleverly combines the shape characteristics of the manual valve and cooperates with the rocker arm. When the hand wheel of the manual valve rotates, the rocker arm is driven to rotate. The main command switch triggers the generation of a forward rotation signal or a reverse rotation signal, and the valve monitor reports the manual valve state change message, which requires less energy consumption. In addition, compared with the gyroscope sensor or the magnetic sensor, the sensor module used in the present application is also less affected by the environment, such as less affected by environmental factors such as temperature, humidity, and magnetic field, and is only related to the rotation action of the manual valve. In addition, the valve monitor of the embodiment of the present application is configured with a first mode state and a second mode state. In other words, under no external trigger conditions, the valve monitor can be in a low power consumption state or a dormant state to reduce energy consumption. It is particularly suitable for use in scenarios / situations without power wiring. Under the same battery capacity, it can be used several times longer, greatly reducing the frequency of battery replacement. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A manual valve status monitoring system according to an embodiment of the present application; Figure 2 A schematic diagram of the process steps of the manual valve status monitoring method according to an embodiment of the present application; Figure 3 A schematic diagram of the three-dimensional structure of a valve monitor according to an embodiment of the present application; Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0017] The present invention is described in detail below in conjunction with specific embodiments.
[0018] The terms "system" and "network" in the embodiments of the present invention can be used interchangeably. "Multiple" means two or more than two. 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 subsequent associated objects are in an "or" relationship. In addition, it should be understood that in the description of the embodiments of the present invention, the words "first", "second", etc. 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.
[0019] 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, the 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 a plurality of 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, etc. Several monitoring devices are connected to the network through the wireless access device 5, and 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 the data reported by the valve monitor 6.
[0020] See also Figure 2 The embodiment of the present application includes a method for monitoring the state of a manual valve 7, which is applied to a valve monitor 6. The valve monitor 6 is at least partially located on 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-S400: Step S100, when a forward rotation signal or a reverse rotation signal is received, the working state is switched to a first mode state, and the first mode state is a business state.
[0021] It should be noted that see Figure 3The 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 command switch 63, and the main command 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.
[0022] The valve monitor 6 includes at least two modes. The first mode is the business state. In the first mode, each module in the valve monitor 6 works normally and the communication delay between modules is small. The second mode is the sleep state. In the second mode, except for the data transmission module 65 that periodically opens to monitor the air interface data, other modules such as the signal processing module are in a low power consumption state or a sleep state. Only when an external trigger condition is received, the working state is switched to a 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 other modules of the valve monitor 6.
[0023] Step S200, obtaining the rotation information of the manual valve 7 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 characterize the number of forward rotations or reverse rotations of the current manual valve 7, and the preset calculation rules are related to the handwheel spokes of the current manual valve 7.
[0024] It should be noted that when the hand wheel is rotated forward to open the manual valve 7, the spokes of the hand wheel reach the position of the rocker arm 64, the rocker arm 64 is driven to move forward, the master switch 63 forward counts +1, the rocker arm 64 is driven to move forward N times, the master switch 63 forward counts +N, and similarly, when the hand wheel is rotated backward to open the manual valve 7, the rocker arm 64 is driven to move backward, the master switch 63 reverse counts -N. For example, if the hand wheel rotates forward 3 times and reversely 1 time, the current manual valve 7 rotates forward 2 times. When the valve monitor 6 is installed on the manual valve 7, the preset calculation rule can be set according to the number of hand wheel spokes of the manual valve 7. For example, if the number of hand wheel spokes is 3, if the master switch 63 forward counts 4 and reverse counts 1, the manual valve 7 rotates forward to open 1 circle.
[0025] Step S300 , reporting a manual valve 7 state change message, and after receiving a response confirmation message, marking the manual valve 7 rotation information reporting as successful; the manual valve 7 state change message includes the manual valve 7 rotation information.
[0026] 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 a response message, establish a communication channel, report a manual valve 7 state change message, and after receiving a response confirmation message, mark the manual valve 7 rotation information report as successful. 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.
[0027] Step S400, switching the working state to a second mode state, the second mode state being a sleep state.
[0028] The prior art solution monitors the state of the manual valve 7 by adding a gyro sensor or a magnetic sensor to the manual valve 7. Due to the characteristics of the gyro sensor or the magnetic sensor, power supply is required to drive normal operation, detect angular velocity or rotation angle, and the energy consumption is large. Therefore, it can only be used in scenes with power wiring. However, when the number of manual valves 7 is large, the power wiring construction is difficult, and it is not applicable to all petrochemical oil pipelines, which may easily cause safety problems. If conventional batteries are used, they may only be able to supply power for a few days or even shorter, so the battery needs to be replaced frequently, and it is not applicable to the situation where the number of manual valves 7 is large. Compared with the prior art, the valve monitor 6 of the embodiment of the present application adopts a monitoring method completely different from the previous two. The sensor module 62 is designed by the main switch 63 and the rocker arm 64. The main switch 63 does not need to be powered on to perform the switching action. It cleverly combines the shape characteristics of the manual valve 7 and cooperates with the rocker arm 64. When the handwheel of the manual valve rotates, the rocker arm 64 is driven to rotate. The main switch 63 triggers the generation of a forward rotation signal or a reverse rotation signal, and the valve monitor 6 reports the manual valve 7 state change message, which requires less energy consumption. Moreover, compared with the gyro sensor or the magnetic sensor, the sensor module 62 is less affected by the environment, such as temperature, humidity, magnetic field and other environmental factors, and is only related to the rotation of the manual valve 7. In addition, the valve monitor 6 of the embodiment of the present application is configured with a first mode state and a second mode state. In other words, in the absence of external trigger conditions, the valve monitor 6 can be in a low power consumption state or a dormant state to reduce energy consumption, which is particularly suitable for use in situations where there is no power wiring. Under the same battery capacity, it can be used several times longer, greatly reducing the frequency of battery replacement.
[0029] In the embodiment of the present application, before steps S100 to S400, a plurality of valve monitors 6 may encounter access conflicts when accessing the network for the first time, resulting in access failure. The longer the access time of the plurality of valve monitors 6 is, the greater the energy consumption is. 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: 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.
[0030] Before the valve monitor 6 is connected to the network, it can remain in the first mode state, and then switch to the second mode state after connecting to the network to reduce power consumption. The valve monitor 6 may receive network access messages broadcast by multiple network devices (that is, wireless access devices 5) in the same time period, and can select based on the signal strength value (RSSI, Received Signal Strength Indicator) and the time frame allocation number value, and preferably access the network device with the strongest signal strength value and the largest time frame allocation number value. The time frame allocation number value contained in the network access message can be calculated based on the number of valve monitors in the sub-area, such as twice the number of valve monitors in the coverage area of the wireless access device 5. For example, if the number of monitoring devices is estimated to be 200, the time frame allocation number value can be 400.
[0031] 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.
[0032] 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 valve monitor 6 accessing the network.
[0033] 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 equipment 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.
[0034] If a new network access message is received again before receiving the corresponding broadcast access completion message of the wireless access device 5, a new random variable value needs to be generated again, and the above step A200 is repeated. That is, the random variable value is generated according to the time frame allocation quantity value and the device ID information, and after sending a response access request to the wireless access device 5 within the time frame segment corresponding to the current random variable value, the method includes: A210: receiving a new network access message broadcast by the wireless access device 5 within a preset time, wherein the new network access message includes a new time frame allocation quantity value.
[0035] 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 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 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.
[0036] Step A300, when the corresponding broadcast access completion message of the wireless access device 5 is received, the current monitoring device is marked as connected to the wireless network; and the device status message is reported within the time frame segment 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.
[0037] 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 fault of the sensor module 62, 002 characterizing the power supply fault, etc. The message message of the embodiment of the present application can be defined based on the MQTT protocol.
[0038] Step A400, switch the working state to the second mode state.
[0039] After the valve monitor 6 is connected to the network, it can regularly report the device status message, so that the server 2 can visualize the data and 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: B100, regularly report device status messages; device status messages include device ID information, battery power information, temperature information, manual valve 7 rotation information and fault warning information; fault warning information is used to characterize the fault code of the abnormal state of the current monitoring device; B200, after reporting the device status message, switches the working state to the second mode state.
[0040] 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 sleep state or a low power consumption state. The interrupt can be triggered by configuring the timer to 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.
[0041] To achieve the above functions, the valve monitor 6 usually requires precise timing to ensure the reliability of data transmission. The embodiment of the present application can periodically calibrate the local clock source by receiving an external GPS clock signal. The method includes: 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.
[0042] It should be noted that the valve monitor 6 of the embodiment of the present application can be equipped with a built-in GPS receiving module to receive the GPS clock signal. When the GPS clock signal cannot be received, the broadcast clock synchronization signal can also be received to correct the local clock. The time interval for regular reception can be determined according to the system and energy consumption requirements. If the type is a GPS clock signal, 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.
[0043] C200 counts the local clock signal output by the local clock source within the sampling range to obtain the sampling value. Specifically, the high-precision counter of the local clock source counts the clock signal output by the oscillator at this time, and stops counting when the sampling range window is closed to obtain the sampling value.
[0044] C300 compares the expected sampling value with the sampling value to obtain the difference result.
[0045] C400 adjusts the output clock frequency of the local clock source according to the difference result to correct the local clock source.
[0046] In step C400, the embodiment of the present application can adjust the output clock frequency twice. The first time, the output clock frequency is controlled to be near the target frequency. The second time, the method steps of the first time are repeated 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 is kept unchanged. Specifically, the method is as follows: C410: When the difference result exceeds a first preset threshold, adjust a first clock frequency output by a local clock source.
[0047] C420, counting within a sampling range based on a local clock signal corresponding to the first clock frequency to obtain a new sampling value; C430, compares the expected sampling value with the new sampling value to obtain a new difference result; 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 recalculated 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.
[0048] 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.
[0049] 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.
[0050] C450, after correcting the local clock source, switches the working state to the second mode state.
[0051] The embodiment of the present application uses a phase locked loop (PLL) to implement clock correction. Through the above steps C100-C400, after two stages of frequency adjustment, a more stable clock frequency can be output to correct the local clock source.
[0052] In the second mode, most functions of the valve monitor 6 are in a closed state, and only a few modules such as the clock source maintain low power consumption. The data transmission module 65 is periodically opened to receive air interface data. Therefore, when the network device sends a service, the door monitoring device needs to be awakened. The method includes: D100, receiving a 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.
[0053] D200, perform 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 demodulate and process 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 waits for the next air interface signal detection cycle.
[0054] D300, if the peak value result exceeds the preset relevant threshold, start switching the working state to the first mode state. If at least one of all the peak values exceeds the preset relevant threshold, it proves that the air interface data is valid, and then start waking up the functional modules of the valve monitor 6, such as waking up the data transmission module 65.
[0055] D400 receives service data sent by the network device in the first mode.
[0056] 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, the module adjusts to the first mode state, receives the service data sent by the network device in the first mode state, and processes the service data.
[0057] 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, the electronic device 400 includes: at least one processor 401 and a memory 402, and the above-mentioned devices can be connected through one or more communication buses. Among them, the at least one processor 401 is coupled to the memory 402, and is used to read the computer program stored in the memory to execute the methods provided in the above embodiments. The electronic device can be a computer, a server, etc.
[0058] Based on the above application embodiments, the present application embodiments further provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the computer executes the method provided in the above embodiments.
[0059] The storage medium may be any available medium that can be accessed by a computer. For example, but not limited to, a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.
[0060] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may 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 may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0061] 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 box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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.
[0062] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate 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 A function specified in one or more boxes.
[0063] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution 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 solution of the present invention can be modified or replaced by equivalents without departing from the essence and scope of the technical solution 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 rocker arm is driven by the manual valve to rotate, the master switch triggers 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, wherein the first mode state is a business state; According to the number of the forward rotation signal and the reverse rotation signal and the preset calculation rule, the manual valve rotation information is obtained; 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 hand wheel spokes of the current manual valve; Reporting a manual valve state change message, and after receiving a response confirmation message, marking the manual valve rotation information as being successfully reported; 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, wherein 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 power information, temperature information, manual valve rotation information and fault warning information; the fault warning information is used to characterize the fault code of the abnormal state 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 receiving an external clock reference signal, and determining a preset sampling range and an 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 a 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 broadcasted 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 according to the time frame allocation quantity value and the 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 to be 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 comprises: generating a random variable value according to the time frame allocation quantity value and the device ID information, and sending a reply 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 a 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 monitoring devices. The valve monitor is used to execute the manual valve status monitoring method as described in any one of claims 1 to 8. 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 used to read a computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 8.
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 executing the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Vehicle signal
CA283668A
Opening control device of electrically operated valve
CN102777660A
Electric valve control device and electric valve device including the same
CN108019550A
Locating monitoring device of valve location of rail valve and monitoring method
CN109737234A
Multi-rotary hydraulic valve
CN110953359A