A low power consumption communication method, device, system, equipment and storage medium

By using the time deviation judgment of the clock chip between the slave node and the master node to determine the sleep mode, the problem of high power consumption in wireless communication meter reading is solved, a low-power communication method is realized, and the service life of the equipment is extended.

CN118803461BActive Publication Date: 2024-11-19ZHEJIANG CHINT INSTR & METER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411268259.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-11-19
Estimated Expiration
2044-09-11

AI Technical Summary

Technical Problem

The existing wireless communication technology consumes a high power consumption during meter reading and cannot meet the low power consumption needs.

Method used

By realizing the time deviation judgment of the clock chip between the slave node and the master node, it is determined whether to enter the sleep mode and calculate the sleep time based on the time deviation, thereby reducing power consumption without affecting data reporting.

Benefits of technology

Low-power communication between slave nodes and master nodes is realized, reducing the power consumption of the device when it is not working, and extending the service life of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803461B_ABST
    Figure CN118803461B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of communication technology, and in particular to a low-power communication method, device, system, equipment and storage medium. The method includes: when a slave node is awakened from a sleep mode, reading the current time of a first clock chip inside the slave node; judging whether the time deviation between the current time and a first preset wake-up time is greater than the first preset time deviation; when greater than, re-entering the sleep mode; when not greater than the first preset time deviation, reporting the slave node data to a master node that is not in sleep mode, the master node that is not in sleep mode is a master node that is awakened from a sleep mode and judges that the time deviation between the current time of a second clock chip and the second preset wake-up time is not greater than the second preset time deviation, and the second clock chip is a clock chip inside the master node. In this communication method, the slave node and the master node switch working modes synchronously, and enter sleep mode when both are not working, thereby realizing low-power communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a low-power communication method, device, system, equipment and storage medium. Background Art

[0002] With the rapid development of my country's national economy, the improvement of people's living standards, the continuous expansion of housing completion rate and commercialization, electricity, water and gas have become an indispensable part of life. Residents have higher and higher requirements for the surrounding environment of their homes, the management quality of property departments, and the level of public utility services. At the same time, residents pay more and more attention to privacy rights, and the traditional public utility service mode (manual meter reading at home) is increasingly incompatible with the development of society.

[0003] The centralized meter reading technology was born. Wired meter reading technology uses industrial buses such as RS-485 and MBus, which requires complex wiring projects. With the development of wireless technology, water companies, gas companies, etc. are increasingly inclined to use wireless communication technology for meter reading. However, the current use of wireless communication technology for meter reading has the problem of high power consumption. Summary of the invention

[0004] In view of this, the present invention provides a low-power communication method, device, system, equipment and storage medium to solve the problem of how to achieve low-power meter reading.

[0005] In a first aspect, the present invention provides a low-power communication method, which is applied to a slave node, and the method includes: when the slave node is awakened from a sleep mode, reading the current time of a first clock chip, the first clock chip being a clock chip inside the slave node; judging whether the time deviation between the current time and a first preset wake-up time is greater than the first preset time deviation; when it is greater than the first preset time deviation, re-entering the sleep mode; when it is not greater than the first preset time deviation, reporting the slave node data to a master node that is not in sleep mode, the master node that is not in sleep mode is a master node in which the time deviation between the current time of a second clock chip after being awakened from sleep mode and the second preset wake-up time is not greater than the second preset time deviation, the second clock chip is a clock chip inside the master node, and the first preset time deviation is equal to the second preset time deviation.

[0006] In the low-power communication method provided by the embodiment of the present invention, after the slave node or the master node is awakened from the sleep mode, the time deviation between the current time and the preset wake-up time is first determined. When the time deviation is not greater than the first or second preset time deviation, neither the slave node nor the master node will enter the sleep mode, and at this time the slave node reports the slave node data to the master node. Therefore, in the communication method, the slave node and the master node switch the working mode synchronously, and enter the sleep mode when both are not working, thereby realizing low-power communication.

[0007] In an optional embodiment, the first preset wake-up time is the sum of the last time the slave node reported to the master node and the preset time interval of the periodic report. When it is greater than the first preset time deviation, re-entering the sleep mode, including: when the current time exceeds the first preset wake-up time and the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation, it is judged that there is a positive deviation; when there is a positive deviation, the forward sleep time is calculated according to the time deviation and the preset time interval, and sleep is entered according to the forward sleep time; when the current time does not exceed the second preset wake-up time and the time deviation between the second preset wake-up time and the current time is greater than the first preset time deviation, it is judged that there is a reverse deviation; when there is a reverse deviation, the reverse sleep time is determined according to the time deviation, and sleep is entered according to the reverse sleep time.

[0008] In this embodiment, when the time deviation is greater than the first preset time deviation, it is first determined whether it is a positive deviation or a reverse deviation, and then the sleep time is calculated and sleep is entered according to the judgment result using a corresponding sleep time calculation method. Thus, it is ensured that the slave node can report data according to the preset time interval and the slave node operates with low power consumption.

[0009] In an optional embodiment, before the slave node is awakened from the sleep mode, the method also includes: after the slave node is powered on, obtaining the preset time interval for periodic reporting and the current time of the first clock chip; calculating the sleep time according to the preset time interval and the current time of the first clock chip, and entering the sleep mode according to the sleep time.

[0010] In this embodiment, after the slave node is powered on, the sleep time is calculated according to the current time and the preset time interval and the slave node enters the sleep state, which ensures that the slave node can transmit data according to the preset time interval.

[0011] In an optional implementation, reporting slave node data to a master node that is not in sleep mode includes: connecting to a master node that is not in sleep mode based on a first preset network; receiving a reading data frame sent by the master node, and calibrating a first clock chip according to a time tag in the reading data frame; reporting slave node data to the master node according to the reading data frame; obtaining a preset time interval for periodic reporting and a current time of the first clock chip; calculating a sleep time according to the preset time interval and the current time of the first clock chip, and entering sleep mode according to the sleep time.

[0012] In this embodiment, when the slave node and the master node are connected to report the slave node data, the first clock chip is calibrated according to the time tag in the received copy data frame, thereby ensuring the time synchronization between the slave node and the master node.

[0013] In a second aspect, the present invention provides a low-power communication method, which is applied to a master node, and the method includes: when the master node is awakened from a sleep mode, reading the current time of a second clock chip, the second clock chip being a clock chip inside the master node; judging whether the time deviation between the current time and a second preset wake-up time is greater than the second preset time deviation; when it is greater than the second preset time deviation, re-entering the sleep mode; when it is not greater than the second preset time deviation, collecting slave node data reported by slave nodes that are not in sleep mode, the slave nodes that are not in sleep mode are slave nodes for which the time deviation between the current time of the first clock chip and the first preset wake-up time after being awakened from the sleep mode is not greater than the first preset time deviation, the first clock chip is a clock chip inside the slave node, and the first preset time deviation is equal to the second preset time deviation.

