Positioning method and electronic equipment

By receiving signals in a time-sharing manner through the array antenna and utilizing the electromagnetic wave inversion characteristics, the problem of high cost and insufficient accuracy of indoor positioning technology is solved, and low-cost, high-precision indoor equipment positioning is achieved.

CN118777979APending Publication Date: 2024-10-15HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310403917.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-07
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing indoor positioning technology has high costs and insufficient positioning accuracy. Especially when satellite signals cannot be effectively utilized in indoor environments, it is difficult to achieve low-cost and high-precision device positioning.

Method used

Array antenna technology is used to receive positioning signals in time-sharing and use the inversion characteristics of electromagnetic waves to obtain the antenna weight group when the signal strength is maximum to determine the device location, reducing hardware costs and improving positioning accuracy.

Benefits of technology

It achieves low-cost, high-precision device positioning in indoor environments, reduces the power consumption of array antennas for receiving signals, and is suitable for positioning devices without signal transmission capabilities, expanding application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118777979A_ABST
    Figure CN118777979A_ABST
Patent Text Reader

Abstract

The invention provides a positioning method and electronic equipment, and relates to the technical field of positioning. The method is applied to a first electronic device, responds to a first positioning instruction, and sends a first positioning notification to a second electronic device, so that the second electronic device sends a first positioning signal; controlling each first antenna in the array antenna to receive the first positioning signal in a time-sharing manner; acquiring the signal strength of a first positioning signal received by the array antenna under the condition of different antenna weight groups; obtaining an antenna weight group corresponding to the maximum signal intensity as a first target antenna weight group; and taking the positioning position matched with the first target antenna weight group as the position of the second electronic equipment. By adopting the method provided by the invention, the cost of equipment for indoor positioning can be reduced, and the accuracy of indoor positioning is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Smart devices can realize outdoor positioning of devices through GPS (Global Positioning System). When satellite positioning cannot be used in indoor environments, devices can use indoor positioning technology as an auxiliary positioning of satellite positioning to solve the problem that satellite signals are weak when reaching the ground and cannot penetrate buildings. Other common indoor wireless positioning technologies include: Wi-Fi, Bluetooth, infrared, ultra-wideband, RFID, ZigBee, motion capture and ultrasound.

[0003] However, the cost of the equipment used for positioning in current indoor positioning technology is high, and the positioning equipment can be a mobile phone, a wireless access point, an RFID tag, an infrared device, etc. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a positioning method and electronic equipment, which can reduce the cost of equipment used for indoor positioning and improve the accuracy of indoor positioning.

[0005] In a first aspect, the present application provides a positioning method, which is applied to a first electronic device including an array antenna, the first electronic device storing each preset positioning position and an antenna weight group matching the positioning position, the antenna weight group including the antenna weight of each first antenna in the array antenna, the method comprising: in response to a first positioning instruction, sending a first positioning notification to a second electronic device so that the second electronic device sends a first positioning signal; controlling each first antenna in the array antenna to receive the first positioning signal in time-sharing; obtaining the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; obtaining the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group; and using the positioning position matching the first target antenna weight group as the position of the second electronic device.

[0006] In this way, since the indoor environment is relatively static compared to the outdoor environment, the positioned device will not move at high speed, and the environment of the positioned device will not change dramatically within a few milliseconds, that is, the fast fading effect is not obvious; when the array antenna of the first electronic device receives the first positioning signal in a time-sharing manner, it can be equivalent to the array antenna receiving the first positioning signal at the same time, and then the inversion characteristics of electromagnetic waves can be used. Through the signal strength received by the array antenna, each antenna weight group of the array antenna and the positioning position corresponding to each antenna weight group can be stored, and the position of the second electronic device can be quickly located. The array antenna is set in the first electronic device. Compared with the expensive radar system, the positioning device in this example has lower cost and is easier to deploy. And the first electronic device uses the time-sharing method of receiving the first positioning signal, compared with the method in which each first antenna in the array antenna of the first electronic device receives the signal at the same time, which can greatly reduce the power consumption of the array antenna receiving the first positioning signal, and further reduce the cost of positioning.

[0007] According to the first aspect, each first antenna in the array antenna has a corresponding first switch, and the first switch is used to close or disconnect the corresponding first antenna; each first antenna in the array antenna is controlled to receive the first positioning signal in time, including: performing the following operations on each first switch in turn: closing the first switch; if it is detected that the duration of closing the first switch reaches a preset duration, then disconnecting the first switch; if it is detected that the next first switch does not receive the first signal, then executing the operation of closing the next first switch, and the first signal is included in the first positioning signal.

[0008] In this way, the array antenna of the first electronic device includes multiple first antennas and a first switch corresponding to each first antenna. By controlling the closing and opening of the first switch, the array antenna of the first electronic device can realize time-sharing reception of the first positioning signal. The cost of the first switch is low, which can further reduce the hardware cost of the first electronic device.

[0009] According to the first aspect, the signal strength of the first positioning signal received by the array antenna under different antenna weight groups is obtained, including: normalizing each antenna weight in each antenna weight group respectively to generate a weight vector for each antenna weight group; determining a receiving vector of the first positioning signal according to the first signal received by each first antenna; obtaining the inner product of the receiving vector of the first positioning signal and each weight vector; and using the value of each inner product as the signal strength of the first positioning signal received by the array antenna under different antenna weight groups.

[0010] In this way, each antenna weight in each antenna weight group is normalized so that the amplitude of each first antenna is between 0 and 1, thereby improving the accuracy of the subsequent determination of the signal strength of the first positioning signal; according to the characteristics of inversion focusing of electromagnetic waves, it can be known that when transmitting a signal under a certain antenna weight group (such as the first group), it must be focused on a certain position (such as point B). In this example, combined with the principle of reversibility of the optical path, if the electronic device is located at point B, the signal strength of the signal received by the first electronic device using the first group of antenna weight groups is the largest. Based on this, in this example, the inner product of the receiving vector of the first positioning signal and the weight vector of each antenna weight group is obtained as the signal strength of the signal received by the first electronic device when it is in the first group of antenna weight groups, so that the determined signal strength is accurate.

[0011] According to the first aspect, according to the first signal received by each first antenna, determining the reception vector of the first positioning signal includes: obtaining the first analytical signal; obtaining the first relationship between the first signal received by each first antenna and the first analytical signal to form the reception vector of the first positioning signal, wherein the first relationship includes the amplitude relationship between the signals and the phase relationship between the signals. In this way, the relationship between the amplitude and phase between the first signal received by the first antenna and the first analytical signal can accurately characterize the situation of the signal received by the first electronic device.

[0012] According to the first aspect, the first relationship between the first signal received by each first antenna and the first analytical signal is obtained to form a receiving vector of the first positioning signal, including: obtaining a second signal matching each first signal, the second signal being included in the first analytical signal; obtaining a ratio between each first signal and the matching second signal; and forming a receiving vector with each ratio. In this way, when the signal transmitted by the second electronic device has problems such as jitter and frequency deviation, the first analytical signal can eliminate the problem of inaccurate signal strength determination caused by the jitter and frequency deviation of the first positioning signal, thereby improving the accuracy of the determined receiving vector and thus improving the accuracy of positioning.

[0013] According to the first aspect, the first positioning notification includes: a first resolution signal or first identification information of the first resolution signal. In this way, the signal sent by the second electronic device includes the first resolution signal, and the reception vector of the first positioning signal can be determined based on the first resolution signal and the first positioning signal.

[0014] According to the first aspect, before sending a positioning notification to the second electronic device in response to the first positioning instruction, the method further includes: storing the first resolution signal, or storing the first resolution signal and identification information of the first resolution signal. In this way, the first electronic device pre-stores the first resolution signal, so that the first electronic device can pre-acquire the signal sent by the second electronic device, and then the reception vector of the first positioning signal can be determined based on the first resolution signal and the first positioning signal.

[0015] According to the first aspect, the first electronic device also includes a second antenna; obtaining the first resolution signal includes: obtaining the signal received by the second antenna as the first resolution signal. In this way, the first electronic device may not store the first resolution signal, the second antenna does not include a switch, and can receive the signal sent by the second electronic device in real time. The signal received by the second antenna and the signal received by the array antenna do not need to store the first resolution signal, thereby improving the flexibility of positioning.

[0016] According to the first aspect, the method further includes: in response to the second positioning instruction sent by the second electronic device, sending a second positioning notification to the third electronic device so that the third electronic device can transmit the second positioning signal; controlling each first antenna in the array antenna to receive the second positioning signal in time division; obtaining the signal strength of the second positioning signal received by the array antenna under different antenna weight groups; obtaining the antenna weight group corresponding to the maximum signal strength of the second positioning signal as the second target antenna weight group; using the positioning position matched with the second target antenna weight group as the position of the third electronic device; determining the relative position information between the second electronic device and the third electronic device according to the position of the second electronic device and the position of the third electronic device; and sending the relative position information to the second electronic device. In this way, the first electronic device can locate the position of the third electronic device for the second electronic device that does not have a positioning function, or locate the position of the second electronic device for the third electronic device, further increasing the application scenarios of the positioning.

[0017] In a second aspect, the method is applied to a first electronic device including an array antenna, wherein the first electronic device stores each preset positioning position and an antenna weight group matching the positioning position, the antenna weight group including the antenna weight of each first antenna in the array antenna, and the method includes: in response to a first positioning instruction, controlling the array antenna to send a first analysis signal to a second electronic device, so that the second electronic device reflects the signal according to a preset first coding information to form a first positioning signal; receiving the reflected signal, wherein the reflected signal includes the first positioning signal; obtaining the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; obtaining the antenna weight group corresponding to the maximum signal strength of the first positioning signal as the first target antenna weight group; and using the positioning position matching the first target antenna weight group as the position of the second electronic device.

[0018] In this way, the first electronic device can locate an electronic device that does not have the ability to transmit signals, by sending a first analysis signal to the second electronic device, which is reflected by the second electronic device according to preset coding information; the first analysis signal is transmitted by the array antenna of the first electronic device, and the signal transmitted by the array antenna will be focused on a position (such as point B) according to the inversion principle of electromagnetic waves. If the second electronic device is located at point B, the signal strength of the signal reflected from point B received by the first electronic device is the largest. Therefore, the first electronic device can also quickly and accurately determine the position of the second electronic device based on the reflected signal of the second electronic device. Since the second electronic device is a device that does not have the ability to transmit signals, the second electronic device can be used on different objects at a low cost. For example, the second electronic device is a label affixed to a book, so that the position of the book is located by locating the position of the second electronic device, which increases the application scenarios of the positioning of the first electronic device and further reduces the cost of the entire positioning system (the positioning system composed of the first electronic device and the second electronic device).

[0019] According to the second aspect, each first antenna in the array antenna has a first switch corresponding to it, and the first switch is used to turn on or off the corresponding first antenna; in response to the first positioning instruction, the array antenna is controlled to send a first analytical signal to the second electronic device, including: controlling the first switch of each first antenna in the array antenna to be closed in time-sharing, so that the first antenna array sends the first analytical signal in time-sharing. In this way, the array antenna sends the first analytical signal in time-sharing, so that the received reflected signal can be focused on one point, satisfying the characteristics of inversion focusing of electromagnetic waves, and improving the accuracy of positioning.

