Low power consumption communication method, device, terminal equipment, storage medium and system
By migrating the PSM parameters from the communication module to the sleep module in the IoT device, and using the sleep module to control the communication module to power off, the problem of increased standby current and increased power consumption when communicating again in the low-power communication mode of the IoT device is solved. problem, achieving lower power states.
Patent Information
- Application Number
- CN202110697940.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-06-23
AI Technical Summary
In the low-power communication mode of existing IoT devices, the standby current increases and the power consumption increases when communicating again, leading to problems of insufficient power and frequent battery replacement.
After the terminal device completes data communication with the network device, the communication module sends PSM parameters to the sleep module. The sleep module controls the communication module to shut down and power off, and maintains the PSM state through the sleep module to save power consumption.
It is realized that when the terminal device is in a low power consumption state, the sleep module maintains the PSM state, and the communication module is in a power-off shutdown state, which reduces power consumption and avoids the problems of increased standby current and increased power consumption when communicating again.
Smart Images

Figure CN115515209B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a low-power communication method, apparatus, terminal equipment, storage medium and system. Background Art
[0002] The Internet of Things (IoT) can refer to the real-time collection of any object or process that needs to be monitored, connected, and interacted through various devices and technologies such as various information sensors, radio frequency identification technology, global positioning system, infrared sensors, laser scanners, etc., and the collection of various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, and location. Through various possible network access, ubiquitous connection between objects and objects, objects and people is achieved, and intelligent perception, identification, and management of objects and processes are realized. The Internet of Things is an information carrier based on the Internet, traditional telecommunications networks, etc. It allows all ordinary physical objects that can be independently addressed to form an interconnected network.
[0003] In order to reduce the power consumption of IoT devices as much as possible and avoid problems such as insufficient power and frequent battery replacement caused by excessive power consumption, it is necessary to adopt certain solutions to achieve low power consumption in communication. However, in the low-power communication solutions provided by related technologies, there are still problems such as increased standby current of terminal devices and increased power consumption when communicating again. Summary of the invention
[0004] The present application provides a low-power communication method, apparatus, terminal equipment, storage medium and system, which can save the power consumption of terminal equipment.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a low-power communication method, which is applied to a terminal device, wherein the terminal device includes a communication module and a sleep module, and the method includes:
[0007] When the terminal device completes data communication with the network device, the communication module sends the PSM parameter to the sleep module;
[0008] After receiving the PSM parameter, the sleep module controls the communication module to shut down and turns off the power supply of the communication module.
[0009] In a second aspect, an embodiment of the present application provides a low-power communication device, the low-power communication device comprising: a communication module and a sleep module, wherein:
[0010] The communication module is configured to send the PSM parameter to the sleep module when the terminal device completes data communication with the network device;
[0011] The sleep module is configured to control the communication module to shut down and turn off the power supply of the communication module after receiving the PSM parameter.
[0012] In a third aspect, an embodiment of the present application provides a terminal device, which includes the low-power consumption communication device as described in the second aspect.
[0013] In a fourth aspect, an embodiment of the present application further provides a terminal device, the terminal device comprising a memory and a processor, wherein:
[0014] The memory is used to store a computer program that can be run on the processor;
[0015] The processor is used to execute the low-power communication method as described in the first aspect when running the computer program.
[0016] In a fifth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. When the computer program is executed by at least one processor, it implements the low-power communication method as described in the first aspect.
[0017] In a sixth aspect, an embodiment of the present application further provides a communication system, which includes a network device and a terminal device as described in the third aspect or the fourth aspect.
[0018] A low-power communication method, apparatus, terminal device, storage medium and system are provided in the embodiments of the present application. The method is applied to a terminal device, which includes a communication module and a sleep module. When the terminal device completes data communication with a network device, the communication module sends PSM parameters to the sleep module. After receiving the PSM parameters, the sleep module controls the communication module to shut down and turns off the power supply of the communication module. In this way, when the terminal device enters the PSM state, the PSM parameters are migrated from the communication module to the sleep module, and the sleep module controls the communication module to shut down and cuts off the power to the communication module. Therefore, when the terminal device is in a low-power state, the sleep module maintains the PSM state of the terminal device, and the communication module is in a power-off state and does not communicate with the outside world, thereby saving power consumption of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flowchart of a low-power communication method provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of another low-power communication method provided in an embodiment of the present application;
[0021] Figure 3A schematic diagram of an application framework of a low-power communication method provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of an interaction process between a communication module and a sleep module provided in an embodiment of the present application;
[0023] Figure 5 A flowchart of another low-power communication method provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of another interaction process between a communication module and a sleep module provided in an embodiment of the present application;
[0025] Figure 7 A flowchart of another low-power communication method provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the structure of a low-power communication device provided in an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0028] Fig.10 A schematic diagram of the structure of another terminal device provided in an embodiment of the present application;
[0029] Fig.11 A schematic diagram of the structure of a communication system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0032] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0033] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0034] At present, in the relevant technologies, regarding low-power communication solutions, the designs of various solutions in terms of communication are basically the same. Most of them are external microcontroller units (MCU) that wake up the communication module according to the time, or use the traditional low-power mode (Power Saving Mode, PSM) solution provided by the narrowband Internet of Things (NB-IOT) module. The main differences are concentrated on the wake-up condition judgment or power management circuit. However, if the PSM function of the NB-IOT standard is adopted, the standby current of the terminal device will increase; if the communication module is powered off, the power consumption will increase when communicating again.
[0035] In other words, the current IoT communication solutions mainly use the PSM function of the chip or module to achieve low power consumption. Although this method is mature and simple in design, in order to ensure the system starts on time or the terminal is aligned with the base station time, the power consumption of the PSM state will increase. In some IoT communication solutions, in order to reduce power consumption, the communication module will be powered off when the terminal device system is asleep, but when communicating again, it needs to reconnect to the registered network, which will still increase power consumption.
[0036] Based on this, an embodiment of the present application provides a low-power communication method, which is applied to terminal settings. The terminal device includes a communication module and a sleep module. The basic idea of the method is: when the terminal device completes data communication with the network device, the communication module sends PSM parameters to the sleep module; after the sleep module receives the PSM parameters, it controls the communication module to shut down and turns off the power supply of the communication module; in this way, when the terminal device enters the PSM state, the PSM parameters are migrated from the communication module to the sleep module, and the communication module is controlled to shut down and power off the communication module through the sleep module, so that when the terminal device is in a low-power state, the sleep module can maintain the PSM state of the terminal device, and the communication module is in a power-off state and does not communicate with the outside world, thereby saving power consumption of the terminal device.
[0037] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0038] In one embodiment of the present application, see Figure 1, which shows a schematic flow chart of a low-power communication method provided by an embodiment of the present application. Figure 1 As shown, the method may include:
[0039] S101. When the terminal device and the network device complete data communication, the communication module sends PSM parameters to the sleep module.
[0040] It should be noted that the low-power communication method provided in the embodiment of the present application is applied to devices that need to maintain low-power communication, and terminal devices integrated with the device, etc. For example: shared bicycles, smart door locks, smart electricity meters, smart gas meters, smart phones, shared power banks, etc., which are not specifically limited in the embodiment of the present application.
[0041] In addition, in the terminal device used in the embodiment of the present application, the terminal device includes at least a communication module and a sleep module, and the communication module and the sleep module are each an independent hardware entity, both of which exist in the form of independent chips and / or modules and / or circuits, and the sleep module serves as the main control module of the terminal device.
[0042] It should also be noted that in the embodiment of the present application, when the terminal device completes data communication, such as completing data communication with a network device, in order to avoid the communication module of the terminal device still operating when there is no need for communication, resulting in high power consumption, the terminal device needs to enter a sleep state. In the embodiment of the present application, the sleep state is the PSM state, that is, the low power mode state.
[0043] In the embodiment of the present application, the network device may be, for example, a base station, a cloud, other terminal devices, etc., which can communicate with the terminal device, and the embodiment of the present application does not specifically limit this.
[0044] Exemplarily, the situations in which the terminal device and the network device complete data communication may include: after the terminal device completes registration connection with the base station, after the terminal device sends status information to the cloud, and so on.
[0045] In an embodiment of the present application, the PSM parameter can be used to instruct the terminal device to enter the PSM state.
[0046] In some embodiments, the method may further include:
[0047] Acquire communication context information and save the communication context information in the communication module.
[0048] It should be noted that in the embodiment of the present application, the communication module also saves the communication context locally in the communication module, so that when the terminal device needs to communicate again, the communication context can be directly obtained locally to restore the state before the terminal device enters the PSM state. Exemplarily, the communication context information can be saved locally before the communication module sends the PSM parameters to the sleep module.
[0049] In some embodiments, when the terminal device completes data communication with the network device, the method may further include:
[0050] A notification message is sent to the network device through the communication module; wherein the notification message is used to notify the network device that the terminal device is ready to enter the PSM state.
[0051] It should be noted that in the traditional PSM solution, when the terminal device enters the PSM state, the radio frequency of the terminal device is turned off. At this time, the terminal device no longer receives paging messages and downlink data. However, for the terminal device, the communication module still needs to bear the PSM power consumption of the terminal device in the PSM state, resulting in an increase in the current of the terminal device in standby mode.
[0052] In the embodiment of the present application, after the terminal device completes data communication, the communication module sends a notification message to the network device. The network device in the embodiment of the present application is preferably a base station. The notification message is used to notify the base station that the terminal device is about to enter the PSM state, so that the base station does not communicate with the terminal device during the period when the terminal device is in the PSM state. At the same time, the base station still retains the registration information of the terminal device. Here, the notification message sent by the communication module to the base station may include information that the base station is about to enter the PSM state, sleep duration information of the terminal device, etc.
[0053] That is, after the terminal device completes data communication with the network device, the communication module sends the PSM parameter to the sleep module. That is, the communication module sends the PSM parameter to the sleep module to inform the sleep module that the terminal device is about to enter the PSM state.
[0054] S102: After receiving the PSM parameter, the sleep module controls the communication module to shut down and turns off the power supply of the communication module.
[0055] It should be noted that after receiving the PSM parameter, the sleep module will control the communication module to shut down and turn off the power supply to the control module. For example, the sleep module sends a shutdown command to the communication module, which is used to control the communication module to shut down and turn off the power supply to the communication module.
[0056] It should also be noted that in the embodiment of the present application, after receiving the PSM parameters, the sleep module can also perform certain conversions on the PSM parameters in some scenarios to obtain the converted PSM parameters, so that when the terminal device needs to exit the PSM state, the converted PSM parameters are sent to the communication module. The communication module can quickly recover to the state before power failure based on the converted PSM parameters and the communication context. In addition, the sleep module may not convert the PSM parameters, and directly send the previously received PSM parameters to the communication module when the terminal device needs to exit the PSM state. The communication module can quickly recover to the state before power failure based on the PSM parameters and the communication context. Whether the PSM parameters need to be converted can be determined in combination with the actual application scenario, and the embodiment of the present application does not specifically limit this.
[0057] That is to say, in an embodiment of the present application, before the terminal device enters the PSM state, the unchanged part of the data required when the communication module is started again (such as communication context information) will be saved locally in the communication module, and the part that may change (such as PSM parameters) will be sent to the sleep module, and the sleep module will maintain the PSM state of the terminal device.
[0058] It should also be noted that when the terminal device is in the PSM state, the communication module has been shut down and the power supply of the communication module has been turned off. Since the communication module has sent the PSM parameters to the sleep module, at this time, the sleep module maintains the PSM state of the terminal device and controls other functions of the terminal device. Here, the PSM parameters sent by the communication module to the sleep module may include parameters related to maintaining the PSM state of the terminal, sleep duration information, etc.
[0059] This embodiment provides a low-power communication method, which is applied to a terminal device, and the terminal device includes a communication module and a sleep module. When the terminal device completes data communication with the network device, the communication module sends PSM parameters to the sleep module; after receiving the PSM parameters, the sleep module controls the communication module to shut down and turns off the power supply of the communication module; in this way, when the terminal device enters the PSM state, the PSM parameters are transferred from the communication module to the sleep module, and the communication module is controlled to shut down and power off through the sleep module, so that when the terminal device is in a low-power state, the sleep module can maintain the PSM state of the terminal device, and the communication module is in a power-off state and does not communicate with the outside world, saving the power consumption of the terminal device.
[0060] In another embodiment of the present application, see Figure 2 , which shows a flow chart of another low-power communication method provided by an embodiment of the present application. Figure 2 As shown, the method may include:
[0061] S201, start the timer in the sleep module.
[0062] It should be noted that after the terminal device enters the PSM state, that is, after the sleep module receives the PSM parameters, it controls the communication module to shut down and turns off the power supply of the communication module. The embodiment of the present application will also start the timer in the sleep module, that is, start timing at the same time as the terminal device enters the PSM state to time the sleep time of the terminal device.
[0063] S202: When the terminal device meets the preset conditions, the sleep module controls the communication module to start up and turns on the power supply of the communication module.
[0064] It should be noted that after entering the PSM state, the terminal device will not remain in the sleep state, but will be awakened when certain preset conditions are met. For example, when waking up the terminal device, the sleep module can send a power-on command to the communication module, which is used to control the communication module to turn on and turn on the power supply of the communication module.
[0065] In some embodiments, when the terminal device meets the preset conditions, controlling the communication module to turn on and turning on the power supply of the communication module may include: when the timing duration of the counter reaches the preset sleep duration, the sleep module controls the communication module to turn on and turns on the power supply of the communication module.
[0066] In some embodiments, when the terminal device meets the preset conditions, controlling the communication module to turn on and turning on the power supply of the communication module may also include: when the timing duration of the counter has not reached the preset sleep duration, if a PSM state interrupt command is received to make the terminal device exit the PSM state, the sleep module controls the communication module to turn on and turns on the power supply of the communication module.
[0067] It should be noted that, in the embodiment of the present application, the sleep module controls the communication module to start up and turns on the power supply of the communication module by sending a power-on command to the communication module through the sleep module to restore the power supply to the communication module and control the communication module to start up. Other methods may also be used, and the embodiment of the present application does not specifically limit this.
[0068] Exemplarily, when the timing duration of the counter reaches a preset sleep duration, the sleep module controls the communication module to start up and turns on the power supply of the communication module.
[0069] It should be noted that when the sleep module is timing, it has already learned the sleep duration of the terminal device, that is, the preset sleep duration, so that the sleep module can restore power to the communication module and control the communication module to turn on when the timing duration reaches the preset sleep duration.
[0070] For example: In order to prevent the terminal device from being in the PSM state for a long time and not communicating with the base station, which will cause the base station to delete the terminal device, the terminal device needs to communicate with the base station once after the preset sleep time is reached to ensure that it will not be deleted by the base station. Another example: For smart meter devices, if it is necessary to upload power consumption data to the server once a month, the communication module of the smart meter device needs to be started every month to send the power consumption data to the server.
[0071] For example, although the timing duration of the counter has not reached the preset sleep duration, when the terminal device has a communication demand, the sleep module controls the communication module to start and turns on the power supply of the communication module.
[0072] It should be noted that the communication demand of the terminal device may include: receiving a PSM state interruption command so that the terminal device exits the PSM state.
[0073] For example: for devices such as smart door locks, shared bicycles or shared power banks, if the user needs to unlock them during their sleep period, the PSM state interrupt command can be used to make them exit the PSM state to perform actions such as unlocking.
[0074] Alternatively, it may also be any scenario where the terminal device needs to exit the PSM state, and the embodiments of the present application do not specifically limit this.
[0075] In some embodiments, the method may further include:
[0076] The communication module reads the communication context information stored in itself;
[0077] The communication module sends a PSM parameter acquisition command to the sleep module;
[0078] According to the PSM parameter acquisition command, the sleep module sends the PSM parameters to the communication module;
[0079] According to the PSM parameters and the communication context information, the communication module is controlled to be restored to a first state; wherein the first state represents a state before the communication module is shut down.
[0080] It should be noted that when the terminal device needs to communicate, the power supply to the communication module will be restored. After the communication module is powered on and starts, it detects that it is in the process of starting in low power mode, reads its saved communication context information, and queries the sleep module for PSM parameters. The sleep module sends the PSM parameters (which may be the converted PSM parameters, or the original PSM parameters sent by the communication module to the sleep module before the terminal device enters the PSM state) to the communication module.
[0081] It should be noted that in the related art, when the terminal needs to recover from the PSM state, it needs to re-initiate a connection to the base station, such as performing handshake communication, authentication, link creation, etc. This process will generate relatively large power consumption.
[0082] In an embodiment of the present application, after obtaining the PSM parameters, the communication module can start in the PSM state according to the PSM parameters and communication context information, that is, start in a low-power manner and directly restore to the state before the power outage. The network configuration, etc. are consistent with before the power outage. At this time, data communication can be directly carried out with network equipment (such as base stations, etc.).
[0083] Therefore, in some embodiments, after the communication module is restored to the first state, the method may further include: performing data communication with the network device.
[0084] It should be noted that after the communication module is restored to the state before shutdown, the terminal device can communicate data with the network device through the communication device to send data to the network device or receive data from the network device. At this time, there is no need for authentication, link creation and other processes.
[0085] The present embodiment provides a low-power communication method, and elaborates on the process of the terminal recovering from the PSM state to the normal state. It can be seen that the low-power communication method proposed in the present embodiment migrates part of the communication protocol data (i.e., PSM parameters) to the sleep module during the shutdown of the communication module. After the communication module is powered on, the communication protocol data (such as the converted PSM parameters) is restored from the sleep module, so that the communication module no longer needs to perform authentication, link creation and other processes, and can directly recover to the state before power failure, quickly execute network communication, and further save power consumption.
[0086] In another embodiment of the present application, see Figure 3 , which shows a schematic diagram of an application framework of a low-power communication method provided by an embodiment of the present application. Figure 3 As shown, the application framework of the low-power communication method provided in the embodiment of the present application can be divided into two parts: a communication module 100 and a sleep module 200. Among them, the communication module can also be called a communication function block, a communication module, a communication unit, etc.; the sleep module can also be called a sleep function block, a sleep module, a sleep unit, etc. In addition, since in the embodiment of the present application, the sleep module serves as the main control unit of the terminal, the sleep module can also be called a main control module, a main control unit, etc.
[0087] The communication module 100 is mainly used for establishing a communication link, sending and receiving data, querying status, and responding to commands, etc. The communication module 100 may include a communication hardware submodule 101 , a communication software submodule 102 , and an interactive software submodule 103 .
[0088] The sleep module 200 is mainly used to manage the PSM state of the terminal device, and can also be used to manage other functions of the terminal device. The sleep module 200 includes a sleep hardware submodule 201 and a sleep software submodule 202 .
[0089] The following will Figure 3 Based on the application framework schematic diagram shown, another low-power communication method provided in an embodiment of the present application is described in detail.
[0090] The communication module 100 is mainly responsible for the communication function of the terminal device. Specifically, the communication hardware submodule 101 is responsible for establishing a physical connection with the remote end (such as the network device in the above embodiment) and sending / receiving physical signals.
[0091] The communication software submodule 102 is responsible for establishing a protocol connection with the remote end.
[0092] The interactive software submodule 103 is responsible for the functions and processes of the business and application layers, such as: AT command (Attention Command, AT command) function, log (LOG) function, debugging function, etc.
[0093] That is to say, the function realization of the communication module 100 needs to be completed through the partial or complete cooperation of the communication hardware submodule 101 , the communication software submodule 102 and the interactive software submodule 103 .
[0094] When the terminal device needs to send data outward, the interactive software submodule 103 obtains the data to be sent and sends the data to be sent to the communication software submodule 102 .
[0095] Here, the data to be sent may be data to be sent generated by other terminal devices. For example, for a smart door lock, it may be an unlocking request initiated by a resident through a mobile phone or other device, and the terminal device then sends the message to the server. The data to be sent may also be some data actively sent out by the terminal device itself, for example, when the power of the terminal device is about to run out or is in an abnormal state, the reporting information sent to the server; the data to be sent may also be collected data actively sent to the server by devices such as smart meters, etc. The embodiments of the present application do not specifically limit this.
[0096] The communication software submodule 102 determines that the protocol connection has been established, and sends the data to be sent to the communication hardware submodule 101; the communication hardware submodule 101 determines that the physical connection has been established, and sends the data to be sent to the remote end. The remote end can be any remote device or equipment such as other terminal equipment, base station or server that can communicate with the terminal equipment.
[0097] When the terminal device receives information from a remote end, the communication hardware submodule 101 receives the signal sent from the remote end and parses the signal. After parsing the information in the signal, the parsed information is transmitted to the communication software submodule 102; the communication software submodule 102 determines the content of the information. If it is business data, the data is transmitted to the interactive software submodule 103 for use; if it is communication protocol data, it is used within the communication software submodule 102.
[0098] The sleep module 200 may be an MCU, a clock chip (Real-Time Clock, RTC), an intelligent sensor or other components and / or modules with a wake-up function. It is mainly used to manage the functions of the terminal device in the sleep state. In the embodiment of the present application, the sleep state may include a state in which all functions of the terminal device system except the real-time clock are turned off; it may also include a state in which the terminal device maintains detection of external scenes, such as detecting acceleration values. In other words, when the terminal is in the PSM state (also referred to as the sleep state), the communication module 100 is shut down and powered off, and other functions of the terminal device can be selectively retained or turned off according to actual needs, and the embodiment of the present application does not specifically limit this.
[0099] When the terminal device is about to enter the PSM state, the sleep software submodule 202 notifies the communication module 100 to shut down, and controls the sleep hardware submodule 201 to shut down the power supply of the communication module 100 .
[0100] When the terminal device needs to communicate (for example, when the sleep time of the terminal device reaches the preset sleep time), the sleep module 200 supplies power to the communication module 100 and sends the PSM parameters to the communication module 100 to restore the communication module 100 to the state before power failure.
[0101] Based on the specific functions of the above modules, see Figure 4 , which shows a schematic diagram of the interaction process between a communication module and a sleep module provided in an embodiment of the present application. Figure 4 As shown, the interaction process mainly provides a workflow for a terminal device to enter the PSM state. Specifically, when the data communication function is completed, the communication module 100 notifies the terminal device on the base station side to enter the PSM state, the communication software module 102 saves the communication context locally, and the interaction software submodule 103 sends the PSM function-related parameters to the sleep module 200. The sleep software submodule 202 notifies the communication module 100 to shut down, and controls the sleep hardware submodule 201 to shut down the power supply of the communication module 100. In other words, in an embodiment of the present application, low-power communication is mainly achieved by powering off the communication module, that is, the interaction process mainly provides a workflow for a communication module to enter the PSM state. Figure 4Take the interactive process shown as an example, see Figure 5 , which shows a flow chart of another low-power communication method provided by an embodiment of the present application, such as Figure 5 As shown, the method may include:
[0102] S501. After the terminal device completes the data communication function, the communication module 100 notifies the base station side terminal to enter the PSM state.
[0103] S502: The communication software submodule 102 saves the communication context locally to the communication function block.
[0104] For example, the communication context is saved in a flash memory (flash), wherein the communication context may also be referred to as a network context.
[0105] S503 : The interactive software submodule 103 sends the PSM parameters to the sleep module 200 .
[0106] S504 , the sleep software submodule 202 notifies the communication module 100 to shut down, and controls the sleep hardware submodule 201 to shut down the power supply of the communication module 100 .
[0107] Based on the specific functions of the above modules, see Figure 6 , which shows another schematic diagram of the interaction process between the communication module and the sleep module provided in an embodiment of the present application. Figure 6 As shown, the interaction process mainly provides a workflow for a terminal device to exit the PSM state. Specifically, when the terminal device needs to communicate data, such as when the PSM timing is reached, the sleep module 200 supplies power to the communication module 100. After the communication module 100 is started, it detects that it is in the PSM startup process and queries the sleep module 200 for PSM related parameters. The communication module 100 restores to the network configuration before power failure based on the communication context and PSM parameters, and directly completes the communication without the need for authentication, link creation and other processes. In other words, in an embodiment of the present application, low-power communication is mainly achieved by starting the communication module in low-power mode, that is, the interaction process mainly provides a workflow for a communication module to exit the PSM state. Figure 6 Take the interactive process shown as an example, see Figure 7 , which shows a flow chart of another low-power communication method provided by an embodiment of the present application, such as Figure 7 As shown, the method may include:
[0108] S701 . The sleep module 200 supplies power to the communication module 100 , and the communication module 100 is powered on.
[0109] It should be noted that the sleep module 200 can supply power to the communication module 100 when the PSM timing arrives or when the terminal device has a communication demand. The PSM timing is the preset sleep duration in the above embodiment.
[0110] S702 , after the communication module 100 is started, it detects that it is in the PSM startup process, reads the information before shutdown, and queries the sleep module 200 for PSM information.
[0111] It should be noted that the PSM startup process, that is, the communication module 100 is started in low power consumption mode. The communication module 100 can first read the locally stored pre-shutdown information (i.e., the aforementioned communication context information, etc.), and query the sleep module 200 for PSM information to obtain PSM information from the sleep module 200. The PSM information here can be the converted PSM parameters obtained after being processed by the sleep module, or it can be the PSM parameters sent by the communication module 100 to the sleep module 200 before entering the PSM state. Whether the PSM parameters are converted can be determined in combination with the actual usage scenario, and the embodiment of the present application does not specifically limit this.
[0112] The sleep module 200 transmits the PSM information to the communication module 100. Here, the PSM information transmitted by the sleep module 200 to the communication module 100 may include PSM compensation time, parameter information related to PSM state startup, etc., so that the communication module 100 starts in the PSM state.
[0113] S703: The communication module 100 is restored to the state before shutdown and data communication is completed.
[0114] It should be noted that the communication module 100 can directly restore to the network configuration before the power failure and directly complete the communication, such as sending the business data, without the need for authentication, link creation and other processes.
[0115] To summarize, the application architecture of the low-power communication method provided in the embodiment of the present application can be composed of two parts: a communication module (first part), which can perform communication link creation, data transmission and reception, status query and command response, which includes communication hardware, communication software and interactive software; a sleep module (second part), which can manage the sleep state, which includes sleep hardware and sleep software.
[0116] The overall workflow of the low-power communication method provided by the embodiment of the present application is briefly described as follows: after the data communication function is completed, the communication module notifies the terminal device on the base station side to enter the PSM state, the communication software saves the communication context to the flash, and the interactive software sends the PSM function related parameters (i.e., PSM parameters) to the sleep module. The sleep software notifies the communication module to shut down, and controls the sleep hardware to shut down the power supply of the communication module.
[0117] When the PSM timing is reached, the sleep module supplies power to the communication module. After the communication module starts, it detects that it is in the PSM startup process and queries the sleep module for PSM related parameters. The communication module restores the network configuration before power failure and completes the communication directly without authentication, link creation and other processes.
[0118] In short, the communication module is responsible for the communication function of the terminal. Among them, the communication hardware is responsible for establishing a physical connection with the remote end and sending / receiving physical signals; the communication software is responsible for establishing a protocol connection with the remote end; the interactive software is responsible for the functions and processes of the business and application layers, including but not limited to one or more of the AT command function, LOG function, and debugging function.
[0119] When the terminal device needs to send data outward, the interactive software obtains the data to be sent and sends the data to be sent to the communication software; the communication software determines that the protocol connection has been established and sends the data to be sent to the communication hardware; the communication hardware determines that the physical connection has been established and sends the data to be sent to the remote end.
[0120] When the terminal device receives information from a remote end, the communication hardware receives the signal sent from the remote end, parses the information in the signal, and transmits the information to the communication software; the communication software determines the content of the information. If it is business data, the data is sent to the interactive software for use; if it is communication protocol data, it is used within the communication software.
[0121] The sleep function block can be an MCU, RTC, smart sensor or other components and / or modules with wake-up functions. It manages the functions of the terminal device in the sleep state. The so-called sleep state may turn off all functions of the system except RTC; it may also maintain the detection of external scenes, such as detecting acceleration values. It may also have other functions.
[0122] When the terminal device is about to enter the sleep state, the sleep software notifies the communication module to shut down, and controls the sleep hardware to shut down the power supply of the communication module.
[0123] When the terminal device needs to communicate (for example, the PSM timing arrives), the sleep module supplies power to the communication module and sends PSM related parameters to the communication module.
[0124] That is to say, in the embodiment of the present application, the communication module and the sleep module are two independent hardware entities, existing in the form of independent chips and / or modules and / or circuits, and the sleep module is the main control unit; when the communication module and the communication system (i.e., the terminal device, etc.) enter the PSM state, the sleep module completely cuts off the power of the communication module, and the sleep module performs PSM timing; after the communication module is powered on, the PSM function-related parameters are obtained from the sleep module, and the state before power failure is restored. Data transmission is carried out directly without network authentication and connection establishment.
[0125] Compared with the low-power communication scheme in the related art, the low-power communication scheme provided in the embodiment of the present application separates the communication module and the sleep module, and the two are each a separate hardware entity. For the terminal device in which the communication module and the sleep module are separated, it can realize the fast communication of the PSM function, that is, quickly wake up the terminal device from the PSM state, and there is no need to perform authentication, create links and other processes, thereby saving the power consumption of the terminal device; by cutting off the power of the communication module in the PSM state, the power consumption of the communication module in the PSM standby state can also be saved.
[0126] The low-power communication method provided in the embodiment of the present application adjusts the device architecture and migrates part of the traditional communication protocol data to an external processor (i.e., a sleep module), so that the communication module can be powered off when the terminal device is asleep to save power consumption; when communication is required, the communication protocol data of the external processor is restored to the communication module, thereby ensuring that the communication module can perform fast network communication to save power consumption.
[0127] In another embodiment of the present application, see Figure 8 , which shows a schematic diagram of the structure of a low-power communication device 80 provided in an embodiment of the present application. Figure 8 As shown, the low power consumption communication device may include a communication module 100 and a sleep module 200, wherein:
[0128] The communication module 100 is configured to send the PSM parameter to the sleep module when the terminal device completes data communication with the network device;
[0129] The sleep module 200 is configured to control the communication module to shut down and turn off the power supply of the communication module after receiving the PSM parameter.
[0130] In some embodiments, the communication module 100 is further configured to obtain communication context information and store the communication context information in the communication module.
[0131] In some embodiments, the sleep module 200 is further configured to start a timer in the sleep module; and when the timing duration of the counter reaches a preset sleep duration, control the communication module to start and turn on the power supply of the communication module.
[0132] In some embodiments, the sleep module 200 is also configured to control the communication module to start and turn on the power supply of the communication module if a PSM state interrupt command is received to cause the terminal device to exit the PSM state when the timing duration of the counter has not reached the preset sleep duration.
[0133] In some embodiments, the communication module 100 is further configured to read the communication context information stored in itself; and send a PSM parameter acquisition command to the sleep module;
[0134] The sleep module 200 is further configured to send the PSM parameters to the communication module according to the PSM parameter acquisition command;
[0135] The communication module 100 is further configured to restore to a first state according to the PSM parameters and the communication context information; wherein the first state represents the state before the communication module is shut down.
[0136] In some embodiments, the communication module 100 is further configured to perform data communication with the network device.
[0137] In some embodiments, the communication module 100 is further configured to send a notification message to the network device; wherein the notification message is used to notify the network device that the terminal device is ready to enter the PSM state.
[0138] In some embodiments, the communication module 100 is integrated into a first hardware component, and the sleep module 200 is integrated into a second hardware component; wherein the hardware component is any one of the following: a chip, a module, and a circuit.
[0139] It can be understood that in this embodiment, a "module" can be a part of a circuit, a part of a processor, a part of a program or software, etc. Moreover, in this embodiment, the communication module and the sleep module can exist physically separately and be integrated in different hardware components. The above-mentioned integrated modules can be implemented in the form of hardware, or in the form of software functional modules, or even in the form of a combination of hardware and software functional modules.
[0140] Furthermore, if the integrated module is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0141] Therefore, this embodiment provides a computer storage medium, which stores a computer program. When the computer program is executed by at least one processor, the low-power communication method described in any one of the above embodiments is implemented.
[0142] Based on the above-mentioned composition of a low-power communication device 80 and a computer storage medium, see Fig. 9 , which shows a schematic diagram of the structure of a terminal device 90 provided in an embodiment of the present application. Fig. 9 As shown, it may include: a communication interface 901, a memory 902 and a processor 903; each component is coupled together through a bus system 904. It is understood that the bus system 904 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 904 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig. 9 Various buses are labeled as bus system 904. Among them, the communication interface 901 is used for receiving and sending signals in the process of sending and receiving information between other external network elements;
[0143] Memory 902, used to store computer programs that can be run on processor 903;
[0144] The processor 903 is configured to execute, when running the computer program:
[0145] When the terminal device completes data communication with the network device, the communication module sends the PSM parameter to the sleep module;
[0146] After receiving the PSM parameter, the sleep module controls the communication module to shut down and turns off the power supply of the communication module.
[0147] It can be understood that the memory 902 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 902 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0148] The processor 903 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 903. The above processor 903 may be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 902, and the processor 903 reads the information in the memory 902 and completes the steps of the above method in combination with its hardware.
[0149] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0150] For software implementation, the techniques described herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0151] Optionally, as another embodiment, the processor 903 is further configured to execute the method described in any one of the aforementioned embodiments when running the computer program.
[0152] Based on the composition of the low power consumption communication device 80, see Fig.10 , which shows a schematic diagram of the composition structure of another terminal device 90 provided in an embodiment of the present application. Fig.10 As shown, the terminal device 90 at least includes the low-power communication device 80 described in any one of the aforementioned embodiments.
[0153] For the terminal device 90, when the terminal device enters the PSM state, the PSM parameters are migrated from the communication module to the sleep module, and the communication module is shut down and powered off through the sleep module. Thus, when the terminal device is in a low power consumption state, the sleep module can maintain the PSM state of the terminal device, and the communication module is in a power-off state and does not communicate with the outside world, thereby saving power consumption of the terminal device.
[0154] Based on the composition of the above terminal device 90, see Fig.11 , which shows a schematic diagram of the structure of a communication system 110 provided in an embodiment of the present application. Fig.11 As shown, the communication system 110 includes at least the network device 10 and the terminal device 90 described in any one of the aforementioned embodiments.
[0155] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
[0156] It should be noted that, in this application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0157] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0158] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0159] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0160] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0161] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A low power consumption communication method, characterized in that: Applied to a terminal device, the terminal device includes a communication module and a sleep module, and the method includes: When the terminal device completes data communication with the network device, acquiring communication context information, and storing the communication context information in the communication module; The communication module sends PSM parameters to the sleep module; After receiving the PSM parameter, the sleep module controls the communication module to shut down and turns off the power supply of the communication module; When the terminal device needs to perform data communication, according to the PSM parameter and the communication context information, control the communication module to be restored to a first state; wherein the first state represents the state before the communication module is shut down; After the communication module is restored to the first state, data communication is performed with the network device without performing authentication and link creation processes.
2. The method according to claim 1, characterized in that After the sleep module controls the communication module to shut down and turns off the power supply of the communication module, the method further includes: Starting a counter in the sleep module; When the timing duration of the counter reaches the preset sleep duration, the sleep module controls the communication module to start up and turns on the power supply of the communication module.
3. The method according to claim 2, characterized in that The method further comprises: When the timing duration of the counter does not reach the preset sleep duration, if a PSM state interrupt command is received to cause the terminal device to exit the PSM state, the sleep module controls the communication module to start and turns on the power supply of the communication module.
4. The method according to claim 1, characterized in that: The method further comprises: The communication module reads the communication context information stored in itself; The communication module sends a PSM parameter acquisition command to the sleep module; According to the PSM parameter acquisition command, the sleep module sends the PSM parameter to the communication module; According to the PSM parameters and the communication context information, the communication module is controlled to be restored to the first state; wherein, The first state indicates the state before the communication module is shut down.
5. The method according to claim 1, characterized in that When the terminal device completes data communication with the network device, the method further includes: A notification message is sent to the network device through the communication module; wherein the notification message is used to notify the network device that the terminal device is ready to enter the PSM state.
6. A low power consumption communication device, characterized in that: The low-power communication device includes a communication module and a sleep module; wherein, The communication module is configured to obtain communication context information when the terminal device and the network device complete data communication, and store the communication context information in the communication module, and send PSM parameters to the sleep module; it is also configured to control the communication module to return to the first state according to the PSM parameters and the communication context information when the terminal device needs to perform data communication; wherein the first state represents the state before the communication module is shut down; it is also configured to perform data communication with the network device without performing authentication and link creation process after the communication module is restored to the first state; The sleep module is configured to control the communication module to shut down and turn off the power supply of the communication module after receiving the PSM parameter.
7. The low power consumption communication device according to claim 6, characterized in that: The sleep module is further configured to start a counter in the sleep module; and when the timing duration of the counter reaches a preset sleep duration, control the communication module to start and turn on the power supply of the communication module.
8. The low power consumption communication device according to claim 7, characterized in that: The sleep module is also configured to control the communication module to start and turn on the power supply of the communication module if a PSM state interrupt command is received to make the terminal device exit the PSM state when the timing duration of the counter has not reached the preset sleep duration.
9. The low power consumption communication device according to claim 6, characterized in that: The communication module is further configured to read the communication context information stored in the module; and send a PSM parameter acquisition command to the sleep module; The sleep module is further configured to send the PSM parameter to the communication module according to the PSM parameter acquisition command; The communication module is further configured to restore to the first state according to the PSM parameters and the communication context information; The first state indicates the state before the communication module is shut down.
10. The low power consumption communication device according to claim 6, characterized in that: The communication module is further configured to send a notification message to the network device; wherein the notification message is used to notify the network device that the terminal device is ready to enter the PSM state.
11. The low power consumption communication device according to any one of claims 6 to 10, characterized in that: The communication module is integrated into a first hardware component, and the sleep module is integrated into a second hardware component; wherein the hardware component is any one of the following: a chip, a module, and a circuit.
12. A terminal device, characterized in that: The terminal device comprises the low-power communication device as described in any one of claims 6 to 11.
13. A terminal device, characterized in that: The terminal includes a memory and a processor, wherein: The memory is used to store a computer program that can be run on the processor; The processor is used to execute the low-power communication method according to any one of claims 1 to 5 when running the computer program.
14. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by at least one processor, the low-power communication method according to any one of claims 1 to 5 is implemented.
15. A communication system, characterized in that: The communication system comprises a network device and a terminal device as claimed in claim 12 or 13.
Citation Information
Patent Citations
Method and apparatus for activating sleep mode of terminal
CN104205953A
Low-power-consumption control method, device and system and storage medium
CN109976501A
PSM and EDRX power-down sleep method and terminal thereof
CN111315003A