[0014] In an optional embodiment, the second preset wake-up time is the sum of the last collection time of the master node and the preset time interval of the periodic collection of the master node. When it is greater than the second preset time deviation, re-entering the sleep mode, including: when the current time exceeds the second preset wake-up time and the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation, it is judged that there is a positive deviation; when there is a positive deviation, the forward sleep time is calculated according to the time deviation and the preset time interval, and the sleep mode is entered according to the forward sleep time; when the current time does not exceed the second preset wake-up time and the time deviation between the second preset wake-up time and the current time is greater than the second preset time deviation, it is judged that there is a reverse deviation; when there is a reverse deviation, the reverse sleep time is determined according to the time deviation, and the sleep mode is entered according to the reverse sleep time.

[0015] In an optional embodiment, before the slave node is awakened from the sleep mode, the method also includes: when the master node is powered on, obtaining the preset time interval of the periodic collection and the current time of the second clock chip; calculating the sleep time according to the preset time interval and the current time of the second clock chip, and entering the sleep mode according to the sleep time.

[0016] In an optional embodiment, the slave node data reported by the slave node that is not in the sleep mode is collected, including: connecting to the slave node that is not in the sleep mode based on the first preset network, and connecting to the master station based on the second preset network; calibrating the second clock chip based on the connection with the master station; sending a reading data frame to the connected slave node based on the slave node information stored in the local archive, the reading data frame including a time tag, and the time tag is used to calibrate the first clock chip; receiving the slave node data reported by the slave node according to the reading data frame, and reporting the received slave node data to the master station; obtaining the preset time interval of periodic collection and the current time of the second clock chip; calculating the sleep time according to the preset time interval and the current time of the second clock chip, and entering the sleep mode according to the sleep time.

[0017] In this embodiment, when the slave node and the master node are connected to collect slave node data, the master node and the master station are connected to calibrate the time of the second clock chip, and at the same time the master node sends a reading data frame to the slave node so as to calibrate the time of the first clock chip according to the time tag in the reading data frame, thereby ensuring the accuracy between the slave node and the master node and the time synchronization between the two.

[0018] In a third aspect, the present invention provides a low-power communication device, which is applied to a slave node, and the device includes: a first time reading module, which is used to read the current time of a first clock chip after the slave node is awakened from a sleep mode, and the first clock chip is a clock chip inside the slave node; a first deviation judgment module, which is used to judge whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation; a first sleep module, which is used to re-enter the sleep mode when it is greater than the first preset time deviation; a reporting module, which is used to report the slave node data to a master node that is not in sleep mode when it is not greater than the first preset time deviation, and the master node that is not in sleep mode is a master node whose time deviation between the current time of the second clock chip and the second preset wake-up time after being awakened from the sleep mode is not greater than the second preset time deviation, the second clock chip is the clock chip inside the master node, and the first preset time deviation is equal to the second preset time deviation.

[0019] In a fourth aspect, the present invention provides a low-power communication device, which is applied to a master node, and the device includes: a second time reading module, which is used to read the current time of a second clock chip after the master node is awakened from a sleep mode, and the second clock chip is a clock chip inside the master node; a second deviation judgment module, which is used to judge whether the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation; a second sleep module, which is used to re-enter the sleep mode when the time deviation is greater than the second preset time deviation; and an acquisition module, which is used to acquire slave node data reported by slave nodes that are not in sleep mode when the time deviation is not greater than the second preset time deviation, and the slave node that is not in sleep mode is a slave node for which the time deviation between the current time of the first clock chip and the first preset wake-up time after being awakened from the sleep mode is not greater than the first preset time deviation, and the first clock chip is the clock chip inside the slave node, and the first preset time deviation is equal to the second preset time deviation.

[0020] In a fifth aspect, the present invention provides a low-power communication system, the system comprising: a slave node and a master node, after the slave node is awakened from a sleep mode, it reads the current time of an internal first clock chip; determines whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation; when it is greater than the first preset time deviation, the slave node re-enters the sleep mode; after the master node is awakened from the sleep mode, it reads the current time of an internal second clock chip; determines whether the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation; when it is greater than the second preset time deviation, the master node re-enters the sleep mode; when the time deviation between the current time of the first clock chip and the first preset wake-up time is not greater than the first preset time deviation and the time deviation between the current time of the second clock chip and the second preset wake-up time is not greater than the second preset time deviation, the slave node reports the slave node data to the master node which is not in sleep mode, and the first preset time deviation is equal to the second preset time deviation.

[0021] In an optional embodiment, the first preset wake-up time is the sum of the last time the slave node reported to the master node and the preset time interval for periodic reporting, the second preset wake-up time is the sum of the last collection time of the master node and the preset time interval for periodic collection of the master node, the preset time interval for periodic reporting is less than the preset time interval for periodic collection, and the time length that the master node is not in sleep mode is greater than the time length that the slave node is not in sleep mode.

[0022] In a sixth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the low-power communication method of the first aspect or any corresponding embodiment thereof or the low-power communication method of the second aspect or any corresponding embodiment thereof by executing the computer instructions.

[0023] In the seventh aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the low-power communication method of the first aspect or any corresponding embodiment thereof or the low-power communication method of the second aspect or any corresponding embodiment thereof.

[0024] In an eighth aspect, the present invention provides a computer program product, comprising computer instructions, the computer instructions being used to enable a computer to execute the low power consumption communication method of the first aspect or any corresponding embodiment thereof, or the low power consumption communication method of the second aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0026] Figure 1 is a schematic flow chart of a low power consumption communication method according to an embodiment of the present invention;

[0027] Figure 2 is a flowchart of another low-power communication method according to an embodiment of the present invention;

[0028] Figure 3 is a flow chart of another low power consumption communication method according to an embodiment of the present invention;

[0029] Figure 4 is a flowchart of yet another low-power communication method according to an embodiment of the present invention;

[0030] Figure 5 is a structural block diagram of a low power consumption communication device according to an embodiment of the present invention;

[0031] Figure 6 is a structural block diagram of another low power consumption communication device according to an embodiment of the present invention;

[0032] Figure 7 is a structural block diagram of a low power consumption communication system according to an embodiment of the present invention;

