WO2023020415A1 - Positioning method and apparatus, and electronic device - Google Patents

Positioning method and apparatus, and electronic device Download PDF

Info

Publication number
WO2023020415A1
WO2023020415A1 PCT/CN2022/112419 CN2022112419W WO2023020415A1 WO 2023020415 A1 WO2023020415 A1 WO 2023020415A1 CN 2022112419 W CN2022112419 W CN 2022112419W WO 2023020415 A1 WO2023020415 A1 WO 2023020415A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
target object
antennas
signal strength
received signal
Prior art date
Application number
PCT/CN2022/112419
Other languages
French (fr)
Chinese (zh)
Inventor
许海坤
崔献
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023020415A1 publication Critical patent/WO2023020415A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/06Position of source determined by co-ordinating a plurality of position lines defined by path-difference measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds

Definitions

  • a determining module configured to determine the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas;
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • FIG. 2 is a schematic diagram of an antenna arrangement of another electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a positioning method provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a propagation path of a first signal provided in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a measurement result of a distance between a target object and an electronic device provided in an embodiment of the present application
  • FIG. 9 is a schematic diagram of a hardware structure of another electronic device provided by an embodiment of the present application.
  • UWB dual antennas are set on the same reference plane of the handheld device, for example, a pair of UWB antennas (UWB antenna 1 and UWB antenna 2) are set on the plane perpendicular to the ground between the handheld device and the UWB antenna.
  • the UWB antenna pair can measure the distance and angle between the target device and the baseline of the UWB antenna pair, so as to determine the position of the target device.
  • the baseline of the antenna pair is two symmetrical mirror positions, that is to say, for this method, the actual position of the target device cannot be distinguished during the measurement process, and the target device cannot be accurately located.
  • the electronic device is provided with at least two antennas, and the at least two antennas are arranged on the first side.
  • the electronic device is applied to the scene where a handheld electronic device searches for an item.
  • the screen of the electronic device faces the user, and the back shell of the electronic device faces the item to be found, that is, the back shell of the electronic device points to the item to be found.
  • the first side may be the side opposite to the screen of the electronic device.
  • the first side may be the back shell of the electronic device, that is to say, at least two antennas may be disposed on the back shell of the electronic device.
  • the first side may also be a side close to the back shell of the electronic device.
  • the case that the first received signal strength is much smaller than the second received signal strength may be the case that the first received signal strength is relatively close to the second received signal strength.
  • the first received signal strength is equal to the second received signal strength.
  • the first received signal strength is slightly smaller than the second received signal strength.
  • the positioning method may further include: Step 5100-Step 5200.
  • Step 5100 Obtain the distance between the target object and the electronic device according to the first signals received by the at least two antennas.
  • the determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas may further include: Step 6100- Step 6300.
  • the rate of change of the distance between the target object and the electronic device may also be determined according to the slope of the distance change curve between the target object and the electronic device.
  • Step 6200 if the rate of change of the distance is less than or equal to a first threshold, determine that the target object is located at the back of the electronic device.
  • the rate of change of the distance between the target object and the electronic device in the case that the rate of change of the distance between the target object and the electronic device is less than or equal to the first threshold value, it means that the fluctuation of the distance between the target object and the electronic device obtained through multiple measurements is small, and the target object can be determined Located on the back of the electronic device, that is, the target object is located in front of the electronic device, and the target object faces away from the screen of the electronic device. If the rate of change of the distance between the target object and the electronic device is greater than the first threshold, it indicates that the distance between the target object and the electronic device fluctuates greatly from multiple measurements, and it can be determined that the target object is located in front of the electronic device, that is, the target The object is located behind the electronic device, and the target object faces the screen of the electronic device.
  • Step 7100 if it is determined that the target object is located on the back of the electronic device, according to the first signal received by the at least two antennas, obtain the azimuth angle of the target object relative to the electronic device and the distance between the target object and the electronic device.
  • the execution subject may be a locating device, or a control module in the locating device for executing the locating method.
  • the positioning method performed by the positioning device is taken as an example to illustrate the positioning device provided in the embodiment of the present application.
  • a receiving module 701, configured to respectively receive the first signal transmitted by the target object through the at least two antennas;
  • the determining module includes: a first acquiring unit, configured to obtain the distance between the target object and the electronic device according to the first signals received by the at least two antennas rate of change; a first determination unit, configured to determine that the target object is located on the back of the electronic device when the rate of change of the distance is less than or equal to a first threshold; a second determination unit, configured to determine that the target object is located at the back of the electronic device at the distance If the rate of change is greater than the first threshold, it is determined that the target object is located in front of the electronic device.
  • the positioning device 700 further includes: an acquisition module, configured to, according to the first received information received by the at least two antennas, when it is determined that the target object is located on the back of the electronic device. signal, to obtain the azimuth of the target object relative to the electronic device and the distance between the target object and the electronic device; a display module, configured to display the azimuth and the distance.
  • an acquisition module configured to, according to the first received information received by the at least two antennas, when it is determined that the target object is located on the back of the electronic device. signal, to obtain the azimuth of the target object relative to the electronic device and the distance between the target object and the electronic device
  • a display module configured to display the azimuth and the distance.
  • the processor 910 is further configured to: acquire the relationship between the target object and the first signal received by the at least two antennas according to the first signal received by the at least two antennas.
  • the distance between the electronic devices determining the second received signal strength according to the distance between the target object and the electronic devices.
  • the processor 910 is further configured to: determine the If the target object is located on the back of the electronic device, according to the first signals received by the at least two antennas, the azimuth of the target object relative to the electronic device and the relationship between the target object and the electronic device are obtained. The distance between the electronic devices; the display unit 906 displays the azimuth and the distance.
  • the first signal of the target object is received through at least two antennas of the electronic device, and the orientation information of the target object relative to the electronic device is determined according to the first signals received by the at least two antennas, so as to determine the target Whether the object is located on the front or the back of the electronic device, so as to indicate the location of the target object to the user when it is determined that the target object is located on the back of the electronic device, and the accuracy of positioning can be improved without increasing the number of antennas.
  • the embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above-mentioned positioning method embodiment is realized, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

A positioning method, a positioning apparatus, an electronic device, a readable storage medium, and a chip. The positioning method is applied to an electronic device. The electronic device is provided with at least two antennas. The at least two antennas are arranged on a first side face, and the first side face is a side face that is opposite a screen of the electronic device. The method comprises: respectively receiving, by means of at least two antennas, first signals transmitted by a target object; and according to the first signals received by the at least two antennas, determining orientation information of the target object relative to an electronic device, wherein the orientation information comprises a front face and a back face, and when the target object is located on the front face of the electronic device, the target object faces a screen of the electronic device, and when the target object is located on the back face of the electronic device, the target object faces away from the screen of the electronic device. The positioning apparatus is applied to the electronic device, and comprises a receiving module and a determination module. The electronic device comprises a processor, a memory, and a program or an instruction that is stored in the memory. The readable storage medium stores a program or an instruction. The chip comprises a processor and a communication interface, wherein the processor is used to run a program or an instruction.

Description

