Positioning method and device, electronic equipment and readable storage medium

By obtaining the mapping relationship between the arrival phase difference of wireless signals under different attitudes and the arrival angle of AOA, the positioning accuracy problem caused by non-ideal antennas is solved, and accurate positioning in practical applications is achieved.

CN118914973APending Publication Date: 2024-11-08HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310514428.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-08
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In practical application, the existing AOA technology is not ideal because the antenna is not ideal, so it is impossible to directly determine the relative direction of the transmission device through the triangular mapping relationship, and thus cannot achieve the accurate object search function.

Method used

By obtaining the mapping relationship between the arrival phase difference of wireless signals under different transmit and receive relative attitudes and the AOA arrival angle, these mapping relationships are used to improve the result accuracy of the AOA arrival angle, and thus improve the positioning accuracy.

Benefits of technology

It realizes the accuracy of AOA arrival angle under non-ideal antenna conditions, ensuring the accuracy and reliability of positioning results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118914973A_ABST
    Figure CN118914973A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronics, in particular to a positioning method and device, electronic equipment and a readable storage medium. The method comprises the steps that an antenna of receiving equipment receives a plurality of first wireless signals sent by sending equipment, and based on the first wireless signals, the receiving and transmitting relative posture of the sending equipment relative to the receiving equipment is determined; then determining an arrival phase difference of the received wireless signals based on the receiving and transmitting relative attitude, and determining a first arrival angle corresponding to a first wireless signal received by the first electronic equipment under the first receiving and transmitting relative attitude based on a mapping relation between the arrival phase difference and the corresponding arrival angle; and determining a positioning result of the sending device based on the first angle of arrival. Therefore, the accuracy of the detection result of the AOA angle of arrival can be improved, and the accuracy of positioning the direction of the sending equipment is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a positioning method, device, electronic device and readable storage medium. Background Art

[0002] Angle-of-arrival (AOA) technology is widely used in various scenarios. For example, in intelligent object search, the sending device can use ultra-wide-band (UWB), Bluetooth, WiFi and other wireless communication technologies to communicate with the receiving device, and the receiving device can use AOA technology to find the sending device. Figure 1 As shown, when the mobile phone 10 is used as a receiving device and the headset 20 is used as a sending device, the user can find the headset 20 through the mobile phone 10. The mobile phone 10 and the headset 20 can establish a wireless communication connection through the wireless carrier signal sent by the transmitting antenna of the headset 20 to the mobile phone 10. After receiving the wireless carrier signal sent by the headset 20, the receiving antenna of the mobile phone 10 can use the AOA technology to confirm the direction of the headset 20 relative to the current position of the mobile phone 10.

[0003] Generally, the AOA technology determines the direction of the transmitting device relative to the receiving device through the triangular mapping relationship between the arrival phase difference between the wireless carrier signals received by the receiving device and sent by the antenna of the transmitting device, and the AOA arrival angle of the wireless carrier signal received by the receiving device. However, the above triangular mapping relationship is established based on the two receiving antennas in the receiving device as ideal antennas, that is, for the two ideal receiving antennas, the projections of the wireless carrier signals received by them on the xy plane (viewed from the z-axis angle) present a certain triangular relationship, and the arrival phase difference can be determined by the incident angles of the two wireless carrier signals, and then the AOA arrival angle corresponding to the arrival phase difference is directly obtained based on the above triangular mapping relationship.

[0004] However, in practical applications, antennas are mostly non-ideal antennas, and the wireless carrier signals received by non-ideal antennas are non-linear, that is, their projections on the xy plane (viewed from the z-axis angle) do not have a triangular relationship, resulting in no triangular mapping relationship between the arrival phase difference determined by the incident angles of the two wireless carrier signals and the AOA arrival angle, that is, the AOA arrival angle cannot be directly obtained based on the triangular mapping relationship, and thus the relative direction of the transmitting device relative to the receiving device cannot be determined. For example, the object-finding function cannot be implemented. Summary of the invention

[0005] To solve the above problems, the embodiments of the present application provide a positioning method, device, electronic device and readable storage medium.

[0006] In a first aspect, an embodiment of the present application provides a positioning method, which is applied to an electronic device, and the method includes: an antenna of a first electronic device receives multiple first wireless signals sent by a second electronic device; the first electronic device determines a first transceiver relative posture of the second electronic device relative to the first electronic device based on the multiple first wireless signals; the first electronic device obtains a first mapping relationship corresponding to the first transceiver relative posture, wherein the first mapping relationship includes a mapping relationship between arrival phase differences and corresponding arrival angles of multiple wireless signals received by the first electronic device under the first transceiver relative posture; the first electronic device determines, from the first mapping relationship, a first arrival angle corresponding to the first wireless signal received by the first electronic device under the first transceiver relative posture; the first electronic device determines a positioning result based on the first arrival angle.

[0007] It can be understood that in the present application, the above-mentioned first electronic device is a receiving device, the second electronic device is a sending device, the first wireless signal is a wireless carrier signal received by the receiving device and sent by the sending device, and the first mapping relationship is the mapping relationship between the arrival phase difference and the AOA arrival angle under the first transceiver phase posture.

[0008] Based on the above scheme, by pre-acquiring the mapping relationship between the arrival phase difference and the arrival angle under each relative posture of the transmitter and receiver, using the mapping relationship, and obtaining the AOA arrival angle based on the arrival phase difference under the relative posture of the transmitter and receiver, the accuracy of the AOA arrival angle result is improved, thereby improving the positioning accuracy.

[0009] In a possible implementation of the first aspect above, the first electronic device determines a first relative transceiver posture of the second electronic device relative to the first electronic device based on the first wireless signal, including: the first electronic device obtains a second wireless signal based on multiple first wireless signals, and determines the first relative transceiver posture of the first electronic device, wherein the second wireless signal is at least one first wireless signal of the same polarization direction among the multiple first wireless signals.

[0010] It can be understood that in the present application, the first electronic device obtains multiple first wireless signals corresponding to different relative transmission and reception postures, and determines the first transmission and reception relative posture of the first electronic device based on the channel state information of the second wireless signal with the same polarization direction among the multiple wireless signals.

[0011] For example, when the initial posture of the first electronic device is a vertical polarization direction, the user arbitrarily moves the first electronic device to change its posture. During the posture change process of the first electronic device, the first electronic device filters out the postures in which the polarization direction is not the vertical polarization direction during its posture change process, retains the postures in which the polarization direction is the vertical polarization direction, and determines the first transmitting and receiving relative posture of the first electronic device based on multiple wireless signals received by the first electronic device in the vertical polarization direction.

[0012] In a possible implementation of the first aspect above, the second wireless signal includes phase information of the second wireless signal; the first electronic device determines a first relative transmitting and receiving posture of the second electronic device relative to the first electronic device based on the second wireless signal, including: the first electronic device obtains an angular spectrum corresponding to the second wireless signal based on the phase information of the second wireless signal; and obtains the first relative transmitting and receiving posture of the first electronic device based on the angular spectrum corresponding to the second wireless signal.

[0013] It can be understood that in the present application, the first electronic device obtains multiple first wireless signals corresponding to different relative transmission and reception postures, and based on the channel state information of the second wireless signal with the same polarization direction in the multiple wireless signals, the phase information of the second wireless signal corresponding to each channel state information obtains each angular spectrum corresponding to the second wireless signal, and obtains the first relative transmission and reception posture of the first electronic device based on the angular spectrum corresponding to the second wireless signal.

[0014] In a possible implementation of the first aspect above, obtaining a first transmitting and receiving relative posture of the first electronic device based on an angular spectrum corresponding to the second wireless signal includes: obtaining the first transmitting and receiving relative posture based on a first mapping relationship and an angular spectrum corresponding to at least one second wireless signal.

[0015] It can be understood that in the present application, the first electronic device obtains multiple first wireless signals corresponding to different relative postures of transmission and reception, and based on the channel state information of the second wireless signal with the same polarization direction in the multiple wireless signals, obtains the phase information of the second wireless signal corresponding to each channel state information, obtains each angular spectrum corresponding to the second wireless signal, and obtains the first relative posture of transmission and reception based on the first mapping relationship.

[0016] In a possible implementation of the first aspect above, the first electronic device confirms the first arrival angle corresponding to the first wireless signal from the first mapping relationship, including: the first electronic device confirms the first arrival angle corresponding to the first wireless signal from the first mapping relationship based on the arrival phase difference corresponding to the first transmitting and receiving relative posture.

[0017] In a possible implementation of the first aspect above, the method also includes: the first electronic device issues a first prompt, the first prompt is used to prompt a user to change the first electronic device from a first posture to at least one second posture; the antenna of the first electronic device receives multiple first wireless signals sent by the second electronic device, including: the antenna of the first electronic device receives the multiple first wireless signals sent by the second electronic device when the first electronic device is in at least one second posture.

[0018] It can be understood that in the present application, in order to obtain multiple wireless carrier signals received by the antenna of the first electronic device, when the posture of the second electronic device remains unchanged, a prompt box on the UI interface of the first electronic device can be used to prompt the user to change the posture of the first electronic device to obtain multiple first wireless signals, wherein the prompt box on the UI interface of the first electronic device can prompt the user to move the first electronic device to a target posture or an arbitrary posture to obtain multiple first wireless signals.

