Calibration method, device, electronic device and readable storage medium

By using angle sensors and antenna components in electronic devices for signal measurement and calibration, the problem of factory calibration parameters failure is solved, and the self-calibration of electronic devices and the accuracy of PDOA angle measurement is achieved.

CN115665308BActive Publication Date: 2025-04-11VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211303082.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-24
Publication Date
2025-04-11
Estimated Expiration
2042-10-24

AI Technical Summary

Technical Problem

The factory calibration parameters of electronic equipment fail, resulting in inaccurate measurement of PDOA angle.

Method used

By using angle sensors and antenna components in electronic devices, the signal arrival phase difference measurement data corresponding to the folding angle is measured, the target calibration parameters are determined, and the original signal arrival phase difference measurement data of the antenna components are calibrated.

Benefits of technology

Self-calibration of electronic devices is realized, and new target calibration parameters are generated, ensuring the accuracy of PDOA angle measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115665308B_ABST
    Figure CN115665308B_ABST
Patent Text Reader

Abstract

The present application discloses a calibration method, device, electronic device and readable storage medium, which belongs to the technical field of ultra-wideband antenna. The calibration method is performed by an electronic device, and the calibration method includes: when the electronic device is in a folded state, obtaining the folding angle through an angle sensor, and measuring the signal arrival phase difference measurement data corresponding to the folding angle through an antenna component; wherein the signal arrival phase difference measurement data is obtained by measuring the first antenna and the second antenna with the third antenna as the measurement target; determining the target calibration parameters according to the folding angle and the signal arrival phase difference measurement data; calibrating the original signal arrival phase difference measurement data of the antenna component through the target calibration parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of ultra-wideband antennas, and specifically relates to a calibration method, device, electronic device, and readable storage medium. Background Art

[0002] In the related technology, electronic devices such as mobile phones with ultra-wideband (UWB) antennas can use UWB technology to measure the phase difference of arrival (PDOA) of the signal, thereby having good spatial perception capabilities.

[0003] Due to the antenna consistency issues of different mobile phones, when each mobile phone performs angle measurement through UWB, there is a certain deviation between the PDOA measurement angle and the actual angle. Therefore, it is necessary to perform parameter calibration on the PDOA measurement of the mobile phone. The parameter calibration method is to use the antenna array for calibration in the mobile phone production line.

[0004] The calibration process of the antenna array requires reliance on large and expensive industrial equipment, so calibration can only be performed once before the mobile phone leaves the factory. When the mobile phone is deformed or the device ages during use, the factory preset calibration parameters may become invalid, resulting in inaccurate PDOA angle measurement. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a calibration method, device, electronic device and readable storage medium, which can solve the problem of failure of factory calibration parameters of electronic equipment and inaccurate PDOA angle measurement.

[0006] In a first aspect, an embodiment of the present application provides a calibration method, which is performed by an electronic device, wherein the electronic device includes an antenna assembly, an angle sensor, and a first folding body and a second folding body hinged to each other, wherein the antenna assembly includes a first antenna, a second antenna, and a third antenna, wherein the first antenna and the second antenna are disposed on the first folding body, and the third antenna is disposed on the second folding body, and the angle sensor is used to obtain a folding angle between the first folding body and the second folding body;

[0007] Calibration methods include:

[0008] When the electronic device is in a folded state, the folding angle is obtained through the angle sensor, and the signal arrival phase difference measurement data corresponding to the folding angle is measured through the antenna assembly; wherein the signal arrival phase difference measurement data is obtained by measuring the first antenna and the second antenna with the third antenna as the measurement target;

[0009] Determine target calibration parameters based on folding angle and signal arrival phase difference measurement data;

[0010] The raw signal arrival phase difference measurement data of the antenna assembly is calibrated using the target calibration parameters.

[0011] In a second aspect, an embodiment of the present application provides a calibration device, which is applied to an electronic device, wherein the electronic device includes an antenna assembly, an angle sensor, and a first folding body and a second folding body that are hinged to each other, wherein the antenna assembly includes a first antenna, a second antenna, and a third antenna, wherein the first antenna and the second antenna are disposed on the first folding body, and the third antenna is disposed on the second folding body, and the angle sensor is used to obtain a folding angle between the first folding body and the second folding body;

[0012] The calibration setup consists of:

[0013] An angle measurement module, used for obtaining the folding angle through the angle sensor when the electronic device is in a folded state, and measuring the signal arrival phase difference measurement data corresponding to the folding angle through the antenna assembly; wherein the signal arrival phase difference measurement data is obtained by measuring the first antenna and the second antenna with the third antenna as the measurement target;

