Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Furthermore, the terms "first," "second," and the like are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a cold-chain logistics car 10 according to a preferred embodiment of the invention. The cold-chain logistics vehicle 10 comprises a monitoring host 300 and a plurality of collecting devices 100, wherein the collecting devices 100 are in communication connection with the monitoring host 300.
In this embodiment, the monitoring host 300 is disposed in a cab at a head position of the cold-chain logistics vehicle 10, and the plurality of collecting devices 100 are disposed in a compartment of the cold-chain logistics vehicle 10 for loading articles. The collecting device 100 is used for detecting the loaded articles in real time and sending the collected detection data to the monitoring host 300. The number of the acquisition devices 100 can be set according to actual requirements.
In this embodiment, the acquisition device 100 may be, but is not limited to, a wireless sensor using a WSN communication method. The WSN communication mode is composed of a large number of micro sensor nodes deployed in a detection area, and is a network system for wireless communication through a wireless network topology structure with a certain rule.
Referring to fig. 2, fig. 2 is a block diagram of the collecting apparatus 100 shown in fig. 1 according to a preferred embodiment of the present invention. The acquisition device 100 includes a memory 110, a processor 120, a communication unit 130, and a sensing unit 140.
The memory 110, the processor 120, the communication unit 130 and the sensing unit 140 are electrically connected to each other directly or indirectly to realize data transmission or interaction. The memory 110 stores therein program means for executing the energy saving method of the collecting apparatus, the program means including at least one software functional module which can be stored in the memory 110 in the form of software or firmware (firmware), and the processor 120 executes various functional applications and data processing by running the software programs and modules stored in the memory 110.
The memory 110 is used for storing a program, and the processor 120 executes the program after receiving an execution instruction. Further, the software programs and modules within the memory 110 may also include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
The processor 120 may be an integrated circuit chip having signal processing capabilities. The Processor 120 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed.
The communication unit 130 is used for implementing communication connection and data transmission between the acquisition device 100 and other external devices such as the monitoring host 300 through a network.
The sensing unit 140 may include: any one or combination of a plurality of sensing probes such as a temperature sensing probe, a humidity sensing probe, an infrared sensing probe and the like. The sensing unit 140 is used for detecting the environmental information in the compartment of the cold-chain logistics vehicle 10 loaded with articles in real time and collecting detection data.
It will be appreciated that the configuration depicted in fig. 2 is merely illustrative and that the acquisition device 100 may include more or fewer components than shown in fig. 2 or may have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
First embodiment
Referring to fig. 3, fig. 3 is a flowchart illustrating a step of an energy saving method for a collection device according to a first embodiment of the present invention. The method is applied to the acquisition device 100 which is in communication connection with the monitoring host 300. The acquisition device 100 comprises different operating states, wherein the different operating states comprise: working state and abnormal working state. The following describes the specific flow of the energy-saving method of the collecting device in detail.
And S100, executing a working process corresponding to the working state, detecting the working condition of the acquisition equipment 100 in the working state in real time, and judging whether the state switching condition is met according to the detection result.
And step S200, if the state switching condition is met, switching the working state to an abnormal working state.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a relationship between state switching of the acquisition device 100 according to the present invention. The abnormal working state comprises the following steps: a wake-up state, a low power state, and a weak signal state. The following describes the steps S100 and S200 according to the switching relationship between the operating state and the three abnormal operating states.
Referring to fig. 5, fig. 5 is a flowchart illustrating a step of switching a working state to a to-be-awakened state according to a first embodiment of the present invention. When the abnormal operating state is a state to be awakened, the steps S100 and S200 specifically include:
step S110, sending the acquired detection data to the monitoring host 300 according to a preset frequency, and waiting for the monitoring host 300 to reply.
In this embodiment, the preset frequency at which the acquisition device 100 sends the detection data may be set according to actual requirements. For example, the acquisition device 100 may transmit the detection data once per data sampling period of the monitoring host 300.
Step S111, detecting whether the confirmation message replied by the monitoring host 300 is received within a preset waiting time.
In this embodiment, the preset waiting time may be set according to actual requirements.
If the confirmation information is received, step S112 is executed.
Step S112, completing the data transmission task, entering a temporary sleep state, and automatically switching back to the working state when the sleep time is over.
In the present embodiment, the sleep time after the acquisition device 100 successfully transmits the data is related to the data sampling period of the monitoring host 300. The time for the collection device 100 to send and wait for the monitoring host 300 to reply is usually several tens of milliseconds, the data sampling period of the monitoring host 300 is usually 10 seconds, the sleep time of the collection device 100 in one sampling period is about 9.9 seconds, and the duty ratio of the power consumption time is only within 1%. Thus, even if the collection device 100 is in a data transmission communication state for a long time, the battery can still maintain the collection device 100 for long-time environmental data collection.
If the confirmation message is not received, step S113 is executed.
Step S113, sending the data to the monitoring host 300 for the second time, and detecting whether the confirmation message replied by the monitoring host 300 is received within the preset waiting time.
If the confirmation message is not received yet for the second time, step S210 is executed.
Step S210, determining that the acquisition device 100 is disconnected from the monitoring host 300, and the state switching condition is satisfied, and switching the working state to a state to be awakened.
In this embodiment, when the collection device 100 is disconnected from the monitoring host 300, the collection device 100 stops sending data and enters a standby state. The acquisition device 100 in the to-be-awakened state is switched back to the working state only when receiving the awakening information broadcast by the monitoring host 300.
If the confirmation message is received for the second time, the above step S112 is executed.
Referring to fig. 6, fig. 6 is a flowchart illustrating a step of switching the operating state to the low battery state according to the first embodiment of the present invention. When the abnormal operating state is a low battery state, the steps S100 and S200 specifically include:
step S120, detecting whether the electric quantity of the collecting device 100 is lower than a preset electric quantity threshold.
In this embodiment, the preset power threshold may be set according to an actual requirement, for example, the preset power threshold may be set to 20%, and when the power of the collection device 100 is detected to be lower than 20%, the collection device 100 needs to be switched to a low power state.
In step S220, if the power level is lower than the preset power threshold, it is determined that the state switching condition is satisfied, and the operating state is switched to a low power state.
Referring to fig. 7, fig. 7 is a flowchart illustrating a step of switching the operating state to the weak signal state according to the first embodiment of the present invention. When the abnormal operating state is a weak signal state, the steps S100 and S200 specifically include:
step S130, detecting whether the signal strength of the acquisition device 100 and the monitoring host 300 is less than a preset signal strength threshold.
In this embodiment, the preset signal strength threshold may be set according to actual requirements, for example, the preset signal strength threshold may be set to-70 dBm.
In step S230, if the signal strength is smaller than the preset signal strength threshold, it is determined that the state switching condition is satisfied, and the working state is switched to the weak signal state.
Referring to fig. 8, fig. 8 is a second flowchart illustrating a step of an energy saving method for a collection device according to a first embodiment of the present invention. The method further comprises the following steps:
step S300, executing a work flow corresponding to the abnormal working state, detecting a working condition of the acquisition device 100 in the abnormal working state, determining whether a state switching condition is satisfied, and switching the abnormal working state to the working state when the state switching condition is satisfied.
In this embodiment, each abnormal operating state is switched to the operating state, and the step S300 is described below according to the switching relationship in fig. 4.
Referring to fig. 9, fig. 9 is a flowchart illustrating sub-steps of step S300 shown in fig. 8 according to a first embodiment of the present invention. When the abnormal operating state is a state to be awakened, the step S300 includes:
and a substep S310, switching from the temporary sleep state to a data communication receiving state according to a preset wake-up frequency.
In this embodiment, the collection device 100 in the wake-up waiting state is in the temporary sleep state most of the time to reduce power consumption. However, the collection device 100 needs to switch from the temporary sleep state to the data communication receiving state according to a preset wake-up frequency to detect whether the monitoring host 300 wakes up the collection device 100. The preset wake-up frequency may be set according to an actual requirement, for example, every certain time (for example, 10 seconds), the acquisition device 100 automatically switches from the temporary sleep state to the data communication receiving state.
In the sub-step S311, when the collection device 100 is in a data communication receiving state, it is detected whether the wake-up information sent by the monitoring host 300 is received.
If the wake-up message is received, the acquisition device 100 is woken up, and then performs the sub-step S312.
In the substep S312, a connection request is sent to the monitoring host 300, and after receiving the confirmation message replied by the monitoring host 300, the communication connection is recovered, and the current state to be wakened is switched to the working state.
If the wake-up message is not received, the sub-step S313 is executed.
And a substep S313 of switching to the temporary sleep state to save energy consumption.
Referring to fig. 10, fig. 10 is a second flowchart illustrating sub-steps of step S300 shown in fig. 8 according to the first embodiment of the present invention. When the abnormal operating state is a low battery state, the step S300 includes:
and a substep S320 of informing the monitoring host 300 to remind the user of the battery replacement.
In an embodiment, when the collection device 100 switches from the operating state to the low battery state, the collection device 100 sends a notification message to the monitoring host 300 to remind the user of battery replacement through the monitoring host 300.
And a substep S321, collecting detection data at preset detection time intervals, and judging whether the detection data has large change and/or state alarm.
In an embodiment, the preset detection time may be set according to an actual requirement, for example, the preset detection time is set to 10 seconds. The acquisition device 100 acquires the detection data once every 10 seconds, analyzes the detection data, and judges whether the detection data has larger change compared with the last detection data and/or whether the detection data has a state alarm condition. The condition of the occurrence state alarm refers to that the detection data is lower than a preset threshold (for example, a temperature threshold, a humidity threshold, etc.).
If yes, go to step S322.
And a substep S322 of transmitting the collected detection data to the monitoring host 300.
In this embodiment, when the detection data has a larger variation than the last detection data and/or the detection data has a status alarm, the detection data needs to be sent to the monitoring host 300 for processing.
In this embodiment, a large amount of power is consumed for data transmission and data reception by the communication unit 130, and the energy consumption for communication by the communication unit 130 is much larger than that for detection by the sensing unit 140 and processing by the processor 120. The processing mode of sending the detection data only when the detection data is changed greatly and/or the state alarm occurs is adopted, so that the power consumption can be greatly reduced in practical application, and the service life of the battery can be prolonged.
If not, go to step S323 without sending the detection data.
And a substep S324 of detecting the power condition, determining that a state switching condition is satisfied when the power recovery is detected, and switching the current low power state to a working state.
Referring to fig. 11, fig. 11 is a third flowchart illustrating sub-steps of step S300 shown in fig. 8 according to the first embodiment of the present invention. When the abnormal operating state is a weak signal state, the step S300 includes:
in the sub-step S330, the monitoring host 300 selects a frequency channel with a signal strength meeting the predetermined frequency hopping technique for switching.
In this embodiment, the preset frequency hopping technique includes a frequency hopping technique using the SimpliciTI protocol. The SimpliciTI protocol is a low power radio frequency protocol for TI for simple low radio frequency networks. The frequency hopping mechanism of the SimpliciTI protocol refers to a communication strategy that when an occupied communication channel is strongly interfered by the outside, the channel is selected and switched, and available channels are found for continuous communication. The strategy has higher communication reliability, stronger channel utilization rate and higher transmission capability.
And a substep S331, when detecting signal recovery, determining that a state switching condition is satisfied, and switching the current weak signal state to a working state.
Referring to fig. 12, fig. 12 is a fourth flowchart illustrating sub-steps of step S300 shown in fig. 8 according to the first embodiment of the present invention. Referring to fig. 4 again, the abnormal operation state further includes an initial state, and the step S300 includes:
and a substep S340 of transmitting a connection request to the monitoring host 300 in response to the operation of the user start button.
In this embodiment, the collection device 100 is in a completely dormant state before accessing the monitoring host 300. Each acquisition device 100 is configured with a button that a user presses to wake up the acquisition device 100. After being awakened, the collection device 100 sends a connection request to the monitoring host 300, and if receiving the feedback information of the monitoring host 300, the collection device can successfully establish a connection with the monitoring host 300. If no feedback information of the monitoring host 300 is received, the non-collection device 100 continues to sleep.
In the substep S341, after the connection with the monitoring host 300 is successfully established, it is determined that the state switching condition is satisfied, and the initial state is switched to the working state.
Second embodiment
Referring to fig. 13, fig. 13 is a functional block diagram of a collecting apparatus 100 according to a second embodiment of the present invention. The collection device 100 is in communication connection with the monitoring host 300, the collection device 100 includes different operating states, wherein the different operating states include: the working state and abnormal working state, abnormal working state includes: wait to awaken up state, low battery state and weak signal state, collection equipment 100 includes: an operating state running module 210 and an abnormal operating state running module 220.
And the working state running module 210 is configured to execute a working process corresponding to the working state, detect the working condition of the acquisition device 100 in the working state in real time, and determine whether a state switching condition is met according to a detection result.
In the present embodiment, the operating state running module 210 is configured to execute step S100 in fig. 3, and the detailed description about the operating state running module 210 may refer to the description of step S100 in fig. 3.
The working state running module 210 is further configured to switch the working state to an abnormal working state when the state switching condition is satisfied.
In this embodiment, the operating state running module 210 is further configured to execute step S200 in fig. 3, and the detailed description about the operating state running module 210 may also refer to the description of step S200 in fig. 3.
The abnormal working state running module 220 is configured to execute a working process corresponding to the abnormal working state, detect a working condition of the acquisition device 100 in the abnormal working state, determine whether a state switching condition is met, and switch the abnormal working state to the working state when the state switching condition is met.
In this embodiment, the abnormal operation state operation module 220 is configured to execute step S300 in fig. 8, and the detailed description about the abnormal operation state operation module 220 may refer to the description of step S300 in fig. 8.
Third embodiment
Referring to fig. 14, fig. 14 is a flowchart illustrating steps of a method for saving energy of a collection device according to a third embodiment of the present invention. The energy-saving method for the collecting equipment is applied to the cold-chain logistics vehicle 10. The cold-chain logistics vehicle 10 comprises a monitoring host 300 and a plurality of acquisition devices 100, wherein the acquisition devices 100 are in communication connection with the monitoring host 300 through a wireless network. The energy saving method of the acquisition apparatus provided in the third embodiment is a method executed when the current operation state of the acquisition apparatus 100 is a weak signal state. The method comprises the following steps:
in step 410, the monitoring host 300 selects a channel with a signal strength meeting the standard according to a preset frequency hopping technology to switch, so as to realize rapid signal recovery and save energy consumption.
In this embodiment, when the signal strength of the current channel is lower than a preset signal strength threshold (for example, -70dBm), the monitoring host 300 switches to the target channel, detects the signal strength of the target channel, and determines whether the signal strength of the target channel is lower than the preset signal strength threshold. The target channel refers to a communication channel that the monitoring host 300 selects to switch.
In this embodiment, if the signal strength is not lower than the preset signal strength threshold, the monitoring host 300 communicates through the target channel with the signal strength higher than the preset signal strength threshold.
In this embodiment, if the signal strength is lower than the predetermined signal strength threshold, the monitoring host 300 switches to the next target channel again until finding the channel with the signal strength higher than the predetermined signal strength threshold.
In step 420, the collecting device 100 responds to the monitoring host 300 to select a frequency channel with a signal strength up to the standard according to a preset frequency hopping technique for switching, and switches the current weak signal state to a working state after the signal is recovered.
In this embodiment, the description of step 420 can refer to the description of sub-steps S330 and S331 in fig. 11.
In this embodiment, when the cold-chain logistics vehicle 10 travels between different locations, the wireless communication transceiving process may be subject to electromagnetic interference of different degrees, which affects the communication signal strength, and may cause communication interruption in a severe case, and poor communication quality may increase the power consumption of the device. The preset frequency hopping technology provided by the embodiment improves the anti-interference capability of communication by using the frequency hopping technology of the SimpliciTI protocol, can avoid more and more serious signal interference in time, reduces the probability of communication interruption between the acquisition device 100 and the monitoring host 300, and reduces the probability of data transmission failure, thereby avoiding increasing the electric quantity consumption of the device. The ultra-low power consumption operation of the acquisition equipment 100 is realized, and the stability of communication signals is ensured.
In summary, the present invention provides an energy saving method for a collection device and a collection device. The acquisition device comprises different operating states, wherein the different operating states comprise: the working state and abnormal working state, abnormal working state includes: a state to be awakened, a low power state and a weak signal state, the method comprising: and executing a working process corresponding to the working state, detecting the working condition of the acquisition equipment in the working state in real time, and judging whether the state switching condition is met according to the detection result. And if the state switching condition is met, switching the working state to an abnormal working state. Therefore, energy consumption is reduced by switching the operation state of the acquisition equipment and optimizing a communication mechanism, stable communication is ensured, the occurrence of abnormal communication conditions is reduced, low-power-consumption operation of the acquisition equipment is realized, and the equipment cost and the maintenance cost of cold-chain logistics management investment are reduced.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.