[0019] In a possible implementation of the first aspect above, the method further includes: the first electronic device detects that the second electronic device moves from the first position to the second position, and the first electronic device receives a plurality of third wireless signals sent by the second electronic device at the second position.

[0020] It can be understood that in the present application, when the posture of the second electronic device (sending device) changes and moves from the first position to the second position, the first electronic device (receiving device) receives multiple third wireless signals sent by the second electronic device at the second position. After the antenna of the first electronic device receives the multiple third wireless signals sent by the second electronic device, the first electronic device executes the positioning method mentioned in the present application to obtain the positioning result based on the multiple third wireless signals.

[0021] For example, a third transceiver relative posture of the second electronic device relative to the first electronic device can be determined; the first electronic device obtains a third mapping relationship corresponding to the third transceiver relative posture, wherein the third mapping relationship includes a mapping relationship between arrival phase differences and corresponding arrival angles of multiple third wireless signals received by the first electronic device under the third transceiver relative posture; the first electronic device determines from the third mapping relationship a third arrival angle corresponding to the third line signal received by the first electronic device under the third transceiver relative posture; the first electronic device determines a positioning result for the second electronic device based on the third arrival angle.

[0022] In a possible implementation of the first aspect above, the first electronic device detects that the second electronic device moves from a first position to a second position, including: when the first electronic device detects, while the position of the first electronic device remains unchanged, that a difference between a first arrival angle obtained at a first moment and a second arrival angle obtained at a second moment is greater than a preset threshold, determining that the second electronic device is detected to move from the first position to the second position.

[0023] In a possible implementation of the first aspect above, the method further includes: the first electronic device determines a second transmitting and receiving relative posture based on the position sensor and the first transmitting and receiving relative posture.

[0024] In a possible implementation of the first aspect above, the first electronic device determines the second transceiver relative posture based on the position sensor and the first transceiver relative posture, including: the first electronic device obtains the position change information of the first electronic device based on the position sensor; the first electronic device determines the second transceiver relative posture based on the first transceiver relative posture and the position change information of the first electronic device.

[0025] It can be understood that in the present application, after the first electronic device changes from the first position to the second position, the second relative transceiver posture between the first electronic device and the second electronic device after the position change can be determined directly through the position sensor of the first electronic device based on the first relative transceiver posture before the position change, thereby improving the efficiency of determining the relative transceiver posture between the first electronic device and the second electronic device, simplifying the positioning process, and thereby improving the efficiency of positioning the second electronic device.

[0026] In a second aspect, an embodiment of the present application provides a positioning device, comprising: an antenna unit, comprising at least two antennas, for receiving a first wireless signal sent by a second electronic device; and a processor, for executing instructions so that the electronic device implements the positioning method mentioned in the present application.

[0027] The processor may include an application processing module and a modem module, wherein: the application processing module may be used to prompt a user to change the posture of the first electronic device, and to identify the changed posture of the first electronic device; the modem module may be used to determine the relative posture and arrival angle of transmission and reception between the first electronic device and the second electronic device.

[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising the positioning device of the second aspect.

[0029] In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory for storing instructions; and a processor for executing instructions so that the positioning method provided by the above-mentioned first aspect and various possible implementations of the first aspect is implemented.

[0030] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the positioning method provided by the above-mentioned first aspect and various possible implementations of the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 According to some embodiments of the present application, a schematic diagram of a scenario in which the AOA technology is applied is shown;

[0032] Figure 2 (a) According to some embodiments of the present application, a schematic diagram of a vertically polarized antenna is shown;

[0033] Figure 2 (b) A schematic diagram showing a horizontally polarized antenna according to some embodiments of the present application;

[0034] Figure 3 According to some embodiments of the present application, a schematic diagram of an ideal antenna obtaining an AOA arrival angle is shown;

[0035] Figure 4A (a) According to some embodiments of the present application, a schematic diagram of determining the polarization direction of a transmitting device antenna based on the energy difference of a dual-polarized antenna is shown;

[0036] Figure 4A (b) According to some embodiments of the present application, another schematic diagram of determining the polarization direction of the antenna of a transmitting device based on the energy difference of a dual-polarized antenna is shown;

[0037] Figure 4B (a) and 4B(b) are schematic diagrams showing a transmitting device and a receiving device in different relative positions and the same transmitting and receiving relative postures according to some embodiments of the present application;

[0038] Figure 4C (a) and Figure 4C (b) According to some embodiments of the present application, a schematic diagram showing a transmitting device and a receiving device in the same position with different transmitting and receiving relative postures is shown;

[0039] Figure 5A According to some embodiments of the present application, a schematic diagram of establishing an attitude phase table based on different relative attitudes of transmitting and receiving is shown;

[0040] Figure 5B According to some embodiments of the present application, a schematic diagram of an attitude phase table corresponding to different transmitting and receiving relative attitudes is shown;

[0041] Figure 6 According to some embodiments of the present application, a schematic diagram of a mapping relationship between a corresponding arrival phase difference and an AOA arrival angle based on a relative attitude of a transmitter and a receiver is shown;

[0042] Figure 7 According to some embodiments of the present application, a schematic diagram of a system architecture of a receiving device is shown;

[0043] Fig. 8A According to some embodiments of the present application, a schematic diagram of a process for obtaining an AOA arrival angle is shown. ;

[0044] Figure 8B According to some embodiments of the present application, a schematic diagram of a posture phase table is shown;

[0045] Fig. 9According to some embodiments of the present application, a specific flow chart of determining the AOA angle of arrival is shown;

[0046] Fig.10 According to some embodiments of the present application, a diagram of an interactive interface of a mobile phone 10 is shown;

[0047] Fig.11 According to some embodiments of the present application, a schematic diagram of a suitable posture and an unsuitable posture based on the movement of the mobile phone 10 is shown;

[0048] Fig. 12A According to some embodiments of the present application, a schematic diagram of a moving posture of a mobile phone 10 is shown;

[0049] Fig. 12B According to some embodiments of the present application, another schematic diagram of the movement posture of the mobile phone 10 is shown;

[0050] Fig.13A According to some embodiments of the present application, another interactive interface diagram of a mobile phone 10 is shown;

[0051] Fig. 13B According to some embodiments of the present application, another schematic diagram of a moving posture of a mobile phone 10 is shown;

[0052] Fig.14A According to some embodiments of the present application, another interactive interface diagram of a mobile phone 10 is shown;

[0053] Fig. 14B According to some embodiments of the present application, a schematic diagram of an arbitrary moving posture of a mobile phone 10 is shown;

[0054] Fig.15 (a) According to some embodiments of the present application, a schematic diagram of obtaining an angle spectrum based on the vertical polarization direction of the mobile phone 10 is shown;

[0055] Fig.15 (b) According to some embodiments of the present application, a schematic diagram of obtaining an angle spectrum based on the horizontal polarization direction of the mobile phone 10 is shown;

[0056] Fig.16 According to some embodiments of the present application, a flow chart based on the mobile phone 10 moving to a target moving posture is shown;

[0057] Fig.17 According to some embodiments of the present application, a schematic diagram of a process based on the mobile phone 10 moving to any moving posture is shown;

[0058] Fig.18According to some embodiments of the present application, a schematic diagram of a process for determining the relative posture of transmitting and receiving based on a sensor in the mobile phone 10 is shown;

[0059] Fig.19 According to some embodiments of the present application, a schematic diagram of a scenario for determining the relative posture of sending and receiving based on a sensor in the mobile phone 10 is shown;

[0060] Fig. 20 According to some embodiments of the present application, a schematic diagram of a process for determining the AOA arrival angle based on a change in the attitude of a sending device is shown;

[0061] Fig.21 According to some embodiments of the present application, a schematic diagram of a change in posture of an earphone 20 is shown;

[0062] Fig. 22 According to some embodiments of the present application, a diagram of an interactive interface is shown in which the mobile phone 10 prompts the user to adjust the posture of the mobile phone 10 after the posture of the earphone 20 changes;

[0063] Fig.23 According to some embodiments of the present application, a schematic diagram showing a comparison of success rates of detecting the relative posture of transmission and reception between a transmitting device and a receiving device under different receiving antenna combinations is shown;

[0064] Fig.24 According to some embodiments of the present application, a schematic structural diagram of a mobile phone 10 is shown. DETAILED DESCRIPTION

[0065] The illustrative embodiments of the present application include but are not limited to a positioning method, an apparatus, an electronic device, and a readable storage medium.

[0066] The specific implementation process of the technical solution provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0067] In order to facilitate understanding of the technical solution of the present application, the polarization characteristics of the antenna are first introduced.

[0068] The polarization of an antenna refers to the direction of the electric field strength formed when the antenna radiates. The polarization direction of an antenna can include vertical polarization direction and horizontal polarization direction. The vertical polarization direction refers to the polarization direction when the electric field strength direction is perpendicular to the ground; the horizontal polarization direction refers to the polarization direction when the electric field strength direction is parallel to the ground.