定位方法、装置和电子设备Positioning method, device and electronic device
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年08月20日提交的申请号为202110964734.1,发明名称为“定位方法、装置和电子设备”的中国专利申请的优先权,其通过引用方式全部并入本申请。This application claims the priority of the Chinese patent application with the application number 202110964734.1 and the invention title "Positioning Method, Device and Electronic Equipment" filed on August 20, 2021, which is fully incorporated into this application by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种定位方法、装置和电子设备。The present application belongs to the technical field of communication, and specifically relates to a positioning method, device and electronic equipment.
背景技术Background technique
超宽带(Ultra Wide Band,UWB)技术是一种新型的无线通信技术。由于UWB技术具有数据传输速率高(达1Gbit/s)、抗多径干扰能力强、功耗低、成本低、穿透能力强、截获率低、与现有其他无线通信系统共享频谱等特点,UWB技术广泛应用于室内定位。Ultra Wide Band (UWB) technology is a new type of wireless communication technology. Because UWB technology has the characteristics of high data transmission rate (up to 1Gbit/s), strong anti-multipath interference ability, low power consumption, low cost, strong penetration ability, low interception rate, and shared spectrum with other existing wireless communication systems, etc., UWB technology is widely used in indoor positioning.
在相关技术中,利用UWB定位技术,可以实现手持设备寻物。但是,由于手持设备(例如,手机)的厚度有限,设置的天线数量有限,定位精度较差,影响用户体验。In the related art, using the UWB positioning technology, it is possible to realize the object-finding of the handheld device. However, due to the limited thickness of the handheld device (for example, a mobile phone), the number of antennas provided is limited, and the positioning accuracy is poor, which affects user experience.
发明内容Contents of the invention
本申请实施例的目的是提供一种定位方法、装置和电子设备,能够解决由于手持设备的厚度有限,设置的天线数量有限,定位精度较差的问题。The purpose of the embodiments of the present application is to provide a positioning method, device and electronic equipment, which can solve the problem of poor positioning accuracy due to the limited thickness of the handheld device and the limited number of antennas installed.
第一方面,本申请实施例提供了一种定位方法,应用于电子设备,所述电子设备设置有至少两个天线,所述至少两个天线设置于第一侧面,所述第一侧面为与所述电子设备的屏幕相对的侧面;该方法包括:In the first aspect, an embodiment of the present application provides a positioning method, which is applied to an electronic device, and the electronic device is provided with at least two antennas, and the at least two antennas are provided on a first side, and the first side is connected to the the side opposite the screen of the electronic device; the method comprising:
分别通过所述至少两个天线接收目标对象发射的第一信号;receiving the first signal transmitted by the target object through the at least two antennas respectively;
根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息;determining the orientation information of the target object relative to the electronic device according to the first signal received by the at least two antennas;
其中,所述方位信息包括正面和背面,在所述目标对象位于所述电子设备的正面时,所述目标对象朝向所述电子设备的屏幕,在所述目标对象位于所述电子设备的背面时,所述目标对象背离所述电子设备的屏幕。Wherein, the orientation information includes front and back. When the target object is located on the front of the electronic device, the target object faces the screen of the electronic device. When the target object is located on the back of the electronic device , the target object faces away from the screen of the electronic device.
第二方面,本申请实施例提供了一种定位装置,应用于电子设备,所述电子设备设置有至少两个天线,所述至少两个天线设置于第一侧面,所述第一侧面为与所述电子设备的屏幕相对的侧面;所述装置包括:In the second aspect, the embodiment of the present application provides a positioning device, which is applied to electronic equipment, and the electronic equipment is provided with at least two antennas, and the at least two antennas are provided on the first side, and the first side is connected to the the side opposite the screen of the electronic device; the apparatus comprising:
接收模块,用于分别通过所述至少两个天线接收目标对象发射的第一信号;a receiving module, configured to respectively receive the first signal transmitted by the target object through the at least two antennas;
确定模块,用于根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息;A determining module, configured to determine the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas;
其中,所述方位信息包括正面和背面,在所述目标对象位于所述电子设备的正面时,所述目标对象朝向所述电子设备的屏幕,在所述目标对象位于所述电子设备的背面时,所述目标对象背离所述电子设备的屏幕。Wherein, the orientation information includes front and back. When the target object is located on the front of the electronic device, the target object faces the screen of the electronic device. When the target object is located on the back of the electronic device , the target object faces away from the screen of the electronic device.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
在本申请实施例中,分别通过电子设备的至少两个天线接收目标对象的第一信号,根据至少两个天线接收到的第一信号,确定目标对象相对于电子设备的方位信息,以确定目标对象位于电子设备的正面还是背面,从 而在确定目标对象位于电子设备的背面的情况下,向用户指示目标对象的位置,在不需要增加天线数量的情况下,可以提高定位的准确性。In the embodiment of the present application, the first signal of the target object is received through at least two antennas of the electronic device, and the orientation information of the target object relative to the electronic device is determined according to the first signals received by the at least two antennas, so as to determine the target Whether the object is located on the front or the back of the electronic device, so as to indicate the location of the target object to the user when it is determined that the target object is located on the back of the electronic device, and the accuracy of positioning can be improved without increasing the number of antennas.
附图说明Description of drawings
图1是本申请实施例提供的一种电子设备的天线布置的示意图;FIG. 1 is a schematic diagram of an antenna arrangement of an electronic device provided in an embodiment of the present application;
图2是本申请实施例提供的另一种电子设备的天线布置的示意图;FIG. 2 is a schematic diagram of an antenna arrangement of another electronic device provided by an embodiment of the present application;
图3是本申请实施例提供的一种定位方法的流程示意图;FIG. 3 is a schematic flowchart of a positioning method provided in an embodiment of the present application;
图4是本申请实施例提供的一种第一接收信号强度和目标对象与电子设备之间距离的关系曲线图;FIG. 4 is a graph showing the relationship between the first received signal strength and the distance between the target object and the electronic device provided by the embodiment of the present application;
图5是本申请实施例提供的一种第一信号的传播路径的示意图;FIG. 5 is a schematic diagram of a propagation path of a first signal provided in an embodiment of the present application;
图6是本申请实施例提供的一种目标对象与电子设备之间距离的测量结果的示意图;FIG. 6 is a schematic diagram of a measurement result of a distance between a target object and an electronic device provided in an embodiment of the present application;
图7是本申请实施例提供的一种定位装置的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of a positioning device provided in an embodiment of the present application;
图8是本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 8 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
图9是本申请实施例提供的另一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of another electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字 符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the description and claims means at least one of the connected objects, and the character "/" generally means that the related objects before and after are an "or" relationship.
UWB室内定位技术的工作原理为,在室内布置多个已知坐标的UWB定位基站,待定位设备携带有UWB标签,UWB标签可以按照一定的频率发射脉冲信号,利用不同UWB定位基站接收到UWB标签发出的脉冲信号的时间差,确定待定位设备的位置。The working principle of UWB indoor positioning technology is to arrange multiple UWB positioning base stations with known coordinates indoors. The equipment to be positioned carries UWB tags. UWB tags can transmit pulse signals according to a certain frequency, and use different UWB positioning base stations to receive UWB tags. The time difference of the sent pulse signal determines the position of the device to be positioned.
基于UWB室内定位技术的工作原理,UWB定位技术可应用于手持设备寻物。手持设备例如可以是手机、平板电脑、可穿戴设备等。具体地,手持设备内设置有至少两个UWB天线,被寻找的物品即目标设备携带有UWB标签,且UWB标签可以按照一定的频率发射脉冲信号,利用手持设备内不同的UWB天线接收到UWB标签发出的脉冲信号的时间差,实现对目标设备的定位。但是,由于手持设备的厚度有限,布置的UWB天线数量有限,影响定位精度。Based on the working principle of UWB indoor positioning technology, UWB positioning technology can be applied to handheld devices to find objects. The handheld device may be, for example, a mobile phone, a tablet computer, a wearable device, and the like. Specifically, at least two UWB antennas are set in the handheld device. The object to be searched, that is, the target device, carries a UWB tag, and the UWB tag can transmit pulse signals at a certain frequency, and the UWB tag can be received by different UWB antennas in the handheld device. The time difference of the pulse signal sent out realizes the positioning of the target device. However, due to the limited thickness of the handheld device, the number of UWB antennas arranged is limited, which affects the positioning accuracy.
在相关技术中,如图1所示,在手持设备的同一参考平面设置UWB双天线,例如,在手持设备与地面垂直的平面设置一对UWB天线(UWB天线1和UWB天线2),利用该UWB天线对可以测量出目标设备与该UWB天线对的基线的距离和夹角,从而确定目标设备的位置,但是,同一测量结果会对应多个目标方位,例如,对应图中标识出的以该天线对的基线为对称的两个镜像位置,也就是说,对于该方式在测量过程中无法区分目标设备的实际位置,不能精确定位目标设备。In the related art, as shown in Figure 1, UWB dual antennas are set on the same reference plane of the handheld device, for example, a pair of UWB antennas (UWB antenna 1 and UWB antenna 2) are set on the plane perpendicular to the ground between the handheld device and the UWB antenna. The UWB antenna pair can measure the distance and angle between the target device and the baseline of the UWB antenna pair, so as to determine the position of the target device. However, the same measurement result will correspond to multiple target orientations. The baseline of the antenna pair is two symmetrical mirror positions, that is to say, for this method, the actual position of the target device cannot be distinguished during the measurement process, and the target device cannot be accurately located.
在相关技术中,如图2所示,在手持设备的同一参考平面设置UWB天线阵,例如,在手持设备与地面垂直的平面设置三个UWB天线(UWB天线1、UWB天线2和UWB天线3),利用该UWB天线阵可以测量出目标设备与该UWB天线对的基线的距离和夹角,从而确定目标设备的位置,但是,同一测量结果会对应两个目标方位,即图中示出的以该天线阵所在的平面为镜像的两个目标方位,也就是说,对于该方式在测量过程中无法区分目标设备的实际位置,不能精确定位目标设备。In the related art, as shown in Figure 2, the UWB antenna array is set on the same reference plane of the handheld device, for example, three UWB antennas (UWB antenna 1, UWB antenna 2 and UWB antenna 3 are set on the plane perpendicular to the ground of the handheld device) ), the UWB antenna array can be used to measure the distance and angle between the target device and the baseline of the UWB antenna pair, so as to determine the position of the target device. However, the same measurement result will correspond to two target orientations, that is, the The two target azimuths with the plane where the antenna array is located as a mirror image, that is to say, for this method, the actual position of the target device cannot be distinguished during the measurement process, and the target device cannot be accurately located.
为解决上述由于手持设备(例如,手机)的厚度有限,设置的天线数 量有限,定位精度较差的问题,本申请实施例提供了一种定位方法,根据至少两个天线接收到的目标对象发射的第一信号,确定目标对象相对于电子设备的方位信息,即确定目标对象位于电子设备的正面还背面,以实现目标设备的精确定位。In order to solve the above-mentioned problem of poor positioning accuracy due to the limited thickness of the handheld device (for example, a mobile phone), the number of antennas installed is limited, the embodiment of the present application provides a positioning method, which transmits the target object according to at least two antennas. The first signal of the target object is used to determine the orientation information of the target object relative to the electronic device, that is, to determine whether the target object is located on the front or back of the electronic device, so as to achieve precise positioning of the target device.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的定位方法进行详细地说明。The positioning method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
请参看图3,其是本申请实施例提供的一种定位方法的流程图。该方法可以应用于电子设备,该电子设备可以是前述实施例的手持设备,该电子设备可以为手机、平板电脑、笔记本电脑等。Please refer to FIG. 3 , which is a flow chart of a positioning method provided in an embodiment of the present application. The method can be applied to an electronic device, and the electronic device can be the handheld device in the foregoing embodiments, and the electronic device can be a mobile phone, a tablet computer, a notebook computer, and the like.
如图3所示,该方法可以包括步骤3100-步骤3200,以下予以详细说明。As shown in FIG. 3, the method may include steps 3100-3200, which will be described in detail below.
步骤3100,分别通过所述至少两个天线接收目标对象发射的第一信号。Step 3100: Receive the first signal transmitted by the target object through the at least two antennas respectively.
该电子设备设置有至少两个天线,至少两个天线设置于第一侧面。该电子设备应用于手持电子设备寻找物品的场景,在利用电子设备寻找物品时,电子设备的屏幕朝向用户,电子设备的背壳朝向待寻找的物品,也就是说,电子设备的背壳指向待寻找的区域。基于此,为了方便利用电子设备寻找物品,第一侧面可以是与电子设备的屏幕相对的侧面。示例性地,第一侧面可以是电子设备的背壳,也就是说,至少两个天线可以设置在电子设备的背壳上。示例性地,第一侧面也可以是靠近电子设备的背壳的侧面。The electronic device is provided with at least two antennas, and the at least two antennas are arranged on the first side. The electronic device is applied to the scene where a handheld electronic device searches for an item. When the electronic device is used to find an item, the screen of the electronic device faces the user, and the back shell of the electronic device faces the item to be found, that is, the back shell of the electronic device points to the item to be found. The area to look for. Based on this, in order to facilitate the use of the electronic device to find items, the first side may be the side opposite to the screen of the electronic device. Exemplarily, the first side may be the back shell of the electronic device, that is to say, at least two antennas may be disposed on the back shell of the electronic device. Exemplarily, the first side may also be a side close to the back shell of the electronic device.
在本实施例中,电子设备设置的天线为超宽带天线(UWB天线)。该电子设备设置的天线的数量可以根据实际情况进行设置。例如,如图1所示,该电子设备可以设置有两个天线(UWB天线1和UWB天线2)。还例如,如图2所示,该电子设备也可以设置有三个天线,具体包括UWB天线1、UWB天线2和UWB天线3,其中,UWB天线1和UWB天线2沿X方向排列,UWB天线1和UWB天线3沿Y方向排列。In this embodiment, the antenna provided on the electronic device is an ultra-wideband antenna (UWB antenna). The number of antennas provided on the electronic device can be set according to actual conditions. For example, as shown in FIG. 1, the electronic device may be provided with two antennas (UWB antenna 1 and UWB antenna 2). Also for example, as shown in FIG. 2, the electronic device may also be provided with three antennas, specifically including UWB antenna 1, UWB antenna 2, and UWB antenna 3, wherein UWB antenna 1 and UWB antenna 2 are arranged along the X direction, and UWB antenna 1 and the UWB antenna 3 are arranged along the Y direction.
目标对象为待定位的对象。目标对象用于向电子设备发射信号,使得 电子设备对目标对象进行定位。The target object is an object to be located. The target object is used to transmit a signal to the electronic device, so that the electronic device locates the target object.
在一些实施例中,目标对象设置有超宽带模块,也就是说,目标对象设置有UWB标签。该目标对象通过超宽带模块以预定频率发射第一信号。在具体实施时,分别通过至少两个天线接收目标对象发射的第一信号,包括:分别通过至少两个天线接收目标对象的超宽带模块以预定频率发射的第一信号。In some embodiments, the target object is provided with an ultra-wideband module, that is, the target object is provided with a UWB tag. The target object transmits a first signal at a predetermined frequency through the ultra-wideband module. In a specific implementation, receiving the first signal transmitted by the target object through at least two antennas respectively includes: receiving the first signal transmitted by the ultra-wideband module of the target object at a predetermined frequency through at least two antennas respectively.
步骤3200,根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息。Step 3200: Determine the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas.
其中,所述方位信息包括正面和背面,在所述目标对象位于所述电子设备的正面时,所述目标对象朝向所述电子设备的屏幕,在所述目标对象位于所述电子设备的背面时,所述目标对象背离所述电子设备的屏幕。Wherein, the orientation information includes front and back. When the target object is located on the front of the electronic device, the target object faces the screen of the electronic device. When the target object is located on the back of the electronic device , the target object faces away from the screen of the electronic device.
在本实施例中,目标对象相对于电子设备的方位信息,用于表示目标对象与电子设备的相对位置关系,在确定目标对象相对于电子设备的方位信息之后,可以准确指示目标对象的位置。In this embodiment, the orientation information of the target object relative to the electronic device is used to indicate the relative positional relationship between the target object and the electronic device, and the position of the target object can be accurately indicated after the orientation information of the target object relative to the electronic device is determined.
具体来说,在利用电子设备寻找目标对象时,用户手持电子设备,电子设备的正面面向用户,电子设备的背面朝向外侧,即电子设备用于设置至少两个天线的平面朝向外侧。在目标对象位于电子设备的背面时,目标对象背离电子设备的屏幕,也就是说,在利用电子设备定位目标对象时,目标对象位于用户的前方。在目标对象位于电子设备的正面时,目标对象朝向电子设备的屏幕,也就是说,在利用电子设备定位目标对象时,目标对象位于用户的背后。Specifically, when using an electronic device to find a target object, the user holds the electronic device, the front of the electronic device faces the user, and the back of the electronic device faces outward, that is, the plane of the electronic device for installing at least two antennas faces outward. When the target object is located at the back of the electronic device, the target object is away from the screen of the electronic device, that is, when the electronic device is used to locate the target object, the target object is located in front of the user. When the target object is located in front of the electronic device, the target object is facing the screen of the electronic device, that is, when the electronic device is used to locate the target object, the target object is located behind the user.
在利用电子设备寻找目标对象过程中,在目标对象位于电子设备的背面时,也就是目标对象位于用户的前方时,可以根据测量得到的位置信息,为用户指示目标对象的位置。在目标对象位于电子设备的正面时,也就是目标对象位于用户的身后时,无法根据测量得到的位置信息,正确指示目标对象的位置。基于此,在指示目标对象的位置之前,需要先确定目标对象相对于电子设备的方位信息。In the process of using the electronic device to find the target object, when the target object is located at the back of the electronic device, that is, when the target object is located in front of the user, the position of the target object can be indicated to the user according to the measured position information. When the target object is located in front of the electronic device, that is, when the target object is located behind the user, the position of the target object cannot be correctly indicated according to the measured position information. Based on this, before indicating the position of the target object, it is necessary to first determine the orientation information of the target object relative to the electronic device.
进一步地,由于电子设备是具有一定厚度的,目标对象位于电子设备的背面和正面,目标对象发射的第一信号到达电子设备的传播路径不同,并且电子设备的至少两个天线接收到的第一信号的第一接收信号强度也是不同的。基于此,可以根据至少两个天线接收到的第一信号,确定目标对象相对于电子设备的方位信息,并在确定目标对象相对于电子设备的方位信息之后,可以准确指示目标对象的位置。Furthermore, since the electronic device has a certain thickness, and the target object is located on the back and the front of the electronic device, the propagation paths of the first signal emitted by the target object to the electronic device are different, and the first signal received by at least two antennas of the electronic device The first received signal strengths of the signals are also different. Based on this, the orientation information of the target object relative to the electronic device can be determined according to the first signals received by at least two antennas, and after the orientation information of the target object relative to the electronic device is determined, the position of the target object can be accurately indicated.
示例性地,根据至少两个天线接收到的第一信号,确定目标对象相对于电子设备的方位信息,可以是:在至少两个天线接收到目标对象在当前时刻发射的第一信号时,根据至少两个天线接收到第一信号的时间差,确定目标对象相对于电子设备的方位信息。在至少两个天线接收到目标对象在下一时刻发射的第一信号时,再次根据至少两个天线接收到第一信号的时间差,确定目标对象相对于电子设备的方位信息,以实现对目标对象的实时定位。Exemplarily, determining the orientation information of the target object relative to the electronic device according to the first signals received by at least two antennas may be: when at least two antennas receive the first signal transmitted by the target object at the current moment, according to The time difference between at least two antennas receiving the first signal determines the orientation information of the target object relative to the electronic device. When the at least two antennas receive the first signal transmitted by the target object at the next moment, the position information of the target object relative to the electronic device is determined again according to the time difference between the at least two antennas receiving the first signal, so as to realize the target object. Real-time positioning.
在本申请实施例中,分别通过电子设备的至少两个天线接收目标对象的第一信号,根据至少两个天线接收到的第一信号,确定目标对象相对于电子设备的方位信息,以确定目标对象位于电子设备的正面还是背面,从而在确定目标对象位于电子设备的背面的情况下,向用户指示目标对象的位置,在不需要增加天线数量的情况下,可以提高定位的准确性。In the embodiment of the present application, the first signal of the target object is received through at least two antennas of the electronic device, and the orientation information of the target object relative to the electronic device is determined according to the first signals received by the at least two antennas, so as to determine the target Whether the object is located on the front or the back of the electronic device, so as to indicate the location of the target object to the user when it is determined that the target object is located on the back of the electronic device, and the accuracy of positioning can be improved without increasing the number of antennas.
在本实施例中,根据至少两个天线接收到的第一信号,确定目标对象相对于电子设备的方位信息,可以是根据至少两个天线接收到的第一信号的第一接收信号强度,确定目标对象相对于电子设备的方位信息。根据至少两个天线接收到的第一信号,确定目标对象相对于电子设备的方位信息,也可以是根据至少两个天线接收到的第一信号,获得目标对象与电子设备之间的距离变化率,根据目标对象与电子设备之间的距离变化率,确定目标对象相对于电子设备的方位信息。下面以具体的实施例分别对这两种方式进行说明。In this embodiment, determining the orientation information of the target object relative to the electronic device according to the first signals received by at least two antennas may be determined according to the first received signal strength of the first signals received by at least two antennas. The orientation information of the target object relative to the electronic device. Determine the orientation information of the target object relative to the electronic device according to the first signals received by at least two antennas, or obtain the distance change rate between the target object and the electronic device according to the first signals received by at least two antennas , according to the rate of change of the distance between the target object and the electronic device, determine the orientation information of the target object relative to the electronic device. The two methods will be described respectively below with specific embodiments.
在本申请的一些实施例中,所述根据所述至少两个天线接收到的所述 第一信号,确定所述目标对象相对于所述电子设备的方位信息,可以进一步包括:步骤4100-步骤4300。In some embodiments of the present application, the determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas may further include: step 4100-step 4300.
步骤4100,获取所述第一信号的第一接收信号强度。Step 4100, acquire a first received signal strength of the first signal.
其中,所述第一接收信号强度是根据所述至少两个天线接收到的第一信号的接收信号强度共同确定的。Wherein, the first received signal strength is jointly determined according to the received signal strengths of the first signals received by the at least two antennas.
第一接收信号强度的大小可以反映目标对象距离电子设备的远近。示例性地,请参见图4,其是第一接收信号强度和目标对象与电子设备之间距离的关系曲线。如图4所示,随着目标对象与电子设备之间的距离的增大,第一信号的第一接收信号强度越小。The magnitude of the first received signal strength may reflect the distance between the target object and the electronic device. For example, please refer to FIG. 4 , which is a relationship curve between the first received signal strength and the distance between the target object and the electronic device. As shown in FIG. 4 , as the distance between the target object and the electronic device increases, the first received signal strength of the first signal becomes smaller.
在本实施例中,以至少两个天线设置在电子设备的背壳上为例,在目标对象位于电子设备的背面的情况下,即目标对象位于用户的前方,此时,随着目标对象与电子设备之间的距离的增大,第一接收信号强度随之变小。在目标对象位于电子设备的正面的情况下,即目标对象位于用户的身后,由于电子设备具有一定的厚度,目标对象发射的第一信号受到电子设备的设备本体的遮挡,导致第一接收信号强度的严重衰减,电子设备接收到的第一信号的第一接收信号强度大大减小。也就是说,第一接收信号强度的大小还可以反映目标对象发射的第一信号是否受到遮挡。基于此,可以根据第一接收信号强度确定目标对象相对于电子设备的方位信息。In this embodiment, taking at least two antennas arranged on the back shell of the electronic device as an example, when the target object is located on the back of the electronic device, that is, the target object is located in front of the user, at this time, as the target object and As the distance between the electronic devices increases, the strength of the first received signal decreases accordingly. When the target object is located in front of the electronic device, that is, the target object is located behind the user, since the electronic device has a certain thickness, the first signal emitted by the target object is blocked by the device body of the electronic device, resulting in the first received signal strength severe attenuation, the first received signal strength of the first signal received by the electronic device is greatly reduced. That is to say, the strength of the first received signal may also reflect whether the first signal transmitted by the target object is blocked. Based on this, the orientation information of the target object relative to the electronic device may be determined according to the first received signal strength.
在电子设备包括至少两个天线的情况下,至少两个天线与目标对象之间的距离基本相等。基于此,示例性地,获取所述电子设备的天线接收到的第一信号的第一接收信号强度,可以进一步包括:将所述至少两个天线中任一个天线接收到的第一信号的接收信号强度作为所述第一接收信号强度。示例性地,获取所述电子设备的天线接收到的第一信号的第一接收信号强度,可以进一步包括:将所述至少两个天线接收到的第一信号的接收信号强度的平均值作为所述第一接收信号强度。In case the electronic device includes at least two antennas, the distances between the at least two antennas and the target object are substantially equal. Based on this, for example, acquiring the first received signal strength of the first signal received by the antenna of the electronic device may further include: receiving the first signal received by any one of the at least two antennas The signal strength is used as the first received signal strength. Exemplarily, obtaining the first received signal strength of the first signal received by the antenna of the electronic device may further include: taking the average value of the received signal strength of the first signal received by the at least two antennas as the obtained The first received signal strength.
在本实施例中,将至少两个天线接收到的第一信号的接收信号强度的平均值作为第一接收信号强度,可以提高检测的准确性,从而提高定位的 精度。In this embodiment, the average value of the received signal strengths of the first signals received by at least two antennas is used as the first received signal strength, which can improve detection accuracy, thereby improving positioning accuracy.
在步骤4100之后,执行步骤4200,在所述第一接收信号强度远小于第二接收信号强度的情况下,确定所述目标对象位于所述电子设备的正面。After step 4100, step 4200 is executed to determine that the target object is located in front of the electronic device when the first received signal strength is much smaller than the second received signal strength.
步骤4300,在除去所述第一接收信号强度远小于所述第二接收信号强度之外的情况下,确定所述目标对象位于所述电子设备的背面。Step 4300, except that the first received signal strength is much smaller than the second received signal strength, determine that the target object is located at the back of the electronic device.
可以理解的是,第一接收信号强度远小于第二接收信号强度之外的情况,可以是第一接收信号强度与第二接收信号强度较为接近的情况。例如,第一接收信号强度等于第二接收信号强度。还例如,第一接收信号接收强度略小于第二接收信号强度。It can be understood that the case that the first received signal strength is much smaller than the second received signal strength may be the case that the first received signal strength is relatively close to the second received signal strength. For example, the first received signal strength is equal to the second received signal strength. Also for example, the first received signal strength is slightly smaller than the second received signal strength.
第二接收信号强度与所述目标对象相距所述电子设备的距离有关。第二接收信号强度为在目标对象与电子设备之间的距离不变的情况下,电子设备的天线接收到的第一信号的接收信号强度的理论值。The second received signal strength is related to the distance of the target object from the electronic device. The second received signal strength is a theoretical value of the received signal strength of the first signal received by the antenna of the electronic device when the distance between the target object and the electronic device is constant.
在本实施例中,可以根据第二接收信号强度与第一接收信号强度的差值,确定第一接收信号强度是否远小于第二接收信号强度。In this embodiment, it may be determined whether the first received signal strength is much smaller than the second received signal strength according to the difference between the second received signal strength and the first received signal strength.
示例性地,在第二接收信号强度与第一接收信号强度的差值大于或等于第二阈值的情况下,确定第一接收信号强度远小于第二接收信号强度;在第二接收信号强度与第一接收信号强度的差值小于第二阈值的情况下,确定第一接收信号强度与第二接收信号强度较为接近。Exemplarily, in the case where the difference between the second received signal strength and the first received signal strength is greater than or equal to a second threshold, it is determined that the first received signal strength is much smaller than the second received signal strength; If the difference of the first received signal strength is smaller than the second threshold, it is determined that the first received signal strength is relatively close to the second received signal strength.
第二阈值可以用于衡量第一接收信号强度是否远小于第二接收信号强度。第二阈值可以由本领域技术人员根据仿真试验结果进行设置,本申请实施例对此不做特殊限定。The second threshold may be used to measure whether the first received signal strength is much smaller than the second received signal strength. The second threshold can be set by those skilled in the art according to the simulation test results, which is not specifically limited in this embodiment of the present application.
继续以至少两个天线设置在电子设备的背壳上为例,在所述第一接收信号强度远小于第二接收信号强度的情况下,也就是第二接收信号强度与第一接收信号强度的差值大于第二阈值的情况下,说明目标对象发射的第一信号受到电子设备的设备本体的遮挡后,造成了第一接收信号强度的严重衰减,即目标对象位于电子设备的正面,目标对象朝向电子设备的屏幕。Continuing to take at least two antennas arranged on the back shell of the electronic device as an example, in the case where the first received signal strength is much smaller than the second received signal strength, that is, the difference between the second received signal strength and the first received signal strength If the difference is greater than the second threshold, it means that the first signal emitted by the target object is blocked by the device body of the electronic device, which causes serious attenuation of the strength of the first received signal, that is, the target object is located in front of the electronic device, and the target object towards the screen of an electronic device.
在所述第一接收信号强度远小于所述第二接收信号强度之外的情况 下,也就是第一接收信号强度接近第二接收信号强度的情况下,说明目标对象与电子设备之间没有遮挡,目标对象位于电子设备的前方,即目标对象位于电子设备的背面,目标对象背离电子设备的屏幕。If the first received signal strength is much lower than the second received signal strength, that is, if the first received signal strength is close to the second received signal strength, it means that there is no occlusion between the target object and the electronic device , the target object is located in front of the electronic device, that is, the target object is located at the back of the electronic device, and the target object faces away from the screen of the electronic device.
在本实施例中,在利用电子设备寻找物品的过程中,实时测量电子设备的天线接收到的第一信号的第一接收信号强度,并将第一接收信号强度与理论计算的第二接收信号强度进行比较,可以区分目标对象位于电子设备的正面还是背面,从而可以提高定位目标对象的准确性。In this embodiment, during the process of using the electronic device to find the item, the first received signal strength of the first signal received by the antenna of the electronic device is measured in real time, and the first received signal strength is compared with the theoretically calculated second received signal By comparing the intensity, it is possible to distinguish whether the target object is located on the front or the back of the electronic device, thereby improving the accuracy of locating the target object.
在本申请的一些实施例中,在获取所述第一信号的第一接收信号强度之前,该定位方法还可以包括:步骤5100-步骤5200。In some embodiments of the present application, before obtaining the first received signal strength of the first signal, the positioning method may further include: Step 5100-Step 5200.
步骤5100,根据所述至少两个天线接收到的所述第一信号,获得所述目标对象与所述电子设备之间的距离。Step 5100: Obtain the distance between the target object and the electronic device according to the first signals received by the at least two antennas.
在具体实施时,根据至少两个天线接收到第一信号的时间差,可以确定目标对象与所述电子设备之间的距离。During specific implementation, the distance between the target object and the electronic device may be determined according to the time difference between at least two antennas receiving the first signal.
步骤5200,根据所述目标对象与所述电子设备之间的距离,确定第二接收信号强度。Step 5200: Determine a second received signal strength according to the distance between the target object and the electronic device.
示例性地,第二接收信号强度可以通过以下公式(1)和(2)获得:Exemplarily, the second received signal strength can be obtained by the following formulas (1) and (2):
RSSI 2=txPower+pathloss+rxGain+SystemGain    (1) RSSI 2 = txPower+pathloss+rxGain+SystemGain (1)
其中,RSSI 2是第二接收信号强度,txPower是第一信号的发送功率,pathloss是第一信号的路径衰减,rxGain是电子设备的天线接收第一信号的接收增益,SystemGain是电子设备的天线接收第一信号的系统增益。其中,txPower、rxGain、SystemGain为定值。pathloss与第一信号的传播距离有关。 Among them, RSSI 2 is the second received signal strength, txPower is the transmitted power of the first signal, pathloss is the path attenuation of the first signal, rxGain is the receiving gain of the antenna of the electronic device receiving the first signal, and SystemGain is the receiving gain of the antenna of the electronic device The system gain of the first signal. Among them, txPower, rxGain, and SystemGain are fixed values. Pathloss is related to the propagation distance of the first signal.
pathloss=36.6+(20log10(f))+(20log10(D))    (2)pathloss=36.6+(20log10(f))+(20log10(D)) (2)
其中,D是目标对象与电子设备之间的距离。Wherein, D is the distance between the target object and the electronic device.
在本实施例中,根据目标对象与电子设备之间的距离,确定第二接收信号强度,并将实时测量第一信号的第一接收信号强度与理论计算的第二接收信号强度进行比较,可以区分目标对象位于电子设备的正面还是背面, 从而可以提高定位目标对象的准确性。In this embodiment, the second received signal strength is determined according to the distance between the target object and the electronic device, and the real-time measured first received signal strength of the first signal is compared with the theoretically calculated second received signal strength, which can be It is distinguished whether the target object is located on the front or the back of the electronic device, so that the accuracy of locating the target object can be improved.
在本申请的另一些实施例中,所述根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息,可以进一步包括:步骤6100-步骤6300。In some other embodiments of the present application, the determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas may further include: Step 6100- Step 6300.
步骤6100,根据所述至少两个天线接收到的所述第一信号,获得所述目标对象与所述电子设备之间的距离变化率。Step 6100: Obtain the rate of change of the distance between the target object and the electronic device according to the first signals received by the at least two antennas.
在本实施例中,请参见图5和6,图5是本申请实施例的一种第一信号的传播路径的示意图,图6是本申请实施例的一种目标对象与电子设备之间距离的测量结果的示意图。具体来说,继续以至少两个天线设置在电子设备的背壳上为例,在目标对象位于电子设备的背面的情况下,即目标对象位于电子设备的前方,目标对象发射的第一信号可以通过直接路径(路径1)到达电子设备的天线,此时,测量的目标对象与电子设备之间距离的变化幅度较小,多次测量结果可以如图6所示。In this embodiment, please refer to FIGS. 5 and 6. FIG. 5 is a schematic diagram of a propagation path of a first signal according to an embodiment of the present application, and FIG. 6 is a distance between a target object and an electronic device according to an embodiment of this application. A schematic diagram of the measurement results. Specifically, continuing to take at least two antennas arranged on the back shell of the electronic device as an example, when the target object is located at the back of the electronic device, that is, the target object is located in front of the electronic device, the first signal emitted by the target object may be The antenna of the electronic device is reached through a direct path (path 1). At this time, the variation range of the distance between the measured target object and the electronic device is small, and the multiple measurement results can be shown in FIG. 6 .
在目标对象位于电子设备的正面的情况下,即目标对象位于电子设备的后方,目标对象发射的第一信号受到电子设备的设备本体的遮挡,不能直接传播至电子设备,而通过反射后到达电子设备。由于,反射路径可以有多条,例如图中所示的路径2和路径3,这样,经不同的反射路径到达电子设备,测量得到的目标对象与电子设备之间的距离则不同,此时,测量的目标对象与电子设备之间距离的变化幅度较大,测量结果不稳定,多次测量结果可以如图6所示。When the target object is located in front of the electronic device, that is, the target object is located behind the electronic device, the first signal emitted by the target object is blocked by the device body of the electronic device and cannot be directly transmitted to the electronic device, but reaches the electronic device after reflection. equipment. Since there may be multiple reflection paths, such as path 2 and path 3 shown in the figure, in this way, the measured distance between the target object and the electronic device is different when reaching the electronic device through different reflection paths. At this time, The distance between the measured target object and the electronic device varies greatly, and the measurement result is unstable, as shown in FIG. 6 for multiple measurement results.
基于此,根据至少两个天线接收到的第一信号,获得目标对象与所述电子设备之间的距离变化率,可以确定目标对象相对于电子设备的方位信息。Based on this, the distance change rate between the target object and the electronic device is obtained according to the first signals received by at least two antennas, and the orientation information of the target object relative to the electronic device can be determined.
在本实施例中,目标对象以预定频率发射第一信号,电子设备的至少两个天线接收目标对象以预定频率发射第一信号。在电子设备的至少两个天线接收到第一信号时,根据至少两个天线接收到的第一信号的时间差,可以确定目标对象与电子设备之间的距离,也就是说,可以获得多个测量 结果。In this embodiment, the target object transmits the first signal with a predetermined frequency, and at least two antennas of the electronic device receive the target object transmits the first signal with the predetermined frequency. When at least two antennas of the electronic device receive the first signal, the distance between the target object and the electronic device can be determined according to the time difference of the first signal received by the at least two antennas, that is, multiple measurements can be obtained result.
目标对象与电子设备之间的距离变化率,可以根据相邻两次测量的目标对象与电子设备之间的距离确定。The rate of change of the distance between the target object and the electronic device may be determined according to the distances between the target object and the electronic device measured twice adjacently.
示例性地,目标对象与电子设备之间的距离变化率可以通过以下公式(3)获得:Exemplarily, the rate of change of the distance between the target object and the electronic device can be obtained by the following formula (3):
v=(D 2-D 1)/t    (3) v=(D 2 −D 1 )/t (3)
其中,v是目标对象与电子设备之间的距离变化率,D 1是当前时刻测量的目标对象与电子设备之间的距离,D 2是下一时刻测量的目标对象与电子设备之间的距离,t是两次测量目标对象与电子设备之间距离的时间间隔,即电子设备接收到两次第一信号的时间间隔。 Among them, v is the rate of change of the distance between the target object and the electronic device, D 1 is the distance between the target object and the electronic device measured at the current moment, and D 2 is the distance between the target object and the electronic device measured at the next moment , t is the time interval between two measurements of the distance between the target object and the electronic device, that is, the time interval between the electronic device receiving the first signal twice.
需要说明的是,目标对象与电子设备之间的距离变化率也可以是根据目标对象与电子设备之间的距离变化曲线的斜率确定。It should be noted that the rate of change of the distance between the target object and the electronic device may also be determined according to the slope of the distance change curve between the target object and the electronic device.
步骤6200,在所述距离变化率小于或等于第一阈值的情况下,确定所述目标对象位于所述电子设备的背面。Step 6200, if the rate of change of the distance is less than or equal to a first threshold, determine that the target object is located at the back of the electronic device.
步骤6300,在所述距离变化率大于所述第一阈值的情况下,确定所述目标对象位于所述电子设备的正面。Step 6300, if the rate of change of the distance is greater than the first threshold, determine that the target object is located in front of the electronic device.
第一阈值用于衡量目标对象与电子设备之间的距离变化率是否过大。The first threshold is used to measure whether the rate of change of the distance between the target object and the electronic device is too large.
在一些实施例中,在用户使用电子设备寻找目标对象时,目标对象与电子设备之间距离会随着用户移动位置变化,也就是说,目标对象与电子设备之间的距离变化率与用户移动的速度是一致的。基于此,第一阈值可以根据用户在室内移动的速度进行设定。示例性地,第一阈值可以是用户移动的平均速度,例如,2m/s,本申请实施例对此不做限定。In some embodiments, when the user uses the electronic device to find the target object, the distance between the target object and the electronic device will change as the user moves, that is, the distance change rate between the target object and the electronic device is related to the user's movement. The speed is the same. Based on this, the first threshold may be set according to the speed at which the user moves indoors. Exemplarily, the first threshold may be an average moving speed of the user, for example, 2m/s, which is not limited in this embodiment of the present application.
在本实施例中,在目标对象与电子设备之间的距离变化率小于或等于第一阈值的情况下,说明多次测量得到的目标对象与电子设备之间距离波动较小,可以确定目标对象位于电子设备的背面,即目标对象位于电子设备的前方,目标对象背离电子设备的屏幕。在目标对象与电子设备之间的距离变化率大于第一阈值的情况下,说明多次测量得到的目标对象与电子 设备之间距离波动较大,可以确定目标对象位于电子设备的正面,即目标对象位于电子设备的后方,目标对象朝向电子设备的屏幕。In this embodiment, in the case that the rate of change of the distance between the target object and the electronic device is less than or equal to the first threshold value, it means that the fluctuation of the distance between the target object and the electronic device obtained through multiple measurements is small, and the target object can be determined Located on the back of the electronic device, that is, the target object is located in front of the electronic device, and the target object faces away from the screen of the electronic device. If the rate of change of the distance between the target object and the electronic device is greater than the first threshold, it indicates that the distance between the target object and the electronic device fluctuates greatly from multiple measurements, and it can be determined that the target object is located in front of the electronic device, that is, the target The object is located behind the electronic device, and the target object faces the screen of the electronic device.
在本实施例中,在利用电子设备寻找物品的过程中,通过多次测量得到目标对象与电子设备之间的距离变化率,可以区分目标对象位于电子设备的正面还是背面,从而可以提高定位目标对象的准确性。In this embodiment, in the process of using the electronic device to find items, the rate of change of the distance between the target object and the electronic device is obtained through multiple measurements, and it can be distinguished whether the target object is located on the front or the back of the electronic device, thereby improving the accuracy of the positioning target. object accuracy.
在本申请的一些实施例中,在根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息之后,该定位方法还可以包括:步骤7100-步骤7200。In some embodiments of the present application, after determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas, the positioning method may further include: step 7100 - Step 7200.
步骤7100,在确定所述目标对象位于所述电子设备的背面的情况下,根据所述至少两个天线接收到的所述第一信号,获得所述目标对象相对于所述电子设备的方位角和所述目标对象与所述电子设备之间的距离。Step 7100, if it is determined that the target object is located on the back of the electronic device, according to the first signal received by the at least two antennas, obtain the azimuth angle of the target object relative to the electronic device and the distance between the target object and the electronic device.
步骤7200,显示所述方位角和所述距离。Step 7200, display the azimuth and the distance.
在本实施例中,在利用电子设备寻找物品的过程中,在确定目标对象位于电子设备的正面还是背面之后,从而基于测量得到的目标对象相对于电子设备的距离和方位角,实现对目标对象的定位,并且在电子设备上显示目标对象相对于所述电子设备的方位角和距离,可以指示用户找到目标对象。In this embodiment, in the process of using the electronic device to find items, after determining whether the target object is located on the front or the back of the electronic device, based on the measured distance and azimuth of the target object relative to the electronic device, the target object and displaying the azimuth and distance of the target object relative to the electronic device on the electronic device can instruct the user to find the target object.
需要说明的是,本申请实施例提供的定位方法,执行主体可以为定位装置,或者该定位装置中的用于执行定位的方法的控制模块。本申请实施例中以定位装置执行定位的方法为例,说明本申请实施例提供的定位的装置。It should be noted that, for the locating method provided in the embodiment of the present application, the execution subject may be a locating device, or a control module in the locating device for executing the locating method. In the embodiment of the present application, the positioning method performed by the positioning device is taken as an example to illustrate the positioning device provided in the embodiment of the present application.
与上述实施例相对应,参见图7,本申请实施例还提供一种定位装置700,应用于电子设备,所所述电子设备设置有至少两个天线,所述至少两个天线设置于第一侧面,所述第一侧面为与所述电子设备的屏幕相对的侧面。该定位装置700包括接收模块701和确定模块702。Corresponding to the above embodiment, referring to FIG. 7 , the embodiment of the present application also provides a positioning device 700, which is applied to electronic equipment, and the electronic equipment is provided with at least two antennas, and the at least two antennas are provided on the first A side, the first side is the side opposite to the screen of the electronic device. The positioning device 700 includes a receiving module 701 and a determining module 702 .
接收模块701,用于分别通过所述至少两个天线接收目标对象发射的第一信号;A receiving module 701, configured to respectively receive the first signal transmitted by the target object through the at least two antennas;
确定模块702,用于根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息;其中,所述方位信息包括正面和背面,在所述目标对象位于所述电子设备的正面时,所述目标对象朝向所述电子设备的屏幕,在所述目标对象位于所述电子设备的背面时,所述目标对象背离所述电子设备的屏幕。A determining module 702, configured to determine the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas; When the target object is located at the front of the electronic device, the target object faces the screen of the electronic device, and when the target object is located at the back of the electronic device, the target object faces away from the screen of the electronic device.
在一些实施例中,所述确定模块,包括:第一获取单元,用于根据所述至少两个天线接收到的所述第一信号,得到所述目标对象与所述电子设备之间的距离变化率;第一确定单元,用于在所述距离变化率小于或等于第一阈值的情况下,确定所述目标对象位于所述电子设备的背面;第二确定单元,用于在所述距离变化率大于所述第一阈值的情况下,确定所述目标对象位于所述电子设备的正面。In some embodiments, the determining module includes: a first acquiring unit, configured to obtain the distance between the target object and the electronic device according to the first signals received by the at least two antennas rate of change; a first determination unit, configured to determine that the target object is located on the back of the electronic device when the rate of change of the distance is less than or equal to a first threshold; a second determination unit, configured to determine that the target object is located at the back of the electronic device at the distance If the rate of change is greater than the first threshold, it is determined that the target object is located in front of the electronic device.
在一些实施例中,所述确定模块,还包括:第二获取单元,用于获取所述第一信号的第一接收信号强度,其中,所述第一接收信号强度是根据所述至少两个天线接收到的第一信号的接收信号强度共同确定的;第三确定单元,用于在所述第一接收信号强度远小于第二接收信号强度的情况下,确定所述目标对象位于所述电子设备的正面,其中,所述第二接收信号强度与所述目标对象相距所述电子设备的距离有关;第四确定单元,用于在除去所述第一接收信号强度远小于所述第二接收信号强度之外的情况下,确定所述目标对象位于所述电子设备的背面。In some embodiments, the determining module further includes: a second acquiring unit, configured to acquire a first received signal strength of the first signal, wherein the first received signal strength is based on the at least two The received signal strength of the first signal received by the antenna is jointly determined; a third determining unit is configured to determine that the target object is located in the electronic The front of the device, wherein the second received signal strength is related to the distance between the target object and the electronic device; the fourth determining unit is configured to exclude that the first received signal strength is much smaller than the second received signal In the case of signal strength other than, it is determined that the target object is located on the back of the electronic device.
在一些实施例中,所述确定模块,还包括:第三获取单元,用于根据所述至少两个天线接收到的所述第一信号,获得所述目标对象与所述电子设备之间的距离;第五确定单元,用于根据所述目标对象与所述电子设备之间的距离,确定第二接收信号强度。In some embodiments, the determining module further includes: a third obtaining unit, configured to obtain the distance between the target object and the electronic device according to the first signals received by the at least two antennas Distance; a fifth determining unit, configured to determine a second received signal strength according to the distance between the target object and the electronic device.
在一些实施例中,该定位装置700,还包括:获取模块,用于在确定所述目标对象位于所述电子设备的背面的情况下,根据所述至少两个天线接收到的所述第一信号,获得所述目标对象相对于所述电子设备的方位角和所述目标对象与所述电子设备之间的距离;显示模块,用于显示所述方 位角和所述距离。In some embodiments, the positioning device 700 further includes: an acquisition module, configured to, according to the first received information received by the at least two antennas, when it is determined that the target object is located on the back of the electronic device. signal, to obtain the azimuth of the target object relative to the electronic device and the distance between the target object and the electronic device; a display module, configured to display the azimuth and the distance.
在本申请实施例中,分别通过电子设备的至少两个天线接收目标对象的第一信号,根据至少两个天线接收到的第一信号,确定目标对象相对于电子设备的方位信息,以确定目标对象位于电子设备的正面还是背面,从而在确定目标对象位于电子设备的背面的情况下,向用户指示目标对象的位置,在不需要增加天线数量的情况下,可以提高定位的准确性。In the embodiment of the present application, the first signal of the target object is received through at least two antennas of the electronic device, and the orientation information of the target object relative to the electronic device is determined according to the first signals received by the at least two antennas, so as to determine the target Whether the object is located on the front or the back of the electronic device, so as to indicate the location of the target object to the user when it is determined that the target object is located on the back of the electronic device, and the accuracy of positioning can be improved without increasing the number of antennas.
本申请实施例中的定位装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,本申请实施例不作具体限定。The positioning device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., which are not specifically limited in the embodiments of the present application.
本申请实施例中的定位装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The positioning device in this embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的定位装置能够实现图3至图6的方法实施例实现的各个过程,为避免重复,这里不再赘述。The positioning device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 3 to FIG. 6 , and details are not repeated here to avoid repetition.
与上述实施例相对应,可选地,如图8所示,本申请实施例还提供一种电子设备800,包括处理器801,存储器802,存储在存储器802上并可在所述处理器801上运行的程序或指令,该程序或指令被处理器801执行时实现上述定位方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Corresponding to the above embodiment, optionally, as shown in FIG. 8 , the embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, which are stored in the memory 802 and can be executed on the processor 801. The program or instruction running on the above-mentioned positioning method embodiment is implemented when the program or instruction is executed by the processor 801, and can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备。It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device.
图9为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906、用户输入单元 907、接口单元908、存储器909、以及处理器910等部件。The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910, etc. part.
本领域技术人员可以理解,电子设备900还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器910逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 900 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 910 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,电子设备900在本申请实施例中设置有至少两个天线,所述至少两个天线设置于第一侧面,所述第一侧面为与所述电子设备的屏幕相对的侧面。Wherein, the electronic device 900 is provided with at least two antennas in this embodiment of the application, and the at least two antennas are disposed on a first side, and the first side is a side opposite to a screen of the electronic device.
处理器910,用于:分别通过所述至少两个天线接收目标对象发射的第一信号;根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息;其中,所述方位信息包括正面和背面,在所述目标对象位于所述电子设备的正面时,所述目标对象朝向所述电子设备的屏幕,在所述目标对象位于所述电子设备的背面时,所述目标对象背离所述电子设备的屏幕。The processor 910 is configured to: respectively receive first signals transmitted by the target object through the at least two antennas; and determine the relative position of the target object relative to the electronic The orientation information of the device; wherein, the orientation information includes the front and the back, when the target object is located on the front of the electronic device, the target object faces the screen of the electronic device, and when the target object is located on the electronic device When the back of the electronic device is turned on, the target object faces away from the screen of the electronic device.
可选地,处理器910在根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息时,用于:根据所述至少两个天线接收到的所述第一信号,获得所述目标对象与所述电子设备之间的距离变化率;在所述距离变化率小于或等于第一阈值的情况下,确定所述目标对象位于所述电子设备的背面;在所述距离变化率大于所述第一阈值的情况下,确定所述目标对象位于所述电子设备的正面。Optionally, when determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas, the processor 910 is configured to: according to the at least two antennas Obtain the rate of change of the distance between the target object and the electronic device from the received first signal; if the rate of change of the distance is less than or equal to a first threshold, determine that the target object is located in the the back of the electronic device; if the rate of change of the distance is greater than the first threshold, determine that the target object is located at the front of the electronic device.
可选地,处理器910在根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息时,还用于:获取所述第一信号的第一接收信号强度,其中,所述第一接收信号强度是根据所述至少两个天线接收到的第一信号的接收信号强度共同确定的;在所述第一接收信号强度远小于第二接收信号强度的情况下,确定所述目标对象位于 所述电子设备的正面,其中,所述第二接收信号强度与所述目标对象相距所述电子设备的距离有关;在除去所述第一接收信号强度远小于所述第二接收信号强度之外的情况下,确定所述目标对象位于所述电子设备的背面。Optionally, when determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas, the processor 910 is further configured to: acquire the first signal The first received signal strength, wherein, the first received signal strength is jointly determined according to the received signal strength of the first signal received by the at least two antennas; when the first received signal strength is much smaller than the second In the case of received signal strength, it is determined that the target object is located in front of the electronic device, wherein the second received signal strength is related to the distance between the target object and the electronic device; If the signal strength is much lower than the second received signal strength, it is determined that the target object is located at the back of the electronic device.
可选地,处理器910在所述获取所述第一信号的第一接收信号强度之前,还用于:根据所述至少两个天线接收到的所述第一信号,获得所述目标对象与所述电子设备之间的距离;根据所述目标对象与所述电子设备之间的距离,确定第二接收信号强度。Optionally, before the acquiring the first received signal strength of the first signal, the processor 910 is further configured to: acquire the relationship between the target object and the first signal received by the at least two antennas according to the first signal received by the at least two antennas. The distance between the electronic devices: determining the second received signal strength according to the distance between the target object and the electronic devices.
可选地,处理器910在所述根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息之后,还用于:在确定所述目标对象位于所述电子设备的背面的情况下,根据所述至少两个天线接收到的所述第一信号,获得所述目标对象相对于所述电子设备的方位角和所述目标对象与所述电子设备之间的距离;通过显示单元906显示所述方位角和所述距离。Optionally, after determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas, the processor 910 is further configured to: determine the If the target object is located on the back of the electronic device, according to the first signals received by the at least two antennas, the azimuth of the target object relative to the electronic device and the relationship between the target object and the electronic device are obtained. The distance between the electronic devices; the display unit 906 displays the azimuth and the distance.
在本申请实施例中,分别通过电子设备的至少两个天线接收目标对象的第一信号,根据至少两个天线接收到的第一信号,确定目标对象相对于电子设备的方位信息,以确定目标对象位于电子设备的正面还是背面,从而在确定目标对象位于电子设备的背面的情况下,向用户指示目标对象的位置,在不需要增加天线数量的情况下,可以提高定位的准确性。In the embodiment of the present application, the first signal of the target object is received through at least two antennas of the electronic device, and the orientation information of the target object relative to the electronic device is determined according to the first signals received by the at least two antennas, so as to determine the target Whether the object is located on the front or the back of the electronic device, so as to indicate the location of the target object to the user when it is determined that the target object is located on the back of the electronic device, and the accuracy of positioning can be improved without increasing the number of antennas.
应理解的是,本申请实施例中,输入单元904可以包括图形处理器(Graphics Processing Unit,GPU)9041和麦克风9042,图形处理器9041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元906可包括显示面板9061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板9061。用户输入单元907包括触控面板9071以及其他输入设备9072。触控面板9071,也称为触摸屏。触控面板9071可包括触摸检测装置和触摸控制器两个部分。其他输入设备9072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储 器909可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器910可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器910中。It should be understood that, in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072 . The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. The memory 909 can be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 910 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述定位方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above-mentioned positioning method embodiment is realized, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述定位方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement each of the above positioning method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并 且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (13)

  1. 一种定位方法,应用于电子设备,其中,所述电子设备设置有至少两个天线,所述至少两个天线设置于第一侧面,所述第一侧面为与所述电子设备的屏幕相对的侧面;所述方法包括:A positioning method applied to an electronic device, wherein the electronic device is provided with at least two antennas, the at least two antennas are provided on a first side, and the first side is opposite to a screen of the electronic device Aspect; said method comprises:
    分别通过所述至少两个天线接收目标对象发射的第一信号;receiving the first signal transmitted by the target object through the at least two antennas respectively;
    根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息;determining the orientation information of the target object relative to the electronic device according to the first signal received by the at least two antennas;
    其中,所述方位信息包括正面和背面,在所述目标对象位于所述电子设备的正面时,所述目标对象朝向所述电子设备的屏幕,在所述目标对象位于所述电子设备的背面时,所述目标对象背离所述电子设备的屏幕。Wherein, the orientation information includes front and back. When the target object is located on the front of the electronic device, the target object faces the screen of the electronic device. When the target object is located on the back of the electronic device , the target object faces away from the screen of the electronic device.
  2. 根据权利要求1所述的方法,其中,所述根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息,包括:The method according to claim 1, wherein the determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas comprises:
    根据所述至少两个天线接收到的所述第一信号,获得所述目标对象与所述电子设备之间的距离变化率;Obtaining a rate of change of distance between the target object and the electronic device according to the first signal received by the at least two antennas;
    在所述距离变化率小于或等于第一阈值的情况下,确定所述目标对象位于所述电子设备的背面;If the rate of change of the distance is less than or equal to a first threshold, determine that the target object is located at the back of the electronic device;
    在所述距离变化率大于所述第一阈值的情况下,确定所述目标对象位于所述电子设备的正面。If the distance change rate is greater than the first threshold, it is determined that the target object is located in front of the electronic device.
  3. 根据权利要求1所述的方法,其中,所述根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息,还包括:The method according to claim 1, wherein the determining the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas further comprises:
    获取所述第一信号的第一接收信号强度,其中,所述第一接收信号强度是根据所述至少两个天线接收到的第一信号的接收信号强度共同确定 的;Acquiring a first received signal strength of the first signal, wherein the first received signal strength is jointly determined according to the received signal strengths of the first signals received by the at least two antennas;
    在所述第一接收信号强度远小于第二接收信号强度的情况下,确定所述目标对象位于所述电子设备的正面,其中,所述第二接收信号强度与所述目标对象相距所述电子设备的距离有关;In a case where the first received signal strength is much smaller than a second received signal strength, it is determined that the target object is located in front of the electronic device, wherein the second received signal strength is the electronic distance from the target object related to the distance of the equipment;
    在除去所述第一接收信号强度远小于所述第二接收信号强度之外的情况下,确定所述目标对象位于所述电子设备的背面。If the first received signal strength is much smaller than the second received signal strength, it is determined that the target object is located at the back of the electronic device.
  4. 根据权利要求3所述的方法,其中,所述方法在所述获取所述第一信号的第一接收信号强度之前,还包括:The method according to claim 3, wherein, before the acquiring the first received signal strength of the first signal, the method further comprises:
    根据所述至少两个天线接收到的所述第一信号,获得所述目标对象与所述电子设备之间的距离;Obtaining a distance between the target object and the electronic device according to the first signal received by the at least two antennas;
    根据所述目标对象与所述电子设备之间的距离,确定第二接收信号强度。A second received signal strength is determined according to the distance between the target object and the electronic device.
  5. 根据权利要求1所述的方法,其中,所述方法在所述根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息之后,还包括:The method according to claim 1, wherein, after the method determines the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas, further include:
    在确定所述目标对象位于所述电子设备的背面的情况下,根据所述至少两个天线接收到的所述第一信号,获得所述目标对象相对于所述电子设备的方位角和所述目标对象与所述电子设备之间的距离;If it is determined that the target object is located on the back of the electronic device, according to the first signal received by the at least two antennas, obtain the azimuth of the target object relative to the electronic device and the the distance between the target object and the electronic device;
    显示所述方位角和所述距离。Displays the azimuth and the distance.
  6. 一种定位装置,应用于电子设备,其中,所述电子设备设置有至少两个天线,所述至少两个天线设置于第一侧面,所述第一侧面为与所述电子设备的屏幕相对的侧面;所述装置包括:A positioning device applied to electronic equipment, wherein the electronic equipment is provided with at least two antennas, the at least two antennas are arranged on a first side, and the first side is opposite to the screen of the electronic equipment side; the device includes:
    接收模块,用于分别通过所述至少两个天线接收目标对象发射的第一信号;a receiving module, configured to respectively receive the first signal transmitted by the target object through the at least two antennas;
    确定模块,用于根据所述至少两个天线接收到的所述第一信号,确定所述目标对象相对于所述电子设备的方位信息;A determining module, configured to determine the orientation information of the target object relative to the electronic device according to the first signals received by the at least two antennas;
    其中,所述方位信息包括正面和背面,在所述目标对象位于所述电子设备的正面时,所述目标对象朝向所述电子设备的屏幕,在所述目标对象位于所述电子设备的背面时,所述目标对象背离所述电子设备的屏幕。Wherein, the orientation information includes front and back. When the target object is located on the front of the electronic device, the target object faces the screen of the electronic device. When the target object is located on the back of the electronic device , the target object faces away from the screen of the electronic device.
  7. 根据权利要求6所述的装置,其中,所述确定模块,包括:The device according to claim 6, wherein the determining module comprises:
    第一获取单元,用于根据所述至少两个天线接收到的所述第一信号,得到所述目标对象与所述电子设备之间的距离变化率;A first acquiring unit, configured to obtain a rate of change of distance between the target object and the electronic device according to the first signal received by the at least two antennas;
    第一确定单元,用于在所述距离变化率小于或等于第一阈值的情况下,确定所述目标对象位于所述电子设备的背面;A first determining unit, configured to determine that the target object is located at the back of the electronic device when the rate of change of the distance is less than or equal to a first threshold;
    第二确定单元,用于在所述距离变化率大于所述第一阈值的情况下,确定所述目标对象位于所述电子设备的正面。A second determining unit, configured to determine that the target object is located in front of the electronic device when the rate of change of the distance is greater than the first threshold.
  8. 根据权利要求6所述的装置,其中,所述确定模块,还包括:The device according to claim 6, wherein the determining module further comprises:
    第二获取单元,用于获取所述第一信号的第一接收信号强度,其中,所述第一接收信号强度是根据所述至少两个天线接收到的第一信号的接收信号强度共同确定的;A second acquiring unit, configured to acquire a first received signal strength of the first signal, wherein the first received signal strength is jointly determined according to the received signal strengths of the first signals received by the at least two antennas ;
    第三确定单元,用于在除去所述第一接收信号强度远小于第二接收信号强度的情况下,确定所述目标对象位于所述电子设备的正面,其中,所述第二接收信号强度与所述目标对象相距所述电子设备的距离有关;A third determining unit, configured to determine that the target object is located in front of the electronic device except that the first received signal strength is much smaller than the second received signal strength, wherein the second received signal strength is the same as The distance between the target object and the electronic device is related;
    第四确定单元,用于在所述第一接收信号强度远小于所述第二接收信号强度之外的情况下,确定所述目标对象位于所述电子设备的背面。A fourth determining unit, configured to determine that the target object is located at the back of the electronic device when the first received signal strength is much smaller than the second received signal strength.
  9. 根据权利要求8所述的装置,其中,所述确定模块,还包括:第三获取单元,用于根据所述至少两个天线接收到的所述第一信号,获得所述目标对象与所述电子设备之间的距离;第五确定单元,用于根据所述目标 对象与所述电子设备之间的距离,确定第二接收信号强度。The device according to claim 8, wherein the determining module further comprises: a third acquiring unit, configured to acquire the relationship between the target object and the Distance between electronic devices; a fifth determining unit, configured to determine a second received signal strength according to the distance between the target object and the electronic device.
  10. 根据权利要求6所述的装置,其中,还包括:获取模块,用于在确定所述目标对象位于所述电子设备的背面的情况下,根据所述至少两个天线接收到的所述第一信号,获得所述目标对象相对于所述电子设备的方位角和所述目标对象与所述电子设备之间的距离;显示模块,用于显示所述方位角和所述距离。The apparatus according to claim 6, further comprising: an acquisition module configured to, in the case of determining that the target object is located on the back of the electronic device, according to the first received information received by the at least two antennas signal, to obtain the azimuth of the target object relative to the electronic device and the distance between the target object and the electronic device; a display module, configured to display the azimuth and the distance.
  11. 一种电子设备,其中,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的定位方法的步骤。An electronic device, including a processor, a memory, and a program or instruction stored in the memory and operable on the processor, when the program or instruction is executed by the processor, the invention according to claim 1 is realized Steps of the positioning method described in any one of to 5.
  12. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的定位方法的步骤。A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the positioning method according to any one of claims 1 to 5 are realized.
  13. 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的方法。A chip, wherein the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the process described in any one of claims 1 to 5. Methods.
