This application is based on and claims priority to Chinese Patent Application No. 202311283500.6 filed on Sep. 28, 2023, the entire contents of which are incorporated herein by reference for all purposes.
For current wireless communication devices, it needs manual configuration in an interface by a user or a proprietary action applied to the device by the user or a special hardware design or a peripheral supporting design to complete relative position determination between the wireless communication devices, and thus there are problems such as an inconvenient user implementation, a poor user experience, a high deployment cost, and a limited application scenario.
The present disclosure relates to the field of communications, more particularly to a method for determining a relative position, a communication device, a storage medium, and a wireless communication system.
Embodiments of a first aspect of the present disclosure propose a method for determining a relative position, the method is performed by a first wireless communication device, the first wireless communication device includes two or more antennas, and the method includes: determining a relative position of a second wireless communication device according to a phase difference between the same subcarriers received by the two or more antennas, in which the subcarrier is configured to carry a signal sent by the second wireless communication device, and a plurality of subcarriers are provided.
Embodiments of a second aspect of the present disclosure propose an apparatus for determining a relative position, and the apparatus is arranged on a first wireless communication device, and includes: a determining module configured to determine a relative position of a second wireless communication device according to a phase difference between the same subcarriers received by two or more antennas, in which the subcarrier is configured to carry a signal sent by the second wireless communication device, and a plurality of subcarriers are provided.
Embodiments of a third aspect of the present disclosure propose a communication device, which includes: a transceiver; a memory; and a processor connected with the transceiver and the memory respectively, configured to control wireless signal transmission and reception of the transceiver by executing computer-executable instructions on the memory, and capable of realizing the method described in the embodiments of the first aspect of the present disclosure.
Embodiments of a fourth aspect of the present disclosure propose a non-transitory computer-readable storage medium stored with computer instructions, in which the computer instructions are configured to cause a computer to perform the method described in the embodiments of the first aspect of the present disclosure.
Embodiments of a fifth aspect of the present disclosure propose a wireless communication system, which includes a first wireless communication device and a second wireless communication device, in which the first wireless communication device is configured to perform the method described in the embodiments of the first aspect of the present disclosure.
It should be understood that both the forgoing general descriptions and the following detailed descriptions are exemplary and explanatory only, and are not restrictive of the present disclosure.
The drawings herein are incorporated into the specification and form a part of the specification, show embodiments that comply with the present disclosure, are used to explain the principles of the present disclosure together with the specification, and do not constitute improper limitations on the present disclosure.
Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, in which the same or similar numbers from beginning to end indicate the same or similar elements or elements having the same or similar functions. The following embodiments described with reference to the accompanying drawing are illustrative. It should be understood that the embodiments described are intended to explain the present disclosure, but not to limit the present disclosure.
In order to facilitate the understanding of the solution of the present disclosure, the related art involved in the present disclosure is described below.
When an existing product is operated on a plurality of screens, a user needs to manually perform the following operations to indicate left and right screens: the user needs to manually configure a relative position between two devices in an interface, and if the position between the two devices changes, the user needs to perform the manual setting again, thus resulting in a poor user experience; and, the user also needs to apply a proprietary action to the device in a special direction, which is inconvenient to operate and results in the poor user experience.
At present, the general methods for determining the relative position between the wireless communication devices further include: Angle of Arrival (AoA)/Angle of Departure (AoD) positioning, Wireless Local Area Network (WLAN) and Channel State Information (CSI) positioning, and measurement-assisted positioning via a server or a plurality of wireless access points, etc.
However, the AoA/AoD positioning requires a special hardware design or a peripheral supporting design, which has a high cost, and cannot be realized on the stock of WLAN wireless devices through software upgrades. For example, the AoA/AoD positioning needs an antenna array, has requirements for antenna spacing, has a high design cost, and cannot be used on traditional terminals. The WLAN CSI positioning requires an antenna array with 3 or more antennas, which is difficult for mobile phones and routers, and cannot be realized on the stock of WLAN wireless devices through software upgrades. A mutually assisted positioning through a plurality of servers or a plurality of wireless access points such as routers has a high deployment cost and a limited application scenario.
Accordingly, the present disclosure proposes a method for determining a relative position, and only by upgrading application software, the position determination between two or more devices can be automatically completed through the existing wireless communication interface and antenna design in the traditional wireless communication device, without modifying the hardware design and modifying the hardware and firmware, thus improving the user experience. After the relative position between the wireless communication devices is determined in the method of the present disclosure, it can be automatically displayed on the screen without manual setting, thus greatly improving the user experience.
In order to better understand the solution of the embodiments of the present disclosure, a wireless communication system applicable to the embodiments of the present disclosure is described below.
In some embodiments, the first wireless communication device 101 and the second wireless communication device 102 mainly include a communication device that supports a WLAN or WIFI (Wireless Fidelity) technology, as well as a communication device that supports a close range wireless communication technology such as Bluetooth or Long Range Radio (LoRa), and a cellular wireless communication technology such as fourth/fifth generation mobile communication technologies (4G/5G), etc.
In some embodiments, the first wireless communication device 101 and the second wireless communication device 102 include at least one of, for example, a mobile phone, a wearable device, an Internet of Things device, a vehicle with a wireless communication function, an intelligent vehicle, a tablet computer (Pad), a computer with wireless sending and receiving functions, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, or a wireless terminal in smart home, which are not limited to this.
In some embodiments, the first wireless communication device 101 and the second wireless communication device 102 are devices of a wireless access point (AP)/a STA site that support arbitrary sounding process according to WiFi4 802.11n/WiFi5 802.11ac/WiFi6 802.11ax protocol.
In some embodiments, a combination of the first wireless communication device 101 and the second wireless communication device 102 may be: AP/soft access point (SoftAP)+STA or STA+AP/SoftAP.
In some embodiments, the first wireless communication device 101 includes two or more antennas. The number of antennas of the second wireless communication device 102 is not limited in the present disclosure, and the second wireless communication device 102 may include one or more antennas.
It can be understood that the wireless communication system described in the embodiments of the present disclosure is intended to provide a clearer explanation of the technical solution of the embodiments of the present disclosure, and does not constitute limitations on the technical solution proposed in the embodiments of the present disclosure. Those skilled in the art can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution proposed in the embodiments of the present disclosure is also applicable to similar technical problems.
The following embodiments of the present disclosure may be applied to the wireless communication system 100 shown in
A method and an apparatus for determining a relative position, a device, and a storage medium according to embodiments of the present disclosure are described in detail below with reference to the accompanying drawing.
In step 201, determining a relative position of the second wireless communication device 102 according to a phase difference between the same subcarriers received by two or more antennas, in which the subcarrier is configured to carry a signal sent by the second wireless communication device 102, and a plurality of subcarriers are provided.
In some embodiments of the present disclosure, the first wireless communication device 101 includes two or more antennas, the first wireless communication device 101 uses the two or more antennas to receive the signal sent by the second wireless communication device 102, and the signal is carried by the plurality of subcarriers.
In some embodiments of the present disclosure, the plurality of subcarriers are provided, and the phase difference between the same subcarriers received by the two or more antennas is determined, so that a plurality of phase differences are obtained.
For example, the first wireless communication device 101 includes two antennas, namely antenna 1 and antenna 2, the plurality of subcarriers include subcarrier 1 and subcarrier 2, and determining the phase difference between the same subcarriers received by two or more antennas includes determining a phase difference between the subcarriers 1 received by the antenna 1 and the antenna 2, and determining a phase difference between the subcarriers 2 received by the antenna 1 and the antenna 2.
In some embodiments of the present disclosure, when the first wireless communication device 101 includes more than two antennas, it is necessary to determine the phase difference between the same subcarriers received by the more than two antennas, and the phase difference of the same subcarriers received between every two antennas can be determined sequentially to obtain the plurality of phase differences.
For example, the first wireless communication device 101 includes three antennas, namely antenna 1, antenna 2 and antenna 3, and the phase difference of the same subcarriers received between the antenna 1 and the antenna 2, the phase difference of the same subcarriers received between the antenna 2 and the antenna 3, and the phase difference of the same subcarriers received between the antenna 1 and the antenna 3 are determined sequentially.
In some embodiments of the present disclosure, the relative position of the second wireless communication device 102 refers to a position of the second wireless communication device 102 relative to the first wireless communication device 101.
In some embodiments of the present disclosure, after the first wireless communication device 101 determines the relative position of the second wireless communication device 102, the method further includes: displaying the relative position of the second wireless communication device 102 on a screen.
In some embodiments of the present disclosure, after the first wireless communication device 101 determines the relative position of the second wireless communication device 102, the method further includes: sending the relative position of the second wireless communication device 102 to the second wireless communication device 102.
In summary, according to the method for determining the relative position proposed in the present disclosure, the method is performed by the first wireless communication device 101, and the method includes: determining the relative position of the second wireless communication device 102 according to the phase difference between the same subcarriers received by the two or more antennas, in which the subcarrier is configured to carry the signal sent by the second wireless communication device 102, and the plurality of subcarriers are provided. The method of the present disclosure determines the relative position according to the phase differences of the same carriers received by the antennas, and the position determination between the wireless communication devices can be completed without modification of the hardware design. Therefore, the method has a low cost and wide application scenarios, and there is no need for the user to manually set, thus improving the user experience.
Based on the embodiment shown in
In some embodiments of the present disclosure,
As shown in
In step 301, the number of identifiable ones of the signal transmission paths with the second wireless communication device 102 is determined.
In some embodiments of the present disclosure, the number of identifiable ones of the signal transmission paths with the second wireless communication device 102 is firstly determined, and in a scenario where the number of identifiable ones of the signal transmission paths is different, a relative position of the second wireless communication device 102 is determined according to a phase difference between the same subcarriers received by two or more antennas.
In some embodiments of the present disclosure, determining the number of identifiable ones of the signal transmission paths with the second wireless communication device 102 includes: obtaining a path spacing between any two signal transmission paths with the second wireless communication device 102, and determining that the two signal transmission paths are identifiable in case that the path spacing is greater than or equal to a preset threshold, thereby counting the number of identifiable ones of the signal transmission paths with the second wireless communication device 102.
In some embodiments, as shown in
In some embodiments, the preset threshold is related to an interaction bandwidth between the first wireless communication device 101 and the second wireless communication device 102, for example, when the interaction broadband BW=320 MHz=3.2*10{circumflex over ( )}8 Hz, the preset threshold is C/BW=0.9375 meters, and in case that the path spacing between the two signal transmission paths is greater than or equal to 0.9375 meters, the two signal transmission paths can be identified.
In some embodiments, determining the number of identifiable ones of the signal transmission paths with the second wireless communication device 102 includes: obtaining time-frequency peaks of a plurality of signal transmission paths with the second wireless communication device 102, and determining the number of ones of the time-frequency peaks of the plurality of signal transmission paths, which are greater than the preset threshold, as the number of identifiable ones of the signal transmission paths.
In step 302, channel state information (CSI) of a plurality of subcarriers received by two or more antennas is obtained.
In some embodiments, the method further includes: judging whether the first wireless communication device 101 and the second wireless communication device 102 support a WLAN sounding frame interaction, respectively.
In some embodiments of the present disclosure, the first wireless communication device 101 and/or the second wireless communication device 102 do not support the sounding frame interaction, as shown in
In step 401, for each antenna of the first wireless communication device 101, a multi-carrier modulated signal sent by the second wireless communication device is received through the antenna.
In some embodiments, the multi-carrier modulated signal, such as an orthogonal frequency division multiplexing (OFDM) modulated signal, may also include other multi-carrier modulated signals.
In some embodiments, in case that the first wireless communication device 101 includes the antenna 1 and the antenna 2, and the second wireless communication device 102 sends a WLAN OFDM frame, the first wireless communication device 101 receives the WLAN OFDM frame sent by the second wireless communication device 102 through the antenna 1 and the antenna 2, respectively.
In step 402, a channel evaluation is performed according to the multi-carrier modulated signal to obtain channel evaluation H values of the plurality of subcarriers received by the antenna.
In some embodiments, the channel evaluation H value is configured to describe the attenuation of the subcarrier during the transmission of the OFDM signal.
In some embodiments, in case that the first wireless communication device 101 includes the antenna 1 and the antenna 2, the first wireless communication device 101 performs a channel estimation on the WLAN OFDM frames received by the antenna 1 and the antenna 2 respectively, and the H value of each subcarrier of OFDM received by the antenna 1 and the H value of each subcarrier of OFDM received by the antenna 2 are obtained.
In some embodiments of the present disclosure, the first wireless communication device and the second wireless communication device support the sounding frame interaction, as shown in
In step 501, for each antenna of the first wireless communication device 101, a NDP frame is sent to the second wireless communication device 102 through the antenna.
In some embodiments, the first wireless communication device 101 and the second wireless communication device 102 support the sounding response frame interaction, and in the traditional sounding process, a process from an null data packet announcement (NDPA) frame to a null data packet (NDP) frame to channel information including compressed beamforming is included, in which the NDP frame is configured for packet starting detection, channel estimation and time synchronization, etc., the NDPA frame is configured to announce the device that needs to feedback the channel information, the compression beamforming is configured to assist in beamforming, and the H value of each subcarrier of OFDM is obtained during the compression beamforming.
In some embodiments, in case that the first wireless communication device 101 includes the antenna 1 and the antenna 2, and the first wireless communication device 101 sends the NDP frame to the second wireless communication device 102 through the antenna 1 and the antenna 2, respectively.
In step 502, the sounding response frame sent by the second wireless communication device 102 is received, in which the sounding response frame is sent by the second wireless communication device 102 after receiving the NDP frame and performing the channel evaluation according to the NDP frame, and the sounding response frame includes the channel evaluation H values of the plurality of subcarriers after being compressed.
In some embodiments, the second wireless communication device 102, after receiving the NDP frame, performs the channel evaluation according to the NDP frame to obtain the H value of each subcarrier of OFDM, compresses the H value and performs the sounding response frame feedback.
In some embodiments, in case that the first wireless communication device 101 includes the antenna 1 and the antenna 2, the first wireless communication device 101 sends the NDP frame to the second wireless communication device 102 through the antenna 1 and the antenna 2, respectively. The second wireless communication device 102 performs the channel evaluation according to the NDP frame sent by the antenna 1, to obtain the H value of each subcarrier of OFDM received by the antenna 1, compress the H value and feed it back to the first wireless communication device 101 through the sounding response frame. The second wireless communication device 102 performs the channel evaluation according to the NDP frame of the antenna interaction between the antenna 2 and the second wireless communication device 102, to obtain the H value of each subcarrier of OFDM received by the antenna 2, compress the H value and feed it back to the first wireless communication device 101 through the sounding response frame.
In step 503, the sounding response frame is decompressed to obtain the channel evaluation H values of the plurality of subcarriers received by the antenna.
In some embodiments, in case that the first wireless communication device 101 includes the antenna 1 and the antenna 2, the sounding response frame of the antenna interaction between the antenna 1 of the first wireless communication device 101 and the second wireless communication device 102 is decompressed to obtain the H value of each subcarrier of OFDM received by the antenna 1; and the sounding response frame of the antenna interaction between the antenna 2 of the first wireless communication device 101 and the second wireless communication device 102 is decompressed to obtain the H value of each subcarrier of OFDM received by the antenna 2.
In some embodiments of the present disclosure, the method further includes: judging whether an angle of the first wireless communication device 101 on a plane of an X axis and a Z axis is zero; in case that the angle of the first wireless communication device 101 on the plane of the X axis and the Z axis is not zero, correcting the channel evaluation H value of each subcarrier according to the angle of the first wireless communication device on the plane of the X axis and the Z axis.
In other words, in case that a horizontal plane is the plane of the X axis and the Y axis, it can be determined whether the first wireless communication device 101 is horizontally placed through judging whether the angle of the first wireless communication device 101 on the plane of the X axis and the Z axis is zero. In case that the angle of the first wireless communication device on the plane of the X axis and the Z axis is not zero, the first wireless communication device 101 is considered not to be placed horizontally, and the channel evaluation H value of each subcarrier is corrected according to the angle of the first wireless communication device on the plane of the X axis and the Z axis, for example, H value=uncorrected H*Z axis angle.
In some embodiments of the present disclosure, as shown in
In step 303, in case that the number of identifiable ones of the signal transmission paths is less than a preset number, according to the phase difference of the channel state information of the same subcarriers received by the two or more antennas, an angle of the second wireless communication device relative to the first wireless communication device is determined.
In some embodiments of the present disclosure, in case that the number of identifiable ones of the signal transmission paths is less than the preset number, that is, a signal transmission distance between the device 1 and the device 2 is small, a length difference of the plurality of signal transmission paths is small, for example, being less than a first preset distance (such as 1 meter), the direct path and the reflection path have a too small difference to be distinguished, the plurality of paths cannot be identified, and there is no need to consider multipath fading, i.e. the fading caused by the multipath effect. Accordingly, as shown in FIG. 5, a rough orientation determination is initiated, and the angle of the second wireless communication device 102 relative to the first wireless communication device 101 is determined according to the phase difference of the channel state information of the same subcarriers received by the two or more antennas of the first wireless communication device 101.
In a scenario of the present disclosure, as shown in
In some embodiments of the present disclosure, the first wireless communication device 101 is horizontally placed around the second wireless communication device 102, for example, the first wireless communication device 101 is horizontally placed on front, rear, left and right sides of the second wireless communication device 102 at an interval of 90 degrees, a CSI/H value of each subcarrier of the antenna 1 and a CSI/H value of each subcarrier of the antenna 2 are obtained through step 302, and a phase difference between the CSI/H value of each subcarrier of the antenna 1 and the CSI/H value of each subcarrier of the antenna 2 is determined. For example, the subcarrier includes subcarrier 1 and subcarrier 2, a phase difference between the CSI/H value of the subcarrier 1 of the antenna 1 and the CSI/H value of the subcarrier 1 of the antenna 2 is determined, and a phase difference between the CSI/H value of the subcarrier 2 of the antenna 1 and the CSI/H value of the subcarrier 2 of the antenna 2 is determined.
Further, as shown in
In some embodiments of the present disclosure, as shown in
In step 601, in case that the number of identifiable ones of the signal transmission paths is less than the preset number, for each subcarrier of the plurality of subcarriers, the phase difference between the channel evaluation H values of the subcarriers the two or more antennas is determined.
In some embodiments of the present disclosure, for the subcarrier 1 of the plurality of subcarriers, in case that the first wireless communication device 101 includes more than two antennas, and the phase difference between the H values of the subcarriers 1 of every two antennas is determine, respectively. For example, the first wireless communication device 101 includes the antenna 1, the antenna 2 and the antenna 3, and the phase difference between the H values of the subcarriers 1 of the antenna 1 and the antenna 2, the phase difference between the H values of the subcarriers 1 of the antenna 2 and the antenna 3, and the phase difference between the H values of the subcarriers 1 of the antenna 1 and the antenna 3 are determined, respectively.
For example, a formula for determining the phase difference between subcarriers j of antenna 0 and the antenna 1 is:
∠CSI0, j represents a CSI/H value of the subcarrier j received by the antenna 0, ∠CSI1, j represents a CSI/H value of the subcarrier j received by the antenna 1, and CPD, i.e., Phase Difference, represents a phase difference.
In step 602, according to the phase difference, an angle value of the subcarrier is determined.
In some embodiments, according to the phase difference, a specific formula for determining the angle value of the subcarrier is:
CPD represents the phase difference, and θ represents the angle value of the subcarrier.
In step 603, the plurality of subcarriers is traversed to obtain the angle values of the plurality of subcarriers.
In some embodiments, in case that the callable subcarrier includes the subcarrier 1, the subcarrier 2 and subcarrier 3, for the subcarrier 1, the subcarrier 2 and the subcarrier 3, the phase difference between the H values of the subcarriers 1, the phase difference between the H values of the subcarriers 2 and the phase difference between the H values of the subcarriers 3 of the two or more antennas are determined respectively according to step 601, and then the angle value of the subcarrier 1, the angle value of the subcarrier 2 and the angle value of the subcarrier 3 are determined according to step 602.
In step 604, the angle values of the plurality of subcarriers are matched with the interval threshold of the phase difference to obtain the angle of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101, in response to that the interval threshold of the phase difference of the plurality of subcarriers is obtained from the historical library.
In some embodiments, as shown in
It should be noted that a signal transmitting side sends frames continuously, and a phase difference value of two adjacent antennas on a receiving side is generally stable. As shown in
Further, the phase difference between respective subcarriers of every two antennas is compared with the corresponding interval threshold, to obtain the angle of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101. The comparison manner includes correlation, convolution, matching operations, etc.
In some embodiments, the angle of arrival (AOA) is calculated according to the phase difference obtained by comparison, and the AOA serves as the angle of the second wireless communication device 102 in the plane of the X axis and the Y axis relative to the first wireless communication 101 device, and a formula for calculating the AOA from the phase difference is as follows:
∠Hi represents the phase difference, d is a distance between the two adjacent antennas, and λ is a wavelength, preferably, d is set to 0.5, θi represents the angle value of the AOA, the phase difference corresponds to the angle value, and since the phase difference value obtained by comparison is stable, the calculated angle value of the AOA is also stable.
In some embodiments of the present disclosure, the method further includes: obtaining an average value of the angle values of the plurality of subcarriers, in response to that the interval threshold of the phase difference of the plurality of subcarriers is not obtained from the historical library; and determining the average value as the angle of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101.
In some embodiments, as shown in
In step 304, in case that the number of identifiable ones of the signal transmission paths is greater than the preset number, according to the phase difference of the channel state information of the same subcarriers received by the two or more antennas and the signal transmission paths, the angle and the distance of the second wireless communication device relative to the first wireless communication device are determined.
In some embodiments of the present disclosure, in case that the number of identifiable ones of the signal transmission paths is greater than the preset number, that is, the signal transmission distance between the device 1 and the device 2 is large, for example, it is greater than a second preset distance (such as 1 meter), it is easy to identify multiple paths, and the multipath effect needs to be considered, as shown in
In some embodiments of the present disclosure, as shown in
In step 701, in case that the number of identifiable ones of the signal transmission paths is greater than the preset number, for each subcarrier in the plurality of subcarriers, an equation for the subcarrier is listed according to the phase difference between the H values of the subcarriers of the two or more antennas and the signal transmission paths.
In a scenario of the present disclosure, as shown in
In some embodiments of the present disclosure, as shown in
In step 702, the plurality of subcarriers are traversed to obtain the equations of the plurality of subcarriers.
In some embodiments of the present disclosure, the first wireless communication device 101 includes the antenna 1 and the antenna 2, four subcarriers are used for interaction, the four subcarriers include the subcarrier 1, the subcarrier 2, the subcarrier 3, subcarrier 4, and there are two signal transmission paths, including path 1 and path 2. This serves as an example.
An equation for the subcarrier 1 is as follows:
HAnt2SubC1 represents the H value of the subcarrier 1 received by the antenna 1, Γ1, Γ2 represent reset attenuation of the path 1 and the path 2, respectively, HAnt2SubC1 represents the H value of the subcarrier 1 received by the antenna 2, Φ1 represents the phase difference between the same subcarriers received by the antenna 1 and the antenna 2 due to a change in an incident angle when the transmission path is the path 1, θ1 is the angle of arrival (AOA) of the signal of the path 1, and a value of Φ1 depends on θ1, i.e.
in which fc1 is the frequency of the subcarrier 1; in the same way, Φ2 represents the phase difference between the same subcarriers received by the antenna 1 and the antenna 2 due to the change in the incident angle when the transmission path is the path 2, θ2 is the angle of arrival (AOA) of the signal of the path 2, and a value of Φ2 depends on θ2, i.e.
in which fc2 is the frequency of the subcarrier 2. It should be noted that a difference between fc1 and fc2 is very small, so that they are uniformly considered as fc in the above equation for the subcarrier 1.
Thus, the phase difference between the H values of the subcarriers 1 received by the antenna 1 and the antenna 2 is HAnt2SubC1−HAnt2SubC1, which is substituted into the above equation for the subcarrier 1 to obtain a following formula:
PDSubcarrier1 represents the phase difference of the subcarriers 1, i.e., the phase difference between the H values of the subcarriers 1 received by the antenna 1 and the antenna 2.
An equation for the subcarrier 2 is as follows:
HAnt1SubC2 represents the H value of the subcarrier 2 received by the antenna 1, HAnt2SubC2 represents the H value of the subcarrier 2 received by the antenna 2, Ω1c2 represents the phase difference between the subcarriers 2 received by the antenna 1 and the antenna 2 due to a transmission time and a carrier frequency difference when the transmission path is the path 1, and the value of Ω1c2 depends on a time of flight (TOF) of the path 1 and a frequency difference value of the subcarriers 2 received by the antenna 1 and the antenna 2, i.e., Ω1c2=e−j2π(f
Thus, the phase difference between the H values of the subcarriers 2 received by the antenna 1 and the antenna 2 is HAnt1SubC2−HAnt2SubC2, which is substituted in to the above equation for the subcarrier 2 to obtain the following formula:
PDSubcarrier2 represents the phase difference of the subcarriers 2, i.e., the phase difference between the H values of the subcarriers 2 received by the antenna 1 and the antenna 2.
An equation for the subcarrier 3 is as follows:
HAnt1SubC3 represents the H value of the subcarrier 3 received by the antenna 1, HAnt2SubC3 represents the H value of the subcarrier 3 received by the antenna 2, Ω1c3 represents the phase difference between the subcarriers 3 received by the antenna 1 and the antenna 2 due to the transmission time and the carrier frequency difference when the transmission path is the path 1, Ω2c3 represents the phase difference between the subcarriers 3 received by the antenna 1 and the antenna 2 due to the transmission time and the carrier frequency difference when the transmission path is the path 2, Ω1c3 and Ω2c3 are determined with reference to Ω1c2 and Ω2c2, i.e., Ω1c3=e−j2π(f
Thus, the phase difference between the H values of the subcarriers 3 received by the antenna 1 and the antenna 2 is HAnt1SubC3−HAnt2SubC3, which is substituted into the above equation for the subcarrier 3 to obtain a following formula:
PDSubcarrier3 represents the phase difference of the subcarrier 3, i.e., the phase difference between the H values of the subcarriers 3 received by the antenna 1 and the antenna 2.
An equation for the subcarrier 4 is as follows:
HAnt1SubC4 represents the H value of the subcarrier 4 received by the antenna 1, HAnt2SubC4 represents the H value of the subcarrier 4 received by the antenna 2, Ω1c4 represents the phase difference between the subcarriers 4 received the antenna 1 and the antenna 2 due to the transmission time and the carrier frequency difference when the transmission path is the path 1, Ω2c4 represents the phase difference between the subcarriers 4 received by the antenna 1 and the antenna 2 generated by the transmission time and the carrier frequency difference when the transmission path is the path 2, Ω1c4 and Ω2c4 are determined with reference to Ω1c2 and Ω2c2, i.e., Ω1c4=e−j2π(f
Thus, the phase difference between the H values of the subcarriers 4 received by the antenna 1 and the antenna 2 is HAnt1SubC4−HAnt2SubC4, which is substituted into the above equation for the subcarrier 4 to obtain a following formula:
PDSubcarrier4 represents the phase difference of the subcarrier 4, i.e., the phase difference between the H values of the subcarriers 4 received by the antenna 1 and the antenna 2.
In step 703, the equations for the plurality of subcarriers are processed to obtain the signal transmission path with the smallest time of flight (ToF).
In some embodiments of the present disclosure, the processing of the equations for the plurality of subcarriers includes: obtaining the number of the signal transmission paths; obtaining the number of unknown variables according to the number of the signal transmission paths, the number of antennas of the first wireless communication device and the number of the plurality of subcarriers; according to the number of unknown variables, grouping the equations for the plurality of subcarriers to obtain a plurality of equation sets; and performing merge processing on the unknown variables of the plurality of equation sets, the merge processing including one or more of mean, variance, covariance, and mean square deviation processing.
In some embodiments, as shown in
In some embodiments, taking an example where the number L of the transmission paths is 2, the number m of the antennas is 2, and the number n of the subcarriers is 32, assuming that the first wireless communication device 101 and the second wireless communication equipment 102 are synchronized, a sampling frequency offset (SFO) and a sampling time offset (STO) are known, the number u of unknown variables is equal to L*(m−1) AoAs plus L ToFs, i.e. being equal to 4, including 2 AoAs of unknown variables, and 2 ToFs of unknown variables, then n/u=8 equation sets can be listed, and the 8 equation sets are solved separately and then merged. In this example, the number n of subcarriers is 32, which is greater than the number u of unknown variables. A Jacobian matrix can also be extended, and solved by the Newton-Raphson iterative method and the least squares method, to obtain the transmission path with the smallest time of flight.
It should be noted that the Newton iterative method is a commonly used method for solving a nonlinear equation set, which linearizes the nonlinear equation set in the vicinity of an estimated solution, then solves the linearized equation set, and then updates an estimated value of the solution. This process is repeated until the accuracy of the solution meets the requirements.
In step 704, an angle and a path length of the signal transmission path with the smallest time of flight are determined as the angle and the distance of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101.
In some embodiments, the path length of the signal transmission path can be determined according to the time of flight of the signal transmission path with the smallest time of flight, the path length is determined as the distance of the second wireless communication device 102 on the plane of the X axis and Y the axis relative to the first wireless communication device 101, and the angle of arrival of the signal transmission path with the smallest time of flight is determined as the angle of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101.
In some embodiments of the present disclosure, the method further includes: obtaining the angle of the first wireless communication device 101 on the plane of the X axis and the Z axis; according to the angle of the first wireless communication device 101 on plane of the X axis and the Z axis and the angle and/or the distance of the second wireless communication device 102 in the plane of the X axis and the Y axis relative to the first wireless communication device 101, determining an orientation of the second wireless communication device 102 in a three-dimensional space of the X axis, the Y axis and the Z axis relative to the first wireless communication device 101.
In some embodiments, the angle of the first wireless communication device 101 on the plane of the X axis and the Z axis can be obtained through the sensor built in the first wireless communication device 101. Specifically, through auxiliary information fed back by a direction sensor/a level/a three-axis gyroscope of the first wireless communication device 101, the angle of the first wireless communication device 101 on the plane of the X axis and the Z axis can be determined, and
In some embodiments of the present disclosure, the method further includes: displaying relative position information on a screen, in which the relative position information includes one or more of: the angle of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101, the distance of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101, and the orientation of the second wireless communication device 102 in the three-dimensional space of the X axis, the Y axis and the Z axis relative to the first wireless communication device 101.
In some embodiments of the present disclosure, as shown in
In some embodiments of the present disclosure, the method further includes: sending the relative position information to the second wireless communication device, in which the relative position information includes one or more of: the angle of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101, the distance of the second wireless communication device 102 on the plane of the X axis and the Y axis relative to the first wireless communication device 101, and the orientation of the second wireless communication device 102 in the three-dimensional space of the X axis, the Y axis and the Z axis relative to the first wireless communication device 101.
In some embodiments of the present disclosure, as shown in
In summary, the method for determining the relative position according to the present disclosure is performed by the first wireless communication device 101, the method includes: determining the number of identifiable ones of the signal transmission paths with the second wireless communication device, obtaining the channel state information (CSI) of the plurality of subcarriers received by the two or more antennas; and in case that the number of identifiable ones of the signal transmission paths is less than the preset number, and determining the angle of the second wireless communication device relative to the first wireless communication device according to the phase difference of the channel state information of the same subcarriers received by the two or more antennas. In the method of the present disclosure, only by upgrading the application software, the position determination between two or more devices can be automatically completed through the existing wireless communication interface and antenna design in the traditional wireless communication device, without modifying the hardware design and modifying the hardware and firmware, thus improving the user experience. After the relative position between the wireless communication devices is determined in the method of the present disclosure, it can be automatically displayed on the screen without manual setting, thus greatly improving the user experience.
In some embodiments, the determining module 810 is further configured to determine the number of identifiable ones of signal transmission paths with the second wireless communication device.
In some embodiments, the determining module 810 is specifically configured to: obtain channel state information (CSI) of the plurality of subcarriers received by the two or more antennas; and in case that the number of identifiable ones of the signal transmission paths is less than a preset number, determine an angle of the second wireless communication device relative to the first wireless communication device according to the phase difference of the channel state information of the same subcarriers received by the two or more antennas.
In some embodiments, the determining module 810 is specifically configured to: in case that the number of identifiable ones of the signal transmission paths is greater than the preset number, determine the angle and a distance of the second wireless communication device relative to the first wireless communication device according to the phase difference of the channel state information of the same subcarriers received by the two or more antennas and the signal transmission paths.
In some embodiments, the device 800 further includes a transceiving module, and in case that the first wireless communication device and/or the second wireless communication device do not support sounding frame interaction, the transceiving module is configured to: for each antenna of the first wireless communication device, receive a multi-carrier modulated signal sent by the second wireless communication device through the antenna; and perform a channel evaluation according to the multi-carrier modulated signal to obtain channel evaluation H values of the plurality of subcarriers received by the antenna.
In some embodiments, in case that the first wireless communication device and the second wireless communication device support the sounding frame interaction, the transceiving module is further configured to: for each antenna of the first wireless communication device, send a NDP frame to the second wireless communication device through the antenna; and receive a sounding response frame sent by the second wireless communication device, in which the sounding response frame is sent by the second wireless communication device after receiving the NDP frame and performing the channel evaluation according to the NDP frame, and the sounding response frame includes the channel evaluation H values of the plurality of subcarriers after being compressed; and decompress the sounding response frame to obtain the channel evaluation H values of the plurality of subcarriers received by the antenna.
In some embodiments, the device 800 further includes a correction module configured to: determine whether an angle of the first wireless communication device on a plane of the X axis and the Z axis is zero; and in case that the angle of the first wireless communication device on the plane of the X axis and the Z axis is not zero, correct the channel evaluation H value of each subcarrier according to the angle of the first wireless communication device on the plane of the X axis and the Z axis.
In some embodiments, the determining module 810 is specifically configured to: determine the phase difference between the channel evaluation H values of the subcarriers of the two or more antennas, for each subcarrier of the plurality of subcarriers, in case that the number of identifiable ones of the signal transmission paths is less than the preset number; determine an angle value of the subcarrier according to the phase difference; traverse the plurality of subcarriers to obtain the angle values of the plurality of subcarriers; and match the angle values of the plurality of subcarriers with an interval threshold of the phase difference to obtain the angle of the second wireless communication device on the plane of the X axis and the Y axis relative to the first wireless communication device, in response to that the interval threshold of the phase difference of the plurality of subcarriers is obtained from a historical library.
In some embodiments of the present disclosure, the determining device 810 is further configured to: obtain an average value of the angle values of the plurality of subcarriers, in response to that the interval threshold of the phase difference of the plurality of subcarriers is not obtained from the historical library; and determine the average value as the angle of the second wireless communication device on the plane of the X axis and the Y axis relative to the first wireless communication device.
In some embodiments, the determining module 810 is specifically configured to: list an equation for the subcarrier according to the phase difference between the channel evaluation H values of the subcarriers of the two or more antennas and the signal transmission path, for each subcarrier of the plurality of subcarriers, in case that the number of identifiable ones of the signal transmission paths is greater than the preset number; traverse the plurality of subcarriers to obtain the equations of the plurality of subcarriers; process the equations of the plurality of subcarriers to obtain the signal transmission path with the smallest time of flight (ToF); and determine an angle and a path length of the signal transmission path with the smallest time of flight as the angle and the distance of the second wireless communication device on the plane of the X axis and the Y axis relative to the first wireless communication device.
In some embodiments, processing the equations for the plurality of subcarriers includes: obtaining the number of the signal transmission paths; obtaining the number of unknown variables according to the number of the transmission paths, the number of antennas of the first wireless communication device and the number of the plurality of subcarriers; according to the number of unknown variables, grouping the equations for the plurality of subcarriers to obtain a plurality of equation sets; and performing merge processing on the unknown variables of the plurality of equation sets, the merge processing including one or more of mean, variance, covariance, and mean square deviation processing.
In some embodiments, the determining module 810 is further configured to: obtain the angle of the first wireless communication device on the plane of the X axis and the Z axis; and determine an orientation of the second wireless communication device in a three-dimensional space of the X axis, the Y axis and the Z axis relative to the first wireless communication device according to the angle of the first wireless communication device on the plane of the X axis and the Z axis and the angle and/or the distance of the second wireless communication device in the plane of the X axis and the Y axis relative to the first wireless communication device.
In some embodiments, the device further includes a display module configured to display relative position information on a screen, in which the relative position information includes one or more of: the angle of the second wireless communication device on the plane of the X axis and the Y axis relative to the first wireless communication device, the distance of the second wireless communication device on the plane of the X axis and the Y axis relative to the first wireless communication device, and the orientation of the second wireless communication device in the three-dimensional space of the X axis, the Y axis and the Z axis relative to the first wireless communication device.
In some embodiments, the transceiving module is further configured to: send the relative position information to the second wireless communication device, in which the relative position information includes one or more of: the angle of the second wireless communication device on the plane of the X axis and the Y axis relative to the first wireless communication device, the distance of the second wireless communication on the plane of the X axis and the Y axis device relative to the first wireless communication device, and the orientation of the second wireless communication device in the three-dimensional space of the X axis, the Y axis and the Z axis relative to the first wireless communication device.
Since the apparatus provided in the embodiments of the present disclosure corresponds to the method provided in the above several embodiments, the implementations of the method is also applicable to the apparatus provided in the embodiments, which will not be described in the embodiments.
In summary, the apparatus for determining the relative position proposed in the present disclosure is arranged on the first wireless communication device 101, through the determining module, the relative position determination is realized according to the phase differences between the plurality of same carriers of the plurality of antennas, and the position determination between the wireless communication devices can be completed without modification of the hardware design, with a low cost, wide application scenarios, and no need for users to manually set, thus improving the user experience.
In the embodiments of the present disclosure, the method and the apparatus provided in the embodiments of the present disclosure are introduced. To achieve various functions in the methods provided in the embodiments of the application, an electronic device may include a hardware structure and a hardware module, to achieve the above functions in the form of the hardware structure, the hardware module or a combination of the hardware structure and the hardware module. A certain function of the above functions may be performed by the hardware structure, the software module or the combination of the hardware structure and the software module.
Referring to
The communication device 900 may include one or more processors 901. The processor 901 may include a general purpose processor or a dedicated processor. For example, the processor may be a baseband processor or a central processor. The baseband processor may be configured to process a communication protocol and communication data, and the central processor may be configured to control a communication device (e.g., a base station, a baseband chip, a terminal, a terminal chip, a DU or CU, etc.), to execute a computer program, and process data of the computer program.
Optionally, the communication device 900 may further include one or more memories 902 with a computer program 904 stored thereon. The processor 901 executes the computer program 904 so that the communication device 900 performs the method as described in the above method embodiments. Optionally, the memory 902 may further store data. The communication device 900 and the memory 902 may be arranged alone or integrated together.
Optionally, the communication device 900 may further include a transceiver 905 and an antenna 906. The transceiver 905 may be referred to as a transceiving unit, a transceiver or a transceiving circuit, which may be configured to achieve a transceiving function. The transceiver 905 may include a receiver and a transmitter. The receiver may be referred to as a receiving machine or a receiving circuit, etc., for implementing a receiving function. The transmitter may be referred to as a transmitting machine or a transmitting circuit, etc. for implementing a transmitting function.
Optionally, the communication device 900 may further include one or more interface circuits 907. The interface circuit 907 is configured to receive code instructions and transmit the code instructions to the processor 901. The processor 901 runs the code instructions so that the communication device 900 performs the method described in the above method embodiments.
In an implementation, the processor 901 may include a transceiver configured to implement receiving and transmitting functions. For example, the transceiver may be a transceiving circuit, or an interface, or an interface circuit. The transceiving circuit, the interface or the interface circuit configured to implement the receiving and transmitting functions may be separate or integrated together. The transceiving circuit, the interface or the interface circuit may be configured to read and write codes/data. Or, the transceiving circuit, the interface or the interface circuit may be configured to transmit or deliver a signal.
In an implementation, the processor 901 may store a computer program 903. The computer program 903 runs on the processor 901, so that the communication device 900 performs the method as described in the above method embodiments. The computer program 903 may be solidified in the processor 901, in which case the processor 901 may be implemented by hardware.
In an implementation, the communication device 900 may include a circuit that may implement a transmitting or receiving or communication function in the above method embodiments. The processor and the transceiver described in the present disclosure may be implemented on integrated circuits (ICs), analog ICs, radio frequency integrated circuits (RFICs), mixed signal ICs, application specific integrated circuits (ASICs), printed circuit boards (PCBs), electronic devices, etc. The processor and the transceiver may further be fabricated by using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), nMetal-oxide-semiconductor (NMOS), positive channel metal oxide semiconductor (PMOS), bipolar junction transistor (BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe) and gallium arsenide (GaAs).
The communication device described in the above embodiments may be the network device or the user equipment, but the scope of the communication device described in the present disclosure is not limited thereto, and a structure of the communication device may not be limited to
In case that the communication device may be a chip or a system on chip, please refer to a schematic diagram of a chip as illustrated in
Optionally, the chip further includes a memory 1003. The memory 1003 is configured to save a necessary computer program and data.
Those skilled in the related art may understand that, various illustrative logical blocks and steps listed in the embodiments of the present disclosure may be implemented by an electronic hardware, a computer software or a combination thereof. Whether the function is implemented by the hardware or the software depends on specific applications and design requirements for the whole system. Those skilled in the art may implement the functions by using various methods for each specific application, but such an implementation should not be understood as beyond the protection scope of the embodiments of the present disclosure.
A non-transitory computer-readable storage medium stored with computer instructions is proposed according to embodiments of the present disclosure. The computer instructions are configured to cause a computer to perform the method for determining the relative position described in the above embodiments of the present disclosure.
A computer program product including a computer program is provided according to embodiments of the present disclosure. The computer program is configured to perform the method for determining the relative position described in the above embodiments of the present disclosure when performed by a processor.
In the above embodiments, the functions may be wholly or partially implemented by the software, the hardware, the firmware, or any combination thereof. When implemented by the software, the functions may be implemented wholly or partially in the form of a computer program product. The computer program product includes one or more computer programs. Procedures or functions according to embodiments of the present application are wholly or partially generated when the computer program is loaded and executed on the computer. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer program may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wire manner (such as a coaxial cable, a fiber optic, a digital subscriber line (DSL)) or in a wireless manner (such as infrared, wireless, microwave). The computer-readable storage medium may be any available medium that may be stored by the computer or a data storage device such as a server and a data center that integrate one or more available media. The applicable medium may be a magnetic medium (such as a floppy disk, a hard disk and a magnetic tape), an optical medium (such as a digital video disk (DVD)), or a semiconductor medium (such as a solid state disk (SSD)).
Those skilled in the art may understand that various numbers such as first and second involved in present disclosure are distinguished merely for convenience of description, and are not intended to limit the scope of embodiments of the present disclosure, and also not to indicate an order of precedence.
The expression “at least one” in the present disclosure may also be described as one or more, and the expression “a plurality of” may be two, three, four or more, which is not limited in the present disclosure. In embodiments of the present disclosure, for a kind of technical feature, the technical features are distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D”, and there is no order of precedence or magnitude between the technical features distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D”.
As used herein, terms “machine readable medium” and “computer readable medium” refer to any computer program product, device, and/or apparatus (e.g., a disk, an optical disc, a memory, a programmable logic device (PLD)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium for receiving machine instructions as machine-readable signals. The term “machine readable signal” refers to any signal used to provide machine instructions and/or data to a programmable processor.
Systems and technologies described herein may be implemented in a computing system (for example, as a data server) including a background component, or a computing system (for example, an application server) including a middleware component, or a computing system including a front-end component (for example, a user computer with a graphical user interface or a web browser, and the user may interact with the implementations of the systems and technologies described herein via the graphical user interface or the web browser), or in a computing system including any combination of the background component, the middleware component, or the front-end component. Components of the system may be interconnected by digital data communication (for example, a communication network) of any form or medium. Examples of the communication network includes: a local area network (LAN), a wide area network (WAN), and an Internet.
The computer system may include a client and a server. The client and the server are generally far away from each other and generally interact with each other through the communication network. The relationship between the client and the server is generated by computer programs that are run on the corresponding computer and have a client-server relationship with each other.
It should be noted that various forms of processes shown above may be used to reorder, add, or delete steps. For example, steps described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure may be achieved, which will not be limited herein.
In addition, it should be noted that, embodiments of the present disclosure may be implemented alone or implemented in combination with other embodiments when the solution is allowed.
Those skilled in the related art may realize that, units and algorithm steps of the examples described in combination with embodiments of the present disclosure, may be implemented by an electronic hardware or a combination of an electronic hardware and a computer software. Whether the functions are executed by the hardware or the software depends on a specific application and a design constraint of the technical solution. Those skilled in the art may adopt different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the present disclosure.
Those skilled in the art may clearly understand that, a specific working process of the system, the apparatus and the unit described above may refer to a corresponding process in the above method embodiments, which will not be repeated here.
The above are only implementations of the present disclosure. However, the protection scope of the present disclosure is not limited here. Changes and substitutions that are easily considered by those skilled in the art shall be contained within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall subject to the protection scope of claims.
Number | Date | Country | Kind |
---|---|---|---|
202311283500.6 | Sep 2023 | CN | national |