[0069] For example, Figure 2 (a) shows an antenna with a vertical polarization direction, RX1 is a radio frequency signal source, and RX1 is connected to the vertical polarization feed point V of the antenna. Since the electric field direction of the antenna is perpendicular to the ground, the polarization direction of the antenna is the vertical polarization direction; for another example, Figure 2(b) shows an antenna with a horizontal polarization direction. RX2 is a radio frequency signal source. RX2 is connected to the horizontal polarization feed point L of the antenna. Since the electric field direction of the antenna is parallel to the ground, the polarization direction of the antenna is a horizontal polarization direction.

[0070] It can be understood that in the embodiments of the present application, the sending device may include a tablet computer, a laptop computer, a desktop computer, a wireless mouse, a wireless headset, a smart watch, a smart bracelet, a smart home device, and other electronic devices with wireless communication functions, and the receiving device may include a tablet computer, a laptop computer, a smart watch, and other electronic devices with wireless communication functions, which are not limited here.

[0071] In order to facilitate the understanding of the technical solution of this application, Figure 1 Taking the scenario in as an example, the AOA technology is introduced.

[0072] Specifically, the process of the mobile phone 10 searching for the headset 20 through the AOA technology may include:

[0073] First, refer to Figure 3 , the transmitting antenna of the headset 20 transmits the wireless carrier signal S1 to the mobile phone 10, and the antenna 1 and antenna 2 of the mobile phone 10 respectively receive the wireless carrier signal S1 as ideal antennas, and the corresponding incident angles θ1 and θ2 of the wireless carrier signal S1 are different due to the different positions of antenna 1 and antenna 2, so that the phases of the wireless carrier signal S1 reaching antenna 1 and antenna 2 are different, and thus there is an arrival phase difference between the wireless carrier signals received by the two antennas. Among them, the arrival phase difference Δφ can be determined based on the channel state information (CSI) of the incident angles θ1 and θ2.

[0074] Then, since the projections of the wireless carrier signals received by antenna 1 and antenna 2 on the xy plane (seen from the z axis) present a certain triangular relationship, the AOA arrival angle θ can be calculated based on the arrival phase difference Δφ obtained above. The AOA arrival angle θ is used to represent the direction of the transmitting device, that is, the earphone 20 relative to the mobile phone 10. For example, the AOA arrival angle θ can be determined using the triangular mapping relationship formula shown in formula (1):

[0075] Δφ=φ(ant1)-φ(ant2)=2πd·Cos(θ) / λ (1)

[0076] Wherein, φ(antl) and φ(ant2) represent the phases of the wireless carrier signal S1 received by antenna 1 and antenna 2 respectively, d is the distance between antenna 1 and antenna 2, and λ is the wavelength of the received wireless carrier signal S1.

[0077] However, as mentioned above, when the receiving antenna is a non-ideal antenna, the wireless carrier signal received by the non-ideal antenna is nonlinear, that is, its projection on the xy plane (viewed from the z-axis) does not have a triangular relationship, resulting in the absence of a triangular mapping relationship between the arrival phase difference determined by the incident angles of the two wireless carrier signals and the AOA arrival angle, that is, the AOA arrival angle cannot be directly obtained based on the triangular mapping relationship, and thus the relative direction of the transmitting device with respect to the receiving device cannot be determined.

[0078] In some embodiments, in order to solve the above problem, some solutions use the relationship between the polarization direction of the transmitting antenna, the arrival phase difference and the AOA arrival angle to determine the AOA arrival angle, rather than using a triangular mapping relationship to determine the AOA arrival angle. However, this solution may cause the final AOA arrival angle to be inaccurate in some scenarios. The solution process and the reasons for the inaccurate AOA arrival angle are described in detail as follows:

[0079] First, different reference functions can be set corresponding to different polarization directions of the antenna of the transmitting device, and the reference function can be used to characterize the mapping relationship between the AOA arrival angle and the arrival phase difference. It can be understood that when the polarization directions of the transmitting antenna are different, the arrival phase differences corresponding to the wireless carrier signals sent by the transmitting antennas with different polarization directions are also different.

[0080] Then, in the process of determining the AOA arrival angle, the polarization direction of the transmitting antenna may be determined first. The following describes a method for determining the polarization direction of the transmitting antenna.

[0081] In some embodiments, a dual-polarized antenna (as a receiving antenna) may be used to determine the polarization direction of the transmitting antenna. The dual-polarized antenna is composed of two mutually orthogonal vertical polarized antennas and a horizontal polarized antenna. After receiving the wireless carrier signal, the dual-polarized antenna can detect the energy of the wireless carrier signal received in the horizontal and vertical polarization directions respectively and subtract them to obtain the energy difference.

[0082] For example, the energy difference of the wireless carrier signal received by the dual-polarized antenna can be used to determine the polarization direction of the transmitting antenna. Specifically, for example, when the energy difference of the wireless carrier signal received by the two antennas of the dual-polarized antenna is within the first preset range, the polarization direction of the transmitting antenna is the horizontal polarization direction, when the energy difference of the wireless carrier signal received by the two antennas of the dual-polarized antenna is within the second preset range, the polarization direction of the transmitting antenna is the vertical polarization direction, and when the energy difference value received by the two antennas of the dual-polarized antenna is not within the first and second preset ranges, the polarization direction of the transmitting antenna is the 45° polarization direction.

[0083] Furthermore, based on the determined polarization direction of the transmitting antenna, the arrival phase difference of the wireless carrier signal received by the receiving antenna is used, and through a reference function corresponding to the polarization direction of the transmitting antenna, the AOA arrival angle is obtained based on the arrival phase difference.

[0084] However, in the above scheme, for the dual-polarized antenna, when the relative positions of the receiving device and the transmitting device remain unchanged, but the relative posture of transmission and reception between the transmitting device and the receiving device changes, the energy difference of the wireless carrier signal detected by the receiving antenna in the vertical polarization direction of the receiving device and the receiving antenna in the horizontal polarization direction of the receiving device is different. When the above method is used, different arrival phase differences will be determined, and then different AOA arrival angles will be obtained, that is, an erroneous positioning result that the relative positions of the two have changed will be obtained.

[0085] For example, Figure 4A (a) and Figure 4A (b) are schematic diagrams showing the polarization direction of the transmitting device antenna determined based on the energy difference of the wireless carrier signals received by the two antennas of the dual-polarized antenna when the relative position between the transmitting device and the receiving device remains unchanged but the relative postures of the transmitting and receiving devices are different.

[0086] like Figure 4A As shown in (a), taking the receiving device as a mobile phone 10 and the sending device as a headset 20 as an example, the receiving device is located directly in front of the sending device, the relative posture of transmission and reception between the sending device and the receiving device is the transmission and reception relative posture 1, the energy of the wireless carrier signal detected by the receiving antenna in the vertical polarization direction of the dual-polarized antenna is y1, and the energy of the wireless carrier signal detected by the receiving antenna in the horizontal polarization direction is x1, the polarization direction of the antenna of the sending device determined based on the energy difference between y1 and x1 is D1, and the detected arrival phase difference is φ(1).

[0087] like Figure 4A As shown in (b), taking the receiving device as a mobile phone 10 and the sending device as a headset 20 as an example, the receiving device is located directly in front of the sending device, the relative posture of transmission and reception between the sending device and the receiving device is the transmission and reception relative posture 2, the energy of the wireless carrier signal detected by the receiving antenna in the vertical polarization direction of the dual-polarized antenna is y2, and the energy of the wireless carrier signal detected by the receiving antenna in the horizontal polarization direction is x2, the polarization direction of the antenna of the sending device determined based on the energy difference between y2 and x2 is D2, and the detected arrival phase difference is φ(2).

[0088] It can be seen that due to the difference between the relative posture 1 and the relative posture 2, the polarization direction of the transmitting antenna determined by the receiving device is different, resulting in the arrival phase difference φ(1) and φ(2) obtained by the wireless carrier signal sent through the transmitting antenna in different polarization directions being different. It is impossible to determine which polarization direction is the true polarization direction of the transmitting device antenna, or both polarization directions are not the true polarization directions of the transmitting device antenna.

[0089] It can be understood that the energy of the wireless carrier signal refers to the size of the wireless carrier signal received by the receiving antenna, which can also be called the contribution ratio of the wireless carrier signal to the receiving antenna. The relative attitude of transmission and reception refers to the situation where the arrival phase difference detected by the antenna of the receiving device changes with the attitude of the receiving device while the attitude of the transmitting device remains unchanged.

[0090] Therefore, since the energy of vertical and horizontal polarization is affected as the relative posture of the transmitter and receiver changes, the accurate arrival phase difference cannot be determined based on the energy difference, resulting in inaccurate or erroneous AOA arrival angle obtained in the end.

[0091] In order to solve the above problems, an embodiment of the present application proposes a positioning method. In this method, the AOA arrival angle is determined based on the relative attitude of the sending and receiving of the sending device and the receiving device, the relative position (i.e., polarization direction) of the sending device and the receiving device, and the arrival phase difference of the wireless carrier signal received by the two antennas of the receiving device to achieve positioning.