[0020] According to the second aspect, the signal strength of the first positioning signal received by the array antenna in different antenna weight groups is obtained, including: normalizing each antenna weight in each antenna weight group respectively to generate a weight vector for each antenna weight group; determining a receiving vector of the first positioning signal received by the first electronic device according to the first coded information and the received reflected signal; obtaining the inner product of the receiving vector and each weight vector; and using the value of each inner product as the signal strength of the first positioning signal received by the first electronic device when the array antenna is in different antenna weight groups.

[0021] According to the second aspect, the first electronic device further includes a second antenna; receiving the reflected signal includes: controlling the second antenna to receive the reflected signal, wherein the time when the second antenna receives the reflected signal does not coincide with the time when the array antenna transmits the first analytical signal. In this way, the first electronic device can receive the reflected signal from the second antenna, so that the positioning method is applicable to devices with two antennas, such as mobile phones, tablet computers, bracelets, watches and other devices, increasing the types of devices used by the positioning method.

[0022] According to the second aspect, the receiving circuit and the transmitting circuit in the first electronic device are electrically connected to the array antenna through a circulator; receiving the reflected signal includes: closing the first switch; detecting that the closing time of the first switch reaches a preset time, opening the first switch; if it is detected that the next first switch does not receive a signal, then closing the next first switch. In this way, the circulator can prevent the array antenna from sending and receiving signals at the same time, avoiding the problem of inaccurate positioning.

[0023] According to the second aspect, the receiving vector of the first positioning signal received by the first electronic device is determined based on the first coded information and the received reflected signal, including: obtaining the amplitude and phase of the third signal received by the array antenna in each code element of the first coded information as the first vector, and the third signal is included in the reflected signal; obtaining the product between each code element in the first coded information and the first vector, and the code element includes +1 or -1; summing each obtained product to generate the receiving vector of the first positioning signal. In this way, since the second electronic device is based on the first coded reflected signal, which is different from the fully reflected signal, and each code element in the first coded information includes +1 or -1; multiplying each code element with the first vector can quickly eliminate the same fully transmitted signal and quickly obtain the first positioning signal reflected by the second electronic device.

[0024] According to the second aspect, if the reflected signal is received by the second antenna; according to the first coded information and the received reflected signal, the receiving vector of the first positioning signal received by the first electronic device is determined, including: obtaining the amplitude and phase of the reflected signal received by the second antenna as the first vector; obtaining the product between each symbol data in the first coded information and the first vector, the symbol data includes +1 or -1; summing each obtained product to generate the receiving vector of the first positioning signal. In this way, since the second electronic device is based on the first coded reflected signal, which is different from the fully reflected signal, and each symbol data in the first coded information includes +1 or -1; multiplying each symbol data with the first vector can eliminate the same fully transmitted signal, thereby obtaining the first positioning signal reflected by the second electronic device; obtaining the amplitude and phase of the first positioning signal constitutes the receiving vector of the first positioning signal.

[0025] According to the second aspect, the first electronic device also stores second coding information, which is orthogonal to the first coding information. In this way, the first electronic device stores the second coding information orthogonal to the first coding information, so that the first electronic device can locate different devices based on the first coding information and the second coding information.

[0026] According to the second aspect, the method further includes: in response to the third positioning instruction, sending a second parsing signal to the third electronic device, so that the third electronic device reflects according to the preset second coding information to form a second positioning signal; receiving the reflected signal, the reflected signal also includes the second positioning signal; obtaining the signal strength of the second positioning signal received by the array antenna under different antenna weight groups; obtaining the antenna weight group corresponding to the maximum signal strength of the second positioning signal as the second target antenna weight group; using the positioning position matched with the second target antenna weight group as the position of the third electronic device. In this way, the first electronic device can also locate the third electronic device at the same time, thereby improving the efficiency of positioning.

[0027] In a third aspect, applied to a second electronic device, the method includes: generating a first positioning signal in response to a first positioning notification sent by a first electronic device; transmitting the first positioning signal to the first electronic device so that the first electronic device controls each antenna in an array antenna to receive the first positioning signal in a time-sharing manner; the first electronic device obtains the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; the first electronic device obtains the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group; the first electronic device uses the positioning position matching the first target antenna weight group as the position of the second electronic device.

[0028] According to a third aspect, an embodiment of the present application provides a positioning method, which is applied to a second electronic device, including: generating a first positioning signal in response to a first positioning notification sent by a first electronic device, including: when it is detected that the first positioning notification includes a first resolution signal, determining that the first positioning signal includes the first resolution signal;

[0029] When it is detected that the first positioning notification includes the identification information of the first resolution signal, the first resolution signal corresponding to the identification information is searched in the second electronic device according to the identification information; and it is determined that the first positioning signal includes the first resolution signal.

[0030] According to the third aspect, the first positioning notification includes: n analytical signals or identification information of n analytical signals, where n is an integer greater than 1; the method also includes: according to the first positioning notification, obtaining n analytical signals, the n analytical signals are different from each other; the second electronic device transmits n analytical signals through OFDM signals, and each subcarrier in the OFDM signal carries n analytical signals. In this way, OFDM carries multiple analytical signals, so that the first electronic device can be positioned based on multiple analytical signals respectively, and the first electronic device obtains the average of multiple positioning positions as the position of the second electronic device, thereby improving the positioning accuracy.

[0031] In a fourth aspect, the present application provides a positioning method, applied to a second electronic device, the method comprising: responding to a first analysis signal sent by a first electronic device, reflecting according to a preset first coding information to form a first positioning signal; the first electronic device receives the reflected signal, the reflected signal comprising the first positioning signal; the first electronic device obtains the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; the first electronic device obtains the antenna weight group corresponding to the maximum signal strength of the first positioning signal as the first target antenna weight group; the first electronic device uses the positioning position matching the first target antenna weight group as the position of the second electronic device.

[0032] According to the fourth aspect, the receiving antenna of the second electronic device is electrically connected to the second switch, and the second switch is electrically connected to the first load; in response to the first analysis signal sent by the first electronic device, it is reflected according to the preset first coding information to form a first positioning signal, including: obtaining the first coding information used to generate the first positioning signal in this round; closing or opening the second switch according to the indication of the first coding information, so that the receiving antenna of the second electronic device reflects the first analysis signal according to the first coding information to form a first positioning signal.

[0033] In a fifth aspect, the present application provides an electronic device, which serves as a first electronic device and includes: an array antenna, the array antenna includes multiple first antennas and a first switch corresponding to each first antenna, the first switch corresponding to the first antenna is used to close or disconnect the first antenna; a memory and a processor, the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the first aspect and the positioning method corresponding to any one of the implementations of the first aspect, or executes the second aspect and the positioning method corresponding to any one of the implementations of the second aspect.

[0034] According to the fifth aspect, the array antenna is deployed in the first electronic device in a planar array manner, or in an L-shaped manner, so that the array antenna can be flexibly deployed in the first electronic device.

[0035] In a sixth aspect, the present application provides an electronic device, which serves as a second electronic device, comprising: a memory and a processor, wherein the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes a positioning method corresponding to the third aspect and any one of the implementation methods of the third aspect.

[0036] In the seventh aspect, the present application provides an electronic device, which serves as a second electronic device, including: a memory and a processor, wherein the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the positioning method corresponding to the fourth aspect and any one of the implementation methods of the fourth aspect.

[0037] According to the seventh aspect, the receiving antenna of the second electronic device is electrically connected to the second switch, and the second switch is electrically connected to the first load.

[0038] In an eighth aspect, the present application provides a computer-readable medium for storing a computer program. When the computer program is run on an electronic device, the electronic device executes the positioning method corresponding to the above-mentioned first aspect and any one of the implementations of the first aspect, or executes the above-mentioned second aspect and any one of the implementations of the second aspect corresponding to the positioning method, or the third aspect and any one of the implementations of the third aspect corresponding to the positioning method, or the fourth aspect and any one of the implementations of the fourth aspect corresponding to the positioning method. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0040] Figure 1 is a schematic diagram of the structure of an electronic device shown exemplarily;

[0041] Figure 2 is a schematic diagram of a software structure of an electronic device shown as an example;

[0042] Figure 3 is a schematic diagram of an exemplary inversion focusing of an array antenna;

[0043] Figure 4 is a schematic diagram showing an exemplary array antenna performing scanning positioning;

[0044] Figure 5 is a flowchart showing an exemplary positioning method;

[0045] Figure 6 is a flowchart of another positioning method exemplarily shown;

[0046] Figure 7 exemplarily shows antenna structures in a first electronic device and a second electronic device;

[0047] Figure 8 is an antenna structure of another first electronic device exemplarily shown;

[0048] Fig. 9 is an exemplary arrangement of an array antenna in a first electronic device;

[0049] Fig.10 is a schematic diagram exemplarily showing a first electronic device positioning a second electronic device and a third electronic device;

[0050] Fig.11 is a flowchart of another positioning method exemplarily shown;

[0051] Fig.12 is a flowchart of another positioning method exemplarily shown;

[0052] Fig.13 is an antenna structure in another first electronic device and a second electronic device exemplarily shown;

[0053] Fig.14 is an antenna structure of another first electronic device exemplarily shown;

[0054] Fig.15 is an antenna structure in another first electronic device and a second electronic device exemplarily shown;

[0055] Fig.16 FIG. 1 is a schematic diagram showing an exemplary embodiment of a first electronic device locating two positioning tags simultaneously. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0058] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0059] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0060] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0061] Indoor positioning technology is generally related to the principles of radar technology. The radar system is not included in the communication system of smart devices. If radar-related circuits are set up, the positioning cost will increase.

[0062] The embodiment of the present application provides a positioning method, which is applied to an electronic device, wherein the electronic device includes an array antenna, and the array antenna includes multiple first antennas and a first switch matched with each first antenna. The first switch can be used to control the closing and opening of the corresponding first antenna. The positioning device can send a positioning notification to the positioned device in response to the positioning instruction, and the positioned device generates a positioning signal based on the positioning notification and sends the positioning signal. The positioning device controls the array antenna to receive the positioning signal in time division, obtains the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; obtains the positioning position matched by the corresponding antenna weight group when the signal strength of the first positioning signal is the maximum as the position of the positioned device. In the positioning device in the positioning method, the array antenna includes a first antenna and a first switch of the first antenna. The first switch has low cost, simple setting, and small changes to the positioning device, thereby reducing the cost of the positioning device. This positioning method utilizes the inversion focusing principle of the array antenna, and the positioning is more accurate indoors.

[0063] Figure 2 This is a schematic diagram of the structure of an electronic device 100 shown in an embodiment of the present application. It should be understood that: Figure 2 The illustrated electronic device 100 is merely one example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have a different configuration of components. Figure 2 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0064] The electronic device 100 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, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0065] The wireless communication function of the electronic device 100 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.

