Electronic equipment, control method and control device thereof and storage medium

By detecting the mode and target events of electronic devices and controlling the reporting status of SAR sensors, the high standby power consumption problem caused by frequent reporting events of SAR sensors in the airport scenario is solved, and lower energy consumption and higher energy efficiency performance are achieved.

CN119676355APending Publication Date: 2025-03-21VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411802424.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the waiting airport scene, SAR sensors frequently report events, causing the processor of electronic devices to be frequently awakened and increase standby power consumption.

Method used

By using a gyroscope sensor to detect the mode of the electronic device, and combining the data of the infrared proximity sensor, the target event is determined, and the SAR sensor reports a specific absorption rate state, thereby reducing the wake-up frequency of the processor.

Benefits of technology

It effectively reduces the standby power consumption of electronic devices, reduces the frequency of the processor being frequently waked up, and improves the energy efficiency performance of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676355A_ABST
    Figure CN119676355A_ABST
Patent Text Reader

Abstract

The invention discloses electronic equipment, a control method and device thereof and a storage medium, and belongs to the technical field of control. The control method of the electronic equipment comprises the following steps: acquiring acceleration data output by a gyroscope sensor; detecting a mode of the electronic equipment based on the acceleration data; when it is detected that the electronic equipment is in a first mode, first detection data output by the infrared proximity sensor are obtained, and the first mode is a mode that a user walks with the electronic equipment; determining a target event based on the first detection data; and controlling the reporting state of the specific absorption rate reported by the first sensor according to the target event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of control technology, and specifically relates to an electronic device and a control method, a control device and a storage medium thereof. Background Art

[0002] Specific Absorption Ratio (SAR) refers to the electromagnetic radiation energy absorbed by a unit mass of a substance per unit time. SAR values ​​are commonly used internationally to measure the thermal effect of terminal radiation.

[0003] In accordance with relevant regulations, smartphones are equipped with SAR sensors to detect the approach of a human body to determine whether the power of the phone needs to be reduced to ensure that the SAR value is within an acceptable safety range.

[0004] In the related technical solutions, the power consumption of the SAR sensor is relatively low. Therefore, the SAR sensor will always be in working state regardless of whether the mobile phone is in use or not. However, in some standby scenarios, such as walking with the mobile phone in your pocket, the SAR sensor will often touch the fabric of the pocket, especially when walking, going up and down stairs, or bending over. This contact and friction may cause the mobile phone to be constantly pushed and moved. For this scenario, the SAR sensor will report events intermittently. Frequent reporting of events will cause the processor of the electronic device to be frequently awakened, which will increase the standby power consumption of the electronic device. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide an electronic device and a control method, a control device and a storage medium thereof, which can solve the problem that in some standby scenarios, the SAR sensor frequently reports events, causing the processor of the electronic device to be frequently awakened, thereby increasing the standby power consumption of the electronic device.

[0006] In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, wherein the electronic device includes a first sensor, a gyroscope sensor, and an infrared proximity sensor, wherein the first sensor is used to measure a specific absorption rate and report the specific absorption rate, and the method for controlling the electronic device includes: obtaining acceleration data output by the gyroscope sensor; detecting a mode of the electronic device based on the acceleration data; when it is detected that the electronic device is in a first mode, obtaining first detection data output by the infrared proximity sensor, wherein the first mode is a mode in which a user walks with the electronic device; determining a target event based on the first detection data; and according to the target event, controlling the reporting status of the specific absorption rate reported by the first sensor.

[0007] In a second aspect, an embodiment of the present application provides a control device for an electronic device, wherein the electronic device includes a first sensor, a gyroscope sensor and an infrared proximity sensor, wherein the first sensor is used to measure the specific absorption rate and report the specific absorption rate, and the control device of the electronic device includes: a first acquisition module, used to acquire acceleration data output by the gyroscope sensor; a second acquisition module, used to detect the mode of the electronic device based on the acceleration data; a third acquisition module, used to acquire first detection data output by the infrared proximity sensor when it is detected that the electronic device is in the first mode, wherein the first mode is a mode in which a user walks with the electronic device; a determination module, used to determine a target event based on the first detection data; and a processing module, used to control the reporting status of the specific absorption rate reported by the first sensor according to the target event.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.

