A psm hibernation method and related apparatus
By controlling the sleep time of the communication module through the GPIO interface, the problems of service failure and high power consumption caused by the mismatch of PSM sleep time are solved, and the efficient sleep and low power consumption of the communication module are realized.
Patent Information
- Application Number
- CN202310778111.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2043-06-28
AI Technical Summary
In existing communication modules, users cannot control the time when the PSM enters sleep mode, which leads to a mismatch between the service execution time and the 3324 timer, resulting in service failure or increased power consumption.
The communication module is controlled to enter PSM sleep state through the GPIO interface. Information is sent and received through the GPIO interface to control the sleep time of the communication module, including enabling interrupt functions and setting the timer time to the minimum value.
This ensures the integrity of the communication module's services while reducing power consumption, ensuring that the communication module enters PSM sleep mode in a timely manner, and reducing overall power consumption.
Smart Images

Figure CN116669158B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication technology, in particular to a low power saving mode (PSM) sleep method and related device. BACKGROUND
[0002] Currently, after a communication module (such as a Cat1 module) opens a PSM function, it usually enters an idle state and waits for a 3324 timer to expire before entering PSM sleep. There are multiple ways to wake up the communication module, usually by pulling down the PSM_INT pin to wake up the communication module, or actively waking up the communication module by pressing the power key, or the network side wakes up the communication module through a tracking area update (TAU) timer.
[0003] The user can control the PSM sleep to wake up at any time by operating the PSM_INT pin or the power key, but cannot control the time when the communication module enters PSM sleep. In the case that the user's service is not completed but the 3324 timer has expired, the communication module will enter PSM sleep, resulting in user service failure. If the 3324 timer time is lengthened, the communication module cannot enter PSM sleep in time after the user's service is completed, resulting in high overall power consumption of the communication module. SUMMARY
[0004] The embodiments of the present application provide a PSM sleep method and related device, which can control the time when the communication module enters PSM sleep, to solve the problem of user service execution failure or high power consumption of the communication module caused by the mismatch between the user service execution time and the 3324 timer time.
[0005] In a first aspect, the embodiments of the present application provide a PSM sleep method, which can be executed by a communication device. The communication device can be a device, or a chip (system) or circuit for a device, and the present application does not limit it. The method comprises:
[0006] The first communication device sends first information to the controller when the service execution is completed, and the first information is used to indicate that the service execution of the first communication device is completed;
[0007] The first communication device receives second information from the controller through a first general input and output (GPIO) interface, and the second information is used to indicate that the first communication device enters a low power saving mode (PSM) sleep state, and the first GPIO interface is an interface for opening a PSM function.
[0008] In the embodiments of the present application, a PSM hibernation method is provided. The first communication device sends first information to the controller when the service execution is completed, and receives second information from the controller through a first general purpose input output (GPIO) interface. The time for the first communication device to enter the PSM hibernation state can be controlled through the first GPIO interface, so as to solve the problem of service execution failure or high power consumption of the first communication device caused by the mismatch between the service execution time and the time of the 3324 timer, that is, to ensure the integrity of the service of the first communication device and make the first communication device enter the PSM hibernation in time.
[0009] Optionally, the first information in the embodiments of the present application can be a state code, which is used to indicate that the service execution of the first communication device is completed. In the embodiments of the present application, the second information is sent to pull down the first GPIO interface pin, which is used to indicate that the first communication device enters the low-power mode PSM hibernation state.
[0010] Optionally, the first communication device in the embodiments of the present application can be a communication module such as a Cat1 module, and the controller in the embodiments of the present application can be a device carrying a processor that can be used to execute computer execution instructions, or a processor that can be used to execute computer execution instructions, such as a micro control unit (MCU).
[0011] In a possible implementation, before the first information is sent, the method further includes:
[0012] The first communication device enables an interrupt function of the first GPIO interface, and the interrupt function is used to open the PSM function.
[0013] In the embodiments of the present application, a possible specific implementation of the interrupt function is provided. Specifically, before the first information is sent, the first communication device enables the interrupt function of the first GPIO interface, and the interrupt function is used to open the PSM function. It can be understood that the interrupt function is in an inhibited state at this time, and the received second information is used to trigger the interrupt function to make the interrupt function enter a working state. By enabling the interrupt function of the first GPIO interface, the time for the first communication device to enter the PSM hibernation state can be controlled through the first GPIO interface, so as to solve the problem of service execution failure or high power consumption of the first communication device caused by the mismatch between the service execution time and the time of the 3324 timer.
[0014] In a possible implementation, after the second information is received, the method further includes:
[0015] The first communication device starts the PSM function, sets the time of the first timer to the minimum value in the value range, and the first timer is used to set the time of waiting in the idle state before entering the PSM.
[0016] In the embodiments of the present application, a possible implementation of entering the PSM sleep state is provided, specifically, after receiving the second information, the first communication device starts the PSM function, and sets the time of the first timer to the minimum value in the value range, which can ensure the integrity of the first communication device business while also allowing the first communication device to enter the PSM sleep state in time, and reduce the power consumption of the first communication device.
[0017] Optionally, the first timer in the embodiments of the present application is used to set the time of waiting in the idle state before entering the PSM, which can be a 3324 timer.
[0018] In the second aspect, the embodiments of the present application provide a PSM sleep method, which can be executed by a communication device. The communication device can be a device, a chip (system) or circuit for the device, and the present application does not limit it. The method comprises:
[0019] The controller receives first information from the first communication device, and the first information is used to indicate that the business execution of the first communication device is completed.
[0020] The controller sends second information to the first communication device through a first general input and output GPIO interface, and the second information is used to indicate that the first communication device enters the low-power mode PSM sleep state, and the first GPIO interface is an interface for opening the PSM function.
[0021] In the embodiments of the present application, a PSM sleep method is provided, the controller receives first information from the first communication device, and sends second information to the first communication device through the first GPIO interface, which can control the time of the first communication device entering the PSM sleep state through a GPIO interface, so as to solve the problem of business execution failure or high power consumption of the first communication device caused by the mismatch between the business execution time and the time of the 3324 timer, that is, to ensure the integrity of the first communication device business while also allowing the first communication device to enter the PSM sleep in time.
[0022] Optionally, the first information in the embodiments of the present application can be a state code, which is used to indicate that the business execution of the first communication device is completed. In the embodiments of the present application, the second information is sent to pull down the first GPIO interface pin, which is used to indicate that the first communication device enters the low-power mode PSM sleep state.
[0023] Optionally, the first communication device in the embodiments of the present application can be a communication module such as a Cat1 module, and the controller in the embodiments of the present application can be a device carrying a processor capable of executing computer-executable instructions or a processor capable of executing computer-executable instructions such as a micro control unit (MCU).
[0024] In a possible implementation, the first GPIO interface is an interface enabled with an interrupt function, and the interrupt function is used to open a PSM function.
[0025] In the embodiments of the present application, a possible specific implementation of the first GPIO interface is provided, specifically, the first GPIO interface is an interface enabled with an interrupt function, and the interrupt function is used to open a PSM function. It can be understood that the interrupt function is in a disabled state at this time, and the second information received is used to trigger the interrupt function to enter a working state. By the embodiments of the present application, the interrupt function is enabled for the first GPIO interface, and the time for the first communication device to enter the PSM sleep state can be controlled through the first GPIO interface, so as to solve the problem of business execution failure or high power consumption of the first communication device caused by the mismatch between the business execution time and the time of the 3324 timer.
[0026] In a third aspect, the embodiments of the present application provide a communication device, which comprises a module or unit for executing the method of any one of the first aspect.
[0027] In a possible design, the device comprises:
[0028] The communication unit is configured to send first information to the controller when the business execution is completed, and the first information is used to indicate that the business execution of the communication device is completed.
[0029] The communication unit is further configured to receive second information from the controller through a first general input / output (GPIO) interface, and the second information is used to indicate that the communication device enters a low-power mode (PSM) sleep state, and the first GPIO interface is an interface configured to open a PSM function.
[0030] In a possible implementation, the device further comprises:
[0031] The processing unit is configured to generate the first information.
[0032] In a possible implementation, the processing unit is further configured to enable an interrupt function for the first GPIO interface, and the interrupt function is used to open a PSM function.
[0033] In a possible implementation, the processing unit is further configured to start the PSM function, set a time of a first timer as a minimum value in a value range, and the first timer is configured to set a time of waiting in an idle state before entering the PSM.
[0034] As to the technical effects brought by the third aspect and any possible implementation, reference can be made to the introduction of the technical effects corresponding to the first aspect and the corresponding implementation.
[0035] In a fourth aspect, an embodiment of the present application provides a communication apparatus, which comprises a module or unit for performing the method according to any of the second aspect.
[0036] In a possible design, the apparatus comprises:
[0037] The communication unit is configured to receive first information from the first communication apparatus, and the first information is configured to indicate that the service execution of the first communication apparatus is completed.
[0038] The communication unit is further configured to send second information to the first communication apparatus through a first general input / output (GPIO) interface, and the second information is configured to indicate that the first communication apparatus enters a low-power mode (PSM) sleep state, and the first GPIO interface is an interface configured to start the PSM function.
[0039] In a possible implementation, the apparatus further comprises:
[0040] The processing unit is configured to generate the second information.
[0041] In a possible implementation, the first GPIO interface is an interface configured to enable an interrupt function, and the interrupt function is configured to start the PSM function.
[0042] As to the technical effects brought by the fourth aspect and any possible implementation, reference can be made to the introduction of the technical effects corresponding to the second aspect and the corresponding implementation.
[0043] Optionally, in the communication apparatus according to any of the third aspect to the fourth aspect and any possible implementation,
[0044] In an implementation, the communication apparatus is a communication device. When the communication apparatus is the communication device, the communication unit can be a transceiver, or an input / output interface; and the processing unit can be at least one processor. Optionally, the transceiver can be a transceiver circuit. Optionally, the input / output interface can be an input / output circuit.
[0045] In another implementation, the communication apparatus is a chip (system) or circuit for a communication device. When the communication apparatus is a chip (system) or circuit for a communication device, the communication unit can be a communication interface (input / output interface), interface circuit, output circuit, input circuit, pin or related circuit on the chip (system) or circuit; the processing unit can be at least one processor, processing circuit or logic circuit.
[0046] In a fifth aspect, an embodiment of the present application provides a communication apparatus, which comprises a processor. The processor is coupled with a memory and is configured to execute instructions in the memory to implement the method in any one of the first aspect to the second aspect and any possible implementation.
[0047] In a sixth aspect, an embodiment of the present application provides a communication apparatus, which comprises a logic circuit and a communication interface. The communication interface is configured to receive information or send information; the logic circuit is configured to receive information or send information through the communication interface, so that the communication apparatus executes the method in any one of the first aspect to the second aspect and any possible implementation.
[0048] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium, which is configured to store a computer program (also referred to as code or instructions); when the computer program is run on a computer, the method in any one of the first aspect to the second aspect and any possible implementation is implemented.
[0049] In an eighth aspect, an embodiment of the present application provides a computer program product, which comprises a computer program (also referred to as code or instructions); when the computer program is run, the computer executes the method in any one of the first aspect to the second aspect and any possible implementation.
[0050] In a ninth aspect, an embodiment of the present application provides a chip, which comprises a processor configured to execute instructions; when the processor executes the instructions, the chip executes the method in any one of the first aspect to the second aspect and any possible implementation. Optionally, the chip further comprises a communication interface configured to receive a signal or send a signal.
[0051] In a tenth aspect, an embodiment of the present application provides a system, which comprises a first communication apparatus configured to execute the method in the first aspect and any possible implementation, and a controller configured to execute the method in the second aspect and any possible implementation.
[0052] Further, in the process of executing the method of any one of the first aspect to the second aspect and any possible implementation manner, the processes of sending information and / or receiving information and the like in the above method can be understood as the process of outputting information by the processor and / or the process of receiving input information by the processor. When the information is output, the processor can output the information to the transceiver (or the communication interface or the sending module) so as to be transmitted by the transceiver. After the information is output by the processor, the information can also need to be processed further and then reach the transceiver. Similarly, when the processor receives the input information, the transceiver (or the communication interface or the sending module) receives the information and inputs the information to the processor. Furthermore, after the transceiver receives the information, the information can need to be processed further and then be input to the processor.
[0053] Based on the above principle, for example, the sending information mentioned in the foregoing method can be understood as the processor outputting the information. For another example, the receiving information can be understood as the processor receiving the input information.
[0054] Optionally, for the transmission, sending and receiving operations and the like involved by the processor, if no special description is made, or if it is not contrary to the actual role or inherent logic in the related description, the processor outputting and receiving, inputting and the like can be understood more generally.
[0055] Optionally, in the process of executing the method of any one of the first aspect to the second aspect and any possible implementation manner, the processor can be a processor specially used for executing the method, or can be a processor such as a general processor which executes the method by executing computer instructions in a memory. The memory can be a non-transitory memory such as a read only memory (ROM), which can be integrated on the same chip with the processor, or can be arranged on different chips respectively. The type of the memory and the arrangement mode of the memory and the processor are not limited in the embodiments of the present application.
[0056] In a possible implementation manner, the at least one memory is located outside the device.
[0057] In another possible implementation manner, the at least one memory is located inside the device.
[0058] In another possible implementation manner, part of the at least one memory is located inside the device, and another part of the at least one memory is located outside the device.
[0059] In the present application, the processor and the memory can also be integrated in one device, i.e. the processor and the memory can also be integrated together.
[0060] In the present application, the time for the communication module to enter the PSM sleep state is controlled through a GPIO interface, so as to solve the problem of service execution failure or high power consumption of the first communication device caused by the mismatch between the service execution time and the time of the 3324 timer, i.e. to ensure the integrity of the communication module service and also make the communication module enter the PSM sleep state in time, thereby reducing the power consumption of the communication module. BRIEF DESCRIPTION OF DRAWINGS
[0061] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the present application. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0062] Figure 1 A schematic diagram of the architecture of a communication system is provided for the present application.
[0063] Figure 2 A flowchart of a PSM sleep method is provided for the present application.
[0064] Figure 3 A flowchart of a PSM sleep method is provided for the present application.
[0065] Figure 4 A schematic diagram of the structure of a communication device is provided for the present application.
[0066] Figure 5 A schematic diagram of the structure of a communication device is provided for the present application.
[0067] Figure 6 A schematic diagram of the structure of a chip is provided for the present application. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be described below in conjunction with the drawings in the present application.
[0069] The terms "first" and "second" and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises", "comprising", "includes", "including", "has", "having" and the like are intended to cover a non-exclusive inclusion, such that a process, method, article, system or apparatus that comprises, includes or has a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, system or apparatus. Additionally, the terms "a" and "an" are defined as taking the meaning of "one or more" of the referenced item.
[0070] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase "in an embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. It is appreciated that those skilled in the art can readily interpret implementation of the various embodiments in light of the disclosure and the inherent nature of the technical features, and that the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0071] It should be understood that, in the application, "at least one" means one or more, "multiple" means two or more, "at least two" means two or three and three or more, and "and / or" is used to describe the relationship between associated objects, indicating that there can be three relationships, for example, "A and / or B" can mean that there are three cases of only A, only B, and A and B at the same time, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after it. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c can mean a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0072] It should be noted that in the present application, "indication" can include direct indication, indirect indication, explicit indication, and implicit indication. When describing certain indication information for indicating A, it can be understood that the indication information carries A, directly indicates A, or indirectly indicates A.
[0073] In the present application, the information indicated by the indication information is referred to as to-be-indicated information. In the implementation process, there are many ways to indicate the to-be-indicated information, for example, but not limited to, the to-be-indicated information can be directly indicated, such as the to-be-indicated information itself or the index of the to-be-indicated information. The to-be-indicated information can also be indirectly indicated by indicating other information, wherein the other information and the to-be-indicated information have an association relationship. The to-be-indicated information can also be only indicated a part of the to-be-indicated information, and the other part of the to-be-indicated information is known or agreed in advance. For example, the indication of specific information can also be achieved by means of the arrangement order of each information agreed in advance (for example, the protocol stipulates), thereby reducing the indication overhead to a certain extent. The to-be-indicated information can be sent as a whole, or can be sent separately into multiple sub-information, and the sending period and / or sending occasion of the sub-information can be the same or different. The specific sending method is not limited in the present application. The sending period and / or sending occasion of the sub-information can be predefined, for example, predefined according to the protocol, or configured by the transmitting end device by sending configuration information to the receiving end device.
[0074] It should be noted that in the present application, "sending" can be understood as "output", and "receiving" can be understood as "input". "Sending information to A", wherein "to A" only indicates the direction of information transmission, and A is the destination, without limiting that "sending information to A" must be direct sending on the air interface. "Sending information to A" includes directly sending information to A, and also includes indirectly sending information to A through a transmitter, so "sending information to A" can also be understood as "outputting information to A". Similarly, "receiving information from A" indicates that the source of the information is A, which includes directly receiving information from A, and also includes indirectly receiving information from A through a receiver, so "receiving information from A" can also be understood as "inputting information from A".
[0075] The present application provides a PSM hibernation method, which is applied to the field of communication technology, such as PSM hibernation of a communication module. In order to more clearly describe the scheme of the present application, some knowledge related to PSM hibernation of a communication module is introduced first.
[0076] Cat-1 module: Cat-1 is a standard of user terminal category under the 4th generation (4G) mobile communication long term evolution (LTE) network. The Cat-1 module has the characteristics of low delay, low cost and good mobility, and can support a terminal downlink rate of up to 10 Mbps, so as to enable the internet of things (IoT) devices to be connected to the LTE network with lower power consumption and lower cost. It is mainly applied to medium-speed cellular communication services, including but not limited to vehicle positioning, wearable devices, shared devices, video monitoring, financial payment, public talk and power centralized meter reading and other fields.
[0077] Low power mode PSM: that is, power saving mode, is a feature introduced by the 3rd generation partnership project (3GPP) R12, which is optimized for small data transmission scenarios and signaling overhead control. PSM is specially applied to low-speed internet access technologies such as NB-IoT / eMTC, which allows idle devices to be placed in low power mode to maximize energy savings when the internet of things device is not in use. Generally, the power consumption cost of the device when sleeping is completely disconnected from the network, and the power consumption cost of the device when waking up is reconnected. Therefore, LTE allows devices to remain connected to the network during sleep, and periodically wakes up the device in response, and then the device will sleep again until it receives the next wake-up to send data. This intermittent sending or receiving of data only consumes a small amount of energy, but throughout the life cycle of the device, it can minimize power consumption and maximize battery life.
[0078] Currently, after the PSM function of the communication module (such as Cat1 module) is turned on, it usually enters the idle state and waits for the 3324 timer to expire before entering PSM sleep. There are several ways to wake up the communication module, usually by pulling down the PSM_INT pin to wake up the communication module, or actively waking up the communication module by pressing the power key, or the network side wakes up the communication module through the tracking area update (TAU) timer.
[0079] The user can control the PSM sleep to wake up at any time by operating the PSM_INT pin or the power key, but cannot control the time when the communication module enters PSM sleep. In the case that the user's business of the communication module has not been completed, but the 3324 timer has expired, the communication module will enter PSM sleep, resulting in user business failure. If the 3324 timer time is lengthened, the communication module cannot enter PSM sleep in time after the user's business is completed, resulting in the overall power consumption of the communication module being improved.
[0080] In view of the technical problems of service execution failure or high power consumption of the communication module caused by the mismatch between the service execution time and the time of the 3324 timer, the embodiment of the present application provides an architecture of a communication system, and based on the architecture of the communication system, a PSM sleep method is correspondingly provided, which controls the time when the communication module enters the PSM sleep state through a GPIO interface, so as to solve the problem of service execution failure or high power consumption of the first communication device caused by the mismatch between the service execution time and the time of the 3324 timer, that is, to ensure the integrity of the communication module service and also make the communication module enter the PSM sleep in time, thereby reducing the power consumption of the communication module.
[0081] The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0082] Please refer to Figure 1 , Figure 1 The architecture of the communication system provided in the embodiments of the present application is shown in the following figure.
[0083] As Figure 1 shown, the communication system includes an MCU and a communication module, which can be the Cat-1 module mentioned above, and the embodiments of the present application do not limit this.
[0084] Optionally, the communication module and the MCU can communicate through a universal asynchronous receiver / transmitter (UART).
[0085] The MCU wakes up the communication module by pulling down the PSM_INT pin, and when the communication module is woken up and executes the service, it first closes the PSM function and initializes the interrupt function of one of the GPIO interfaces, and keeps the interrupt function disabled, and the interrupt function is used to open the PSM function.
[0086] After the communication module completes the service execution, the interrupt function of the GPIO interface is enabled, and a status code is reported to the MCU through the UART to inform the MCU that the service execution is completed. After receiving the status code, the MCU can pull down the GPIO pin to trigger the interrupt function of the GPIO pin if there is no other service to be executed.
[0087] After the communication module receives the GPIO interrupt function trigger, the PSM function is enabled, and the 3324 timer time can also be set to be the minimum to ensure that the communication module can quickly enter the PSM after the service execution is completed, which can not only ensure the lowest power consumption of the communication module, but also ensure the normal execution of the service.
[0088] Please refer to Figure 2 , Figure 2A flowchart of a PSM hibernation method provided by the embodiment of the application is shown in the figure. The PSM hibernation method is applied to the field of communication technology, such as the PSM hibernation of a communication module. The PSM hibernation method includes but is not limited to the following steps.
[0089] S201: The first communication device sends first information to the controller when the service execution is completed. Correspondingly, the controller receives the first information from the first communication device.
[0090] S202: The controller sends second information to the first communication device through a first general-purpose input-output (GPIO) interface. Correspondingly, the first communication device receives the second information from the controller through the first GPIO interface.
[0091] It can be understood that the first communication device in the embodiment of the application is a device carrying a processor / chip that can be used to execute computer execution instructions, or can be a processor / chip that can be used to execute computer execution instructions. The embodiment of the application does not limit this. Optionally, the first communication device can be specifically a communication module in the above Figure 1 , which is used to execute the PSM hibernation method in the embodiment of the application to control the time when the communication module enters the PSM hibernation, thereby solving the problem of user service execution failure or high power consumption of the communication module caused by the mismatch between the user service execution time and the time of the 3324 timer.
[0092] It can be understood that the controller in the embodiment of the application is a device carrying a processor / chip that can be used to execute computer execution instructions, or can be a processor / chip that can be used to execute computer execution instructions. The embodiment of the application does not limit this. Optionally, the controller can be specifically an MCU in the above Figure 1 , which is used to execute the PSM hibernation method in the embodiment of the application to control the time when the communication module enters the PSM hibernation, thereby solving the problem of user service execution failure or high power consumption of the communication module caused by the mismatch between the user service execution time and the time of the 3324 timer.
[0093] Optionally, the first information can be specifically a status code, which is used to indicate the completion of service execution of the first communication device.
[0094] In the embodiment of the application, the second information is sent to pull down the first GPIO interface pin, which is used to indicate that the first communication device enters the low-power mode PSM hibernation state.
[0095] By the embodiment of the present application, the time for the first communication device to enter the PSM sleep state can be controlled through the GPIO interface, so as to solve the problem of the service execution failure or the high power consumption of the first communication device caused by the mismatch between the service execution time and the time of the 3324 timer, that is, to ensure the integrity of the service of the first communication device and also make the first communication device enter the PSM sleep state in time.
[0096] In a possible embodiment, before the first communication device sends the first information to the controller, the first communication device also enables the interrupt function of the first GPIO interface.
[0097] The interrupt function is used to open the PSM function.
[0098] It can be understood that the interrupt function is in the disabled state at this time, and the received second information is used to trigger the interrupt function to make the interrupt function enter the working state.
[0099] By the embodiment of the present application, the time for the first communication device to enter the PSM sleep state can be controlled through the first GPIO interface by enabling the interrupt function of the first GPIO interface, so as to solve the problem of the service execution failure or the high power consumption of the first communication device caused by the mismatch between the service execution time and the time of the 3324 timer.
[0100] In a possible embodiment, after the first communication device receives the second information from the controller through the first general-purpose input / output (GPIO) interface, the first communication device opens the PSM function, and the time of the first timer can also be set as the minimum value in the value range.
[0101] Optionally, the first timer in the embodiment of the present application is used to set the time for waiting in the idle state before entering the PSM, which can be the 3324 timer.
[0102] By the embodiment of the present application, the integrity of the service of the first communication device can be ensured, and the first communication device also enters the PSM sleep state in time, thereby reducing the power consumption of the first communication device.
[0103] Please refer to Figure 3 , Figure 3 A flowchart of a PSM sleep method provided by the embodiment of the present application is shown. It can be understood that the steps in the embodiment of the present application can be regarded as a reasonable deformation or supplement of the above-mentioned embodiments; or it can be understood that the PSM sleep method in the embodiment of the present application can also be regarded as an independently executable embodiment, and the present application does not limit this. The PSM sleep method provided by the embodiment of the present application is applied to the communication technical field, such as the PSM sleep of the communication module, and the PSM sleep method includes but is not limited to the following steps. Figure 2
[0104] MCU wakes up the communication module by pulling down the PSM_INT pin.
[0105] When the communication module is woken up to perform a service, the PSM function is first closed, and the GPIO interrupt is initialized, that is, an interrupt function is initialized for one of the GPIO interfaces, and the interrupt function is kept in a disabled state. The interrupt function is used to open the PSM function.
[0106] After the service of the communication module is completed, the interrupt function of the GPIO interface is enabled, and a status code is reported to the MCU through the UART to inform the MCU that the service is completed.
[0107] After the MCU receives the status code, if there is no other service to be executed, the MCU can pull down the GPIO pin to trigger the interrupt function of the GPIO pin.
[0108] After the communication module receives the GPIO interrupt function trigger, the PSM function is enabled, and the 3324 timer time can also be set to be the minimum to ensure that the communication module can quickly enter the PSM after the service of the communication module is completed, which can ensure that the power consumption of the communication module is the lowest, and also ensure that the service is normally completed.
[0109] It can be understood that the communication module in the embodiment of the application is consistent with the communication module in the above Figure 1 , and is also consistent with the first communication device in the above Figure 2 . For details, please refer to the related description above, and the embodiment of the application will not be repeated here. The MCU in the embodiment of the application is consistent with the MCU in the above Figure 1 , and is also consistent with the controller in the above Figure 2 . For details, please refer to the related description above, and the embodiment of the application will not be repeated here.
[0110] The above describes the method of the embodiment of the application in detail, and the following provides a device for implementing any one of the methods in the embodiment of the application, for example, a device includes units (or means) for implementing each step performed by the device in any one of the above methods.
[0111] Please refer to Figure 4 , Figure 4 for a structural schematic diagram of a communication device provided by the embodiment of the application.
[0112] As shown in Figure 4 , the communication device 40 can include a communication unit 401 and a processing unit 402. The communication unit 401 and the processing unit 402 can be software, hardware, or a combination of software and hardware.
[0113] The communication unit 401 can implement the sending function and / or the receiving function, and the communication unit 401 can also be described as a transceiver unit. The communication unit 401 can also be a unit integrating an acquisition unit and a sending unit, wherein the acquisition unit is used to implement the receiving function, and the sending unit is used to implement the sending function. Optionally, the communication unit 401 can be used to receive information sent by another device, and can also be used to send information to another device.
[0114] In a possible design, the communication apparatus 40 can correspond to the first communication apparatus (communication module) in the method embodiments shown in the above Figure 2 、 Figure 3 The communication apparatus 40 can be the first communication apparatus (communication module), or can be a chip in the first communication apparatus (communication module). The communication apparatus 40 can include units configured to perform operations executed by the first communication apparatus (communication module) in the method embodiments shown in the above Figure 2 、 Figure 3 The units in the communication apparatus 40 are respectively configured to implement operations performed by the first communication apparatus (communication module) in the method embodiments shown in the above Figure 2 、 Figure 3 The units are described as follows:
[0115] The communication unit 401 is configured to send first information to a controller when a service execution is completed, where the first information is used to indicate that the service execution of the communication apparatus is completed.
[0116] The communication unit 401 is further configured to receive second information from the controller through a first general input and output (GPIO) interface, where the second information is used to indicate that the communication apparatus enters a low power consumption mode (PSM) sleep state, and the first GPIO interface is an interface configured to open the PSM function.
[0117] In a possible implementation, the apparatus further includes:
[0118] The processing unit 402 is configured to generate the first information.
[0119] In a possible implementation, the processing unit 402 is further configured to enable an interrupt function on the first GPIO interface, where the interrupt function is used to open the PSM function.
[0120] In a possible implementation, the processing unit 402 is further configured to open the PSM function, and set a time of a first timer to be a minimum value in a value range, where the first timer is used to set a time to be waited in an idle state before entering the PSM.
[0121] The method performed by the processing unit 402 and the communication unit 401 can refer to the aboveFigure 2 、 Figure 3 The corresponding method will not be described here.
[0122] For the technical effects brought by the design and any possible implementation, please refer to the above Figure 2 、 Figure 3 introduction of the technical effects of the corresponding method.
[0123] In Figure 4 another possible design of the communication device 40, the communication device 40 can correspond to the controller (MCU) in the method embodiments described above Figure 2 、 Figure 3 , such as the communication device 40 can be a controller (MCU) or a chip in the controller (MCU). The communication device 40 can include units for performing the operations performed by the controller (MCU) in the method embodiments described above Figure 2 、 Figure 3 , and each unit in the communication device 40 is respectively for implementing the operations performed by the controller (MCU) in the method embodiments described above Figure 2 、 Figure 3 . Among them, the description of each unit is as follows:
[0124] The communication unit 401 is configured to receive first information from a first communication device, the first information being used to indicate that the service execution of the first communication device is completed.
[0125] The communication unit 401 is further configured to send second information to the first communication device through a first general input and output (GPIO) interface, the second information being used to indicate that the first communication device enters a low-power mode (PSM) sleep state, and the first GPIO interface is an interface for opening the PSM function.
[0126] In a possible implementation, the device further includes:
[0127] The processing unit 402 is configured to generate the second information.
[0128] In a possible implementation, the first GPIO interface is an interface enabled with an interrupt function, and the interrupt function is used to open the PSM function.
[0129] The method performed by the processing unit 402 and the communication unit 401 described above can refer to the corresponding method described above Figure 2 、 Figure 3 , which will not be described here.
[0130] For the technical effects brought by the design and any possible implementation, please refer to the above Figure 2 、 Figure 3The technical effects of the corresponding method are introduced.
[0131] Optionally, in the communication apparatus in any of the above designs and any possible implementation,
[0132] In an implementation, the communication apparatus is a communication device. When the communication apparatus is a communication device, the communication unit can be a transceiver, or an input / output interface; and the processing unit can be at least one processor. Optionally, the transceiver can be a transceiver circuit. Optionally, the input / output interface can be an input / output circuit.
[0133] In another implementation, the communication apparatus is a chip (system) or circuit used in a communication device. When the communication apparatus is a chip (system) or circuit used in a communication device, the communication unit can be a communication interface (input / output interface), interface circuit, output circuit, input circuit, pin or related circuit on the chip (system) or circuit, etc.; and the processing unit can be at least one processor, processing circuit or logic circuit, etc.
[0134] According to the embodiments of the present application, Figure 4 Each unit in the apparatus shown can be respectively or all combined into one or several other units to constitute, or some of the units can be further split into a plurality of units with smaller functions to constitute, which can achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present application. The above units are divided based on logical functions. In actual application, the function of one unit can also be implemented by multiple units, or the functions of multiple units are implemented by one unit. In other embodiments of the present application, based on the electronic device, other units can also be included. In actual application, these functions can also be assisted by other units, and can be implemented by multiple units.
[0135] It should be noted that the implementation of each unit can also be referred to the above Figure 2 、 Figure 3 The corresponding description of the method embodiments shown.
[0136] In the communication apparatus 40 described in Figure 4 , the time for the communication module to enter the PSM sleep state is controlled through a GPIO interface, so as to solve the problem of service execution failure or high power consumption of the first communication apparatus caused by the mismatch between the service execution time and the time of the 3324 timer, that is, to ensure the integrity of the communication module service and also make the communication module enter the PSM sleep in time, thereby reducing the power consumption of the communication module.
[0137] Please refer to Figure 5 , Figure 5 A structural schematic diagram of a communication apparatus provided in the embodiments of the present application.
[0138] It should be understood that Figure 5 The communication device 50 shown is only an example, and the communication device of the embodiments of the present application can also include other components, or include components similar to the functions of the various components in Figure 5 , or not all components in Figure 5 .
[0139] The communication device 50 includes a communication interface 501 and at least one processor 502.
[0140] The communication device 50 can correspond to any node or device in the first communication device, the controller. The communication interface 501 is used for transceiving signals, and the at least one processor 502 executes program instructions, so that the communication device 50 implements the corresponding processes of the method performed by the corresponding device in the above method embodiments.
[0141] In a possible design, the communication device 50 can correspond to the first communication device in the above Figure 2 , Figure 3 method embodiments, and the communication device 50 can be the first communication device or a chip in the first communication device. The communication device 50 can include components for performing the operations performed by the first communication device in the above method embodiments, and each component in the communication device 50 is respectively for implementing the operations performed by the first communication device in the above method embodiments. Specifically, it can be as follows:
[0142] The communication interface 501 is configured to send first information to the controller when the service execution is completed, and the first information is used to indicate that the service execution of the communication device is completed.
[0143] The communication interface 501 is further configured to receive second information from the controller through a first general input and output (GPIO) interface, and the second information is used to indicate that the communication device enters a low-power mode (PSM) sleep state, and the first GPIO interface is an interface set for opening the PSM function.
[0144] In a possible implementation, the apparatus further includes:
[0145] The processor 502 is configured to generate the first information.
[0146] In a possible implementation, the processor 502 is further configured to enable an interrupt function on the first GPIO interface, and the interrupt function is used to open the PSM function.
[0147] In one possible implementation, the processor 502 is further configured to enable the PSM function and set the time of a first timer to the minimum value within a range of possible values. The first timer is configured to set the waiting time in the idle state before entering PSM.
[0148] In another possible design, the communication device 50 may correspond to the above. Figure 2 , Figure 3 The controller in the illustrated method embodiment, such as the communication device 50, can be a controller or a chip within the controller. The communication device 50 may include components for performing the operations executed by the controller in the above method embodiments, and each component in the communication device 50 is specifically designed to implement the operations executed by the controller in the above method embodiments. Specifically, it can be as follows:
[0149] Communication interface 501 is used to receive first information from the first communication device, the first information being used to indicate that the first communication device has completed its service execution.
[0150] The communication interface 501 is also used to send second information to the first communication device through the first general purpose input / output (GPIO) interface. The second information is used to instruct the first communication device to enter the low power mode (PSM) sleep state. The first GPIO interface is an interface set to enable the PSM function.
[0151] In one possible implementation, the device further includes:
[0152] Processor 502 is used to generate the second information.
[0153] In one possible implementation, the first GPIO interface is an interface with an enabled interrupt function, which is used to enable the PSM function.
[0154] exist Figure 5 In the described communication device 50, a GPIO interface is used to control the time when the communication module enters the PSM sleep state. This solves the problem of service execution failure or high power consumption of the first communication device caused by the mismatch between the service execution time and the time of the 3324 timer. This ensures the integrity of the communication module's service while also allowing the communication module to enter the PSM sleep state in a timely manner, thereby reducing the power consumption of the communication module.
[0155] For cases where the communication device can be a chip or a chip system, please refer to [reference needed]. Figure 6 The diagram shows the structure of the chip.
[0156] like Figure 6As shown, the chip 60 includes a processor 601 and an interface 602. The number of the processor 601 can be one or more, and the number of the interface 602 can be multiple. It should be noted that the functions of the processor 601 and the interface 602 can be realized by hardware design, software design, or a combination of hardware and software, which is not limited here.
[0157] Optionally, the chip 60 can further include a memory 603, which is used to store necessary program instructions and data.
[0158] In the present application, the processor 601 can be used to call the implementation program of the communication method provided by one or more embodiments of the present application in the first communication device, the controller, one or more devices or nodes, and execute the instructions contained in the program. The interface 602 can be used to output the execution result of the processor 601. In the present application, the interface 602 can be specifically used to output various messages or information of the processor 601.
[0159] The PSM sleep method provided by one or more embodiments of the present application can refer to the foregoing Figure 2 、 Figure 3 each embodiment shown, which will not be repeated here.
[0160] The processor in the embodiments of the present application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0161] The memory in the embodiments of the present application is used to provide a storage space, in which operating systems and computer programs and other data can be stored. The memory includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM).
[0162] According to the method provided in the embodiments of the present application, the embodiments of the present application further provide a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is run on one or more processors, the method shown in the above Figure 2 , Figure 3 is implemented.
[0163] According to the method provided in the embodiments of the present application, the embodiments of the present application further provide a computer program product, wherein the computer program product comprises a computer program, and when the computer program is run on a processor, the method shown in the above Figure 2 , Figure 3 is implemented.
[0164] The embodiments of the present application further provide a system, which comprises at least one of the communication device 40 or the communication device 50 or the chip 60, and is used for executing the steps of any of the above Figure 2 , Figure 3 embodiments.
[0165] The embodiments of the present application further provide a system, which comprises a first communication device and a controller, wherein the first communication device is used for executing the steps of any of the above Figure 2 , Figure 3 embodiments, and the controller is used for executing the steps of any of the above Figure 2 , Figure 3 embodiments.
[0166] A person of ordinary skill in the art can understand that all or part of the above-mentioned method embodiments can be implemented by a computer program related hardware. The computer program can be stored in a computer readable storage medium, and when the computer program is executed, the computer program can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: read only memory (ROM) or random access memory (RAM), magnetic disk or optical disk and other various storage media which can store computer program codes.
Claims
1. A PSM sleep method, characterized in that, include: When the service execution is completed, the first communication device sends a first message to the controller, the first message being used to indicate that the service execution of the first communication device is complete. The first communication device receives second information from the controller through a first general-purpose input / output (GPIO) interface. The second information is used to instruct the first communication device to enter a low-power mode (PSM) sleep state. The first GPIO interface is an interface configured to enable the PSM function. After receiving the second information, the method further includes: The first communication device enables the PSM function and sets the time of the first timer to the minimum value within the range of possible values. The first timer is used to set the waiting time in the idle state before entering PSM.
2. The method according to claim 1, characterized in that, Before sending the first information, the method further includes: The first communication device enables an interrupt function for the first GPIO interface, and the interrupt function is used to enable the PSM function.
3. A PSM sleep method, characterized in that, include: The controller receives first information from the first communication device, the first information being used to indicate that the first communication device has completed its service execution; The controller sends second information to the first communication device through the first general-purpose input / output (GPIO) interface. The second information is used to instruct the first communication device to enter the low-power mode (PSM) sleep state. The first GPIO interface is an interface set to enable the PSM function. After sending the second information, the first communication device enables the PSM function and sets the time of the first timer to the minimum value within the range of possible values. The first timer is used to set the waiting time in the idle state before entering PSM.
4. The method according to claim 3, characterized in that, The first GPIO interface is an interface with an interrupt function enabled, which is used to enable the PSM function.
5. A communication device, characterized in that, include: A communication unit is configured to send first information to the controller upon completion of service execution, wherein the first information is used to indicate that the service execution of the communication device has been completed. The communication unit is also configured to receive second information from the controller via a first general-purpose input / output (GPIO) interface. The second information is used to instruct the communication device to enter a low-power mode (PSM) sleep state. The first GPIO interface is configured to enable the PSM function. The processing unit is also used to enable the PSM function and set the time of the first timer to the minimum value within the range of possible values. The first timer is used to set the waiting time in the idle state before entering PSM.
6. A communication device, characterized in that, include: A communication unit is configured to receive first information from a first communication device, wherein the first information is used to indicate that the first communication device has completed its service execution. The communication unit is also used to send second information to the first communication device through the first general purpose input / output (GPIO) interface. The second information is used to instruct the first communication device to enter the low power mode (PSM) sleep state. The first GPIO interface is an interface set to enable the PSM function. After sending the second information, the first communication device enables the PSM function and sets the time of the first timer to the minimum value within the range of possible values. The first timer is used to set the waiting time in the idle state before entering PSM.
7. A communication device, characterized in that, include: processor; When the processor invokes a computer program or instruction in memory, the method as described in any one of claims 1 to 2 is executed, or the method as described in any one of claims 3 to 4 is executed.
8. A computer-readable storage medium, characterized in that, include: The computer-readable storage medium is used to store instructions or computer programs; when the instructions or computer programs are executed, the method as claimed in any one of claims 1 to 2 is implemented, or the method as claimed in any one of claims 3 to 4 is implemented.
9. A system, characterized in that, include: First communication device and controller; Wherein, the first communication device is used to execute the method of any one of claims 1 to 2, and the controller is used to execute the method of any one of claims 3 to 4.
Citation Information
Patent Citations
User equipment and quick sleep method
CN105763735A