[0066] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0067] Figure 2 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0068] The layered architecture of the electronic device 100 divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into three layers, from top to bottom, namely, the application layer, the application framework layer, and the kernel layer. It is understandable that Figure 2 The layers in the software structure and the components contained in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown in the figure, and each layer may include more or fewer components, which is not limited in the present application.

[0069] like Figure 2As shown, the application layer can include a series of application packages. The application packages can include indoor positioning applications, maps, WLAN, Bluetooth, music, games, short messages, gallery, calls, navigation, video and other applications. The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Indoor positioning applications can be used to locate the device being located, and can also locate multiple electronic devices at the same time to obtain the relative position information between multiple electronic devices.

[0070] like Figure 2 As shown, the application framework layer may include a window manager, a resource manager, a content provider, a view system, a phone manager, a notification manager, and the like.

[0071] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0072] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0073] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0074] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0075] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0076] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0077] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0078] Understandably, Figure 2 The layers in the software structure shown and the components included in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.

[0079] Figure 3 FIG. 1 is a schematic diagram of an exemplary inversion focusing of an array antenna. Figure 3 The array antenna shown includes multiple antennas (such as a 4*4 array antenna), each antenna transmits a signal at the same time, and the signal transmitted by each antenna is focused on a point (or an area). Figure 3 As shown, the signals transmitted by the 16 antennas in the array antenna, and the beam formed by the array antenna is focused on the area where point A is located. The signal strength received by the device located in the area where point A is located is the greatest.

[0080] Figure 4 This is a schematic diagram of scanning and positioning of the array antenna. Figure 4 As shown, the first electronic device is equipped with an array antenna, such as the array antenna includes four antennas. For the array antenna, each shaped beam is equivalent to a set of antenna weights, that is, Figure 4 A set of antenna weights for the four antennas in the array can obtain a shaped beam. For example, the first set of antenna weights for the array antenna is recorded as: [1∠0°, 0.5∠30°, 1∠60°, 0.5∠90°], where 1∠0° means that the amplitude of the first antenna of the array antenna is 1 and the phase is 0 degrees; 0.5∠30° means that the amplitude of the second antenna of the array antenna is 0.5 and the phase is 30 degrees. 1∠60° means that the amplitude of the third antenna of the array antenna is 1 and the phase is 60 degrees. 0.5∠90° means that the amplitude of the fourth antenna of the array antenna is 0.5 and the phase is 90 degrees. The second set of antenna weights for the array antenna is recorded as: [1∠0°, 1∠180°, 1∠0°, 1∠180°]. The second set of antenna weights indicates that the amplitude of the first antenna is 1 and the phase is 0 degrees; the amplitude of the second antenna is 1 and the phase is 180 degrees; the amplitude of the third antenna is 1 and the phase is 0 degrees; the amplitude of the fourth antenna is 1 and the phase is 180 degrees. The two different sets of antenna weights generate two different beams, and the two beams are focused on different positions. The first electronic device can easily obtain a set of weights corresponding to focusing at any point in space based on the principle of electromagnetic wave inversion. In other words, each focusing position has a corresponding set of weights.

[0081] The first electronic device can store each group of antenna weights of the array antenna, and instruct the array antenna to traverse all focus ranges within the current range from near to far. The first electronic device can determine the signal strength received by the mobile phone, obtain a group of antenna weights corresponding to the maximum signal strength of the signal received by the mobile phone, and determine that the position corresponding to the obtained group of antenna weights is the position of the mobile phone. Figure 4 As shown, assuming that the position corresponding to the kth group of antenna weights is the point B area, when the first electronic device detects that the signal received by the mobile phone is the largest, the corresponding group of antenna weights is the kth group, then it is determined that the mobile phone is located at point B.

[0082] In this example, each antenna in the array antenna needs to continuously transmit signals to traverse each focusing position, resulting in high energy consumption for positioning.

[0083] The present application also provides a positioning method, which can receive the signal transmitted by the positioned device by an array antenna, obtain a set of antenna weights when the received signal is the strongest, and obtain the position corresponding to the set of antenna weights as the position information of the positioned device. Figure 5 As shown:

[0084] Step 500: The second electronic device sends a first positioning request to the first electronic device.

[0085] Exemplarily, the second electronic device may be a device capable of transmitting signals, such as a mobile phone, a tablet computer, a smart bracelet, a smart watch, and the like. An array antenna is installed in the first electronic device, and the array antenna includes a plurality of first antennas, such as 4, 5, 6, 10 or more first antennas. It is understood that the more first antennas there are in the array antenna, the higher the accuracy of its positioning. The first electronic device may be a television, an air conditioner, and the like.

[0086] When the second electronic device needs to obtain its own location information, it can send a first positioning request to the first electronic device. For example, on the display interface of the second electronic device, the user clicks the positioning button, and the second electronic device responds to the user's click operation and sends a first positioning request to the first electronic device. For another example, the second electronic device starts application A, and application A needs to obtain the location information of the second electronic device, then application A instructs the second electronic device to send a first positioning request to the first electronic device. The first positioning request is used to instruct the first electronic device to locate the position of the second electronic device.

[0087] Step 501: The first electronic device sends a first positioning notification to the second electronic device in response to a first positioning request.

[0088] Exemplarily, the first electronic device stores each preset positioning position and an antenna weight group matched to each positioning position, the antenna weight group including the antenna weight of each first antenna in the first electronic device. For example, a group of antenna weight groups can be recorded as (W1, W2, W3...), W i The antenna weights of the i-th first antenna in the array antenna are characterized. Different antenna weight groups represent beams focused at different positions.

[0089] Optionally, different antenna weight groups can be pre-constructed by the first electronic device through simulation. Optionally, a measuring antenna is used, the measuring antenna is placed at different positions, and the amplitude and phase of the corresponding array antenna when the received signal strength is the maximum are measured.

[0090] The first electronic device may determine that the device to be located is the second electronic device according to the first positioning request, so the first electronic device may send a first positioning notification to the second electronic device. Optionally, the first positioning notification may include the first resolution signal or identification information of the first resolution signal.

[0091] Optionally, when the first electronic device further includes a second antenna, the first positioning notification may include: instruction information for instructing the second electronic device to send a positioning frame. For example, the first positioning notification includes: an instruction to send a positioning frame. The first positioning notification may also include: the first resolution signal or identification information of the first resolution signal.

[0092] Step 502: The second electronic device generates a first positioning frame.

[0093] Exemplarily, the second electronic device may generate a first positioning frame according to the first positioning notification. Optionally, when the first positioning notification includes a first resolution signal, the second electronic device determines that the first positioning frame includes the first resolution signal.

[0094] Optionally, when the first positioning notification includes identification information of the first resolution signal, the second electronic device searches for the first resolution signal matching the identification information in the second electronic device according to the identification information to obtain the first resolution signal; and determines that the first positioning frame includes the first resolution signal.

[0095] Optionally, when the first positioning notification includes instruction information for instructing the second electronic device to send a positioning frame, the second electronic device receives the first positioning notification and can select any one of the stored first resolution signals to add to the first positioning frame.

[0096] Step 503: The second electronic device sends a first positioning frame to the first electronic device.

[0097] Step 504: The first electronic device synchronizes and parses the first positioning frame.

[0098] Exemplarily, the array antenna of the first electronic device can receive the first positioning frame sent by the second electronic device in time division. The first electronic device can analyze the first signal according to the storage. Optionally, when the first electronic device also includes a second antenna, the signal received by the second antenna can be obtained as the first analysis signal.

[0099] The first electronic device can parse the first positioning frame according to the first parsing signal. The specific parsing process is as follows: Figure 6 The corresponding process is described in detail.

[0100] Step 505: The first electronic device uses the virtual beam to resolve the location information.

[0101] Exemplarily, the first electronic device stores different antenna weight groups, and each antenna weight group may correspond to a virtual beam. When the first electronic device focuses on the second electronic device according to the virtual beam corresponding to the stored antenna weight group, the signal received by the second electronic device is the maximum. Based on the principle of reversibility of the optical path, the positioning frame transmitted by the second electronic device contains the position information corresponding to the antenna weight group when the signal acquired by the array antenna in the first electronic device is the maximum. The first electronic device uses the position information as the position information of the second electronic device.

[0102] Step 506: The first electronic device feeds back location information to the second electronic device.

[0103] In this example, the inversion principle of electromagnetic waves is utilized to quickly locate the position of the second electronic device through the signal strength received by the array antenna in the first electronic device, each antenna weight group of the stored array antenna, and the positioning position corresponding to each antenna weight group. The array antenna is arranged in the positioning device. Compared with the expensive radar system, the positioning device in this example has low cost and is easier to deploy.

[0104] Figure 6 FIG. 1 is a flowchart of a positioning method shown as an example. Figure 7 The antenna structures in the first electronic device and the second electronic device are described in detail.

[0105] The array antenna of the first electronic device can be electrically connected to a radio frequency integrated circuit, and the radio frequency integrated circuit can be used to convert baseband signals into radio frequency signals and transmit them through the array antenna. The array antenna is electrically connected to a modem. The modem is used to convert analog signals into digital signals. Figure 7As shown, the radio frequency integrated circuit and the modem can be integrated into a chip 701. The chip 701 is electrically connected to the array antenna 702. In this example, in order to facilitate the description of the process of positioning the first electronic device, the array antenna 702 includes four first antennas as an example. It can be understood that the more the number of array antennas, the better the effect of positioning the first electronic device. For example, the number of first antennas in the array antenna can be 10, 20, 30, 50, 100, etc.

[0106] Continue to refer to Figure 7 The second electronic device may include a second antenna 703, which is a single antenna for receiving and transmitting signals. The specific process of the positioning method includes:

[0107] Step 600: The second electronic device sends a first positioning request to the first electronic device.

[0108] This step is substantially the same as step 500 and can be performed according to the relevant description in step 500, which will not be described again here.

[0109] Step 601: The first electronic device sends a first positioning notification to the second electronic device in response to a first positioning request.

[0110] Exemplarily, the first electronic device includes an array antenna, and the first electronic device can pre-store at least one first resolution signal and identification information of each first resolution signal. The first resolution signal is used for the first electronic device to correctly resolve the signal sent by the second electronic device later.

[0111] The second electronic device may also pre-store multiple first resolution signals and identification information of each first resolution signal. When the second electronic device pre-stores multiple first resolution signals and identification information of each first resolution signal, the first positioning notification may include: identification information of the first resolution signal. Optionally, when the first resolution signal is not stored in the second electronic device, the first positioning notification may include the first resolution signal.

[0112] It should be noted that the array antenna of the first electronic device includes a plurality of first antennas and a first switch of each first antenna. The first electronic device controls any first switch in the array antenna to be closed to transmit the first positioning notification.

[0113] Step 602: The second electronic device generates a first positioning signal according to the first positioning notification.

[0114] Exemplarily, if the first positioning signal includes the first resolution signal, the second electronic device acquires the first resolution signal from the first positioning notification when receiving the first positioning notification. The second electronic device may determine that the first positioning notification includes at least the first resolution signal.