[0012] In an embodiment of the present application, a control method of an electronic device is proposed. In the control method of the electronic device, a gyroscope sensor can be used to detect the mode of the electronic device, and when it is identified that the mode of the electronic device is a mode in which the user carries the electronic device and walks, the target event determined by the first detection data output by the infrared proximity sensor is used to control the reporting state of the specific absorption rate reported by the first sensor. In this process, the gyroscope sensor and the infrared proximity sensor can be used to sense the state of the electronic device to determine whether there is a false touch, and then control whether the first sensor reports the specific absorption rate. Obviously, the first sensor does not always report the specific absorption rate, so the frequency of the processor of the electronic device being frequently awakened can be reduced, thereby reducing the standby power consumption of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1One of the flowcharts of the control method of the electronic device provided in the embodiment of the present application is shown;

[0014] Figure 2 A topological schematic diagram of an electronic device proposed in an embodiment of the present application is shown;

[0015] Figure 3 A second flow chart of the control method of the electronic device proposed in the embodiment of the present application is shown;

[0016] Figure 4 A schematic block diagram of a control device of an electronic device provided in an embodiment of the present application is shown;

[0017] Figure 5 is a schematic block diagram of an electronic device in an embodiment of the present application;

[0018] Figure 6 It is a schematic diagram of the hardware structure of the electronic device in the embodiment of the present application.

[0019] in, Figure 2 The corresponding relationship between the reference numerals and the component names is as follows:

[0020] 200 electronic device, 202 first sensor, 204 gyro sensor, 206 infrared proximity sensor, 208 wireless access point, Q switch tube. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly describe the embodiments in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0023] The electronic device and its control method, control device and storage medium provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0024] In one embodiment, if Figure 1 and Figure 2 As shown, a control method of an electronic device is proposed. The electronic device 200 includes a first sensor 202, a gyroscope sensor 204 and an infrared proximity sensor 206. The first sensor is used to measure the specific absorption rate and report the specific absorption rate. The control method of the electronic device includes:

[0025] Step 102: Acquire acceleration data output by the gyroscope sensor.

[0026] Step 104: Detect the mode of the electronic device based on the acceleration data.

[0027] Step 106 , when it is detected that the electronic device is in a first mode, first detection data output by the infrared proximity sensor is acquired, wherein the first mode is a mode in which a user carries the electronic device and walks.

[0028] Step 108: determining a target event based on the first detection data.

[0029] In this embodiment, the first detection data includes data output by the infrared proximity sensor at first time intervals.

[0030] The data output by the infrared proximity sensor is the measured infrared pulse count value, wherein the infrared pulse count value is used to estimate the distance between the infrared reflecting obstacle and the infrared proximity sensor, and then use the distance between the infrared reflecting obstacle and the infrared proximity sensor to determine the target event.

[0031] Step 110: Control the first sensor to report the specific absorption rate reporting state according to the target event.

[0032] In an embodiment of the present application, a control method of an electronic device is proposed. In the control method of the electronic device, a gyroscope sensor can be used to detect the mode of the electronic device, and when it is identified that the mode of the electronic device is a mode in which the user carries the electronic device and walks, the target event determined by the first detection data output by the infrared proximity sensor is used to control the reporting state of the specific absorption rate reported by the first sensor. In this process, the gyroscope sensor and the infrared proximity sensor can be used to sense the state of the electronic device to determine whether there is a false touch, and then control whether the first sensor reports the specific absorption rate. Obviously, the first sensor does not always report the specific absorption rate, so the frequency of the processor of the electronic device being frequently awakened can be reduced, thereby reducing the standby power consumption of the electronic device.