[0033] Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0035] According to an embodiment of the present invention, a low-power communication method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] In this embodiment, a low-power communication method is provided, which is applied to a slave node. The slave node may be a smart water meter, etc. Figure 1 is a flow chart of a low power consumption communication method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0037] Step S101, when the slave node is awakened from the sleep mode, the current time of the first clock chip is read, and the first clock chip is the clock chip inside the slave node. In practical applications, the data of the slave node such as the water meter does not need to be collected in real time or frequently, so the time interval for collecting the slave node data can be predetermined, that is, the data of the slave node is collected once every preset time interval, and the slave node can be in a sleep state for the rest of the time to reduce the power consumption required for the slave node to run. In the slave node, a timer is usually used to monitor the sleep time, and when it is judged that the preset time interval is reached (for example, the timer is set to the preset time interval), the slave node will be awakened from the sleep mode. However, there may be errors in the accuracy of the timer, especially when the preset time interval is long. At this time, if the slave node is awakened, it may not actually be the wake-up time. Therefore, after being awakened, the slave node needs to read the current time of its internal first clock chip first to determine whether it is the wake-up time.

[0038] Step S102, determine whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation. Specifically, the first preset wake-up time is the sum of the last reporting time and the preset time interval of the periodic reporting, that is, the last time the slave node reported the slave node data to the master node plus the preset time interval is the first preset wake-up time. For example, the last reporting time is 10:0:0, the preset time interval is 1 hour, and the first preset wake-up time is 11:0:0. After obtaining the current time, it can be compared with the first preset wake-up time to determine whether the difference (time deviation) between the two is large, such as greater than the first preset time deviation.

[0039] Step S103, when the time deviation is greater than the first preset time deviation, re-enter the sleep mode. Specifically, if the first preset time deviation is 60 seconds, the first preset wake-up time is 11:00:00, and the current time is 11:02:30, the time deviation is 2 minutes and 30 seconds. At this time, the time deviation is greater than the first preset time deviation, and the slave node needs to re-enter the sleep mode.

[0040] Step S104, when the time deviation is not greater than the first preset time deviation, the slave node data is reported to the master node that is not in sleep mode. The master node that is not in sleep mode is a master node whose time deviation between the current time of the second clock chip and the second preset wake-up time after being awakened from sleep mode is not greater than the second preset time deviation. The second clock chip is a clock chip inside the master node. Specifically, if the first preset wake-up time is 11:0:00 and the current time is 11:0:30, the time deviation is 30 seconds. If the first preset time deviation is 60 seconds, the time deviation is not greater than the first preset time deviation at this time, and data reporting can be performed.

[0041] Among them, when reporting data, the data is reported to the master node which is not in the sleep mode, and the master node which is not in the sleep mode has the same working mode as the slave node, or the slave node and the master node switch working modes synchronously, that is, the master node is the master node which, after being awakened from the sleep mode, determines that the time deviation between the current time of the second clock chip and the preset wake-up time is not greater than the second preset time deviation. In addition, since the slave node and the master node are not in the sleep mode each time reporting, the two preset wake-up times can be the same time, and the first preset time deviation is equal to the second preset time deviation.

[0042] In the low-power communication method provided by the embodiment of the present invention, after the slave node or the master node is awakened from the sleep mode, the time deviation between the current time and the preset wake-up time is first determined. When the time deviation is not greater than the first or second preset time deviation, neither the slave node nor the master node will enter the sleep mode, and at this time the slave node reports the slave node data to the master node. Therefore, in the communication method, the slave node and the master node switch the working mode synchronously, and enter the sleep mode when both are not working, thereby realizing low-power communication.

[0043] In this embodiment, a low-power communication method is provided, which is applied to a slave node. The process includes the following steps:

[0044] Step S201, when the slave node is awakened from the sleep mode, the current time of the first clock chip is read, and the first clock chip is a clock chip inside the slave node.

[0045] Step S202: determine whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation.

[0046] Step S203, when the time difference is greater than the first preset time difference, re-entering the sleep mode;

[0047] Specifically, the above step S203 includes:

[0048] Step S2031, when the current time exceeds the first preset wake-up time and the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation, it is judged that there is a positive deviation; specifically, when the current time exceeds the first preset wake-up time and the time deviation between the two is large, for example, if the first preset time deviation is 60 seconds, the current time is 10:03:49, and the first preset wake-up time is 10:00:00, the time deviation between the two is 3 minutes and 49 seconds, then it is judged that there is a positive deviation at this time.

[0049] Step S2032: when there is a positive deviation, the positive sleep time is calculated according to the time deviation and the preset time interval, and the system enters sleep mode according to the positive sleep time; specifically, when there is a positive deviation, the positive sleep time is calculated using the following formula:

[0050]

[0051] In the formula, Indicates the forward sleep time, Indicates the preset time interval, Indicates the time deviation.

[0052] It should be noted that when there is a positive deviation, it means that the wake-up time has exceeded the preset wake-up time. The positive sleep time can be calculated according to the above formula and the sleep time can be re-sleep. The sleep time is the above positive sleep time. Therefore, after the sleep time is up, it is exactly the preset wake-up time reported next time. For example, the current time is 10:03:49, and the preset wake-up time is 10:00:00. The positive sleep time calculated by the above formula is 3384 seconds. When using the above formula for calculation, the time can be converted into seconds for calculation.

[0053] Step S2033, when the current time does not exceed the first preset wake-up time and the time deviation between the first preset wake-up time and the current time is greater than the first preset time deviation, it is judged that there is a reverse deviation; specifically, when the current time does not exceed the preset wake-up time and the time deviation between the two is large, for example, if the first preset time deviation is 60 seconds, the current time is 9:57:49, and the first preset wake-up time is 10:0:00, the time deviation between the two is 2 minutes and 11 seconds, then it is judged that there is a reverse deviation.

[0054] Step S2034: when there is a reverse deviation, determine the reverse sleep time according to the time deviation, and enter sleep mode according to the reverse sleep time. Specifically, when there is a reverse deviation, the reverse sleep time is calculated using the following formula:

[0055]

[0056] In the formula, Indicates the reverse sleep time, Indicates the time deviation.

[0057] It should be noted that when there is a reverse deviation, it means that the wake-up time has not reached the preset wake-up time. The reverse sleep time can be calculated according to the above formula to sleep again. The sleep time is the above reverse sleep time. Therefore, after the sleep time is reached, it is exactly the preset wake-up time reported this time. For example, the current time is 9:57:49, and the preset wake-up time is 10:0:00. The reverse sleep time calculated by the above formula is 131 seconds.

