Terminal sleep control method and device, electronic equipment and readable storage medium
By dynamically adjusting the wake-up time in the terminal device, the problems of insufficient power consumption and signal processing caused by fixed time particle size in the prior art are solved, and more efficient signal processing and battery life improvement are achieved.
Patent Information
- Application Number
- CN202311389167.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, the terminal device has a fixed time granularity of wake-up time and sleep time in the power saving mode, and cannot adapt to different signal reception scenarios, resulting in increased power consumption or insufficient signal processing.
By introducing a dynamic wake-up time adjustment mechanism in the terminal device, if the received signal strength is low, the wake-up time will be extended; if the signal strength is high, the wake-up time will be maintained or shortened, and the target state of the terminal will be determined based on the signal strength and noise conditions.
The power consumption optimization of terminal equipment in different signal reception scenarios is achieved, ensuring the stability of signal processing and the improvement of battery life.
Smart Images

Figure CN119893637A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a terminal sleep control method, device, electronic device, and readable storage medium. Background Art
[0002] For existing intercom systems, power saving is an essential product requirement and plays a key role in product battery life. In current intercom terminals, the time granularity used to indicate the wake-up time and sleep time in the power saving ratio is a fixed value. The fixed value is set by comprehensively considering the time to output the demodulated data after demodulation stability. If the fixed value is too short, it may be misjudged as no signal or failure to successfully detect a valid signal. If the fixed value is too long, the power consumption of the terminal is increased and the terminal battery life is shortened. Summary of the invention
[0003] The present application provides a terminal sleep control method, device, electronic device and readable storage medium, aiming to solve the technical problem in the prior art that the size of the time granularity in the power saving ratio cannot meet the needs of different signal reception scenarios.
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present application provides a terminal sleep control method, the method comprising the steps of:
[0005] If the terminal triggers wake-up, it monitors the received signal within the first time period to determine whether there is a signal;
[0006] If there is no signal, the terminal switches to a sleep state;
[0007] If there is a signal, based on the signal strength of the signal, extending the current wake-up time of the terminal by a second duration, and determining the target state of the terminal according to the received signal detected within the second duration;
[0008] After the extended wake-up time reaches the second duration, the state of the terminal is switched to the target state.
[0009] Optionally, the step of determining whether there is a signal includes:
[0010] Obtaining basic characteristic information of the received signal, the basic characteristic information including: signal strength and in-band noise;
[0011] Determining whether the received signal meets a preset condition based on the basic characteristic information;
[0012] If the preset conditions are met, it is considered that there is a signal;
[0013] If the preset conditions are not met, it is considered that there is no signal.
[0014] Optionally, judging whether the received signal meets a preset condition based on the basic feature information includes:
[0015] Determine whether the signal strength is greater than a strength threshold, and whether the in-band noise is less than a noise threshold;
[0016] If the signal strength is greater than the strength threshold, and the in-band noise is less than the noise threshold, then the received signal meets the preset condition;
[0017] If the signal strength is less than or equal to the strength threshold, or the in-band noise is greater than or equal to the noise threshold, then the signal does not meet the preset condition.
[0018] Optionally, the extending the current wake-up time of the terminal by a second duration based on the signal strength of the received signal includes:
[0019] Determining whether the signal strength is a strong signal strength, a medium signal strength, or a weak signal strength;
[0020] If the signal strength is weak, setting the second duration to a third duration, and extending the current wake-up time of the terminal by the second duration;
[0021] If the signal strength is medium signal strength, setting the second duration to a fourth duration, and extending the current wake-up time of the terminal by the second duration, wherein the fourth duration is greater than the third duration;
[0022] If the signal strength is a strong signal strength, the second duration is set to a fifth duration, and the current wake-up time of the terminal is extended by a second duration, wherein the fifth duration is greater than the fourth duration.
[0023] Optionally, the step of determining the target state of the terminal according to the received signal detected within the second duration includes:
[0024] Determining whether a valid carrier is detected within the second time period;
[0025] If a valid carrier is detected, the target state is a receiving state;
[0026] If no valid carrier is detected, the target state is a sleep state.
[0027] Optionally, after the step of monitoring the received signal within the first time period, the method further includes:
[0028] Determine whether the preset squelch opening condition is met;
[0029] If the preset squelch opening condition is met, the terminal is switched to a signal receiving state.
[0030] Optionally, after the extended wake-up time reaches the second duration, the step of switching the state of the terminal to the target state includes:
[0031] If the target state is a sleep state, after the wake-up time is extended by the second time period, switching the state of the terminal to the sleep state;
[0032] If the sleep time of the terminal in the sleep state reaches a preset sleep time, the terminal triggers wake-up.
[0033] To achieve the above object, the present invention further provides a terminal sleep control device, the terminal sleep control device comprising:
[0034] A first monitoring module is used to monitor the received signal within a first time period to determine whether there is a signal if the terminal triggers wake-up;
[0035] A first switching module, configured to switch the terminal to a sleep state if there is no signal;
[0036] A first determination module is used to extend the current wake-up time of the terminal by a second duration based on the signal strength of the signal if there is a signal, and determine the target state of the terminal according to the received signal detected within the second duration;
[0037] The second switching module is used to switch the state of the terminal to the target state after the extended wake-up time reaches the second duration.
[0038] To achieve the above objectives, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the terminal sleep control method as described above when executed by the processor.
[0039] To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the terminal sleep control method as described above are implemented.
[0040] The present invention proposes a terminal sleep control method, device, electronic device and readable storage medium. If the terminal triggers wake-up, the received signal is monitored within a first duration to determine whether there is a signal; if there is no signal, the terminal switches to a sleep state; if there is a signal, based on the signal strength of the received signal, the wake-up time of the terminal is extended by a second duration, and the target state of the terminal is determined based on the received signal detected within the second duration; after the extended wake-up time reaches the second duration, the state of the terminal is switched to the target state. The detection of the received signal is achieved by setting a shorter first duration, and the terminal switches to a sleep state when no signal is detected, thereby reducing the power consumption of the terminal. When a signal is detected, the wake-up time is extended, and the target state of the terminal is determined based on the received signal within the extended time, thereby ensuring the need for signal processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] Figure 1 This is a flow chart of a first embodiment of a terminal sleep control method according to the present invention;
[0044] Figure 2 It is a schematic diagram of the overall process of the terminal sleep control method of the present invention;
[0045] Figure 3 It is a schematic diagram of the module structure of the electronic device of the present invention. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present application.
[0047] The present invention provides a terminal sleep control method, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a terminal sleep control method of the present invention, wherein the method comprises the following steps:
[0048] Step S10, if the terminal triggers wake-up, the received signal is monitored within a first time period to determine whether there is a signal;
[0049] The terminal triggers wake-up when the sleep state ends, power-on initialization is completed, etc.; this embodiment and subsequent embodiments are described by taking the end of the sleep state as an example.
[0050] It is understandable that in the power saving mode, the operation state of the terminal is switched based on the power saving cycle; the operation state of the terminal in the power saving cycle includes the awake state and the sleep state. Within a certain wake-up time at the beginning of the power saving cycle, the terminal is set to the awake state. When the terminal reaches the awake time in the awake state, the terminal is switched to the sleep state and continues for a certain sleep time. When the terminal reaches the sleep time in the sleep state, it enters the next power saving cycle, that is, the terminal is set to the awake state, and so on. In other embodiments, in the power saving cycle, the sleep state can be set first and the awake state can be set later.
[0051] The signal needs to be demodulated within the first time length, therefore, the first time length is at least the minimum time that can preliminarily provide basic characteristic information after the signal is demodulated; the specific value of the first time length can be set based on the terminal capabilities of the actual application and the actual needs. Generally, the first time length can be set to 20ms, 30ms, 40ms, etc., and can be set according to the receiving performance of the device, and this application does not impose any restrictions.
[0052] Step S20, if there is no signal, the terminal switches to a sleep state;
[0053] When no signal is detected, or it is confirmed to be a noise signal, it is considered that there is no signal that needs to be processed in the current wake-up cycle. Therefore, in order to reduce the power consumption of the terminal, the terminal can be switched to a sleep state.
[0054] Step S30: If there is a signal, dynamically extend the current wake-up time of the terminal by a second duration based on the signal strength of the signal, and determine the target state of the terminal according to the received signal detected within the second duration;
[0055] RSSI (Received Signal Strength Indicator) can be used to reflect the signal strength of the signal; it is understandable that different signal strengths have different requirements for processing time. Therefore, the wake-up time of the terminal can be extended for different durations, i.e., the second duration, for different signal strengths; it is understandable that the second duration is the time for further extension after the first duration ends. For example, when the second duration needs to be extended, the total wake-up duration of the current wake-up cycle is the sum of the first duration and the second duration.
[0056] Step S40: after the extended wake-up time reaches the second duration, switching the state of the terminal to the target state.
[0057] When the awakening time of the terminal in the awake state reaches the second time, it is considered that the detection of the signal has been completed, and the terminal is switched to the target state.
[0058] When the awakening time duration of the terminal in the awakening state does not reach the second time duration, the terminal is kept in the awakening state and the received signal is detected.
[0059] In this embodiment, the first duration is generally a shorter duration. For example, if the RF stable reception time of the terminal is 60ms, then the wake-up time in the device with a fixed sleep wake-up cycle is 60ms. In this embodiment, the first duration can be 20ms or 30ms, and the first duration is less than the wake-up duration in the fixed sleep wake-up cycle. In order to allow the terminal to enter sleep as quickly as possible, the first duration is less than or equal to the second duration. Usually, the sum of the first duration and the second duration is equal to the wake-up duration in the fixed sleep wake-up cycle of the terminal.
[0060] This embodiment realizes the detection of the received signal by setting a shorter first time duration. When no signal is detected, it switches to the sleep state, thereby reducing the power consumption of the terminal. When a signal is detected, the wake-up time is extended, and the target state of the terminal is determined based on the received signal within the extended time, thereby ensuring the need for signal processing.
[0061] Further, in a second embodiment of the terminal sleep control method of the present invention proposed based on the first embodiment of the present invention, step S10 includes:
[0062] Step S11, obtaining basic characteristic information of the received signal;
[0063] The basic characteristic information of the received signal is detected within the first time period, such as RSSI, in-band noise, out-of-band noise, spur energy and other information.
[0064] Step S12, judging whether the received signal meets a preset condition based on the basic feature information;
[0065] Step S13, if the preset conditions are met, it is considered that there is a signal;
[0066] Step S14: If the preset condition is not met, it is considered that there is no signal.
[0067] Signal strength is used to indicate the strength of the useful signal; in-band noise is used to indicate the phase noise whose power spectrum falls within the useful signal frequency band; it can be understood that when the effective signal received is more sufficient, the corresponding signal strength is greater, and at the same time, the in-band noise is less, and conversely, when the effective signal received is less, the corresponding signal strength is smaller, and the in-band noise is more; therefore, the signal condition can be set according to the signal strength and in-band noise to judge the situation of the received effective signal, and then determine whether the signal is received. Specifically: the step S12 includes:
[0068] Step S121, determining whether the signal strength is greater than a strength threshold, and whether the in-band noise is less than a noise threshold;
[0069] Step S122, if the signal strength is greater than the strength threshold, and the in-band noise is less than the noise threshold, then the received signal meets a preset condition;
[0070] Step S123: If the signal strength is less than or equal to the strength threshold, or the in-band noise is greater than or equal to the noise threshold, then the received signal does not meet the preset condition.
[0071] The specific values of the strength threshold and the noise threshold can be set based on the actual application scenario; for example, in this embodiment, the strength threshold is -125dB and the noise threshold is 58dB; that is, when the signal strength is greater than -125dB and the in-band noise is less than 58dB, it is considered that there is a signal, otherwise, it is considered that there is no signal.
[0072] It should be noted that, in actual applications, it is also possible to determine whether a signal exists based on other signal parameters, such as glitch signals, out-of-band noise, etc. The specific signal conditions can be set by analogy based on the different signal types of the application, which will not be elaborated here.
[0073] This embodiment uses signal strength and in-band noise as a basis, and can accurately determine whether there is a signal.
[0074] Further, in a third embodiment of the terminal sleep control method of the present invention proposed based on the first embodiment of the present invention, step S30 includes the following steps:
[0075] Step S31, determining whether the signal strength is strong signal strength, medium signal strength or weak signal strength;
[0076] Step S32: if the signal strength is weak, setting the second duration to a third duration, and extending the current wake-up time of the terminal by the second duration;
[0077] Step S33: if the signal strength is medium signal strength, setting the second duration to a fourth duration, and extending the current wake-up time of the terminal by a second duration, wherein the fourth duration is greater than the third duration;
[0078] Step S34: if the signal strength is a strong signal strength, the second duration is set to a fifth duration, and the current wake-up time of the terminal is extended by a second duration, wherein the fifth duration is greater than the fourth duration.
[0079] The level of signal strength can be divided based on actual application needs, such as setting a first strength threshold and a second strength threshold, and the second strength threshold is greater than the first strength threshold; if the signal strength of the carrier signal is less than the first strength threshold, the signal strength of the carrier signal is weak signal strength, if the signal strength of the carrier signal is greater than the second strength threshold, the signal strength of the carrier signal is strong signal strength, and if the signal strength of the multi-carrier signal is between the first strength threshold and the second strength threshold, the signal strength of the carrier signal is medium signal strength; the specific strength threshold can be set based on the actual application scenario; for example, in this embodiment, the first strength threshold is -65dB and the second strength threshold is -100dB; when the signal strength is ≥-65dB, it is a strong signal strength, when the signal strength is <-65dB and greater than or equal to -100dB, it is a medium signal strength, and when the signal strength is <-100dB, it is a weak signal strength.
[0080] The time required for signal processing of a carrier signal with strong signal strength is relatively long. Therefore, the second time length corresponding to the carrier signal with strong signal strength can be set to be relatively long, that is, the fifth time length. The time length for signal processing of a carrier signal with medium signal strength is shorter than that of a carrier signal with strong signal strength. Therefore, the second time length corresponding to the carrier signal with medium signal strength can be set to be smaller than the fifth time length, that is, the fourth time length. Similarly, the second time length corresponding to the carrier signal with weak signal strength can be set to be smaller than the fourth time length, that is, the third time length. It can be understood that although the time length for signal processing of a carrier signal with weak signal strength is relatively short, processing still needs to be performed for a certain time length. Therefore, the third time length corresponding to the carrier signal with weak signal strength must be longer than the first time length, which is the minimum time that can initially provide basic characteristic information after only supporting demodulation of the signal.
[0081] The specific values of the third to fifth durations can be set based on actual application needs. In this embodiment, the third duration is set to 40ms, the fourth duration is set to 60ms, and the fifth duration is set to 80ms.
[0082] In other embodiments, the signal strength can be divided into more diverse categories, such as dividing the signal strength into multiple intervals with an interval length of 10 dBm, the signal strengths in different intervals correspond to different second time lengths, and the numerical value of the signal strength corresponding to the interval is positively correlated with the corresponding second time length.
[0083] Further, in a fourth embodiment of the terminal sleep control method of the present invention proposed based on the first embodiment of the present invention, step S30 includes the following steps:
[0084] Step S35, determining whether a valid carrier is detected within the second time period;
[0085] Step S36, if a valid carrier is detected, the target state is a receiving state;
[0086] Step S37, if no valid carrier is detected, the target state is the sleep state. The valid carrier is a valid signal that needs to be received and processed; it can be understood that in actual applications, in addition to the valid carrier, there are also non-valid carriers in the environment, that is, signals that do not need to be received or processed; non-valid carriers include interference signals and invalid signals; when the carrier signal detected within the second time period is a valid carrier, it means that the signal needs to be received, and the terminal needs to be switched to the signal receiving state to ensure the stability of the signal reception. After the signal reception is completed and the relevant processing operations are performed, the terminal is switched to the sleep state; and when the carrier signal detected within the second time period is a non-valid carrier, it means that the signal does not need to be received, so the terminal is switched to the sleep state after the second time period to avoid additional power consumption.
[0087] Furthermore, after step S10, the method further includes the following steps:
[0088] Step S40, determining whether a preset squelch opening condition is met;
[0089] Step S50: If the preset squelch opening condition is met, the terminal is switched to a signal receiving state.
[0090] If the preset squelch opening condition is not met, then continue to perform subsequent operations.
[0091] The squelch start condition indicates the start condition of the squelch function; it is understandable that when the terminal turns on the squelch function, it is required to enter the receiving state; therefore, when the preset squelch start condition is met, the terminal is switched to the signal receiving state until the squelch function is turned off, and the terminal is switched to the sleep state. The squelch start condition can be set based on actual application needs and is not limited here.
[0092] This embodiment can switch the terminal to a signal receiving state in a specific scenario where signal reception is required, thereby ensuring stable signal reception.
[0093] Further, in a fifth embodiment of the terminal sleep control method of the present invention proposed based on the first embodiment of the present invention, step S40 includes the following steps:
[0094] Step S44, if the target state is the sleep state, after the wake-up time is extended by the second time period, the state of the terminal is switched to the sleep state;
[0095] In step S45, if the sleep time of the terminal in the sleep state reaches a preset sleep time, the terminal triggers wake-up.
[0096] A power saving ratio is set in advance for the power saving cycle based on the first duration. The power saving ratio can be set based on actual application scenarios, such as 1:10, 1:20, and 1:22.
[0097] The power saving ratio indicates the ratio of the wake-up duration to the sleep duration, where the first indicates the wake-up duration and the second indicates the sleep duration. If the first duration is 30ms and the power saving ratio is 1:22, the wake-up duration in the power saving cycle is 30ms and the sleep duration is 30×22=660ms; the specific values of the first duration are all examples. In actual applications, the specific values of the first duration can be set based on actual needs, such as 20ms, 40ms. When the wake-up duration is extended to the second duration, such as the wake-up duration is extended from the first duration of 30ms and then delayed by the second duration of 30ms, that is, the total wake-up duration is 60ms, and the sleep duration in the power saving cycle remains unchanged, then in this cycle, the power saving ratio of the wake-up duration to the sleep duration is 60:660=1:11. It can be understood that when the terminal wakes up again at the end of this sleep time and enters the next power saving cycle, the initial wake-up time of the terminal is still 30ms, and the wake-up sleep ratio of 1:22 is implemented.
[0098] It is understandable that, on the basis of adjusting the wake-up time based on the basic characteristic information of the received signal, it is necessary to ensure sufficient sleep time. If the sleep time is reduced due to the increase in the wake-up time, the impact on the standby current is greater when interference exists. Therefore, in this embodiment, the sleep time is fixedly set to ensure the stability of the system. That is, in each power-saving cycle of the terminal, the sleep time of the terminal is fixed, the wake-up time defaults to the first time, and the second time can be dynamically extended according to the detected received signal. The wake-up time of the terminal is dynamically changed according to the environmental conditions. The shorter wake-up time (first time) ensures that the terminal can quickly enter sleep in most cases, which greatly improves the terminal's battery life. The dynamically changing wake-up time also ensures the stability of the terminal's received signal, ensuring that no useful signals are lost and no useless signals are misjudged.
[0099] This embodiment can ensure that the sleep duration is fixed, thereby ensuring the stability of the system.
[0100] See also Figure 2 , Figure 2 The overall flow chart of the terminal sleep control method of the present invention is as follows. Figure 2 The overall implementation of the present invention is described as follows:
[0101] Take the first duration as 30ms, the sleep duration as 660ms, and the power saving ratio as 1:22 as an example;
[0102] After the sleep state triggers wake-up, the received signal is monitored, and whether there is a signal is determined based on the signal strength and in-band noise. If it is determined that there is no signal, the terminal is switched to sleep state after the wake-up time reaches 30ms;
[0103] If it is determined that there is a signal, the second duration is further determined based on the signal strength. Specifically, strong signal strength corresponds to 70ms, medium signal strength corresponds to 50ms, and weak signal strength corresponds to 30ms. During this power saving cycle, the corresponding total wake-up durations of the terminal are 100ms, 80ms, and 60ms respectively.
[0104] Within the second time period, if the target reception signal is detected or the squelch opening condition is met, the terminal is switched to the signal reception state, otherwise, after the delay time reaches the second time period, the terminal is switched to the sleep state.
[0105] The solution of the present invention is compared with the prior art solution:
[0106] In the prior art, the stable receiving time of the terminal under a certain radio frequency solution is 60ms, and the wake-up time is fixedly set to 60ms;
[0107] In the present invention, the receiving time is also 60ms, but the first duration is set to 30ms. Then, in the absence of a target receiving signal:
[0108] The power saving ratio of the present invention is 1:22, the wake-up time is 30ms, the sleep time is 660ms, the average current is 3.95mA, and the standby life of a 770mAh battery is 192h;
[0109] The existing solution has a power saving ratio of 1:11, the wake-up time is 60ms, the sleep time is 660ms, the average current determined by detection is 6.83mA, and the standby life of a 770mAh battery is 112h.
[0110] It can be seen from this that the present invention can improve the battery life of the terminal.
[0111] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0113] The present application also provides a terminal sleep control device for implementing the above-mentioned terminal sleep control method, and the terminal sleep control device includes:
[0114] A first monitoring module is used to monitor the received signal within a first time period to determine whether there is a signal if the terminal triggers wake-up;
[0115] A first switching module, configured to switch the terminal to a sleep state if there is no signal;
[0116] A first determination module is used to extend the current wake-up time of the terminal by a second duration based on the signal strength of the signal if there is a signal, and determine the target state of the terminal according to the received signal detected within the second duration;
[0117] The second switching module is used to switch the state of the terminal to the target state after the extended wake-up time reaches the second duration.
[0118] The terminal sleep control device detects the received signal by setting a first duration. When no signal is detected, it switches to a sleep state, thereby reducing the power consumption of the terminal. When a signal is detected, the wake-up time is extended, and the target state of the terminal is determined based on the received signal within the extended time, thereby ensuring the need for signal processing.
[0119] It should be noted that the first monitoring module in this embodiment can be used to execute step S10 in the embodiment of the present application, the first switching module in this embodiment can be used to execute step S20 in the embodiment of the present application, the first determination module in this embodiment can be used to execute step S30 in the embodiment of the present application, and the second switching module in this embodiment can be used to execute step S40 in the embodiment of the present application.
[0120] Furthermore, the first monitoring module includes:
[0121] A first acquisition unit is used to acquire basic characteristic information of a received signal, wherein the basic characteristic information includes: signal strength and in-band noise;
[0122] A first judging unit, configured to judge whether the received signal meets a preset condition based on the basic feature information;
[0123] A first execution unit, configured to consider that there is a signal if a preset condition is met;
[0124] The second execution unit is used to consider that there is no signal if the preset condition is not met.
[0125] Furthermore, the first determining unit includes:
[0126] A first judging subunit, configured to judge whether the signal strength is greater than a strength threshold, and whether the in-band noise is less than a noise threshold;
[0127] A first execution subunit, configured to determine that if the signal strength is greater than the strength threshold and the in-band noise is less than the noise threshold, the received signal meets a preset condition;
[0128] The second execution subunit is configured to determine that the signal does not meet a preset condition if the signal strength is less than or equal to the strength threshold, or the in-band noise is greater than or equal to the noise threshold.
[0129] Furthermore, the first determining module includes:
[0130] A second determination unit, configured to determine whether the signal strength is a strong signal strength, a medium signal strength, or a weak signal strength;
[0131] A third execution unit, configured to set the second duration to a third duration if the signal strength is a weak signal strength, and extend the current wake-up time of the terminal by the second duration;
[0132] a fourth execution unit, configured to set the second duration to a fourth duration if the signal strength is medium signal strength, and extend the current wake-up time of the terminal by the second duration, wherein the fourth duration is greater than the third duration;
[0133] The fifth execution unit is used to set the second duration to a fifth duration if the signal strength is a strong signal strength, and extend the current wake-up time of the terminal by a second duration, wherein the fifth duration is greater than the fourth duration.
[0134] Furthermore, the first determining module includes:
[0135] A third determination unit, configured to determine whether a valid carrier is detected within the second time period;
[0136] a sixth execution unit, configured to, if a valid carrier is detected, set the target state to a receiving state;
[0137] The seventh execution unit is configured to set the target state to a sleep state if no valid carrier is detected.
[0138] Furthermore, the device also includes:
[0139] A first judgment module is used to judge whether a preset squelch opening condition is met;
[0140] The third switching module is used to switch the terminal to a signal receiving state if the preset squelch opening condition is met.
[0141] Furthermore, the second switching module includes:
[0142] A first switching unit, configured to switch the state of the terminal to the sleep state after the wake-up time is extended by the second time period if the target state is the sleep state;
[0143] The first trigger unit is configured to trigger the terminal to wake up if the sleep time of the terminal in the sleep state reaches a preset sleep time.
[0144] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be implemented by software or hardware, wherein the hardware environment includes a network environment.
[0145] Reference Figure 3 In terms of hardware structure, the electronic device may include components such as a communication module 10, a memory 20, and a processor 30. In the electronic device, the processor 30 is connected to the memory 20 and the communication module 10 respectively, and a computer program is stored in the memory 20. The computer program is executed by the processor 30 at the same time, and the steps of the above method embodiment are implemented when the computer program is executed.
[0146] The communication module 10 can be connected to an external communication device through a network. The communication module 10 can receive requests from an external communication device, and can also send requests, instructions and information to the external communication device, which can be other electronic devices, servers or Internet of Things devices, such as televisions, etc.
[0147] The memory 20 can be used to store software programs and various data. The memory 20 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as monitoring a received signal within a first time period), etc.; the data storage area can include a database, and the data storage area can store data or information created according to the use of the system, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0148] The processor 30 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 20, and calling data stored in the memory 20, so as to monitor the electronic device as a whole. The processor 30 may include one or more processing units; optionally, the processor 30 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 30.
[0149] although Figure 3 Although not shown, the electronic device may further include a circuit control module, which is used to connect to a power source to ensure the normal operation of other components. Figure 3 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0150] The present invention also provides a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be Figure 3 The memory 20 in the electronic device may also be at least one of a ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, and an optical disk. The computer-readable storage medium includes a number of instructions for enabling a terminal device with a processor (which may be a television, a car, a mobile phone, a computer, a server, a terminal, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0151] In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0152] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0153] Although the embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art can change, modify and replace the above embodiments within the scope of the present invention, and these changes, modifications and replacements should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A terminal sleep control method, characterized in that: The terminal sleep control method comprises: If the terminal triggers wake-up, it monitors the received signal within the first time period to determine whether there is a signal; If there is no signal, the terminal switches to a sleep state; If there is a signal, based on the signal strength of the received signal, extending the wake-up time of the terminal for a second duration, and determining the target state of the terminal according to the received signal detected within the second duration; After the extended wake-up time reaches the second duration, the state of the terminal is switched to the target state.
2. The terminal sleep control method according to claim 1, characterized in that: The determining whether there is a signal comprises: Obtaining basic characteristic information of the received signal, the basic characteristic information including: signal strength and in-band noise; Determining whether the received signal meets a preset condition based on the basic characteristic information; If the preset conditions are met, it is considered that there is a signal; If the preset conditions are not met, it is considered that there is no signal.
3. The terminal sleep control method according to claim 2, characterized in that: The determining whether the received signal meets a preset condition based on the basic feature information includes: Determine whether the signal strength is greater than a strength threshold, and whether the in-band noise is less than a noise threshold; If the signal strength is greater than the strength threshold, and the in-band noise is less than the noise threshold, then the received signal meets the preset condition; If the signal strength is less than or equal to the strength threshold, or the in-band noise is greater than or equal to the noise threshold, then the received signal does not meet the preset condition.
4. The terminal sleep control method according to claim 1, characterized in that: The extending the current wake-up time of the terminal by a second duration based on the signal strength of the received signal includes: Determining whether the signal strength is a strong signal strength, a medium signal strength, or a weak signal strength; If the signal strength is weak, setting the second duration to a third duration, and extending the current wake-up time of the terminal by the second duration; If the signal strength is medium signal strength, setting the second duration to a fourth duration, and extending the current wake-up time of the terminal by the second duration, wherein the fourth duration is greater than the third duration; If the signal strength is a strong signal strength, the second duration is set to a fifth duration, and the current wake-up time of the terminal is extended by a second duration, wherein the fifth duration is greater than the fourth duration.
5. The terminal sleep control method according to claim 1, characterized in that: The step of determining the target state of the terminal according to the received signal detected within the second time period includes: Determining whether a valid carrier is detected within the second time period; If a valid carrier is detected, the target state is a receiving state; If no valid carrier is detected, the target state is a sleep state.
6. The terminal sleep control method according to claim 1, characterized in that: After the step of monitoring the received signal within the first time period, the method further includes: Determine whether the preset squelch opening condition is met; If the preset squelch opening condition is met, the terminal is switched to a signal receiving state.
7. The terminal sleep control method according to claim 1, characterized in that: The step of switching the state of the terminal to the target state after the extended wake-up time reaches the second duration includes: If the target state is a sleep state, after the wake-up time is extended by the second time period, switching the state of the terminal to the sleep state; If the sleep time of the terminal in the sleep state reaches a preset sleep time, the terminal triggers wake-up.
8. A terminal sleep control device, characterized in that: The terminal sleep control device comprises: A first monitoring module is used to monitor the received signal within a first time period to determine whether there is a signal if the terminal triggers wake-up; A first switching module, configured to switch the terminal to a sleep state if there is no signal; A first determination module is used to extend the current wake-up time of the terminal by a second duration based on the signal strength of the signal if there is a signal, and determine the target state of the terminal according to the received signal detected within the second duration; The second switching module is used to switch the state of the terminal to the target state after the extended wake-up time reaches the second duration.
9. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the terminal sleep control method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the terminal sleep control method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Internet of Things system based on multilayer hybrid networking and interactive communication method
CN120499216A