[0033] The reporting status includes prohibiting reporting and allowing reporting. Allowing the first sensor to report can be understood as sending a signaling to allow the sensor to report, or allowing the sensor to report all the time.

[0034] Specifically, Figure 2 As shown, the electronic device also includes a switch tube Q and a wireless access point 208, wherein the first sensor 202 is connected to the wireless access point 208 through the switch tube Q, and communicates based on a bidirectional two-wire synchronous serial bus (Inter-Integrated Circuit, I2C). When the first sensor 202 is prohibited from reporting the specific absorption rate, the connection between the first sensor 202 and the wireless access point 208 is cut off through the switch tube Q. When the first sensor 202 is allowed to report the specific absorption rate, the connection between the first sensor 202 and the wireless access point 208 is established through the switch tube Q.

[0035] In some embodiments of the present application, the first detection data includes data output by the infrared proximity sensor at first time intervals, and according to the target event, the reporting status of the first sensor reporting the specific absorption rate is controlled, specifically including: when the target event is a first event, determining the maximum data and the minimum data output by the infrared proximity sensor within a second time period according to the first detection data, and the second time period is greater than the first time period; determining the fluctuation value of the first detection data based on the difference between the maximum data and the minimum data; comparing the fluctuation value of the first detection data with the fluctuation threshold, and controlling the reporting status of the first sensor reporting the specific absorption rate according to the comparison result; when the target event is a second event, allowing the first sensor to report the specific absorption rate; wherein the first event is an event in which an obstacle is detected within a preset distance, and the second event is an event in which no obstacle is detected within the preset distance.

[0036] In this embodiment, if the first mode is detected, that is, when the mode in which the user is walking with the electronic device is detected, if the first sensor is directly prohibited from reporting the specific absorption rate, misjudgment may occur.

[0037] For example, after walking for a while, the user puts the electronic device upside down on the table. At this time, it is recognized that the cadence mode has been entered, that is, the first mode is detected, but the first detection data will be a relatively stable data. At this time, the first sensor will not frequently report events, which will cause the processor of the electronic device to be frequently awakened. Obviously, if the first sensor is directly prohibited from reporting the specific absorption rate, there will be misjudgment.

[0038] Based on this, after determining that the first pattern is detected, the fluctuation value of the first detection data is compared with the fluctuation threshold to further determine whether it belongs to the above situation.

[0039] In this process, the comparison result between the fluctuation value of the first detection data and the fluctuation threshold value can be further combined to control the first sensor to report the specific absorption rate, so as to improve the accuracy of prohibiting the first sensor from reporting the specific absorption rate.

[0040] For the second event, there is no need to prohibit the first sensor from reporting the specific absorption rate. At this time, the electronic device can be dynamically controlled according to the specific absorption rate reported by the sensor to meet relevant regulatory requirements.

[0041] In some embodiments of the present application, the fluctuation value of the first detection data is compared with the fluctuation threshold, and the reporting status of the first sensor reporting the specific absorption rate is controlled according to the comparison result, including: when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, prohibiting the first sensor from reporting the specific absorption rate; when the fluctuation value of the first detection data is less than the fluctuation threshold, allowing the first sensor to report the specific absorption rate.

[0042] In this embodiment, for the usage scenario where the user places the electronic device upside down on the table after walking for a while, the first detection data will be relatively stable data, because the entry into the cadence mode has been recognized, that is, the entry into the first mode has been detected, but considering that the user places the electronic device upside down on the table, there is no need to prohibit the first sensor from reporting the specific absorption rate.

[0043] For the scenario where the user puts the phone in his pocket and keeps walking, it is recognized that the user has entered the cadence mode, that is, when it is detected that the user has entered the first mode, the first detection data is an intermittent jittering data. Considering that the user puts the phone in his pocket and keeps walking, there is a possibility of false touch. Therefore, it is necessary to prohibit the first sensor from reporting the specific absorption rate.