[0058] Step S204: When the time difference is not greater than the first preset time difference, the slave node data is reported to the master node that is not in sleep mode. The master node that is not in sleep mode is a master node whose time difference between the current time of the second clock chip and the second preset wake-up time after being awakened from sleep mode is not greater than the second preset time difference. The second clock chip is the clock chip inside the master node. For details, please refer to Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0059] In this embodiment, a low-power communication method is provided, which is applied to a slave node. The method comprises the following steps:

[0060] Step S301, when the slave node is powered on, the preset time interval for periodic reporting and the current time of the first clock chip are obtained; specifically, the preset time interval for periodic reporting can be set in the factory parameters, and the current time can also be written into the first clock chip inside the slave node through the production self-test system, thereby ensuring that the preset time interval and the current time of the first clock chip can be obtained after the slave node is powered on. Among them, a battery can be set in the slave node, and the slave node is powered by the battery.

[0061] Step S302, calculate the sleep time according to the preset time interval and the current time of the first clock chip, and enter the sleep mode according to the sleep time. Specifically, after reading the preset time interval, convert it into seconds, and convert the current time of the first clock chip into a timestamp (accurate to seconds), and then calculate the sleep time by the following formula:

[0062]

[0063] In the formula, RepInterval represents the sleep time, Indicates the current time, and % indicates the modulo operation.

[0064] When the sleep time is calculated, the slave node enters the sleep mode after power-on. At this time, the timer in the slave node monitors according to the sleep time, and when the sleep time is reached, the slave node is awakened from the sleep mode.

[0065] Step S303: When the slave node is awakened from the sleep mode, the current time of the first clock chip is read. The first clock chip is the clock chip inside the slave node. For details, see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0066] Step S304: determine whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation; see Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0067] Step S305: When the time difference is greater than the first preset time difference, the sleep mode is re-entered; see Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0068] Step S306, when the time deviation is not greater than the first preset time deviation, the slave node data will be reported to the master node which is not in sleep mode. The master node which is not in sleep mode is the master node in which the time deviation between the current time of the second clock chip and the second preset wake-up time after being awakened from sleep mode is not greater than the second preset time deviation, and the second clock chip is the clock chip inside the master node.

[0069] Specifically, the above step S306 includes:

[0070] Step S3061, based on the first preset network and the master node that is not in sleep mode, connect; specifically, when the time deviation is not greater than the first preset time, the slave node broadcasts the data frame that allows connection to the first preset network at an interval of 500ms, exchanges information with the master node that is not in sleep mode, and establishes a connection; when the connection is established, the broadcast is stopped. Among them, the first preset network can be a low-power network, such as low-power Bluetooth, Zigbee, LoRa or Wi-Fi HaLow. Zigbee is a low-power, short-range wireless communication technology that supports sleep mode to reduce power consumption. Zigbee devices can enter sleep mode when not active, thereby significantly reducing power consumption. LoRa is a low-power wide area network (LPWAN) technology that achieves long-distance communication by using ultra-narrowband technology, and also supports sleep mode to reduce power consumption. Wi-Fi HaLow is a low-power, long-range Wi-Fi standard that supports low-power operation, including sleep mode, and is suitable for IoT devices.

[0071] Step S3062, receiving the reading data frame sent by the master node, and calibrating the time of the first clock chip according to the time tag in the reading data frame; specifically, after the connection is established, the master node sends the reading data frame to the slave node, and the reading data frame includes the time tag. The slave node extracts the time tag and calibrates the time of the first clock chip.

[0072] Step S3063, reporting the slave node data to the master node according to the reading data frame; specifically, after calibrating the first clock chip according to the time tag in the reading data frame, the slave node data is reported to the master node at the same time, and after receiving the end reading command sent by the master node, an ACK (Acknowledge character) is replied to the master node.

[0073] Step S3064, obtaining the preset time interval for periodic reporting and the current time of the first clock chip.

[0074] Step S3065, calculating the sleep time according to the preset time interval and the current time of the first clock chip, and entering the sleep mode according to the sleep time.

[0075] Specifically, after completing the reporting, the slave node continues to enter the sleep mode and waits for the next wake-up. At this time, the sleep time can be calculated according to the sleep time calculation formula in the above step S302.

[0076] In an optional embodiment, the first preset wake-up time is the sum of the last time the slave node reported to the master node and the preset time interval for periodic reporting, the second preset wake-up time is the sum of the last collection time of the master node and the preset time interval for periodic collection of the master node, the preset time interval for periodic reporting is less than the preset time interval for periodic collection, and the time length that the master node is not in sleep mode is greater than the time length that the slave node is not in sleep mode.

[0077] Specifically, in addition to setting the preset time interval for periodic reporting and the preset time interval for periodic collection to be equal, the preset time interval for periodic reporting can also be set to be smaller than the preset time interval for periodic collection. In this case, the length of time that the master node is not in sleep mode (i.e., in wake-up mode) can be greater than the length of time that the slave node is not in sleep mode (i.e., in wake-up mode). For example, when the slave node wakes up from sleep mode, the master node may still be in sleep mode. In this case, the slave node can re-enter sleep mode after failing to connect to the master node. By setting the preset time interval for periodic reporting and the preset time interval for periodic collection, the slave node can connect to the master node in wake-up mode the next time it wakes up, thereby realizing data transmission.

[0078] As a specific application example of the embodiment of the present invention, Figure 2As shown, the low-power communication method applied to the slave node can be implemented by the following process:

[0079] 1. After the slave node is powered by a battery, read the time interval RepInterval for periodic reporting data from the parameter area of ​​the on-chip flash and convert it into seconds. If the read value is an invalid value, use the default duration of 60 minutes to convert it into seconds. Read the current time CurrentTime of its internal first clock chip and convert it into a timestamp (accurate to seconds) CTtimestamp. Calculate the sleep time according to the formula BLEsleeptime=RepInterval-(CTtimestamp % RepInterval) and enter the sleep mode (i.e. sleep mode).

[0080] 2. After the internal timer of the slave node determines that the wake-up time has arrived, the slave node will be woken up, and the current time CurrentTime of the first clock chip will be read, and compared with the preset wake-up time, that is, the preset reporting time, to determine whether the time deviation between the two is too large, that is, whether it is greater than the specified maximum time deviation (that is, the first preset time deviation). If there is a large deviation, it is judged as a reverse deviation or a positive deviation, and the sleep time is recalculated in a corresponding manner and enters the sleep mode.