[0115] Optionally, when the first positioning signal includes identification information of the first resolution signal. When the second electronic device receives the first positioning notification, it obtains the identification information of the first resolution signal from the first positioning notification. The second electronic device obtains the first resolution signal corresponding to the identification information according to the identification information of the first resolution signal. The second electronic device determines that the first positioning signal at least includes the first resolution signal.

[0116] The first positioning signal may also include other information, for example, a reference signal (ReferenceSignal, "RS"), which is used for coherent demodulation and serves the demodulation of various physical channels. For example, the reference signal may be a modulation reference signal (DeModulation Reference Signal, "DMFS"). Figure 7 The structure of the first positioning signal 704 transmitted by the second electronic device is as shown in FIG. Figure 7 As shown, the horizontal axis of the first positioning signal 704 is used to represent time, and the vertical axis is used to represent frequency. The first positioning signal 704 includes a modulation reference signal (DeModulation Reference Signal, "DMRS") 7041 and a first analysis signal 7042, and the first analysis signal 7042 includes multiple code elements.

[0117] Optionally, the second electronic device and the first electronic device may be preset so that each first antenna receives data on g symbols, where g is an integer greater than 1 or equal to 1. For example, each first antenna may receive data on one symbol, such as antenna 7021 of array antenna 702 receives data corresponding to time Ant0 (i.e., data on the first symbol), antenna 7022 receives data corresponding to time Ant1 (i.e., data on the second symbol), antenna 7023 receives data corresponding to time Ant2 (i.e., data on the third symbol), and antenna 7024 receives data corresponding to time Ant3 (i.e., data on the fourth symbol).

[0118] Step 603: The second electronic device sends a first positioning signal to the first electronic device.

[0119] Step 604: The first electronic device controls each first antenna in the array antenna to receive the first positioning signal in a time-sharing manner.

[0120] Exemplarily, after the array antenna transmits the first positioning notification, the first electronic device may perform the following processing on each first switch in the array antenna in turn: close the first switch; upon detecting that the duration of closure of the first switch reaches a preset duration, open the first switch; and if it is detected that the next first switch receives a signal, close the next first switch.

[0121] Optionally, the first electronic device may record the switch identifier of each first switch, and in each round of receiving signals, may record the switch identifier of each closed first switch. When it is detected that there is still a first switch that has not been closed, one of the first switches that has not been closed is selected to be closed until there is no first switch that has not been closed in this round.

[0122] For example, if Figure 7 As shown, it is assumed that the second electronic device sends the first positioning signal at time T2. The first electronic device controls the first switch of the first antenna 7021 to close, and keeps the first switches corresponding to the first antennas 7022, 7023 and 7024 respectively disconnected. The first antenna 7021 receives the first signal corresponding to time Ant0, which is included in the first positioning signal. At time Ant1, the first electronic device controls the first switch of the first antenna 7022 to close, disconnects the first switch of the first antenna 7021, and keeps the first switches of other first antennas disconnected. The first antenna 7021 receives the data corresponding to time Ant1 in the first positioning signal. At time Ant2, the first electronic device controls the first switch of the first antenna 7023 to close, disconnects the first switch of the first antenna 7022, and keeps the first switches of other first antennas disconnected. The first antenna 7023 receives the data corresponding to time Ant2 in the first positioning signal. At time Ant3, the first electronic device controls the first switch of the first antenna 7024 to close, disconnects the first switch of the first antenna 7023, and keeps the first switches of other first antennas disconnected. The first antenna 7024 receives data corresponding to time Ant3 in the first positioning signal.

[0123] When the array antenna receives signals in the next round, the first switches of the first antenna 7021 to the first switches of the first antenna 7024 are closed in sequence. Figure 7 As shown, the data corresponding to the second Ant0 moment in the first positioning signal is received by the first antenna 7021, the data corresponding to the second Ant1 moment is received by the first antenna 7022, the data corresponding to the second Ant2 moment is received by the first antenna 7023, and the data corresponding to the second Ant3 moment is received by the first antenna 7024.

[0124] The array antenna controls the first switch of each first antenna to close in sequence, thereby enabling the array antenna to receive the first positioning signal in time.

[0125] Optionally, the second electronic device and the first electronic device may pre-set the first positioning signal to include a switching antenna protection time. For example, each first antenna may also receive data of two symbols. Figure 7As shown, antenna 7021 of array antenna 702 receives data corresponding to time Ant0 and time Ant1 (such as R B1 , R B2 ), antenna 7022 receives data corresponding to time Ant2 and time Ant3 (such as R B3 , R B4 ). Among them, Ant1 and Ant3 are used to ensure that the antenna does not miss data when switching, and the Ant1 and Ant3 are protection times. That is, R B1 , R B3 Included in the first analytical signal, the R B1 , R B3 The data contained in the Ant1 and Ant3 moments (such as R B2 , R B4 ) can be empty or other data. B2 , R B4 It can be used as an invalid signal in the first positioning signal.

[0126] Step 605: Signal strength of the first positioning signal received by the first electronic device under different antenna weight groups.

[0127] Exemplarily, the first electronic device pre-stores the first analysis signal, that is, the first electronic device has learned the amplitude and phase of each symbol in the first analysis signal. The first electronic device needs to determine the signal strength received by the array antenna under the configuration of different antenna weight groups. Since the amplitude and phase of each symbol in the first analysis signal are known, by obtaining the first relationship between the first positioning signal received by the first electronic device and the first analysis signal, the signal strength of the signal received in each antenna weight group can be determined. The first relationship includes the amplitude relationship between the signals and the phase relationship between the signals.

[0128] The first electronic device may obtain a first positioning signal obtained by the array antenna in a round of switching. The first electronic device may obtain a first signal received by each first antenna of the array antenna, the first signal being a valid signal in the first positioning signal.