[0014] A determination module, used to determine target calibration parameters according to the folding angle and signal arrival phase difference measurement data;

[0015] The calibration module is used to calibrate the original signal arrival phase difference measurement data of the antenna component through the target calibration parameters.

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

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

[0018] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method of the first aspect.

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

[0020] In an embodiment of the present application, the structural characteristics of the folding screen are utilized, and the third antenna on the first folding body of the folding screen is used as the UBW tag antenna. When the folding state of the folding screen changes, the position and angle of the third antenna relative to the first antenna and the second antenna will also change. At the same time, since the rotation angle of the folding screen shaft can be obtained by the sensor, the true angle of the third antenna relative to the first antenna and the second antenna can be converted. Therefore, according to the true angle and the PDOA measurement angle collected by the first antenna and the second antenna, the corresponding calibration parameters are mapped, thereby realizing self-calibration of the folding screen mobile phone. Therefore, when the factory calibration parameters fail, new target calibration parameters can be generated through self-calibration, thereby ensuring the accuracy of PDOA angle measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 One of the flow charts of the calibration method according to an embodiment of the present application is shown;

[0022] Figure 2 A schematic diagram of the structure of a foldable screen electronic device according to an embodiment of the present application is shown;

[0023] Figure 3 A second flowchart of a calibration method according to an embodiment of the present application is shown;

[0024] Figure 4 A structural block diagram of a calibration device according to an embodiment of the present application is shown;

[0025] Figure 5 A structural block diagram of an electronic device according to an embodiment of the present application is shown;

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

[0027] Reference numerals:

[0028] 200 electronic device, 202 first folding body, 2022 first antenna, 2024 second antenna, 204 second folding body, 2042 third antenna, 206 hinge. DETAILED DESCRIPTION

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

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

[0031] The calibration method, device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0032] In some embodiments of the present application, a calibration method is provided, which is performed by an electronic device, wherein the electronic device includes an antenna assembly, an angle sensor, and a first folding body and a second folding body hinged to each other, the antenna assembly includes a first antenna, a second antenna, and a third antenna, the first antenna and the second antenna are arranged on the first folding body, the third antenna is arranged on the second folding body, and the angle sensor is used to obtain a folding angle between the first folding body and the second folding body;

[0033] Figure 1 FIG. 1 shows one of the flow charts of the calibration method according to an embodiment of the present application. Figure 1 As shown, the calibration method includes:

[0034] Step 102, when the electronic device is in a folded state, obtaining a folding angle through an angle sensor, and measuring signal arrival phase difference measurement data corresponding to the folding angle through an antenna assembly;

[0035] The signal arrival phase difference measurement data is obtained by measuring the first antenna and the second antenna with the third antenna as the measurement target;

[0036] Step 104, determining target calibration parameters according to the folding angle and signal arrival phase difference measurement data;

[0037] Step 106: Calibrate the original signal arrival phase difference measurement data of the antenna assembly using the target calibration parameters.

[0038] In the embodiment of the present application, the electronic device is specifically an electronic device with a foldable screen. Figure 2 A schematic diagram of the structure of a folding screen electronic device according to an embodiment of the present application is shown. Figure 2As shown, the electronic device 200 includes a first folding body 202 and a second folding body 204 , a first antenna 2022 and a second antenna 2024 are disposed on the first folding body 202 , and a third antenna 2042 is disposed on the second folding body 204 .

[0039] The first foldable body 202 and the second foldable body 204 are connected by a hinge 206, so that the first foldable body 202 can rotate relative to the second foldable body 204, thereby switching between a folded state and an unfolded state. At the same time, an angle sensor is provided at the hinge 206, and the rotation angle of the hinge 206 can be detected by the angle sensor, thereby obtaining the folding angle of the first foldable body 202 relative to the second foldable body 204.

[0040] When the first folding body 202 is folded relative to the second folding body 204, the position and angle of the third antenna 2042 relative to the first antenna 2022 and the second antenna 2024 will also change accordingly. Therefore, the third antenna 2042 is used as a UWB tag antenna, and the signal arrival phase difference measurement data corresponding to the third antenna 2042 is obtained through the first antenna 2022 and the second antenna 2024, that is, PDOA data. The PDOA data includes the measured spatial angle information of the third antenna 2042 relative to the first antenna 2022 and the second antenna 2024 obtained by the PDOA algorithm, that is, the estimated angle.