[0081] 3. When the time deviation is not greater than the specified maximum time deviation, the slave node broadcasts the data frame that allows connection to the Bluetooth network at an interval of 500ms. If the connection instruction from the master node is not received within 2 minutes, the slave node enters the sleep mode based on the recalculated sleep time. After establishing a connection with the master node, stop broadcasting. After receiving the reading data frame, i.e. the connection frame, from the master node, extract the time tag and recalibrate the first clock chip. After receiving the end reading command sent by the master node, reply ACK. Recalculate the sleep time based on the current time and the preset time interval and enter the sleep mode.

[0082] In this embodiment, a low-power communication method is provided, which is applied to a master node, and the master node may be a collector for collecting data from slave nodes. Figure 3 is a flow chart of a low power consumption communication method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0083] Step S401, when the master node is awakened from the sleep mode, the current time of the second clock chip is read, and the second clock chip is the clock chip inside the master node; in practical applications, it is not necessary to collect data from slave nodes such as water meters in real time or frequently, so the time interval for the master node to collect can be predetermined, that is, the data of the slave node is collected once every preset time interval, and the master node can be in a sleep state for the rest of the time to reduce the power consumption required for the operation of the master node. In the master node, a timer is usually used to monitor the sleep time. When it is judged that the preset time interval is reached (for example, the timer is set to the preset time interval), the master node will be awakened from the sleep mode. However, there may be errors in the accuracy of the timer, especially when the preset time interval is long. At this time, if the master node is awakened, it may not actually be the wake-up time. Therefore, after the master node is awakened, it is necessary to read the current time of its internal second clock chip to determine whether it is the wake-up time.

[0084] Step S402, determine whether the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation; specifically, the second preset wake-up time is the sum of the last acquisition time and the preset time interval of the periodic acquisition, that is, the time when the master node last acquired the slave node data plus the preset time interval is the second preset wake-up time, for example, the last acquisition time is 10:0:0, the preset time interval is 1 hour, then the second preset wake-up time is 11:0:0. After obtaining the current time, it can be compared with the second preset wake-up time to determine whether the difference (time deviation) between the two is large, such as greater than the second preset time deviation. It should be noted that in order to ensure the synchronization of the working modes of the master node and the slave node, the preset time interval of the periodic report can be the same as the preset time interval of the periodic acquisition, that is, at this time, the slave node and the master node are synchronously in sleep mode or wake-up mode.

[0085] Step S403, when it is greater than the second preset time deviation, re-enter the sleep mode; specifically, if the second preset time deviation is 60 seconds, the preset wake-up time is 11:0:00, and the current time is 11:02:30, then the time deviation is 2 minutes and 30 seconds. At this time, the time deviation is greater than the second preset time deviation, and the master node needs to re-enter the sleep mode.

[0086] Step S404, when the time deviation is not greater than the second preset time deviation, the slave node data reported by the slave node that is not in the sleep mode is collected. The slave node that is not in the sleep mode is a slave node for which the time deviation between the current time of the first clock chip and the first preset wake-up time after being awakened from the sleep mode is not greater than the first preset time deviation, and the first clock chip is a clock chip inside the slave node. Specifically, if the second preset time deviation is 60 seconds, the second preset wake-up time is 11:0:00, and the current time is 11:0:30, the time deviation is 30 seconds. At this time, the time deviation is not greater than the second preset time deviation, and data collection can be performed.

[0087] Wherein, during data collection, data is collected from a slave node that is not in sleep mode, and the slave node that is not in sleep mode has the same working mode as the master node, or the slave node and the master node switch working modes synchronously, that is, the slave node is a slave node that determines that there is no time deviation between the current time of the first clock chip and the preset wake-up time after being awakened from the sleep mode, and the first preset time deviation is equal to the second preset time deviation.

[0088] In this embodiment, a low-power communication method is provided, which includes the following steps:

[0089] Step S501: When the master node is awakened from the sleep mode, the current time of the second clock chip is read. The second clock chip is the clock chip inside the master node. For details, see Figure 1 Step S401 of the illustrated embodiment will not be described in detail here.

[0090] Step S502: determine whether the time difference between the current time and the second preset wake-up time is greater than the second preset time difference; see Figure 1 Step S402 of the illustrated embodiment will not be described in detail here.

[0091] Step S503, when the time difference is greater than a second preset time difference, re-entering the sleep mode;

[0092] Specifically, the above step S503 includes:

[0093] Step S5031, when the current time exceeds the second preset wake-up time and the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation, it is judged that there is a positive deviation; specifically, when the current time exceeds the preset wake-up time and the time deviation between the two is large, for example, if the second preset time deviation is 60 seconds, the current time is 10:03:49, and the preset wake-up time is 10:00:00, the time deviation between the two is 3 minutes and 49 seconds, then it is judged that there is a positive deviation at this time.

[0094] Step S5032: when there is a positive deviation, the positive sleep time is calculated according to the time deviation and the preset time interval, and the system enters sleep mode according to the positive sleep time; specifically, when there is a positive deviation, the positive sleep time is calculated using the following formula:

[0095]

[0096] In the formula, Indicates the forward sleep time, Indicates the preset time interval, Indicates the time deviation.

[0097] It should be noted that when there is a positive deviation, it means that the wake-up time has exceeded the preset wake-up time. The positive sleep time can be calculated according to the above formula and the sleep time can be re-sleep. The sleep time is the above positive sleep time. Therefore, after the sleep time is up, it is exactly the preset wake-up time reported next time. For example, the current time is 10:03:49, and the preset wake-up time is 10:00:00. The positive sleep time calculated by the above formula is 3384 seconds. When using the above formula for calculation, the time can be converted into seconds for calculation.

[0098] Step S5033, when the current time does not exceed the second preset wake-up time and the time deviation between the second preset wake-up time and the current time is greater than the second preset time deviation, it is judged that there is a reverse deviation; specifically, when the current time does not exceed the preset wake-up time and the time deviation between the two is large, for example, if the second preset time deviation is 60 seconds, the current time is 9:57:49, and the second preset wake-up time is 10:0:00, the time deviation between the two is 2 minutes and 11 seconds, then it is judged that there is a reverse deviation.

[0099] Step S5034: when there is a reverse deviation, determine the reverse sleep time according to the time deviation, and enter sleep mode according to the reverse sleep time. Specifically, when there is a reverse deviation, the reverse sleep time is calculated using the following formula:

[0100]

[0101] In the formula, Indicates the reverse sleep time, Indicates the time deviation.

[0102] It should be noted that when there is a reverse deviation, it means that the wake-up time has not reached the preset wake-up time. The reverse sleep time can be calculated according to the above formula to sleep again. The sleep time is the above reverse sleep time. Therefore, after the sleep time is reached, it is exactly the preset wake-up time reported this time. For example, the current time is 9:57:49, and the preset wake-up time is 10:0:00. The reverse sleep time calculated by the above formula is 131 seconds.