[0129] For example, if the first positioning signal is not set with a switching protection time, the first antenna 7021 (such as Figure 7 The signal on the received code element is denoted as R B1 , the R B1 That is, the first signal. If the first positioning signal is set with a switching protection time, if each first antenna receives two code elements, the signal on the first code element of the two code elements is a valid signal, and the signal on the second code element is an invalid signal. Figure 7As shown, the first antenna 7021 can receive two symbols, which are respectively recorded as Symbol_1 and Symbol_2. The Symbol_2 corresponds to the switching protection time, and the signal on the Symbol_1 is R B1 (i.e. valid signal), the signal on Symbol_2 is R B2 (i.e. invalid signal).

[0130] The first electronic device obtains a second signal that matches the first signal in the first parsed signal. For example, the first antenna 7021 receives the first signal R in the first symbol B1 , the first electronic device can obtain the second signal R corresponding to the first code element in the first analysis signal A1 , the second signal R A1 With the first signal R B1 match.

[0131] The first electronic device obtains the ratio of the amplitude of each first signal to the second signal that matches it, and obtains the phase difference between each first signal and the second signal that matches it, and can form the receiving vector of the first positioning signal received by the array antenna with the ratio of the amplitude and the phase difference between each first signal and the second signal. Optionally, the first electronic device can compare the first signal with the second signal, and then obtain the ratio of the amplitude of the first signal to the second signal that matches it, and the phase difference between the first signal and the second signal that matches it.

[0132] For example, continue to refer to Figure 7 The array antenna includes four first antennas, and the first signal received by the first antenna 7021 is denoted as R B1 , the first signal received by the first antenna 7022 is denoted as R B2 , the first signal received by the first antenna 7023 is recorded as R B3 , the first signal received by the first antenna 7024 is denoted as R B4 The first electronic device obtains the stored first analysis signal and obtains the signal corresponding to R B1 Matching the second signal R A1 , and R B2 Matching the second signal R A2 , and R B3 Matching the second signal R A3 , and R B4 Matching the second signal R A4 Since the signal includes amplitude and phase, the first electronic device can obtain the ratio between the first signal and the second signal, which is expressed as: Similarly, the ratios between other first signals and the matching second signals can be obtained. Each ratio is used to form a receiving vector of the received first positioning signal, and the receiving vector is shown in formula (1);

[0133]

[0134] in, R B1 The amplitude is R A1 The amplitude is A1 times, R B1 The phase of R A1 The phase difference is θ1, and the meanings of other items are similar, so they will not be elaborated here.

[0135] The first electronic device stores antenna weight groups corresponding to each positioning position, and can perform normalization processing on each antenna weight in each antenna weight group to obtain a weight vector of each antenna weight group. The first electronic device normalizes the antenna weights to avoid the problem of inaccurate signal strength calculated based on the antenna weights. The process of normalizing the antenna weights is specifically described below:

[0136] The first electronic device processes each antenna weight group as follows: the first electronic device obtains the amplitude of each antenna weight in the antenna weight group, calculates the average amplitude of the antennas in the antenna weight group (denoted as A x );Get the amplitude of each antenna weight and the average value A of the amplitude of the antenna in the antenna weight group x For example, the first antenna weight group includes antenna weights of four first antennas, and the first electronic device obtains the amplitudes of the four first antennas in the first antenna weight group, which are: A 11 , A 12 , A 13 , A 14 ; Get the average of the 4 amplitudes The first electronic device obtains A 11 With A 1X The ratio (denoted as A n11 ) as the amplitude of the normalized antenna weight; similarly, A can be obtained 12 With A 1X The ratio (denoted as A n12 ), A 13 With A 1X The ratio (denoted as A n13 ), and A 14 With A 1X The ratio (denoted as A n14 ). The first electronic device receives A n11 , A n12 , A n13 , A n14As the normalized amplitude of the four antenna weights in the first antenna weight group, in this example, only the amplitude of the antenna weights is normalized.

[0137] For example, continue to refer to Figure 7 Array antenna, assuming that the first electronic device stores 16 antenna weight groups, each antenna weight group, each antenna weight group includes the antenna weights of the four first antennas. The first electronic device normalizes the antenna weights in each antenna weight group, wherein the normalization process is not repeated here. After the first antenna weight group is normalized, the weight vector of the first antenna weight is recorded as W1, which can be expressed as (W 11 , W 12 , W 13 , W 14 ), the W 11 The first electronic device normalizes the 16 antenna weight groups respectively to obtain 16 weight vectors, which can be recorded as (W1, W2, W3, ..., W 16 ).

[0138] The first electronic device performs inner product of the receiving vector and each weight vector respectively to obtain the signal strength of the first positioning signal received by the array antenna in each antenna weight group.

[0139] For example, suppose The first electronic device obtains 16 weight vectors, which are recorded as (W1, W2, W3, ..., W 16 ). Each vector includes the antenna weights of the four first antennas, such as W1 which can be expressed as (W 11 , W 12 , W 13 , W 14 ), W2 can be expressed as (W 21 , W 22 , W 23 , W 24 ), ..., W 16 It can be expressed as (W 161 , W 162 , W 163 , W 164 ). The first electronic device performs an inner product of the received vector R and W1, as shown in formula (2):

[0140]

[0141] The value of R·W1 (denoted as S1) is the signal strength of the first positioning signal received by the array antenna in the case of the first antenna weight group. Similarly, the first electronic device performs inner products of the receiving vector with the other 15 weight vectors to obtain the signal strength of the first positioning signal received by the array antenna in the case of the other 15 antenna weight groups. In other words, the first electronic device can obtain 16 signal strengths, which are denoted as S1, S2...S16.

[0142] In this example, since the first positioning signal emitted by the second electronic device may have problems such as phase jitter and frequency deviation, the first signal and the second signal are compared to obtain the ratio of the amplitude of the first signal and the matching second signal and the phase difference between the first signal and the matching second signal. This can avoid the problem of inaccurately determined receiving vector due to phase jitter or frequency deviation of the first positioning signal.

[0143] In this example, after receiving the first positioning signal, the array antenna can calculate the signal strength of the first positioning signal received by the array antenna under different antenna weights through the stored different antenna weight groups. That is, there is no need for the array antenna to adjust the antenna weight group and then re-receive the first positioning signal, thereby reducing the power consumption of reception.

[0144] Step 606: The first electronic device obtains the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group.

[0145] Exemplarily, after the first electronic device obtains the signal strength of the first positioning signal received by the array antenna under each antenna weight group, it can obtain the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group.

[0146] It is understandable that, since R is a complex number, the signal strength of S1 (the value of R·W1) can be measured by the amplitude of S1 or the modulus of S1. For example, the first electronic device can obtain 16 signal strengths, which are respectively recorded as S1, S2...S16. The first electronic device detects that the amplitude of S12 is the largest (or the modulus of S12 is the largest), and the 12th antenna weight group corresponding to S12 is used as the first target antenna weight group.

[0147] Step 607: The first electronic device uses the positioning position matched with the first target antenna weight group as the position of the second electronic device.

[0148] Specifically, each antenna weight group has a unique matching positioning position, and the first electronic device obtains the positioning position that matches the first target antenna weight, and uses the obtained positioning position as the position of the second electronic device.

[0149] Step 608: The first electronic device feeds back location information of the second electronic device to the second electronic device.

[0150] Specifically, the first electronic device may send the location information of the second electronic device to the second electronic device.

[0151] Optionally, the first positioning signal sent by the second electronic device may be an OFDM signal. The OFDM signal includes multiple subcarriers. The first analysis signal may be carried on the multiple subcarriers respectively. Figure 7 The first positioning signal shown in FIG. 1 includes data carried by different subcarriers in each line. Figure 7 As shown, the first analysis signal may be carried in the first row and the third row. That is, the first positioning signal may include two first analysis signals.

[0152] The first electronic device can obtain the average of the signal strengths of the first positioning signal received by the array antenna under each antenna weight group. For example, in the case of the first antenna weight group, the first electronic device can obtain the signal strength of the signal carried by the first row of subcarriers obtained by the array antenna, which is S11, and obtain the signal strength of the signal carried by the third row of subcarriers, which is recorded as S31. The first electronic device obtains the average of S11 and S31 as the signal strength of the first positioning signal received by the array antenna under the first antenna weight group. This method is equivalent to obtaining the signal strength of the signal received by the first electronic device multiple times, which improves the accuracy of the signal strength and thereby improves the accuracy of positioning.

[0153] Optionally, the first positioning notification determined by the first electronic device may include at least two different resolution signals. After receiving the first positioning notification, the second electronic device may carry different resolution signals on different subcarriers of OFDM, and use the OFDM signal as the first positioning signal. The second electronic device sends the first positioning signal to the first electronic device. The first electronic device may obtain the positions corresponding to the antenna weight groups with the strongest signal strengths received, respectively, based on the two resolution signals in the first positioning signal, and obtain the average of the two positions as the position of the second electronic device.

[0154] For example, the first electronic device stores R A Signal and R D signal, the first electronic device according to R A Signal and R D The first electronic device sends the first positioning notification to the second electronic device, and the second electronic device adds R to the first subcarrier of the OFDM signal. A signal, add R on the second subcarrier DThe second electronic device transmits the first positioning signal to the first electronic device. Assume that the array antenna of the first electronic device includes Figure 7 The four first antennas shown in the figure, the signal B on the first subcarrier received by the array antenna in time division is recorded as (R B1 , R B2 , R B3 , R B4 ), and the signal C received on the second subcarrier in time division is recorded as (R C1 , R C2 , R C3 , R C4 ).

[0155] The first receiving vector of the received signal B obtained by the first electronic device can be expressed as formula (3):

[0156]

[0157] The second receiving vector obtained by the first electronic device after receiving the signal C can be expressed as formula (4):

[0158]

[0159] The first electronic device obtains 16 weight vectors, which are recorded as Wi=(W1, W2, W3, . . . , W 16 ). Each vector includes the antenna weights of the four first antennas, such as W1 which can be expressed as (W 11 , W 12 , W 13 , W 14 ), W2 can be expressed as (W 21 , W 22 , W 23 , W 24 ), ..., W1 can be expressed as (W 161 , W 162 , W 163 , W 164 ). The first electronic device performs inner product operations on the received vector R1 and the 16 weight vectors to obtain 16 signal strengths, which are respectively denoted as S 1_1 ~S 1_16 ; Perform inner product operations on the received vector R2 and the 16 weight vectors to obtain 16 signal strengths, which are denoted as S 2_1 ~S 2_16 If S is detected 1_1 ~S 1_16 Medium S 1_5 Maximum, get S 1_5 The corresponding antenna weight group positioning position L5; if S is detected 2_1 ~S 2_16 Medium S2_6 Maximum, get S 2_6 The corresponding positioning position L6 of the antenna weight group. Assume that the positioning position L5 is a circular area with l5 as the circle point and a radius of r1; the positioning position L6 is a circular area with l6 as the circle point and a radius of r2; the first electronic device can obtain the midpoint of the line between the circle point l5 and the circle point l6, recorded as l3; the first electronic device can obtain the average of the lengths of r1 and r2, recorded as r3 = (r1 + r2) / 2; the first electronic device determines that the position of the second electronic device is a circular area with l3 as the circle point and a radius of r3.

[0160] In this example, an array antenna is installed in the first electronic device, and the array antenna includes multiple first antennas and a first switch for each first antenna. The first electronic device can control the first antenna in the array antenna to receive the first positioning signal sent by the second electronic device in a time-sharing manner by controlling the closing and opening of each first switch. Based on the principle of inversion focusing of the array antenna and the principle of reversibility of the optical path, it can be known that if the signal emitted by the array antenna in the case of the first antenna weight group is focused on the point A position, then the signal emitted from the point A position, the signal strength received by the array antenna in the case of the first antenna weight group is the maximum. Based on this, the first electronic device stores the first analysis signal, and the first positioning signal at least includes the first analysis signal, so that the first electronic device can determine the signal strength of the first positioning signal received by the array antenna under different antenna weight groups according to the first analysis signal and the first positioning signal, and obtain the antenna weight group of the array antenna when the signal strength is the maximum, and each antenna weight group has a unique corresponding positioning position, thereby determining the position of the second electronic device. In this example, the first electronic device does not need to install expensive positioning equipment, but only needs to set up an array antenna including a switch, so the positioning cost is low, and at the same time, the positioning process is simple and the positioning speed is fast. It can be flexibly applied in different scenarios. For example, the positioning device can be installed on a TV wall, and the TV wall can be used to locate other devices. It can also be installed in air conditioners, TVs, refrigerators and other devices.

[0161] In some embodiments, when the first electronic device includes an array antenna and a second antenna, the first electronic device may not store the first parsed signal. Figure 8 The process of positioning the second electronic device when the first electronic device includes an array antenna and a second antenna is specifically described.

[0162] like Figure 8As shown, the first electronic device includes: a chip 801, a second antenna 802 and an array antenna 803. The second antenna 802 and the array antenna 803 are both electrically connected to the chip 801. The chip 801 integrates a radio frequency integrated circuit and a modem. It can be understood that the more the number of array antennas, the better the positioning effect of the first electronic device. For example, the number of first antennas in the array antenna can be 10, 20, 30, etc. In this example, the array antenna 803 includes 4 first antennas as an example for explanation.

[0163] Step 801: The first electronic device sends a first positioning notification to a second electronic device in response to a first positioning instruction.

[0164] The first electronic device may pre-store various positioning positions and antenna weight groups matching each positioning position. The first electronic device may receive a first positioning instruction input by a user. Optionally, the first electronic device may also receive a first positioning request sent by a second electronic device and generate a first positioning instruction. The first positioning notification may include a method for triggering the second electronic device to generate a first positioning signal.

[0165] Step 802: The second electronic device generates a first positioning signal according to the first positioning notification.

[0166] Specifically, the second electronic device may generate a first positioning signal in a preset manner in response to the first positioning notification. Optionally, the second electronic device may pre-store different resolution signals, and when the second electronic device receives the first positioning notification, it may select any one of the stored resolution signals, and generate the first positioning notification based on the selected resolution signal, that is, the first positioning notification includes the selected resolution signal.

[0167] Optionally, when the first positioning notification includes: duration information for indicating that each first antenna in the array antenna is switched once; the second electronic device can generate a first positioning signal with a period at least greater than the duration based on the duration information to ensure that in one round of switching of the array antenna, each first antenna can receive the first signal in the first positioning signal, and the first signal is included in the first positioning signal.

[0168] Step 803: The second electronic device sends a first positioning signal to the first electronic device.

[0169] Step 804: The first electronic device controls each first antenna in the array antenna to receive the first positioning signal in a time-sharing manner.

[0170] This step is substantially the same as the process of step 604 , and the relevant description in step 604 may be referred to, and will not be repeated here.

[0171] Step 805: Signal strength of the first positioning signal received by the first electronic device under different antenna weight groups.

[0172] Exemplarily, the first electronic device may obtain a first positioning signal obtained by the array antenna in a round of switching. The first electronic device may obtain a first signal received by each first antenna of the array antenna, where the first signal is a valid signal in the first positioning signal. This process is similar to the process in step 605 and will not be described in detail here.

[0173] Since the first electronic device further includes a second antenna, the second antenna can receive the first positioning signal in real time, and the first electronic device can use the first positioning signal received by the second antenna as the first resolution signal.

[0174] The first electronic device obtains a second signal matching the first signal in the first parsed signal. This process is similar to the process in step 605 and will not be described again here.

[0175] The first electronic device obtains the amplitude ratio of each first signal and its respective matching second signal and obtains the phase difference between each first signal and its respective matching second signal. The amplitude ratio and phase difference between each first signal and the second signal can be combined into a receiving vector of the first positioning signal received by the array antenna.

[0176] Optionally, the first electronic device may compare the first signal with the second signal to obtain the ratio of the amplitudes of the first signal and the matching second signal and the phase difference between the first signal and the matching second signal.

[0177] In this example, the first positioning signal is not set with a switching protection time as an example. Figure 8 , the array antenna 803 includes four first antennas, and the first electronic device controls each first switch to be closed in sequence to ensure that only one first antenna of the array antenna receives a signal at each moment. The first signal received by the first antenna 8031 ​​is recorded as R B1 , the first signal received by the first antenna 8032 is recorded as R B2 , the first signal received by the first antenna 8033 is recorded as R B3 , the first signal received by the first antenna 8034 is recorded as R B4 The first electronic device obtains the first positioning signal received by the second antenna, and uses the first positioning signal received by the second antenna as the first analysis signal. The first electronic device obtains the first analysis signal corresponding to R B1 Matching the second signal R A1 , and R B2 Matching the second signal R A2 , and R B3 Matching the second signal RA3 , and R B4 Matching the second signal R A4 The first electronic device obtains the ratio of the amplitude and phase between the first signal and the second signal, which is expressed as: Similarly, the ratio of the amplitude and phase between the other first signals and the matching second signals can be obtained. Each ratio is combined into a receiving vector of the received first positioning signal, and the receiving vector is shown in formula (5);

[0178]

[0179] in, R B1 The amplitude is R A1 The amplitude is A1 times, R B1 The phase of R A1 The phase difference is θ1, and the meanings of other items are similar, so they will not be elaborated here.

[0180] After determining the receiving vector of the array antenna, the first electronic device can obtain the inner product of the receiving vector and each weight vector; and use the value of each inner product as the signal strength of the first positioning signal received by the array antenna under different antenna weight groups. This process can refer to the relevant process in step 605, which will not be described here.

[0181] Fig. 9 FIG. 1 is a schematic diagram showing an exemplary deployment of an array antenna in a first electronic device. Fig. 9 As shown in FIG9a, the multiple first antennas in the first electronic device are arranged in a planar array to form an array antenna. The multiple first antennas can also be arranged in an L-shaped manner on the frame of the TV to form an array antenna. Fig. 9 Optionally, multiple first antennas may also be deployed on the frame of the first electronic device, such as Fig. 9 As shown in 9c.

[0182] In this example, the positioning range is usually related to the area of ​​the array antenna and the number of the first antennas in the array antenna. For example, the position of the first antenna in the array antenna is set at fixed intervals, and the positioning range of the electronic device including the array antenna can be less than or equal to 10 times the area of ​​the array antenna.

[0183] In this example, current electronic devices are usually equipped with two antennas. The positioning method in this example only needs to add a first switch matching the first antenna in the array antenna, thereby increasing the application scenarios of the positioning method.

[0184] Fig.10The first electronic device exemplarily obtains the relative position relationship between the second electronic device and the third electronic device, and feeds back the relative position relationship to the second electronic device or the third electronic device, so that the second electronic device or the third electronic device performs other operations based on the relative position relationship.

[0185] like Fig.10 As shown, the second electronic device wants to know the relative position relationship between the tablet computer (i.e., the third electronic device) and itself (i.e., the second electronic device). The second electronic device can send a second positioning instruction to the first electronic device, and the second electronic device responds to the second positioning instruction and sends a second positioning notification to the third electronic device. In this example, the first electronic device can use Figure 8 The antenna structure shown in , that is, includes an array antenna and a second antenna. The second positioning notification is similar to the first positioning notification, and may include information instructing the third electronic device to generate a second positioning signal; it may also include a second resolution signal or identification information of the second resolution signal. The second electronic device generates and sends a second positioning signal in response to the received second positioning notification.

[0186] The first electronic device controls the array antenna to receive the second positioning signal in time division, and obtains the signal strength of the second positioning signal received by the array antenna under different antenna weight groups. The first electronic device obtains the antenna weight group corresponding to the maximum signal strength of the second positioning signal as the second target antenna weight group; and uses the positioning position that matches the second target antenna weight group as the position of the third electronic device. The process of the first electronic device determining the position of the third electronic device is similar to the process of determining the position of the second electronic device, which can be referred to. Figure 8 The relevant description in will not be repeated here.

[0187] The first electronic device determines the relative position information between the second electronic device and the third electronic device according to the position of the second electronic device and the position of the third electronic device, and sends the relative position information to the second electronic device. After receiving the relative position, the second electronic device can perform processing based on the relative position.

[0188] In this example, the second electronic device does not have the function of locating other electronic devices, and can obtain the relative position relationship between the third electronic device and the second electronic device by sending a positioning request to the first electronic device, and then perform an operation matching the relative position relationship.

[0189] In some embodiments, the device being located may not have the ability to transmit signals, which can further reduce the cost of the device being located. Fig.11 The positioning process is described as follows:

[0190] The antenna structure of the first electronic device is as follows Fig.13 As shown, the first electronic device includes an array antenna 1301, a circulator 1302, a transmitting circuit 1303, and a receiving circuit 1304. The transmitting circuit 1303 and the receiving circuit 1304 are electrically connected to the array antenna 1301 through the circulator 1302. The circulator 1302 can ensure that the array antenna does not transmit and receive signals at the same time.

[0191] The second electronic device includes a receiving antenna 1305 and a second switch 1306 electrically connected to the receiving antenna 1305; the second switch 1306 is electrically connected to a load 1307; the load 1307 can be grounded or electrically connected to a controller of the second electronic device. The controller can control the second switch to close and open.

[0192] Step 1101: a first electronic device sends a first parsing signal to a second electronic device.

[0193] Exemplarily, different coding information, various positioning positions and antenna weight groups for various positioning positions are pre-stored in the first electronic device.

[0194] The first electronic device may receive a positioning operation input by a user, or may receive an instruction sent by a third electronic device to locate the second electronic device. In response to the positioning instruction, the first electronic device may send a first resolution signal to the second electronic device. The first resolution signal may be a pre-stored signal, and the length of the first resolution signal needs to ensure that the array antenna can receive the signal during a round of antenna switching.

[0195] The first electronic device controls each first switch in the array antenna to close in time division so as to transmit the first analysis signal in time division.

[0196] Step 1102: After the time of the second electronic device is synchronized, it reflects a signal according to a preset code.

[0197] Exemplarily, after receiving the first resolution signal, the second electronic device first synchronizes the first resolution signal. Optionally, the first resolution signal may also include a synchronization signal. When the second electronic device receives the synchronization signal, since the second electronic device pre-stores the same coding information as the first electronic device. The second electronic device can control the second switch to close or open according to the coding information in accordance with the instructions of the synchronization signal, so that the second electronic device can reflect the first resolution signal according to the code (i.e., the coding information) to form a first positioning signal.

[0198] Optionally, the clock in the first electronic device is aligned with the clock in the second electronic device, and the first electronic device and the second electronic device are synchronized through their respective clocks.

[0199] Step 1103: The second electronic device reflects the signal.

[0200] Exemplarily, when the second electronic device controls the second switch to be closed, the receiving antenna of the second electronic device will receive the signal; when the second switch is opened, the receiving antenna will reflect the received signal.

[0201] Step 1104: The first electronic device synchronizes and parses the positioning frame.

[0202] Exemplarily, the reflected signal synchronously received by the first electronic device includes a positioning frame. Since there are other reflected signals in the environment, the received reflected signal can be parsed according to the stored coding information to obtain the positioning frame reflected by the second electronic device. The specific parsing process is described in Fig.12 The corresponding process is described in detail.

[0203] Step 1105: The first electronic device uses the virtual beam to resolve the position information.

[0204] Exemplarily, the first electronic device stores different antenna weight groups, and each antenna weight group may correspond to a virtual beam. When the first electronic device focuses on the second electronic device according to the virtual beam corresponding to the stored antenna weight group, the signal received by the second electronic device is the largest. Based on the principle of reversibility of the optical path, the positioning frame reflected by the second electronic device and the position information corresponding to the antenna weight group when the signal obtained by the array antenna in the first electronic device is the largest. The first electronic device uses the position information as the position information of the second electronic device.

[0205] Combine the following Figures 12-14 , specifically describing a process of locating a second electronic device when the second electronic device does not have the ability to transmit a signal.

[0206] In one example, the antenna structure of the first electronic device is as follows: Fig.13 As shown, it includes an array antenna 1301, a circulator 1302, a transmitting circuit 1303 and a receiving circuit 1304. The transmitting circuit 1303 and the receiving circuit 1304 are electrically connected to the array antenna 1301 through the circulator 1302. The transmitting circuit 1303 includes a transmitting port and an amplifier; the receiving circuit includes an I branch and a Q branch. Fig.13 As shown, the I branch includes an I port, a mixer and a filter, the Q branch of the mixer includes a mixer and a filter, and the mixers of the I branch and the Q branch are electrically connected to the phase shifter at the same time. Fig.13 The receiving circuit is only an example, and the receiving circuit and the transmitting circuit may also adopt other structures. For example, in other examples, the following may also be adopted: Fig.14 The structure shown.

[0207] Reference Fig.14The first electronic device includes an array antenna 1401, a circulator 1402, a transmitting circuit 1403, and a receiving circuit 1404. The transmitting circuit 1403 and the receiving circuit 1404 are electrically connected to the array antenna 1401 through the circulator 1402. The transmitting circuit 1403 includes a transmitting port and an amplifier; the receiving circuit includes an I branch and a Q branch. The I branch includes an I port, and the Q branch includes a Q port.

[0208] The antenna structure of the second electronic device includes a receiving antenna, a second switch, a load and a controller (not shown in the figure), such as Fig.13 As shown, the Fig.13 Two second electronic devices are shown, namely device 131 and device 132.

[0209] Step 1201: a first electronic device sends a first parsing signal to a second electronic device.

[0210] Exemplarily, the first electronic device may pre-store the coding information of each located device, for example, the first electronic device stores the coding information of device 131 (ie, code1) and the coding information of device 132 (ie, code2). After receiving the positioning instruction, the first electronic device may send a first resolution signal to device 131.

[0211] The first electronic device determines to send at least 12 cycles of the first parsing signal according to the length of the coding information (ie, code1) of the device 131 to ensure that the second electronic device can reflect the first parsing signal according to the coding information.

[0212] Step 1202: The second electronic device reflects the first analysis signal according to the preset first coding information to form a first positioning signal.

[0213] Exemplarily, the second electronic device pre-stores the same coding information as the first electronic device (i.e., the first coding information). When the second electronic device receives the first parsing information, it can reflect the first parsing signal according to the first coding information. The length of code1 can be set as needed, such as Fig.13As shown, the length of code1 is 12 bits, and the data in code1 is "-1, -1, 1, -1, 1, 1, -1, 1, 1, -1, -1". Among them, -1 indicates that the second switch is open, and 1 is used to indicate that the second switch is closed. The first electronic device transmits 12 cycles of the first resolution signal. When the second electronic device detects that the first data of code1 is -1, it controls the second switch to be open, and the receiving antenna of the second electronic device reflects the first resolution signal of the first cycle. When the second electronic device detects that the second data of code1 is -1, it controls the second switch to be open, and the receiving antenna of the second electronic device reflects the first resolution signal of the second cycle. When the device 131 detects that the second data of code1 is 1, it controls the second switch to be closed, and the receiving antenna of the device 131 receives the first resolution signal of the third cycle. Since the receiving antenna of the device 131 absorbs the first resolution signal, the signal reflected by the receiving antenna is not the first resolution signal of the third cycle. Similarly, the device 131 controls the second switch to be closed or opened in sequence according to the instructions of code1. The 12 reflected signals constitute the first positioning signal A.

[0214] Similarly, if Fig.13 As shown, device 132 will also receive 12 cycles of the first resolution signal at the same time, and device 132 reflects the received first resolution signal according to the instruction of code2. If code2 is "1, -1, -1, 1, -1, 1, 1, -1, 1, 1, -1", when the device 132 detects that the first data of code2 is 1, it controls the second switch to close, and the receiving antenna of the device 132 receives the first resolution signal of the first cycle. Since the receiving antenna of the device 132 absorbs the first resolution signal, the signal reflected by the receiving antenna is not the first resolution signal. When the device 132 detects that the second data of code2 is -1, it controls the second switch to open, and the receiving antenna of the device 132 reflects the first resolution signal of the second cycle. Similarly, device 132 controls the second switch to close or open in sequence according to the instructions of the remaining data of code2, and the 12 reflected signals formed constitute the first positioning signal B.

[0215] Step 1203: The first electronic device controls the array antenna to receive the reflected signal.

[0216] Exemplarily, the first electronic device controls each first antenna in the array antenna to receive the reflected signal in a time-sharing manner, where the reflected signal includes a signal reflected by the second electronic device, for example, Fig.13 As shown, device 131 reflects the first positioning signal A, and device 132 reflects the second positioning signal B. The reflected signals received by the first electronic device include the first positioning signal A and the first positioning signal B.

[0217] The array antenna can control the switching of each first antenna to receive at least one first parsed signal carried by each bit in each first coded information in time-sharing. The time-sharing receiving process can refer to the relevant description in step 604 and will not be repeated here.

[0218] Step 1204: The first electronic device obtains the signal strength of the first positioning signal received by the array antenna under different antenna weight groups.

[0219] Exemplarily, after the first electronic device sends a single tone signal (i.e., a first analytical signal), the array antenna can be controlled to complete the switching of each first antenna within the first code time, and the receiving channel records the received signal, obtains the amplitude and phase of the signal received by each first antenna, and forms the receiving vector R of the array antenna at the first bit. k ,R k It is expressed as follows:

[0220]

[0221] Where k represents the kth bit of code1, A is used to identify the amplitude, and θ is used to represent the phase.

[0222] The second switch of the second electronic device is switched to the second bit, and the first electronic device controls the array antenna to complete the switching of each first antenna within the second code time; the receiving channel records the received signal. Similarly, the first electronic device obtains k received signals according to the indication of each bit of code1.

[0223] like Fig.13 As shown, during the first code time period, the array antenna of the first electronic device has the first switch K1 closed, the first first antenna receives the reflected signal, and the first switch K1 is disconnected; the first switch K2 is closed, the second first antenna receives the reflected signal; the first switch K2 is disconnected, the first switch K3 is closed, the third first antenna receives the reflected signal; the first switch K3 is disconnected, the first switch K4 is closed, and the fourth first antenna receives the reflected signal.

[0224] If the second electronic device reflects a signal according to code 1, and if the length of code 1 is 12 bits, the first electronic device can receive 12 cycles of the first parsed signal.

[0225] Since there may be metal objects in the environment, the metal objects can fully reflect the signal. The first electronic device can receive signals reflected by multiple different objects, and the first electronic device determines the signal reflected from the second electronic device based on the first coded information. Optionally, the first electronic device obtains the product between K received vectors and the corresponding coded information, and sums the obtained products as the reflected signal received by the first electronic device, as shown in formula (7):

[0226]

[0227] Wherein, k represents the kbit in code1; L represents the length of code1. The longer the length of the code, the more accurate the signal reflected by the second electronic device is. The length of the code L can be 50, 100, 200, etc. Since the data in the code is 1 and -1; if there is a signal reflected by a metal object in the environment, the received signal reflected by the metal object in the environment can be eliminated by the calculation method of formula (7), and the receiving vector of the signal reflected by the second electronic device (i.e., the first positioning signal) can be obtained.

[0228] The first electronic device obtains the inner product of the receiving vector and the weight vector of each antenna weight group, and determines the signal strength of the signal received by the array antenna under different antenna weight groups. The acquisition method can be shown in formula (8):

[0229]

[0230] Wherein, k represents the kth bit in code1; L represents the length of code1, and i is the subscript of the weight vector of different antenna weight groups. For example, if i=1, then W i Represents the weight vector of the first antenna weight group.

[0231] Step 1205: The first electronic device obtains the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group.

[0232] This step is similar to step 606. For related descriptions, please refer to step 606, which will not be repeated here.

[0233] Step 1206: The first electronic device uses the positioning position matched with the first target antenna weight group as the position of the second electronic device.

[0234] This step is similar to step 607. For related description, please refer to step 607, which will not be repeated here.

[0235] In this example, the second electronic device does not have the ability to transmit signals, and the first electronic device sends a signal through an array antenna, and the signal received by the array antenna, because the second electronic device reflects the signal sent by the first electronic device based on the coding information, the first electronic device can identify the signal reflected by the second electronic device based on the coding information, and then accurately determine the antenna weight group corresponding to the array antenna when the received signal strength is the largest, and obtain the positioning position corresponding to the antenna weight group. In this positioning method, the device to be located can be a device that does not have the ability to transmit signals, which greatly reduces the cost of the device to be located, so that the device to be located can be bound to any object that needs to be located (for example, the device to be located is a label, and the label can be attached to a book or a key), thereby realizing the positioning of the object. This method improves the application scenario of the device to be located.

[0236] In some other embodiments, the first electronic device may also have two sets of antennas, that is, the first electronic device includes an array antenna and a second antenna, and the array antenna and the second antenna are both electrically connected to the chip (a chip integrating RFIC and Modem). Fig.15 As shown, the structure of the first electronic device can be described by referring to Figure 8 The second electronic device does not have the ability to transmit signals, and its structure can be as follows Fig.15 For the description of the second electronic device, please refer to Fig.13 The first electronic device and the second electronic device adopt the following method: Fig.15 The antenna structure shown in the figure, the positioning method comprises:

[0237] Step 1501: a first electronic device sends a first parsing signal to a second electronic device.

[0238] Step 1502: The second electronic device reflects the first analysis signal according to the preset first coding information to form a first positioning signal.

[0239] Step 1503: The second antenna in the first electronic device receives the reflected signal.

[0240] Exemplarily, after the array antenna transmits the first analysis signal, the first electronic device can disconnect each first switch in the array antenna, so that the array antenna cannot receive the reflected signal, but the second antenna receives the reflected signal. The reflected signal includes the first positioning signal reflected by the second electronic device and the signal fully reflected by other objects in the surrounding environment.

[0241] The first electronic device can obtain the amplitude and phase of the reflected signal received by the second antenna to form a receiving vector of the reflected signal, which is recorded as: Wherein, A5 represents the amplitude of the received vector, and θ5 represents the phase of the received vector.

[0242] Step 1504: When the array antenna sends the first analysis signal in different antenna weight groups, obtain the signal strength of the first positioning signal received by the first electronic device.

[0243] In this example, the first electronic device can normalize each antenna weight in each antenna weight group respectively to generate a weight vector for each antenna weight group; determine the receiving vector of the first positioning signal received by the first electronic device based on the first coded information and the received reflected signal; obtain the inner product of the receiving vector and each weight vector; and use the value of each inner product as the signal strength of the first positioning signal received by the first electronic device when the array antenna sends the first reference signal in different antenna weight groups.

[0244] The first electronic device may obtain the product between the data of each bit in the first coded information and the reception vector of the reflected signal, and sum each product as the reception vector of the received first positioning signal. The reception vector of the first positioning signal may be as shown in formula (9):

[0245]

[0246] Wherein, k represents the kth bit in code1 (ie, the first code); and L represents the length of code1.

[0247] After the first electronic device determines the reception vector of the received first positioning signal, it may perform an inner product between the reception vector of the first positioning signal and the weight vector of each antenna weight group, as shown in formula (10):

[0248]

[0249] Among them, W i represents the weight vector of the ith antenna weight group. k represents the kth bit in code1 (i.e., the first code); and L represents the length of code1.

[0250] In this example, the first electronic device sends a first analysis signal and receives a reflection signal reflected by the second electronic device, the reflection signal including the first positioning signal. After the first electronic device determines the received first positioning signal, it can calculate the signal strength of the first positioning signal received by the array antenna under different antenna weights through different stored antenna weight groups, without the need for the array antenna to adjust the antenna weight group and then re-receive the first positioning signal, thereby reducing the power consumption of reception.

[0251] Step 1505: The first electronic device obtains the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group.

[0252] This step is similar to step 606. For related descriptions, please refer to step 606, which will not be repeated here.

[0253] Step 1506: The first electronic device uses the positioning position matched with the first target antenna weight group as the position of the second electronic device.

[0254] This step is similar to step 607. For related description, please refer to step 607, which will not be repeated here.

[0255] In this example, when the position of the second electronic device is the focus position of the signal transmitted by the array antenna under a certain antenna weight group, the signal strength of the signal reflected by the second electronic device is also the largest. Based on this, the first electronic device may include an array antenna and a second antenna, and the array antenna transmits a first resolution signal, and the second antenna receives the reflected signal after the array antenna transmits the first resolution signal. The first electronic device determines the antenna weight group corresponding to the transmitted signal when the received signal strength is the largest, and the position of the second electronic device can be determined. This positioning method can be applied to devices with dual antennas, such as mobile phones, tablets, watches and other devices, which increases the scope of application of the positioning method.

[0256] Fig.16 FIG. 1 is an exemplary application scenario of the positioning method. Fig.16 As shown, the positioning method in this example can be applied to indoor positioning. The first electronic device is a mobile phone, the second electronic device is a positioning tag 1, and the third electronic device is a positioning tag 2. Positioning tag 1 can be attached to book 1, and positioning tag 2 can be attached to book 2. Positioning tag 1 and positioning tag 2 use different coding information. For example, positioning tag 1 uses code1, and positioning tag 2 uses code2. Code1 and code2 are stored in the first electronic device; the first electronic device can broadcast the first resolution signal, and the positioning tag 1 reflects the signal according to code1 to generate a first positioning signal, and the positioning tag 2 reflects the signal according to code2 to generate a second positioning signal.

[0257] The first electronic device receives a reflected signal, which includes a first positioning signal and a second positioning signal. The first electronic device determines the receiving vector of the received first positioning signal according to code1 and the reflected signal; performs an inner product between the receiving vector of the first positioning signal and the weight vector of each antenna weight group, and determines the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group. The first electronic device uses the positioning position that matches the first target antenna weight group as the position of the positioning tag 1.

[0258] The first electronic device determines the receiving vector of the received second positioning signal according to code2 and the reflected signal; performs an inner product between the receiving vector of the second positioning signal and the weight vector of each antenna weight group, and determines the antenna weight group corresponding to the maximum signal strength as the second target antenna weight group. The first electronic device uses the positioning position matched with the second target antenna weight group as the position of the positioning tag 2.

[0259] In this application scenario, the first electronic device can locate multiple different located devices at the same time. Since the second electronic device has low cost, it can be arbitrarily set on objects that need to be located, such as books, keys and other objects.

[0260] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0261] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the positioning method in the above-mentioned embodiment. The storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0262] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the positioning method in the above-mentioned embodiment.

