Data uploading method and wireless vibration sensor
By connecting the wireless vibration sensor with the sensors normally uploaded in the same LAN when the network fails, the problem of data cannot be uploaded in time due to network failure of Wi-Fi low-power wireless vibration sensors is solved, and timely uploading of data and cost savings are achieved.
Patent Information
- Application Number
- CN202310413969.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2043-04-14
AI Technical Summary
Existing Wi-Fi low-power wireless vibration sensors cannot be uploaded in time due to network failures in industrial sites, and the solution to increase storage space increases hardware costs and may lead to data loss.
The wireless vibration sensor determines network link failure, switches communication status and target sensors that are normally uploaded in the same local area network, and uses its network link to upload data to avoid the increase in hardware storage space.
It realizes timely uploading of vibration data, saves hardware costs, avoids data loss, and ensures timely monitoring of equipment failures and safe operation of industrial sites.
Smart Images

Figure CN116347383B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vibration monitoring, and in particular to a data uploading method and a wireless vibration sensor. Background Art
[0002] Battery-powered Wi-Fi low-power wireless vibration sensors (Wireless Fidelity) are currently widely used in vibration monitoring scenarios for various rotating mechanical equipment. Specifically, the Wi-Fi low-power wireless vibration sensor collects vibration data corresponding to the mechanical equipment. An industrial AP (router) is installed near the sensor as a transmission medium. The Wi-Fi low-power wireless vibration sensor can then upload the collected vibration data to the edge computing software installed on the edge server through the industrial AP (router). The edge computing software analyzes the vibration data and determines whether the mechanical equipment has failed.
[0003] Industrial sites typically include multiple industrial APs, and each industrial AP is typically connected to multiple Wi-Fi low-power wireless vibration sensors. Once an industrial AP fails, such as when a sensor cannot connect to the industrial AP, or when the sensor is connected to the industrial AP but the industrial AP cannot connect to the edge server, the vibration data collected by the sensor cannot be uploaded to the edge server. To this end, there are two main solutions in the existing technology. The first is to directly terminate the upload of vibration data after the failure occurs, and resume data upload after the operation and maintenance personnel have resolved the failure at the industrial site. The second is to add storage space to the Wi-Fi low-power wireless vibration sensor. After a failure occurs, the collected vibration data is stored in the pre-added storage space, and all stored vibration data is uploaded after the network returns to normal. However, in the second method, the Wi-Fi low-power wireless vibration sensor requires additional large-capacity storage space, which increases hardware costs. Moreover, when the fault occurs for a long time and the storage space is full, some vibration data will still be lost. In addition, both the first and second methods have the problem of vibration data not being able to be uploaded in a timely manner. If the monitored mechanical equipment has abnormal vibration during this period, it will not be identified and monitored in time, and the operation and maintenance personnel will not be able to be informed in time, which may cause serious consequences.
[0004] Therefore, how to provide a solution to the above technical problems is a problem that technicians in this field currently need to solve. Summary of the Invention
[0005] The purpose of the present invention is to provide a data uploading method and a wireless vibration sensor, which do not require additional storage space in the hardware, thus saving costs; there is no loss of vibration data, and the vibration data is uploaded through the network link corresponding to the target vibration wireless vibration sensor, thereby ensuring the timeliness of data uploading, facilitating subsequent timely processing to better realize fault monitoring of the equipment to be monitored, facilitating operation and maintenance personnel to grasp the situation in a timely manner, and facilitating the safe operation of equipment on the industrial site.
[0006] To solve the above technical problems, the present invention provides a data uploading method, which is applied to a processor in a wireless vibration sensor. The wireless vibration sensor is connected to a device to be monitored and an industrial AP, and the industrial AP is connected to a main control module. The data uploading method includes:
[0007] Determining vibration data indicating whether a fault has occurred in the device to be monitored;
[0008] Determine whether a corresponding network link for uploading the vibration data fails;
[0009] If so, change its own communication state to a data upload failure state so that a target wireless vibration sensor can establish a connection with the wireless vibration sensor, wherein the target wireless vibration sensor is a wireless vibration sensor in the same local area network as the wireless vibration sensor and in a normal data upload state;
[0010] When receiving an acquisition signal sent by the target wireless vibration sensor indicating acquisition of the vibration data, the vibration data is sent to the target wireless vibration sensor, so that the target wireless vibration sensor uploads the vibration data to the main control module through its corresponding network link.
[0011] Preferably, the wireless vibration sensor is also connected to the main control module;
[0012] Determining that a corresponding network link for uploading the vibration data fails includes:
[0013] Based on the communication connection status identifier stored in the wireless communication module in itself, it is determined whether the communication between itself and the industrial AP fails;
[0014] If it is determined that the communication between itself and the industrial AP fails, it is determined that the network link corresponding to itself for uploading the vibration data fails;
[0015] If it is determined that there is no failure in the communication between itself and the industrial AP, a communication status detection signal is sent to the main control module;
[0016] Determining whether a feedback signal is received, where the feedback signal is a signal sent by the main control module based on the communication status detection signal indicating that communication is normal;
[0017] If the feedback signal is not received, it is determined that the corresponding network link for uploading the vibration data fails.
[0018] Preferably, before changing its own communication state to the data upload failure state, it also includes:
[0019] Determining whether the network link has returned to normal within a preset reconnection time;
[0020] If not, proceed to the step of changing the communication status to the data upload failure status.
[0021] Preferably, changing the communication state to a data upload failure state includes:
[0022] Change its own communication connection mode to the preset sensor recognition connection mode;
[0023] The network status identifier is set to a fault characteristic identifier that indicates that the device is in a network fault state, so that a target wireless vibration sensor can establish a connection with the wireless vibration sensor based on the fault characteristic identifier. The target wireless vibration sensor is a wireless vibration sensor that is in the same local area network as the device and is in a normal data uploading state.
[0024] Preferably, the step of establishing a connection between the target wireless vibration sensor and the wireless vibration sensor based on the fault characteristic identifier includes:
[0025] The target wireless vibration sensor determines whether there is a wireless vibration sensor to be connected in the local area network that is in the preset sensor identification connection mode and whose network status identifier is the fault characteristic identifier;
[0026] If yes, sorting based on the wireless communication signal strength between each of the wireless vibration sensors to be connected;
[0027] sending an initial signal for attempting to establish a connection to each of the wireless vibration sensors to be established according to the order;
[0028] Determining whether a connection-enabled signal fed back by the wireless vibration sensor to be connected based on the initial signal is received;
[0029] If not, it is determined that the wireless vibration sensor to be connected is in a connection-completed state, so as to send the initial signal to the next wireless vibration sensor to be connected according to the sequence.
[0030] Preferably, when determining that the network link corresponding to itself has not failed, the method includes:
[0031] Uploading the vibration data to the main control module via the network link;
[0032] Sending the first current moment of the clock module in the self to the main control module;
[0033] receiving a first standard time and time characteristic data sent by the main control module, wherein the time characteristic data is data determined and fed back by the main control module based on the first current time and used for calibrating the timing error of the wireless vibration sensor;
[0034] Updating the second current time of the clock module to the first standard time;
[0035] Determining a theoretical target sleep duration based on a third current time of the clock module and a preset initial wake-up time point;
[0036] The theoretical sleep duration is calibrated according to the time characteristic data to obtain an actual target sleep duration.
[0037] Preferably, the step of the main control module determining the time characteristic data based on the first current moment includes:
[0038] When receiving the first current time, the main control module obtains a fourth current time of a clock module in the main control module;
[0039] Determining time characteristic data corresponding to the wireless vibration sensor based on a first preset relationship, the first current moment, the fourth current moment, and a historical moment, where the historical moment is the fourth current moment obtained when the main control module last received the first current moment;
[0040] The first preset relationship is:
[0041] T1=3600*(time1-time3') / (time3-time3')
[0042] Among them, T1 is the time characteristic data, time1 is the first current moment, time3' is the historical moment, and time3 is the fourth current moment.
[0043] Preferably, performing a timing calibration process on the theoretical sleep duration according to the time characteristic data to obtain an actual target sleep duration includes:
[0044] determining an actual target sleep duration based on a second preset relationship, the time characteristic data, and the theoretical sleep duration;
[0045] The second preset relationship is:
[0046] T2=M*T1 / 3600
[0047] Wherein, T2 is the actual target sleep time, M is the theoretical sleep time, and T1 is the time characteristic data.
[0048] Preferably, after establishing a connection with the target wireless vibration sensor, the method further includes:
[0049] Receive the second standard time sent by the target wireless vibration sensor to determine its own actual target sleep duration based on the second standard time and historical time feature data, where the historical time feature data is the time feature data most recently sent by the main control module.
[0050] To solve the above technical problems, the present invention further provides a wireless vibration sensor, which is connected to the device to be monitored and an industrial AP, and the industrial AP is connected to a main control module. The wireless vibration sensor includes:
[0051] Wireless communication module;
[0052] Memory for storing computer programs;
[0053] An acquisition module, configured to acquire vibration data indicating whether a fault has occurred in the device to be monitored;
[0054] A processor is connected to the memory, the wireless communication module and the acquisition module, and is used to implement the steps of the data uploading method as described above when executing the computer program.
[0055] The present application provides a data uploading method and a wireless vibration sensor. The scheme determines vibration data that characterizes whether a device to be monitored has failed, determines whether its corresponding network link has failed, and if so, changes its own communication state to a data upload failure state, so that a target wireless vibration sensor that is in the same local area network as itself and is in a normal data upload state can establish a connection with itself, and then, when receiving an acquisition signal sent by the target wireless vibration sensor, the vibration data is sent to the target wireless vibration sensor, so that the target wireless vibration sensor can upload the vibration data to the main control module through its corresponding network link. Compared with the existing technology, the scheme does not require additional storage space in the hardware, saving costs; there is no loss of vibration data, and the vibration data is uploaded through the network link corresponding to the target vibration wireless vibration sensor, ensuring the timeliness of data upload, facilitating subsequent timely processing to better realize fault monitoring of the device to be monitored, helping operation and maintenance personnel to grasp the situation in a timely manner, and ensuring the safe operation of equipment at the industrial site. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the prior art and the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 A flow chart of a data uploading method provided by the present invention;
[0058] Figure 2 This is a structural schematic diagram of a wireless vibration sensor provided by the present invention. DETAILED DESCRIPTION
[0059] The core of the present invention is to provide a data uploading method and a wireless vibration sensor, which does not require additional storage space on the hardware, saving costs; there is no loss of vibration data, and the vibration data is uploaded through the network link corresponding to the target vibration wireless vibration sensor, ensuring the timeliness of data uploading, which is conducive to subsequent timely processing to better realize fault monitoring of the monitored equipment, helping operation and maintenance personnel to grasp the situation in a timely manner, and ensuring the safe operation of equipment on the industrial site.
[0060] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0061] Please refer to Figure 1 , Figure 1 The present invention provides a flow chart of a data uploading method.
[0062] In this embodiment, it is taken into account that multiple industrial APs in the industrial site may fail, such as the Wi-Fi low-power wireless vibration sensor cannot connect to the industrial AP, or the Wi-Fi low-power wireless vibration sensor is normally connected to the industrial AP but the industrial AP cannot be normally connected to the edge server, which will cause the vibration data collected by the Wi-Fi low-power wireless vibration sensor to be unable to be uploaded to the edge server. For this reason, in the prior art, either directly wait until the operation and maintenance personnel have handled the failure before uploading, or additional storage space is added to store the vibration data collected during the failure; however, the method of adding hardware storage increases the cost, and if the failure time is long, data loss may still occur after the hardware is full, and both of the above two methods have the problem that vibration data cannot be uploaded in time, which is not conducive to practical application. In order to solve the above technical problems, the present application provides a data uploading method, which ensures the timeliness of data uploading and is conducive to subsequent fault determination.
[0063] The data uploading method is applied to the processor in the wireless vibration sensor. The wireless vibration sensor is connected to the device to be monitored and the industrial AP. The industrial AP is connected to the main control module. The data uploading method includes:
[0064] S11: Determine vibration data indicating whether a failure occurs in the equipment to be monitored;
[0065] It should be noted that the equipment to be monitored can be various mechanical equipment, which is not particularly limited here; the main control module can specifically be the edge server described in the above embodiment; an industrial AP can be connected to multiple wireless vibration sensors at the same time, but a wireless vibration sensor is only connected to one industrial AP in STA mode, so that the vibration data can be uploaded through the network link of wireless vibration sensor-corresponding industrial AP-main control module; of course, the wireless vibration sensor can also be set to AP mode, and in AP mode, the wireless vibration sensor can be connected to other wireless vibration sensors.
[0066] The wireless vibration sensor can be specifically a Wi-Fi low-power wireless vibration sensor, which is easy to install and deploy and does not require power supply at the industrial site. The sensor may include a processor, an acquisition module, a wireless communication module, a storage module, a power management module and a reset button. The processor includes but is not limited to an MCU (Microcontroller). Unit, micro control unit), which can be specifically an STM32 series chip or other MCU chip, with a main frequency of more than 100MHz to meet computing requirements, and the peripheral circuit of the MCU includes an RTC (i.e., a clock module in the wireless vibration sensor), a crystal oscillator module, and a 3.3V power supply; the acquisition module is specifically used to collect the vibration data, and transmit it to the processor through a serial port such as SPI / I2C via an ADC chip (analog signal to digital signal chip), so that the processor determines the vibration data collected this time; the wireless communication module can be specifically a Wi-Fi module, and the Wi-Fi module can be connected to the processor for communication, and the vibration data determined by the processor is uploaded to the main control module via the Wi-Fi module and the industrial AP; of course, as described in the following embodiments, the wireless vibration sensor can also be directly connected to the main control module. At this time, the processor specifically realizes communication with the main control module through the Wi-Fi module; the storage module can specifically adopt SRAM (Synchronous Random Access Memory), EEPROM (Electrically Erasable Programmable read only The storage module consists of a SRAM (Electrically Erasable Programmable Read-Only Memory) and a Flash chip. The storage module can be connected to the processor via SPI or a serial port. The SRAM stores the raw vibration data collected each time, the EEPROM stores the sensor's configuration parameters, and the Flash is used to store the eigenvalue data calculated each time and the parameter values required for the calculation. The power management module is battery-powered to meet the power requirements of various modules in the wireless vibration sensor, such as 3.3V, 2.5V, and 1.8V.
[0067] It should also be noted that the wireless vibration sensor defaults to AP mode, which is a mode that can be connected to other wireless vibration sensors. The change of this mode can be achieved by connecting the wireless vibration sensor to a computer device such as a mobile phone or laptop. Specifically, after connecting to the wireless vibration sensor, the corresponding industrial AP connection parameters and mode switching command are sent to the sensor to switch the wireless vibration sensor to STA mode. In STA mode, the wireless vibration sensor can be connected to the industrial AP or other wireless vibration sensors.
[0068] S12: Determine whether the corresponding network link for uploading vibration data is faulty; if so, proceed to S13;
[0069] S13: changing its own communication state to a data upload failure state so that a target wireless vibration sensor can establish a connection with the wireless vibration sensor, where the target wireless vibration sensor is a wireless vibration sensor that is in the same local area network as the self and is in a normal data upload state;
[0070] Specifically, as explained above, each wireless vibration sensor has a corresponding network link to upload vibration data through the corresponding industrial AP. Therefore, corresponding to the network link, whether it is a communication abnormality between the wireless vibration sensor and the corresponding industrial AP, or a communication abnormality between the corresponding industrial AP and the main control module, it will cause the failure of uploading vibration data; since multiple wireless vibration sensors are deployed in the same local area, when it is determined that the corresponding network link has failed, based on step S13, its own communication state is changed to the data upload failure state, so that the target wireless vibration sensor can establish a connection with the wireless vibration sensor in the data upload failure state, wherein the target wireless vibration sensor is specifically one of the wireless vibration sensors in the local area network that is in the normal data uploading state.
[0071] It is understandable that if it is determined that the network link has not failed, the collected vibration data can be uploaded to the main control module through its corresponding network link according to the normal data upload logic, so that the main control module can determine whether the monitored equipment has failed based on the vibration data.
[0072] In addition, when it is determined that the network link fails, an alarm message can be output so that the operation and maintenance personnel can grasp the situation in time and perform network maintenance.
[0073] S14: upon receiving an acquisition signal indicating acquired vibration data sent by the target wireless vibration sensor, the vibration data is sent to the target wireless vibration sensor, so that the target wireless vibration sensor uploads the vibration data to the main control module through its corresponding network link.
[0074] Specifically, after the target wireless vibration sensor is connected to the wireless vibration sensor in the data uploading failure state, the target wireless vibration sensor will send an acquisition signal to obtain the vibration data, and then the target wireless vibration sensor will replace the failed wireless vibration sensor to upload the data.
[0075] In summary, the present application provides a data uploading method. Compared with the existing technology, this solution does not require additional storage space in the hardware, saving costs; there is no loss of vibration data, and the vibration data is uploaded through the network link corresponding to the target vibration wireless vibration sensor, which ensures the timeliness of data uploading, facilitates subsequent timely processing to better realize fault monitoring of the equipment to be monitored, helps operation and maintenance personnel to grasp the situation in time, and helps to ensure the safe operation of equipment at industrial sites.
[0076] Based on the above embodiment:
[0077] As a preferred embodiment, the wireless vibration sensor is further connected to the main control module;
[0078] Determine if the corresponding network link for uploading vibration data has failed, including:
[0079] Based on the communication connection status identifier stored in its own wireless communication module, it determines whether the communication between itself and the industrial AP is faulty;
[0080] If it is determined that the communication between itself and the industrial AP fails, it is determined that the corresponding network link for uploading vibration data fails;
[0081] If it determines that there is no failure in the communication between itself and the industrial AP, it sends a communication status detection signal to the main control module;
[0082] Determine whether a feedback signal is received, where the feedback signal is a signal sent by the main control module based on the communication status detection signal indicating that the communication is normal;
[0083] If no feedback signal is received, it is determined that the corresponding network link for uploading vibration data has failed.
[0084] In this embodiment, execution logic for determining whether a corresponding network link for uploading vibration data has failed is provided, and the implementation is simple and reliable. Specifically, taking the wireless vibration sensor as a Wi-Fi low-power wireless vibration sensor as an example, the wireless communication module is specifically a Wi-Fi module, which stores a communication connection status identifier, which indicates whether the communication link between the wireless vibration sensor and the corresponding industrial AP is interrupted. Therefore, based on this identifier, it can be determined whether the communication between the wireless vibration sensor and the corresponding industrial AP has failed. If so, it indicates that the network link has indeed failed. If not, it is further determined whether the communication link between the wireless vibration sensor and the main control module is interrupted, that is, a communication status detection signal is sent to the main control module. If a feedback signal is received, it can be determined that the corresponding network link has not failed. If no feedback signal is received, it is determined that the corresponding network link has failed.
[0085] As a preferred embodiment, before changing its own communication state to the data upload failure state, it also includes:
[0086] Determine whether the network link has returned to normal within the preset reconnection time;
[0087] If not, proceed to the step of changing the communication status to the data upload failure status.
[0088] In this embodiment, in order to ensure the accuracy of the result of the network link failure judgment, before changing its own communication status to the data upload failure status, it is judged whether the network link has recovered to a normal state within the preset reconnection time. The specific value of the preset reconnection time is not particularly limited, and includes but is not limited to 10 seconds; and the specific logic of the judgment step can refer to the execution logic of judging that the corresponding network link has failed in the above embodiment, and then when it is judged that the corresponding network link for uploading vibration data has failed within the preset reconnection time, it is determined that the network link has not recovered to a normal state within the preset reconnection time, so as to enter the step of changing its own communication status to the data upload failure state; otherwise, it is determined that the network link has recovered to a normal state, so as to process it according to the normal data upload logic.
[0089] It should also be noted that when it is determined that the network link has not recovered to a normal state within the preset reconnection time, the MAC address of the industrial AP corresponding to the wireless vibration sensor may also be added to a blacklist.
[0090] As a preferred embodiment, changing the communication state to a data upload failure state includes:
[0091] Change its own communication connection mode to the preset sensor recognition connection mode;
[0092] The network status identifier is set to a fault characteristic identifier representing that the device is in a network fault state, so that the target wireless vibration sensor can establish a connection with the wireless vibration sensor based on the fault characteristic identifier. The target wireless vibration sensor is a wireless vibration sensor that is in the same local area network as the device and is in a normal data uploading state.
[0093] This embodiment provides execution logic for changing its communication state to a data upload failure state. Specifically, taking the wireless vibration sensor as a Wi-Fi low-power wireless vibration sensor as an example, the communication connection modes include AP mode and STA mode. AP mode indicates that the wireless vibration sensor can be connected to other wireless vibration sensors, while STA mode indicates that the wireless vibration sensor can be connected to an industrial AP or other wireless vibration sensors.
[0094] When the network link does not fail, the communication connection mode of the wireless vibration sensor is STA mode; when the network link fails, the communication connection mode of the wireless vibration sensor is changed to a preset sensor identification connection mode (i.e., AP mode) to create a connection basis, and the network status identifier is set to a fault characteristic identifier representing that the sensor is in a network failure state. Specifically, this step can be to set the SSID of the wireless vibration sensor to an easily recognizable "AP_SENSOR_XXXX", where XXXX is the unique 4-digit data number of the wireless vibration sensor, so that the target wireless vibration sensor can establish a connection with the wireless vibration sensor based on the fault characteristic identifier.
[0095] It is understandable that the faulty wireless vibration sensor will enter sleep mode after completing the transmission of vibration data to save power. After the next wake-up, the wireless vibration sensor will still maintain the AP mode until the operation and maintenance personnel have handled the network link failure. The wireless vibration sensor in AP mode can be manually awakened. Specifically, the wireless vibration sensor can be connected to a computer device such as a mobile phone or laptop, and the communication connection mode of the wireless vibration sensor can be changed back to STA mode, and the corresponding industrial AP can be deleted from the blacklist.
[0096] As a preferred embodiment, the step of establishing a connection between the target wireless vibration sensor and the wireless vibration sensor based on the fault characteristic identifier includes:
[0097] The target wireless vibration sensor determines whether there is a wireless vibration sensor to be connected in the local area network that is in a preset sensor identification connection mode and whose network status is marked as a fault characteristic mark;
[0098] If so, sorting is performed based on the wireless communication signal strength between each wireless vibration sensor to be connected;
[0099] Sending an initial signal for attempting to establish a connection to each wireless vibration sensor to be established according to the order;
[0100] Determine whether a connection-enabled signal based on an initial signal feedback from the wireless vibration sensor to be connected is received;
[0101] If not, it is determined that the wireless vibration sensor to be connected is in a connection-completed state, so as to send an initial signal to the next wireless vibration sensor to be connected according to the sequence.
[0102] In this embodiment, the execution logic for establishing a connection between a target wireless vibration sensor and a wireless vibration sensor is provided. Specifically, the target wireless vibration sensor is in a normal data uploading state. After completing its own vibration data uploading work, it can determine whether the wireless vibration sensor to be established exists in the local area network. Furthermore, the specific processing steps of this step can be: scanning the SSIDs of all wireless vibration sensors to see whether there is a device with a network status identified as "AP_SENSOR_XXXX". If so, further determining whether the device is in a preset sensor identification connection mode (i.e., AP mode). If so, determining that the device is a wireless vibration sensor to be established.
[0103] The wireless communication signal includes but is not limited to a Wi-Fi signal, which is sorted based on the Wi-Fi signal strength between each wireless vibration sensor to be connected. Specifically, the devices can be sorted from high to low according to the Wi-Fi signal strength to form a list of devices to be connected; an initial signal is sent to each wireless vibration sensor to be connected according to the sorting. Specifically, the initial signal can be sent starting from the wireless vibration sensor to be connected that is first in the sorting position. After receiving the initial signal, if the wireless vibration sensor to be connected is not in a completed connection state, it will feedback a connection-enabled signal, and the target wireless vibration sensor will successfully connect with the current wireless vibration sensor to be connected, and vibration data will be transmitted subsequently; if the wireless vibration sensor to be connected is already in a completed connection state, it can feedback a connection-unable signal, and the target wireless vibration sensor will send an initial signal to the next wireless vibration sensor to be connected in the list of devices to be connected according to the sorting to try to connect.
[0104] It is understandable that after the target wireless vibration sensor performs the above steps with all the wireless vibration sensors to be linked according to the order, it enters a dormant state and waits for the next wake-up.
[0105] As a preferred embodiment, when determining that the corresponding network link has not failed, the method includes:
[0106] Upload the vibration data to the main control module through the network link;
[0107] Send the first current moment of the clock module in itself to the main control module;
[0108] Receiving a first standard time and time characteristic data sent by the main control module, where the time characteristic data is data determined and fed back by the main control module based on the first current time and used for timing error calibration of the wireless vibration sensor;
[0109] Updating the second current time of the clock module to the first standard time;
[0110] Determine a theoretical target sleep duration based on a third current moment of the clock module and a preset initial wake-up moment;
[0111] The theoretical sleep duration is calibrated according to the time characteristic data to obtain the actual target sleep duration.
[0112] In this embodiment, it is further considered that the wireless vibration sensor does not need to continuously collect vibration data for a long time, and only needs to collect data once or several times a day for the monitored device. Precisely because the time interval between two adjacent vibration data collections in this scenario is long, in order to save energy, the Wi-Fi low-power wireless vibration sensor usually enters a sleep mode according to a pre-configured duration after uploading data to the edge server (i.e., the main control module) each time to sleep for a certain duration. Specifically, the clock module RTC (Real-Time Clock, real-time clock) in the low-power wireless vibration sensor is used for timing, so as to exit the sleep mode when the sleep time reaches the pre-configured duration to re-collect data and upload it. For example, if the sleep duration is set to 1 hour, the wireless vibration sensor will wake up exactly 1 hour after entering sleep. In actual vibration monitoring scenarios, multiple low-power wireless vibration sensors are usually set up to synchronously collect vibration data and analyze it. The time error of synchronous collection is generally required to be in the millisecond level. However, in reality, the power-on time of each low-power wireless vibration sensor is manually operated, which is difficult to maintain consistency. In addition, as the low-power wireless vibration sensors age and the operating environment changes (such as changes in environmental factors such as temperature and humidity), the timing of each RTC will have errors, and this error will accumulate as the working time increases, making it impossible to synchronize data collection with multiple low-power wireless vibration sensors.
[0113] To this end, in this application, when it is determined that the network link corresponding to the wireless vibration sensor has not failed, the vibration data is uploaded to the main control module through its own corresponding network link, and then a timing calibration process is performed. Specifically, the wireless vibration sensor includes a clock module (i.e., RTC), which determines that the current moment of the clock module is the first current moment and sends it to the main control module; for the main control module, after receiving the first current moment, it determines and feeds back the first standard moment and time feature data, wherein the first standard moment is after the time feature data is determined and before the information is transmitted, and the moment of the clock module in the current main control module is determined as the first standard moment. Since the time required for the main control module to send information to the wireless vibration sensor and receive the information is in microseconds, this time error can be ignored. Therefore, for the wireless vibration sensor, after receiving the first standard moment and time feature data, the moment of the clock module in itself (i.e., the second current moment) is updated to the first standard moment.
[0114] Subsequently, the moment of the current clock module is determined (i.e., the third current moment, where the second current moment is different from the third current moment, and the reason for the difference is that it takes time to update the above-mentioned first standard moment), and the theoretical target sleep duration is determined based on the third current moment and the preset initial wake-up time point. Since there is a timing error in the clock module, the theoretical sleep duration is calibrated according to the time characteristic data to obtain the actual target sleep duration. After determining the actual target sleep duration, the wireless vibration sensor immediately enters sleep. At the same time, the clock module starts timing, and wakes up again when the timing duration reaches the actual target sleep duration.
[0115] It should be noted that there may be multiple groups of wireless vibration sensor groups in the current industrial site, each group includes multiple wireless vibration sensors, and the expected sleep time of the wireless vibration sensors in the same group is usually the same, such as being set to sleep for 8 hours; taking a group of wireless vibration sensor groups as an example, as an initialization step, first configure the multiple wireless vibration sensors in the group with the same expected sleep time, and manually power on each sensor. This process does not require synchronous power-on; any wireless vibration sensor collects vibration data for the first time after power-on, and uploads the vibration data to the main control module. At this time, the main control module determines the standard time based on the time value of its internal clock module, and sends the standard time to the wireless vibration sensor. For example, if the time value of the clock module inside the main control module is aaaa year bb month cc day dd hour ee minute ff second ggg millisecond, then the time value of the clock module of the wireless vibration sensor will also be configured to aaaa year bb Month cc day dd hour ee minute ff second ggg millisecond, where the microsecond time in the information transmission process is ignored. After completing the above-mentioned time calibration, the wireless vibration sensor calculates backward based on the set expected sleep time length with the reference time point as the reference point to obtain multiple initial wake-up time points. For example, assuming that the expected sleep time length is N hours, N=8, and the reference time point is 0 o'clock, then N, 2N, 3N, etc. are calculated backward in sequence to obtain the initial wake-up time points of 0 o'clock, 8 o'clock, and 16 o'clock. The time value of the clock module in the current wireless vibration sensor is determined, and the calculation is performed in combination with the preset initial wake-up time point. Assuming that the time value is 15:00:00, it can also sleep for 1 hour and wake up at 16:00:00 on the 1st hour to collect vibration data. After the sensor wakes up from sleep for the first time, it collects vibration data and uploads it. At this time, the above-mentioned step of sending the first current time of the clock module in itself to the main control module is entered.
[0116] It can be seen that through the setting of the above execution logic, the wireless vibration sensor can be calibrated according to the time of the main control module to ensure that the time difference with the main control module is at the millisecond level. For multiple wireless vibration sensors in the same group, their preset initial wake-up time points are usually the same. Furthermore, this step can also enable the wireless vibration sensors in the same group to basically achieve the synchronous acquisition function. Even if the wireless vibration sensor ages or works in extreme high and low temperature environments, the synchronous acquisition function can still be maintained.
[0117] As a preferred embodiment, the step of determining the time characteristic data based on the first current moment by the main control module includes:
[0118] When receiving the first current time, the main control module obtains the fourth current time of the clock module in the main control module;
[0119] Determine time characteristic data corresponding to the wireless vibration sensor based on the first preset relationship, the first current moment, the fourth current moment, and the historical moment, where the historical moment is the fourth current moment obtained when the main control module last receives the first current moment;
[0120] The first preset relationship is:
[0121] T1=3600*(time1-time3') / (time3-time3')
[0122] Among them, T1 is time feature data, time1 is the first current moment, time3' is the historical moment, and time3 is the fourth current moment.
[0123] In this embodiment, the execution logic for determining the time signature data by the main control module is provided. The details are described above and will not be repeated here. It can be seen that this method can simply and reliably determine the time signature data of each wireless vibration sensor. Of course, the time signature data of each wireless vibration sensor is usually different.
[0124] As a preferred embodiment, the theoretical sleep duration is calibrated according to the time characteristic data to obtain the actual target sleep duration, including:
[0125] Determining an actual target sleep duration based on the second preset relationship, the time characteristic data, and the theoretical sleep duration;
[0126] The second preset relationship is:
[0127] T2=M*T1 / 3600
[0128] Among them, T2 is the actual target sleep time, M is the theoretical sleep time, and T1 is the time feature data.
[0129] In this embodiment, the logic for determining the actual target sleep duration is provided, as described above, and will not be repeated here. It should be noted that after determining the actual target sleep duration, the wireless vibration sensor immediately enters sleep mode, and the clock module starts timing. When the timing reaches the actual target sleep duration, the sensor wakes up.
[0130] As a preferred embodiment, after establishing a connection with the target wireless vibration sensor, the method further includes:
[0131] Receive the second standard time sent by the target wireless vibration sensor to determine its own actual target sleep duration based on the second standard time and historical time feature data, where the historical time feature data is the time feature data most recently sent by the main control module.
[0132] In this embodiment, considering that for the target wireless vibration sensor in a normal data uploading state, its working steps are: collecting vibration data - uploading vibration data - performing timing calibration according to the information transmitted by the main control module to determine the corresponding actual target sleep time - transmitting vibration data to the faulty wireless vibration sensor - determining the remaining target sleep time - sleeping according to the remaining target sleep time (wherein the remaining target sleep time is the actual target sleep time minus the time for helping the faulty wireless vibration sensor to upload data), that is, the time value of the target wireless vibration sensor must be the result of timing calibration according to the time value of the main control module. Therefore, after establishing a connection with the target wireless vibration sensor, the second standard time sent by the target wireless vibration sensor can be received, and considering that the historical time feature data is in a period of time, The change in time is usually not very large. Therefore, in order to still ensure the synchronous wake-up of the same group of wireless vibration sensors, the actual target sleep time of the faulty wireless vibration sensor can be determined based on the second standard time and the historical time feature data. Specifically, the time value of the current clock module of the faulty sensor is updated to the second standard time. Based on the current time value of the clock module after the update and the preset initial wake-up time point, the theoretical target sleep time is determined. According to the theoretical target sleep time and the historical time feature data, the expected target sleep time is determined. It should be noted that since the faulty wireless vibration sensor needs to spend a certain transmission time from receiving the acquisition signal to sending the vibration data to the target wireless vibration sensor, the actual target sleep time can be obtained by subtracting the transmission time from the expected target sleep time, and the sensor immediately enters sleep.
[0133] It can be seen that the above execution logic can ensure that multiple wireless vibration sensors in the same group can be woken up synchronously as much as possible to collect vibration data regardless of whether a fault occurs.
[0134] The present invention also provides a data upload system, which is applied to a processor in a wireless vibration sensor. The wireless vibration sensor is connected to a device to be monitored and an industrial AP, and the industrial AP is connected to a main control module. The data upload system includes:
[0135] a vibration data determining unit, configured to determine vibration data indicating whether a fault has occurred in the device to be monitored;
[0136] A judgment unit, configured to judge whether a corresponding network link for uploading the vibration data has failed; if so, entering a modification unit;
[0137] The changing unit is used to change its own communication state to a data upload failure state so that a target wireless vibration sensor and the wireless vibration sensor are connected, and the target wireless vibration sensor is a wireless vibration sensor in the same local area network as the wireless vibration sensor and in a normal data uploading state;
[0138] The sending unit is configured to send the vibration data to the target wireless vibration sensor upon receiving an acquisition signal sent by the target wireless vibration sensor indicating acquisition of the vibration data, so that the target wireless vibration sensor uploads the vibration data to the main control module through its corresponding network link.
[0139] For an introduction to the data uploading system provided in the present invention, please refer to the embodiment of the above-mentioned data uploading method, which will not be described in detail here.
[0140] The present invention also provides a computer-readable storage medium, comprising:
[0141] The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the data uploading method described above.
[0142] For an introduction to the computer-readable storage medium provided in the present invention, please refer to the embodiment of the above-mentioned data uploading method, which will not be repeated here.
[0143] Please refer to Figure 2 , Figure 2 This is a structural schematic diagram of a wireless vibration sensor provided by the present invention.
[0144] The wireless vibration sensor is connected to the device to be monitored and the industrial AP4, and the industrial AP4 is connected to the main control module 5. The wireless vibration sensor includes:
[0145] Wireless communication module 31;
[0146] Memory 32, for storing computer programs;
[0147] An acquisition module 33 is used to acquire vibration data indicating whether the device to be monitored has failed;
[0148] The processor 34 is connected to the memory 32, the wireless communication module 31 and the acquisition module 33, and is used to implement the steps of the data uploading method as described above when executing the computer program.
[0149] For an introduction to the wireless vibration sensor provided in the present invention, please refer to the embodiment of the above-mentioned data uploading method, which will not be described in detail here.
[0150] It should be noted that Figure 2 In the figure, two wireless vibration sensors (a first wireless vibration sensor 21 and a second wireless vibration sensor 22) are used as an example for illustration.
[0151] The present invention also provides a monitoring system, comprising:
[0152] Industrial AP, connected to the main control module;
[0153] The main control module;
[0154] The wireless vibration sensor is connected to the device to be monitored and the industrial AP, and is used to implement the steps of the data uploading method as described above when executing a computer program.
[0155] For an introduction to the monitoring system provided in the present invention, please refer to the embodiment of the above-mentioned data uploading method, which will not be repeated here.
[0156] In this specification, the various embodiments are described in a progressive manner, with each embodiment focusing on the differences from the other embodiments. Similar or identical parts between the various embodiments may be referred to in conjunction with each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and for relevant parts, reference may be made to the method section. Relational terms such as first and second are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any actual relationship or order between these entities or operations. Furthermore, the terms "comprise," "include," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such a process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.
[0157] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. The above description of the disclosed embodiments enables professional and technical personnel in this field to implement or use the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data uploading method, characterized in that: A processor is applied to a wireless vibration sensor, wherein the wireless vibration sensor is connected to a device to be monitored and an industrial AP, and the industrial AP is connected to a main control module. The data uploading method includes: Determining vibration data indicating whether a fault has occurred in the device to be monitored; Determine whether a corresponding network link for uploading the vibration data fails; If so, change its own communication state to a data upload failure state so that a target wireless vibration sensor can establish a connection with the wireless vibration sensor, wherein the target wireless vibration sensor is a wireless vibration sensor in the same local area network as the wireless vibration sensor and in a normal data upload state; Upon receiving an acquisition signal sent by the target wireless vibration sensor indicating acquisition of the vibration data, the vibration data is sent to the target wireless vibration sensor, so that the target wireless vibration sensor uploads the vibration data to the main control module through its corresponding network link; When it is determined that the network link corresponding to the network link is not faulty, the method includes: The vibration data is uploaded to the main control module through the network link; the first current moment of the clock module in itself is sent to the main control module; the first standard moment and time characteristic data sent by the main control module are received, and the time characteristic data is the data determined and fed back by the main control module based on the first current moment for calibrating the timing error of the wireless vibration sensor; the second current moment of the clock module is updated to the first standard moment; based on the third current moment of the clock module and the preset initial wake-up time point, the theoretical target sleep duration is determined; and the theoretical target sleep duration is calibrated according to the time characteristic data to obtain the actual target sleep duration.
2. The data uploading method according to claim 1, wherein: The wireless vibration sensor is also connected to the main control module; Determining that a corresponding network link for uploading the vibration data fails includes: Based on the communication connection status identifier stored in the wireless communication module in itself, it is determined whether the communication between itself and the industrial AP fails; If it is determined that the communication between itself and the industrial AP fails, it is determined that the network link corresponding to itself for uploading the vibration data fails; If it is determined that there is no failure in the communication between itself and the industrial AP, a communication status detection signal is sent to the main control module; Determining whether a feedback signal is received, where the feedback signal is a signal sent by the main control module based on the communication status detection signal indicating that communication is normal; If the feedback signal is not received, it is determined that the corresponding network link for uploading the vibration data fails.
3. The data uploading method according to claim 1, wherein: Before changing its own communication status to the data upload fault state, it also includes: Determining whether the network link has returned to normal within a preset reconnection time; If not, proceed to the step of changing the communication status to the data upload failure status.
4. The data uploading method according to claim 1, wherein: Change its own communication status to data upload failure status, including: Change its own communication connection mode to the preset sensor recognition connection mode; The network status identifier is set to a fault characteristic identifier that indicates that the device is in a network fault state, so that a target wireless vibration sensor can establish a connection with the wireless vibration sensor based on the fault characteristic identifier. The target wireless vibration sensor is a wireless vibration sensor that is in the same local area network as the device and is in a normal data uploading state.
5. The data uploading method according to claim 4, wherein: The step of establishing a connection between the target wireless vibration sensor and the wireless vibration sensor based on the fault characteristic identifier includes: The target wireless vibration sensor determines whether there is a wireless vibration sensor to be connected in the local area network that is in the preset sensor identification connection mode and whose network status identifier is the fault characteristic identifier; If yes, sorting based on the wireless communication signal strength between each of the wireless vibration sensors to be connected; sending an initial signal for attempting to establish a connection to each of the wireless vibration sensors to be established according to the order; Determining whether a connection-enabled signal fed back by the wireless vibration sensor to be connected based on the initial signal is received; If not, it is determined that the wireless vibration sensor to be connected is in a connection-completed state, so as to send the initial signal to the next wireless vibration sensor to be connected according to the sequence.
6. The data uploading method according to claim 1, wherein: The step of the main control module determining the time characteristic data based on the first current moment includes: When receiving the first current time, the main control module obtains a fourth current time of a clock module in the main control module; Determining time characteristic data corresponding to the wireless vibration sensor based on a first preset relationship, the first current moment, the fourth current moment, and a historical moment, where the historical moment is the fourth current moment obtained when the main control module last received the first current moment; The first preset relationship is: ; in, is the time characteristic data, is the first current moment, For the historical moment, is the fourth current moment.
7. The data uploading method according to claim 1, wherein: Performing a timing calibration process on the theoretical target sleep duration according to the time characteristic data to obtain an actual target sleep duration includes: determining an actual target sleep duration based on a second preset relationship, the time characteristic data, and the theoretical target sleep duration; The second preset relationship is: ; in, is the actual target sleep duration, is the theoretical target sleep duration, is the time characteristic data.
8. The data uploading method according to claim 1, wherein: After establishing a connection with the target wireless vibration sensor, the method further includes: Receive the second standard time sent by the target wireless vibration sensor to determine its own actual target sleep duration based on the second standard time and historical time feature data, where the historical time feature data is the time feature data most recently sent by the main control module.
9. A wireless vibration sensor, characterized in that: The wireless vibration sensor is connected to the device to be monitored and the industrial AP, and the industrial AP is connected to the main control module. The wireless vibration sensor includes: Wireless communication module; memory for storing computer programs; An acquisition module, configured to acquire vibration data indicating whether a fault has occurred in the device to be monitored; A processor is connected to the memory, the wireless communication module and the acquisition module, and is used to implement the steps of the data uploading method according to any one of claims 1 to 8 when executing the computer program.
Citation Information
Patent Citations
Fault handling method and device
CN104935466A
Method and apparatus for enabling wireless controller to obtain wireless access point fault information
CN108235351A