[0044] In an embodiment of the present application, the two scenarios mentioned above are distinguished by whether the first detection data is jittering. For a scenario in which the user puts the mobile phone in a pocket and keeps walking, the first detection data is an intermittently jittering data. Therefore, when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, it is considered that the current scenario is a scenario in which the user puts the mobile phone in a pocket and keeps walking. At this time, the permission for the first sensor to report the specific absorption rate is canceled.

[0045] Meanwhile, when the fluctuation value of the first detection data is less than the fluctuation threshold, it is considered that the first detection data is relatively stable data, and the first sensor is allowed to report the specific absorption rate.

[0046] In this process, the probability of the first sensor erroneously reporting the specific absorption rate can be reduced without affecting the operation of the first sensor, thereby reducing the standby power consumption of the electronic device.

[0047] In some embodiments of the present application, after prohibiting the first sensor from reporting the specific absorption rate when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, the control method of the electronic device also includes: acquiring acceleration data output by the gyroscope sensor; detecting the mode of the electronic device based on the acceleration data; and permitting the first sensor to report the specific absorption rate when it is detected that the electronic device is in the second mode; wherein the second mode is a mode in which the electronic device stops moving.

[0048] In this embodiment, acceleration data is acquired to re-determine the mode of the electronic device, and when it is determined that the electronic device is in the second mode, permission for the first sensor to report the specific absorption rate is automatically restored.

[0049] In this embodiment, whether the sensor reports the specific absorption rate can be automatically controlled according to the scene in which the electronic device is located, thereby reducing the false reporting specific absorption rate of the first sensor and improving the reliability of the operation of the electronic device.

[0050] In some embodiments of the present application, after prohibiting the first sensor from reporting the specific absorption rate, the control method of the electronic device also includes: acquiring acceleration data output by the gyroscope sensor, and when the acceleration data detects that the mode of the electronic device is the first mode, acquiring first detection data output by the infrared proximity sensor; when it is determined that the target event is the first event based on the first detection data, and the fluctuation value of the updated first detection data is greater than or equal to the fluctuation threshold, maintaining the prohibition of the first sensor from reporting the first detection data output by the infrared proximity sensor.

[0051] In this embodiment, after prohibiting the first sensor from reporting the first detection data output by the infrared proximity sensor, it can be re-determined whether to maintain prohibiting the first sensor from reporting the specific absorption rate based on the acquired acceleration data and the first detection data.

[0052] In this process, the electronic device can always remain in the same false touch scenario, maintaining the prohibition of the first sensor from reporting the specific absorption rate, thereby reducing the frequency of waking up the electronic device in the standby mode, thereby reducing the standby power consumption of the electronic device.

[0053] In some embodiments of the present application, the acceleration data includes first data and second data, the first data is historical data output since the gyroscope sensor is started, and the second data is current data output by the gyroscope sensor. The mode of the electronic device is detected based on the acceleration data, including: determining the number of steps of the user based on the first data and the second data; determining that the electronic device is in the first mode when the second data is not zero and the number of steps of the user is greater than or equal to the first number threshold; determining that the electronic device is in the second mode when the second data is zero and the number of steps of the user is less than the first number threshold.

[0054] In this embodiment, acceleration data can be used to identify the mode of the electronic device. Specifically, whether the electronic device is in a moving state can be identified based on whether the acceleration data is zero, and the mode of the electronic device can be further determined based on whether it is in a moving state and the number of steps of the user determined by the acceleration data.

[0055] In this process, the scenario in which the first sensor is prohibited from reporting the specific absorption rate can be accurately identified, thereby reducing the probability of the electronic device being woken up by mistake, thereby reducing the standby power consumption of the electronic device.

[0056] In some embodiments of the present application, the preset distance is within 10 mm, and the detection distance of the infrared proximity sensor is within 8 cm.

[0057] Specifically, if the electronic device is placed in a pocket while walking, the first sensor will detect a gap of about 10 mm, thereby erroneously reporting the specific absorption rate.

[0058] Specifically, the possible scenarios of the electronic device include the following three states:

[0059] State 1: The working scenario in which the user holds an electronic device and normally reports moving away or approaching.

[0060] State 2: The user places the electronic device on the table (upside down or upright), and normally reports moving away or approaching.

[0061] State 3: The scenario where the user puts the electronic device in his pocket (walking and stopping), and reporting of moving away or approaching is prohibited.

[0062] For state one, when the user is walking or stopping while holding the electronic device, the acceleration data output by the gyroscope sensor is first called. If the acceleration is not 0 and the number of steps has begun to be accumulated, and the number of steps is greater than 20, it is determined that the cadence mode has been entered; otherwise, the cadence mode has not been entered, and the first sensor reports the event normally; when the cadence mode is entered, the first detection data output by the infrared proximity sensor is further obtained. If the first detection data is stable and no infrared proximity is reported, the first sensor still reports the event normally.

[0063] For state two, the user places the electronic device upright on the table, calls the acceleration data output by the gyroscope sensor, the acceleration is 0, it is not in cadence mode, and the first sensor reports events normally; the user puts the electronic device upside down on the table, calls the acceleration data output by the gyroscope sensor, the acceleration is 0, it is not in cadence mode, and the first sensor reports events normally; after walking for a while, the user places the electronic device upright on the table, and recognizes that it has entered the cadence mode. At this time, the first detection data output by the infrared proximity sensor is obtained. When the electronic device is upright, the first detection data is stable and does not detect approaching, and the first sensor reports events normally; after walking for a while, the user places the electronic device upside down on the table, and recognizes that it has entered the cadence mode. At this time, the first detection data output by the infrared proximity sensor is obtained. When the electronic device is upside down, the first detection data is stable and detects approaching, and the first sensor reports events normally.

[0064] For state three, the user puts the electronic device in his pocket and stands still, the acceleration is not 0, it is not in cadence mode, and the first sensor reports events normally; the user puts the electronic device in his pocket and keeps walking. If the acceleration is not 0 and the number of steps has started to accumulate, and the number of steps is greater than 20, it is judged that the cadence mode has been entered; at this time, the first detection data output by the infrared proximity sensor will be obtained, and based on the first detection data, an approach event is reported, that is, the first event, but there will be intermittent jitter, and the first sensor will be prohibited from reporting events normally; the user puts the electronic device in his pocket, keeps walking, and suddenly stops. At this time, the cadence mode has been entered. Based on the first detection data, an approach event is reported, that is, the first event. At this moment, the cadence mode is no longer satisfied, the acceleration is 0, and the number of steps is no longer accumulated. At this time, the prohibited state will be released, and the first sensor will report events normally; the user puts the electronic device in his pocket, keeps walking and stops, and then walks again. At this time, the cadence mode has been entered. Based on the first detection data, an approach event is reported, that is, the first event, and the first sensor will be prohibited from reporting events normally.

[0065] From the above, we can see that when walking, the distance between the electronic device and the pocket is not stable. Since the detection distance of the first sensor is limited, relying on the data of other sensors to optimize the scene does not affect the power consumption or the antenna performance.

[0066] In some embodiments of the present application, Figure 3 As shown, the control method of the electronic device includes:

[0067] Step 302, obtaining acceleration data.

[0068] When the acceleration data A>0 and the number of moving steps ≥20, step 304 is executed, and when the acceleration data A=0 and the number of moving steps does not change, step 306 is executed.

[0069] Among them, 20 is the first step number threshold.

[0070] Step 304, enter the cadence mode.

[0071] Among them, the cadence mode is also the first mode in this application.

[0072] Step 306: The first sensor reports an event.

[0073] When it is detected that the infrared is approaching, step 308 is executed, and when it is detected that the infrared is moving away, step 310 is executed.

[0074] Step 308: The first sensor is prohibited from reporting events.

[0075] Step 310: The first sensor reports an event.

[0076] When the acceleration data A=0 and the number of moving steps does not change, step 312 is executed. When the acceleration data A>0, the number of moving steps ≥20, and the infrared is close, step 314 is executed.