[0103] Step S504: when the time difference is not greater than the second preset time difference, collect the slave node data reported by the slave node that is not in the sleep mode, the slave node that is not in the sleep mode is the slave node whose time difference between the current time of the first clock chip and the first preset wake-up time after being awakened from the sleep mode is not greater than the first preset time difference, and the first clock chip is the clock chip inside the slave node. For details, please refer to Figure 1 Step S404 of the illustrated embodiment will not be described in detail here.

[0104] In this embodiment, a low-power communication method is provided, which includes the following steps:

[0105] Step S601, when the master node is powered on, the preset time interval of periodic collection and the current time of the second clock chip are obtained; specifically, the preset time interval of periodic collection can be set in the factory parameters, and the current time can also be written into the second clock chip inside the master node through the production self-test system, thereby ensuring that the preset time interval and the current time of the second clock chip can be obtained after the master node is powered on. Among them, a battery can be set in the master node, and the power-on of the master node is realized by the battery power supply.

[0106] Step S602, calculate the sleep time according to the preset time interval and the current time of the second clock chip, and enter the sleep mode according to the sleep time. Specifically, after reading the preset time interval, convert it into seconds, and convert the current time of the second clock chip into a timestamp (accurate to seconds), and then calculate the sleep time by the following formula:

[0107]

[0108] In the formula, RepInterval represents the sleep time, Indicates the current time, and % indicates the modulo operation.

[0109] When the sleep time is calculated, the slave node enters the sleep mode after power-on. At this time, the timer in the slave node monitors according to the sleep time, and when the sleep time is reached, the slave node is awakened from the sleep mode.

[0110] Step S603: When the master node is awakened from the sleep mode, the current time of the second clock chip is read. The second clock chip is the clock chip inside the master node. For details, see Figure 1 Step S401 of the illustrated embodiment will not be described in detail here.

[0111] Step S604: determine whether the time difference between the current time and the second preset wake-up time is greater than the second preset time difference; see Figure 1 Step S402 of the illustrated embodiment will not be described in detail here.

[0112] Step S605: When the time difference is greater than the second preset time difference, the sleep mode is re-entered; see Figure 1 Step S403 of the illustrated embodiment will not be described in detail here.

[0113] Step S606, when the time deviation is not greater than the second preset time deviation, collect the slave node data reported by the slave node that is not in the sleep mode, the slave node that is not in the sleep mode is a slave node whose time deviation between the current time of the first clock chip and the first preset wake-up time after being awakened from the sleep mode is not greater than the first preset time deviation, and the first clock chip is the clock chip inside the slave node.

[0114] Specifically, the above step S606 includes:

[0115] Step S6061, based on the first preset network and the connection with the slave node that is not in sleep mode, based on the second preset network and the connection with the master station; the master node used in this embodiment is an intelligent slave node master node based on the first preset network and the second preset network, that is, the master node can be connected to the slave node through the first preset network, and can also be connected to the master station through the second preset network. Among them, the second preset network can be a wireless network, such as a 4G network. Specifically, when the master node determines that the time deviation is not greater than the preset time deviation, it turns on the Bluetooth scanning mode, establishes a connection with the scanned slave node, and turns on the 4G network to connect to the master station through the 4G base station. It should be noted that in order to further reduce power consumption, the Bluetooth network used can be Bluetooth Low Energy (BLE).

[0116] Step S6062, calibrate the second clock chip based on the connection with the master station; specifically, after the master node is successfully connected to the master station, it applies to the master station for time calibration, that is, obtains the current time from the master station, and calibrates the second clock chip according to the obtained time.

[0117] Step S6063, based on the slave node information stored in the local archive, a reading data frame is sent to the connected slave node, the reading data frame includes a time tag, and the time tag is used to calibrate the time of the first clock chip; specifically, after the clock chip is successfully calibrated, it is queried whether the local archive exists, and if it does not exist, it is applied to the master station. Among them, the local archive is sent from the master station to the master node and exists by the master node. If the master node does not query the local archive, it means that the master station has not sent it yet. At this time, the master node can apply to the master station to send the local archive. The local archive stores information such as the address of the slave node that the master node needs to read.

[0118] After the master node obtains the local file, it determines whether the slave node in the local file has been read. If not, it sends a reading data frame to the slave node that has not been read and is connected, and attaches a time tag containing the current time to the reading data to realize the time calibration of the first clock chip.

[0119] Step S6064, receiving the slave node data reported by the slave node according to the read data frame, and reporting the received slave node data to the master station. Specifically, after receiving the data reported by the slave node, the master node reports the slave node data to the master station, sends an end read command to the slave node, disconnects from the slave node after receiving the ACK replied by the slave node, and reduces the number of slave nodes that have not been read by 1.

[0120] Step S6065, obtaining the preset time interval of periodic collection and the current time of the second clock chip;

[0121] Step S6066, calculating the sleep time according to the preset time interval and the current time of the second clock chip, and entering the sleep mode according to the sleep time.

[0122] Specifically, after completing the data collection of the slave nodes in the local archive, the master node continues to enter the sleep mode and waits for the next wake-up. At this time, the sleep time can be calculated according to the sleep time calculation formula in the above step S502.

[0123] In an optional embodiment, the first preset wake-up time is the sum of the last time the slave node reported to the master node and the preset time interval for periodic reporting, the second preset wake-up time is the sum of the last collection time of the master node and the preset time interval for periodic collection of the master node, the preset time interval for periodic reporting is less than the preset time interval for periodic collection, and the time length that the master node is not in sleep mode is greater than the time length that the slave node is not in sleep mode.

[0124] Specifically, in addition to setting the preset time interval for periodic reporting and the preset time interval for periodic collection to be equal, the preset time interval for periodic reporting can also be set to be smaller than the preset time interval for periodic collection. In this case, the length of time that the master node is not in sleep mode (i.e., in wake-up mode) can be greater than the length of time that the slave node is not in sleep mode (i.e., in wake-up mode). For example, when the slave node wakes up from sleep mode, the master node may still be in sleep mode. In this case, the slave node can re-enter sleep mode after failing to connect to the master node. By setting the preset time interval for periodic reporting and the preset time interval for periodic collection, the slave node can connect to the master node in wake-up mode the next time it wakes up, thereby realizing data transmission.

[0125] As a specific application example of the embodiment of the present invention, Figure 4 As shown, the low-power communication method applied to the slave node can be implemented by the following process:

