Control method of electronic device and electronic device
Patent Information
- Application Number
- CN202611013166.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-08
- Publication Date
- 2026-10-09
AI Technical Summary
[0003]目前,在设置有无线通信模块(如WWAN、WiFi等)的电子设备中,可以通过控制无线通信模块的发射功率来调整SAR值,但控制精度低,容易出现过度降低发射功率或使SAR值超出安全范围的情况
[0014]通过应用以上技术方案,利用超声波发射器发射超声波信号,基于各麦克风采集超声波采样信号,根据超声波采样信号、各麦克风的第一位置和无线通信模块的第二位置,确定肢体到无线通信模块的第一距离,根据第一距离对无线通信模块的发射功率进行控制,本方案通过超声波发射器与各麦克风实现准确地确定用户肢体到无线通信模块的第一距离,从而提高了对无线通信模块的发射功率的控制精度,进而可在避免过度降低发射功率的同时,使电子设备准确适配不同的SAR标准。
Smart Images

Figure CN122892001A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a control method for an electronic device and an electronic device. Background Technology
[0002] SAR (Specific Absorption Ratio) refers to the electromagnetic radiation energy absorbed by a unit mass of matter per unit time. It is an important indicator for assessing the impact of electromagnetic radiation from wireless devices on the human body. Excessively high SAR values may pose a potential threat to human health.
[0003] Currently, in electronic devices equipped with wireless communication modules (such as WWAN, WiFi, etc.), the SAR value can be adjusted by controlling the transmission power of the wireless communication module. However, the control accuracy is low, and it is easy to cause excessive reduction of transmission power or cause the SAR value to exceed the safe range. Summary of the Invention
[0004] In a first aspect, a control method for an electronic device is provided, the electronic device including a wireless communication module, an ultrasonic transmitter, and at least two microphones, the control method comprising: transmitting an ultrasonic signal using the ultrasonic transmitter; obtaining ultrasonic sampling signals collected by each of the microphones, the ultrasonic sampling signals representing the reflection signals of the ultrasonic signals by a user's limbs; determining a first distance from the limbs to the wireless communication module based on the ultrasonic sampling signals, a first position of each of the microphones, and a second position of the wireless communication module; and controlling the transmission power of the wireless communication module based on the first distance.
[0005] In some embodiments, determining the first distance from the limb to the wireless communication module based on the ultrasonic sampling signal, the first position of each of the microphones, and the second position of the wireless communication module includes: determining the time difference between the ultrasonic sampling signal and each of the first positions; determining the third position of a limb reflection point based on the time difference, wherein the limb reflection point is a point on the limb that reflects the ultrasonic signal; and determining the first distance based on the third position and the second position.
[0006] In some embodiments, before determining the time difference between the ultrasonic sampling signal and each of the first locations, the method includes: determining the energy peak value of the ultrasonic sampling signal within a target time window; and performing the step of determining the time difference between the ultrasonic sampling signal and each of the first locations if the energy peak value reaches a target energy value.
[0007] In some embodiments, the number of microphones is four or two, and determining the third position of the limb reflection point based on the time difference includes: if the number of microphones is four, determining the third position based on the time difference of arrival algorithm, according to each time difference and the speed of sound of the ultrasonic signal; if the number of microphones is two, determining the distance difference from the limb reflection point to each of the first positions based on the time difference and the speed of sound of the ultrasonic signal; determining the incident angle of the ultrasonic sampling signal based on the phase difference of the ultrasonic sampling signal reaching each of the first positions; and determining the third position based on the distance difference and the incident angle.
[0008] In some embodiments, the wireless communication module includes a plurality of antennas, the second position includes antenna positions corresponding to each of the antennas respectively, and the step of determining the first distance based on the third position and the second position includes: determining a second distance from the third position to each of the antenna positions; and determining the smallest second distance among the second distances as the first distance.
[0009] In some embodiments, controlling the transmit power of the wireless communication module based on the first distance includes: determining a target distance interval corresponding to the first distance from a plurality of distance intervals; determining a target transmit power based on the target distance interval and the type of the wireless communication module; and adjusting the transmit power based on the target transmit power.
[0010] In some embodiments, the wireless communication module includes a plurality of antennas, the second position includes antenna positions corresponding to each of the antennas respectively, and the step of adjusting the transmission power according to the target transmission power includes: determining a second distance from the third position to each of the antenna positions; determining a target antenna power corresponding to each of the antennas according to each of the second distances and the target transmission power; and adjusting the power of each of the antennas to the target antenna power in ascending order of the second distances.
[0011] In some embodiments, the wireless communication module type includes at least one of WWAN and WiFi. After controlling the transmit power of the wireless communication module according to the first distance, the method further includes: if the transmit power decreases and the wireless communication module is a WWAN, performing at least one of the following: adjusting the modulation and coding scheme to increase coding gain; updating beamforming weights to point the main lobe of the beam pattern towards the base station and the side lobes towards the direction of the limb; if the transmit power decreases and the wireless communication module is a WiFi, performing at least one of the following: enabling transmit beamforming to increase equivalent isotropic radiated power; adjusting the idle channel evaluation threshold to increase throughput.
[0012] In some embodiments, transmitting ultrasonic signals using the ultrasonic transmitter includes: transmitting the ultrasonic signals using the ultrasonic transmitter according to a first transmission cycle; determining the communication load of the wireless communication module; and increasing the first transmission cycle to a second transmission cycle if the communication load reaches a target load.
[0013] In a second aspect, an electronic device is provided, comprising a wireless communication module, an ultrasonic transmitter, at least two microphones, and a processor configured to perform a control method for the electronic device as described in the first aspect.
[0014] By applying the above technical solution, an ultrasonic transmitter emits ultrasonic signals, and each microphone collects ultrasonic sampling signals. Based on the ultrasonic sampling signals, the first position of each microphone, and the second position of the wireless communication module, the first distance from the limb to the wireless communication module is determined. The transmission power of the wireless communication module is controlled based on the first distance. This solution accurately determines the first distance from the user's limb to the wireless communication module through the ultrasonic transmitter and each microphone, thereby improving the control accuracy of the transmission power of the wireless communication module. This allows the electronic device to accurately adapt to different SAR standards while avoiding excessive reduction in transmission power. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating a control method for an electronic device according to an embodiment of this application; Figure 2 This is a schematic diagram of the layout of the four microphones in the electronic device of this application embodiment. Figure 1 ; Figure 3 This is a schematic diagram of the layout of the microphones in the case of an electronic device with four microphones, as described in an embodiment of this application. Figure 2 ; Figure 4 This is a flowchart illustrating the determination of the first distance from a limb to the wireless communication module according to an embodiment of this application. Figure 5 This is a flowchart illustrating the control of the transmission power of the wireless communication module based on a first distance, according to an embodiment of this application. Figure 6 This is a flowchart illustrating the adjustment of transmission power based on the target transmission power according to an embodiment of this application; Figure 7 This is a schematic diagram illustrating posture training guidance according to an embodiment of this application; Figure 8 This is a block diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0017] Various embodiments and features of this application are described herein with reference to the accompanying drawings.
[0018] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.
[0019] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0020] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.
[0021] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application.
[0022] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.
[0023] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.
[0024] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.
[0025] An embodiment of this application discloses a control method for an electronic device. This method utilizes an ultrasonic transmitter to emit ultrasonic signals, collects ultrasonic sampling signals from each microphone, and determines a first distance from the limb to the wireless communication module based on the ultrasonic sampling signals, the first position of each microphone, and the second position of the wireless communication module. The transmission power of the wireless communication module is then controlled based on this first distance. This solution accurately determines the first distance from the user's limb to the wireless communication module through the ultrasonic transmitter and microphones, thereby improving the control accuracy of the wireless communication module's transmission power. Furthermore, it can accurately adapt the electronic device to different SAR standards while avoiding excessive reduction in transmission power.
[0026] like Figure 1 As shown, the control method for this electronic device includes the following steps: Step S101: Use the ultrasonic transmitter to emit ultrasonic signals.
[0027] In this embodiment, the electronic device includes a wireless communication module, an ultrasonic transmitter, and at least two microphones. It may also include a processor or processing unit, which can execute control methods for the electronic device. The electronic device can be, for example, a laptop, personal computer, server, workstation, etc. The wireless communication module is used for wireless communication, including, for example, WWAN (Wireless Wide Area Network), WiFi, etc., where WWAN is, for example, 4G, 5G, etc. The ultrasonic transmitter can emit ultrasonic signals of a specific frequency (e.g., 40kHz). The ultrasonic transmitter can be a speaker with ultrasonic emission function, or it can be set up independently of a speaker. There can be one or more ultrasonic transmitters. After the ultrasonic signal reaches the user's limb, it is reflected. The microphones can sample the ultrasonic signals reflected from the user's limb to obtain ultrasonic sampling information. The at least two microphones can be a microphone array formed by four microphones, or only two microphones. The microphone can be a microphone adapted to the ultrasonic frequency performance. In some embodiments of this application, the performance indicators of the microphone may include: sensitivity: -38dBV / Pa (1Pa=94dB SPL); frequency response: 20Hz-40kHz (covering the ultrasonic 40kHz frequency band); signal-to-noise ratio: 65dB; total harmonic distortion: <0.5% (1kHz, 94dB SPL); power consumption: 150μA (single channel), total power consumption of four channels: 600μA.
[0028] When a target trigger condition is met, the electronic device can emit an ultrasonic signal using an ultrasonic transmitter. The target trigger condition can be, for example, the activation of the electronic device, the detection of user operation of the electronic device by a camera, the detection of a user's voice or the sound of the electronic device approaching by a microphone, or the electronic device entering a wake-up state from a sleep state.
[0029] Step S102: Obtain the ultrasonic sampling signal collected by each of the microphones, wherein the ultrasonic sampling signal represents the reflection signal of the ultrasonic signal by the user's limb.
[0030] In this embodiment, each microphone can sample the ultrasonic signal at a target sampling rate to obtain an ultrasonic sampling signal. Optionally, when there are four microphones, ultrasonic sampling signals collected by all four microphones can be obtained, or only ultrasonic signals collected by two microphones can be obtained, or only ultrasonic signals collected by three microphones can be obtained. In some embodiments of this application, the target sampling rate can be 200kHz. For example, if there are four microphones, each microphone corresponding to one sampling channel, a four-channel synchronous sampling mode of an audio codec can be used, with a sampling rate of... =200kHz, with hardware clock synchronization ensuring inter-channel delay ≤0.1μs. The sampling clock can be generated by a PLL (Phase-Locked Loop) circuit at a frequency of... ×64=12.8MHz, and a sampling rate of 200kHz is obtained by frequency division.
[0031] In some embodiments of this application, obtaining the ultrasonic sampling signal collected by each of the microphones may include: obtaining the initial ultrasonic sampling signal collected by each of the microphones; digitally down-converting the initial ultrasonic sampling signal to baseband to obtain a down-converted signal; and using a low-pass filter to remove the high-frequency components in the down-converted signal to obtain the ultrasonic sampling signal.
[0032] In this embodiment, the down-conversion signal = ,in, This represents the center frequency, where f0 can be 40kHz, and n is the sampling point number. This represents the initial ultrasonic sampling signal corresponding to the nth sampling point. The low-pass filter can be a 51st-order FIR filter, with coefficients designed using the window function method. The stopband attenuation is ≥60dB, and the cutoff frequency can be 2kHz.
[0033] By performing digital down-conversion and low-pass filtering on the initial ultrasonic sampling signal, the amount of data in the ultrasonic sampling signal is reduced, thereby improving the efficiency of subsequent processing of the ultrasonic sampling signal.
[0034] Step S103: Determine the first distance from the limb to the wireless communication module based on the ultrasonic sampling signal, the first position of each microphone, and the second position of the wireless communication module.
[0035] In this embodiment, the first position can be the three-dimensional coordinates of each microphone on the electronic device, and the second position can be the three-dimensional coordinates of the wireless communication module on the electronic device. The wireless communication module includes an antenna, and the second position can specifically be the three-dimensional coordinates of the antenna on the electronic device. For example, if the electronic device is a laptop computer with four microphones and the wireless communication module includes two antennas, then... Figure 2 As shown, the x-axis of the three-dimensional coordinate system is parallel to the top edge of the display screen, the y-axis points to the user side, and the z-axis points to the ground. The first positions of each microphone are M1(0, 0, 0), M2(a, 0, 0), M3(-1.5a, 1.7a, 2a), and M4(-0.5a, 0.3a, 2a), where a = 10cm. The positioning error uniformity coefficient of this layout is η = 0.89 (η = 1 for ideal uniformity), and the root mean square error of three-dimensional positioning within a distance of 10cm will not exceed 1.2cm. The second position of the wireless communication module is as follows... Figure 2 The positions of the two antennas are shown in the diagram. If the electronic device includes two microphones, the first positions of each microphone can be M1(0,0,0) and M2(10,0,0) (unit: cm), located to the left and right of the screen camera. This ensures that the incident angle of the ultrasonic signal is within the range of 30°-60° when the hand is moving in the keyboard area, thus improving positioning accuracy.
[0036] For example, such as Figure 3 As shown, if the electronic device is a laptop with four microphones, the first positions of each microphone are M1(0, 0, 0), M2(10,0,0), M3(-15, 17, 20), and M4(-5, 3, 20), respectively. The screen bezel height is 20cm, the keyboard area length is 30cm and width is 20cm, and the ultrasonic transmitter is located in the middle of the side of the keyboard area, with its three-dimensional coordinates being (-15,20,5) cm.
[0037] Based on the ultrasonic sampling signal, the first position of each microphone, and the second position of the wireless communication module, the first distance from the limb to the wireless communication module is determined. There can be multiple reflection points on the limb, and the first distance can be multiple distances, the minimum distance among multiple distances, or the average distance among multiple distances.
[0038] Step S104: Control the transmission power of the wireless communication module according to the first distance.
[0039] In this embodiment, to ensure the SAR meets the target standard, a correspondence between different first distances and different transmission powers can be pre-established. The target transmission power is then determined based on the first distance and this correspondence, and the transmission power of the wireless communication module is adjusted to match the target transmission power. For example, if the first distance is large, a larger transmission power can be used to improve communication performance. If the first distance is small, a smaller transmission power can be used to keep the SAR within a safe range.
[0040] The control method for an electronic device according to embodiments of this application utilizes an ultrasonic transmitter to emit ultrasonic signals; obtains ultrasonic sampling signals collected by each microphone, whereby the ultrasonic sampling signals characterize the reflection signals of ultrasonic signals by the user's limbs; determines a first distance from the limbs to the wireless communication module based on the ultrasonic sampling signals, the first positions of each microphone, and the second position of the wireless communication module; and controls the transmission power of the wireless communication module based on the first distance. This solution accurately determines the first distance from the user's limbs to the wireless communication module through the ultrasonic transmitter and each microphone, thereby improving the control accuracy of the transmission power of the wireless communication module. This allows the electronic device to accurately adapt to different SAR standards while avoiding excessive reduction in transmission power.
[0041] In some embodiments of this application, the first distance from the limb to the wireless communication module is determined based on the ultrasonic sampling signal, the first position of each of the microphones, and the second position of the wireless communication module, such as... Figure 4 As shown, it includes the following steps: Step S1031: Determine the time difference between the ultrasonic sampling signal and each of the first positions.
[0042] In this embodiment, since there are multiple first locations, the arrival times of the ultrasonic sampling signals at different first locations are different. The arrival times of the ultrasonic sampling signals at each first location can be determined, and the time difference can be determined based on the differences between these time points. For example, if the electronic device includes four microphones, M1, M2, M3, and M4, the time difference can include the time difference between the arrival times of the ultrasonic sampling signals at M2 and M1, M3 and M1, and M4 and M1. If the electronic device includes two microphones, M1 and M2, the time difference includes the time difference between the arrival times of the ultrasonic sampling signals at M2 and M1.
[0043] In some embodiments of this application, determining the time difference from the ultrasonic sampling signal to each of the first positions includes: obtaining a first channel signal and a second channel information in the ultrasonic sampling signal; performing Fourier transforms on the first channel signal and the second channel information respectively to determine a first frequency domain signal and a second frequency domain signal; determining the cross power spectrum of the first frequency domain signal and the second frequency domain signal; performing a phase transform and an inverse Fourier transform on the cross power spectrum to obtain a weighted cross-correlation function; and performing peak detection on the weighted cross-correlation function to obtain the time difference between the first channel signal and the second channel information, thereby improving the accuracy of the time difference.
[0044] In this embodiment, the first channel signal and the second channel signal are two channel signals with a time difference to be determined. For example, if an electronic device includes four microphones, namely M1, M2, M3, and M4, then the first channel signal can correspond to M1, and the second channel signal can correspond to one of M2, M3, and M4. For example, let the first channel signal and the second channel signal be x1(n) and x2(n), respectively. Performing a 1024-point Fourier transform (FFT) on x1(n) and x2(n) yields the first frequency domain signal and the second frequency domain signal: X1(k) and X2(k); the cross-power spectrum can be expressed as: P 12 (k) = X1(k)*X2(k); A phase transformation of the cross-power spectrum yields: (k) = , ;right (k) Performing an inverse Fourier transform yields the weighted cross-correlation function: = { ,in, Indicates the target time window; for Peak detection: Δt = argmaxτ Δt represents the time difference between the first channel signal and the second channel information. This process can improve the accuracy of time difference measurement to 0.1 μs (corresponding to a distance error of 0.0346 mm).
[0045] In some embodiments of this application, peak detection is performed on the weighted cross-correlation function to obtain the time difference between the first channel signal and the second channel information. This includes: performing peak detection on the weighted cross-correlation function to determine the peak values of the cross-correlation functions; and using a target interpolation algorithm to oversample the points near the peak values of the cross-correlation function by a target multiple to determine the time difference between the first channel signal and the second channel information, thereby further improving the accuracy of the time difference. For example, the target interpolation algorithm can be cubic spline interpolation, the target multiple can be 10 times, and the interpolation formula is: = S(τ τ i ), where S(τ) is a cubic spline basis function, The function values are the values at three points near the peak of the cross-correlation function. This corresponds to a specific time point.
[0046] Step S1032: Determine the third position of the limb reflection point based on the time difference. The limb reflection point is the reflection point of the ultrasonic signal on the limb.
[0047] In this embodiment, the limb reflex point is located based on the time difference, the three-dimensional coordinates of the limb reflex point are determined, and the three-dimensional coordinates are determined as the third position.
[0048] Step S1033: Determine the first distance based on the third position and the second position.
[0049] In this embodiment, the first distance can be determined based on the three-dimensional coordinates corresponding to the third position and the three-dimensional coordinates corresponding to the second position.
[0050] This method uses time difference to locate limb reflex points, and determines the first distance based on the third position of the limb reflex points and the second position of the wireless communication module, thereby improving the accuracy of the first distance.
[0051] In some embodiments of this application, before determining the time difference between the ultrasonic sampling signal and each of the first locations, the method includes: Determine the peak energy of the ultrasonic sampling signal within the target time window; When the energy peak reaches the target energy value, the step of determining the time difference between the ultrasonic sampling signal and each of the first positions is performed.
[0052] In this embodiment, ultrasonic signals undergo multipath reflection during propagation. The ultrasonic sampling signal includes direct waves and reflected waves. Direct waves are ultrasonic waves that travel directly from the limb reflection point to the microphone, while reflected waves are ultrasonic waves that travel from the limb reflection point to other reflection points before reaching the microphone. To reduce the influence of reflected waves, direct waves need to be identified. The energy peak value of the ultrasonic sampling signal within the target time window is determined. If the energy peak value reaches the target energy value, the ultrasonic sampling signal is determined to be a direct wave. The step of determining the time difference from the ultrasonic sampling signal to each first position is then performed, thereby improving the accuracy of the time difference.
[0053] In some embodiments of this application, the time difference Δt between the direct wave and the reflected wave satisfies: Where h is the height of the reflecting surface (e.g., table height 80cm, Δt≥4.62ms), the peak energy of the ultrasonic sampling signal within the target time window can be expressed as: Where τ is the target time window (e.g., 200 μs), the peak energy of the reflected wave is typically 10-20 dB lower than that of the direct wave. To suppress strong reflection interference, a dynamic time window adjustment can be used: This represents the standard deviation of the signal.
[0054] In some embodiments of this application, if there are two microphones, after determining the energy peak value of the ultrasonic sampling signal within the target time window, the method further includes: determining the phase difference between the two microphones; if the phase difference meets the target condition and the energy peak value reaches the target energy value, then the step of determining the time difference from the ultrasonic sampling signal to each of the first positions is performed, thereby achieving more accurate identification of the direct wave and improving the accuracy of the time difference. For example, the target condition can be... ,in, The phase difference between the ultrasonic sampling signal reaching the second microphone and reaching the first microphone. The time difference between the arrival of the ultrasonic sampling signal at the second microphone and its arrival at the first microphone. This is the target value.
[0055] In some embodiments of this application, the number of microphones is four or two, and determining the third position of the limb reflex point based on the time difference includes: If the number of microphones is four, the third position is determined based on the time difference of arrival algorithm, according to the time difference and the speed of sound of the ultrasonic signal; If there are two microphones, the distance difference from the limb reflection point to each of the first positions is determined based on the time difference and the speed of sound of the ultrasonic signal; the incident angle of the ultrasonic sampling signal is determined based on the phase difference of the ultrasonic sampling signal reaching each of the first positions; and the third position is determined based on the distance difference and the incident angle.
[0056] In this embodiment, if there are four microphones, the third position is determined based on the TDoA (Time Difference of Arrival) algorithm, according to the time differences and the speed of sound of the ultrasonic signal. This eliminates the need for clock synchronization with the ultrasonic transmitter, as the time difference eliminates clock drift errors and reduces the power consumption of the electronic device. For example, let the three-dimensional coordinates (i.e., the first positions) of the four microphones be M1(x1,y1,z1), M2(x2,y2,z2), M3(x3,y3,z3), and M4(x4,y4,z4), and the limb reflection point be P(x,y,z). Then, the distance from P to M... iThe distance difference from reaching M1 is: ,in, = ,t i For P to reach M i The time taken, t1, is the time it takes for P to reach M1. , Let be the speed of ultrasonic waves at temperature T. For i = 2, 3, 4, establish a system of nonlinear equations: ;
[0057]
[0058] Solving this system of nonlinear equations using the Chan algorithm, the third position is determined, including: Let r = √(x² + y² + z²), then the nonlinear system of equations is transformed into a linear system of equations: ,in, The estimated value of r is obtained using the least squares method: Where H is the coefficient matrix and b is the constant term vector. Substitute these values into the original equation to solve for (x, y, z), and iterate until convergence using Taylor series expansion to determine the third position. The iterative formula is: , where J is the Jacobian matrix and h(x) is the observation equation.
[0059] In some embodiments of this application, a priori distance constraint is introduced during the process of solving the nonlinear equations based on the Chan algorithm, for example, a priori distance d ≤ 30cm (the operating area of the laptop). Solving for the estimated value of r using the least squares method includes: Let Wz, where the weight matrix W = diag (1 / σ1², 1 / σ2², 1 / σ3²), Let z be the measurement error for each channel and z be the vector of observed values. For example, if the electronic device is a laptop, then σ1=σ2=σ3=0.5cm can be obtained through historical data statistics.
[0060] In some embodiments of this application, after solving the nonlinear equations based on the Chan algorithm to determine the third position, the method further includes: performing outlier detection on the third position based on Mahalanobis distance. = (H + R (z - If D²> If the chi-square distribution threshold for 3 degrees of freedom is 7.815, it is considered an outlier and the frame data is discarded. Experiments show that this method can remove 99.2% of outliers, with a false deletion rate of less than 0.1%.
[0061] If there are two microphones, the distance difference from the limb reflection point to each first position is first determined based on the time difference and the speed of sound of the ultrasonic signal. Then, the incident angle of the ultrasonic sampling signal is determined based on the phase difference of the ultrasonic sampling signal reaching each first position. Finally, the third position is determined based on the distance difference and the incident angle, thereby improving the accuracy of the third position. For example, the distance difference... Phase difference incident angle θ The three-dimensional coordinates of the third position are: , Where 'a' represents the distance between the two microphones.
[0062] The positioning error corresponding to the third position mainly comes from the time difference measurement error δ(Δt). According to the law of error propagation, the relationship between the distance error δd and δ(Δt) is as follows: If the time difference measurement accuracy is 1 μs (corresponding to a sampling rate of 1 MHz), the distance error is 0.346 mm. The geometric layout of the microphone array affects the positioning accuracy. A tetrahedral layout provides the best uniformity of positioning errors in all directions, minimizes the condition number of the Fisher information matrix, and results in a theoretical positioning error ellipse with a major-to-minor axis ratio ≤ 1.2. For the two-microphone mode, the positioning error is affected by both time difference and phase difference measurement errors. A time difference measurement accuracy of 1 μs corresponds to a horizontal distance error of 0.346 mm, while a phase difference measurement accuracy of 5° corresponds to a vertical distance error of ±1.3 cm. Kalman filtering can control the root mean square error of two-dimensional positioning to within 2.5 cm.
[0063] The propagation of ultrasound in air follows the wave equation: Where p is the sound pressure, v is the speed of sound, and t is time. At room temperature of 25°C, the speed of sound v = 346.1 m / s; for every 1°C change in temperature, the speed of sound changes by 0.6 m / s. In some embodiments of this application, Where v0 = 346.1 m / s, T0 = 25℃, and T is the real-time temperature (unit: ℃). T can be obtained through a built-in thermistor, and its resistance-temperature relationship is as follows: Where R0 = 10kΩ (25℃) and B = 3950K, the temperature T is calculated by sampling the resistance value using an ADC. This improves the accuracy of the ultrasonic signal's velocity.
[0064] In some embodiments of this application, determining the third position of a limb reflex point based on the time difference includes: determining a preliminary third position of the limb reflex point based on the time difference, filtering the preliminary third position using a target filtering algorithm, and determining the third position, thereby improving the positioning accuracy of the limb reflex point. For example, the target filtering algorithm is a Kalman filter algorithm. Filtering the preliminary third position using the target filtering algorithm to determine the third position includes: Establish a state-space model: The state vector is: This includes position and velocity. The state transition equation is: ,in, ; The observation equation is: The observation matrix maps the three-dimensional coordinates to the time difference of the four microphones.
[0065] Perform Kalman filtering iterations, including: prediction: = F Predicted covariance: =F Determine the Kalman gain: = ;renew: = + ( - H Update covariance: = ( ) Where Q is the process noise covariance and R is the measurement noise covariance, which can be determined experimentally. , .
[0066] For the case of two microphones, the observation equation only includes the x and y coordinates and the phase difference parameter, and the z-axis velocity component in the state transition equation is set to 0 (assuming slow vertical motion).
[0067] In some embodiments of this application, the wireless communication module includes multiple antennas, the second position includes antenna positions corresponding to each of the antennas, and determining the first distance based on the third position and the second position includes: Determine the second distance from the third position to each of the antenna positions; The smallest second distance among all the second distances is determined as the first distance.
[0068] In this embodiment, the wireless communication module may include multiple antennas; for example, four antennas may be used for WWAN, and two antennas may be used for WiFi. A second distance is determined from the third location to each antenna location, and the smallest of these second distances is determined as the first distance. This ensures that the first distance matches the actual minimum distance between the limb and the wireless communication module, improving the accuracy of the first distance.
[0069] In some embodiments of this application, the control of the transmission power of the wireless communication module based on the first distance is as follows: Figure 5 As shown, it includes the following steps: Step S1041: Determine the target distance interval corresponding to the first distance from multiple distance intervals.
[0070] In this embodiment, multiple distance intervals are pre-established, and different distance intervals can correspond to different transmission powers. The distance interval to which the first distance belongs is determined as the target distance interval.
[0071] Step S1042: Determine the target transmission power based on the target distance range and the type of the wireless communication module.
[0072] In this embodiment, the type of wireless communication module may include, for example, WWAN sub-6GHz, WiFi 2.4GHz, WiFi 5GHz, etc. Different types of wireless communication modules may correspond to different target transmission powers within the target distance range; the target transmission power is determined based on the target distance range and the type of wireless communication module.
[0073] Step S1043: Adjust the transmission power according to the target transmission power.
[0074] In this embodiment, it is determined whether the transmission power of the wireless communication module is the same as the target transmission power. If they are different, the transmission power is increased or decreased to make the transmission power the target transmission power. If they are the same, the transmission power can be kept unchanged.
[0075] By using the target distance range and the type of wireless communication module, the target transmission power can be flexibly and accurately determined and adjusted.
[0076] For example, a correspondence table including multiple distance intervals can be pre-established, as shown in Table 1.
[0077] Table 1
[0078] As shown in Table 1, the power levels include four levels: Level 1, Level 2, Level 3, and Level 4. Piecewise linear interpolation can be used to determine the power level, avoiding jittery switching near the threshold. ; Electronic devices can transmit the target transmit power to the WiFi network via interfaces such as I2C and SPI, with a control accuracy of up to 0.5dBm. Based on the target transmit power, the electronic devices can call the driver to adjust the WiFi frequency band and power value accordingly, or they can configure the appropriate power meter in the BIOS to automatically adapt the WiFi power, with an accuracy of up to 0.5dBm.
[0079] In some embodiments of this application, the wireless communication module includes multiple antennas, the second position includes antenna positions corresponding to each of the antennas, and the step of adjusting the transmission power according to the target transmission power is as follows: Figure 6 As shown, it includes the following steps: Step S10431: Determine the second distance from the third position to each of the antenna positions.
[0080] In this embodiment, each second distance can be determined based on the three-dimensional coordinates of the third position and the three-dimensional coordinates of each antenna position.
[0081] Step S10432: Determine the target antenna power corresponding to each antenna based on each of the second distances and the target transmission power.
[0082] In this embodiment, since the second distances are different, different target antenna powers can be used for different antennas, and the total power corresponding to each target antenna power is linearly related to the SAR value.
[0083] In some examples of this application, if four microphones are used, the first transmit power of each antenna is determined based on a weighted power adjustment strategy. If the first transmit power is not greater than the target transmit power, then the first transmit power is determined as the target antenna power; if the first transmit power is greater than the target transmit power, then the target transmit power is determined as the target antenna power. For example, if the wireless communication module is a WWAN and its lines are 4×4 MIMO antennas (A1-A4), the weighted power adjustment strategy can be: = ,in Let be the distance from the limb to the j-th antenna (i.e., the second distance). The distance threshold is 5mm. α is the distance attenuation exponent, which can be 2.5. For example, when d1=3mm, d2=8mm, d3=10mm, d4=15mm: P1 = 23 dBm × (3 / 5)². 5 ≈ 13.2dBm; P2 = 23 dBm × (8 / 5)².5 ≈ 30.7dBm (limited to the maximum of 10dBm for Level 4, so we take 10dBm).
[0084] If there are two microphones, then the first transmit power of the i-th antenna is... ,in, For the target transmission power, Let i be the horizontal angle between the antenna and the limb. It is the smallest included angle.
[0085] Step S10433: Adjust the power of each antenna to the power of each target antenna in order of increasing second distance.
[0086] In this embodiment, by adjusting each of the second distances in ascending order, the transmit power of the antenna closest to the limb is adjusted first, while the other antennas are adjusted proportionally to the distance, so that the total radiated power is linearly related to the SAR value.
[0087] By using the second distance and the target transmission power, the target antenna power corresponding to each antenna can be determined, thereby achieving more precise adjustment of the transmission power.
[0088] In some embodiments of this application, if there are two microphones, a dynamic confidence weight α (0.5-1) can be added to address the low positioning accuracy of the two microphones. The power adjustment step size is adjusted according to the radius r of the major axis of the positioning error ellipse: ΔP=0.5dB×α, α=1 / (1+0.1×r).
[0089] In some embodiments of this application, the type of the wireless communication module includes at least one of WWAN and WiFi, and after controlling the transmit power of the wireless communication module according to the first distance, the method further includes: If the transmit power is reduced and the wireless communication module is a WWAN, perform at least one of the following: adjust the modulation and coding scheme to increase the coding gain; update the beamforming weights to point the main lobe of the beam pattern towards the base station and the side lobes towards the direction of the limb. If the transmit power is reduced and the wireless communication module is WiFi, perform at least one of the following: enable transmit beamforming to increase the equivalent omnidirectional radiated power; adjust the idle channel assessment threshold to increase throughput.
[0090] In this embodiment, after controlling the transmission power of the wireless communication module according to the first distance, if the transmission power decreases, the communication link is adjusted according to the type of wireless communication module to maintain link quality.
[0091] For WWAN, adjusting the modulation and coding scheme to improve coding gain may include: reducing the modulation and coding scheme from 64QAM 3 / 4 to 16QAM 2 / 3 according to 3GPP TS 36.213, resulting in a 3dB increase in coding gain. Where R is the data rate, W is the bandwidth (e.g., 20MHz), M is the modulation order, and C is the coding efficiency. When M decreases from 64 to 16 and C decreases from 3 / 4 to 2 / 3, R decreases by approximately 37%, but this is compensated for by a 3dB power reduction, maintaining a balanced link budget. Updating beamforming weights may include utilizing sub-6GHz beamforming capabilities to point the main lobe of the beam pattern towards the base station and suppress the sidelobes in the direction of the human body. Beamforming weight vector Where a (θ0) is the array steering vector in the direction of the base station, and θ0 is estimated by the uplink SRS (Sounding Reference Signal) signal. The transmission period of the SRS signal is 10ms, occupying subframe 0 and subframe 5.
[0092] For WiFi, enabling transmit beamforming may include: enabling TxBF to increase equivalent isotropic radiated power (EIRP): = + - + in The beamforming gain is typically 3-5 dB. TxBF weights can be implemented using space-time block coding (STBC) or SVD-based precoding, with the precoding matrix P satisfying: Where v1 and v2 are the right singular vectors of the channel matrix. Adjusting the idle channel assessment threshold may include: dynamically modifying the idle channel assessment (CCA) threshold: Where ΔP represents the power reduction (dB). For example, when the power is reduced by 5dB, the CCA threshold is adjusted from -82dBm to -87dBm to avoid channel contention disadvantage caused by power reduction and maintain throughput stability. Experiments show that this adjustment can maintain the channel access success rate above 90%.
[0093] In some embodiments of this application, the step of emitting ultrasonic signals using the ultrasonic transmitter includes: The ultrasonic transmitter is used to transmit the ultrasonic signal according to a first transmission cycle. The communication load of the wireless communication module is determined. If the communication load reaches the target load, the first transmission cycle is increased to a second transmission cycle.
[0094] In this embodiment, the ultrasonic transmitter adopts an intermittent working mode to avoid competing for computing resources with wireless communication. The ultrasonic transmitter transmits ultrasonic signals according to a first transmission period. If the communication load reaches a target load, the first transmission period is increased to a second transmission period, so that the wireless communication module can perform normal communication, which improves the reliability of the wireless communication module. For example, the first transmission period may be 100 ms (transmit an ultrasonic signal once, last for 5 ms, and then sleep for 95 ms), and the second transmission period may be 200 ms.
[0095] In some embodiments of the present application, the limb reflection point is a reflection point of a target key area on the limb in the user's current posture mode, and the target key area may include, for example, a hand, a head, etc. For example, if the wireless communication module is a WWAN, and its antenna adopts a 4×4 MIMO layout, assume for example that the coordinates of each antenna are: A1 (5, 5, 0) (lower left corner of the keyboard), A2 (25, 5, 0) (lower right corner of the keyboard), A3 (5, 15, 0) (left side of the battery), A4 (25, 15, 0) (right side of the battery), and the coordinate range of the hand operation area is (10, 5, 5)-(20, 15, 15) cm, then the distance between the key monitored hand operation area and A1, A2 is focused on, because these two antennas are closest to the hand. The cooperation process between the antenna and the positioning system may include: measuring and storing the coordinates of each antenna during initialization; the positioning system resolves limb coordinates in real time and calculates the distance to each antenna; selecting the two antennas with the smallest distance (A1, A2) as the basis for power adjustment. In the two-microphone mode, the horizontal distance between the A1 and A2 antennas and the hand is monitored, and the distances to A1 and A2 are calculated through the two-dimensional positioning coordinates (x, y) as: .
[0096] If the wireless communication module is WiFi, as Figure 2 shown, its antenna adopts a 2×2 MIMO layout. When the head is close to the screen (e.g., the distance is < 40 cm), the positioning system focuses on monitoring the distance between the head and the antenna; when the hand is in the keyboard area, it monitors the distance between the hand and the antenna. The cooperation mechanism between positioning and antennas includes head detection: when the z-coordinate is > 10 cm (screen height) and d < 40 cm, it is determined that the head is approaching; limb detection such as hands: when 5 cm < y < 25 cm (keyboard depth) and -15 cm < x < 15 cm (keyboard width), it is determined as the hand activity area. As Figure 2 the positioning area shown.
[0097] A guidance interface can be displayed when the system starts, prompting the user to maintain a normal sitting posture (as Figure 7 shown, the distance between the eyes and the screen is 40 cm, and the hands are placed on the keyboard), which lasts for 30 seconds, 100 sets of ultrasonic positioning data are collected, and an initial position fingerprint library is established: The data format can be: [ {x: 15.2, y: 10.5, z: 12.3, t: 1630000000}, {x: 14.8, y: 11.2, z: 12.1, t: 1630000001}, ... ] The K-means clustering algorithm was used to classify the fingerprint database and identify different gesture patterns (such as typing, mouse operation, and reading). The cluster centers were: ,in For the set of samples of class k, The sample size is shown. Experiments show that the clustering effect is best when the pose patterns are divided into 3 categories, with a silhouette coefficient of 0.85.
[0098] An LSTM neural network (64 hidden units, 2 layers) can be used to predict the location of key target areas, improving the localization accuracy in complex scenes. The input features are: TOF data from four microphones (4-dimensional), temperature compensation value (1-dimensional), and previous frame position (3-dimensional), for a total of 8 dimensions; the output target is: current frame position (3-dimensional); the loss function is mean squared error (MSE); the training data includes: 100,000 sets of data generated through simulation (including multipath and noisy scenes), and 20,000 sets of data collected in actual samples for fine-tuning. The training process uses the Adam optimizer with a learning rate of 0.001 and a batch size of 32. After 100 training rounds, the MSE drops to 0.49 cm², corresponding to a localization error of 0.7 cm.
[0099] In some embodiments of this application, the sampling rate of each microphone for the ultrasonic sampling signal can be dynamically adjusted according to the limb movement speed. For example, in a static scene, a sampling rate of 100kHz is used with a power consumption of 150μA; in a slow-moving scene (such as typing), a sampling rate of 200kHz is used with a power consumption of 300μA; and in a fast-moving scene (such as waving), a sampling rate of 400kHz is used with a power consumption of 600μA. The limb movement speed v can be calculated through the position difference between adjacent frames. ; If v < 1 cm / s, it is judged as stationary; if 1 cm / s ≤ v < 5 cm / s, it is judged as moving slowly; if v ≥ 5 cm / s, it is judged as moving quickly.
[0100] In some embodiments of this application, if a limb is detected to have left the operating area (d>30cm) for more than 10 seconds, the ultrasonic transmitter enters a sleep mode, reducing power consumption to 10μA. The system is then woken up by detecting changes in ambient sound through a low-power microphone. The wake-up threshold can be set to 40dB SPL to avoid false wake-ups due to background noise.
[0101] In some embodiments of this application, the communication module includes a WiFi module and a WWAN module, and the electronic device also includes an audio decoder, a main control processing unit, a signal conditioning unit, and a digital signal processing unit. The microphone array receives signals at a 200kHz sampling rate and sends them to the audio codec. After processing by the audio codec (24-bit resolution), the signals are sent to the main control processing unit. The main control processing unit then uses a signal conditioning circuit to amplify (+40dB), bandpass filter (38-42kHz), and perform A / D conversion (24-bit) on the signals received from the audio codec, obtaining a digital signal which is then input to the digital signal processing unit. The digital signal processing unit performs FFT (frequency domain analysis), TOF / TDOA calculation (distance / position measurement), and Kalman filtering (data optimization) to determine a first distance. Finally, the main control processing unit determines the target transmission power based on the first distance and adjusts the power of the WiFi module and the WWAN module based on the target transmission power.
[0102] In some embodiments of this application, bandpass filtering is implemented in the audio codec. For example, the stopband attenuation is ≥60dB@2.4 / 5GHz, and the filter transfer function is: The coefficients are designed using the bilinear transform method and can be flexibly adjusted according to requirements. The cutoff frequency can be 38kHz and 42kHz. The specific coefficients are: a0=0.0353, a1=0.1059, a2=0.1059, a3=0.0353; b1=2.3447, b2=-1.8186, b3=0.4739. The filter has an attenuation of 65dB at 2.4GHz and 72dB at 5GHz, which can effectively suppress wireless signal interference.
[0103] By applying the above technical solutions, the following technical effects can be achieved: 1. No additional sensor hardware required: The electronic device can utilize a built-in four-microphone array or two microphones and an ultrasonic transmitter module, eliminating the need for dedicated distance or motion sensors and reducing hardware costs.
[0104] 2. High-precision positioning: Ultrasonic positioning accuracy can reach within 1cm, superior to traditional P-sensor solutions (used to detect the distance between the human body and the antenna). Within a 10cm distance, the four-microphone TDoA algorithm achieves a 3D positioning root mean square error of 1.2cm, a 76% improvement over the 5cm error of the P-sensor. Under temperature fluctuations of 25℃±5℃, the sound velocity error is controlled within 0.3% through a temperature compensation model, corresponding to a distance error ≤0.1cm. In multipath scenarios (such as smooth desktop reflections), the positioning error can be controlled within 1.8cm through Kalman filtering and direct wave recognition algorithms. The two-microphone 2D positioning accuracy is 2-5cm, meeting the distance grading requirements for SAR power adjustment, a 50% improvement over the 5cm error of the P-sensor.
[0105] 3. Dynamic Power Adjustment: Different power meters are triggered based on real-time distance, avoiding performance waste from static configurations. WWAN Scenario: When the hand is 5mm away from the antenna, the power drops from 23dBm to 10dBm, and the SAR value drops from 1.5W / kg to 0.6W / kg (compliant with the FCC limit of 1.6W / kg). Simultaneously, link quality is maintained through beamforming, with a throughput loss of ≤5%. Actual test data shows that with a 20MHz bandwidth, a 13dB power reduction results in a throughput decrease from 150Mbps to 142Mbps, a reduction of 5.3%.
[0106] In WiFi scenarios: Dynamic power adjustment in the 2.4GHz band can increase average throughput by 32% (compared to static power mode), and by 45% in the 5GHz band, due to the stricter static power limitations in the 5GHz band. With an 802.11ac 80MHz bandwidth, when the 5GHz band power is reduced from 23dBm to 13dBm, the throughput decreases from 867Mbps to 823Mbps, a drop of 5.1%.
[0107] 4. Antenna Design Optimization: No physical retraction is required, freeing up motherboard space and improving antenna performance. The antenna design can employ a better radiation pattern, such as pointing the maximum radiation direction of the WWAN antenna away from the human body, further reducing the SAR value.
[0108] 5. Strong anti-interference capability: Ultrasonic signals are less affected by wireless environment interference and have high positioning stability.
[0109] 6. Regional dynamic adaptation: Dynamic power adjustment can adapt to SAR standards in different regions in real time.
[0110] 7. Low latency: Positioning latency ≤10ms, power adjustment latency ≤20ms, imperceptible to the user.
[0111] 8. Strong compatibility: Supports automatic switching between four microphones and two microphones, adapting to the hardware configurations of different types of electronic devices.
[0112] This application also provides an electronic device, such as... Figure 8 As shown, it includes a wireless communication module, an ultrasonic transmitter, at least two microphones, and a processor configured to perform a control method for an electronic device as described in the embodiments of this application.
[0113] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0114] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.
Claims
1. A control method for an electronic device, characterized in that, The electronic device includes a wireless communication module, an ultrasonic transmitter, and at least two microphones, and the control method includes: The ultrasonic transmitter is used to emit ultrasonic signals. The ultrasonic sampling signals collected by each of the microphones are obtained, and the ultrasonic sampling signals represent the reflection signals of the ultrasonic signals by the user's limbs. Based on the ultrasonic sampling signal, the first position of each microphone, and the second position of the wireless communication module, the first distance from the limb to the wireless communication module is determined; The transmission power of the wireless communication module is controlled based on the first distance.
2. The control method for an electronic device as described in claim 1, characterized in that, Determining the first distance from the limb to the wireless communication module based on the ultrasonic sampling signal, the first position of each microphone, and the second position of the wireless communication module includes: Determine the time difference between the ultrasonic sampling signal and each of the first positions; The third position of the limb reflection point is determined based on the time difference, where the limb reflection point is the reflection point on the ultrasonic signal on the limb. The first distance is determined based on the third position and the second position.
3. The control method for an electronic device as described in claim 2, characterized in that, Before determining the time difference between the ultrasonic sampling signal and each of the first locations, the process includes: Determine the peak energy of the ultrasonic sampling signal within the target time window; When the energy peak reaches the target energy value, the step of determining the time difference between the ultrasonic sampling signal and each of the first positions is performed.
4. The control method for an electronic device as described in claim 2, characterized in that, The number of microphones is four or two, and the determination of the third position of the limb reflex point based on the time difference includes: If the number of microphones is four, the third position is determined based on the time difference of arrival algorithm, according to the time difference and the speed of sound of the ultrasonic signal; If there are two microphones, the distance difference from the limb reflection point to each of the first positions is determined based on the time difference and the speed of sound of the ultrasonic signal; the incident angle of the ultrasonic sampling signal is determined based on the phase difference of the ultrasonic sampling signal reaching each of the first positions; and the third position is determined based on the distance difference and the incident angle.
5. The control method for an electronic device as described in claim 2, characterized in that, The wireless communication module includes multiple antennas, and the second position includes antenna positions corresponding to each of the antennas. Determining the first distance based on the third position and the second position includes: Determine the second distance from the third position to each of the antenna positions; The smallest second distance among all the second distances is determined as the first distance.
6. The control method for an electronic device as described in claim 1, characterized in that, The step of controlling the transmission power of the wireless communication module based on the first distance includes: Determine the target distance interval corresponding to the first distance from multiple distance intervals; The target transmit power is determined based on the target distance range and the type of the wireless communication module; The transmission power is adjusted according to the target transmission power.
7. The control method for an electronic device as described in claim 6, characterized in that, The wireless communication module includes multiple antennas, the second position includes antenna positions corresponding to each of the antennas, and the step of adjusting the transmission power according to the target transmission power includes: Determine the second distance from the third position to each of the antenna positions; The target antenna power corresponding to each antenna is determined based on each of the second distances and the target transmission power; According to the second distance from smallest to largest, the power of each antenna is adjusted to the power of each target antenna in sequence.
8. The control method for an electronic device as described in claim 1, characterized in that, The wireless communication module includes at least one of WWAN and WiFi, and after controlling the transmit power of the wireless communication module according to the first distance, it further includes: If the transmit power is reduced and the wireless communication module is a WWAN, perform at least one of the following: adjust the modulation and coding scheme to increase the coding gain; update the beamforming weights to point the main lobe of the beam pattern towards the base station and the side lobes towards the direction of the limb. If the transmit power is reduced and the wireless communication module is WiFi, perform at least one of the following: enable transmit beamforming to increase the equivalent omnidirectional radiated power; adjust the idle channel assessment threshold to increase throughput.
9. The control method for an electronic device as described in claim 1, characterized in that, The method of emitting ultrasonic signals using the ultrasonic transmitter includes: The ultrasonic transmitter is used to transmit the ultrasonic signal according to a first transmission cycle. The communication load of the wireless communication module is determined. If the communication load reaches the target load, the first transmission cycle is increased to a second transmission cycle.
10. An electronic device, characterized in that, It includes a wireless communication module, an ultrasonic transmitter, at least two microphones, and a processor configured to perform a control method for an electronic device as described in any one of claims 1-9.