[0041] At the same time, the actual spatial angle information, i.e., the real angle, of the third antenna 2042 relative to the first antenna 2022 and the second antenna 2024 can be converted through the folding angle of the first folding body 202 relative to the second folding body 204. By comparing the estimated angle with the real angle, the deviation between the estimated angle and the real angle is obtained, thereby obtaining the target calibration parameter, and the deviation between the estimated angle and the real angle is eliminated through the target calibration parameter.

[0042] It can be understood that the electronic device may be provided with multiple antennas, and the multiple antennas include the first antenna, the second antenna and the third antenna mentioned above.

[0043] It can be understood that, during the use of the electronic device, each time the user changes the folding angles of the first folding body and the second folding body, one or more calibrations may be performed, thereby improving the accuracy of the calibration result.

[0044] After determining the target calibration parameters, whenever the electronic device needs to perform UWB positioning and PDOA measurement, the measured PDOA value is corrected using the target calibration parameters so that the estimated angle information is consistent with the actual angle, thereby improving the PDOA measurement accuracy.

[0045] Specifically, the correction can be performed using the following formula:

[0046]

[0047] Among them, θ is the calibrated angle, PDOA is the original measurement data, OFS is the angle offset value, c is the speed of light, AS is the antenna spacing, and f is the UWB frequency of the antenna assembly.

[0048] The calibration method provided in the embodiment of the present application may be executed by a calibration device. In the embodiment of the present application, a method for determining calibration parameters by a calibration device is taken as an example to illustrate the device for determining calibration parameters provided in the embodiment of the present application.

[0049] The embodiment of the present application utilizes the hinge structure of a foldable screen mobile phone, and uses the third antenna on the second foldable body as a UWB tag antenna for determining calibration parameters. The projection angle from the center point of the third antenna to the midpoint of the first antenna and the second antenna at different folding angles, that is, the real spatial angle of the third antenna relative to the first antenna and the second antenna, is collected, and the data measured by PDOA of the first antenna and the second antenna at the corresponding folding angle are mapped and corrected to obtain the corresponding calibration parameters, thereby realizing self-calibration of the foldable screen mobile phone. Therefore, when the factory calibration parameters fail, new target calibration parameters can be generated through self-calibration, thereby ensuring the accuracy of PDOA angle measurement.

[0050] In some embodiments of the present application, Figure 3 FIG. 2 shows a second flow chart of a calibration method according to an embodiment of the present application. Figure 3 As shown, before determining the target calibration parameters according to the folding angle and the signal arrival phase difference measurement data, the calibration method further includes:

[0051] Step 302, obtaining the number of times the screen of the electronic device is turned off;

[0052] Step 304, when the screen-off times are greater than or equal to a preset times threshold, determining the actual angle according to the folding angle and the position information of the antenna assembly;

[0053] The actual angle is related to the spatial position of the third antenna relative to the first antenna and the second antenna;

[0054] Step 306, determining a corresponding measurement angle according to the signal arrival phase difference measurement data and preset calibration parameters;

[0055] Step 308, when the absolute value of the difference between the measured angle and the actual angle is greater than or equal to the preset angle threshold, a step of determining target calibration parameters according to the folding angle and signal arrival phase difference measurement data is performed.

[0056] In the embodiment of the present application, during the use of the electronic device, for a foldable screen mobile phone, whenever the foldable screen is unfolded / folded, the display screen of the foldable screen is synchronously turned on / off. The number of times the screen is turned on and off can be considered the same, and the number of times the screen is turned off reflects the use time of the electronic device.

[0057] In other words, the number of times the screen is turned off is positively correlated with the usage time.

[0058] When the screen of an electronic device is turned off for a number of times greater than or equal to the number threshold, it means that the electronic device has been used for a long time and the preset calibration parameters may be invalid. At this time, during the folding process of the electronic device, it is determined whether the preset calibration parameters are invalid based on at least one folding angle between the first folding body and the second folding body and the estimated angle of the PDOA of the first antenna and the second antenna to the third antenna at the folding angle.

[0059] Specifically, Figure 2 As shown, point A is the midpoint of the first antenna 2022 and the second antenna 2024, point E is the center point of the third antenna 2042, the line segment passing through point E and perpendicular to the central axis of the hinge 206 of the electronic device 200 is EC, line segment AB is parallel to the side of the electronic device, line segment CB is perpendicular to line segment AB, plane ABF is a plane perpendicular to the upper surface of the first folding body 202, line segment EF is perpendicular to plane ABF, and point D is the projection of point E on plane ABD.

[0060] Assuming that the length of line segment AB is h, the length of line segment CB is l1, the length of line segment EC is l2, and the angle between line segment DC and line segment CE is α, the projection angle from the center point of the third antenna 2042 to the midpoint of the first antenna 2022 and the second antenna 2024, that is, the angle between line segment AE and line segment AF, that is, the real space angle θ of the third antenna 2042 relative to the first antenna 2022 and the second antenna 2024, satisfies:

[0061] EF=DC+CB=l2×cosα+l1;-----(1)

[0062]

[0063] Among them, EF is the length of line segment EF, that is, the vertical distance, DC is the length of line segment DC, CB is the length of line segment CB, AF is the length of line segment AF, that is, the horizontal distance, h is the length of line segment AB, l1 is the length of line segment CB, l2 is the length of line segment EC, and h, l1 and l2 are preset constants, θ is the real spatial angle of the third antenna 2042 relative to the first antenna 2022 and the second antenna 2024, and θ corresponds to the PDOA estimated angle of the third antenna 2042 measured by the first antenna 2022 and the second antenna 2024, and α is the folding angle between the first folding body 202 and the second folding body 204.

[0064] Therefore, the real angle data can be converted through the folding angle of the folding screen electronic device, that is, the actual angle mentioned above. After the real angle is converted through the folding angle, the collected PDOA information is calibrated through the preset calibration parameters to obtain the estimated angle data, that is, the measured angle mentioned above. At this time, the difference between the actual angle and the measured angle is compared with the angle threshold.

[0065] If the absolute value of the difference between the actual angle and the measured angle is less than the angle threshold, it means that the PDOA angle calibrated by the preset calibration parameters is close to the real angle, the preset calibration parameters are not invalid, and no self-calibration is required. If the absolute value of the difference between the actual angle and the measured angle is greater than the active angle and the angle threshold, it means that the gap between the PDOA angle calibrated by the preset calibration parameters and the real angle is large, and the probability of the preset calibration parameters being invalid is very high. At this time, over a period of time, as the user uses the folding screen mobile phone, a large number of folding angles and corresponding PDOA estimated angles can be collected, and the real angle can be determined based on the folding angle. Based on the mapping relationship between the real angle and the PDOA estimated angle, the final target calibration parameters are generated, thereby realizing self-calibration of the folding screen mobile phone.

[0066] In some embodiments of the present application, the folding angle includes a first folding angle and a second folding angle, and the signal arrival phase difference measurement data includes a first signal arrival phase difference measurement angle and a second signal arrival phase difference measurement angle, wherein the first folding angle and the second folding angle are different, the first signal arrival phase difference measurement angle corresponds to the first folding angle, and the second signal arrival phase difference measurement angle corresponds to the second folding angle;

[0067] Based on the folding angle and signal arrival phase difference measurement data, the target calibration parameters are determined, including:

[0068] Determine a corresponding first actual angle and a second actual angle according to the first folding angle, the second folding angle and the position information of the antenna assembly;

[0069] Determining a first matrix according to the first actual angle, the second actual angle, and an ultra-wideband frequency of the antenna assembly;

[0070] Determine the corresponding first measurement angle and second measurement angle according to the first signal arrival phase difference measurement angle, the second signal arrival phase difference measurement angle and preset calibration parameters;

[0071] Determining a second matrix according to the first measurement angle and the second measurement angle;

[0072] Target calibration parameters are determined based on the first matrix and the second matrix.

[0073] In an embodiment of the present application, after the preset calibration parameters of the folding screen mobile phone become invalid, the folding screen mobile phone collects N folding angles in N folding states during the user's use of the folding screen mobile phone, specifically including the first folding angle in the first folding state and the second folding angle in the second folding state, and uses the first antenna and the second antenna, with the third antenna as the UWB tag antenna, to collect the corresponding PDOA estimation angle, specifically including the first signal arrival phase difference measurement angle corresponding to the first folding angle, and the second signal arrival phase difference measurement angle corresponding to the second folding angle. After obtaining the above data, the first folding angle and the second folding angle are converted into the corresponding first actual angle and the second actual angle.

[0074] The conversion is performed using the following formula:

[0075]

[0076] Wherein, θ is the actual angle, α is the folding angle, h, l1 and l2 are preset constants, and h, l1 and l2 are associated with the position information of the antenna assembly.

[0077] It can be understood that the folding angle and the corresponding signal arrival phase difference measurement data are not limited to the first folding angle, the second folding angle, the first signal arrival phase difference measurement angle and the second signal arrival phase difference measurement angle mentioned above. The number of folding angles and signal arrival phase difference measurement data can be multiple. Taking the number of folding angles and signal arrival phase difference measurement data as N as an example, the N folding angles are converted into N actual angles (θ1, θ2, ... θ N ). According to the N actual angles and the ultra-wideband frequency of the antenna assembly, the first matrix is ​​determined, and according to the N signal arrival phase difference measurement data corresponding to the N folding angles, N measurement angles (PDOA1, PDOA2, ... PDOA N ).

[0078] A first matrix is ​​determined based on the first actual angle, the second actual angle, and an ultra-wideband frequency of the antenna assembly, and a second matrix is ​​determined based on the first measured angle and the second measured angle.

[0079] Specifically, when the electronic device collects the angle of the target UWB tag antenna through PDOA and calibrates it, the following equation is satisfied:

[0080]

[0081] Among them, OFS and AS are preset calibration parameters, f is the ultra-wideband frequency of the antenna component, and c is the speed of light.

[0082] Based on the above equation, we can get the following equation:

[0083]

[0084] Among them, the first matrix is ​​K, The second matrix is ​​PDOA, Each of these is a vector of PDOA measurement results, Calibrate the parameters for the target.

[0085] Therefore, equation (6) can be transformed into:

[0086]

[0087] Among them, K is the first matrix, PODA is the second matrix, Calibrate the parameters for the target.

[0088] Through the above calculation method, the target calibration parameters can be obtained. The angle measured by PDOA is corrected by the target calibration parameters, so that the angle estimated by PDOA can be close to the real angle, thereby improving the accuracy of PDOA measurement of mobile phone UWB.

[0089] In some embodiments of the present application, the target calibration parameters include an antenna spacing between the first antenna and the second antenna, and an angle offset value.

[0090] In the embodiment of the present application, the antenna spacing between the first antenna and the second antenna is AF, which is specifically the electrical spacing between the first antenna and the second antenna. Specifically, when the antenna transmits / receives radiation, the radiation center point is the electrical center point of the antenna, and the distance between the electrical center point of the first antenna and the electrical center point of the second antenna is the electrical spacing, that is, the antenna distance.

[0091] The angle offset value OFS is used to adjust the PDOA value obtained by antenna measurement. The final estimated angle can be obtained by subtracting the OFS value from the calculated PDOA value.

[0092] This application improves the PDOA measurement accuracy of foldable screen mobile phones by determining the antenna spacing and angle offset values ​​and forming them as calibration parameters.

[0093] The calibration method provided in the embodiment of the present application may be executed by a calibration device. In the embodiment of the present application, a method for determining calibration parameters by a calibration device is taken as an example to illustrate the device for determining calibration parameters provided in the embodiment of the present application.

[0094] In some embodiments of the present application, a calibration device is provided, which is applied to an electronic device, wherein the electronic device comprises an antenna assembly, an angle sensor, and a first folding body and a second folding body hinged to each other, wherein the antenna assembly comprises a first antenna, a second antenna, and a third antenna, wherein the first antenna and the second antenna are arranged on the first folding body, and the third antenna is arranged on the second folding body, and the angle sensor is used to obtain a folding angle between the first folding body and the second folding body;

[0095] Figure 4 FIG. 4 shows a structural block diagram of a calibration device according to an embodiment of the present application. Figure 4 As shown, the calibration device 400 includes:

[0096] An angle measurement module 402 is used to obtain a folding angle through an angle sensor when the electronic device is in a folded state, and measure signal arrival phase difference measurement data corresponding to the folding angle through an antenna assembly; wherein the signal arrival phase difference measurement data is obtained by measuring the first antenna and the second antenna with the third antenna as the measurement target;

[0097] A determination module 404, configured to determine target calibration parameters based on the folding angle and signal arrival phase difference measurement data;

[0098] The calibration module 406 is used to calibrate the original signal arrival phase difference measurement data of the antenna assembly by using the target calibration parameters.

[0099] In an embodiment of the present application, the structural characteristics of the folding screen are utilized, and the third antenna on the first folding body of the folding screen is used as the UBW tag antenna. When the folding state of the folding screen changes, the position and angle of the third antenna relative to the first antenna and the second antenna will also change. At the same time, since the rotation angle of the folding screen shaft can be obtained by the sensor, the true angle of the third antenna relative to the first antenna and the second antenna can be converted. Therefore, according to the true angle and the PDOA measurement angle collected by the first antenna and the second antenna, the corresponding calibration parameters are mapped, thereby realizing self-calibration of the folding screen mobile phone. Therefore, when the factory calibration parameters fail, new target calibration parameters can be generated through self-calibration, thereby ensuring the accuracy of PDOA angle measurement.

[0100] In some embodiments of the present application, the acquisition module is further used to obtain the number of times the screen of the electronic device is turned off;

[0101] Identify modules, also used for:

[0102] When the screen-off times are greater than or equal to a preset times threshold, determining an actual angle according to the folding angle and the position information of the antenna assembly, where the actual angle is related to the spatial position of the third antenna relative to the first antenna and the second antenna;

[0103] Determine the corresponding measurement angle according to the signal arrival phase difference measurement data and the preset calibration parameters;

[0104] When the absolute value of the difference between the measured angle and the actual angle is greater than or equal to a preset angle threshold, the target calibration parameter is determined according to the N folding angles and the N signal arrival phase difference measurement data.

[0105] In an embodiment of the present application, the comparison result of the difference between the actual angle and the measured angle and the angle threshold is determined. If the absolute value of the difference between the actual angle and the measured angle is less than the angle threshold, it means that the PDOA angle calibrated by the preset calibration parameters is close to the true angle, the preset calibration parameters are not invalid, and no self-calibration is required. If the absolute value of the difference between the actual angle and the measured angle is greater than the angle threshold, it means that the gap between the PDOA angle calibrated by the preset calibration parameters and the true angle is large, and the probability of failure of the preset calibration parameters is very high. At this time, a large number of folding angles and corresponding PDOA estimated angles can be collected over a period of time as the user uses the folding screen mobile phone, and the true angle is determined based on the folding angle. Based on the mapping relationship between the true angle and the PDOA estimated angle, the final target calibration parameters are generated, thereby realizing self-calibration of the folding screen mobile phone.

[0106] In some embodiments of the present application, the folding angle includes a first folding angle and a second folding angle, and the signal arrival phase difference measurement data includes a first signal arrival phase difference measurement angle and a second signal arrival phase difference measurement angle, wherein the first folding angle and the second folding angle are different, the first signal arrival phase difference measurement angle corresponds to the first folding angle, and the second signal arrival phase difference measurement angle corresponds to the second folding angle;

[0107] Identify modules, specifically for:

[0108] Determine a corresponding first actual angle and a second actual angle according to the first folding angle, the second folding angle and the position information of the antenna assembly;

[0109] Determining a first matrix according to the first actual angle, the second actual angle, and an ultra-wideband frequency of the antenna assembly;

[0110] Determine the corresponding first measurement angle and second measurement angle according to the first signal arrival phase difference measurement angle, the second signal arrival phase difference measurement angle and preset calibration parameters;

[0111] Determining a second matrix according to the first measurement angle and the second measurement angle;

[0112] Target calibration parameters are determined based on the first matrix and the second matrix.

[0113] In an embodiment of the present application, the target calibration parameters can be obtained through calculation, and the angle measured by PDOA is corrected using the target calibration parameters, so that the angle estimated by PDOA can be close to the real angle, thereby improving the accuracy of PDOA measurement of mobile phone UWB.

[0114] In some embodiments of the present application, the target calibration parameters include an antenna spacing between the first antenna and the second antenna, and an angle offset value.

[0115] In an embodiment of the present application, the PDOA measurement accuracy of the foldable screen mobile phone is improved by determining the antenna spacing and angle offset values ​​and forming them as calibration parameters.

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

[0117] The calibration device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0118] The calibration device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0119] Optionally, an embodiment of the present application further provides an electronic device, Figure 5 A structural block diagram of an electronic device according to an embodiment of the present application is shown. Figure 5 As shown, the electronic device 500 includes a processor 502, a memory 504, and a program or instruction stored in the memory 504 and executable on the processor 502. When the program or instruction is executed by the processor 502, each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

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

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

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

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

[0124] Among them, the processor 610 is used to obtain the folding angle through the angle sensor when the electronic device is in a folded state, and measure the signal arrival phase difference measurement data corresponding to the folding angle through the antenna assembly; wherein the signal arrival phase difference measurement data is measured by the first antenna and the second antenna with the third antenna as the measurement target; determine the target calibration parameters according to the folding angle and the signal arrival phase difference measurement data; and calibrate the original signal arrival phase difference measurement data of the antenna assembly through the target calibration parameters.

[0125] In an embodiment of the present application, the structural characteristics of the folding screen are utilized, and the third antenna on the first folding body of the folding screen is used as the UBW tag antenna. When the folding state of the folding screen changes, the position and angle of the third antenna relative to the first antenna and the second antenna will also change. At the same time, since the rotation angle of the folding screen shaft can be obtained by the sensor, the true angle of the third antenna relative to the first antenna and the second antenna can be converted. Therefore, according to the true angle and the PDOA measurement angle collected by the first antenna and the second antenna, the corresponding calibration parameters are mapped, thereby realizing self-calibration of the folding screen mobile phone. Therefore, when the factory calibration parameters fail, new target calibration parameters can be generated through self-calibration, thereby ensuring the accuracy of PDOA angle measurement.

[0126] Optionally, the processor 610 is also used to obtain the number of times the screen of the electronic device is turned off; when the number of times the screen is turned off is greater than or equal to a preset threshold number, determine the actual angle based on the folding angle and the position information of the antenna assembly, and the actual angle is related to the spatial position of the third antenna relative to the first antenna and the second antenna; determine the corresponding measurement angle based on the signal arrival phase difference measurement data and preset calibration parameters; when the absolute value of the difference between the measured angle and the actual angle is greater than or equal to a preset angle threshold, execute the step of determining the target calibration parameters based on the folding angle and the signal arrival phase difference measurement data.

[0127] In an embodiment of the present application, the comparison result of the difference between the actual angle and the measured angle and the angle threshold is determined. If the absolute value of the difference between the actual angle and the measured angle is less than the angle threshold, it means that the PDOA angle calibrated by the preset calibration parameters is close to the true angle, the preset calibration parameters are not invalid, and no self-calibration is required. If the absolute value of the difference between the actual angle and the measured angle is greater than the angle threshold, it means that the gap between the PDOA angle calibrated by the preset calibration parameters and the true angle is large, and the probability of failure of the preset calibration parameters is very high. At this time, a large number of folding angles and corresponding PDOA estimated angles can be collected over a period of time as the user uses the folding screen mobile phone, and the true angle is determined based on the folding angle. Based on the mapping relationship between the true angle and the PDOA estimated angle, the final target calibration parameters are generated, thereby realizing self-calibration of the folding screen mobile phone.

[0128] Optionally, the folding angle includes a first folding angle and a second folding angle, and the signal arrival phase difference measurement data includes a first signal arrival phase difference measurement angle and a second signal arrival phase difference measurement angle, wherein the first folding angle and the second folding angle are different, the first signal arrival phase difference measurement angle corresponds to the first folding angle, and the second signal arrival phase difference measurement angle corresponds to the second folding angle;

[0129] The processor 610 is also used to determine the corresponding first actual angle and second actual angle based on the first folding angle, the second folding angle and the position information of the antenna assembly; determine the first matrix based on the first actual angle, the second actual angle and the ultra-wideband frequency of the antenna assembly; determine the corresponding first measurement angle and second measurement angle based on the first signal arrival phase difference measurement angle, the second signal arrival phase difference measurement angle and preset calibration parameters; determine the second matrix based on the first measurement angle and the second measurement angle; determine the target calibration parameters based on the first matrix and the second matrix.

[0130] In an embodiment of the present application, the target calibration parameters can be obtained through calculation, and the angle measured by PDOA is corrected using the target calibration parameters, so that the angle estimated by PDOA can be close to the real angle, thereby improving the accuracy of PDOA measurement of mobile phone UWB.

[0131] Optionally, the target calibration parameters include an antenna spacing between the first antenna and the second antenna, and an angle offset value.

[0132] In an embodiment of the present application, the PDOA measurement accuracy of the foldable screen mobile phone is improved by determining the antenna spacing and angle offset values ​​and forming them as calibration parameters.

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

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

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

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

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

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

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

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

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

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

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

Claims

1. A calibration method, performed by an electronic device, characterized in that: The electronic device comprises an antenna assembly, an angle sensor, and a first folding body and a second folding body hinged to each other, the antenna assembly comprises a first antenna, a second antenna, and a third antenna, the first antenna and the second antenna are arranged on the first folding body, the third antenna is arranged on the second folding body, and the angle sensor is used to obtain a folding angle between the first folding body and the second folding body; The calibration method comprises: When the electronic device is in a folded state, the folding angle is obtained by the angle sensor, and the signal arrival phase difference measurement data corresponding to the folding angle is measured by the antenna assembly; wherein the signal arrival phase difference measurement data is obtained by measuring the first antenna and the second antenna with the third antenna as the measurement target; Determining target calibration parameters according to the folding angle and the signal arrival phase difference measurement data; Calibrate the original signal arrival phase difference measurement data of the antenna assembly by using the target calibration parameter; The folding angle includes a first folding angle and a second folding angle, and the signal arrival phase difference measurement data includes a first signal arrival phase difference measurement angle and a second signal arrival phase difference measurement angle, wherein the first folding angle and the second folding angle are different, the first signal arrival phase difference measurement angle corresponds to the first folding angle, and the second signal arrival phase difference measurement angle corresponds to the second folding angle; Determining target calibration parameters according to the folding angle and the signal arrival phase difference measurement data includes: Determine a corresponding first actual angle and a second actual angle according to the first folding angle, the second folding angle, and the position information of the antenna assembly, wherein the actual angle is related to the spatial position of the third antenna relative to the first antenna and the second antenna; Determining a first matrix according to the first actual angle, the second actual angle, and an ultra-wideband frequency of the antenna assembly; Determine a corresponding first measurement angle and a second measurement angle according to the first signal arrival phase difference measurement angle, the second signal arrival phase difference measurement angle and a preset calibration parameter; determining a second matrix according to the first measurement angle and the second measurement angle; The target calibration parameters are determined according to the first matrix and the second matrix.