PCT/CN2022/112419 2021-08-20 2022-08-15 Positioning method and apparatus, and electronic device WO2023020415A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110964734.1 2021-08-20
CN202110964734.1A CN113687300B (en) 2021-08-20 2021-08-20 Positioning method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023020415A1 true WO2023020415A1 (en) 2023-02-23

Family

ID=78581206

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112419 WO2023020415A1 (en) 2021-08-20 2022-08-15 Positioning method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN113687300B (en)
WO (1) WO2023020415A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116930857A (en) * 2023-06-30 2023-10-24 东土科技(宜昌)有限公司 Label positioning method and device, storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113687300B (en) * 2021-08-20 2024-05-10 维沃移动通信有限公司 Positioning method and device and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108627799A (en) * 2018-04-28 2018-10-09 纳恩博(北京)科技有限公司 Location communication device, localization method and computer storage media
WO2020238829A1 (en) * 2019-05-30 2020-12-03 索尼公司 Electronic device and method for wireless communication, and computer readable storage medium
US20210076350A1 (en) * 2019-09-09 2021-03-11 Samsung Electronics Co., Ltd. Electronic device and method for position determination using uwb signal
CN112542701A (en) * 2020-12-16 2021-03-23 Oppo广东移动通信有限公司 Antenna device and electronic equipment
US20210092703A1 (en) * 2019-09-20 2021-03-25 Samsung Electronics Co., Ltd. ELECTRONIC DEVICE FOR DETERMINING PATH OF LINE OF SIGHT (LoS) AND METHOD FOR THE SAME
CN112637756A (en) * 2019-09-23 2021-04-09 Oppo广东移动通信有限公司 Position detection method, position detection device, electronic equipment and computer-readable storage medium
CN112788583A (en) * 2020-12-25 2021-05-11 深圳酷派技术有限公司 Equipment searching method and device, storage medium and electronic equipment
CN112929820A (en) * 2021-02-07 2021-06-08 惠州Tcl移动通信有限公司 Positioning direction detection method, positioning terminal and computer readable storage medium
CN113687300A (en) * 2021-08-20 2021-11-23 维沃移动通信有限公司 Positioning method and device and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10742475B2 (en) * 2012-12-05 2020-08-11 Origin Wireless, Inc. Method, apparatus, and system for object tracking sensing using broadcasting
TWI464407B (en) * 2012-11-30 2014-12-11 Ind Tech Res Inst Electronic device and method for sensing active state of object
KR20190075167A (en) * 2015-10-08 2019-06-28 폴테 코포레이션 Angle of arrival (aoa) positioning method and system for positional finding and tracking objects using reduced attenuation rf technology
CN112379363A (en) * 2020-11-03 2021-02-19 维沃移动通信有限公司 Measuring method, device and electronic equipment
CN112887558B (en) * 2021-01-22 2022-08-05 维沃移动通信有限公司 Focus tracking method and device and electronic equipment
CN112887552B (en) * 2021-01-22 2022-11-11 维沃移动通信有限公司 Focus tracking method and device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108627799A (en) * 2018-04-28 2018-10-09 纳恩博(北京)科技有限公司 Location communication device, localization method and computer storage media
WO2020238829A1 (en) * 2019-05-30 2020-12-03 索尼公司 Electronic device and method for wireless communication, and computer readable storage medium
US20210076350A1 (en) * 2019-09-09 2021-03-11 Samsung Electronics Co., Ltd. Electronic device and method for position determination using uwb signal
US20210092703A1 (en) * 2019-09-20 2021-03-25 Samsung Electronics Co., Ltd. ELECTRONIC DEVICE FOR DETERMINING PATH OF LINE OF SIGHT (LoS) AND METHOD FOR THE SAME
CN112637756A (en) * 2019-09-23 2021-04-09 Oppo广东移动通信有限公司 Position detection method, position detection device, electronic equipment and computer-readable storage medium
CN112542701A (en) * 2020-12-16 2021-03-23 Oppo广东移动通信有限公司 Antenna device and electronic equipment
CN112788583A (en) * 2020-12-25 2021-05-11 深圳酷派技术有限公司 Equipment searching method and device, storage medium and electronic equipment
CN112929820A (en) * 2021-02-07 2021-06-08 惠州Tcl移动通信有限公司 Positioning direction detection method, positioning terminal and computer readable storage medium
CN113687300A (en) * 2021-08-20 2021-11-23 维沃移动通信有限公司 Positioning method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116930857A (en) * 2023-06-30 2023-10-24 东土科技(宜昌)有限公司 Label positioning method and device, storage medium and electronic equipment
CN116930857B (en) * 2023-06-30 2024-03-12 东土科技(宜昌)有限公司 Label positioning method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113687300A (en) 2021-11-23
CN113687300B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
WO2023020415A1 (en) Positioning method and apparatus, and electronic device
EP2557433B1 (en) Indoor positioning with rake receivers
US8874139B2 (en) Position location system and method
US20120270564A1 (en) Methods and apparatuses for use in a mobile device to detect signaling apertures within an environment
US20120319903A1 (en) System and method for locating mobile devices
US20150038163A1 (en) Mechanism for proximity detection based on wi-fi signals
CN111970639B (en) Method, device, terminal equipment and storage medium for keeping safe distance
US20180076875A1 (en) Method and apparatus for non-linear antenna array angle of arrival detection
CN104238900B (en) A kind of page positioning method and device
US20230388781A1 (en) Privacy setting method and apparatus for uwb detection, and electronic device
WO2016187817A1 (en) Mobile terminal control method, device and system
WO2023134652A1 (en) Wireless charging method and apparatus, and electronic device
CN112929820B (en) Positioning azimuth detection method, positioning terminal and computer readable storage medium
US20230345412A1 (en) Positioning method and related device
US10869293B2 (en) Positioning cycle adjustment method and apparatus
CN105158728A (en) Search and rescue apparatus and method based on wireless direction finding and positioning
Kitasuka et al. WiPS: Location and motion sensing technique of IEEE 802.11 devices
CN108600948A (en) A kind of dykes and dams deformation monitoring and the means of communication and device
CN114063007A (en) Indoor/outdoor sounding using wireless signals
CN112379363A (en) Measuring method, device and electronic equipment
TWI411808B (en) Positioning method of multimode complementarity
CN113993071B (en) Positioning method, device, equipment and storage medium
US20220044353A1 (en) System and method for reducing jitter when providing an indication for a relative direction of another device
CN116449406B (en) Seamless switching method for GNSS positioning and indoor positioning
US20240015692A1 (en) Robust indoor positioning systems

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22857727

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE