Method for reducing power consumption of equipment, electronic equipment and storage medium

By controlling the dormant or intermittent sleep of the global positioning system and other components when the electronic device is in a low-speed motion state, the problem of insufficient battery capacity caused by excessive power consumption of electronic devices is solved, extending the working time of the device and improving the user experience.

CN120499801APending Publication Date: 2025-08-15SHENZHEN STREAMING VIDEO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510452105.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

Electronic devices consume a large power consumption and the battery capacity cannot meet the needs of long-term working hours, resulting in frequent charging or replacement of batteries, which causes inconvenience to users.

Method used

By acquiring the motion speed when the electronic device is in a state of motion, controlling the global positioning system to enter a dormant state when the speed is less than or equal to the speed threshold or performing intermittent sleep according to preset strategies, combining the six-axis gyroscope data to determine the device status, adjusting the working status of the camera and communication module to reduce power consumption.

Benefits of technology

Without charging or replacing the battery, extend the working time of the electronic device, improve the power consumption management efficiency of the device in low-speed motion state, and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499801A_ABST
    Figure CN120499801A_ABST
Patent Text Reader

Abstract

The invention discloses a method for reducing power consumption of equipment, electronic equipment and a storage medium, the method for reducing the power consumption of the equipment is applied to the electronic equipment configured with a global positioning system, and the method for reducing the power consumption of the equipment comprises the following steps: when it is determined that the electronic equipment is in a motion state, obtaining the motion speed of the electronic equipment; and when the movement speed is smaller than or equal to a speed threshold value, controlling the global positioning system to enter a dormant state, or controlling the global positioning system to perform discontinuous dormancy according to a preset strategy. According to the method, when the electronic equipment is in the low-speed motion state, the global positioning system is controlled to enter the dormant state or the intermittent dormant state, the power consumption of the electronic equipment can be reduced, and the working time of the electronic equipment can be prolonged under the condition that a battery of the electronic equipment is not charged or replaced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and in particular relates to a method for reducing device power consumption, an electronic device, and a storage medium. Background Art

[0002] At present, electronic devices have more and more functional configurations, and the power consumption required by electronic devices is also increasing. The battery capacity of electronic devices cannot meet the working time. After the electronic devices have been working for a period of time, the batteries of the electronic devices need to be charged or replaced, which causes many inconveniences to users in the process of using electronic devices.

[0003] Therefore, how to extend the working time of electronic devices without charging or replacing the batteries of electronic devices has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the Invention

[0004] In view of this, embodiments of the present application provide a method for reducing device power consumption, an electronic device, and a storage medium to overcome the above problems of the prior art.

[0005] In a first aspect, an embodiment of the present application provides a method for reducing device power consumption, which is applied to an electronic device equipped with a global positioning system. The method for reducing device power consumption includes:

[0006] When it is determined that the electronic device is in motion, obtaining a motion speed of the electronic device;

[0007] When the movement speed is less than or equal to a speed threshold, the global positioning system is controlled to enter a dormant state, or the global positioning system is controlled to perform intermittent dormancy according to a preset strategy.

[0008] In some optional embodiments, when determining that the electronic device is in motion, before obtaining the motion speed of the electronic device, the method for reducing device power consumption further includes:

[0009] Acquiring six-axis gyroscope data collected by the six-axis gyroscope of the electronic device;

[0010] Determine whether the electronic device is in the motion state according to the six-axis gyroscope data.

[0011] In some optional embodiments, determining whether the electronic device is in the motion state according to the six-axis gyroscope data includes:

[0012] When the sum of the angular velocities of the six-axis gyroscope data is less than the angular velocity threshold for a duration greater than or equal to a duration threshold, determining that the electronic device is in the stationary state;

[0013] When the sum of the angular velocities is greater than or equal to the angular velocity threshold, or the duration is less than the duration threshold, it is determined that the electronic device is in motion.

[0014] In some optional embodiments, the method for reducing device power consumption further includes:

[0015] When it is determined that the electronic device is in a stationary state, the global positioning system is controlled to enter a dormant state.

[0016] In some optional embodiments, the electronic device is further configured with a communication module, and the method for reducing device power consumption further includes:

[0017] The time interval for the communication module to report data to the server is controlled to switch from a first time interval to a second time interval, where the first time interval is shorter than the second time interval.

[0018] In some optional embodiments, when determining that the electronic device is in motion, obtaining the motion speed of the electronic device includes:

[0019] When it is determined that the electronic device is in the motion state, obtaining a global positioning system coordinate change within a preset time period;

[0020] The movement speed is calculated according to the global positioning system coordinate change and the preset time period.

[0021] In some optional embodiments, the electronic device is further configured with a camera, and the method for reducing device power consumption further includes:

[0022] determining whether the electronic device needs to record a video;

[0023] When it is determined that the electronic device does not need to record video, the video encoding function of the camera is turned off to put the camera into a dormant state.

[0024] In some optional embodiments, the method for reducing device power consumption further includes:

[0025] When it is determined that the electronic device needs to record a video, the video encoding function of the camera is turned on to enable the camera to start recording the video.

[0026] In a second aspect, an embodiment of the present application provides an apparatus for reducing device power consumption, wherein the apparatus for reducing device power consumption is applied to an electronic device including a global positioning system, and the apparatus for reducing device power consumption includes:

[0027] A first acquisition module is configured to acquire a movement speed of the electronic device when it is determined that the electronic device is in a moving state;

[0028] The first control module is configured to control the global positioning system to enter a dormant state when the movement speed is less than or equal to a speed threshold, or to control the global positioning system to enter an intermittent dormant state according to a preset strategy.

[0029] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory; one or more processors coupled to the memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method for reducing device power consumption as provided in the first aspect above.

[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the method for reducing device power consumption as provided in the first aspect above.

[0031] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer device, enables the computer device to execute the method for reducing device power consumption as provided in the first aspect above.

[0032] The solution provided by the present application obtains the movement speed of the electronic device when it is determined that the electronic device is in motion, and when the movement speed is less than or equal to a speed threshold, controls the global positioning system to enter a sleep state, or controls the global positioning system to perform intermittent sleep according to a preset strategy. This achieves the goal of controlling the global positioning system to enter a sleep state or an intermittent sleep state when the electronic device is in a low-speed motion state, which can reduce the power consumption of the electronic device and is beneficial to extending the working time of the electronic device without charging or replacing the battery of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0034] Figure 1 A flow chart of a method for reducing power consumption of a device provided in an embodiment of the present application is shown.

[0035] Figure 2 Another flow chart of a method for reducing power consumption of a device provided in an embodiment of the present application is shown.

[0036] Figure 3 Another flow chart of the method for reducing power consumption of a device provided in an embodiment of the present application is shown.

[0037] Figure 4 Another flow chart of the method for reducing power consumption of a device provided in an embodiment of the present application is shown.

[0038] Figure 5 A schematic diagram of a scenario flow of a method for reducing power consumption of a device provided in an embodiment of the present application is shown.

[0039] Figure 6 A structural block diagram of an apparatus for reducing power consumption of a device provided in an embodiment of the present application is shown.

[0040] Figure 7 A functional block diagram of an electronic device provided in an embodiment of the present application is shown.

[0041] Figure 8 A computer-readable storage medium provided in an embodiment of the present application is shown for storing or carrying program code for implementing a method for reducing power consumption of a device provided in an embodiment of the present application.

[0042] Figure 9 A computer program product provided in an embodiment of the present application is shown, which is used to store or carry program codes for implementing the method for reducing power consumption of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0044] It will be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0045] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0046] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0047] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0048] At present, electronic devices have more and more functional configurations, and the power consumption required by electronic devices is also increasing. The battery capacity of electronic devices cannot meet the working time. After the electronic devices have been working for a period of time, the batteries of the electronic devices need to be charged or replaced, which causes many inconveniences to users in the process of using electronic devices.

[0049] Therefore, how to extend the working time of electronic devices without charging or replacing the batteries of electronic devices has become a technical problem that needs to be solved urgently by those skilled in the art.

[0050] In response to the above problems, the embodiments of the present application provide a method for reducing device power consumption, an electronic device, and a storage medium. When it is determined that the electronic device is in motion, the movement speed of the electronic device is obtained, and when the movement speed is less than or equal to a speed threshold, the global positioning system is controlled to enter a sleep state, or the global positioning system is controlled to perform intermittent sleep according to a preset strategy. This achieves the goal of controlling the global positioning system to enter a sleep state or an intermittent sleep state when the electronic device is in a low-speed motion state, which can reduce the power consumption of the electronic device and is beneficial to extending the working time of the electronic device without charging or replacing the battery of the electronic device.

[0051] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.

[0052] The method for reducing device power consumption provided in the embodiments of the present application can be applied to electronic devices. The electronic devices may include various terminal devices, which may also be referred to as terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc.

[0053] The terminal device may be a mobile phone, a robot vacuum, a drone, a smart TV, a wearable device, a personal digital assistant (PDA), a computer with wireless transceiver capabilities, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal used in industrial control, a wireless terminal used in self-driving, a wireless terminal used in remote medical surgery, a wireless terminal used in smart grids, a wireless terminal used in transportation safety, a wireless terminal used in smart cities, a wireless terminal used in smart homes, etc. The terminal device type is not limited here and can be set according to actual needs.

[0054] See also Figure 1 , which shows a flow chart of a method for reducing device power consumption provided by an embodiment of the present application. In a specific embodiment, the method for reducing device power consumption can be applied to electronic devices equipped with a global positioning system (GPS). The following will take electronic devices as an example to Figure 1 The process shown is described in detail. The method for reducing device power consumption may include the following steps 110 to 120.

[0055] Step 110: When it is determined that the electronic device is in motion, obtain the motion speed of the electronic device.

[0056] In an embodiment of the present application, when the electronic device determines that the electronic device is in motion, the motion speed of the electronic device can be obtained.

[0057] Specifically, when the electronic device determines that the electronic device is in motion, it can obtain the GPS coordinate changes of the GPS within a preset time period, and calculate the movement speed based on the GPS coordinate changes and the preset time period, and calculate the movement speed of the electronic device based on the GPS coordinate changes of the GPS and the corresponding change time, thereby improving the calculation accuracy of the movement speed of the electronic device.

[0058] The preset time period may be any historical time range. For example, the preset time period may be a time range corresponding to the historical moment t1 to the historical moment t2, and the historical moment t2 is later than the historical moment t1.

[0059] The electronic device can calculate the corresponding moving distance based on the first GPS coordinate at the start time of the preset time period and the second GPS coordinate at the end time of the preset time period, and calculate the movement speed based on the moving distance and the preset time period.

[0060] Step 120: When the movement speed is less than or equal to the speed threshold, the global positioning system is controlled to enter a dormant state, or the global positioning system is controlled to perform intermittent dormancy according to a preset strategy.

[0061] In an embodiment of the present application, when the electronic device determines that the electronic device is in motion, after obtaining the motion speed of the electronic device, and when the motion speed is less than or equal to the speed threshold, a first control instruction can be sent to the GPS, and the GPS receives and responds to the first control instruction and switches to a sleep state, or a second control instruction can be sent to the GPS, and the GPS receives and responds to the second control instruction and performs intermittent sleep according to a preset strategy. This achieves the goal of controlling the GPS to enter a sleep state or an intermittent sleep state when the electronic device is in a low-speed motion state, which can reduce the power consumption of the electronic device and is beneficial to extending the working time of the electronic device without charging or replacing the battery of the electronic device.

[0062] Among them, the speed threshold can be used to characterize the minimum movement speed of the electronic device in a fast movement state. The speed threshold can be a speed pre-set by the user, or a speed automatically generated by the electronic device based on a process of multiple reductions in device power consumption, etc., which is not limited here.

[0063] The sleep state can be used to indicate that the GPS is in a low-power standby state. The GPS in the sleep state will immediately resume normal operation upon receiving a wake-up command.

[0064] Intermittent sleep according to a preset strategy may include a strategy of sleeping according to a preset time interval. The preset time interval may be a time interval pre-set by the user, or a time interval automatically generated by the electronic device based on a process of multiple reductions in device power consumption, etc., which is not limited here.

[0065] As an example, the preset time interval may be 30 seconds, and the intermittent sleep of the GPS according to the preset strategy may include the GPS being awakened at a time of 30 seconds and entering sleep at a time of 30 seconds.

[0066] As an example, intermittent sleep according to the preset strategy may also be sleep for 30 seconds and wake up for 10 seconds; this application does not limit this.

[0067] In some embodiments, when the electronic device determines that the electronic device is in motion, after obtaining the motion speed of the electronic device, and when the motion speed is greater than the speed threshold, a third control instruction can be sent to the GPS. The GPS receives and responds to the third control instruction and switches to the working state. The electronic device controls the GPS to switch to the working state in a fast motion state, and can obtain the position changes of the electronic device during the motion process in real time, so that the user can adjust the motion according to the position changes during the motion process, which is conducive to improving the user experience.

[0068] In some embodiments, when the electronic device determines that the electronic device is in a stationary state, a fourth control instruction can be sent to the GPS. The GPS receives and responds to the fourth control instruction and switches to a sleep state. When the electronic device is in a stationary state, the GPS position of the electronic device will not change. At this time, there is no need to sense the GPS coordinates and control the GPS to enter a sleep state, which is beneficial to extending the working time of the electronic device.

[0069] The solution provided by the present application obtains the movement speed of the electronic device when it is determined that the electronic device is in motion, and when the movement speed is less than or equal to a speed threshold, controls the global positioning system to enter a sleep state, or controls the global positioning system to perform intermittent sleep according to a preset strategy. This achieves the goal of controlling the global positioning system to enter a sleep state or an intermittent sleep state when the electronic device is in a low-speed motion state, which can reduce the power consumption of the electronic device and is beneficial to extending the working time of the electronic device without charging or replacing the battery of the electronic device.

[0070] See also Figure 2 , which shows a flow chart of a method for reducing device power consumption provided by another embodiment of the present application. In a specific embodiment, the method for reducing device power consumption can be applied to an electronic device equipped with GPS. The following will take the electronic device as an example to Figure 2 The process shown in FIG. 1 is described in detail. The method for reducing device power consumption may include the following steps 210 to 240.

[0071] Step 210: Acquire six-axis gyroscope data collected by the six-axis gyroscope of the electronic device.

[0072] In this embodiment, the electronic device can also be configured with a six-axis gyroscope. The electronic device can send an acquisition instruction to the six-axis gyroscope. The six-axis gyroscope receives and responds to the acquisition instruction, performs data acquisition, obtains six-axis gyroscope data, and sends the six-axis gyroscope data to the electronic device. The electronic device receives the six-axis gyroscope data returned by the six-axis gyroscope.

[0073] Step 220: Determine whether the electronic device is in motion based on the six-axis gyroscope data.

[0074] In this embodiment, after the electronic device obtains the six-axis gyroscope data collected by the six-axis gyroscope of the electronic device, it can determine whether the electronic device is in motion based on the six-axis gyroscope data, and judge the state of the electronic device based on the six-axis gyroscope data, which is conducive to improving the accuracy of judging the state of the electronic device.

[0075] Specifically, the electronic device may calculate the sum of the angular velocities of the x-axis, y-axis, and z-axis in the six-axis gyroscope data to obtain the sum of the angular velocities, and determine whether the electronic device is in motion according to the sum of the angular velocities.

[0076] When the sum of the angular velocities is less than the angular velocity threshold for a duration greater than or equal to the duration threshold, the electronic device is determined to be in a stationary state. When the sum of the angular velocities is greater than or equal to the angular velocity threshold, or is less than the duration threshold, the electronic device is determined to be in motion. When the electronic device is in a stationary state, the sum of the angular velocities remains constant. Determining whether the electronic device is in motion based on the sum of the angular velocities can improve the accuracy of determining the electronic device's state.

[0077] Step 230: When it is determined according to the six-axis gyroscope data that the electronic device is in motion, the motion speed is obtained.

[0078] Step 240: When the movement speed is less than or equal to the speed threshold, the global positioning system is controlled to enter a dormant state, or the global positioning system is controlled to perform intermittent dormancy according to a preset strategy.

[0079] In this embodiment, step 230 and step 240 may refer to the contents of the corresponding steps in the aforementioned embodiment, and will not be repeated here.

[0080] The solution provided in this embodiment obtains six-axis gyroscope data collected by the six-axis gyroscope of the electronic device, determines whether the electronic device is in motion based on the six-axis gyroscope data, and obtains the motion speed when the electronic device is determined to be in motion based on the six-axis gyroscope data. When the motion speed is less than or equal to a speed threshold, the global positioning system is controlled to enter a sleep state, or the global positioning system is controlled to perform intermittent sleep according to a preset strategy. This achieves the goal of controlling the global positioning system to enter a sleep state or an intermittent sleep state when the electronic device is in a low-speed motion state, which can reduce the power consumption of the electronic device and is beneficial to extending the working time of the electronic device without charging or replacing the battery of the electronic device.

[0081] Furthermore, judging the state of the electronic device based on the six-axis gyroscope data is beneficial to improving the accuracy of judging the state of the electronic device.

[0082] See also Figure 3, which shows a flow chart of a method for reducing device power consumption provided by another embodiment of the present application. In a specific embodiment, the method for reducing device power consumption can be applied to electronic devices equipped with GPS. The following will take electronic devices as an example to Figure 3 The process shown is described in detail. The method for reducing device power consumption may include the following steps 310 to 340.

[0083] Step 310: When it is determined that the electronic device is in motion, obtain the motion speed of the electronic device.

[0084] Step 320: When the movement speed is less than or equal to the speed threshold, the global positioning system is controlled to enter a dormant state, or the global positioning system is controlled to perform intermittent dormancy according to a preset strategy.

[0085] In this embodiment, step 310 and step 320 may refer to the contents of the corresponding steps in the aforementioned embodiment, and will not be repeated here.

[0086] Step 330: Determine whether the electronic device needs to record a video.

[0087] In this embodiment, when the movement speed is less than or equal to the speed threshold, the electronic device controls the GPS to enter a dormant state, or controls the GPS to be awakened at a scheduled time, and then determines whether the electronic device needs to record a video.

[0088] The electronic device may also be equipped with a camera, and the electronic device may control the camera to record video. The camera may include any of a wide-angle camera, a macro camera, an ultra-wide-angle camera, a panoramic camera, a depth camera, a monocular camera, and a binocular camera. The camera type is not limited here and can be set according to actual needs.

[0089] Specifically, when the movement speed is less than or equal to the speed threshold, the electronic device controls the GPS to enter a sleep state, or controls the GPS to enter an intermittent sleep state according to a preset strategy. The electronic device can obtain the device signal of the electronic device and determine whether the electronic device needs to record a video based on the device signal.

[0090] When the device signal includes a preset signal, it is determined that the electronic device needs to record a video; when the device signal does not include the preset signal, it is determined that the electronic device does not need to record a video.

[0091] Among them, the preset signal can be a signal generated by the electronic device based on detection of the user triggering the video recording button, or it can be a signal light generated by the electronic device based on detection of the user's alarm action, which is not limited here.

[0092] The alarm action may include at least any one of a gun drawing action and a violent exercise, etc., which is not limited here.

[0093] Step 340: When it is determined that the electronic device does not need to record video, the video encoding function of the camera is turned off to put the camera into a dormant state.

[0094] In this embodiment, when the electronic device determines that the electronic device does not need to record video, it can send a fifth control instruction to the camera. The camera receives and responds to the fifth control instruction, turns off the video encoding function, and enters a sleep state. This realizes that when the electronic device does not need to record video, the camera is controlled to enter a sleep state, which can reduce the power consumption of the electronic device and help extend the working time of the electronic device.

[0095] In some embodiments, when the electronic device determines that the electronic device needs to record a video, it can send a sixth control instruction to the camera. The camera receives and responds to the sixth control instruction, turns on the video encoding function, and starts recording the video, thereby controlling the camera to record the video according to the user's video recording needs, which is beneficial to improving the user experience in the process of reducing the power consumption of the electronic device.

[0096] The solution provided in this embodiment obtains the movement speed of the electronic device when it is determined that the electronic device is in motion, and when the movement speed is less than or equal to a speed threshold, controls the global positioning system to enter a sleep state, or controls the global positioning system to enter an intermittent sleep state according to a preset strategy, and determines whether the electronic device needs to record video. When it is determined that the electronic device does not need to record video, turns off the video encoding function of the camera to put the camera into a sleep state. This achieves the goal of controlling the global positioning system to enter a sleep state or an intermittent sleep state when the electronic device is in a low-speed motion state, which can reduce the power consumption of the electronic device and is beneficial to extending the working time of the electronic device without charging or replacing the battery of the electronic device.

[0097] Furthermore, when the electronic device does not need to record video, controlling the camera to enter a sleep state can reduce the power consumption of the electronic device, which is conducive to extending the working time of the electronic device.

[0098] See also Figure 4 , which shows a flow chart of a method for reducing device power consumption provided by another embodiment of the present application. In a specific embodiment, the method for reducing device power consumption can be applied to electronic devices including a global positioning system (GPS). The following will take electronic devices as an example to Figure 4 The process shown is described in detail. The method for reducing device power consumption may include the following steps 410 to 430.

[0099] Step 410: When it is determined that the electronic device is in motion, obtain the motion speed of the electronic device.

[0100] Step 420: When the movement speed is less than or equal to the speed threshold, the global positioning system is controlled to enter a sleep state, or the global positioning system is controlled to perform intermittent sleep according to a preset strategy.

[0101] In this embodiment, step 410 and step 420 may refer to the contents of the corresponding steps in the aforementioned embodiment, and will not be repeated here.

[0102] Step 430: Control the communication module to switch the time interval for reporting data to the server from the first time interval to the second time interval.

[0103] In this embodiment, when the movement speed is less than or equal to the speed threshold, the electronic device controls the GPS to enter a sleep state, or controls the GPS to enter an intermittent sleep state according to a preset strategy, and then sends a switching instruction to the communication module. The communication module receives and responds to the switching instruction, switches the time interval for reporting data to the server from the first time interval to the second time interval, and increases the time interval for the electronic device to report data to the server, which can reduce the power consumption of the electronic device and help extend the working time of the electronic device.

[0104] Among them, the electronic device can also be configured with a communication module, and the communication module can be any one of the fourth generation mobile communication technology (4G) module, Bluetooth communication module, Wireless Fidelity (Wi-Fi) network communication module or infrared communication module, etc., which is not limited here.

[0105] The server is communicatively connected to the communication module and exchanges data with the communication module. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), big data or artificial intelligence platforms, etc., without limitation here.

[0106] The data may include at least any one of six-axis gyroscope data, GPS data, and video data, etc., which is not limited here.

[0107] The first time interval may be an initial configuration interval of the electronic device, and the first time interval may be smaller than the second time interval.

[0108] As an example, the first time interval may be 30 seconds, and the second time interval may be 5 minutes.

[0109] In one application scenario, the electronic device may include a GPS, a camera, and a communication module, such as Figure 5 As shown, the method for reducing device power consumption may include the following steps 501 to 510.

[0110] Step 501: Acquire six-axis gyroscope data collected by a six-axis gyroscope of an electronic device.

[0111] Step 502: Determine whether the electronic device is in motion based on the six-axis gyroscope data.

[0112] When it is determined that the electronic device is in motion, step 503 is executed;

[0113] When it is determined that the electronic device is in a stationary state, step 506 is executed.

[0114] Step 503: Obtain the movement speed of the electronic device.

[0115] Step 504: When the movement speed is less than or equal to the speed threshold, the GPS is controlled to enter a dormant state, or the GPS is controlled to perform intermittent dormancy according to a preset strategy.

[0116] Step 505: When the movement speed is greater than the speed threshold, the GPS is controlled to enter the working state.

[0117] Step 506: Control the GPS to enter a dormant state.

[0118] Step 507: Determine whether the electronic device needs to record a video.

[0119] When it is determined that the electronic device does not need to record video, step 508 is executed;

[0120] When it is determined that the electronic device needs to record a video, step 509 is executed.

[0121] Step 508: Turn off the video encoding function of the camera to put the camera into a dormant state.

[0122] Step 509: Turn on the video encoding function of the camera to enable the camera to start recording video.

[0123] Step 510: Control the communication module to switch the time interval for reporting data to the server from the first time interval to the second time interval.

[0124] The solution provided in this embodiment obtains the movement speed of the electronic device when it is determined that the electronic device is in motion, and when the movement speed is less than or equal to the speed threshold, controls the global positioning system to enter a sleep state, or controls the global positioning system to perform intermittent sleep according to a preset strategy, and turns off the encoding function of the camera when recording is not required, and at the same time controls the time interval for the communication module to report data to the server from the first time interval to the second time interval. This application reduces the power consumption of the electronic device in a variety of ways, which is beneficial to extending the working time of the electronic device without charging or replacing the battery of the electronic device.

[0125] See also Figure 6 , which shows a device 600 for reducing device power consumption provided by another embodiment of the present application. In a specific embodiment, the device 600 for reducing device power consumption can be applied to electronic devices including those equipped with GPS. The following will take electronic devices as an example to Figure 6 The apparatus 600 for reducing device power consumption is described in detail. The apparatus 600 for reducing device power consumption may include a first acquisition module 610 and a first control module 620 .

[0126] The first acquisition module 610 can be used to obtain the movement speed of the electronic device when it is determined that the electronic device is in motion; the first control module 620 can be used to control the global positioning system to enter a sleep state when the movement speed is less than or equal to a speed threshold, or control the global positioning system to perform intermittent sleep according to a preset strategy.

[0127] In some implementations, the apparatus 600 for reducing device power consumption may further include a second acquisition module and a first determination module.

[0128] The second acquisition module can be used to obtain the six-axis gyroscope data collected by the six-axis gyroscope of the electronic device before the first acquisition module 610 obtains the movement speed of the electronic device when it is determined that the electronic device is in a motion state; the first determination module can be used to determine whether the electronic device is in a motion state based on the six-axis gyroscope data.

[0129] In some embodiments, the first determining module may include a first determining unit and a second determining unit.

[0130] The first determination unit can be used to determine that the electronic device is in a stationary state when the sum of the angular velocities of the six-axis gyroscope data is less than the angular velocity threshold and the duration is greater than or equal to the duration threshold; the second determination unit can be used to determine that the electronic device is in a moving state when the sum of the angular velocities is greater than or equal to the angular velocity threshold, or the duration is less than the duration threshold.

[0131] In some implementations, the apparatus 600 for reducing device power consumption may further include a second control module.

[0132] The second control module may be configured to control the global positioning system to enter a dormant state when it is determined that the electronic device is in a stationary state.

[0133] In some implementations, the electronic device may further be configured with a communication module, and the apparatus 600 for reducing device power consumption may further include a third control module.

[0134] The third control module may be used to control the time interval for the communication module to report data to the server to switch from a first time interval to a second time interval, where the first time interval is smaller than the second time interval.

[0135] In some implementations, the first acquisition module 610 may further include an acquisition unit and a calculation unit.

[0136] The acquisition unit can be used to acquire the global positioning system coordinate changes within a preset time period when it is determined that the electronic device is in motion; the calculation unit can be used to calculate the motion speed based on the global positioning system coordinate changes and the preset time period.

[0137] In some implementations, the electronic device may further be configured with a camera, and the apparatus 600 for reducing device power consumption may further include a second determining module and a shutting down module.

[0138] The second determination module can be used to determine whether the electronic device needs to record video; the shutdown module can be used to turn off the video encoding function of the camera when it is determined that the electronic device does not need to record video, so that the camera enters a dormant state.

[0139] In some embodiments, the apparatus 600 for reducing device power consumption may further include a start-up module.

[0140] The enabling module can be used to enable the video encoding function of the camera when it is determined that the electronic device needs to record a video, so that the camera starts recording the video.

[0141] The solution provided in this embodiment obtains the movement speed of the electronic device when it is determined that the electronic device is in motion, and when the movement speed is less than or equal to a speed threshold, controls the global positioning system to enter a sleep state, or controls the global positioning system to perform intermittent sleep according to a preset strategy. This achieves the goal of controlling the global positioning system to enter a sleep state or an intermittent sleep state when the electronic device is in a low-speed motion state, which can reduce the power consumption of the electronic device and is beneficial for extending the working time of the electronic device without charging or replacing the battery of the electronic device.

[0142] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to in detail. For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiments. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated in detail in the device embodiment.

[0143] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0144] See also Figure 7 , which shows a functional block diagram of an electronic device 700 provided by an embodiment of the present application. The electronic device 700 may include one or more of the following components: a memory 710, a processor 720, and one or more applications, wherein the one or more applications may be stored in the memory 710 and configured to be executed by the one or more processors 720, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0145] The memory 710 may include a random access memory (RAM) or a read-only memory (ROM). The memory 710 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 710 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as determining whether the device is in motion, obtaining motion speed, controlling sleep mode, controlling intermittent sleep, obtaining six-axis gyroscope data, determining whether the device is in motion, determining whether the device is in a stationary state, obtaining global positioning system coordinate changes, calculating motion speed, determining whether video recording is required, determining whether video recording is not required, turning off the video encoding function, determining whether video recording is required, turning on the video encoding function, controlling video recording, reporting data, and switching time intervals, etc.), instructions for implementing the following various method embodiments, etc. The data storage area can also store data created by the electronic device 700 during use (such as global positioning system, electronic device, motion status, motion speed, speed threshold, sleep state, six-axis gyroscope, six-axis gyroscope data, sum of angular velocity, angular velocity threshold, duration, duration threshold, stationary state, preset time period, global positioning system coordinate changes, camera, video encoding function, communication module, server, first time interval and second time interval), etc.

[0146] The processor 720 may include one or more processing cores. The processor 720 utilizes various interfaces and circuits to connect various components within the electronic device 700. It executes instructions, programs, code sets, or instruction sets stored in the memory 710, and accesses data stored in the memory 710 to perform various functions and process data within the electronic device 700. Optionally, the processor 720 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 720 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 720 and may be implemented separately via a communication chip.

[0147] Please refer to Figure 8 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 800 stores program code 810, which can be called by a processor to execute the method described in the above method embodiment.

[0148] The computer-readable storage medium 800 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 for executing any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in a suitable form.

[0149] Please refer to Figure 9 , which shows a block diagram of the structure of a computer program product 900 provided in an embodiment of the present application. Computer program product 900 includes a computer program / instructions 910, which is stored in a computer-readable storage medium of a computer device. When computer program product 900 is executed on a computer device, the computer device's processor reads computer program / instructions 910 from the computer-readable storage medium and executes computer program / instructions 910, causing the computer device to perform the method described in the above method embodiment.

[0150] The solution provided in this embodiment obtains the movement speed of the electronic device when it is determined that the electronic device is in motion, and when the movement speed is less than or equal to a speed threshold, controls the global positioning system to enter a sleep state, or controls the global positioning system to perform intermittent sleep according to a preset strategy. This achieves the goal of controlling the global positioning system to enter a sleep state or an intermittent sleep state when the electronic device is in a low-speed motion state, which can reduce the power consumption of the electronic device and is beneficial for extending the working time of the electronic device without charging or replacing the battery of the electronic device.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for reducing power consumption of a device, characterized in that: Applied to an electronic device equipped with a global positioning system, the method includes: When it is determined that the electronic device is in motion, obtaining a motion speed of the electronic device; When the movement speed is less than or equal to a speed threshold, the global positioning system is controlled to enter a dormant state, or the global positioning system is controlled to perform intermittent dormancy according to a preset strategy.

2. The method according to claim 1, characterized in that When it is determined that the electronic device is in motion, before obtaining the motion speed of the electronic device, the method further includes: Acquiring six-axis gyroscope data collected by the six-axis gyroscope of the electronic device; Determine whether the electronic device is in the motion state according to the six-axis gyroscope data.

3. The method according to claim 2, characterized in that The determining whether the electronic device is in the motion state according to the six-axis gyroscope data includes: When the sum of the angular velocities of the six-axis gyroscope data is less than the angular velocity threshold for a duration greater than or equal to a duration threshold, determining that the electronic device is in a stationary state; When the sum of the angular velocities is greater than or equal to the angular velocity threshold, or the duration is less than the duration threshold, it is determined that the electronic device is in motion.

4. The method according to claim 1, wherein The method further comprises: When it is determined that the electronic device is in a stationary state, the global positioning system is controlled to enter a dormant state.

5. The method according to any one of claims 1 to 4, characterized in that The electronic device is further configured with a communication module, and the method further includes: The time interval for the communication module to report data to the server is controlled to switch from a first time interval to a second time interval, where the first time interval is shorter than the second time interval.

6. The method according to any one of claims 1 to 4, characterized in that When determining that the electronic device is in motion, obtaining the motion speed of the electronic device includes: When it is determined that the electronic device is in the motion state, obtaining a global positioning system coordinate change within a preset time period; The movement speed is calculated according to the global positioning system coordinate change and the preset time period.

7. The method according to any one of claims 1 to 4, characterized in that The electronic device is further configured with a camera, and the method further comprises: determining whether the electronic device needs to record a video; When it is determined that the electronic device does not need to record video, the video encoding function of the camera is turned off to put the camera into a dormant state.

8. The method according to claim 7, characterized in that The method further comprises: When it is determined that the electronic device needs to record a video, the video encoding function of the camera is turned on to enable the camera to start recording the video.

9. An electronic device, characterized in that: include: Memory; one or more processors coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 8.