Detailed Description
The principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
An execution main body of the power adjustment method may be the power adjustment device provided in the embodiment of the present application, or an electronic device integrated with the power adjustment device, where the power adjustment device may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a Personal Digital Assistant (PDA), or the like.
The following is a detailed description of the analysis.
An embodiment of the present application provides a power adjustment method, as shown in fig. 1, where fig. 1 is a schematic flow chart of the power adjustment method provided in the embodiment of the present application, and a flow of the power adjustment method may include:
101. and when the fact that the distance between the human body and the electronic equipment is smaller than a preset distance threshold value is detected, obtaining the features of the body part closest to the human body and the electronic equipment.
The features of the body part may be features of the face, limbs, and the like of the human body. For example, the facial features of the human face may be facial features, such as eyebrows, eyes, nose, mouth, chin, etc. For another example, the shape of the limbs of the human body may be the shape of the hand, specifically, the shape of the shoulder, elbow, wrist, or finger. For another example, the head may be a human head, for example, an ear.
The preset distance threshold may have a plurality of obtaining modes. For example, in some embodiments, the preset distance threshold may be preset and then stored in the electronic device. And when the distance between the human body and the electronic equipment is acquired, acquiring the preset distance threshold from the electronic equipment. For another example, in some embodiments, the preset distance threshold may be stored in the server.
The electronic equipment can acquire the distance between the human body and the electronic equipment in real time by calling the sensor. When the distance is smaller than the preset distance threshold, it can be judged that the power adjustment state needs to be entered. Then, the electronic device can acquire the features of the body part of the human body closest to the electronic device through the sensor assembly.
For example, when the user is in a scene of a call to be answered, the electronic device may determine that the power needs to be adjusted currently when a sensor of the electronic device obtains that a distance between the head of the user and the electronic device is within a preset threshold range. Then, a sensor of the electronic device may acquire a feature of the head closest to the electronic device.
In some embodiments, the step of "obtaining a feature of a body part closest to the electronic device when it is detected that the distance between the human body and the electronic device is smaller than a preset distance threshold", may include:
projecting structured light to the human body through a structured light sensor to detect a distance between the human body and the electronic device;
and when the distance is smaller than a preset distance threshold value, acquiring the characteristics of the body part closest to the electronic equipment between the human body and the electronic equipment according to the reflection characteristics of the structured light.
There are various ways to obtain the features of the body part closest to the electronic device from the reflection characteristics of the structured light. For example, in some embodiments, when structured light is projected onto a body part of a human body, the structured light is modulated by the body part. The structured light sensor obtains a characteristic image of the body part by receiving the modulated structured light. And processing the characteristic image to obtain the characteristics of the body part.
It should be noted that the electronic device may include a structured light sensor. The structured light sensor included in the electronic device may be a structured light assembly, and the structured light assembly may utilize optical characteristics of structured light to measure a distance, obtain an appearance feature of an object, and the like. In some embodiments, the structured light assembly may include a structured light projector, a structured light camera, a light supplement lamp, and the like. For example, the structured light may be projected to the body part by a structured light projector, and then the structured light camera obtains a characteristic image of the body part based on a reflection characteristic of the structured light.
For example, in some embodiments, the electronic device may project structured light through a structured light projector toward the user's head when in a scene where the user is ready to answer a call. The structured light is then modulated by the body part, and the structured light camera can receive the modulated structured light reflected by the head to obtain the distance between the human body and the electronic device. Then, when the distance is smaller than the preset distance threshold and the distance is reduced, a characteristic image of the head can be obtained based on the modulated structured light reflected by the head. The characteristic image is processed to obtain the characteristics of the head of the user.
In some embodiments, the step of "obtaining a feature of a body part closest to the electronic device according to a reflection characteristic of the structured light when the distance is smaller than a preset distance threshold", may include:
when the distance is smaller than a preset distance threshold value, judging whether the distance is reduced;
when the distance is reduced, the features of the body part closest to the electronic device are obtained according to the reflection characteristics of the structured light.
The electronic equipment can acquire the distance between the human body and the electronic equipment in real time by calling the sensor. When the distance is less than a preset distance threshold, it may be determined whether the distance is decreasing. When it is determined that the distance is gradually decreasing, it may be determined that the human body is approaching the electronic apparatus or that the electronic apparatus is approaching the human body. Then, the electronic device can acquire the features of the body part of the human body closest to the electronic device through the sensor assembly.
For example, when the user is in a scene of preparing to answer a call, the sensor of the electronic device may determine whether the distance between the head of the user and the electronic device is reduced when the sensor of the electronic device obtains that the distance is within a preset threshold range. When the distance is gradually decreasing, it can be determined that the human body and the electronic device are approaching each other, and then the electronic device can determine that the power needs to be adjusted currently. Then, a sensor of the electronic device may acquire a feature of the head closest to the electronic device.
102. A target attribute of the body part is determined based on the feature.
There are various manifestations of the attributes of a body part. For example, in some embodiments, the attribute of the body part may be a name of the body part. For example, it may be a head, a hand, etc. Also for example, eyes, nose, ears, mouth, etc. The specific setting can be according to the reality.
There are various ways to determine the target property of the body part based on the characteristic. For example, whether the feature matches a preset human body feature may be determined, and then the attribute of the preset human body feature matching the feature may be determined as the target attribute of the body part. In some embodiments, the step of "determining a target property of the body part from the feature" may comprise:
sequentially judging whether the characteristic is matched with one preset human body characteristic in a plurality of preset human body characteristics;
when the characteristic is matched with one preset human body characteristic, determining the attribute of the preset human body characteristic matched with the characteristic as the target attribute of the body part.
The preset human body characteristic can be a preset characteristic of a body part of a human body. For example, the preset features may be the face, the limbs, and the like of the human body. For example, the preset features of the face of the human body may include preset features of eyes, nose, mouth and the like. For another example, the preset features of the hand of the human body may include preset features of finger joints, fingerprints, finger lengths, and the like. The specific setting can be carried out according to the actual situation.
In some embodiments, the electronic device may obtain a plurality of preset body features before sequentially determining whether the features match one of the plurality of preset body features. The preset human body features included in the electronic device may be pre-stored in the electronic device, or may be obtained from the outside of the electronic device when the electronic device needs to be matched. For example, the preset human body characteristics may be acquired from a server.
In some embodiments, the electronic device may include a mapping relationship between preset body features and attributes. The mapping relationship may be preset. For example, when the preset human body feature is a preset feature of the head, the corresponding attribute may be set to the head. For another example, when the preset human body feature is a preset feature of a hand, the corresponding attribute may be set to the hand.
For example, when in a scenario where a user is ready to answer a call, a sensor of the electronic device may acquire a feature of the head that is closest to the electronic device. Then, the electronic device obtains a plurality of preset human body features, and the features of the head are matched with the preset human body features, so that the matching of the features with the preset features of the head in the preset human body features can be obtained. Then, the attribute corresponding to the preset feature of the head is used as the head, and the target attribute corresponding to the feature can be determined as the head.
103. And determining target transmission power according to the target attribute and the distance, wherein when the electronic equipment transmits a wireless signal at the target transmission power, the specific absorption rate of the electronic equipment to the electromagnetic waves of the body part is smaller than a preset value.
There are various ways to determine the target transmit power according to the target attribute and the distance. In some embodiments, the electronic device may obtain a mapping relationship between the attribute, the distance, and the transmission power, and then determine a target transmission power of the electronic device according to the mapping relationship through the target attribute and the distance. The step of determining the target transmission power according to the target attribute and the distance may include:
acquiring a preset mapping relation, wherein the preset mapping relation comprises the corresponding relation among the attribute, the distance and the transmitting power of the body part;
and determining the target attribute and the target transmitting power corresponding to the distance based on the preset mapping relation.
It should be noted that Specific Absorption Rate (SAR) means that an induced electromagnetic field is generated in a human body under the action of an external electromagnetic field. Since various organs of the human body are lossy media, the electromagnetic field in the body will generate electric currents, resulting in absorption and dissipation of electromagnetic energy. SAR is commonly used to characterize this physical process. SAR means the electromagnetic power absorbed or consumed by a unit mass of human tissue, in W/kg. The SAR value may represent the effect on the human body of electromagnetic radiation generated when the electronic device transmits the antenna signal. When the SAR value is smaller, the influence of electromagnetic radiation on the human body is smaller.
The preset value can be set according to the electromagnetic wave specific absorption rate test standards corresponding to different body parts. For example, when the body part is a head, the preset value may be correspondingly set to "2.0W/Kg". For another example, when the body part is a hand, the preset value may be set to "1.6W/Kg". The setting can be specifically carried out according to actual requirements.
The preset mapping relationship may have a plurality of expression forms. For example, in some embodiments, the preset mapping relationship may be a Look-up Table (LUT). For another example, the preset mapping relationship may be a table in a database. The setting can be specifically carried out according to actual requirements.
The preset mapping relationship may have a plurality of setting modes. For example, the preset mapping relationship may be set in advance. For another example, the preset mapping relationship may be established by testing the wireless signal transmission power of the electronic device and then according to the transmission power of each body part at different distances and the attributes of the body part. In some embodiments, before detecting that the distance between the human body and the electronic device is smaller than a preset distance threshold, the method may further include:
based on the attributes of a plurality of body parts, carrying out wireless signal transmission power test on the electronic equipment to obtain the transmission power of the electronic equipment when the distance between the electronic equipment and each body part is different;
and establishing the preset mapping relation according to the attributes of the plurality of body parts and the transmitting power of the electronic equipment when the distance between the electronic equipment and each body part is different.
The wireless signal transmission power test for the electronic equipment can be carried out in various modes. For example, in some embodiments, radiation values generated by the electronic device received by each body part at different distances may be obtained. The wireless signal transmitting power of the electronic equipment is tested by detecting whether the radiation value meets the SAR (Specific Absorption Rate) test standard or not, so that the electromagnetic radiation does not influence the body health of a user when the user uses the electronic equipment. Wherein, the Specific Absorption Rate (SAR) test standard can be set according to actual requirements.
It should be noted that the electronic device may include an antenna module. The antenna module included in the electronic device can be used for signal radiation and radiating antenna signal transmission power of the electronic device to a space.
For example, the electronic device may include an antenna module. By detecting the electromagnetic radiation value generated when the antenna module transmits signals, the maximum transmission power of the antenna module can be obtained when the distance between the antenna module and the body part is a certain distance and the electromagnetic radiation value meets the SAR (Specific Absorption Rate) test standard. Then, an LUT table may be formed according to the attribute of the body part and the maximum transmission power of the antenna module that meets the SAR test standard at different distances from the body part, so as to be searched and called by the electronic device when adjusting power.
Therefore, the wireless signal transmission power of the electronic equipment at different distances from the body part is detected based on the electromagnetic Specific Absorption Rate (SAR) test standard, and the transmission power of the electronic equipment meeting the SAR test standard at different distances from the body part can be acquired. The current transmitting power of the electronic equipment is adjusted based on the transmitting power, and the electromagnetic radiation can not affect the body health of the user when the user uses the electronic equipment.
104. And adjusting the wireless signal transmission power of the electronic equipment to the target transmission power.
It should be noted that the electronic device may include a power control module. The power control module included in the electronic device may be configured to detect a current transmit power and adjust the current transmit power. The power control module may include a power detection module and a gain adjustment module. The power detection module may include a coupler. In some embodiments, the output power may be conducted through the coupler coupling to confirm the output value of the antenna signal transmission power of the present electronic device. The gain adjustment module may adjust a transmit link gain value of the electronic device based on the target transmit power to achieve the adjustment of the power.
For example, in some embodiments, after the target transmission power of the electronic device is obtained, the wireless signal transmission power of the current electronic device may be obtained through the power detection module. When the wireless signal transmitting power is judged not to be equal to the target transmitting power, the gain value of the transmitting link of the electronic equipment is adjusted through the gain adjusting module, so that the power is adjusted, and the influence of the radiation value received by a user when the user uses the electronic equipment on a human body is in a safe range.
Therefore, the embodiment of the application provides a power adjustment method, and when it is detected that a distance between a human body and an electronic device is smaller than a preset distance threshold, characteristics of a body part closest to the human body and the electronic device are acquired; determining a target attribute of the body part from the features; determining target transmission power according to the target attribute and the distance, wherein when the electronic equipment transmits a wireless signal at the target transmission power, the specific absorption rate of the electronic equipment to the electromagnetic waves of the body part is smaller than a preset value; and adjusting the wireless signal transmission power of the electronic equipment to the target transmission power. Because the power of the electronic equipment transmitting signal can be adjusted according to the characteristics of the body part and the distance between the electronic equipment and the human body, the power can be adjusted more flexibly and effectively.
The method described in the above embodiments is further illustrated in detail by way of example.
Referring to fig. 2, fig. 2 is another flow chart of a power adjustment method according to an embodiment of the present disclosure, where the power adjustment method includes:
201. and projecting the structured light to the human body through the structured light sensor so as to detect the distance between the human body and the electronic equipment.
Wherein the electronic device may comprise a structured light sensor. The structured light sensor may be a structured light assembly that may utilize optical properties of structured light to measure distances, obtain topographical features of an object, and the like. In some embodiments, the structured light assembly may include a structured light projector, a structured light camera, a light supplement lamp, and the like.
For example, the electronic device may project structured light to a user through a structured light projector. The structured light is then modulated by the body part, and the structured light camera can receive the modulated structured light reflected by the head to obtain the distance between the human body and the electronic device.
202. And when the distance is smaller than a preset distance threshold value, acquiring the characteristics of the body part closest to the electronic equipment between the human body and the electronic equipment according to the reflection characteristics of the structured light.
There are various ways to obtain the features of the body part closest to the electronic device from the reflection characteristics of the structured light. For example, in some embodiments, when structured light is projected onto a body part of a human body, the structured light is modulated by the body part. The structured light sensor obtains a characteristic image of the body part by receiving the modulated structured light. And processing the characteristic image to obtain the characteristics of the body part.
In some embodiments, when the distance is less than a preset distance threshold, determining whether the distance is decreased; when the distance is reduced, the features of the body part closest to the electronic device are obtained according to the reflection characteristics of the structured light.
For example, when the distance is smaller than a preset distance threshold, it is determined whether the distance is decreased. When the distance is reduced, a characteristic image of the head may be obtained based on the modulated structured light reflected by the head of the user. The characteristic image is processed to obtain the characteristics of the head of the user.
203. And sequentially judging whether the characteristic is matched with one preset human body characteristic in a plurality of preset human body characteristics.
The preset human body characteristic can be a preset characteristic of a body part of a human body. For example, the preset features may be the face, the limbs, and the like of the human body. For example, the preset features of the face of the human body may include preset features of eyes, nose, mouth and the like. For another example, the preset features of the hand of the human body may include preset features of finger joints, fingerprints, finger lengths, and the like. The specific setting can be carried out according to the actual situation.
In some embodiments, the electronic device may obtain a plurality of preset body features before sequentially determining whether the features match one of the plurality of preset body features. The preset human body features included in the electronic device may be pre-stored in the electronic device, or may be obtained from the outside of the electronic device when the electronic device needs to be matched. For example, the preset human body characteristics may be acquired from a server.
204. When the characteristic is matched with one preset human body characteristic, determining the attribute of the preset human body characteristic matched with the characteristic as the target attribute of the body part.
In some embodiments, the electronic device may include a mapping relationship between preset body features and attributes. The mapping relationship may be preset. For example, when the preset human body feature is a preset feature of the head, the corresponding attribute may be set to the head. For another example, when the preset human body feature is a preset feature of a hand, the corresponding attribute may be set to the hand.
For example, a sensor of the electronic device may acquire a feature of the head closest to the electronic device. Then, the electronic device obtains a plurality of preset human body features, and the features of the head are matched with the preset human body features, so that the matching of the features with the preset features of the head in the preset human body features can be obtained. Then, the attribute corresponding to the preset feature of the head is used as the head, and the target attribute corresponding to the feature can be determined as the head.
205. And acquiring a preset mapping relation, wherein the preset mapping relation comprises the corresponding relation among the attribute, the distance and the transmitting power of the body part.
The preset mapping relationship may have a plurality of expression forms. For example, in some embodiments, the preset mapping relationship may be a Look-up Table (LUT). For another example, the preset mapping relationship may be a table in a database. The setting can be specifically carried out according to actual requirements.
The preset mapping relationship may have a plurality of setting modes. For example, the preset mapping relationship may be set in advance. For another example, the preset mapping relationship may be established by testing the wireless signal transmission power of the electronic device and then according to the transmission power of each body part at different distances and the attributes of the body part. In some embodiments, before detecting that the distance between the human body and the electronic device is smaller than a preset distance threshold, the method may further include:
based on the attributes of a plurality of body parts, carrying out wireless signal transmission power test on the electronic equipment to obtain the transmission power of the electronic equipment when the distance between the electronic equipment and each body part is different;
and establishing the preset mapping relation according to the attributes of the plurality of body parts and the transmitting power of the electronic equipment when the distance between the electronic equipment and each body part is different.
The wireless signal transmission power test for the electronic equipment can be carried out in various modes. In some embodiments, radiation values generated by the electronic device received by each body part at different distances may be obtained. The wireless signal emission power of the electronic equipment is tested by detecting whether the radiation value meets the test standard of Specific Absorption Rate (SAR) so as to ensure that the electromagnetic radiation does not influence users when the electronic equipment is used.
206. And determining the target attribute and the target transmitting power corresponding to the distance based on the preset mapping relation.
207. And adjusting the wireless signal transmission power of the electronic equipment to the target transmission power.
Wherein the electronic device may include a power control module. The power control module included in the electronic device may be configured to detect a current transmit power and adjust the current transmit power. The power control module may include a power detection module and a gain adjustment module. The power detection module may include a coupler. In some embodiments, the output power may be conducted through the coupler coupling to confirm the output value of the antenna signal transmission power of the present electronic device. The gain adjustment module may adjust a transmit link gain value of the electronic device based on the target transmit power to achieve the adjustment of the power.
For example, after the target transmission power of the electronic device is obtained, the wireless signal transmission power of the current electronic device may be obtained through the power detection module. When the wireless signal transmitting power is judged not to be equal to the target transmitting power, the gain value of the transmitting link of the electronic equipment is adjusted through the gain adjusting module, so that the power is adjusted, and the influence of the radiation value received by a user when the user uses the electronic equipment on a human body is in a safe range.
Therefore, in the power adjustment method provided by the embodiment of the application, the structured light is projected to the human body through the structured light sensor to detect the distance between the human body and the electronic device; when the distance is smaller than a preset distance threshold, acquiring the characteristics of the body part closest to the electronic equipment between the human body and the electronic equipment according to the reflection characteristics of the structured light; sequentially judging whether the characteristic is matched with one preset human body characteristic in a plurality of preset human body characteristics; when the characteristic is matched with one preset human body characteristic, determining the attribute of the preset human body characteristic matched with the characteristic as the target attribute of the body part; acquiring a preset mapping relation, wherein the preset mapping relation comprises the corresponding relation among the attribute, the distance and the transmitting power of the body part; determining the target attribute and the target transmitting power corresponding to the distance based on the preset mapping relation; and adjusting the wireless signal transmission power of the electronic equipment to the target transmission power. Because the power can be adjusted according to the characteristics of the body part and the distance between the electronic equipment and the human body, the power of the antenna signal transmitted by the electronic equipment can be adjusted more flexibly and effectively.
In order to better implement the power adjustment method provided by the embodiment of the present application, an embodiment of the present application further provides a device based on the power adjustment method. The terms are the same as those in the above power adjustment method, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a power adjustment apparatus 300 according to an embodiment of the present disclosure. Specifically, the power adjustment apparatus 300 includes: a detection module 301, an attribute determination module 302, a power determination module 303, and a power control module 304.
The detecting module 301 is configured to, when it is detected that a distance between a human body and an electronic device is smaller than a preset distance threshold, obtain a feature of a body part closest to the human body and the electronic device.
In some embodiments, the detection module 301 is specifically configured to: projecting structured light to the human body through a structured light sensor to detect a distance between the human body and the electronic device; and when the distance is smaller than a preset distance threshold value, acquiring the characteristics of the body part closest to the electronic equipment between the human body and the electronic equipment according to the reflection characteristics of the structured light.
In some embodiments, the detection module 301 is specifically configured to: when the distance is smaller than a preset distance threshold value, judging whether the distance is reduced; when the distance is reduced, the features of the body part closest to the electronic device are obtained according to the reflection characteristics of the structured light.
The detection module 301 may invoke a structured light assembly, which may utilize optical characteristics of structured light to measure distance, obtain appearance characteristics of an object, and the like. In some embodiments, the structured light assembly may include a structured light projector, a structured light camera, a light supplement lamp, and the like. For example, the detection module 301 may project the structured light to the body part by invoking a structured light projector, and then the structured light camera obtains the feature image of the body part based on the reflection characteristics of the structured light.
An attribute determination module 302 for determining a target attribute of the body part based on the feature.
In some embodiments, the attribute determining module 302 is specifically configured to: sequentially judging whether the characteristic is matched with one preset human body characteristic in a plurality of preset human body characteristics; when the characteristic is matched with one preset human body characteristic, determining the attribute of the preset human body characteristic matched with the characteristic as the target attribute of the body part.
Wherein, the attribute determining module 302 may acquire, through a sensor of the electronic device, a feature of a body part closest to the electronic device. Then, the electronic device obtains a plurality of preset human body features, and the matching of the features of the body part with one of the preset human body features can be obtained by matching the features of the body part with the plurality of preset human body features. And then, according to the attribute corresponding to the preset feature, the target attribute corresponding to the feature can be determined.
A power determining module 303, configured to determine a target transmission power according to the target attribute and the distance, where when the electronic device transmits a wireless signal at the target transmission power, a specific absorption rate of electromagnetic waves of the electronic device to the body part is smaller than a preset value.
In some embodiments, the power determining module 303 is specifically configured to: acquiring a preset mapping relation, wherein the preset mapping relation comprises the corresponding relation among the attribute, the distance and the transmitting power of the body part; and determining the target attribute and the target transmitting power corresponding to the distance based on the preset mapping relation.
In some embodiments, referring to fig. 4, the power adjusting apparatus further includes: a testing module 305, a building module 306, wherein:
a testing module 305, configured to perform a wireless signal transmission power test on the electronic device based on attributes of a plurality of body parts, so as to obtain a transmission power of the electronic device at different distances from each of the body parts;
the building module 306 is configured to build the preset mapping relationship according to the attributes of the plurality of body parts and the transmission power of the electronic device when the distance between the electronic device and each of the body parts is different.
The test module 305 may obtain radiation values generated by the electronic device received by each body part at different distances. The wireless signal emission power of the electronic equipment is tested by detecting whether the radiation value meets the test standard of Specific Absorption Rate (SAR) so as to ensure that the electromagnetic radiation does not influence users when the electronic equipment is used.
A power control module 304, configured to adjust the wireless signal transmission power of the electronic device to the target transmission power.
After obtaining the target transmission power of the electronic device, the power control module 304 may obtain the wireless signal transmission power of the current electronic device. When the wireless signal transmitting power is judged not to be equal to the target transmitting power, the power is adjusted by adjusting the gain value of the transmitting link of the electronic equipment, so that the influence of the radiation value received by a user when the user uses the electronic equipment on a human body is in a safe range.
Therefore, in the power adjustment apparatus provided in the embodiment of the present application, when it is detected that the distance between the human body and the electronic device is smaller than the preset distance threshold, the detection module 301 may acquire the feature of the body part closest to the electronic device; the attribute determination module 302 determines a target attribute of the body part according to the feature; the power determining module 303 determines a target transmitting power according to the target attribute and the distance, and when the electronic device transmits a wireless signal at the target transmitting power, the specific absorption rate of the electronic device to the electromagnetic wave of the body part is smaller than a preset value; the power control module 304 adjusts the wireless signal transmission power of the electronic device to the target transmission power. Because the power can be adjusted according to the characteristics of the body part and the distance between the electronic equipment and the human body, the power of the signal transmitted by the electronic equipment can be adjusted more flexibly and effectively.
The embodiment of the application also provides an electronic device 400. Referring to fig. 5, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 400 by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402, and processes the data, thereby performing overall monitoring of the electronic device 400.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows: when the fact that the distance between a human body and the electronic equipment is smaller than a preset distance threshold value is detected, obtaining the features of a body part closest to the human body and the electronic equipment; determining a target attribute of the body part from the features; determining target transmission power according to the target attribute and the distance, wherein when the electronic equipment transmits a wireless signal at the target transmission power, the specific absorption rate of the electronic equipment to the electromagnetic waves of the body part is smaller than a preset value; and adjusting the wireless signal transmission power of the electronic equipment to the target transmission power.
In some embodiments, when determining the target transmit power according to the target attribute and the distance, the processor 401 may specifically perform: acquiring a preset mapping relation, wherein the preset mapping relation comprises the corresponding relation among the attribute, the distance and the transmitting power of the body part; and determining the target attribute and the target transmitting power corresponding to the distance based on the preset mapping relation.
In some embodiments, before detecting that the distance between the human body and the electronic device is smaller than the preset distance threshold, the processor 401 may specifically perform:
based on the attributes of a plurality of body parts, carrying out wireless signal transmission power test on the electronic equipment to obtain the transmission power of the electronic equipment when the distance between the electronic equipment and each body part is different; and establishing the preset mapping relation according to the attributes of the plurality of body parts and the transmitting power of the electronic equipment when the distance between the electronic equipment and each body part is different.
In some embodiments, when it is detected that the distance between the human body and the electronic device is smaller than a preset distance threshold, and when the feature of the body part closest to the human body and the electronic device is acquired, the processor 401 may specifically perform: projecting structured light to the human body through a structured light sensor to detect a distance between the human body and the electronic device; and when the distance is smaller than a preset distance threshold value, acquiring the characteristics of the body part closest to the electronic equipment between the human body and the electronic equipment according to the reflection characteristics of the structured light.
In some embodiments, when the distance is smaller than a preset distance threshold, and the feature of the body part closest to the human body and the electronic device is obtained according to the reflection characteristic of the structured light, the processor 401 may specifically perform: when the distance is smaller than a preset distance threshold value, judging whether the distance is reduced; when the distance is reduced, the features of the body part closest to the electronic device are obtained according to the reflection characteristics of the structured light.
In some embodiments, when determining the target property of the body part from the feature, processor 401 may specifically perform: sequentially judging whether the characteristic is matched with one preset human body characteristic in a plurality of preset human body characteristics; when the characteristic is matched with one preset human body characteristic, determining the attribute of the preset human body characteristic matched with the characteristic as the target attribute of the body part.
As can be seen from the above, when the electronic device detects that the distance between the human body and the electronic device is smaller than the preset distance threshold, the electronic device of the embodiment of the application acquires the features of the body part closest to the human body and the electronic device; determining a target attribute of the body part from the features; determining target transmission power according to the target attribute and the distance, wherein when the electronic equipment transmits a wireless signal at the target transmission power, the specific absorption rate of the electronic equipment to the electromagnetic waves of the body part is smaller than a preset value; and adjusting the wireless signal transmission power of the electronic equipment to the target transmission power. Because the power can be adjusted according to the characteristics of the body part and the distance between the electronic equipment and the human body, the power of the electronic equipment for transmitting the wireless signals can be adjusted more flexibly and effectively.
Referring to fig. 6, in some embodiments, the electronic device 400 may further include: a display 403, radio frequency circuitry 404, audio circuitry 405, and a power supply 406. The display 403, the rf circuit 404, the audio circuit 405, and the power source 406 are electrically connected to the processor 401.
The display 403 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 403 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 405 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 406 may be used to power various components of the electronic device 400. In some embodiments, power supply 406 may be logically coupled to processor 401 via a power management system, such that functions to manage charging, discharging, and power consumption management are performed via the power management system.
Although not shown in fig. 6, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
The embodiment of the application also provides a storage medium, which stores a computer program, and when the distance between the human body and the electronic equipment is detected to be smaller than a preset distance threshold, the characteristics of the body part closest to the human body and the electronic equipment are acquired; determining a target attribute of the body part from the features; determining target transmission power according to the target attribute and the distance, wherein when the electronic equipment transmits a wireless signal at the target transmission power, the specific absorption rate of the electronic equipment to the electromagnetic waves of the body part is smaller than a preset value; and adjusting the wireless signal transmission power of the electronic equipment to the target transmission power.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the power adjustment method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the power adjustment method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the power adjustment method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
The foregoing detailed description is directed to a power adjustment method, device, storage medium, and electronic device provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.