[0263] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0264] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of the present application.

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

Claims

1. A positioning method, characterized in that: Applied to a first electronic device including an array antenna, the first electronic device stores each preset positioning position and an antenna weight group matching the positioning position, the antenna weight group including the antenna weight of each first antenna in the array antenna, the method comprising: In response to the first positioning instruction, sending a first positioning notification to a second electronic device, so that the second electronic device sends a first positioning signal; Control each first antenna in the array antenna to receive the first positioning signal in a time-sharing manner; Acquire the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; Obtaining the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group; The positioning position matched with the first target antenna weight group is used as the position of the second electronic device.

2. The method according to claim 1, characterized in that Each of the first antennas in the array antenna has a first switch corresponding to it, and the first switch is used to close or open the corresponding first antenna; The controlling each first antenna in the array antenna to receive the first positioning signal in time division includes: Perform the following operations on each first switch in turn: closing the first switch; When it is detected that the duration of closing the first switch reaches a preset duration, opening the first switch; If it is detected that the next first switch does not receive the first signal, an operation of closing the next first switch is performed, wherein the first signal is included in the first positioning signal.

3. The method according to claim 1 or 2, characterized in that: The obtaining the signal strength of the first positioning signal received by the array antenna under different antenna weight groups includes: Normalizing each antenna weight in each antenna weight group to generate a weight vector for each antenna weight group; Determine a receiving vector of the first positioning signal according to the first signal received by each of the first antennas; Obtaining an inner product of a reception vector of the first positioning signal and each weight vector; The value of each inner product is used as the signal strength of the first positioning signal received by the array antenna under different antenna weight groups.