[0092] In some embodiments, the current relative transmission and reception posture between the receiving device and the transmitting device can be determined based on the wireless signal of the transmitting device obtained by the electronic device at multiple positions with the same polarization directions, and the arrival phase difference can be determined based on multiple wireless carrier signals received by the receiving antenna under the current relative transmission and reception posture between the receiving device and the transmitting device. Finally, the AOA arrival angle is determined based on the arrival phase difference, thereby positioning the transmitting device.

[0093] In some embodiments, a mapping relationship between the corresponding arrival phase difference and the AOA arrival angle under different transceiver relative postures can be pre-established. For example, a mapping relationship between a first phase difference corresponding to a first transceiver relative posture and the AOA arrival angle, and a mapping relationship between a second phase difference corresponding to a second transceiver relative posture and the AOA arrival angle can be established. Among them, the mapping relationship between the arrival phase difference and the AOA arrival angle is different under different transceiver relative postures. After determining the current transceiver relative posture, the AOA arrival angle can be determined by the phase difference corresponding to the current transceiver relative posture and the mapping relationship between the phase difference and the AOA arrival angle.

[0094] In some embodiments, an attitude phase table under different relative attitudes of transmitting and receiving can be established to characterize the mapping relationship between the corresponding arrival phase difference and the AOA arrival angle under the above different relative attitudes of transmitting and receiving. Figure 5A In the example, the relative posture of transmission and reception is the relative posture of transmission and reception 51, and the arrival phase difference corresponding to the multiple wireless carrier signals received by the mobile phone 10 is detected under the relative posture of transmission and reception 51, and the corresponding posture phase table is established based on the current relative posture of transmission and reception 51, and the reference Figure 5B , the relative posture of sending and receiving 51 corresponds Figure 5B In the attitude phase table of the receiving and transmitting relative attitude 1, when the arrival phase difference is 2, the corresponding AOA arrival angle can be corresponding to 150°.

[0095] The following introduces the corresponding relationship between the relative posture of the sending and receiving of the sending device and the receiving device, the relative position of the receiving device relative to the sending device, and the arrival phase difference of the wireless carrier signal received by the two antennas of the receiving device:

[0096] When the relative positions of the transmitting device and the receiving device are different (for example, in the vertical polarization direction and the horizontal polarization direction respectively), that is, when the AOA arrival angles are different, for the same relative transmission and reception postures of the transmitting device and the receiving device, the arrival phase differences of the wireless carrier signals received by the two antennas of the receiving device are different. For example, Figure 4B As shown in (a), the headset 20 remains stationary and the mobile phone 10 is placed vertically at position 1. The detected arrival phase difference is Δφ1, and the AOA arrival angle of the two is φ1. Figure 4B As shown in (b), the mobile phone 10 is also placed vertically at position 2, and the arrival phase difference Δφ2 can be detected, and the AOA arrival angle of the two is φ1. However, the arrival phase difference Δφ1≠Δφ2, and the AOA arrival angle φ1≠φ1, that is, when the sending device and the receiving device are in different relative positions and the same relative posture of sending and receiving, their arrival phase differences are different.

[0097] When the relative positions of the transmitting device and the receiving device are the same, but the relative postures of the transmitting and receiving devices are different, the two antennas of the receiving device determine the accurate arrival phase difference and the corresponding AOA arrival angle based on the multiple wireless carrier signals received at different relative postures of the transmitting and receiving devices, and then determine the direction of the transmitting device relative to the receiving device. For example, Figure 4C In (a), the headset 20 remains stationary, the mobile phone 10 is placed vertically at position 1, and the detected arrival phase difference is Δφ1; Figure 4C In (b), the mobile phone 10 is at position 1. Compared with the above Figure 4CIn (a), the mobile phone 10 is placed vertically after being rotated clockwise, and the detected arrival phase difference is Δφ3, that is, the relative attitudes of the sending and receiving devices are different. At this time, the mobile phone 10 can determine the relative rotation angle caused by the change of the attitude of the mobile phone 10 based on the arrival phase difference Δφ1 and the arrival phase difference Δφ3, and then determine the accurate arrival phase difference based on the relative rotation angle and the received wireless carrier signal under different relative attitudes of sending and receiving, and then obtain the corresponding AOA arrival angle, and finally determine the direction of the headset 20 relative to the mobile phone 10. That is, when the sending device and the receiving device are in the same relative position and different relative attitudes of sending and receiving, the corresponding AOA arrival angle can be determined based on the arrival phase difference obtained by the receiving device under different relative attitudes of sending and receiving, and then determine the direction of the sending device relative to the receiving device.

[0098] It can be understood that in some embodiments, when the receiving antenna can detect the arrival phase difference respectively in different transmitting and receiving relative postures, when the difference between the two is small, for example, less than a certain preset arrival phase difference threshold, it can be considered that the AOA arrival angles of the two are the same.

[0099] It can be understood that in some embodiments, the arrival phase difference may be the same at different relative postures and relative positions of transmission and reception between the transmitting device and the receiving device, which is not limited here.

[0100] That is, from the above description, it can be concluded that for the same relative transmission and reception posture between the transmitting device and the receiving device, there is a corresponding relationship between the arrival phase difference of the wireless carrier signal received by the two antennas of the receiving device and the AOA arrival angle.

[0101] The method of establishing the attitude phase table is described below.

[0102] It can be understood that the process of establishing the attitude phase table can be obtained through experiments before the sending device or the receiving device leaves the factory, and then when the receiving device is used to determine the AOA arrival angle, the receiving device can directly obtain the attitude phase table.

[0103] It can be understood that when establishing the attitude phase table, the relative attitude of transmission and reception can be directly measured when setting the transmitting device and the receiving device at different attitudes, the AOA arrival angle can be directly measured under different setting of the transmission and reception relative attitudes, and the arrival phase difference can be directly measured under different setting of the transmission and reception relative attitudes.

[0104] In addition, it can be understood that the channel state information CSI of the wireless carrier signal includes phase information of the wireless carrier signal reaching the receiving antenna.

[0105] In some embodiments of the present application, in order to establish the attitude phase table, different relative attitudes of transmission and reception between the transmitting device and the receiving device can be manually set to establish the attitude phase table, such as Figure 5A As shown, when the relative position is constant, the postures of the transmitting device and the receiving device are manually set to obtain the transmitting and receiving relative postures 51 to 56 between the transmitting device and the receiving device, and the arrival phase difference and the AOA arrival angle under the transmitting and receiving relative postures 51 to 56 are measured respectively, and the posture phase table under the corresponding transmitting and receiving relative posture is established according to the mapping relationship between the measured arrival phase difference and the AOA arrival angle.

[0106] It can be understood that the attitude phase tables under different relative attitudes of the transmitter and receiver are different, and the AOA arrival angles corresponding to the arrival phase differences in different attitude phase tables are also different.

[0107] For example, Figure 5B The figure shows the attitude phase table when the relative attitude of the transmitter and receiver is the relative attitude 1, the relative attitude 2, and the relative attitude 3. It can be seen that the attitude phase tables under different relative attitudes of the transmitter and receiver are different, and the AOA arrival angles corresponding to the arrival phase differences in different attitude phase tables are also different.

[0108] For example, Figure 6 2 shows the mapping relationship between the arrival phase difference and the AOA arrival angle in the polarization attitude table of the transmitting and receiving relative attitude 1. It can be seen that for non-ideal antennas, there is not a one-to-one mapping relationship between each arrival phase difference and the AOA arrival angle.

[0109] It can be understood that the mapping relationship between the arrival phase difference and the AOA arrival angle in the attitude phase table of other receiving-transmitting relative attitude 2 or receiving-transmitting relative attitude 3 is the same as the above Figure 5B The mapping relationship between the arrival phase difference and the AOA arrival angle under the relative attitude 1 of the transmitter and receiver is different. Therefore, pre-establishing the attitude phase table under different relative attitudes of the transmitter and receiver can obtain a more accurate AOA arrival angle when obtaining the AOA arrival angle later.

[0110] The following describes the system architecture of the receiving device in obtaining the AOA arrival angle using the system architecture of the receiving device.

[0111] According to some embodiments of the present application, Figure 7 , a system architecture diagram for determining the AOA arrival angle at a receiving device end is shown, which may include an antenna module 780, a processor and a storage module 72. The processor may include an application processing module 71 and a modulation and demodulation module 73. Among them:

[0112] The antenna module 70 may include an antenna unit 701, which may include at least two antennas, and the antenna spacing may be 1 / 2λ. The antenna unit 701 may be used to receive a wireless carrier signal sent by an antenna of a transmitting device, and send the wireless carrier signal to the modulation and demodulation module 73.

[0113] The processor may be used to execute the positioning method mentioned in the embodiment of the present application, wherein the application processing module 71 in the processor may include a UI guidance unit 711 and a posture sensing unit 712. The UI guidance unit 711 of the receiving device may be used to prompt the user to move the receiving device to obtain the CSI of multiple wireless carrier signals in the UI interface of the receiving device; the posture sensing unit 712 may be used to monitor and identify the posture change of the receiving device in real time when the posture of the receiving device changes.