[0126] 1. After the master node is powered by a battery, it reads the time interval for periodic data collection from the parameter area of ​​the on-chip flash (the time interval for periodic data collection is actually also the time interval for periodic reporting from the node) RepInterval and converts it into seconds. If the read value is invalid, the default time length of 60 minutes is used to convert it into seconds. Read the current time CurrentTime of its internal second clock chip and convert it into a timestamp (accurate to seconds) CT timestamp According to the formula BLE sleeptime =RepInterval-(CT timestamp % RepInterval) and then enters sleep mode after calculating the sleep time.

[0127] 2. The internal timer of the master node wakes up the master node after judging that the wake-up time has arrived, reads the current time CurrentTime of the second clock chip, and compares it with the preset wake-up time, i.e., the time when the master node presets to start scanning, to judge whether the time deviation between the two is greater than the specified maximum time deviation (i.e., the second preset time deviation). If there is a large deviation, it is judged as a reverse deviation or a forward deviation, and the corresponding method is used to recalculate the sleep time and enter the sleep mode.

[0128] 3. When the time deviation is not greater than the specified maximum time deviation, the scanning mode is turned on to determine whether a connection request from a slave node is scanned, and a connection is established with the scanned slave node (i.e., a BLE slave device such as a water meter). The 4G network is turned on and a connection is established with the system master station. After the connection is successful, a time calibration is requested from the server (i.e., the system master station). After the time calibration is successful, the local archive is queried to determine whether it exists. If it does not exist, the archive information is requested from the system master station. If it exists, it is determined whether all the slave nodes in the archive have been read. During the reading judgment process, a timeout judgment is performed. When the wake-up time, such as 4 minutes, is exceeded, the scanning is stopped. If it does not exceed 4 minutes, the reading data frame is continued to be sent to the connected slave node, and the latest system time is attached to the reading data frame for time calibration of the first clock chip. After the reading is completed, the reading data is reported to the system master station through the 4G network. After the reading is completed, a reading end command is sent to the slave node, and the connection with the slave node is disconnected. The number of slave nodes that have not been read is reduced by 1. When all the slave nodes in the archive have been read, the sleep time is calculated and the sleep mode is entered.

[0129] In this embodiment, a low-power communication device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0130] This embodiment provides a low power consumption communication device, which is applied to a slave node, such as Figure 5 As shown, including:

[0131] A first time reading module 51 is used to read the current time of a first clock chip after the slave node is awakened from the sleep mode. The first clock chip is a clock chip inside the slave node.

[0132] A first deviation determination module 52, used to determine whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation;

[0133] A first sleep module 53, configured to re-enter the sleep mode when the time deviation is greater than a first preset time deviation;

[0134] The reporting module 54 is used to report the slave node data to the master node which is not in the sleep mode when the time deviation is not greater than the first preset time deviation. The master node which is not in the sleep mode is the master node whose time deviation between the current time of the second clock chip and the second preset wake-up time after being awakened from the sleep mode is not greater than the second preset time deviation. The second clock chip is the clock chip inside the master node.

[0135] This embodiment provides a low-power communication device, which is applied to a master node, such as Figure 6 As shown, the device comprises:

[0136] A second time reading module 61 is used to read the current time of a second clock chip when the master node is awakened from the sleep mode. The second clock chip is a clock chip inside the master node.

[0137] A second deviation determination module 62, used to determine whether the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation;

[0138] A second sleep module 63, configured to re-enter the sleep mode when the time deviation is greater than a second preset time deviation;

[0139] The acquisition module 64 is used to collect slave node data reported by slave nodes that are not in sleep mode when the time deviation is not greater than the second preset time deviation. The slave nodes that are not in sleep mode are slave nodes whose time deviation between the current time of the first clock chip and the first preset wake-up time after being awakened from the sleep mode is not greater than the first preset time deviation. The first clock chip is a clock chip inside the slave node.

[0140] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.

[0141] This embodiment provides a low power consumption communication system. Figure 7 As shown, the system includes: a slave node and a master node, and the master node and the slave node are connected by a Bluetooth network. Optionally, the system also includes a system master station, and the master node is connected to the system master station through a 4G base station using a 4G network.

[0142] After the slave node is awakened from the sleep mode, the current time of the internal first clock chip is read; whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation; when it is greater than the first preset time deviation, the slave node re-enters the sleep mode;

[0143] After the master node is awakened from the sleep mode, it reads the current time of the internal second clock chip; determines whether the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation; if it is greater than the second preset time deviation, it re-enters the sleep mode;

[0144] When the time deviation between the current time of the first clock chip and the first preset wake-up time is not greater than the first preset time deviation and the time deviation between the current time of the second clock chip and the second preset wake-up time is not greater than the second preset time deviation, the slave node reports the slave node data to the master node that is not in sleep mode. After receiving the slave node data, the master node reports it to the system master station, and the first preset time deviation is equal to the second preset time deviation.

[0145] In an optional embodiment, the first preset wake-up time is the sum of the last time the slave node reported to the master node and the preset time interval for periodic reporting, the second preset wake-up time is the sum of the last collection time of the master node and the preset time interval for periodic collection of the master node, the preset time interval for periodic reporting is less than the preset time interval for periodic collection, and the time length that the master node is not in sleep mode is greater than the time length that the slave node is not in sleep mode.

[0146] The embodiment of the present invention also provides a computer device having the above Figure 5 The low power communication device shown or Figure 6 The low power communication device shown.

[0147] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.

[0148] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0149] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0150] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0151] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0152] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0153] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0154] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0155] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A low power consumption communication method, characterized in that: Applied to a slave node, the method comprises: When the slave node is awakened from the sleep mode, the current time of the first clock chip is read, where the first clock chip is a clock chip inside the slave node; Determine whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation; When the time difference is greater than the first preset time difference, re-entering the sleep mode; When it is not greater than the first preset time deviation, the slave node data will be reported to the master node which is not in sleep mode, the master node which is not in sleep mode is a master node where the time deviation between the current time of the second clock chip and the second preset wake-up time after being awakened from sleep mode is not greater than the second preset time deviation, the second clock chip is a clock chip inside the master node, and the first preset time deviation is the same as the second preset time deviation.

2. The method according to claim 1, characterized in that The first preset wake-up time is the sum of the last reporting time of the slave node to the master node and the preset time interval of the periodic reporting. When it is greater than the first preset time deviation, re-entering the sleep mode includes: When the current time exceeds the first preset wake-up time and the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation, it is determined that there is a positive deviation; When there is a positive deviation, the positive sleep time is calculated according to the time deviation and the preset time interval, and the system enters sleep mode according to the positive sleep time; When the current time does not exceed the first preset wake-up time and the time deviation between the first preset wake-up time and the current time is greater than the first preset time deviation, it is determined that there is a reverse deviation; When there is a reverse deviation, a reverse sleep time is determined according to the time deviation, and sleep is entered according to the reverse sleep time.