4. The method according to claim 3, characterized in that The determining, according to the first signal received by each of the first antennas, a receiving vector of the first positioning signal includes: Acquire a first analysis signal; A first relationship between the first signal received by each first antenna and the first analysis signal is acquired to form a receiving vector of the first positioning signal, wherein the first relationship includes an amplitude relationship and a phase relationship between the signals.

5. The method according to claim 4, characterized in that Acquiring a first relationship between a first signal received by each first antenna and the first analysis signal to form a receiving vector of the first positioning signal includes: Acquire a second signal matching each first signal, wherein the second signal is included in the first parsed signal; obtaining a ratio between each first signal and a matching second signal; Each ratio is composed into the received vector.

6. The method according to claim 1, characterized in that The first positioning notification includes: a first resolution signal or first identification information of the first resolution signal.

7. The method according to claim 6, characterized in that Before sending a positioning notification to the second electronic device in response to the first positioning instruction, the method further includes: The first parsed signal is stored, or the first parsed signal and identification information of the first parsed signal are stored.

8. The method according to claim 4, characterized in that The first electronic device further includes a second antenna; and obtaining the first analysis signal includes: A signal received by the second antenna is obtained as the first analysis signal.

9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: In response to the second positioning instruction sent by the second electronic device, sending a second positioning notification to a third electronic device, so that the third electronic device can transmit a second positioning signal; Control each first antenna in the array antenna to receive the second positioning signal in time division; Acquire signal strength of the second positioning signal received by the array antenna under different antenna weight groups; Acquire the antenna weight group corresponding to the maximum signal strength of the second positioning signal as the second target antenna weight group; Using the positioning position matched with the second target antenna weight group as the position of the third electronic device; Determine relative position information between the second electronic device and the third electronic device according to the position of the second electronic device and the position of the third electronic device; The relative position information is sent to the second electronic device.