[0114] The storage module 72 can be used to store different attitude phase tables under different relative attitudes of transmission and reception. The attitude phase table can be used to characterize the mapping relationship between the arrival phase difference and the AOA arrival angle under different relative attitudes of transmission and reception.

[0115] The modem module 73 in the processor may include a relative posture recognition function unit 731 and an AOA estimation function unit 732.

[0116] The relative attitude function unit 731 may determine the current relative attitude of transmission and reception by comparing the CSI of the wireless carrier signal received by the antenna unit 701 with the different attitude phase tables in the storage module 72 .

[0117] The AOA estimation function unit 732 can determine the arrival phase difference under the above-determined relative attitude of the transmission and reception according to the CSI of the wireless carrier signal received by the antenna unit 701, and then search the corresponding attitude phase table in the storage module 72 based on the relative attitude of the transmission and reception; finally, the AOA arrival angle is determined by searching the attitude phase table based on the arrival phase difference, that is, Fig. 8A Schematic diagram of obtaining the AOA arrival angle is shown in FIG.

[0118] In order to understand how to determine the relative posture of sending and receiving, the following Figure 8B In the schematic diagram, the current relative posture of sending and receiving is taken as posture 1 as an example for explanation.

[0119] For example, Figure 8B In (a), after cross-correlating the CSI of attitude one with the attitude phase table of attitude one, it can be seen that the arrival phase difference is continuous, that is, the phase cross-correlation is high, so it can be determined that the attitude phase table is the attitude phase table of attitude one, that is, the current transmitting and receiving relative attitude is attitude one.

[0120] For example, Figure 8BIn (b), after cross-correlating the CSI of multiple wireless carrier signals received by the receiving antenna at attitude 1 with the attitude phase table at attitude 2, it can be seen that the continuity of the arrival phase difference is lower than the above Figure 8B (a), the phase cross-correlation is also lower than the above Figure 8B (a), so that it can be determined that the relative posture of transmission and reception corresponding to the posture phase table of posture two is not the relative posture of transmission and reception of the current posture one.

[0121] Similarly, Figure 8B (c) and Figure 8B In (d), after cross-correlating the CSI of multiple wireless carrier signals received by the receiving antenna at attitude 1 with the attitude phase tables of attitude 3 and attitude 4, it can be seen that Figure 8B (c) and Figure 8B The continuity of the arrival phase difference in (d) is worse, that is, the phase cross-correlation is lower, so it can be determined that the relative posture of transmission and reception corresponding to the posture phase table of posture three and posture four is not the relative posture of transmission and reception of posture one.

[0122] The method for determining the AOA arrival angle is described in detail below.

[0123] According to some embodiments of the present application, Fig. 9 A specific process diagram for determining the AOA arrival angle is shown in FIG.

[0124] include:

[0125] S101: Prompting a user through a UI interface of a receiving device to assist a mobile receiving device in acquiring CSIs of a plurality of wireless carrier signals received by a receiving antenna.

[0126] In order to obtain the CSI of multiple wireless carrier signals received by the receiving antenna, when the posture of the sending device remains unchanged, the prompt box 101 on the UI interface of the receiving device can prompt the user to change the posture of the mobile phone 10 to obtain the CSI of multiple wireless carrier signals, such as Fig.10 As shown, the prompt box 101 of the mobile phone 10 displays "A new wireless device headset 20 is detected. Do you want to adjust the posture of the phone to determine its direction" to prompt the user to determine whether to change the posture of the mobile phone 10 by moving the mobile phone 10. Then, the user clicks "Yes" and moves the mobile phone 10 to change the posture of the mobile phone 10, so that the mobile phone 10 can receive the CSI of multiple wireless carrier signals sent by the headset 20.

[0127] It can be understood that in the embodiment of the present application, the posture change of the receiving device is to obtain the CSI of multiple wireless carrier signals when the posture of the transmitting device is fixed, and the multiple CSIs are obtained based on the polarization direction of the receiving antenna inside the receiving device in the same polarization direction. Therefore, it is necessary to ensure that the polarization direction of the receiving antenna of the receiving device in the initial posture is consistent with the polarization direction of the receiving antenna after the posture change of the receiving device. The polarization direction of the receiving antenna of the receiving device is different when the receiving device is in different postures, so the mobile posture of the receiving device is divided into suitable posture and unsuitable posture.

[0128] For example, when the mobile phone 10 is placed in portrait orientation, the polarization direction of the internal preset receiving antenna is the vertical polarization direction. When the earphone 20 is fixed in a fixed posture, in order to obtain the CSI of multiple wireless carrier signals, the mobile phone 10 needs to control the internal receiving antenna of the mobile phone 10 to remain in the vertical polarization direction under different moving postures, thereby ensuring that the CSI of multiple wireless carrier signals are obtained based on the polarization direction of the receiving antenna of the mobile phone 10 being the vertical polarization direction.

[0129] It can be understood that when a receiving device, such as a mobile phone 10, is placed in portrait orientation, the polarization direction of its receiving antenna can also be preset to be a horizontal polarization direction, which is not limited here.

[0130] In order to understand whether the posture of the receiving device after moving is suitable for posture or not, Fig.11 A schematic diagram of suitable postures and unsuitable postures is shown. In which, taking the mobile phone 10 as the receiving device, when it is placed in portrait orientation, the electric field direction of its receiving antenna is perpendicular to the ground, so the polarization direction of the receiving antenna of the mobile phone 10 is the vertical polarization direction. In which:

[0131] When the posture of the mobile phone 10 rotates in the Y-axis direction, that is, the mobile phone 10 rotates clockwise / counterclockwise, the polarization direction of the antenna of the mobile phone 10 is still the vertical polarization direction. Because the polarization direction of the receiving antenna of the mobile phone 10 does not change with the change of the posture of the mobile phone 10, it means that the posture moved is a suitable posture.

[0132] It can be understood that the suitable moving postures of the mobile phone 10 may include up and down translation, left and right translation, diagonal up and down translation, clockwise rotation along the center, counterclockwise rotation, etc. Fig. 12A Schematic diagram of the moving posture of the mobile phone 10 is shown.

[0133] When the posture of the mobile phone 10 is tilted forward or backward in the Z-axis direction, or when the posture of the mobile phone 10 is tilted left or right in the X-axis direction, the polarization direction of the receiving antenna of the mobile phone 10 changes from the vertical polarization direction to the horizontal polarization direction. Because the polarization direction of the receiving antenna of the mobile phone 10 changes with the posture of the mobile phone 10, it means that the moving posture is an inappropriate posture.

[0134] It is understood that the unsuitable postures of the mobile phone 10 may include front-to-back translation, left-to-right tilting, front-to-back tilting, etc. Fig. 12B The schematic diagram of the moving posture of the mobile phone 10 shown is not limited here.

[0135] In some embodiments, after the user is prompted by the UI prompt box 101 of the mobile phone 10 to click "Yes" to confirm to assist in moving the mobile phone 10, the user can be instructed to assist in moving the mobile phone 10 to a reference mobile posture, and then obtain the CSI of multiple wireless carrier signals received by the receiving antenna of the mobile phone 10 when the mobile phone 10 is in the reference mobile posture.

[0136] For example, Fig.13A (a) is a schematic diagram of the UI interface, in which a prompt box 102 prompts the user to move the mobile phone 10 left or right in the vertical screen state. The moving process diagram is shown in FIG. Fig. 13B (a);

[0137] For example, Fig.13A (b) is a schematic diagram of a UI interface, in which a prompt box 103 prompts the user to rotate the mobile phone 10 clockwise or counterclockwise in the vertical position. The moving schematic diagram is shown in FIG. Fig. 13B (b).

[0138] Then, when the mobile phone 10 is in the above-mentioned reference moving posture, the CSI of multiple wireless carrier signals received by the receiving antenna of the mobile phone 10 is obtained.

[0139] It can be understood that the reference moving posture can also be other postures that are consistent with the polarization direction of the receiving antenna of the mobile phone 10 in the initial posture, which is not limited here.

[0140] In some embodiments, after the user is prompted to click "Yes" to confirm the auxiliary movement of the mobile phone 10 through the UI prompt box 101 of the mobile phone 10, the user can be instructed to move the mobile phone 10 to any posture. Fig.14A In the UI interface diagram, the prompt box 104 prompts the user to move the mobile phone 10 arbitrarily to change the posture of the mobile phone 10.

[0141] For example, refer to Fig. 14B Schematic diagram of the movement process, the initial posture of the mobile phone 10 is posture 140. When the user arbitrarily moves the mobile phone 10 to change the posture of the mobile phone 10, the posture sensing unit 712 in the mobile phone 10 can monitor the real-time posture of the mobile phone 10 in real time, filter out unsuitable postures, such as postures 141 to 145, and retain suitable postures, such as postures 146 to 151, that is, the polarization direction of the receiving antenna of the mobile phone 10 in postures 146 to 151 is consistent with the polarization direction of the receiving antenna of the mobile phone 10 in the initial posture.

[0142] Then, when the mobile phone 10 is in the above-mentioned appropriate mobile posture reference mobile posture 146 to posture 151, the CSI of multiple wireless carrier signals received by the receiving antenna of the mobile phone 10 is obtained.

[0143] It is understandable that the above Fig. 13B and 14B The moving posture of the mobile phone 10 shown is only an example. In some other embodiments, the mobile phone 10 can also be in other moving postures, which are not limited here.

[0144] S102: Based on each attitude phase table and the CSI of each wireless carrier signal, an angle spectrum corresponding to each wireless carrier signal is obtained.

[0145] In some embodiments, after obtaining CSI of multiple wireless carrier signals received by the receiving antenna in the same polarization direction, the angle spectrum of the incident angle generated when each wireless carrier signal reaches the receiving antenna is obtained through each attitude phase table and the CSI of each wireless carrier signal.

[0146] For example Fig.15 In (a), when the receiving device mobile phone 10 is placed vertically and the internal receiving antenna of the mobile phone 10 is in the vertical polarization direction, the angle spectrum of the incident angle generated when each wireless carrier signal reaches the receiving antenna is obtained through the above-mentioned pre-established posture phase table and the CSI of each wireless carrier signal obtained by the receiving antenna in the vertical polarization direction.

[0147] Another example Fig.15 In (b), when the receiving device mobile phone 10 is placed horizontally and the internal receiving antenna of the mobile phone 10 is in the horizontal polarization direction, the angle spectrum of the incident angle generated when each wireless carrier signal reaches the receiving antenna is obtained through the above-mentioned pre-established posture phase table and the CSI of each wireless carrier signal obtained by the receiving antenna in the horizontal polarization direction.

[0148] S103: The angle spectra corresponding to the multiple wireless carrier signals are integrated through the attitude phase table, and the receiving-transmitting relative attitude table corresponding to the angle spectrum with the highest correlation is selected to determine the current receiving-transmitting relative attitude.

[0149] In some embodiments, the angle spectrum of the incident angle generated when each wireless carrier signal reaches the receiving antenna under the same polarization direction is fused into a final angle spectrum using each attitude phase table. For example, the angle spectrum corresponding to the multiple wireless carrier signals obtained by fusing multiple attitude phase tables with the above-mentioned multiple wireless carrier signals is obtained to obtain multiple corresponding fused angle spectrum diagrams. The attitude phase table corresponding to the angle spectrum diagram with the highest correlation is selected as the attitude phase table under the current relative attitude of transmission and reception, and the relative attitude of transmission and reception corresponding to the attitude phase table is the current relative attitude of transmission and reception.

[0150] S104: Obtain the arrival phase difference under the current relative attitude of transmitting and receiving, and search the attitude phase table corresponding to the current relative attitude of transmitting and receiving based on the arrival phase difference to obtain the AOA arrival angle.

[0151] In some embodiments, based on the above determination that the current transmit-receive relative posture is transmit-receive relative posture 4, the arrival phase difference is obtained based on the CSI of the wireless carrier signal received by the receiving antenna under the transmit-receive relative posture 4, and then the corresponding AOA arrival angle is searched in the posture phase table 4 based on the arrival phase difference.

[0152] S105: Detect the change of the relative posture of the transmitter and the receiver in real time and update the relative posture of the transmitter and the receiver and the AOA arrival angle.

[0153] In some embodiments, when the attitude of the receiving device changes, resulting in a change in the relative attitude of the transmitting and receiving, the relative attitude of the transmitting and receiving can be re-determined based on the above step S101, and then the AOA arrival angle can be re-determined based on steps S102 to S104.

[0154] In some embodiments, when the user assists in moving the receiving device, the receiving device may instruct the user to move the receiving device to a target moving posture, wherein the target moving posture may be one or more. The following describes the process of determining the AOA arrival angle in this scenario. Fig.16 As shown in the figure, the specific process of determining the AOA arrival angle includes:

[0155] S201: Instructing a user through a UI interface of a receiving device to assist in moving the receiving device to a target moving posture to obtain CSIs of multiple wireless carrier signals received by a receiving antenna when the receiving device is in the target moving posture.

[0156] In some embodiments, after the user is prompted by the UI prompt box 101 of the mobile phone 10 to click "Yes" to confirm to assist in moving the mobile phone 10, the user can be instructed to assist in moving the mobile phone 10 to the target moving posture, and then obtain the CSI of multiple wireless carrier signals received by the receiving antenna when the receiving device is in the target moving posture.

[0157] For example, Fig.13A (a) is a schematic diagram of the UI interface, in which a prompt box 102 prompts the user to move the mobile phone 10 left or right in the vertical screen state. The moving process diagram is shown in FIG. Fig. 13B (a);

[0158] For example, Fig.13A (b) is a schematic diagram of a UI interface, in which a prompt box 103 prompts the user to rotate the mobile phone 10 clockwise or counterclockwise in the vertical position. The moving schematic diagram is shown in FIG. Fig. 13B (b).

[0159] Then, when the mobile phone 10 is in the above-mentioned target moving posture, the CSI of multiple wireless carrier signals received by the receiving antenna of the mobile phone 10 in the target moving posture is obtained.

[0160] It is understandable that in some other embodiments, the UI prompt box of the receiving device may also be used to instruct the user to assist in moving the receiving device to other target movement postures, which is not limited here.

[0161] S202: Based on each attitude phase table and the CSI of each wireless carrier signal received by the receiving antenna of the receiving device when the receiving device is in the target attitude, obtain an angle spectrum corresponding to each wireless carrier signal.

[0162] In some embodiments, when the receiving device is in a target mobile posture, the receiving antenna of the receiving device also obtains the CSI of each wireless carrier signal when the receiving device is in the target mobile posture, and then obtains the angular spectrum of the incident angle generated when each wireless carrier signal reaches the receiving antenna through each posture phase table and the obtained CSI of the wireless carrier signal.

[0163] S203: The angle spectrum corresponding to multiple wireless carrier signals obtained when the receiving device is in the target attitude is integrated through the attitude phase table, and the receiving-transmitting relative attitude table corresponding to the angle spectrum with the highest correlation is selected to determine the current receiving-transmitting relative attitude.

[0164] In some embodiments, each attitude phase table is used to fuse the angle spectrum corresponding to each wireless carrier signal received by the receiving antenna when the receiving device is in the target attitude into a final angle spectrum, and the receiving and transmitting relative attitude corresponding to the angle spectrum with the highest correlation is used as the current receiving and transmitting relative attitude.

[0165] S204: Obtain the arrival phase difference under the current transmitting and receiving relative attitude, and search the attitude phase table corresponding to the current transmitting and receiving relative attitude based on the arrival phase difference to obtain the AOA arrival angle.

[0166] In some embodiments, based on the above-determined transmit-receive relative posture, the arrival phase difference is obtained based on the CSI of the wireless carrier signal received by the receiving antenna under the transmit-receive relative posture, and then the corresponding AOA arrival angle is searched in the posture phase table corresponding to the current transmit-receive relative posture based on the arrival phase difference.

[0167] In some embodiments, when the user assists in moving the receiving device, the user can arbitrarily move the receiving device to any posture. The following is an introduction to the process of estimating the AOA arrival angle in this scenario. Fig.17 As shown, the specific process includes:

[0168] S301: Instructing a user through a UI interface of a receiving device to assist in moving the receiving device to any posture to obtain CSIs of multiple wireless carrier signals received by a receiving antenna.

[0169] In some embodiments, after the user is prompted to click "Yes" to confirm the auxiliary movement of the mobile phone 10 through the UI prompt box 101 of the mobile phone 10, the user can be instructed to move the mobile phone 10 to any posture. Fig.14A In the UI interface diagram, the prompt box 104 prompts the user to move the mobile phone 10 arbitrarily to change the posture of the mobile phone 10.

[0170] For example, refer to Fig. 14B Schematic diagram of the movement process, the initial posture of the mobile phone 10 is posture 140. When the user arbitrarily moves the mobile phone 10 to change the posture of the mobile phone 10, the posture sensing unit 712 in the mobile phone 10 can monitor the real-time posture of the mobile phone 10 in real time, filter out unsuitable postures, such as postures 141 to 145, and retain suitable postures, such as postures 146 to 151, that is, the polarization direction of the receiving antenna of the mobile phone 10 in postures 146 to 151 is consistent with the polarization direction of the receiving antenna of the mobile phone 10 in the initial posture.

[0171] Then, when the mobile phone 10 is in the above-mentioned appropriate mobile posture reference mobile posture 146 to posture 151, the CSI of multiple wireless carrier signals received by the receiving antenna of the mobile phone 10 is obtained.

[0172] It is understandable that the above Fig. 13B and 14B The moving posture of the mobile phone 10 shown is only an example. In some other embodiments, the mobile phone 10 can also be in other moving postures, which are not limited here.

[0173] S302: Based on each posture phase table and the CSI of each wireless carrier signal received by the receiving antenna of the receiving device when the receiving device is in a suitable mobile posture, obtain an angle spectrum corresponding to each wireless carrier signal.

[0174] In some embodiments, when the receiving device is in a suitable mobile posture, the receiving antenna of the receiving device also obtains the CSI of each wireless carrier signal when the receiving device is in a suitable mobile posture, and then obtains the angular spectrum of the incident angle generated when each wireless carrier signal reaches the receiving antenna through each posture phase table and the obtained CSI of the wireless carrier signal.

[0175] S303: The angle spectrum corresponding to multiple wireless carrier signals obtained when the receiving device is in the target attitude is integrated through the attitude phase table, and the receiving-transmitting relative attitude table corresponding to the angle spectrum with the highest correlation is selected to determine the current receiving-transmitting relative attitude.

[0176] In some embodiments, each attitude phase table is used to merge the angle spectrum corresponding to each wireless carrier signal received by the receiving antenna when the receiving device is in a suitable mobile attitude into a final angle spectrum, and the receiving and transmitting relative attitude corresponding to the angle spectrum with the highest correlation is used as the current receiving and transmitting relative attitude.

[0177] S304: Obtain the arrival phase difference under the current relative attitude of transmission and reception, and search the attitude phase table corresponding to the current relative attitude of transmission and reception based on the arrival phase difference to obtain the AOA arrival angle.

[0178] In some embodiments, based on the above-determined transmit-receive relative posture, the arrival phase difference is obtained based on the CSI of the wireless carrier signal received by the receiving antenna under the transmit-receive relative posture, and then the corresponding AOA arrival angle is searched in the posture phase table corresponding to the current transmit-receive relative posture based on the arrival phase difference.

[0179] In some embodiments, when the relative posture of the sending and receiving devices between the sending device and the receiving device is continuously changing, the posture change information or position change information of the mobile phone 10 can be dynamically detected by the sensor in the receiving device, and the subsequent relative posture of the sending and receiving can be determined based on the posture change information or position change information and the relative posture of the sending and receiving before the posture or position change has been determined. The following introduces how to obtain the relative posture of the sending and receiving in this scenario. Fig.18 As shown, the specific process includes:

[0180] It can be understood that the sensor can be an acceleration sensor, a position sensor, etc., which can be used to dynamically monitor the posture changes of the receiving device. In other embodiments, the sensor can also be other sensors that can be used to dynamically monitor the posture changes of the receiving device, which is not limited here.

[0181] S401: Prompting a user through a UI interface of a receiving device to assist a mobile receiving device in acquiring CSIs of multiple wireless carrier signals received by a receiving antenna.

[0182] It can be understood that step S401 can refer to steps S101, S201, and S301, which will not be repeated here.

[0183] S402: Based on each attitude phase table and the CSI of each wireless carrier signal, an angle spectrum corresponding to each wireless carrier signal is obtained.

[0184] It can be understood that step S402 can refer to steps S102, S202, and S302, which will not be repeated here.

[0185] S403: Integrate the multi-angle channel state information of the receiving device during movement to determine the current relative posture of transmission and reception.

[0186] It can be understood that step S403 can refer to steps S103, S203, and S303, which will not be repeated here.

[0187] S404: Detect that the posture of the receiving device continues to change, use a sensor to dynamically monitor the posture change information of the receiving device, and re-determine the current sending and receiving relative posture based on the previous sending and receiving relative posture and posture change information.

[0188] In some embodiments, when the posture of the receiving device continues to change, the sensor of the receiving device can use the last relative posture of transmission and reception as a reference to re-monitor the posture change information of the receiving device during the posture change process. Fig.19 As shown, during the posture change process of the mobile phone 10, the sensor of the receiving device can dynamically track the posture change information of the current moving posture of the receiving device, wherein the sensor of the mobile phone 10 detects that the posture movement of the receiving device moves from posture 1 to posture 5, and promptly feeds back the change in the relative posture of the receiving and transmitting caused by the posture change of the receiving device to the relative posture recognition unit 731, so that the current relative posture of the receiving and transmitting of the receiving device can be updated in time.

[0189] S405: Based on the relative attitude of the transmitter and receiver detected in real time by the sensor, the arrival phase difference under each relative attitude of the transmitter and receiver is obtained in real time, and the attitude phase table is searched based on each arrival phase difference to obtain the AOA arrival angle.

[0190] In some embodiments, based on each transceiver relative posture detected by the sensor in real time, the CSI of the wireless carrier signal received by the receiving antenna under each transceiver relative posture is obtained in real time to obtain the arrival phase difference, and then the corresponding AOA arrival angle is searched in the posture phase table corresponding to each transceiver relative posture based on the arrival phase difference.

[0191] By using the sensor of the receiving device to detect the posture changes of the receiving device in real time and update the relative posture of the receiving device in time, the convenience is improved to a certain extent, so that there is no need to frequently assist the mobile receiving device to change its posture, thereby improving the user experience.

[0192] In some embodiments, when the receiving device detects that the posture of the sending device has changed, resulting in a change in the relative posture of the sending and receiving, the receiving device can re-prompt the user through the UI interface to assist in moving the posture of the receiving device. The following is an introduction to the process of estimating the AOA arrival angle in this scenario. Fig. 20 As shown, the specific process includes:

[0193] S501: Prompting a user through a UI interface of a receiving device to assist a mobile receiving device in acquiring CSIs of multiple wireless carrier signals received by a receiving antenna.

[0194] S502: Based on each attitude phase table and the CSI of each wireless carrier signal, obtain an angle spectrum corresponding to each wireless carrier signal.

[0195] S503: The angle spectra corresponding to the multiple wireless carrier signals are integrated through the attitude phase table, and the receiving-transmitting relative attitude table corresponding to the angle spectrum with the highest correlation is selected to determine the current receiving-transmitting relative attitude.

[0196] It can be understood that steps S501 to S503 may refer to the above steps S301 to S303 or steps S401 to S403, which will not be described in detail here.

[0197] S504: The receiving device detects that the posture change of the sending device causes the relative posture of sending and receiving to change, and the receiving device prompts the user again through the UI interface to assist in moving the posture of the receiving device.

[0198] In some embodiments, the posture sensing unit 712 in the receiving device detects that the posture of the sending device has changed significantly, such as Fig.21 As shown in the schematic diagram of the change of the headset 20 posture, the headset 20 of the sending device changes from a vertical posture to a horizontal posture and a tilted posture, resulting in a change in the relative posture of the sending and receiving between the mobile phone 10 and the headset 20. In order to obtain the relative posture of the sending and receiving between the sending device and the receiving device after the sending device posture changes, the following method can be used: Fig. 22 The UI interface of the mobile phone 10 shown in the figure indicates in the prompt box 105 that "the posture change of the wireless device headset 20 is detected, and the posture of the local device is readjusted", which instructs the user to click "Yes" and repeat the above steps S501 to S503 to redetermine the current relative posture of sending and receiving.

[0199] S505: Obtain the arrival phase difference under the current relative attitude of transmitting and receiving, and search the attitude phase table corresponding to the current relative attitude of transmitting and receiving based on the arrival phase difference to obtain the AOA arrival angle.

[0200] It can be understood that step S505 can refer to steps S105, S204, and S304 and will not be described in detail here.

[0201] It can be understood that, through the method provided in the present application, accurate relative posture of transmission and reception can be obtained under different types of receiving antenna combinations.

[0202] For example Fig.23 , showing a schematic diagram of the success rate of detecting the accurate relative posture of transmission and reception between a transmitting device and a receiving device by the method provided by the present application under different receiving antenna combinations.

[0203] Among them, in the test environment of a 5mX5m conference room, the relative postures of transmission and reception between the transmitting device and the receiving device are detected under different types of receiving antenna combinations. The receiving device is fixed upright, that is, its receiving antenna RX is in the vertical polarization direction, and the transmitting antenna TX of the transmitting device steps from the vertical polarization direction to the horizontal polarization direction.

[0204] When the transmitting antenna steps from the vertical polarization direction to the horizontal polarization direction at degree #5 (30:25;130), it means that the transmitting antenna steps from the vertical polarization direction to the horizontal polarization direction at an initial angle of 5° at every 25°, and its stepping range includes (30°, 55°, 80°, 105°, 130°). At this time, the success rate of obtaining the accurate relative attitude of transmission and reception under two receiving antennas of the same type is 0.3; the success rate of obtaining the accurate relative attitude of transmission and reception under two receiving antennas of different types is about 0.58; the success rate of obtaining the accurate relative attitude of transmission and reception under four non-receiving antennas is about 1.

[0205] When the transmitting antenna steps from the vertical polarization direction to the horizontal polarization direction at degree#13 (30:10;150), it means that when the transmitting antenna steps from the vertical polarization direction to the horizontal polarization direction at an initial angle of 5° and every 10°, the maximum stepping range is 150°, which is larger than the maximum stepping range of 130° mentioned above. At this time, the success rate of obtaining the accurate relative attitude of the transmitter and receiver under two receiving antennas of the same type is 0.3; the success rate of obtaining the accurate relative attitude of the transmitter and receiver under two receiving antennas of different types is about 1; the success rate of obtaining the accurate relative attitude of the transmitter and receiver under four non-receiving antennas is about 1;

[0206] It can be seen that when the sending device moves at different angles, whether using two same-type / different-type receiving antennas or four same-type / different-type receiving antennas, the method provided in this application can detect the accurate relative posture of sending and receiving between the sending device and the receiving device with a high success rate.