3. The method according to claim 1, characterized in that Before the slave node is awakened from the sleep mode, the method further includes: When the slave node is powered on, the preset time interval for periodic reporting and the current time of the first clock chip are obtained; The sleep time is calculated according to the preset time interval and the current time of the first clock chip, and the sleep mode is entered according to the sleep time.

4. The method according to claim 1, characterized in that: Report slave node data to the master node that is not in sleep mode, including: Connecting based on a first preset network and a master node that is not in a sleep mode; Receiving the reading data frame sent by the master node, and calibrating the time of the first clock chip according to the time label in the reading data frame; Report the slave node data to the master node according to the read data frame; Obtaining a preset time interval for periodic reporting and a current time of the first clock chip; The sleep time is calculated according to the preset time interval and the current time of the first clock chip, and the sleep mode is entered according to the sleep time.

5. A low power consumption communication method, characterized in that: Applied to the master node, the method comprises: When the master node is awakened from the sleep mode, the current time of the second clock chip is read, where the second clock chip is a clock chip inside the master node; Determine whether the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation; When the time difference is greater than the second preset time difference, re-entering the sleep mode; When it is not greater than the second preset time deviation, the slave node data reported by the slave node that is not in the sleep mode is collected, the slave node that is not in the sleep mode is a slave node whose time deviation between the current time of the first clock chip and the first preset wake-up time after being awakened from the sleep mode is not greater than the first preset time deviation, the first clock chip is a clock chip inside the slave node, and the first preset time deviation is equal to the second preset time deviation.

6. The method according to claim 5, characterized in that The second preset wake-up time is the sum of the last collection time of the master node and the preset time interval of the periodic collection of the master node. When it is greater than the second preset time deviation, re-entering the sleep mode includes: When the current time exceeds the second preset wake-up time and the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation, it is determined that there is a positive deviation; When there is a positive deviation, the positive sleep time is calculated according to the time deviation and the preset time interval, and the system enters sleep mode according to the positive sleep time; When the current time does not exceed the second preset wake-up time and the time deviation between the second preset wake-up time and the current time is greater than the second preset time deviation, it is determined that there is a reverse deviation; When there is a reverse deviation, a reverse sleep time is determined according to the time deviation, and sleep is entered according to the reverse sleep time.

7. The method according to claim 5, characterized in that Before the slave node is awakened from the sleep mode, the method further includes: When the master node is powered on, the preset time interval of periodic collection and the current time of the second clock chip are obtained; The sleep time is calculated according to the preset time interval and the current time of the second clock chip, and the sleep mode is entered according to the sleep time.

8. The method according to claim 5, characterized in that Collect slave node data reported by slave nodes that are not in sleep mode, including: Connecting to a slave node that is not in sleep mode based on a first preset network, and connecting to a master node based on a second preset network; calibrating the second clock chip based on the connection with the master station; Sending a reading data frame to the connected slave node based on the slave node information stored in the local archive, wherein the reading data frame includes a time tag, and the time tag is used to calibrate the time of the first clock chip; Receive slave node data reported by the slave node according to the reading data frame, and report the received slave node data to the master station; Obtain the preset time interval of periodic acquisition and the current time of the second clock chip; The sleep time is calculated according to the preset time interval and the current time of the second clock chip, and the sleep mode is entered according to the sleep time.

9. A low power consumption communication device, characterized in that: Applied to a slave node, the device comprises: A first time reading module, used for reading the current time of a first clock chip after the slave node is awakened from the sleep mode, wherein the first clock chip is a clock chip inside the slave node; A first deviation judgment module, used to judge whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation; A first sleep module, used for re-entering a sleep mode when the time deviation is greater than a first preset time deviation; A reporting module is used to report the slave node data to a master node that is not in sleep mode when the time deviation is not greater than a first preset time deviation. The master node that is not in sleep mode is a master node where the time deviation between the current time of the second clock chip and the second preset wake-up time after being awakened from sleep mode is not greater than the second preset time deviation. The second clock chip is a clock chip inside the master node, and the first preset time deviation is equal to the second preset time deviation.

10. A low power consumption communication device, characterized in that: Applied to a master node, the device comprises: A second time reading module is used to read the current time of a second clock chip when the master node is awakened from the sleep mode. The second clock chip is a clock chip inside the master node. A second deviation judgment module, used to judge whether the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation; A second sleep module, used for re-entering the sleep mode when the time deviation is greater than a second preset time deviation; An acquisition module is used to acquire slave node data reported by a slave node that is not in sleep mode when the time deviation is not greater than a second preset time deviation. The slave node that is not in sleep mode is a slave node in which the time deviation between the current time of a first clock chip and a first preset wake-up time after being awakened from sleep mode is not greater than the first preset time deviation. The first clock chip is a clock chip inside the slave node, and the first preset time deviation is equal to the second preset time deviation.

11. A low power consumption communication system, characterized in that: The system comprises: a slave node and a master node, After the slave node is awakened from the sleep mode, the slave node reads the current time of the internal first clock chip; determines whether the time deviation between the current time and the first preset wake-up time is greater than the first preset time deviation; when it is greater than the first preset time deviation, the slave node re-enters the sleep mode; After the master node is awakened from the sleep mode, the master node reads the current time of the internal second clock chip; determines whether the time deviation between the current time and the second preset wake-up time is greater than the second preset time deviation; when it is greater than the second preset time deviation, the master node re-enters the sleep mode; When the time deviation between the current time of the first clock chip and the first preset wake-up time is not greater than the first preset time deviation and the time deviation between the current time of the second clock chip and the second preset wake-up time is not greater than the second preset time deviation, the slave node reports the slave node data to the master node which is not in sleep mode, and the first preset time deviation is equal to the second preset time deviation.

12. The system according to claim 11, characterized in that The first preset wake-up time is the sum of the last reporting time of the slave node to the master node and the preset time interval of periodic reporting. The second preset wake-up time is the sum of the last collection time of the master node and the preset time interval of periodic collection of the master node. The preset time interval for periodic reporting is less than the preset time interval for periodic collection, and the time length that the master node is not in sleep mode is greater than the time length that the slave node is not in sleep mode.

13. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the low-power communication method according to any one of claims 1 to 4 or the low-power communication method according to any one of claims 5 to 8 by executing the computer instructions.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the low-power communication method according to any one of claims 1 to 4 or the low-power communication method according to any one of claims 5 to 8.