10. A positioning method, characterized in that: Applied to a first electronic device including an array antenna, the first electronic device stores each preset positioning position and an antenna weight group matching the positioning position, the antenna weight group including the antenna weight of each first antenna in the array antenna, the method comprising: In response to the first positioning instruction, control the array antenna to send a first resolution signal to the second electronic device, so that the second electronic device reflects the first resolution signal according to the preset first coding information to form a first positioning signal; receiving a reflected signal, wherein the reflected signal includes the first positioning signal; Acquire the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; Acquire an antenna weight group corresponding to when the signal strength of the first positioning signal is maximum as a first target antenna weight group; The positioning position matched with the first target antenna weight group is used as the position of the second electronic device.

11. The method according to claim 10, characterized in that Each of the first antennas in the array antenna has a first switch corresponding to it, and the first switch is used to turn on or off the corresponding first antenna; In response to the first positioning instruction, controlling the array antenna to send a first resolution signal to the second electronic device includes: The first switch of each first antenna in the array antenna is controlled to be closed in time division, so that the first antenna array sends the first analysis signal in time division.

12. The method according to claim 11, characterized in that The obtaining the signal strength of the first positioning signal received by the array antenna under different antenna weight groups includes: Normalizing each antenna weight in each antenna weight group to generate a weight vector for each antenna weight group; Determine, according to the first coded information and the received reflected signal, a reception vector of the first positioning signal received by the first electronic device; Obtaining the inner product of the received vector and each weight vector; The value of each inner product is used as the signal strength of the first positioning signal received by the first electronic device when the array antenna is in different antenna weight groups.

13. The method according to claim 12, characterized in that The first electronic device also includes a second antenna; The receiving of the reflected signal comprises: The second antenna is controlled to receive the reflected signal, wherein a time when the second antenna receives the reflected signal does not coincide with a time when the array antenna transmits the first analysis signal.

14. The method according to claim 12, characterized in that The receiving circuit and the transmitting circuit in the first electronic device are electrically connected to the array antenna via a circulator; The receiving of the reflected signal comprises: Perform the following operations on each first switch in turn: closing the first switch; Upon detecting that the closing time of the first switch reaches a preset time, opening the first switch; If it is detected that the next first switch does not receive a signal, the operation of closing the next first switch is performed.

15. The method according to claim 14, characterized in that Determining, according to the first coding information and the received reflected signal, a reception vector of the first positioning signal received by the first electronic device, includes: Acquire the amplitude and phase of a third signal received by the array antenna in each code element of the first coded information as a first vector, wherein the third signal is included in the reflected signal; Obtaining a product between each symbol data in the first coded information and the first vector, wherein the symbol data includes +1 or -1; Each product obtained is summed to generate a reception vector of the first positioning signal.

16. The method according to claim 13, characterized in that If the reflected signal is received by the second antenna; Determining, according to the first coding information and the received reflected signal, a reception vector of the first positioning signal received by the first electronic device, includes: Acquire the amplitude and phase of the reflected signal received by the second antenna as a first vector; Obtaining a product between each symbol data in the first coded information and the first vector, wherein the symbol data includes +1 or -1; Each product obtained is summed to generate a reception vector of the first positioning signal.

17. The method according to claim 15 or 16, characterized in that The first electronic device further stores second coding information, and the second coding information is orthogonal to the first coding information.

18. The method according to any one of claims 10 to 17, characterized in that: The method further comprises: In response to the third positioning instruction, sending a second resolution signal to a third electronic device, so that the third electronic device reflects the second resolution signal according to the preset second coding information to form a second positioning signal; receiving the reflected signal, wherein the reflected signal also includes the second positioning signal; Acquire signal strength of the second positioning signal received by the array antenna under different antenna weight groups; Acquire the antenna weight group corresponding to the maximum signal strength of the second positioning signal as the second target antenna weight group; The positioning position matched with the second target antenna weight group is used as the position of the third electronic device.

19. A positioning method, characterized in that: Applied to a second electronic device, the method includes: In response to a first positioning notification sent by the first electronic device, generating a first positioning signal; The first positioning signal is transmitted to the first electronic device so that the first electronic device controls each antenna in the array antenna to receive the first positioning signal in a time-sharing manner; the first electronic device obtains the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; the first electronic device obtains the antenna weight group corresponding to the maximum signal strength as the first target antenna weight group; the first electronic device uses the positioning position matched with the first target antenna weight group as the position of the second electronic device.

20. The method according to claim 19, characterized in that The step of generating a first positioning signal in response to a first positioning notification sent by the first electronic device includes: When detecting that the first positioning notification includes a first resolution signal, determining that the first positioning signal includes a first resolution signal; When it is detected that the first positioning notification includes the identification information of the first resolution signal, the first resolution signal corresponding to the identification information is searched in the second electronic device according to the identification information; and it is determined that the first positioning signal includes the first resolution signal.

21. The method according to claim 19 or 20, characterized in that The first positioning notification includes: n resolution signals or identification information of n resolution signals, where n is an integer greater than 1; The method further comprises: Acquire n resolution signals according to the first positioning notification, wherein the n resolution signals are different from each other; The second electronic device transmits the n analysis signals via an OFDM signal, wherein each of n subcarriers in the OFDM signal carries the n analysis signals respectively.

22. A positioning method, characterized in that: Applied to a second electronic device, the method includes: In response to a first analysis signal sent by a first electronic device, reflection is performed according to preset first coding information to form a first positioning signal; the first electronic device receives the reflected signal, and the reflected signal includes the first positioning signal; the first electronic device obtains the signal strength of the first positioning signal received by the array antenna under different antenna weight groups; the first electronic device obtains the antenna weight group corresponding to the maximum signal strength of the first positioning signal as the first target antenna weight group; the first electronic device uses the positioning position matched with the first target antenna weight group as the position of the second electronic device.

23. The method according to claim 22, characterized in that The receiving antenna of the second electronic device is electrically connected to the second switch, and the second switch is electrically connected to the first load; In response to a first analysis signal sent by a first electronic device, reflecting according to preset first coding information to form a first positioning signal, including: Acquire first coding information used to generate the first positioning signal in this round; The second switch is closed or opened according to the instruction of the first coding information, so that the receiving antenna of the second electronic device reflects the first analysis signal according to the first coding information to form a first positioning signal.

24. An electronic device, characterized in that: The electronic device as a first electronic device includes: An array antenna, the array antenna comprising a plurality of first antennas and a first switch corresponding to each first antenna, the first switch corresponding to the first antenna being used to close or open the first antenna; a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the positioning method described in any one of claims 1-9, or executes the positioning method described in any one of claims 10-18.

25. The electronic device according to claim 24, characterized in that: The array antenna is deployed in the first electronic device in a planar array manner, or is deployed in the first electronic device in an L-shape manner.

26. An electronic device, characterized in that: The electronic device as the second electronic device includes: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the positioning method described in any one of claims 19-21.

27. An electronic device, characterized in that: The electronic device as the second electronic device includes: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the positioning method described in claim 22 or 23.

28. The electronic device according to claim 27, characterized in that: The receiving antenna of the second electronic device is electrically connected to the second switch, and the second switch is electrically connected to the first load.

29. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program runs on an electronic device, the electronic device executes the positioning method described in any one of claims 1 to 9, or executes the positioning method described in any one of claims 10 to 18, or executes the positioning method described in any one of claims 19 to 21, or executes the positioning method described in claim 22 or 23.