[0207] It can be understood that the transmitting antenna TX can be a microwave antenna, for example, a Horn Antenna microwave antenna, which is not limited here.

[0208] It can be understood that the receiving antenna can be a combination of two antennas of the same or different types, or a combination of four antennas of the same or different types. For example, the receiving antenna RX can be a Harvard H6 planar inverted F-shaped antenna (PIFA) or a patch antenna, etc., which is not limited here.

[0209] It can be understood that during the test, the test frequency can be WiFi 5G Channel 48 5.24GHz 20M BW, or other test frequencies, which are not limited here.

[0210] Through the embodiments of the present application, by pre-acquiring the correct attitude phase table under each transmitting and receiving relative attitude, the influence of the polarization characteristics of the non-ideal antenna on the arrival phase difference and the influence of the transmitting and receiving relative attitude on the mapping relationship between the arrival phase difference and the AOA arrival angle are solved, thereby improving the accuracy of the results of obtaining the AOA arrival angle.

[0211] further, Fig.24 According to some embodiments of the present application, a schematic structural diagram of a mobile phone 10 is shown.

[0212] like Fig.24 As shown, the mobile phone 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, a communication device 196, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc. Among them:

[0213] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0214] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0215] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 may store the stored data of the attitude phase table just used or cyclically used by the processor 110. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0216] In some embodiments, the processor 110 can be used to execute instructions corresponding to the azimuth angle determination method provided in each embodiment of the present application, and detect the posture of the mobile phone 10 in real time when the operation of the user's mobile phone is detected.

[0217] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the mobile phone 10, and can also be used to transfer data between the mobile phone 10 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0218] The charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also power the electronic device through the power management module 141 .

[0219] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.

[0220] The wireless communication function of the mobile phone 10 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0221] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals, that is, wireless carrier information.

[0222] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 10. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.

[0223] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and ultra wide band (UWB) for application on the mobile phone 10. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 can receive electromagnetic waves from the antenna 2, and filter, amplify and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The wireless communication module 160 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, the antenna 2 of the mobile phone 10 can receive the wireless carrier signal sent by the headset 20.

[0224] The mobile phone 10 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0225] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the mobile phone 10 can prompt the user to move the mobile phone 10 to change its posture through a display frame in the display screen.

[0226] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 10 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0227] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 10. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0228] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions, such as the aforementioned memory 103. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, at least one application required for a function, etc. The data storage area may store data created during the use of the mobile phone 10, etc., for example, it may be used to store a control identifier of a security control, a screenshot redrawing strategy identifier corresponding to the security control, and a pattern, image, text, etc. corresponding to the screenshot redrawing strategy. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications of the mobile phone 10 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor 110. In some embodiments, the above-mentioned attitude phase table may be stored in the memory of the mobile phone 10.

[0229] The mobile phone 10 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

[0230] The acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 10 in various directions (generally three axes). When the mobile phone 10 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, to determine whether the mobile phone 10 is in a horizontal screen state, and for applications such as pedometers. In some embodiments, the acceleration sensor can detect the posture of the mobile phone 10 in real time during movement.

[0231] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the mobile phone 10, which is different from the position of the display screen 194. In some embodiments, when the touch screen detects the user's operation on the touch screen, it can be sent to the processor 110 to trigger the function of detecting the posture of the mobile phone receiving device mobile phone 10 provided in the embodiment of the present application.

[0232] The motor 191 can generate a vibration prompt. In some embodiments, when the mobile phone 10 prompts the user to move the mobile phone 10 to change its posture through a prompt box, the vibration prompt can be accompanied by the prompt box.

[0233] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

[0234] The SIM card interface 195 is used to connect a SIM card.

[0235] It is understood that the structure of the mobile phone 10 shown in the embodiment of the present application does not constitute a specific limitation on the mobile phone 10. In other embodiments of the present application, the mobile phone 10 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0236] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0237] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0238] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0239] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0240] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0241] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0242] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also 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 "includes one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0243] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. A positioning method, characterized in that: include: The antenna of the first electronic device receives a plurality of first wireless signals sent by the second electronic device; The first electronic device determines, based on the plurality of the first wireless signals, a first transmitting and receiving relative posture of the second electronic device relative to the first electronic device; The first electronic device acquires a first mapping relationship corresponding to the first transceiver relative posture, wherein the first mapping relationship includes a mapping relationship between arrival phase differences and corresponding arrival angles of multiple wireless signals received by the first electronic device under the first transceiver relative posture; The first electronic device determines, from the first mapping relationship, a first arrival angle corresponding to a first wireless signal received by the first electronic device in the first transmitting and receiving relative posture; The first electronic device determines a positioning result based on the first arrival angle.

2. The method according to claim 1, characterized in that The first electronic device determines, based on the plurality of the first wireless signals, a first transmitting and receiving relative posture of the second electronic device relative to the first electronic device, including: The first electronic device acquires a second wireless signal based on the plurality of the first wireless signals; The first electronic device determines a first transmitting and receiving relative posture of the first electronic device based on the second wireless signal, wherein the second wireless signal is at least one of the first wireless signals with the same polarization direction among the plurality of the first wireless signals.

3. The method according to claim 2, characterized in that The second wireless signal includes phase information of the second wireless signal; The first electronic device determines, based on the second wireless signal, a first transmitting and receiving relative posture of the second electronic device relative to the first electronic device, including: The first electronic device acquires an angle spectrum corresponding to the second wireless signal based on the phase information of the second wireless signal; A first transmitting and receiving relative posture of the first electronic device is acquired based on an angular spectrum corresponding to the second wireless signal.

4. The method according to claim 3, characterized in that The acquiring the first transmitting and receiving relative posture of the first electronic device based on the angular spectrum corresponding to the second wireless signal includes: The first transmitting and receiving relative posture is acquired based on the first mapping relationship and an angle spectrum corresponding to at least one of the second wireless signals.

5. The method according to any one of claims 1 to 4, characterized in that: The first electronic device identifies a first arrival angle corresponding to the first wireless signal from the first mapping relationship, including: The first electronic device determines a first arrival angle corresponding to the first wireless signal from the first mapping relationship based on the arrival phase difference corresponding to the first transmitting and receiving relative posture.

6. The method according to any one of claims 1 to 4, characterized in that: The method further includes the first electronic device issuing a first prompt, the first prompt being used to prompt a user to change the first electronic device from a first posture to at least one second posture; The antenna of the first electronic device receives a plurality of first wireless signals sent by the second electronic device, including: When the first electronic device is in at least one of the second postures, the antenna of the first electronic device receives a plurality of first wireless signals sent by the second electronic device.

7. The method according to claim 1, characterized in that The method further comprises: The first electronic device detects that the second electronic device moves from a first position to a second position; The first electronic device receives a plurality of third wireless signals sent by the second electronic device at the second location.

8. The method according to claim 7, characterized in that The first electronic device detects that the second electronic device moves from a first position to a second position, including: When the first electronic device detects that the difference between the first arrival angle obtained at the first moment and the second arrival angle obtained at the second moment is greater than a preset threshold when the position of the first electronic device remains unchanged, it determines that the second electronic device has been detected moving from the first position to the second position.

9. The method according to any one of claims 1 to 4, characterized in that: The method also includes: the first electronic device determining a second transmitting and receiving relative posture based on a position sensor and the first transmitting and receiving relative posture.

10. The method according to claim 9, characterized in that The first electronic device determines a second transmitting and receiving relative posture based on a position sensor and the first transmitting and receiving relative posture, including: The first electronic device acquires the position change information of the first electronic device based on the position sensor; The first electronic device determines the second relative posture for transmitting and receiving based on the first relative posture for transmitting and receiving and position change information of the first electronic device.

11. A positioning device, characterized in that: include: an antenna unit, comprising at least two antennas, for receiving a plurality of first wireless signals sent by a second electronic device; A processor, configured to execute instructions so that the first electronic device implements the positioning method described in any one of claims 1 to 10; The processor includes an application processing module and a modulation and demodulation module, wherein: The application processing module is used to prompt the user to change the posture of the first electronic device and identify the changed posture of the first electronic device; The modulation and demodulation module is used for: Determine a first transmitting and receiving relative posture of the second electronic device relative to the first electronic device based on the plurality of the first wireless signals; Acquire a first mapping relationship corresponding to the first transceiver relative posture, wherein the first mapping relationship includes a mapping relationship between arrival phase differences and corresponding arrival angles of multiple wireless signals received by the first electronic device under the first transceiver relative posture; Determining, from the first mapping relationship, a first angle of arrival corresponding to a first wireless signal received by the first electronic device in the first transmitting and receiving relative posture; A positioning result is determined based on the first angle of arrival.

12. An electronic device, characterized in that: Includes the positioning device according to claim 11.

13. An electronic device, characterized in that: including a memory for storing instructions; A processor is used to execute the instructions so that the electronic device implements the positioning method described in any one of claims 1-10.

14. A readable storage medium, characterized in that: The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the positioning method according to any one of claims 1 to 10.