2. The calibration method according to claim 1, characterized in that: Before determining the target calibration parameters according to the folding angle and the signal arrival phase difference measurement data, the calibration method further includes: Obtaining the number of times the screen of the electronic device is turned off; When the screen-off number is greater than or equal to a preset number threshold, determining an actual angle according to the folding angle and the position information of the antenna assembly; Determining a corresponding measurement angle according to the signal arrival phase difference measurement data and preset calibration parameters; When the absolute value of the difference between the measured angle and the actual angle is greater than or equal to a preset angle threshold, the step of determining the target calibration parameter based on the folding angle and the signal arrival phase difference measurement data is performed.

3. The calibration method according to claim 1 or 2, characterized in that: The target calibration parameters include an antenna distance between the first antenna and the second antenna, and an angle offset value.

4. A calibration device, applied to electronic equipment, characterized in that: The electronic device comprises an antenna assembly, an angle sensor, and a first folding body and a second folding body that are hinged to each other, the antenna assembly comprises a first antenna, a second antenna, and a third antenna, the first antenna and the second antenna are arranged on the first folding body, the third antenna is arranged on the second folding body, and the angle sensor is used to obtain a folding angle between the first folding body and the second folding body; The calibration device comprises: An angle measurement module, used for obtaining a folding angle through the angle sensor when the electronic device is in a folded state, and measuring signal arrival phase difference measurement data corresponding to the folding angle through the antenna assembly; wherein the signal arrival phase difference measurement data is obtained by measuring the first antenna and the second antenna with the third antenna as the measurement target; A determination module, configured to determine a target calibration parameter according to the folding angle and the signal arrival phase difference measurement data; A calibration module, used to calibrate the original signal arrival phase difference measurement data of the antenna assembly by using the target calibration parameter; The folding angle includes a first folding angle and a second folding angle, and the signal arrival phase difference measurement data includes a first signal arrival phase difference measurement angle and a second signal arrival phase difference measurement angle, wherein the first folding angle and the second folding angle are different, the first signal arrival phase difference measurement angle corresponds to the first folding angle, and the second signal arrival phase difference measurement angle corresponds to the second folding angle; The determination module is specifically used for: Determine a corresponding first actual angle and a second actual angle according to the first folding angle, the second folding angle, and the position information of the antenna assembly, wherein the actual angle is related to the spatial position of the third antenna relative to the first antenna and the second antenna; Determining a first matrix according to the first actual angle, the second actual angle, and an ultra-wideband frequency of the antenna assembly; Determine a corresponding first measurement angle and a second measurement angle according to the first signal arrival phase difference measurement angle, the second signal arrival phase difference measurement angle and a preset calibration parameter; determining a second matrix according to the first measurement angle and the second measurement angle; The target calibration parameters are determined according to the first matrix and the second matrix.

5. The calibration device according to claim 4, characterized in that: Also includes: An acquisition module, used to acquire the number of times the screen of the electronic device is turned off; The determining module is further used for: When the screen-off number is greater than or equal to a preset number threshold, determining an actual angle according to the folding angle and the position information of the antenna assembly; Determining a corresponding measurement angle according to the signal arrival phase difference measurement data and preset calibration parameters; When the absolute value of the difference between the measured angle and the actual angle is greater than or equal to a preset angle threshold, the step of determining the target calibration parameter based on the folding angle and the signal arrival phase difference measurement data is performed.

6. The calibration device according to claim 4 or 5, characterized in that: The target calibration parameters include an antenna distance between the first antenna and the second antenna, and an angle offset value.

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

8. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the calibration method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Screen folding state determination method and mobile terminal

    CN110072014A

  • Antenna control method and folding screen terminal

    CN110113459A