[0077] Step 312: The first sensor reports an event.

[0078] Step 314: The first sensor is prohibited from reporting events.

[0079] The electronic device control method provided in the embodiment of the present application can be executed by a control device of the electronic device. In the embodiment of the present application, the control device of the electronic device provided in the embodiment of the present application is described by taking the control device of the electronic device executing the electronic device control method as an example.

[0080] In some embodiments of the present application, Figure 4 As shown, a control device 400 of an electronic device is provided. The electronic device includes a first sensor, a gyroscope sensor and an infrared proximity sensor. The first sensor is used to measure the specific absorption rate and report the specific absorption rate. The control device 400 of the electronic device includes: a first acquisition module 402, used to acquire acceleration data output by the gyroscope sensor; a second acquisition module 404, used to detect the mode of the electronic device based on the acceleration data; a third acquisition module 406, used to acquire first detection data output by the infrared proximity sensor when it is detected that the electronic device is in the first mode, wherein the first mode is a mode in which a user walks with the electronic device; a determination module 408, used to determine a target event based on the first detection data; and a processing module 410, used to control the reporting state of the specific absorption rate reported by the first sensor according to the target event.

[0081] In some embodiments of the present application, the first detection data includes data output by the infrared proximity sensor at first time intervals, and the processing module 410 is specifically used to: when the target event is a first event, determine the maximum data and the minimum data output by the infrared proximity sensor within a second time interval according to the first detection data, and the second time interval is greater than the first time interval; determine the fluctuation value of the first detection data based on the difference between the maximum data and the minimum data; compare the fluctuation value of the first detection data with the fluctuation threshold, and control the reporting status of the first sensor reporting the specific absorption rate according to the comparison result; when the target event is a second event, allow the first sensor to report the specific absorption rate; wherein the first event is an event in which an obstacle is detected within a preset distance, and the second event is an event in which an obstacle is not detected within the preset distance.

[0082] In some embodiments of the present application, the processing module 410 is specifically used to: prohibit the first sensor from reporting the specific absorption rate when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold; and permit the first sensor to report the specific absorption rate when the fluctuation value of the first detection data is less than the fluctuation threshold.

[0083] In some embodiments of the present application, after prohibiting the first sensor from reporting the specific absorption rate when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, the processing module 410 is further used to: obtain acceleration data output by the gyroscope sensor; detect the mode of the electronic device based on the acceleration data; and permit the first sensor to report the specific absorption rate when it is detected that the electronic device is in the second mode; wherein the second mode is a mode in which the electronic device stops moving.

[0084] In some embodiments of the present application, the acceleration data includes first data and second data, the first data is historical data output since the gyroscope sensor is started, and the second data is current data output by the gyroscope sensor. The processing module 410 is specifically used to: determine the number of steps of the user based on the first data and the second data; when the second data is not zero and the number of steps of the user is greater than or equal to the first number threshold, determine that the electronic device is in the first mode; when the second data is zero and the number of steps of the user is less than the first number threshold, determine that the electronic device is in the second mode.

[0085] The control device 400 of the electronic device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0086] The control device 400 of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0087] The control device 400 of the electronic device provided in the embodiment of the present application can realize Figure 1 The various processes implemented by the control method embodiment of the electronic device can achieve the same technical effect. To avoid repetition, they will not be described here.

[0088] like Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 502 and a memory 504, wherein the memory 504 stores programs or instructions that can be executed on the processor 502, and when the program or instructions are executed by the processor 502, the various steps of the control method embodiment of the above-mentioned electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0089] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0090] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0091] like Figure 6As shown, the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610 and other components.

[0092] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0093] In some embodiments of the present application, the processor 610 is used to obtain acceleration data output by a gyroscope sensor; detect the mode of the electronic device based on the acceleration data; when it is detected that the electronic device is in a first mode, obtain first detection data output by an infrared proximity sensor, wherein the first mode is a mode in which a user walks with the electronic device; determine a target event based on the first detection data; and according to the target event, control the first sensor to report the reporting status of the specific absorption rate.

