A method, device and electronic device for reducing device power consumption
Patent Information
- Application Number
- CN202211180167.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-09-26
AI Technical Summary
Prior Art In cellular low-power sleep wake-up technology, frequent updates of information by devices during the keep-alive time interval lead to increased power consumption, especially in scenarios where battery power is limited, the service life time of the device is limited.
By obtaining the working status and battery power of the device sensor, determining different working modes, and adjusting the power consumption control operation of the device based on the power consumption control strategy, including strategies such as image detection, module power outage and sleep wake-up, to optimize the power consumption control of the device.
Effectively reduce the overall power consumption of the equipment, improve the current pulling efficiency of the current pulling platform, ensure that the equipment can operate efficiently under different power conditions, and extend the service time of the equipment.
Smart Images

Figure CN115589628B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of cellular low-power sleep and wake-up, and particularly relates to a method, device, and electronic device for reducing device power consumption. Background Art
[0002] With the development of cellular low-power sleep and wake-up technology, in mobile monitoring scenarios and scenarios with inconvenient power supply, batteries are required for power supply, and the battery capacity severely restricts the usage duration of the device. To reduce the power consumption of the device, when the monitoring device is not performing video transmission, the cellular module needs to enter the sleep state.
[0003] To achieve the purpose of reducing the power consumption during device operation and how to quickly connect to the network and push the stream to the platform when the device is awakened, currently, the method adopted is a low-power video monitoring system and its control method. The method is as follows: By adopting the method of dynamically detecting the keep-alive time interval, which is the longest time interval during which the device does not communicate with the platform. When the device exceeds this keep-alive time interval, the connection between the device and the platform will be disconnected. On the premise of ensuring the normal operation of the device, the optimal average sleep power consumption is determined, thereby achieving an almost optimal sleep standby time.
[0004] The above method determines the optimal keep-alive time interval to achieve the purpose of reducing device power consumption. However, the cellular module in the device will also perform operations such as periodic cell measurement and location update with the base station within the keep-alive time interval to achieve the purpose of information update. When this information is updated frequently, it will consume a large amount of power, resulting in an increase in the overall power consumption of the system. Summary of the Invention
[0005] This application provides a method, device, and electronic device for reducing device power consumption, which is used for the overall power consumption of the device in different working modes.
[0006] In a first aspect, this application provides a method for reducing device power consumption. The method includes:
[0007] Obtain the working state of the sensors in the device;
[0008] Determine the working mode corresponding to the device based on the current battery level and the working state, where the current battery level is the remaining power of the battery in the device;
[0009] Determine the current power consumption control strategy corresponding to the working mode from the power consumption control strategy set, and control the device to perform the corresponding power consumption control operation according to the current power consumption control strategy.
[0010] Through the above method, different operating modes of the device are determined based on the current battery level and the operating state of the sensor, such that each operating mode corresponds to a power consumption control strategy, and the device performs corresponding power consumption control operations according to the power consumption control strategy, reducing the overall power consumption of the device.
[0011] In a possible design, determining the corresponding operating mode of the device based on the current battery level and the operating state includes:
[0012] When a preset module in the device is in a normal operating state, determining that the corresponding operating mode of the device is a first preset mode; or
[0013] When the current battery level exceeds a preset battery level and the device does not receive a pulling request sent by the pulling platform, determining that the corresponding operating mode of the device is a second preset mode; or
[0014] When the current battery level is lower than the preset battery level, determining that the corresponding operating mode of the device is a third preset mode.
[0015] Based on the above method, the corresponding operating mode of the device can be determined by whether the device is pulling and the current battery level, enabling the server to accurately identify different operating states of the device.
[0016] In a possible design, determining the current power consumption control strategy corresponding to the operating mode from a set of power consumption control strategies and controlling the device to perform corresponding power consumption control operations according to the current power consumption control strategy includes:
[0017] When the operating mode is the first preset mode, obtaining the pulling request corresponding to the pulling platform to which the device is connected, where the pulling request is used to obtain video information collected by the specified device;
[0018] Determining corresponding video information from the device based on the pulling request, and controlling the device to process the video information in a preset manner to generate pulling information corresponding to the video information;
[0019] Controlling the device to send the pulling information to the pulling platform until the device receives an end pulling instruction sent by the pulling platform.
[0020] Based on the above method, when the device is in the first preset mode and in a pulling state, the device realizes fast pulling by encapsulating and packing the collected video information and sending it to the pulling platform.
[0021] In a possible design, a current power consumption control policy corresponding to the working mode is determined from a set of power consumption control policies, and the device is controlled to perform corresponding power consumption control operations according to the current power consumption control policy, including:
[0022] When the working mode is a second preset mode, the device is controlled to turn on the image detection function corresponding to the sensor;
[0023] Based on the image detection function, position change information corresponding to the device is determined, and a change duration corresponding to the position change information is determined;
[0024] Based on the change duration, the device is controlled to re-acquire a target cell and measurement data corresponding to the target cell, where the measurement data records the target cell to which the device is currently connected and the target cells that the device can select.
[0025] Through the above method, when the device is in the second preset mode and the sensors in the device are in a normal working state, it is determined whether the position of the device has changed by determining the change of the image of the device, thereby reducing the power consumption of the device in this mode.
[0026] In a possible design, determining the position change information corresponding to the device based on the image detection function includes:
[0027] Obtaining each frame of image in the video data collected by the device, in response to the image difference value between adjacent images exceeding a preset threshold, and determining the position change information corresponding to the device based on the preset threshold; or
[0028] Obtaining historical position information in the device position detection module, and determining the position change information corresponding to the device based on the historical position information.
[0029] Through the above method, by determining whether the difference value between adjacent images exceeds a preset threshold and the device position detection module, it is determined whether the position of the device has changed, thereby making the determined position change information of the device more accurate.
[0030] In a possible design, a current power consumption control policy corresponding to the working mode is determined from a set of power consumption control policies, and the device is controlled to perform corresponding power consumption control operations according to the current power consumption control policy, including:
[0031] When the working mode is a third preset mode, the device is controlled to cut off the power supply of the first preset module set and turn on the second preset module;
[0032] Control the second preset module to connect to the pulling stream platform, and determine the keep-alive duration between the device and the pulling stream platform, where the keep-alive duration is the longest time interval during which the device and the pulling stream platform do not communicate;
[0033] Use the keep-alive duration as the response duration of the device to the pulling stream platform, and use the response duration as the preset startup period corresponding to the sensor in the device.
[0034] Through the above method, power off the first preset module in the device and turn on the second preset module to make the device enter the deep sleep state, and wake up the sensor regularly to ensure that the power consumption of the device can be reduced.
[0035] In a possible design, after using the response duration as the preset startup period corresponding to the sensor in the device, it further includes:
[0036] Detect whether the sensor in the device is in the working state;
[0037] If so, control the device to restart the first preset module and power off the second preset module;
[0038] If not, when the sleep time of the sensor reaches the preset startup period, control the device to send a heartbeat message to the pulling stream platform and control the sensor to be in the sleep state, where the heartbeat message is used to indicate that the device is in the normal state.
[0039] Through the above method, by setting the regular wake-up period of the sensor, starting the first preset module, and powering off the second preset module, the device can save power while ensuring that the power consumption of the device can be reduced.
[0040] In a second aspect, the present application provides a device for reducing the power consumption of a device, the device includes:
[0041] An acquisition module, configured to acquire the working state of a sensor in the device;
[0042] A determination module, configured to determine the working mode corresponding to the device based on the current battery power and the working state, where the current battery power is the remaining power of the battery in the device;
[0043] A control module, configured to determine the current power consumption control policy corresponding to the working mode from a power consumption control policy set, and control the device to perform corresponding power consumption control operations according to the current power consumption control policy.
[0044] In a possible design, the determining module is specifically configured to determine that the working mode corresponding to the device is the first preset mode when the preset module in the device is in a normal working state, or determine that the working mode corresponding to the device is the second preset mode when the current battery power exceeds the preset battery power and the device does not receive the pull stream request sent by the pull stream platform, or determine that the working mode corresponding to the device is the third preset mode when the current battery power is lower than the preset battery power.
[0045] In a possible design, the control module is specifically configured to, when the working mode is the first preset mode, obtain the pull stream request corresponding to the pull stream platform connected to the device, determine the corresponding video information from the device based on the pull stream request, control the device to process the video information in a preset manner to generate the pull stream information corresponding to the video information, and control the device to send the pull stream information to the pull stream platform until the device receives the end pull stream instruction sent by the pull stream platform.
[0046] In a possible design, the control module is further configured to, when the working mode is the second preset mode, control the device to enable the image detection function corresponding to the sensor, determine the position change information corresponding to the device based on the image detection function, and determine the change duration corresponding to the position change information, and control the device to re-obtain the target cell and the measurement data corresponding to the target cell based on the change duration.
[0047] In a possible design, the control module is further configured to obtain each frame of image in the video data collected by the device, in response to the image difference value between adjacent images exceeding the preset threshold, and determine the position change information corresponding to the device based on the preset threshold, or obtain the historical position information in the device position detection module, and determine the position change information corresponding to the device based on the historical position information.
[0048] In a possible design, the control module is further configured to, when the working mode is the third preset mode, control the device to power off the first preset module set and turn on the second preset module, control the second preset module to connect to the pull stream platform, determine the keep-alive duration between the device and the pull stream platform, use the keep-alive duration as the response duration of the device to respond to the pull stream platform, and use the response duration as the preset start period corresponding to the sensor in the device.
[0049] In a possible design, the control module is further configured to detect whether the sensors in the device are in a working state. If so, it controls the device to restart the operation of the first preset module and cut off the power supply to the second preset module. If not, when the sleep time of the sensors reaches the preset startup period, it controls the device to send a heartbeat message to the pull-stream platform and controls the sensors to enter the sleep state.
[0050] In a third aspect, the present application provides an electronic device, including:
[0051] A memory for storing a computer program;
[0052] A processor, when executing the computer program stored in the memory, implements the method steps of a method for reducing the power consumption of a device as described above.
[0053] In a fourth aspect, a computer-readable storage medium stores a computer program therein, and when the computer program is executed by a processor, it implements the method steps of a method for reducing the power consumption of a device as described above.
[0054] For the various aspects in the first to fourth aspects above and the possible technical effects that can be achieved in each aspect, please refer to the technical effects that can be achieved in the first aspect or various possible solutions in the first aspect as described above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flowchart of the method steps of a method for reducing the power consumption of a device provided by the present application;
[0056] Figure 2 It is a schematic diagram of the system framework of the device provided by the present application;
[0057] Figure 3 It is a schematic diagram corresponding to each module in the device provided by the present application;
[0058] Figure 4 It is a flowchart of the overall operation of the device provided by the present application;
[0059] Figure 5 It is a flowchart for determining the change of the position of the device provided by the present application;
[0060] Figure 6 It is a schematic diagram of the structure of a device for reducing the power consumption of a device provided by the present application;
[0061] Figure 7 It is a schematic diagram of the structure of an electronic device provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0062] To make the objectives, technical solutions, and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the apparatus embodiments or system embodiments. It should be noted that in the description of this application, "a plurality of" is understood as "at least two". "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The connection between A and B may represent: A is directly connected to B and A is connected to B through C. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0063] In the prior art, in order to achieve the purpose of reducing the power consumption of the device and enabling the pull stream platform to quickly pull the stream from the device, currently, the method adopted is to adjust the keep-alive interval duration between the device and the pull stream platform, and the purpose of reducing the power consumption of the device is achieved by adjusting the keep-alive interval duration to the optimal keep-alive interval duration. However, during the keep-alive interval duration, there is frequent update of information between the device and other cells. When this information is frequently updated, it is necessary to consume the power of the device, thereby increasing the overall power consumption of the device.
[0064] To solve the above problems, the embodiments of this application provide a method for reducing the power consumption of a device, which is used to determine a power consumption control operation corresponding to a power consumption control strategy based on different working modes of the device, and then enable the device to execute the power consumption control operation, thereby achieving the purpose of reducing the power consumption of the device. Among them, the methods and apparatuses in the embodiments of this application are based on the same technical concept. Since the principles of the problems solved by the methods and apparatuses are similar, the embodiments of the apparatus and the method can be referred to each other, and the repeated parts will not be elaborated.
[0065] The following will describe the embodiments of this application in detail with reference to the accompanying drawings.
[0066] Refer to Figure 1 , this application provides a method for reducing the power consumption of a device, which can reduce the power consumption of the device and improve the efficiency of pulling the stream by the pull stream platform. The implementation process of this method is as follows:
[0067] Step S1: Obtain the working state of the sensor in the device.
[0068] The embodiments of this application are to solve the problem of high power consumption of the cellular module during the sleep and pull stream periods of the Internet of Things device. At the same time, to solve the problem of long time-consuming pull stream caused by the long network establishment time from sleep to wake-up of the low-power device. The schematic diagram of the system framework of the device in the embodiments of this application is as Figure 2 shown, in Figure 2Among them, the server is connected to each base station and the cloud platform. The cloud platform can be a streaming platform. The base station can be connected to devices such as tablet computers, and can also be connected to low-power Internet of Things devices. The low-power Internet of Things devices can be mobile monitoring devices, image acquisition devices, etc., which are not specifically limited here.
[0069] In the mobile monitoring scenario, the low-power Internet of Things device will collect video images of the monitoring site, and the above cloud platform will collect the video images. The schematic diagrams of the respective modules in the devices in the embodiments of the present application are as Figure 3 shown in Figure 3 In, the device includes: a main processor, a low-power MCU, a PIR detection module, an image acquisition module, a cellular module, an NBIOT module, SIM1, and SIM2 modules. The above-described low-power module MCU is a chip-based module. The PIR module can be a sensor for detecting whether the device moves and detecting video data. The NBIOT module is used to connect to the network platform and realize communication with the network platform. SIM1 and SIM2 modules are used for the identification of the device to communicate with other communication modules or other base stations. The main processor is used to process the information sent by the respective modules in the device.
[0070] After the device is powered on and initialized, the device is connected to the cloud platform through the cellular module. It is required that the cellular module in the device enters the cloud platform through login information. After the main processor starts, it will power off the NBIOT module to reduce power consumption.
[0071] Since the embodiments of the present application determine different power consumption control operations based on different working modes of the device, it is necessary to determine the working mode of the device based on the current battery power of the device and the sensor. The working states of the sensor include: the sensor is in the working state, the sensor is in the idle state, and the sensor is in the sleep state.
[0072] Based on the above description, the working state of the sensor is determined. Since the working states of the sensor are different under different working modes, the working mode of the device can be estimated based on the working state of the sensor.
[0073] Step S2: Determine the working mode corresponding to the device based on the current battery power and the working state.
[0074] The above description has obtained the working state of the sensor in the device, and then obtained the current battery power of the device. The current battery power is the remaining power of the device battery.
[0075] After obtaining the working state of the sensor in the device and the current battery power, the specific process of determining the working mode of the device based on the working state and the current battery power is as follows:
[0076] When the preset module in the device is in a normal working state, the device is in the first preset mode. The preset module can be a 5G communication module, or it can be other communication modules, which will not be elaborated one by one here. When the device is in the first preset mode, the first preset mode also shortens the time for the device to establish a network connection with the streaming platform. When the device is awakened from the sleep state, fast streaming between the device and the streaming platform can be achieved.
[0077] When the current battery level of the device exceeds the preset battery level and the device does not receive a streaming request sent by the streaming platform, it is determined that the device is in the second preset mode.
[0078] When the current battery level of the device is lower than the preset battery level, other modules connected to the image acquisition module in the device are powered off, and the communication module is powered off, and it is determined that the device is in the third preset mode.
[0079] Through the above method, different working modes of the device can be determined, and different power consumption control operations corresponding to different working modes. Therefore, the method in the embodiments of the present application can cover more real-time scenarios and ensure the reduction of the device's power consumption.
[0080] Step S3: Determine the current power consumption control strategy corresponding to the working mode from the power consumption control strategy set, and control the device to perform the corresponding power consumption control operation according to the current power consumption control strategy.
[0081] After determining the different working modes of the device, in order to determine the power consumption control operation corresponding to each working mode, the current power consumption control strategy corresponding to the current working mode will be determined from the power consumption control strategy set, and the power consumption control operation corresponding to the power consumption control strategy will be determined, so that the device performs the power consumption control operation to achieve the purpose of reducing power consumption. The specific processes of reducing power consumption corresponding to each working mode are as follows:
[0082] When the device is in the first preset mode, when the sensor in the device is awakened and in a working state, the device will enter the streaming mode and needs to obtain the streaming request corresponding to the streaming platform connected by the device. The streaming request indicates obtaining the video information collected by the image acquisition module. Determine the video information corresponding to the streaming request from the image acquisition module, and process the video information in a preset manner. The preset manner is to encode and encapsulate the video information, and send the encoded and encapsulated video information as streaming information to the streaming platform until the streaming platform sends an end streaming instruction to the device, and then the device exits the streaming mode.
[0083] When the current battery level of the device in the first preset mode exceeds the preset battery level, the device will regularly detect the battery level and the working status of the sensors. When there is no pulling request and the current battery level exceeds the preset battery level, the device will enter the second preset mode. In the second preset mode, the image acquisition module will continue to acquire video information. Since the sensors in the device have image detection functions, whether there are abnormal situations in the video information will be monitored based on the sensors. When an abnormal situation occurs, the cellular image module will be awakened, and the abnormal information corresponding to the abnormal situation will be reported to the pulling platform.
[0084] Furthermore, since the main processor and the cellular module are both normally powered in the second preset mode, when abnormal information needs to be reported to the pulling platform, network recovery can be achieved within seconds and data transmission can be carried out.
[0085] In the second preset mode, in order to prevent the device's position from changing, resulting in the sensors in the device detecting abnormal situations and thus reporting the abnormal situations, the position change information corresponding to the device will be determined based on the image detection function of the sensors. The specific determination process is as follows:
[0086] The sensor will obtain the video data acquired by the image acquisition module. The lens magnification of the image acquisition module does not change when acquiring the video data. Then, the video data will be parsed into a series of consecutive frames of images, and the image difference value between adjacent images will be calculated. It will be judged whether the image difference value exceeds the preset threshold. When the image difference value exceeds the preset threshold, it will be determined that the device's position has not changed; when the image difference value is lower than the preset threshold, it will be determined that the device's position has changed, and then the position change information corresponding to the device will be determined;
[0087] In a possible design, whether the device's position has changed can also be determined by obtaining the historical position information in the position detection module. The position detection module can be a Global Navigation Satellite System (GNSS). When the historical position information within a continuous period is inconsistent, it can be determined that the device's position has changed, and the position change information of the device will be obtained; when the historical position information within a continuous period is consistent, it means that the device's position has not changed during this continuous period.
[0088] It should be noted that when the position of the device changes, the start time of the device's position movement and the end time when the device's position stops moving will be determined, the time difference between the start time and the end time will be calculated, and the time difference will be added to the preset waiting time. The preset waiting time is the time for continuous waiting after the end time, and the change duration corresponding to the above position change information is obtained. After determining the change duration, wait for the change duration to arrive. After the change duration arrives, the device will re-obtain the currently connected target cell and the measurement data corresponding to the target cell. The measurement data includes the currently connected target cell and the target cells that the device can select.
[0089] When the current battery power of the device is lower than the preset battery power and there is no data pulling request, the device will enter the third preset mode. After the third preset mode is enabled, the device will power off the first preset module set, which includes a main processor and a cellular communication module, and enable the second preset module. The second preset module is the NBIOT module. The NBIOT module will complete network registration based on the connected SIM1 card and receive the communication data between the device and the data pulling platform based on the registration account corresponding to the SIM1 card. After the NBIOT module logs in to the data pulling platform based on the registration account, the keep-alive duration between the device and the data pulling platform will be obtained. The keep-alive duration is the longest time interval during which the device and the data pulling platform do not communicate. If the device does not communicate with the data pulling platform within the keep-alive duration, the connection between the device and the data pulling platform will be disconnected.
[0090] After determining the keep-alive duration of the device, the keep-alive duration will be used as the response duration of the device to the data pulling platform. When the data pulling platform sends a data pulling request to the device, the device in the third preset mode will respond within the response duration. The NBIOT module will synchronize the response duration to the data pulling platform and perform periodic paging according to the response duration to determine whether there is a data pulling request during the paging. After detecting the data pulling request of the data pulling platform, the low-power MCU module will supply power to the main processor and the cellular communication module. The longer the response duration is, the longer the paging interval will be, and thus the power consumption of the device will be lower.
[0091] Further, the NB-IoT module in the device will also use this response duration as the preset startup period corresponding to the sensor in the device. After determining the startup period of the sensor in the device, it will detect whether the sensor in the device is in the working state according to the preset period. When the sensor is in the working state, it will control the device to restart the first preset module and cut off the power supply of the second preset module. When the sensor is not in the working state, since the sensor is in the sleep state, when the sleep time of the sensor reaches the preset startup period, it will control the device to send a heartbeat message to the streaming platform. This heartbeat message is used to inform the streaming platform that the device is in a normal state. After the sensor finishes sending the heartbeat message, the server will control the sensor to be in the sleep state.
[0092] Further, the overall device working flowchart is as Figure 4 shown. In Figure 4 , when the device starts up, the cellular image module in the device will be powered on and initialized, and the NB-IoT module in the device will be powered on and off. If there is a GNSS module in the device, the GNSS module will be initialized. The device will initiate registration to the streaming platform based on the cellular communication module. The server needs to obtain the working mode of the device. When the working mode of the device is the first preset mode or the second preset mode, it will then determine whether the working mode of the device is the streaming mode in the first preset mode. When the working mode of the device is the streaming mode in the first preset mode, it will obtain the video information in the image acquisition module, encode and protocol encapsulate this video information, and then send it to the streaming platform, and confirm whether to continue sending data to the streaming platform. If the streaming mode ends, it will then determine the working mode of the device.
[0093] When the working mode of the device is not the first preset mode, the device will enable the image motion detection function and determine whether there is a change in the video data collected by the image acquisition module. When there is no change in the video data, it will detect the working mode of the device again. When there is a change in the video data, if it is determined that the device location has changed, it will determine the change duration based on the steps described above, and wait until the change duration arrives, and then initiate a neighbor cell measurement and cell reselection to obtain measurement data.
[0094] When the working mode of the device is not the first preset mode and the second preset mode, the device will enter the third preset mode, cut off the power supply of the first preset module set, start the second preset module, register with the streaming platform based on the NBIOT module, and log in to the streaming platform. Then, based on the above description, determine the keep-alive duration and response duration between the device and the streaming platform. After determining the response duration, determine the paging period based on the response duration, and enter the power-saving mode when the NBIOT module is idle. After entering the power-saving mode, it is necessary to determine whether the sensor is awakened. When the sensor is awakened, the device will power on the first preset module set and power off the second preset module; when the sensor is not awakened, determine whether the sleep time of the sensor reaches the keep-alive duration. When the keep-alive duration is reached, send a heartbeat message to the streaming platform, and then enter the power-saving mode after the heartbeat message is sent; when the keep-alive duration is not reached, the sensor will wait until the preset startup period arrives and then determine whether the sensor is awakened.
[0095] In the overall working flow chart of the device, it also involves the detection of whether the device location has changed. The decision flow chart for determining the change of the device location is as Figure 5 shown. In Figure 5 , first initialize the location status of the device as unchanged. When the device is configured with GNSS, obtain the current location information of the device based on GNSS positioning, and then determine whether the device location has shifted based on this location information. If the device location has shifted, update the device location status information to unchanged; if the device location has not shifted, update the device location status information to location changed.
[0096] When the device is not configured with GNSS, it is determined that if the image detection module is not triggered, periodically determine whether the image detection module is triggered according to a preset waiting duration. When the image detection module is triggered, if the image acquisition module in the device has changed, determine whether the image detection is completed. If the image acquisition module in the device has not changed, periodically detect whether the image acquisition module in the device has changed according to a preset waiting duration.
[0097] When determining whether the image detection is completed, if the image detection is not completed, periodically determine whether the image detection is completed according to a preset waiting duration; if the image detection is completed, when it is determined that the image acquisition module has changed, re-detect the change of the location; when it is determined that the image acquisition module has not changed, the image acquisition module in the device includes: pan-tilt, lens, etc. When the pan-tilt moves, it is determined that the image acquisition module has changed; when the lens zooms, it is determined that the image acquisition module has changed.
[0098] When it is determined that the image acquisition module has not changed, the image difference value between adjacent images in the video data collected by the image acquisition module will be determined based on the above description. When the image difference value exceeds the preset threshold, the position status of the device will be updated to position changed; when the image difference value is lower than the preset threshold, the position status information of the device will be updated to position unchanged.
[0099] Based on the above method, when the device is awakened, it will quickly establish a connection with the pulling stream platform through the cellular image module, achieving efficient pulling of the stream. At the same time, when the position of the device changes and reaches the preset waiting time, a target cell measurement and target cell reselection are triggered, avoiding frequent information updates between the cellular image module and the base station. Moreover, when the device battery level is lower than the preset threshold, it enters the third preset mode, enabling the device to enter the deep sleep mode, ensuring a reduction in the overall power consumption of the device.
[0100] Based on the same inventive concept, an apparatus for reducing the power consumption of a device is further provided in an embodiment of the present application. The apparatus for reducing the power consumption of a device is used to implement the functions of a method for reducing the power consumption of a device. Refer to Figure 6 , the apparatus includes:
[0101] An acquisition module 601, configured to acquire the working status of sensors in the device;
[0102] A determination module 602, configured to determine the working mode corresponding to the device based on the current battery level and the working status, where the current battery level is the remaining power of the battery in the device;
[0103] A control module 603, configured to determine the current power consumption control policy corresponding to the working mode from a set of power consumption control policies, and control the device to perform corresponding power consumption control operations according to the current power consumption control policy.
[0104] In a possible design, the determination module 602 is specifically configured to determine that the working mode corresponding to the device is the first preset mode when a preset module in the device is in a normal working state, or determine that the working mode corresponding to the device is the second preset mode when the current battery level exceeds the preset battery level and the device has not received a pulling stream request sent by the pulling stream platform, or determine that the working mode corresponding to the device is the third preset mode when the current battery level is lower than the preset battery level.
[0105] In a possible design, the control module 603 is specifically configured to, when the working mode is the first preset mode, obtain a pull stream request corresponding to the pull stream platform to which the device is connected, determine corresponding video information from the device based on the pull stream request, control the device to process the video information in a preset manner, generate pull stream information corresponding to the video information, and control the device to send the pull stream information to the pull stream platform until the device receives an end pull stream instruction sent by the pull stream platform.
[0106] In a possible design, the control module 603 is further configured to, when the working mode is the second preset mode, control the device to enable the image detection function corresponding to the sensor, determine position change information corresponding to the device based on the image detection function, and determine a change duration corresponding to the position change information, and control the device to re-obtain the target cell and measurement data corresponding to the target cell based on the change duration.
[0107] In a possible design, the control module 603 is further configured to obtain each frame of image in the video data collected by the device, in response to the image difference value between adjacent images exceeding a preset threshold, and determine position change information corresponding to the device based on the preset threshold, or obtain historical position information in the device position detection module, and determine position change information corresponding to the device based on the historical position information.
[0108] In a possible design, the control module 603 is further configured to, when the working mode is the third preset mode, control the device to power off a first preset module set, and turn on a second preset module, control the second preset module to connect to the pull stream platform, and determine a keep-alive duration between the device and the pull stream platform, use the keep-alive duration as the response duration of the device to the pull stream platform, and use the response duration as a preset startup period corresponding to the sensor in the device.
[0109] In a possible design, the control module 603 is further configured to detect whether the sensor in the device is in a working state. If so, control the device to restart the first preset module and power off the second preset module. If not, when the sleep time of the sensor reaches the preset startup period, control the device to send a heartbeat message to the pull stream platform and control the sensor to be in a sleep state.
[0110] Based on the same inventive concept, an electronic device is further provided in an embodiment of the present application. The electronic device can implement the functions of the foregoing device for reducing device power consumption. Refer to Figure 7 , the electronic device includes:
[0111] At least one processor 701, and a memory 702 connected to the at least one processor 701. In the embodiments of the present application, the specific connection medium between the processor 701 and the memory 702 is not limited. Figure 7 In this example, the processor 701 and the memory 702 are connected through a bus 700. The bus 700 is Figure 7 represented by a thick line. The connection manners between other components are only for illustrative purposes and are not limiting. The bus 700 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, Figure 7 it is only represented by a thick line, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 701 can also be referred to as a controller, and there is no limitation on the name.
[0112] In the embodiments of the present application, the memory 702 stores instructions executable by the at least one processor 701. By executing the instructions stored in the memory 702, the at least one processor 701 can execute a method for reducing the power consumption of a device as described above. The processor 701 can implement Figure 6 the functions of each module in the device shown.
[0113] Among them, the processor 701 is the control center of the device. It can connect various parts of the entire control device through various interfaces and lines. By running or executing the instructions stored in the memory 702 and calling the data stored in the memory 702, various functions of the device and process data, so as to monitor the device as a whole.
[0114] In a possible design, the processor 701 may include one or more processing units. The processor 701 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 701. In some embodiments, the processor 701 and the memory 702 can be implemented on the same chip. In some embodiments, they can also be separately implemented on independent chips.
[0115] The processor 701 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of a method for reducing the power consumption of a device disclosed in combination with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0116] The memory 702, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 702 can include at least one type of storage medium. For example, it can include flash memory, hard disks, multimedia cards, card-type memories, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memories, magnetic disks, optical disks, and so on. The memory 702 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 702 in the embodiments of the present application can also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.
[0117] By programming the processor 701, the code corresponding to the method for reducing device power consumption introduced in the foregoing embodiments can be solidified into the chip, so that the chip can execute Figure 1 the steps of a method for reducing device power consumption in the illustrated embodiments. How to program the processor 701 is a well-known technology to those skilled in the art and will not be elaborated here.
[0118] Based on the same inventive concept, the embodiments of the present application also provide a storage medium storing computer instructions, which, when run on a computer, cause the computer to execute a method for reducing device power consumption discussed above.
[0119] In some possible implementation manners, various aspects of a method for reducing device power consumption provided in the present application can also be implemented in the form of a program product, which includes program code that, when the program product runs on a device, causes the control device to execute the steps in a method for reducing device power consumption according to various exemplary embodiments of the present application described above in this specification.
[0120] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0121] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0122] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0124] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims
1. A method for reducing the power consumption of a device, characterized in that, Including: Obtain the working state of the sensors in the device; Determine the working mode corresponding to the device based on the current battery power and the working state, where the current battery power is the remaining power of the battery in the device; Determine the current power consumption control strategy corresponding to the working mode from the power consumption control strategy set, and control the device to perform the corresponding power consumption control operation according to the current power consumption control strategy; Among them, determining the working mode corresponding to the device based on the current battery power and the working state includes: When the working state of the sensor is in the working state and the preset module in the device is in the normal working state, determine that the working mode corresponding to the device is the first preset mode; or When the current battery power exceeds the preset battery power and the device does not receive a streaming request sent by the streaming platform, determine that the working mode corresponding to the device is the second preset mode; or When the current battery power is lower than the preset battery power, determine that the working mode corresponding to the device is the third preset mode.
2. The method according to claim 1, characterized in that, Determine the current power consumption control strategy corresponding to the working mode from the power consumption control strategy set, and control the device to perform the corresponding power consumption control operation according to the current power consumption control strategy, including: When the working mode is the first preset mode, obtain the streaming request corresponding to the streaming platform connected to the device, where the streaming request is used to obtain the video information collected by the specified device; Determine the corresponding video information from the device based on the streaming request, control the device to process the video information in a preset manner, and generate the streaming information corresponding to the video information; Control the device to send the streaming information to the streaming platform until the device receives an end streaming instruction sent by the streaming platform.
3. The method according to claim 1, characterized in that, Determine the current power consumption control strategy corresponding to the working mode from the power consumption control strategy set, and control the device to perform the corresponding power consumption control operation according to the current power consumption control strategy, including: When the working mode is the second preset mode, control the device to enable the image detection function corresponding to the sensor; Determine the position change information corresponding to the device based on the image detection function, and determine the change duration corresponding to the position change information; Control the device to re-obtain the target cell and the measurement data corresponding to the target cell based on the change duration, where the measurement data records the target cell currently connected to the device and the target cells that the device can select.
4. The method according to claim 3, characterized in that, Determining the position change information corresponding to the device based on the image detection function includes: Obtain each frame of image in the video data collected by the device, in response to the image difference value between adjacent images exceeding a preset threshold, and determine the position change information corresponding to the device based on the preset threshold; or Obtain the historical position information in the device position detection module, and determine the position change information corresponding to the device based on the historical position information.
5. The method according to claim 1, characterized in that, Determine the current power consumption control policy corresponding to the working mode from the power consumption control policy set, and control the device to perform corresponding power consumption control operations according to the current power consumption control policy, including: When the working mode is the third preset mode, control the device to cut off the power supply of the first preset module set and turn on the second preset module; Control the second preset module to connect to the pulling stream platform, and determine the keep-alive duration between the device and the pulling stream platform, where the keep-alive duration is the longest time interval during which the device and the pulling stream platform do not communicate; Use the keep-alive duration as the response duration of the device to the pulling stream platform, and use the response duration as the preset startup period corresponding to the sensor in the device.
6. The method according to claim 5, wherein After using the response duration as the preset startup period corresponding to the sensor in the device, it further includes: Detect whether the sensor in the device is in a working state; If so, control the device to restart the first preset module set and cut off the power supply of the second preset module; If not, when the sleep time of the sensor reaches the preset startup period, control the device to send a heartbeat message to the pulling stream platform and control the sensor to be in a sleep state, where the heartbeat message is used to indicate that the device is in a normal state.
7. A device for reducing the power consumption of a device, characterized in that, It includes: An acquisition module, used to acquire the working state of the sensor in the device; A determination module, used to determine the working mode corresponding to the device based on the current battery power and the working state, where the current battery power is the remaining power of the battery in the device; A control module, used to determine the current power consumption control policy corresponding to the working mode from the power consumption control policy set, and control the device to perform corresponding power consumption control operations according to the current power consumption control policy; Among them, the determination module is specifically used for: When the sensor is in a working state and the preset module in the device is in a normal working state, determine that the working mode corresponding to the device is the first preset mode; or When the current battery power exceeds the preset battery power and the device does not receive a pulling stream request sent by the pulling stream platform, determine that the working mode corresponding to the device is the second preset mode; or When the current battery power is lower than the preset battery power, determine that the working mode corresponding to the device is the third preset mode.
8. An electronic device, characterized in that, It includes: A memory, used to store a computer program; A processor, when executing the computer program stored on the memory, implements the method steps described in any one of claims 1-6.
9. 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 the processor, it implements the method steps described in any one of claims 1-6.
Citation Information
Patent Citations
Power consumption control method and terminal
CN108738115A