[0094] In some embodiments of the present application, the first detection data includes data output by the infrared proximity sensor at first time intervals, and the processor 610 is specifically used to determine, when the target event is a first event, the maximum data and the minimum data output by the infrared proximity sensor within a second time period according to the first detection data, and the second time period is greater than the first time period; determine the fluctuation value of the first detection data based on the difference between the maximum data and the minimum data; compare the fluctuation value of the first detection data with the fluctuation threshold, and control the reporting status of the first sensor reporting the specific absorption rate according to the comparison result; when the target event is a second event, allow the first sensor to report the specific absorption rate; wherein the first event is an event in which an obstacle is detected within a preset distance, and the second event is an event in which no obstacle is detected within the preset distance.

[0095] In some embodiments of the present application, the processor 610 is specifically used to prohibit the first sensor from reporting the specific absorption rate when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold; and to allow the first sensor to report the specific absorption rate when the fluctuation value of the first detection data is less than the fluctuation threshold.

[0096] In some embodiments of the present application, after prohibiting the first sensor from reporting the specific absorption rate when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, the processor 610 is further used to obtain acceleration data output by the gyroscope sensor; detect the mode of the electronic device based on the acceleration data; and permit the first sensor to report the specific absorption rate when it is detected that the electronic device is in the second mode; wherein the second mode is a mode in which the electronic device stops moving.

[0097] In some embodiments of the present application, the acceleration data includes first data and second data, the first data is historical data output since the gyroscope sensor is started, and the second data is current data output by the gyroscope sensor, and the processor 610 is used to determine the number of steps of the user based on the first data and the second data; when the second data is not zero and the number of steps of the user is greater than or equal to the first number threshold, it is determined that the electronic device is in the first mode; when the second data is zero and the number of steps of the user is less than the first number threshold, it is determined that the electronic device is in the second mode.

[0098] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0099] The memory 609 can be used to store software programs and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0100] The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.

[0101] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0102] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0103] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0104] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0105] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the electronic device as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0106] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "including one" do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the embodiments of the present application are essentially or partly contributed to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0108] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A control method for an electronic device, characterized in that: The electronic device comprises a first sensor, a gyroscope sensor and an infrared proximity sensor, the first sensor is used to measure a specific absorption rate and report the specific absorption rate, and the control method of the electronic device comprises: Acquiring acceleration data output by the gyro sensor; Detecting a mode of the electronic device based on the acceleration data; When it is detected that the electronic device is in a first mode, obtaining first detection data output by the infrared proximity sensor, wherein the first mode is a mode in which a user carries the electronic device and walks; determining a target event based on the first detection data; According to the target event, the first sensor is controlled to report a reporting status of the specific absorption rate.

2. The control method of the electronic device according to claim 1, characterized in that: The first detection data includes data output by the infrared proximity sensor at first time intervals, and the controlling the first sensor to report the reporting state of the specific absorption rate according to the target event includes: In a case where the target event is a first event, determining maximum data and minimum data output by the infrared proximity sensor within a second time period according to the first detection data, the second time period being greater than the first time period; Determine a fluctuation value of the first detection data based on a difference between the maximum data and the minimum data; comparing the fluctuation value of the first detection data with a fluctuation threshold, and controlling the first sensor to report the reporting state of the specific absorption rate according to the comparison result; When the target event is a second event, allowing the first sensor to report the specific absorption rate; The first event is an event in which an obstacle is detected within a preset distance, and the second event is an event in which an obstacle is not detected within the preset distance.

3. The control method of the electronic device according to claim 2, characterized in that: The comparing the fluctuation value of the first detection data with the fluctuation threshold, and controlling the first sensor to report the reporting state of the specific absorption rate according to the comparison result, includes: When the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, prohibiting the first sensor from reporting the specific absorption rate; When the fluctuation value of the first detection data is less than a fluctuation threshold, the first sensor is allowed to report the specific absorption rate.

4. The control method of the electronic device according to claim 3, characterized in that: After prohibiting the first sensor from reporting the specific absorption rate when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, the control method of the electronic device further includes: Acquiring acceleration data output by the gyro sensor; Detecting a mode of the electronic device based on the acceleration data; In a case where it is detected that the electronic device is in the second mode, allowing the first sensor to report the specific absorption rate; The second mode is a mode in which the electronic device stops moving.

5. The control method of an electronic device according to any one of claims 1 to 4, characterized in that: The acceleration data includes first data and second data, the first data is historical data outputted after the gyro sensor is started, and the second data is current data outputted by the gyro sensor, and the detecting the mode of the electronic device based on the acceleration data includes: determining the number of movement steps of the user based on the first data and the second data; When the second data is not zero and the number of movement steps of the user is greater than or equal to the first number threshold, determining that the electronic device is in the first mode; When the second data is zero and the number of movement steps of the user is less than the first number threshold, it is determined that the electronic device is in the second mode.

6. A control device for an electronic device, characterized in that: The electronic device comprises a first sensor, a gyroscope sensor and an infrared proximity sensor, the first sensor is used to measure a specific absorption rate and report the specific absorption rate, and the control device of the electronic device comprises: A first acquisition module, used to acquire acceleration data output by the gyroscope sensor; A second acquisition module, configured to detect a mode of the electronic device based on the acceleration data; A third acquisition module is used to acquire first detection data output by the infrared proximity sensor when it is detected that the electronic device is in a first mode, wherein the first mode is a mode in which a user carries the electronic device and walks; A determination module, configured to determine a target event based on the first detection data; A processing module is used to control the first sensor to report the reporting status of the specific absorption rate according to the target event.

7. The control device for an electronic device according to claim 6, characterized in that: The first detection data includes data output by the infrared proximity sensor at first time intervals, and the processing module is specifically used to: In a case where the target event is a first event, determining maximum data and minimum data output by the infrared proximity sensor within a second time period according to the first detection data, the second time period being greater than the first time period; Determine a fluctuation value of the first detection data based on a difference between the maximum data and the minimum data; comparing the fluctuation value of the first detection data with a fluctuation threshold, and controlling the first sensor to report the reporting state of the specific absorption rate according to the comparison result; When the target event is a second event, allowing the first sensor to report the specific absorption rate; The first event is an event in which an obstacle is detected within a preset distance, and the second event is an event in which an obstacle is not detected within the preset distance.

8. The control device for electronic equipment according to claim 7, characterized in that: The processing module is specifically used for: When the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, prohibiting the first sensor from reporting the specific absorption rate; When the fluctuation value of the first detection data is less than a fluctuation threshold, the first sensor is allowed to report the specific absorption rate.

9. The control device for an electronic device according to claim 8, characterized in that: After prohibiting the first sensor from reporting the specific absorption rate when the fluctuation value of the first detection data is greater than or equal to the fluctuation threshold, the processing module is further used to: Acquiring acceleration data output by the gyro sensor; Detecting a mode of the electronic device based on the acceleration data; In a case where it is detected that the electronic device is in the second mode, allowing the first sensor to report the specific absorption rate; The second mode is a mode in which the electronic device stops moving.

10. The control device of the electronic device according to any one of claims 6 to 9, characterized in that: The acceleration data includes first data and second data, the first data is historical data outputted after the gyro sensor is started, and the second data is current data outputted by the gyro sensor, and the processing module is specifically used for: determining the number of movement steps of the user based on the first data and the second data; When the second data is not zero and the number of movement steps of the user is greater than or equal to the first number threshold, determining that the electronic device is in the first mode; When the second data is zero and the number of movement steps of the user is less than the first number threshold, it is determined that the electronic device is in the second mode.

11. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device as claimed in any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device as claimed in any one of claims 1 to 5 are implemented.