WO2023098373A1 - Measurement method, terminal device, electronic device, and readable storage medium - Google Patents

Measurement method, terminal device, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2023098373A1
WO2023098373A1 PCT/CN2022/128976 CN2022128976W WO2023098373A1 WO 2023098373 A1 WO2023098373 A1 WO 2023098373A1 CN 2022128976 W CN2022128976 W CN 2022128976W WO 2023098373 A1 WO2023098373 A1 WO 2023098373A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
measurement
end point
uwb module
terminal device
Prior art date
Application number
PCT/CN2022/128976
Other languages
French (fr)
Chinese (zh)
Inventor
胡隽雯
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023098373A1 publication Critical patent/WO2023098373A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

Embodiments of the present application disclose a measurement method, a terminal device, an electronic device, and a readable storage medium. The method can comprise: upon detecting a measurement operation, respectively transmitting a control instruction to a first electronic device and a second electronic device, so that the first electronic device and the second electronic device respectively perform wireless communication by means of respective UWB modules, wherein the first electronic device and the second electronic device are respectively placed at a measurement start point and a measurement end point; obtaining communication data, wherein the communication data is generated by communication between the first electronic device and a terminal device, and the communication between the second electronic device and the terminal device, or the communication between the first electronic device and the second electronic device; and according to the communication data, determining a first measurement result for the measurement start point and the measurement end point.

Description

测量方法、终端设备、电子设备及可读存储介质Measuring method, terminal device, electronic device and readable storage medium
本申请要求于2021年12月02日提交、申请号为202111462565.8、发明名称为“测量方法、终端设备、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on December 02, 2021 with application number 202111462565.8 and titled "Measurement method, terminal equipment, electronic equipment, and readable storage medium", the entire contents of which are incorporated herein by reference In this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种测量方法、终端设备、电子设备及可读存储介质。The present application relates to the technical field of communications, and in particular to a measurement method, terminal equipment, electronic equipment and a readable storage medium.
背景技术Background technique
目前,基于终端设备(如手机)的测量方法通常是AR(Augmented Reality,增强现实)测量方法。实践中发现,AR测量方法大都依赖计算机视觉算法进行图像特征的识别来实现,所以测量精度比较低。At present, the measurement method based on a terminal device (such as a mobile phone) is usually an AR (Augmented Reality, augmented reality) measurement method. In practice, it is found that most AR measurement methods rely on computer vision algorithms to identify image features, so the measurement accuracy is relatively low.
发明内容Contents of the invention
本申请实施例提供了一种测量方法、终端设备、电子设备及可读存储介质。Embodiments of the present application provide a measurement method, terminal equipment, electronic equipment, and a readable storage medium.
本申请实施例第一方面提供了一种测量方法,所述方法适用于终端设备,所述终端设备与第一电子设备及第二电子设备建立通信连接,所述第一电子设备包括第一UWB模块,所述第二电子设备包括第二UWB模块,所述方法包括:The first aspect of the embodiment of the present application provides a measurement method, the method is applicable to a terminal device, the terminal device establishes a communication connection with a first electronic device and a second electronic device, and the first electronic device includes a first UWB module, the second electronic device includes a second UWB module, and the method includes:
在检测到测量操作时,向所述第一电子设备和所述第二电子设备分别发送控制指令,以使所述第一电子设备和所述第二电子设备分别通过各自的UWB模块进行无线通信;其中,所述第一电子设备与所述第二电子设备分别放置在测量起点及测量终点;When a measurement operation is detected, send control instructions to the first electronic device and the second electronic device, so that the first electronic device and the second electronic device perform wireless communication through their respective UWB modules ; Wherein, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
获取通信数据,所述通信数据是由所述第一电子设备和所述第二电子设备分别与所述终端设备通信产生的,或者所述通信数据是由所述第一电子设备与所述第二电子设备通信产生的;Acquiring communication data, the communication data is generated by the communication between the first electronic device and the second electronic device and the terminal device respectively, or the communication data is generated by the communication between the first electronic device and the second electronic device 2. Generated by electronic equipment communication;
根据所述通信数据,确定第一测量结果;其中,所述第一测量结果包括以下至少一种:所述测量起点和所述测量终点之间的距离值、所述测量起点和所述测量终点的相对角度,及过所述测量起点和所述测量终点的目标圆的参数信息。According to the communication data, determine a first measurement result; wherein, the first measurement result includes at least one of the following: a distance value between the measurement start point and the measurement end point, the measurement start point and the measurement end point and the parameter information of the target circle passing through the measurement start point and the measurement end point.
本申请实施例第二方面提供了一种终端设备,所述终端设备与第一电子设备及第二电子设备建立通信连接,所述第一电子设备包括第一UWB模块,所述第二电子设备包括第二UWB模块,所述方法包括:The second aspect of the embodiment of the present application provides a terminal device, the terminal device establishes a communication connection with a first electronic device and a second electronic device, the first electronic device includes a first UWB module, and the second electronic device Including a second UWB module, the method includes:
发送单元,用于在检测到测量操作时,向所述第一电子设备和所述第二电子设备分别发送控制指令,以使所述第一电子设备和所述第二电子设备分别通过各自的UWB模块进行无线通信;其中,所述第一电子设备与所述第二电子设备分别放置在测量起点及测量终点;a sending unit, configured to send control instructions to the first electronic device and the second electronic device respectively when a measurement operation is detected, so that the first electronic device and the second electronic device pass through their respective The UWB module performs wireless communication; wherein, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
获取单元,用于获取通信数据,所述通信数据是由所述第一电子设备和所述第二电子设备分别与所述终端设备通信产生的,或者所述通信数据是由所述第一电子设备与所述第二电子设备通信产生的;An obtaining unit, configured to obtain communication data, the communication data is generated by the first electronic device and the second electronic device respectively communicating with the terminal device, or the communication data is generated by the first electronic device generated by communication between the device and the second electronic device;
处理单元,用于根据所述通信数据,确定第一测量结果;其中,所述第一测量结果包括以下至少一种:所述测量起点和所述测量终点之间的距离值、所述测量起点和所述测量终点的相对角度,及过所述测量起点和所述测量终点的目标圆的参数信息。A processing unit, configured to determine a first measurement result according to the communication data; wherein the first measurement result includes at least one of the following: a distance value between the measurement start point and the measurement end point, the measurement start point The relative angle to the measurement end point, and the parameter information of the target circle passing through the measurement start point and the measurement end point.
本申请实施例第三方面公开了一种终端设备,包括:The third aspect of the embodiment of the present application discloses a terminal device, including:
存储有可执行程序代码的存储器;a memory storing executable program code;
以及所述存储器耦合的处理器;and a processor to which the memory is coupled;
所述处理器调用所述存储器中存储的所述可执行程序代码,所述可执行程序代码被所述处理器执行时,使得所述处理器实现第一方面公开的所述方法。The processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method disclosed in the first aspect.
本申请实施例第四方面提供了一种测量方法,所述方法适用于第一电子设备,所述第一电子设备与终端设备通信连接,所述终端设备还与第二电子设备通信连接;所述第一电子设备包括第一UWB模块,所述第二电子设备包括第二UWB模块,所述方法包括:The fourth aspect of the embodiment of the present application provides a measurement method, the method is applicable to a first electronic device, the first electronic device is connected in communication with a terminal device, and the terminal device is also connected in communication with a second electronic device; The first electronic device includes a first UWB module, the second electronic device includes a second UWB module, and the method includes:
接收所述终端设备发送的控制指令,所述第一电子设备与所述第二电子设备分别放置在测量起点及测量终点;receiving a control instruction sent by the terminal device, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
根据所述控制指令,通过所述第一UWB模块向所述第二电子设备的第二UWB模块发射第一信号,以使所述第二电子设备根据所述第一信号向所述终端设备反馈通信数据;所述通信数据用于确定第一测量结果;其中,所述第一测量结果包括以下至少一种:所述测量起点和所述测量终点之间的距离值、所述测量起点和所述测量终点的相对角度,及过所述测量起点和所述测量终点的目标圆的参数信息。According to the control instruction, the first UWB module transmits a first signal to the second UWB module of the second electronic device, so that the second electronic device feeds back to the terminal device according to the first signal Communication data; the communication data is used to determine a first measurement result; wherein, the first measurement result includes at least one of the following: the distance value between the measurement start point and the measurement end point, the measurement start point and the measurement The relative angle of the measurement end point, and the parameter information of the target circle passing through the measurement start point and the measurement end point.
本申请实施例第五方面提供了一种第一电子设备,所述第一电子设备与终端设备通信连接,所述终端设备还与第二电子设备通信连接;所述第一电子设备包括第一UWB模块,所述第二电子设备包括第二UWB模块,The fifth aspect of the embodiment of the present application provides a first electronic device, the first electronic device is communicatively connected to a terminal device, and the terminal device is also communicatively connected to a second electronic device; the first electronic device includes a first UWB module, the second electronic device includes a second UWB module,
所述第一电子设备包括:The first electronic device includes:
指令接收单元,用于接收所述终端设备发送的控制指令,所述第一电子设备与所述第二电子设备分别放置在测量起点及测量终点;an instruction receiving unit, configured to receive a control instruction sent by the terminal device, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
信号发射单元,用于根据所述控制指令,通过所述第一UWB模块向所述第二电子设备的第二UWB模块发射第一信号,以使所述第二电子设备根据所述第一信号向所述终端设备反馈通信数据;所述通信数据用于确定第一测量结果;其中,所述第一测量结果包括以下至少一种:所述测量起点和所述测量终点之间的距离值、所述测量起点和所述测量终点的相对角度,及过所述测量起点和所述测量终点的目标圆的参数信息。A signal transmitting unit, configured to transmit a first signal to the second UWB module of the second electronic device through the first UWB module according to the control instruction, so that the second electronic device transmits a first signal according to the first signal Feedback communication data to the terminal device; the communication data is used to determine a first measurement result; wherein the first measurement result includes at least one of the following: a distance value between the measurement start point and the measurement end point, The relative angle between the measurement start point and the measurement end point, and the parameter information of a target circle passing through the measurement start point and the measurement end point.
本申请实施例第六方面公开了一种第一电子设备,包括:The sixth aspect of the embodiment of the present application discloses a first electronic device, including:
存储有可执行程序代码的存储器;a memory storing executable program code;
以及所述存储器耦合的处理器;and a processor to which the memory is coupled;
所述处理器调用所述存储器中存储的所述可执行程序代码,所述可执行程序代码被所述处理器执行时,使得所述处理器实现第四方面公开的所述方法。The processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method disclosed in the fourth aspect.
本申请实施例第七方面公开一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机执行本申请实施例第一方面或第四方面中的任意一种方法的步骤。The seventh aspect of the embodiments of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the steps of any method in the first aspect or the fourth aspect of the embodiments of the present application.
本申请实施例第八方面公开一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面或第四方面中的任意一种方法的步骤。The eighth aspect of the embodiments of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is made to execute the steps of any method in the first aspect or the fourth aspect.
本申请实施例第九方面公开一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面或第四方面中的任意一种方法的步骤。The ninth aspect of the embodiments of the present application discloses an application distribution platform, the application distribution platform is used to distribute computer program products, wherein, when the computer program products are run on a computer, the computer is made to execute the first aspect or the first aspect. The steps of any one method in the four aspects.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和有益效果将从说明书、附图以及权利要求书中体现。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and beneficial effects of the present application will appear from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例和现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that are required in the description of the embodiments and prior art. Obviously, the accompanying drawings in the following description are only some implementations of the present application For example, other drawings can also be obtained from these drawings.
图1A是本申请实施例公开的一种场景示意图;Fig. 1A is a schematic diagram of a scene disclosed in the embodiment of the present application;
图1B是本申请实施例公开的另一种场景示意图;FIG. 1B is a schematic diagram of another scene disclosed in the embodiment of the present application;
图2A是本申请实施例公开的一种测量方法的流程示意图;Fig. 2A is a schematic flow chart of a measurement method disclosed in the embodiment of the present application;
图2B是本申请实施例公开的一种测量类型选择界面;FIG. 2B is a measurement type selection interface disclosed in the embodiment of the present application;
图3是本申请实施例公开的另一种测量方法的流程示意图;Fig. 3 is a schematic flow chart of another measuring method disclosed in the embodiment of the present application;
图4是本申请实施例公开的又一种测量方法的流程示意图;Fig. 4 is a schematic flow chart of another measurement method disclosed in the embodiment of the present application;
图5A是本申请实施例公开的又一种测量方法的流程示意图;Fig. 5A is a schematic flow chart of another measurement method disclosed in the embodiment of the present application;
图5B是本申请实施例公开的一种第一测量结果的输出界面;Fig. 5B is an output interface of a first measurement result disclosed in the embodiment of the present application;
图5C是本申请实施例公开的另一种第一测量结果的输出界面;Fig. 5C is an output interface of another first measurement result disclosed in the embodiment of the present application;
图5D是本申请实施例公开的又一种第一测量结果的输出界面;Fig. 5D is another output interface of the first measurement result disclosed in the embodiment of the present application;
图6是本申请实施例公开的一种终端设备的结构框图;FIG. 6 is a structural block diagram of a terminal device disclosed in an embodiment of the present application;
图7是本申请实施例公开的一种终端设备的结构框图;FIG. 7 is a structural block diagram of a terminal device disclosed in an embodiment of the present application;
图8是本申请实施例公开的一种第一电子设备的结构框图;Fig. 8 is a structural block diagram of a first electronic device disclosed in an embodiment of the present application;
图9是本申请实施例公开的一种第一电子设备的结构框图。FIG. 9 is a structural block diagram of a first electronic device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种测量方法、终端设备、电子设备及可读存储介质,可以提高测量精度。Embodiments of the present application provide a measurement method, terminal equipment, electronic equipment, and a readable storage medium, which can improve measurement accuracy.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be described below in conjunction with the drawings in the embodiment of the application. Obviously, the described embodiment is only a part of the application Examples, but not all examples. Based on the embodiments in this application, all should belong to the protection scope of this application.
可以理解的是,本申请实施例中所涉及的终端设备可以包括一般的手持有屏电子终端设备,诸如手机、智能电话、便携式终端、终端、个人数字助理(Personal Digital Assistant,PDA)、便携式多媒体播放器(Personal Media Player,PMP)装置、笔记本电脑、笔记本(Note Pad)、无线宽带(Wireless Broadband,Wibro)终端、平板电脑(Personal Computer,PC)、智能PC、销售终端(Point of Sales,POS)和车载电脑等。It can be understood that the terminal equipment involved in the embodiments of the present application may include general handheld screen electronic terminal equipment, such as mobile phones, smart phones, portable terminals, terminals, personal digital assistants (Personal Digital Assistant, PDA), portable multimedia Player (Personal Media Player, PMP) device, notebook computer, notebook (Note Pad), wireless broadband (Wireless Broadband, Wibro) terminal, tablet computer (Personal Computer, PC), smart PC, sales terminal (Point of Sales, POS) ) and on-board computer, etc.
终端设备也可以包括可穿戴设备。可穿戴设备可以直接穿戴在用户身上,或是整合到用户的衣服或配件的一种便携式电子设备。可穿戴设备不仅仅是一种硬件设备,更可以通过软件支持以及数据交互、云服务器交互来实现强大的智能功能,比如:计算功能、定位功能、报警功能,同时还可以连接手机及各类终端。可穿戴设备可以包括但不限于以手腕为支撑的watch类(比如手表、手腕等产品),以脚为支撑的shoes类(比如鞋、袜子或者其他腿上佩戴产品),以头部为支撑的Glass类(比如眼镜、头盔、头带等)以及智能服装,书包、拐杖、配饰等各类非主流产品形态。Terminal devices may also include wearable devices. A wearable device is a portable electronic device that can be worn directly on the user, or integrated into the user's clothing or accessories. Wearable devices are not only a hardware device, but also can realize powerful intelligent functions through software support, data interaction, and cloud server interaction, such as: calculation function, positioning function, alarm function, and can also be connected to mobile phones and various terminals . Wearable devices may include, but are not limited to, wrist-supported watches (such as watches, wrists, etc.), feet-supported shoes (such as shoes, socks, or other leg-wearing products), head-supported Glass (such as glasses, helmets, headbands, etc.) and smart clothing, school bags, crutches, accessories and other non-mainstream product forms.
本申请实施例提及的电子设备(包括第一电子设备及第二电子设备)与终端设备通信连接,其中,电子设备与终端设备通信连接的方式可以包括但不限于以下方式中的至少一种:蓝牙连接、WIFI(Wireless-Fidelity,无线保真)连接及UWB(Ultra Wideband,无载波通信)连接等。电子设备包括UWB模块,也即第一电子设备包括第一UWB模块,第二电子设备包括第二UWB模块。电子设备可以是手持有屏电子终端设备、可穿戴设备或耳机等,本申请实施例不做限定。可以理解的是,若电子设备为耳机,则第一电子设备可以为第一耳机,第二电子设备可以为第二耳机,且第一耳机与第二耳机属于同一耳机设备。The electronic devices (including the first electronic device and the second electronic device) mentioned in the embodiment of the present application are connected in communication with the terminal device, wherein the communication connection method between the electronic device and the terminal device may include but not limited to at least one of the following methods : Bluetooth connection, WIFI (Wireless-Fidelity, wireless fidelity) connection and UWB (Ultra Wideband, carrier-free communication) connection, etc. The electronic equipment includes a UWB module, that is, the first electronic equipment includes a first UWB module, and the second electronic equipment includes a second UWB module. The electronic device may be a handheld electronic terminal device with a screen, a wearable device, an earphone, etc., which is not limited in this embodiment of the present application. It can be understood that, if the electronic device is an earphone, the first electronic device may be the first earphone, the second electronic device may be the second earphone, and the first earphone and the second earphone belong to the same earphone device.
下面以实施例的方式,对本申请技术方案做进一步的说明。In the following, the technical solution of the present application will be further described in the form of an embodiment.
请参阅图1A和图1B,图1A和1B均是本申请实施例公开的场景示意图,图1A和图1B均包括手机10、第一耳机20以及第二耳机30。Please refer to FIG. 1A and FIG. 1B . Both FIG. 1A and FIG. 1B are schematic diagrams of scenes disclosed in the embodiments of the present application. Both FIG. 1A and FIG. 1B include a mobile phone 10 , a first earphone 20 and a second earphone 30 .
请参阅图2A,图2A是本申请实施例公开的一种测量方法的流程示意图。其中,如图 2A所示的测量方法可以适用于图1A和/或图1B所示的场景。如图2A所示的流程示意图可以包括以下步骤:Please refer to FIG. 2A . FIG. 2A is a schematic flowchart of a measuring method disclosed in an embodiment of the present application. Wherein, the measurement method shown in FIG. 2A may be applicable to the scenarios shown in FIG. 1A and/or FIG. 1B. The schematic flow chart shown in Figure 2A may include the following steps:
201、在检测到测量操作时,终端设备向第一电子设备和第二电子设备分别发送控制指令,以使第一电子设备和第二电子设备分别通过各自的UWB模块进行无线通信。201. When a measurement operation is detected, the terminal device sends control instructions to the first electronic device and the second electronic device respectively, so that the first electronic device and the second electronic device perform wireless communication through respective UWB modules.
其中,第一电子设备与第二电子设备分别放置在测量起点及测量终点。测量起点指的是待测对象的起始点,测量终点指的是待测对象的终止点。在一些实施例中,测量操作可以包括但不限于以下任一种:指示启动测量的语音操作、手势操作及触控操作等。Wherein, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point. The measurement starting point refers to the starting point of the object to be measured, and the measurement end point refers to the ending point of the object to be measured. In some embodiments, the measurement operation may include, but is not limited to, any of the following: a voice operation indicating to start the measurement, a gesture operation, a touch operation, and the like.
在一些实施例中,在检测到测量操作时还可以在终端设备的显示屏幕上显示测量类型选择界面,该测量类型选择界面可以包括多个选择标签,不同选择标签用于触发不同类型的测量结果的测量。In some embodiments, when a measurement operation is detected, a measurement type selection interface may also be displayed on the display screen of the terminal device. The measurement type selection interface may include multiple selection tags, and different selection tags are used to trigger different types of measurement results. Measurement.
在一些实施例中,上述多个选择标签可以包括用于触发测量测量起点和测量终点之间的距离值的标签、用于触发测量测量起点和测量终点的相对角度的标签以及用于触发测量过测量起点和测量终点的目标圆的参数信息的标签。In some embodiments, the plurality of selection tags may include a tag for triggering the measurement of the distance value between the measurement start point and the measurement end point, a tag for triggering the measurement of the relative angle between the measurement start point and the measurement end point, and a tag for triggering the measurement process. The label of the parameter information of the target circle of the measurement start point and the measurement end point.
示例性的,请参阅图2B,图2B是本申请实施例公开的一种测量类型选择界面,图2B所示的测量类型选择界面包括3个选择标签,各个选择标签对应的文本分别是“距离值测量”、“角度测量”以及“圆测量”。For example, please refer to FIG. 2B. FIG. 2B is a measurement type selection interface disclosed in the embodiment of the present application. The measurement type selection interface shown in FIG. 2B includes 3 selection labels, and the texts corresponding to each selection label are "distance Value measurement", "Angle measurement" and "Circle measurement".
在一些实施例中,终端设备向第一电子设备和第二电子设备分别发送控制指令,可以包括但不限于以下方式:In some embodiments, the terminal device sends control instructions to the first electronic device and the second electronic device respectively, which may include but not limited to the following methods:
方式1、终端设备通过该终端设备的蓝牙模块,向第一电子设备和第二电子设备分别发送控制指令;可以理解的是,第一电子设备和第二电子设备均包括蓝牙模块。Method 1. The terminal device sends control commands to the first electronic device and the second electronic device respectively through the Bluetooth module of the terminal device; it can be understood that both the first electronic device and the second electronic device include a Bluetooth module.
方式2、终端设备通过该终端设备的WIFI模块,向第一电子设备和第二电子设备分别发送控制指令;可以理解的是,第一电子设备和第二电子设备均包括WIFI模块。Method 2. The terminal device sends control commands to the first electronic device and the second electronic device respectively through the WIFI module of the terminal device; it can be understood that both the first electronic device and the second electronic device include a WIFI module.
方式3、终端设备通过该终端设备的UWB模块,向第一电子设备和第二电子设备分别发送控制指令;可以理解的是,第一电子设备和第二电子设备均包括UWB模块。Way 3: The terminal device sends control instructions to the first electronic device and the second electronic device respectively through the UWB module of the terminal device; it can be understood that both the first electronic device and the second electronic device include UWB modules.
其中,第一电子设备在接收到终端设备发送的控制指令时,可以通过第一电子设备的第一UWB模块发射或接收无线信号,第二电子设备在接收到终端设备发送的控制指令时,可以通过该第二电子设备的第二UWB模块发射或接收无线信号。Wherein, when the first electronic device receives the control command sent by the terminal device, it can transmit or receive a wireless signal through the first UWB module of the first electronic device, and when the second electronic device receives the control command sent by the terminal device, it can The wireless signal is transmitted or received through the second UWB module of the second electronic device.
202、终端设备获取通信数据,该通信数据是由第一电子设备和第二电子设备分别与终端设备通信产生的,或者是由第一电子设备与第二电子设备通信产生的。202. The terminal device acquires communication data, where the communication data is generated by communications between the first electronic device and the second electronic device and the terminal device, or by communications between the first electronic device and the second electronic device.
在一些实施例中,若通信数据是由第一电子设备和第二电子设备分别与终端设备通信产生的,则第一电子设备和第二电子设备在接收到控制指令后,可根据该控制指令,通过各自的UWB模块发射无线信号,终端设备通过该终端设备的第三UWB模块,接收第一电子设备通过第一UWB模块及第二电子设备通过第二UWB模块分别发送的无线信号,并根据所接收到的无线信号得到通信数据。可以理解的是,通信数据可以包括第三UWB模块与第一UWB模块之间的飞行时长,以及第三UWB模块与第二UWB模块之间的飞行时长。In some embodiments, if the communication data is generated by the communication between the first electronic device and the second electronic device and the terminal device respectively, after receiving the control instruction, the first electronic device and the second electronic device can, according to the control instruction, , transmit wireless signals through their respective UWB modules, and the terminal device receives the wireless signals respectively sent by the first electronic device through the first UWB module and the second electronic device through the second UWB module through the third UWB module of the terminal device, and according to The received wireless signal yields communication data. It can be understood that the communication data may include the flight duration between the third UWB module and the first UWB module, and the flight duration between the third UWB module and the second UWB module.
在一些实施例中,若通信数据是由第一电子设备与第二电子设备通信产生的,则终端设备获取通信数据,可以包括以下情况:In some embodiments, if the communication data is generated by the communication between the first electronic device and the second electronic device, the terminal device obtains the communication data, which may include the following situations:
第一种情况:第一电子设备在接收到控制指令时,通过第一电子设备的第一UWB模块发射无线信号,第二电子设备在接收到控制指令时,通过第二电子设备的第二UWB模块接收该无线信号,并根据所接收到的无线信号,得到第一UWB模块与第二UWB模块之间的飞行时长,以及向终端设备发送该飞行时长。The first case: when the first electronic device receives the control instruction, it transmits a wireless signal through the first UWB module of the first electronic device, and when the second electronic device receives the control instruction, it transmits a wireless signal through the second UWB module of the second electronic device. The module receives the wireless signal, obtains the flight duration between the first UWB module and the second UWB module according to the received wireless signal, and sends the flight duration to the terminal device.
第二种情况:第二电子设备在接收到控制指令时,通过第二电子设备的第二UWB模块发射无线信号,第一电子设备在接收到控制指令时,通过第一电子设备的第一UWB模 块接收无线信号,并根据所接收到的无线信号,得到第一UWB模块与第二UWB模块之间的飞行时长,以及向终端设备发送该飞行时长。The second case: when the second electronic device receives the control instruction, it transmits a wireless signal through the second UWB module of the second electronic device; when the first electronic device receives the control instruction, it transmits a wireless signal through the first UWB module of the first electronic The module receives the wireless signal, obtains the flight duration between the first UWB module and the second UWB module according to the received wireless signal, and sends the flight duration to the terminal device.
可以理解的是,终端设备获取的通信数据包括第一UWB模块与第二UWB模块之间的飞行时长It can be understood that the communication data acquired by the terminal device includes the flight time between the first UWB module and the second UWB module
203、终端设备根据通信数据,确定第一测量结果。203. The terminal device determines a first measurement result according to the communication data.
其中,第一测量结果包括以下至少一种:测量起点和测量终点之间的距离值、测量起点和测量终点的相对角度,及过测量起点和测量终点的目标圆的参数信息。Wherein, the first measurement result includes at least one of the following: the distance value between the measurement start point and the measurement end point, the relative angle between the measurement start point and the measurement end point, and the parameter information of the target circle passing through the measurement start point and the measurement end point.
在一些实施例中,根据通信数据,确定第一测量结果可以包括但不限于以下方式:In some embodiments, according to the communication data, determining the first measurement result may include but not limited to the following manners:
方式1、根据第三UWB模块与第一UWB模块之间的飞行时长,及第三UWB模块与第二UWB模块之间的飞行时长,确定第一测量结果;Mode 1. Determine the first measurement result according to the flight duration between the third UWB module and the first UWB module, and the flight duration between the third UWB module and the second UWB module;
方式2、根据第一UWB模块与第二UWB模块之间的飞行时长,确定第一测量结果。Mode 2. Determine the first measurement result according to the flight time between the first UWB module and the second UWB module.
其中,目标圆的参数信息可以包括目标圆的周长和/或面积等。Wherein, the parameter information of the target circle may include the circumference and/or area of the target circle.
通过实施上述方法,在用户需要进行测量时,只需要将第一电子设备与第二电子设备分别放置在测量起点及测量终点,即可通过无线通信测距的方式准确得到测量结果,提高测量精度,且操作简便。By implementing the above method, when the user needs to measure, the user only needs to place the first electronic device and the second electronic device at the measurement start point and the measurement end point respectively, and the measurement result can be accurately obtained through wireless communication distance measurement, and the measurement accuracy can be improved. , and easy to operate.
请参阅图3,图3是本申请实施例公开的另一种测量方法的流程示意图。其中,图3所示的流程示意图可适用于图1A所示的场景示意图,图3所示的测量方法,可以包括以下步骤:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of another measurement method disclosed in the embodiment of the present application. Wherein, the flow diagram shown in Figure 3 is applicable to the scene diagram shown in Figure 1A, and the measurement method shown in Figure 3 may include the following steps:
301、终端设备向第一电子设备发送第一控制指令。301. The terminal device sends a first control instruction to a first electronic device.
302、第一电子设备在接收到第一控制指令时,通过第一UWB模块发射第一信号。302. When receiving a first control instruction, the first electronic device transmits a first signal through the first UWB module.
在一些实施例中,第一电子设备可以与终端设备预先建立蓝牙连接,终端设备可以通过该终端设备的蓝牙模块,向第一电子设备发送携带有第一控制指令的第一数据报文。第一电子设备可以通过该第一电子设备的蓝牙模块接收该第一数据报文,并对该第一数据报文进行解析,以从该第一数据报文中提取出第一控制指令,并响应该第一控制指令,以通过第一UWB模块发射第一信号。In some embodiments, the first electronic device may pre-establish a Bluetooth connection with the terminal device, and the terminal device may send the first data packet carrying the first control instruction to the first electronic device through the Bluetooth module of the terminal device. The first electronic device may receive the first data packet through the Bluetooth module of the first electronic device, and analyze the first data packet to extract the first control instruction from the first data packet, and Respond to the first control instruction to transmit a first signal through the first UWB module.
303、终端设备向第二电子设备发送第二控制指令。303. The terminal device sends a second control instruction to the second electronic device.
304、第二电子设备在接收到第二控制指令时,通过第二UWB模块接收第一信号,并根据第一信号,得到第二UWB模块和第一UWB模块之间的第一飞行时长。304. When receiving the second control instruction, the second electronic device receives the first signal through the second UWB module, and obtains the first flight duration between the second UWB module and the first UWB module according to the first signal.
同理,第二电子设备可以与终端设备预先建立蓝牙连接,终端设备可以通过该终端设备的蓝牙模块,向第二电子设备发送携带有第二控制指令的第二数据报文。第二电子设备可以通过该第二电子设备的蓝牙模块接收该第二数据报文,并对该第二数据报文进行解析,以从该第二数据报文中提取出第二控制指令,并响应该第二控制指令,以通过第二UWB模块接收第一电子设备发射的第一信号。Similarly, the second electronic device can pre-establish a Bluetooth connection with the terminal device, and the terminal device can send the second data message carrying the second control instruction to the second electronic device through the Bluetooth module of the terminal device. The second electronic device may receive the second data message through the bluetooth module of the second electronic device, and analyze the second data message to extract the second control instruction from the second data message, and In response to the second control instruction, the first signal transmitted by the first electronic device is received through the second UWB module.
305、第二电子设备向终端设备发送第一飞行时长。305. The second electronic device sends the first flight duration to the terminal device.
在一些实施例中,第二电子设备可以通过该第二电子设备的蓝牙模块,向终端设备发送第一飞行时长。需要说明的是,第一飞行时长的发送方式,与第一控制指令及第二控制指令的发送方式相同,本申请实施例不再赘述。In some embodiments, the second electronic device may send the first flight duration to the terminal device through the Bluetooth module of the second electronic device. It should be noted that the sending method of the first flight duration is the same as the sending method of the first control command and the second control command, and will not be repeated in this embodiment of the present application.
306、终端设备在接收到第一飞行时长时,根据该第一飞行时长,确定第一测量结果。306. When receiving the first flight duration, the terminal device determines a first measurement result according to the first flight duration.
其中,第一飞行时长表征的是从第一UWB模块从发射第一信号,到接收到第二UWB模块针对该第一信号的返回信号这一过程中所需的时间。Wherein, the first flight duration represents the time required in the process from the first UWB module transmitting the first signal to receiving the second UWB module's return signal for the first signal.
在第一测量结果包括测量起点和测量终点之间的距离值的情况下,终端设备根据第一飞行时长,确定第一测量结果,可以包括:终端设备获取第一飞行时长的一半,并利用该第一飞行时长的一半乘以信号传播速度,以得到测量起点和测量终点之间的距离值。In the case that the first measurement result includes a distance value between the measurement start point and the measurement end point, the terminal device determining the first measurement result according to the first flight duration may include: the terminal device acquires half of the first flight duration, and uses the Half of the first flight duration is multiplied by the signal propagation speed to obtain the distance value between the measurement start point and the measurement end point.
在第一测量结果包括过测量起点和测量终点的目标圆的参数信息的情况下,终端设备根据第一飞行时长,确定第一测量结果,可以包括:终端设备根据第一飞行时长,得到测量起点和测量终点之间的距离值;将该距离值作为过测量起点和测量终点的目标圆的直径;根据目标圆的直径,得到目标圆的参数信息。In the case where the first measurement result includes parameter information of a target circle passing through the measurement start point and the measurement end point, the terminal device determining the first measurement result according to the first flight duration may include: the terminal device obtains the measurement start point according to the first flight duration and the distance value between the measurement end point; the distance value is used as the diameter of the target circle passing the measurement start point and the measurement end point; according to the diameter of the target circle, the parameter information of the target circle is obtained.
其中,测量起点和测量终点之间的距离值的获取方式参照上述描述,此处不再赘述。根据目标圆的直径,得到目标圆的参数信息,可以包括:根据目标圆的直径,得到目标圆的半径,并根据该半径及第一关系,得到目标圆的参数信息。其中,该第一关系可以包括圆周公式和/或面积公式。Wherein, the manner of obtaining the distance value between the measurement start point and the measurement end point refers to the above description, which will not be repeated here. Obtaining the parameter information of the target circle according to the diameter of the target circle may include: obtaining the radius of the target circle according to the diameter of the target circle, and obtaining the parameter information of the target circle according to the radius and the first relationship. Wherein, the first relationship may include a circle formula and/or an area formula.
其中,在第一测量结果包括测量起点和测量终点之间的距离值,和/或过测量起点和测量终点的目标圆的参数信息时,第一UWB模块和第二UWB模块均可包括一根用于接收/或发射无线信号的天线。Wherein, when the first measurement result includes the distance value between the measurement start point and the measurement end point, and/or the parameter information of the target circle passing through the measurement start point and the measurement end point, both the first UWB module and the second UWB module can include a An antenna for receiving and/or transmitting wireless signals.
在第一测量结果包括测量起点和测量终点的相对角度的情况下,第二UWB模块包括第一天线阵列,第一飞行时长包括第一天线阵列中每根天线与第一UWB模块之间的飞行时长。In the case where the first measurement result includes the relative angle of the measurement start point and the measurement end point, the second UWB module includes the first antenna array, and the first flight duration includes the flight between each antenna in the first antenna array and the first UWB module duration.
进一步的,终端设备根据第一飞行时长,确定第一测量结果,可以包括:Further, the terminal device determines the first measurement result according to the first flight duration, which may include:
根据第一飞行时长中的第一天线及第二天线各自对应的飞行时长,得到第一天线阵列的第一天线与第二天线之间的第一目标相位差,并根据第一目标相位差,得到测量起点和测量终点的相对角度,其中,第一天线与第二天线为第一天线阵列的任意两根天线。可以理解的是,第一天线阵列可以包括至少两根天线。According to the respective flight durations of the first antenna and the second antenna in the first flight duration, the first target phase difference between the first antenna and the second antenna of the first antenna array is obtained, and according to the first target phase difference, A relative angle between the measurement start point and the measurement end point is obtained, wherein the first antenna and the second antenna are any two antennas of the first antenna array. It can be understood that the first antenna array may include at least two antennas.
其中,第一目标相位差由第一天线对应的飞行时长,减去第二天线对应的飞行时长得到。需要说明的是,第一目标相位差大于0,进一步的,根据第一目标相位差,得到测量起点和测量终点的相对角度可以包括:根据第一目标相位差,得到第一距离差值,该第一距离差值表征的是第一天线与第一UWB模块之间距离值,与第二天线与第一UWB模块之间距离值的差值;根据第一距离差值、第一间隔距离值及预设的角度计算公式,得到测量起点和测量终点的相对角度,第一间隔距离值指示的是第一天线阵列的第一天线和第二天线之间的距离。其中,第一距离差值可以由第一目标相位差乘以信号传播速度得到。Wherein, the first target phase difference is obtained by subtracting the flight duration corresponding to the second antenna from the flight duration corresponding to the first antenna. It should be noted that the first target phase difference is greater than 0. Further, obtaining the relative angle between the measurement start point and the measurement end point according to the first target phase difference may include: obtaining the first distance difference according to the first target phase difference, the The first distance difference characterizes the difference between the distance value between the first antenna and the first UWB module, and the distance value between the second antenna and the first UWB module; according to the first distance difference value, the first separation distance value and a preset angle calculation formula to obtain the relative angle between the measurement start point and the measurement end point, and the first distance value indicates the distance between the first antenna and the second antenna of the first antenna array. Wherein, the first distance difference may be obtained by multiplying the first target phase difference by the signal propagation speed.
在本申请实施例中,角度计算公式可以表示为:θ=arccos(d1/d2),其中,d1表示第一距离差值,d2表示第一间隔距离值,θ表示测量起点和测量终点的相对角度。In the embodiment of the present application, the angle calculation formula can be expressed as: θ=arccos(d1/d2), wherein, d1 represents the first distance difference, d2 represents the first interval distance value, and θ represents the relative distance between the measurement start point and the measurement end point. angle.
通过实施上述方法,第二电子设备首先接收第一电子设备发射的第一信号,并根据该第一信号,得到第一电子设备和第二电子设备的第一飞行时长,然后,将该第一飞行时长向终端设备发送,以使终端设备根据第一飞行时长,确定第一测量结果。终端设备所获取的第一飞行时长是由第二电子设备直接发送的,可见,在这种测量方式下,终端设备无需参与UWB信号的解析工作,极大降低了终端设备的设备功耗。By implementing the above method, the second electronic device first receives the first signal transmitted by the first electronic device, and according to the first signal, obtains the first flight duration of the first electronic device and the second electronic device, and then, the first electronic device The flight duration is sent to the terminal device, so that the terminal device determines the first measurement result according to the first flight duration. The first flight duration obtained by the terminal device is directly sent by the second electronic device. It can be seen that in this measurement mode, the terminal device does not need to participate in the analysis of UWB signals, which greatly reduces the power consumption of the terminal device.
请参阅图4,图4是本申请实施例公开的又一种测量方法的流程示意图。图4所示的流程示意图可适用于图1B所示的场景示意图,如图4所示的测量方法,可以包括以下步骤:Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of another measurement method disclosed in the embodiment of the present application. The schematic flow diagram shown in Figure 4 is applicable to the schematic diagram of the scene shown in Figure 1B, and the measurement method shown in Figure 4 may include the following steps:
401、终端设备向第一电子设备发送第三控制指令。401. The terminal device sends a third control instruction to the first electronic device.
402、第一电子设备在接收到第三控制指令时,通过第一UWB模块发射第一信号。402. When receiving a third control instruction, the first electronic device transmits a first signal through the first UWB module.
403、终端设备向第二电子设备发送第三控制指令。403. The terminal device sends a third control instruction to the second electronic device.
404、第二电子设备在接收到第三控制指令时,通过第二UWB模块发射第二信号。404. The second electronic device transmits a second signal through the second UWB module when receiving the third control instruction.
其中,在本申请实施例中,关于终端设备发送第一控制指令,第一电子设备和第二电子设备分别接收第一控制指令的具体实现方式,请参照图3所示的实施例中的描述,此处不再赘述。Among them, in the embodiment of the present application, please refer to the description in the embodiment shown in FIG. , which will not be repeated here.
405、终端设备通过第三UWB模块接收第一信号,并根据该第一信号得到第三UWB模块和第一UWB模块之间的第二飞行时长。405. The terminal device receives the first signal through the third UWB module, and obtains a second flight duration between the third UWB module and the first UWB module according to the first signal.
其中,第三UWB模块可包括第二天线阵列,第二天线阵列包括至少两根天线。第二飞行时长包括第二天线阵列中每根天线与第一UWB模块之间的飞行时长。Wherein, the third UWB module may include a second antenna array, and the second antenna array includes at least two antennas. The second flight duration includes a flight duration between each antenna in the second antenna array and the first UWB module.
406、终端设备通过第三UWB模块接收第二信号,并根据该第二信号得到第三UWB模块和第二UWB模块之间的第三飞行时长。406. The terminal device receives the second signal through the third UWB module, and obtains a third flight duration between the third UWB module and the second UWB module according to the second signal.
其中,第三飞行时长包括第二天线阵列中每根天线与第二UWB模块之间的飞行时长。Wherein, the third flight duration includes the flight duration between each antenna in the second antenna array and the second UWB module.
407、终端设备根据第二飞行时长和第三飞行时长,确定第一测量结果。407. The terminal device determines the first measurement result according to the second flight duration and the third flight duration.
在一些实施例中,终端设备根据第二飞行时长和第三飞行时长,确定第一测量结果,可以包括:终端设备根据第二飞行时长中第三天线及第四天线各对应的飞行时长,得到第三天线和第四天线之间的第二目标相位差,并根据第二目标相位差,得到终端设备与第一电子设备的第一相对位置信息;第三天线与第四天线为第二天线阵列的任意两根天线;根据第三飞行时长中第三天线及第四天线各对应的飞行时长,得到第三天线和第四天线之间的第三目标相位差,并根据第三目标相位差,得到终端设备与第二电子设备的第二相对位置信息;根据第一相对位置信息和第二相对位置信息,得到第一测量结果。In some embodiments, the terminal device determining the first measurement result according to the second flight duration and the third flight duration may include: the terminal device obtains according to the flight duration corresponding to the third antenna and the fourth antenna in the second flight duration The second target phase difference between the third antenna and the fourth antenna, and according to the second target phase difference, the first relative position information between the terminal device and the first electronic device is obtained; the third antenna and the fourth antenna are the second antenna Any two antennas of the array; according to the corresponding flight durations of the third antenna and the fourth antenna in the third flight duration, the third target phase difference between the third antenna and the fourth antenna is obtained, and according to the third target phase difference , to obtain second relative position information between the terminal device and the second electronic device; and to obtain a first measurement result according to the first relative position information and the second relative position information.
其中,第二目标相位差可以由第三天线对应的飞行时长,减去第四天线对应的飞行时长得到。第三目标相位差同理,此处不再赘述。需要说明的是,第二目标相位差和第三目标相位差均大于0。Wherein, the second target phase difference can be obtained by subtracting the flight duration corresponding to the fourth antenna from the flight duration corresponding to the third antenna. The third target phase difference is the same, and will not be repeated here. It should be noted that both the second target phase difference and the third target phase difference are greater than zero.
进一步的,第一相对位置信息可以包括终端设备与第一电子设备的第一距离值和第一相对角度,第二相对位置信息可以包括终端设备与第二电子设备的第二距离值和第二相对角度。Further, the first relative position information may include a first distance value and a first relative angle between the terminal device and the first electronic device, and the second relative position information may include a second distance value and a second relative angle between the terminal device and the second electronic device. relative angle.
进一步的,终端设备根据第二目标相位差,得到终端设备与第一电子设备的第一相对位置信息,可以包括:终端设备根据第二目标相位差,得到终端设备与第一电子设备的第一相对角度,并根据第三天线对应的飞行时长,和/或第四天线对应的飞行时长,得到终端设备与第一电子设备的第一距离值。Further, the terminal device obtaining the first relative position information between the terminal device and the first electronic device according to the second target phase difference may include: the terminal device obtaining the first relative position information between the terminal device and the first electronic device according to the second target phase difference. Relative angle, and according to the flight duration corresponding to the third antenna, and/or the flight duration corresponding to the fourth antenna, the first distance value between the terminal device and the first electronic device is obtained.
在一些实施例中,终端设备根据第二目标相位差,得到终端设备与第一电子设备的第一相对角度,可以包括:终端设备根据第二目标相位差,得到第二距离差值,该第二距离差值表征的是,第三天线与第一UWB模块之间距离值,和第四天线与第一UWB模块之间距离值的差值;根据第二距离差值、第二间隔距离值及预设的角度计算公式,得到终端设备与第一电子设备的第一相对角度,第二间隔距离值指示的是第三天线和第四天线之间的距离。可以理解的是,在预设的角度计算公式θ=arccos(d1/d2)中,θ=表示第一相对角度,d1表示第二距离差值,d2表示第二间隔距离值。其中,第二距离差值可以由第二目标相位差乘以信号传播速度得到。In some embodiments, the terminal device obtaining the first relative angle between the terminal device and the first electronic device according to the second target phase difference may include: the terminal device obtaining the second distance difference according to the second target phase difference, the first The second distance difference represents the difference between the distance value between the third antenna and the first UWB module, and the distance value between the fourth antenna and the first UWB module; according to the second distance difference, the second separation distance value and a preset angle calculation formula to obtain a first relative angle between the terminal device and the first electronic device, and the second distance value indicates the distance between the third antenna and the fourth antenna. It can be understood that, in the preset angle calculation formula θ=arccos(d1/d2), θ= represents the first relative angle, d1 represents the second distance difference, and d2 represents the second separation distance. Wherein, the second distance difference may be obtained by multiplying the second target phase difference by the signal propagation speed.
在一些实施例中,终端设备根据第三天线对应的飞行时长,和/或第四天线对应的飞行时长,得到终端设备与第一电子设备的第一距离值,可以包括但不限于以下方式:In some embodiments, the terminal device obtains the first distance value between the terminal device and the first electronic device according to the flight duration corresponding to the third antenna and/or the flight duration corresponding to the fourth antenna, which may include but not limited to the following methods:
方式1、终端设备利用第三天线对应的飞行时长的一半,乘以信号传播速度,得到第三天线与第一UWB模块之间的距离值,将该距离值作为终端设备与第一电子设备的第一距离值;Method 1. The terminal device uses half of the flight time corresponding to the third antenna, multiplied by the signal propagation speed, to obtain the distance value between the third antenna and the first UWB module, and uses the distance value as the distance between the terminal device and the first electronic device. first distance value;
方式2、终端设备利用第四天线对应的飞行时长的一半,乘以信号传播速度,得到第四天线与第一UWB模块之间的距离值,将该距离值作为终端设备与第一电子设备的第一距离值;Method 2. The terminal device uses half of the flight time corresponding to the fourth antenna to multiply the signal propagation speed to obtain the distance value between the fourth antenna and the first UWB module, and use the distance value as the distance between the terminal device and the first electronic device. first distance value;
方式3、终端设备利用第三天线对应的飞行时长的一半,乘以信号传播速度,得到第三天线与第一UWB模块之间的距离值;利用第四天线对应的飞行时长的一半,乘以信号 传播速度,得到第四天线与第一UWB模块之间的距离值;对第三天线与第一UWB模块之间的距离值,及第四天线与第一UWB模块之间的距离值做平均,以得到终端设备与第一电子设备的第一距离值。Method 3. The terminal device uses half of the flight time corresponding to the third antenna, multiplied by the signal propagation speed, to obtain the distance value between the third antenna and the first UWB module; uses half of the flight time corresponding to the fourth antenna, multiplies by Signal propagation speed, get the distance value between the fourth antenna and the first UWB module; average the distance value between the third antenna and the first UWB module, and the distance value between the fourth antenna and the first UWB module , to obtain the first distance value between the terminal device and the first electronic device.
其中,第二相对角度和第二距离值的获取方式参见第一相对角度及第一距离值的获取方式,此处不再赘述。第一UWB模块和第二UWB模块可以仅包括一根天线。Wherein, for the manner of obtaining the second relative angle and the second distance value, refer to the manner of obtaining the first relative angle and the first distance value, which will not be repeated here. The first UWB module and the second UWB module may include only one antenna.
在一些实施例中,终端设备根据第一相对位置信息和第二相对位置信息,得到第一测量结果,可以包括:以终端设备为原点,根据第一相对位置信息确定第一坐标,并根据第二相对位置信息,确定第二坐标,以及根据第一坐标和第二坐标,确定第一测量结果。In some embodiments, the terminal device obtaining the first measurement result according to the first relative position information and the second relative position information may include: taking the terminal device as the origin, determining the first coordinate according to the first relative position information, and determining the first coordinate according to the second relative position information The second coordinate is determined based on the relative position information, and the first measurement result is determined according to the first coordinate and the second coordinate.
在一些实施例中,根据第一坐标和第二坐标,确定测量起点和测量终点之间的距离值,可以包括:获取第一坐标和第二坐标的横坐标差值,并获取第一坐标和第二坐标的纵坐标差值,以及利用横坐标差值的平方加上纵坐标差值的平方,得到第一计算值,对第一计算值开根号,得到测量起点和测量终点之间的距离值。In some embodiments, according to the first coordinate and the second coordinate, determining the distance value between the measurement start point and the measurement end point may include: obtaining the abscissa difference between the first coordinate and the second coordinate, and obtaining the first coordinate and The difference in ordinate of the second coordinate, and the square of the difference in abscissa plus the square of the difference in ordinate to obtain the first calculated value, and the square root of the first calculated value to obtain the distance between the measurement start point and the measurement end point distance value.
需要说明的是,过测量起点和测量终点的目标圆的参数信息的获取是在测量起点和测量终点之间的距离值的基础上计算的,已知测量起点和测量终点之间的距离值之后,获取目标圆的参数信息的方式参见图3所示实施例中的描述,此处不再赘述。It should be noted that the acquisition of the parameter information of the target circle passing the measurement start point and the measurement end point is calculated on the basis of the distance value between the measurement start point and the measurement end point, after the distance value between the measurement start point and the measurement end point is known For the manner of acquiring the parameter information of the target circle, refer to the description in the embodiment shown in FIG. 3 , and details will not be repeated here.
在一些实施例中,根据第一坐标和第二坐标,确定测量起点和测量终点之间的相对角度,可以包括:获取第一坐标和第二坐标的横坐标差值的绝对值,并获取第一坐标和第二坐标的纵坐标差值的绝对值,以及利用纵坐标差值的绝对值除以横坐标差值的绝对值,得到第二计算值,以及对该第二计算值进行反正切函数求解,得到测量起点和测量终点之间的相对角度。In some embodiments, determining the relative angle between the measurement start point and the measurement end point according to the first coordinate and the second coordinate may include: obtaining the absolute value of the abscissa difference between the first coordinate and the second coordinate, and obtaining the first The absolute value of the ordinate difference between the first coordinate and the second coordinate, and dividing the absolute value of the ordinate difference by the absolute value of the abscissa difference to obtain a second calculated value, and performing arctangent on the second calculated value The function is solved to obtain the relative angle between the measurement start point and the measurement end point.
通过实施该方法,终端设备根据第一电子设备发射的第一信号及第二电子设备发射的第二信号,分别得到第二飞行时长和第三飞行时长,进而根据第二飞行时长和第三飞行时长确定第一测量结果。在这种测量方式下,第一电子设备和第二电子设备均只需发射信号,无需参与UWB信号的分析工作,极大降低了第一电子设备和第二电子设备的设备功耗。By implementing this method, the terminal device respectively obtains the second flight duration and the third flight duration according to the first signal transmitted by the first electronic device and the second signal transmitted by the second electronic device, and then obtains the second flight duration and the third flight duration according to the second flight duration and the third flight duration. The duration determines the first measurement. In this measurement mode, both the first electronic device and the second electronic device only need to transmit signals and do not need to participate in the analysis of UWB signals, which greatly reduces the power consumption of the first electronic device and the second electronic device.
请参阅图5A,图5A是本申请实施例公开的又一种测量方法的流程示意图,如图5A所示的测量方法可以包括以下步骤:Please refer to FIG. 5A. FIG. 5A is a schematic flowchart of another measurement method disclosed in the embodiment of the present application. The measurement method shown in FIG. 5A may include the following steps:
501、在检测到测量操作时,终端设备输出用于指示第一电子设备与第二电子设备的放置姿态的指示信息。501. When a measurement operation is detected, the terminal device outputs indication information for indicating placement postures of the first electronic device and the second electronic device.
在本申请实施例中,为了提高测量精度,第一UWB模块需尽可能紧贴测量起点,第二UWB模块的需尽可能紧贴测量终点。实践中发现,第一UWB模块的距离测量起点的距离通常受限于第一电子设备的放置姿态,第二UWB模块的距离测量起点的距离通常受限于第二电子设备的放置姿态。为了保证,第一UWB模块和第二UWB模块分别尽可能紧贴测量起点和测量终点,可以输出用于指示第一电子设备与第二电子设备的放置姿态的指示信息。可以理解的是,指示信息用于提示用户正确放置第一电子设备及第二电子设备,以使得第一UWB模块尽可能紧贴测量起点,第二UWB模块的尽可能紧贴测量终点。In the embodiment of the present application, in order to improve the measurement accuracy, the first UWB module needs to be as close as possible to the measurement starting point, and the second UWB module needs to be as close as possible to the measurement end point. In practice, it is found that the distance of the first UWB module from the measurement starting point is usually limited by the placement posture of the first electronic device, and the distance of the second UWB module from the measurement starting point is usually limited by the placement posture of the second electronic device. In order to ensure that the first UWB module and the second UWB module are as close as possible to the measurement start point and the measurement end point respectively, indication information for indicating the placement postures of the first electronic device and the second electronic device may be output. It can be understood that the instruction information is used to prompt the user to correctly place the first electronic device and the second electronic device, so that the first UWB module is as close as possible to the measurement starting point, and the second UWB module is as close as possible to the measurement end point.
在一些实施例中,指示信息可以包括但不限于以下至少一种:文本、语音及动画等。In some embodiments, the indication information may include but not limited to at least one of the following: text, voice, animation, and the like.
502、终端设备向第一电子设备和第二电子设备分别发送控制指令,以使第一电子设备和第二电子设备分别通过各自的UWB模块进行无线通信。502. The terminal device sends control instructions to the first electronic device and the second electronic device respectively, so that the first electronic device and the second electronic device respectively perform wireless communication through respective UWB modules.
503、终端设备获取通信数据,该通信数据是由第一电子设备和第二电子设备分别与终端设备通信产生的,或者是由第一电子设备与第二电子设备通信产生的。503. The terminal device acquires communication data, where the communication data is generated by communication between the first electronic device and the second electronic device and the terminal device respectively, or by communication between the first electronic device and the second electronic device.
其中,关于步骤502-步骤503的详细描述,请参照图2所示的实施例中针对步骤201-步骤202的描述,此处不再赘述。Wherein, for the detailed description of steps 502-503, please refer to the description of steps 201-202 in the embodiment shown in FIG. 2 , which will not be repeated here.
504、终端设备根据通信数据和补偿信息,确定第一测量结果。504. The terminal device determines a first measurement result according to the communication data and compensation information.
其中,补偿信息包括距离值补偿信息和/或角度补偿信息。Wherein, the compensation information includes distance value compensation information and/or angle compensation information.
在一些实施例中,根据通信数据和补偿信息,确定第一测量结果,可以包括:根据通信数据确定第二测量结果;利用补偿信息修正第二测量结果,以得到第一测量结果。其中,距离值补偿信息用于指示测量起点和测量终点之间的补偿距离值,角度补偿信息用于指示测量起点和测量终点之间的补偿角度值。In some embodiments, determining the first measurement result according to the communication data and the compensation information may include: determining the second measurement result according to the communication data; correcting the second measurement result by using the compensation information to obtain the first measurement result. Wherein, the distance value compensation information is used to indicate the compensation distance value between the measurement start point and the measurement end point, and the angle compensation information is used to indicate the compensation angle value between the measurement start point and the measurement end point.
下面对距离值补偿信息和角度补偿信息的获取方式进行说明:The following describes how to obtain distance value compensation information and angle compensation information:
其中,第一电子设备和第二电子设备分别放置于标定测量起点及标定测量终点,终端设备向第一电子设备和第二电子设备分别发送控制指令,以使第一电子设备和第二电子设备分别通过各自的UWB模块进行无线通信;以及获取通信数据,该通信数据是由第一电子设备和第二电子设备分别与终端设备通信产生的,或者是由第一电子设备与第二电子设备通信产生的;以及根据该通信数据得到第三测量结果;其中,第三测量结果包括标定测量起点和标定测量终点之间的测量距离值及测量相对角度;以及根据标定测量起点和标定测量终点之间的测量距离值,及标定测量起点和标定测量终点之间的实际距离值,得到对距离值补偿信息;以及根据标定测量起点和标定测量终点之间的测量相对角度,及标定测量起点和标定测量终点之间的实际相对角度,得到对角度补偿信息。Wherein, the first electronic device and the second electronic device are respectively placed at the starting point of the calibration measurement and the end point of the calibration measurement, and the terminal device sends control commands to the first electronic device and the second electronic device respectively, so that the first electronic device and the second electronic device Perform wireless communication through their respective UWB modules; and obtain communication data, the communication data is generated by the communication between the first electronic device and the second electronic device and the terminal device, or the communication between the first electronic device and the second electronic device Generated; and obtain a third measurement result according to the communication data; wherein, the third measurement result includes a measurement distance value and a measurement relative angle between the calibration measurement starting point and the calibration measurement end point; The measured distance value, and the actual distance value between the calibration measurement starting point and the calibration measurement end point, to obtain the compensation information for the distance value; and according to the measurement relative angle between the calibration measurement starting point and the calibration measurement end point, and the calibration measurement starting point and calibration measurement The actual relative angle between the end points, get the angle compensation information.
在一些实施例中,步骤504之后,还可以执行以下步骤:In some embodiments, after step 504, the following steps may also be performed:
在第一测量结果包括测量起点和测量终点之间的距离值时,终端设备在其显示屏幕上显示目标线段及测量起点和测量终点之间的距离值,目标线段的第一端表征测量起点、目标线段的第二端为表征测量终点。示例性的,请参阅图5B,图5B是本申请实施例公开的一种第一测量结果的输出界面。在图5B中包括线段AB及距离值a,其中,A点表示测量起点、B点表示测量终点,距离值a表示测量起点和测量终点之间的距离值。When the first measurement result includes the distance value between the measurement start point and the measurement end point, the terminal device displays the target line segment and the distance value between the measurement start point and the measurement end point on its display screen, and the first end of the target line segment represents the measurement start point, The second end of the target line segment is the end point of the characteristic measurement. For example, please refer to FIG. 5B . FIG. 5B is an output interface of a first measurement result disclosed in the embodiment of the present application. 5B includes a line segment AB and a distance value a, wherein point A represents the measurement start point, point B represents the measurement end point, and distance value a represents the distance value between the measurement start point and the measurement end point.
在第一测量结果包括测量起点和测量终点的相对角度时,终端设在其显示屏幕上显示目标夹角及该目标夹角的夹角值。其中,目标夹角的第一方向向量过第一点且平行于水平方向,目标夹角的第二方向向量过第一点和第二点;其中,第一点表征测量起点、第二点表征测量终点。示例性的,请参阅图5C,图5C是本申请实施例公开的另一种第一测量结果的输出界面。图5C中包括目标夹角OAB及目标夹角OAB的夹角值θ,其中,A点表示第一点,B点表示第二点,向量AO表示第一方向向量,向量AB表示第二方向向量。When the first measurement result includes the relative angle between the measurement start point and the measurement end point, the terminal is configured to display the target angle and the angle value of the target angle on its display screen. Among them, the first direction vector of the target included angle passes through the first point and is parallel to the horizontal direction, and the second direction vector of the target included angle passes through the first point and the second point; wherein, the first point represents the measurement starting point, and the second point represents Measure the end point. For example, please refer to FIG. 5C . FIG. 5C is another output interface of the first measurement result disclosed in the embodiment of the present application. Figure 5C includes the target angle OAB and the angle value θ of the target angle OAB, wherein point A represents the first point, point B represents the second point, vector AO represents the first direction vector, and vector AB represents the second direction vector .
在第一测量结果包括测量起点和测量终点的目标圆的参数信息时,终端设备在其显示屏幕上显示目标圆,处于目标圆上的第一点和第二点,以及目标圆的参数信息;其中,第一点表征测量起点、第二点表征测量终点。请参阅图5D,图5D是本申请实施例公开的又一种第一测量结果的输出界面。在图5D中包括目标圆O、处于该目标圆O上的第一点A和第二点B,以及目标圆O的周长L。When the first measurement result includes the parameter information of the target circle of the measurement start point and the measurement end point, the terminal device displays the target circle, the first point and the second point on the target circle, and the parameter information of the target circle on its display screen; Wherein, the first point represents the measurement start point, and the second point represents the measurement end point. Please refer to FIG. 5D . FIG. 5D is another output interface of the first measurement result disclosed in the embodiment of the present application. 5D includes the target circle O, the first point A and the second point B on the target circle O, and the circumference L of the target circle O.
通过实施上述方法,一方面,在用户需要进行测量时,只需要将第一电子设备与第二电子设备分别放置在测量起点及测量终点,即可通过无线通信测距的方式准确得到测量结果,提高测量精度,且操作简便;另一方面,在开始测量之前,输出提示用户正确放置第一电子设备和第二电子设备的指示信息,可以进一步减低测量误差;又一方面,利用补偿信息修正第一测量结果,也可以进一步降低测量误差。By implementing the above method, on the one hand, when the user needs to perform a measurement, the user only needs to place the first electronic device and the second electronic device at the measurement start point and the measurement end point respectively, and the measurement result can be accurately obtained through wireless communication distance measurement, The measurement accuracy is improved, and the operation is simple; on the other hand, before starting the measurement, outputting instruction information prompting the user to correctly place the first electronic device and the second electronic device can further reduce the measurement error; on the other hand, using the compensation information to correct the first electronic device Once the measurement result is obtained, the measurement error can also be further reduced.
请参阅图6,图6是本申请实施例公开的一种终端设备的结构框图。可以包括发送单元601、获取单元602及处理单元603;其中:Please refer to FIG. 6. FIG. 6 is a structural block diagram of a terminal device disclosed in an embodiment of the present application. It may include a sending unit 601, an acquiring unit 602, and a processing unit 603; wherein:
发送单元601,用于在检测到测量操作时,向第一电子设备和第二电子设备分别发送控制指令,以使第一电子设备和第二电子设备分别通过各自的UWB模块进行无线通信;其中,第一电子设备与第二电子设备分别放置在测量起点及测量终点;The sending unit 601 is configured to send control instructions to the first electronic device and the second electronic device respectively when the measurement operation is detected, so that the first electronic device and the second electronic device perform wireless communication through their respective UWB modules; , the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
获取单元602,用于获取通信数据,通信数据是由第一电子设备和第二电子设备分别 与终端设备通信产生的,或者通信数据是由第一电子设备与第二电子设备通信产生的;The obtaining unit 602 is configured to obtain communication data, the communication data is generated by the first electronic device and the second electronic device through communication with the terminal device, or the communication data is generated by the communication between the first electronic device and the second electronic device;
处理单元603,用于根据通信数据,确定第一测量结果;其中,第一测量结果包括以下至少一种:测量起点和测量终点之间的距离值、测量起点和测量终点的相对角度,及过测量起点和测量终点的目标圆的参数信息。The processing unit 603 is configured to determine a first measurement result according to the communication data; wherein the first measurement result includes at least one of the following: a distance value between the measurement start point and the measurement end point, a relative angle between the measurement start point and the measurement end point, and The parameter information of the target circle of the measurement start point and the measurement end point.
在一些实施例中,通信数据可以包括第一飞行时长;In some embodiments, the communication data may include a first flight duration;
进一步的,发送单元601用于向第一电子设备和第二电子设备分别发送控制指令,以使第一电子设备和第二电子设备分别通过各自的UWB模块进行无线通信的方式具体可以包括:发送单元601,用于向第一电子设备发送第一控制指令,以使第一电子设备通过第一UWB模块发射第一信号;向第二电子设备发送第二控制指令,以使第二电子设备通过第二UWB模块接收第一信号,并根据第一信号,得到第二UWB模块和第一UWB模块之间的第一飞行时长,以及向终端设备发送第一飞行时长。Further, the sending unit 601 is configured to send control instructions to the first electronic device and the second electronic device respectively, so that the first electronic device and the second electronic device respectively perform wireless communication through their respective UWB modules may specifically include: sending Unit 601, configured to send a first control instruction to the first electronic device, so that the first electronic device transmits a first signal through the first UWB module; send a second control instruction to the second electronic device, so that the second electronic device passes through The second UWB module receives the first signal, obtains a first flight duration between the second UWB module and the first UWB module according to the first signal, and sends the first flight duration to the terminal device.
在一些实施例中,第一测量结果可以包括测量起点和测量终点的相对角度,第二UWB模块包括第一天线阵列,第一飞行时长包括第一天线阵列中每根天线与第一UWB模块之间的飞行时长;In some embodiments, the first measurement result may include the relative angle between the measurement start point and the measurement end point, the second UWB module includes the first antenna array, and the first flight duration includes the distance between each antenna in the first antenna array and the first UWB module. flight time between
进一步的。处理单元603用于根据第一飞行时长中的第一天线及第二天线各自对应的飞行时长,得到第一天线与第二天线之间的第一目标相位差,并根据第一目标相位差,得到测量起点和测量终点的相对角度,第一天线与第二天线为第一天线阵列的任意两根天线。further. The processing unit 603 is configured to obtain the first target phase difference between the first antenna and the second antenna according to the corresponding flight durations of the first antenna and the second antenna in the first flight duration, and according to the first target phase difference, The relative angle between the measurement start point and the measurement end point is obtained, and the first antenna and the second antenna are any two antennas of the first antenna array.
在一些实施例中,第一测量结果可以包括过测量起点和测量终点的目标圆的参数信息;In some embodiments, the first measurement result may include parameter information of a target circle passing through the measurement start point and the measurement end point;
进一步的,处理单元603用于根据通信数据,确定第一测量结果的方式具体可以包括:处理单元603,用于根据第一飞行时长,得到测量起点和测量终点之间的距离值;将该距离值作为过测量起点和测量终点的目标圆的直径;根据目标圆的直径,得到目标圆的参数信息。Further, the manner in which the processing unit 603 is used to determine the first measurement result according to the communication data may specifically include: the processing unit 603 is used to obtain the distance value between the measurement start point and the measurement end point according to the first flight duration; The value is used as the diameter of the target circle passing the measurement start point and the measurement end point; according to the diameter of the target circle, the parameter information of the target circle is obtained.
在一些实施例中,终端设备包括第三UWB模块,通信数据可以包括第二飞行时长和第三飞行时长。In some embodiments, the terminal device includes a third UWB module, and the communication data may include the second flight duration and the third flight duration.
进一步的,发送单元601用于向第一电子设备和第二电子设备分别发送控制指令,以使第一电子设备和第二电子设备分别通过各自的UWB模块进行无线通信的方式具体可以包括:发送单元601,用于向第一电子设备和第二电子设备分别发送第三控制指令,以使第一电子设备通过第一UWB模块发射第一信号,第二电子设备通过第二UWB模块发射第二信号;以及,通过第三UWB模块接收第一信号和第二信号,并根据第一信号,得到第三UWB模块和第一UWB模块之间的第二飞行时长,以及根据第二信号,得到第三UWB模块和第二UWB模块之间的第三飞行时长。Further, the sending unit 601 is configured to send control instructions to the first electronic device and the second electronic device respectively, so that the first electronic device and the second electronic device respectively perform wireless communication through their respective UWB modules may specifically include: sending A unit 601, configured to send third control instructions to the first electronic device and the second electronic device, so that the first electronic device transmits the first signal through the first UWB module, and the second electronic device transmits the second signal through the second UWB module. signal; and, receive the first signal and the second signal through the third UWB module, and according to the first signal, obtain the second flight duration between the third UWB module and the first UWB module, and obtain the second flight duration according to the second signal A third flight duration between the third UWB module and the second UWB module.
在一些实施例中,第三UWB模块可以包括第二天线阵列,第二飞行时长包括第二天线阵列中每根天线与第一UWB模块之间的飞行时长;第三飞行时长包括第二天线阵列中每根天线与第二UWB模块之间的飞行时长。In some embodiments, the third UWB module may include a second antenna array, and the second flight duration includes the flight duration between each antenna in the second antenna array and the first UWB module; the third flight duration includes the second antenna array The flight time between each antenna and the second UWB module.
进一步的,处理单元603用于根据通信数据,确定第一测量结果的方式具体可以包括:处理单元603,用于根据第二飞行时长中第三天线及第四天线各对应的飞行时长,得到第三天线和第四天线之间的第二目标相位差,并根据第二目标相位差,得到终端设备与第一电子设备的第一相对位置信息;第三天线与第四天线为第二天线阵列的任意两根天线;根据第三飞行时长中第三天线及第四天线各对应的飞行时长,得到第三天线和第四天线之间的第三目标相位差,并根据第三目标相位差,得到终端设备与第二电子设备的第二相对位置信息;根据第一相对位置信息和第二相对位置信息,得到第一测量结果。Further, the manner in which the processing unit 603 is used to determine the first measurement result according to the communication data may specifically include: the processing unit 603 is used to obtain the second flight duration according to the flight duration corresponding to the third antenna and the fourth antenna in the second flight duration. The second target phase difference between the three antennas and the fourth antenna, and according to the second target phase difference, the first relative position information between the terminal device and the first electronic device is obtained; the third antenna and the fourth antenna are a second antenna array any two antennas; according to the flight duration corresponding to the third antenna and the fourth antenna in the third flight duration, the third target phase difference between the third antenna and the fourth antenna is obtained, and according to the third target phase difference, Obtain second relative position information of the terminal device and the second electronic device; obtain a first measurement result according to the first relative position information and the second relative position information.
在一些实施例中,处理单元603,还用于发送单元601向第一电子设备和第二电子设备分别发送控制指令之前,在检测到测量操作时,输出用于指示第一电子设备与第二电子 设备的放置姿态的指示信息。In some embodiments, the processing unit 603 is further configured to output an instruction indicating that the first electronic device and the second electronic device have The indication information of the placement posture of the electronic device.
在一些实施例中,处理单元603用于根据通信数据,确定第一测量结果的方式具体可以包括:处理单元603,用于根据通信数据和补偿信息,确定第一测量结果;其中,补偿信息包括距离值补偿信息和/或角度补偿信息。In some embodiments, the manner for the processing unit 603 to determine the first measurement result according to the communication data may specifically include: the processing unit 603 is configured to determine the first measurement result according to the communication data and compensation information; wherein the compensation information includes Distance value compensation information and/or angle compensation information.
在一些实施例中,处理单元603,还用于根据通信数据,确定第一测量结果之后,在第一测量结果包括测量起点和测量终点之间的距离值时,在终端设备的显示屏幕上显示目标线段及测量起点和测量终点之间的距离值,目标线段的第一端表征测量起点、目标线段的第二端为表征测量终点;In some embodiments, the processing unit 603 is further configured to, after determining the first measurement result according to the communication data, display on the display screen of the terminal device when the first measurement result includes the distance value between the measurement start point and the measurement end point. The target line segment and the distance value between the measurement start point and the measurement end point. The first end of the target line segment represents the measurement start point, and the second end of the target line segment represents the measurement end point;
处理单元603,还用于在第一测量结果包括测量起点和测量终点的相对角度时,在终端设备的显示屏幕上显示目标夹角及目标夹角的角度值,目标夹角的第一方向向量过第一点且平行于水平方向,目标夹角的第二方向向量过第一点和第二点;其中,第一点表征测量起点、第二点表征测量终点;The processing unit 603 is further configured to display the target angle and the angle value of the target angle on the display screen of the terminal device when the first measurement result includes the relative angle between the measurement start point and the measurement end point, and the first direction vector of the target angle Passing through the first point and parallel to the horizontal direction, the second direction vector of the included angle of the target passes through the first point and the second point; wherein, the first point represents the measurement starting point, and the second point represents the measurement end point;
处理单元603,还用于在第一测量结果包括测量起点和测量终点的目标圆的参数信息时,在终端设备的显示屏幕上显示目标圆,处于目标圆上的第一点和第二点,以及目标圆的参数信息;其中,第一点表征测量起点、第二点表征测量终点。The processing unit 603 is further configured to display the target circle, the first point and the second point on the target circle on the display screen of the terminal device when the first measurement result includes the parameter information of the target circle of the measurement start point and the measurement end point, And the parameter information of the target circle; wherein, the first point represents the measurement start point, and the second point represents the measurement end point.
请参阅图7,图7是本申请实施例公开的一种终端设备的结构框图。可以包括:Please refer to FIG. 7. FIG. 7 is a structural block diagram of a terminal device disclosed in an embodiment of the present application. Can include:
存储有可执行程序代码的存储器701;A memory 701 storing executable program codes;
以及存储器701耦合的处理器702;and a processor 702 coupled to the memory 701;
处理器702调用存储器701中存储的可执行程序代码,可执行程序代码被处理器702执行时,使得处理器702实现上述实施例中终端设备执行的部分或全部步骤。The processor 702 invokes the executable program code stored in the memory 701. When the executable program code is executed by the processor 702, the processor 702 implements some or all of the steps performed by the terminal device in the foregoing embodiments.
请参阅图8,图8是本申请实施例公开的一种第一电子设备的结构框图。可以包括:Please refer to FIG. 8 . FIG. 8 is a structural block diagram of a first electronic device disclosed in an embodiment of the present application. Can include:
指令接收单元801,用于接收终端设备发送的控制指令,第一电子设备与第二电子设备分别放置在测量起点及测量终点;The instruction receiving unit 801 is configured to receive the control instruction sent by the terminal device, and the first electronic device and the second electronic device are respectively placed at the measurement starting point and the measurement end point;
信号发射单元802,用于根据控制指令,通过第一UWB模块向第二电子设备的第二UWB模块发射第一信号,以使第二电子设备根据第一信号向终端设备反馈通信数据;该通信数据用于确定第一测量结果;其中,第一测量结果包括以下至少一种:测量起点和测量终点之间的距离值、测量起点和测量终点的相对角度,及过测量起点和测量终点的目标圆的参数信息。The signal transmitting unit 802 is configured to transmit a first signal to the second UWB module of the second electronic device through the first UWB module according to the control instruction, so that the second electronic device feeds back communication data to the terminal device according to the first signal; the communication The data is used to determine the first measurement result; wherein the first measurement result includes at least one of the following: the distance value between the measurement start point and the measurement end point, the relative angle between the measurement start point and the measurement end point, and the target passing through the measurement start point and the measurement end point Parameter information of the circle.
请参阅图9,图9是本申请实施例公开的一种第一电子设备的结构框图。可以包括:Please refer to FIG. 9 . FIG. 9 is a structural block diagram of a first electronic device disclosed in an embodiment of the present application. Can include:
存储有可执行程序代码的存储器901;A memory 901 storing executable program codes;
以及存储器901耦合的处理器902;and a processor 902 coupled to the memory 901;
处理器902调用存储器901中存储的可执行程序代码,可执行程序代码被处理器902执行时,使得处理器902实现上述实施例中电子设备执行的部分或全部步骤。The processor 902 invokes the executable program code stored in the memory 901. When the executable program code is executed by the processor 902, the processor 902 implements part or all of the steps performed by the electronic device in the foregoing embodiments.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,计算机程序使得计算机执行上述实施例中终端设备执行的部分或全部步骤。An embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute some or all of the steps performed by the terminal device in the foregoing embodiments.
本申请实施例公开另一种计算机可读存储介质,其存储计算机程序,其中,计算机程序使得计算机执行上述实施例中电子设备执行的部分或全部步骤。The embodiment of the present application discloses another computer-readable storage medium, which stores a computer program, wherein the computer program causes the computer to perform some or all of the steps performed by the electronic device in the above-mentioned embodiments.
本申请实施例公开了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述实施例中终端设备执行的部分或全部步骤。The embodiment of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is made to perform some or all of the steps performed by the terminal device in the foregoing embodiments.
本申请实施例公开了另一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述实施例中电子设备执行的部分或全部步骤。The embodiment of the present application discloses another computer program product. When the computer program product is run on a computer, the computer is made to execute some or all of the steps performed by the electronic device in the above embodiments.
本申请实施例公开了一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述实施例中终端 设备执行的部分或全部步骤。The embodiment of the present application discloses an application distribution platform, which is used to distribute computer program products, wherein, when the computer program products are run on a computer, the computer is made to execute the terminal device in the above-mentioned embodiments. some or all of the steps.
本申请实施例公开了另一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述实施例中电子设备执行的部分或全部步骤。The embodiment of the present application discloses another application release platform, which is used to release computer program products, wherein, when the computer program products run on the computer, the computer executes the electronic device in the above-mentioned embodiments Some or all of the steps performed.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.

Claims (18)

  1. 一种测量方法,其特征在于,所述方法适用于终端设备,所述终端设备与第一电子设备及第二电子设备建立通信连接,所述第一电子设备包括第一UWB模块,所述第二电子设备包括第二UWB模块,所述方法包括:A measurement method, characterized in that the method is applicable to a terminal device, and the terminal device establishes a communication connection with a first electronic device and a second electronic device, the first electronic device includes a first UWB module, and the second electronic device The second electronic device includes a second UWB module, and the method includes:
    在检测到测量操作时,向所述第一电子设备和所述第二电子设备分别发送控制指令,以使所述第一电子设备和所述第二电子设备分别通过各自的UWB模块进行无线通信;其中,所述第一电子设备与所述第二电子设备分别放置在测量起点及测量终点;When a measurement operation is detected, send control instructions to the first electronic device and the second electronic device, so that the first electronic device and the second electronic device perform wireless communication through their respective UWB modules ; Wherein, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
    获取通信数据,所述通信数据是由所述第一电子设备和所述第二电子设备分别与所述终端设备通信产生的,或者所述通信数据是由所述第一电子设备与所述第二电子设备通信产生的;Acquiring communication data, the communication data is generated by the communication between the first electronic device and the second electronic device and the terminal device respectively, or the communication data is generated by the communication between the first electronic device and the second electronic device 2. Generated by electronic equipment communication;
    根据所述通信数据,确定第一测量结果;其中,所述第一测量结果包括以下至少一种:所述测量起点和所述测量终点之间的距离值、所述测量起点和所述测量终点的相对角度,及过所述测量起点和所述测量终点的目标圆的参数信息。According to the communication data, determine a first measurement result; wherein, the first measurement result includes at least one of the following: a distance value between the measurement start point and the measurement end point, the measurement start point and the measurement end point and the parameter information of the target circle passing through the measurement start point and the measurement end point.
  2. 根据权利要求1所述的方法,其特征在于,所述通信数据包括第一飞行时长;The method according to claim 1, wherein the communication data includes a first flight duration;
    所述向所述第一电子设备和所述第二电子设备分别发送控制指令,以使所述第一电子设备和所述第二电子设备分别通过各自的UWB模块进行无线通信,包括:The sending control instructions to the first electronic device and the second electronic device respectively, so that the first electronic device and the second electronic device perform wireless communication through their respective UWB modules, includes:
    向所述第一电子设备发送第一控制指令,以使所述第一电子设备通过所述第一UWB模块发射第一信号;sending a first control instruction to the first electronic device, so that the first electronic device transmits a first signal through the first UWB module;
    向所述第二电子设备发送第二控制指令,以使所述第二电子设备通过所述第二UWB模块接收所述第一信号,并根据所述第一信号,得到所述第二UWB模块和所述第一UWB模块之间的第一飞行时长,以及向所述终端设备发送所述第一飞行时长。Sending a second control instruction to the second electronic device, so that the second electronic device receives the first signal through the second UWB module, and obtains the second UWB module according to the first signal and the first flight duration between the first UWB module, and sending the first flight duration to the terminal device.
  3. 根据权利要求2所述的方法,其特征在于,所述第一测量结果包括所述测量起点和所述测量终点的相对角度,所述第二UWB模块包括第一天线阵列,所述第一飞行时长包括所述第一天线阵列中每根天线与所述第一UWB模块之间的飞行时长;The method according to claim 2, wherein the first measurement result includes the relative angle between the measurement start point and the measurement end point, the second UWB module includes a first antenna array, and the first flight The duration includes the flight duration between each antenna in the first antenna array and the first UWB module;
    所述根据所述通信数据,确定第一测量结果,包括:The determining the first measurement result according to the communication data includes:
    根据所述第一飞行时长中的第一天线及第二天线各自对应的飞行时长,得到所述第一天线与第二天线之间的第一目标相位差,并根据所述第一目标相位差,得到所述测量起点和所述测量终点的相对角度,所述第一天线与所述第二天线为所述第一天线阵列的任意两根天线。According to the respective flight durations of the first antenna and the second antenna in the first flight duration, the first target phase difference between the first antenna and the second antenna is obtained, and according to the first target phase difference , to obtain a relative angle between the measurement start point and the measurement end point, and the first antenna and the second antenna are any two antennas of the first antenna array.
  4. 根据权利要求2所述的方法,其特征在于,所述第一测量结果包括过所述测量起点和所述测量终点的目标圆的参数信息;The method according to claim 2, wherein the first measurement result includes parameter information of a target circle passing through the measurement start point and the measurement end point;
    所述根据所述通信数据,确定第一测量结果,包括:The determining the first measurement result according to the communication data includes:
    根据所述第一飞行时长,得到所述测量起点和所述测量终点之间的距离值;Obtaining a distance value between the measurement start point and the measurement end point according to the first flight duration;
    将所述距离值作为过所述测量起点和所述测量终点的目标圆的直径;Using the distance value as the diameter of the target circle passing through the measurement start point and the measurement end point;
    根据所述目标圆的直径,得到所述目标圆的参数信息。According to the diameter of the target circle, the parameter information of the target circle is obtained.
  5. 根据权利要求1所述的方法,其特征在于,所述终端设备包括第三UWB模块,所述通信数据包括第二飞行时长和第三飞行时长;The method according to claim 1, wherein the terminal device includes a third UWB module, and the communication data includes a second flight duration and a third flight duration;
    所述向所述第一电子设备和所述第二电子设备分别发送控制指令,以使所述第一电子设备和所述第二电子设备分别通过各自的UWB模块进行无线通信,包括:The sending control instructions to the first electronic device and the second electronic device respectively, so that the first electronic device and the second electronic device perform wireless communication through their respective UWB modules, includes:
    向所述第一电子设备和所述第二电子设备分别发送第三控制指令,以使所述第一电子设备通过所述第一UWB模块发射第一信号,所述第二电子设备通过所述第二UWB模块发射第二信号;Sending third control instructions to the first electronic device and the second electronic device respectively, so that the first electronic device transmits a first signal through the first UWB module, and the second electronic device transmits a first signal through the the second UWB module transmits a second signal;
    通过所述第三UWB模块接收所述第一信号和所述第二信号,并根据所述第一信号, 得到所述第三UWB模块和所述第一UWB模块之间的第二飞行时长,以及根据所述第二信号,得到所述第三UWB模块和所述第二UWB模块之间的第三飞行时长。receiving the first signal and the second signal through the third UWB module, and obtaining a second flight duration between the third UWB module and the first UWB module according to the first signal, And according to the second signal, a third flight duration between the third UWB module and the second UWB module is obtained.
  6. 根据权利要求5所述的方法,其特征在于,所述第三UWB模块包括第二天线阵列,所述第二飞行时长包括所述第二天线阵列中每根天线与所述第一UWB模块之间的飞行时长;所述第三飞行时长包括所述第二天线阵列中每根天线与所述第二UWB模块之间的飞行时长;The method according to claim 5, wherein the third UWB module includes a second antenna array, and the second flight duration includes the distance between each antenna in the second antenna array and the first UWB module. The flight duration between; the third flight duration includes the flight duration between each antenna in the second antenna array and the second UWB module;
    其中,所述根据所述通信数据,确定第一测量结果,包括:Wherein, the determining the first measurement result according to the communication data includes:
    根据所述第二飞行时长中第三天线及第四天线各对应的飞行时长,得到所述第三天线和所述第四天线之间的第二目标相位差,并根据所述第二目标相位差,得到所述终端设备与所述第一电子设备的第一相对位置信息;所述第三天线与所述第四天线为所述第二天线阵列的任意两根天线;According to the flight duration corresponding to the third antenna and the fourth antenna in the second flight duration, the second target phase difference between the third antenna and the fourth antenna is obtained, and according to the second target phase difference, obtaining the first relative position information between the terminal device and the first electronic device; the third antenna and the fourth antenna are any two antennas of the second antenna array;
    根据所述第三飞行时长中第三天线及第四天线各对应的飞行时长,得到所述第三天线和所述第四天线之间的第三目标相位差,并根据所述第三目标相位差,得到所述终端设备与所述第二电子设备的第二相对位置信息;According to the flight duration corresponding to the third antenna and the fourth antenna in the third flight duration, the third target phase difference between the third antenna and the fourth antenna is obtained, and according to the third target phase difference, obtaining second relative position information between the terminal device and the second electronic device;
    根据所述第一相对位置信息和所述第二相对位置信息,得到所述第一测量结果。Obtain the first measurement result according to the first relative position information and the second relative position information.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述向所述第一电子设备和所述第二电子设备分别发送控制指令之前,所述方法还包括:The method according to any one of claims 1-6, wherein before sending control instructions to the first electronic device and the second electronic device respectively, the method further comprises:
    在检测到测量操作时,输出用于指示所述第一电子设备与所述第二电子设备的放置姿态的指示信息。When the measurement operation is detected, output indication information for indicating the placement postures of the first electronic device and the second electronic device.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据所述通信数据,确定第一测量结果,包括:The method according to any one of claims 1-6, wherein the determining the first measurement result according to the communication data includes:
    根据所述通信数据和补偿信息,确定第一测量结果;其中,所述补偿信息包括距离值补偿信息和/或角度补偿信息。A first measurement result is determined according to the communication data and compensation information; wherein the compensation information includes distance value compensation information and/or angle compensation information.
  9. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据所述通信数据,确定第一测量结果之后,所述方法还包括:The method according to any one of claims 1-6, wherein after the first measurement result is determined according to the communication data, the method further comprises:
    在所述第一测量结果包括所述测量起点和所述测量终点之间的距离值时,在所述终端设备的显示屏幕上显示目标线段及所述测量起点和所述测量终点之间的距离值,所述目标线段的第一端表征所述测量起点、所述目标线段的第二端表征所述测量终点;When the first measurement result includes a distance value between the measurement start point and the measurement end point, displaying the target line segment and the distance between the measurement start point and the measurement end point on the display screen of the terminal device value, the first end of the target line segment represents the measurement starting point, and the second end of the target line segment represents the measurement end point;
    在所述第一测量结果包括所述测量起点和所述测量终点的相对角度时,在所述终端设备的显示屏幕上显示目标夹角及所述目标夹角的角度值,所述目标夹角的第一方向向量过第一点且平行于水平方向,所述目标夹角的第二方向向量过所述第一点和第二点;其中,所述第一点表征所述测量起点、所述第二点表征所述测量终点;When the first measurement result includes the relative angle between the measurement start point and the measurement end point, the target angle and the angle value of the target angle are displayed on the display screen of the terminal device, and the target angle The first direction vector of the target angle passes through the first point and is parallel to the horizontal direction, and the second direction vector of the target angle passes through the first point and the second point; wherein, the first point represents the measurement starting point, the The second point characterizes the measurement endpoint;
    在所述第一测量结果包括过所述测量起点和所述测量终点的目标圆的参数信息时,所述终端设备的显示屏幕上显示目标圆,处于所述目标圆上的第一点和第二点,以及所述目标圆的参数信息;其中,所述第一点表征所述测量起点、所述第二点表征所述测量终点。When the first measurement result includes parameter information of a target circle passing through the measurement start point and the measurement end point, the display screen of the terminal device displays the target circle, the first point and the second point on the target circle Two points, and parameter information of the target circle; wherein, the first point represents the measurement start point, and the second point represents the measurement end point.
  10. 根据权利要求1-6任一项所述的方法,其特征在于,所述第一电子设备包括第一耳机,所述第二电子设备包括第二耳机,所述第一耳机与所述第二耳机属于同一耳机设备。The method according to any one of claims 1-6, wherein the first electronic device includes a first earphone, the second electronic device includes a second earphone, and the first earphone and the second earphone Headphones belong to the same headphone device.
  11. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    在检测到测量操作时,在所述终端设备的显示屏幕上显示测量类型选择界面,所述测量类型选择界面包括多个选择标签,不同选择标签用于触发不同类型的测量结果的测量,所述多个选择标签包括用于触发测量测量起点和测量终点之间的距离值的标签、用于触发测量所述测量起点和所述测量终点的相对角度的标签以及用于触发测量过所述测量起点和所述测量终点的目标圆的参数信息的标签。When a measurement operation is detected, a measurement type selection interface is displayed on the display screen of the terminal device, the measurement type selection interface includes a plurality of selection labels, and different selection labels are used to trigger measurement of different types of measurement results, the said A plurality of selection tags include a tag for triggering measurement of a distance value between a measurement start point and a measurement end point, a tag for triggering measurement of a relative angle between the measurement start point and the measurement end point, and a tag for triggering measurement past the measurement start point and the label of the parameter information of the target circle of the measurement end point.
  12. 根据权利要求1-6任一项所述的方法,其特征在于,所述控制指令是通过所述终端设备的蓝牙模块、WIFI模块或UWB模块,分别向所述第一设备和所述第二设备发送的。The method according to any one of claims 1-6, wherein the control instruction is sent to the first device and the second device respectively through the Bluetooth module, WIFI module or UWB module of the terminal device. sent by the device.
  13. 一种测量方法,其特征在于,所述方法适用于第一电子设备,所述第一电子设备与终端设备通信连接,所述终端设备还与第二电子设备通信连接;所述第一电子设备包括第一UWB模块,所述第二电子设备包括第二UWB模块,所述方法包括:A measurement method, characterized in that the method is applicable to a first electronic device, and the first electronic device is communicatively connected to a terminal device, and the terminal device is also communicatively connected to a second electronic device; the first electronic device Including a first UWB module, the second electronic device includes a second UWB module, and the method includes:
    接收所述终端设备发送的控制指令,所述第一电子设备与所述第二电子设备分别放置在测量起点及测量终点;receiving a control instruction sent by the terminal device, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
    根据所述控制指令,通过所述第一UWB模块向所述第二电子设备的第二UWB模块发射第一信号,以使所述第二电子设备根据所述第一信号向所述终端设备反馈通信数据;所述通信数据用于确定第一测量结果;其中,所述第一测量结果包括以下至少一种:所述测量起点和所述测量终点之间的距离值、所述测量起点和所述测量终点的相对角度,及过所述测量起点和所述测量终点的目标圆的参数信息。According to the control instruction, the first UWB module transmits a first signal to the second UWB module of the second electronic device, so that the second electronic device feeds back to the terminal device according to the first signal Communication data; the communication data is used to determine a first measurement result; wherein, the first measurement result includes at least one of the following: the distance value between the measurement start point and the measurement end point, the measurement start point and the measurement The relative angle of the measurement end point, and the parameter information of the target circle passing through the measurement start point and the measurement end point.
  14. 一种终端设备,其特征在于,所述终端设备与第一电子设备及第二电子设备建立通信连接,所述第一电子设备包括第一UWB模块,所述第二电子设备包括第二UWB模块,所述方法包括:A terminal device, characterized in that the terminal device establishes a communication connection with a first electronic device and a second electronic device, the first electronic device includes a first UWB module, and the second electronic device includes a second UWB module , the method includes:
    发送单元,用于在检测到测量操作时,向所述第一电子设备和所述第二电子设备分别发送控制指令,以使所述第一电子设备和所述第二电子设备分别通过各自的UWB模块进行无线通信;其中,所述第一电子设备与所述第二电子设备分别放置在测量起点及测量终点;a sending unit, configured to send control instructions to the first electronic device and the second electronic device respectively when a measurement operation is detected, so that the first electronic device and the second electronic device pass through their respective The UWB module performs wireless communication; wherein, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
    获取单元,用于获取通信数据,所述通信数据是由所述第一电子设备和所述第二电子设备分别与所述终端设备通信产生的,或者所述通信数据是由所述第一电子设备与所述第二电子设备通信产生的;An obtaining unit, configured to obtain communication data, the communication data is generated by the first electronic device and the second electronic device respectively communicating with the terminal device, or the communication data is generated by the first electronic device generated by communication between the device and the second electronic device;
    处理单元,用于根据所述通信数据,确定第一测量结果;其中,所述第一测量结果包括以下至少一种:所述测量起点和所述测量终点之间的距离值、所述测量起点和所述测量终点的相对角度,及过所述测量起点和所述测量终点的目标圆的参数信息。A processing unit, configured to determine a first measurement result according to the communication data; wherein the first measurement result includes at least one of the following: a distance value between the measurement start point and the measurement end point, the measurement start point The relative angle to the measurement end point, and the parameter information of the target circle passing through the measurement start point and the measurement end point.
  15. 一种第一电子设备,其特征在于,所述第一电子设备与终端设备通信连接,所述终端设备还与第二电子设备通信连接;所述第一电子设备包括第一UWB模块,所述第二电子设备包括第二UWB模块,A first electronic device, characterized in that the first electronic device is communicatively connected to a terminal device, and the terminal device is also communicatively connected to a second electronic device; the first electronic device includes a first UWB module, and the The second electronic device includes a second UWB module,
    所述第一电子设备包括:The first electronic device includes:
    指令接收单元,用于接收所述终端设备发送的控制指令,所述第一电子设备与所述第二电子设备分别放置在测量起点及测量终点;an instruction receiving unit, configured to receive a control instruction sent by the terminal device, the first electronic device and the second electronic device are respectively placed at the measurement start point and the measurement end point;
    信号发射单元,用于根据所述控制指令,通过所述第一UWB模块向所述第二电子设备的第二UWB模块发射第一信号,以使所述第二电子设备根据所述第一信号向所述终端设备反馈通信数据;所述通信数据用于确定第一测量结果;其中,所述第一测量结果包括以下至少一种:所述测量起点和所述测量终点之间的距离值、所述测量起点和所述测量终点的相对角度,及过所述测量起点和所述测量终点的目标圆的参数信息。A signal transmitting unit, configured to transmit a first signal to the second UWB module of the second electronic device through the first UWB module according to the control instruction, so that the second electronic device transmits a first signal according to the first signal Feedback communication data to the terminal device; the communication data is used to determine a first measurement result; wherein the first measurement result includes at least one of the following: a distance value between the measurement start point and the measurement end point, The relative angle between the measurement start point and the measurement end point, and the parameter information of a target circle passing through the measurement start point and the measurement end point.
  16. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    以及所述存储器耦合的处理器;and a processor to which the memory is coupled;
    所述处理器调用所述存储器中存储的所述可执行程序代码,所述可执行程序代码被所述处理器执行时,使得所述处理器实现如权利要求1-12任一所述的方法。The processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1-12 .
  17. 一种第一电子设备,其特征在于,包括:A first electronic device, characterized in that it comprises:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    以及所述存储器耦合的处理器;and a processor to which the memory is coupled;
    所述处理器调用所述存储器中存储的所述可执行程序代码,所述可执行程序代码被所述处理器执行时,使得所述处理器实现如权利要求13所述的方法。The processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method as claimed in claim 13 .
  18. 一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机实现如权利要求1-12或13中任一所述的方法。A computer-readable storage medium storing a computer program, wherein the computer program causes a computer to implement the method according to any one of claims 1-12 or 13.
PCT/CN2022/128976 2021-12-02 2022-11-01 Measurement method, terminal device, electronic device, and readable storage medium WO2023098373A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111462565.8A CN116233292A (en) 2021-12-02 2021-12-02 Measurement method, terminal device, electronic device, and readable storage medium
CN202111462565.8 2021-12-02

Publications (1)

Publication Number Publication Date
WO2023098373A1 true WO2023098373A1 (en) 2023-06-08

Family

ID=86582965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/128976 WO2023098373A1 (en) 2021-12-02 2022-11-01 Measurement method, terminal device, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN116233292A (en)
WO (1) WO2023098373A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200150262A1 (en) * 2018-11-09 2020-05-14 Samsung Electronics Co., Ltd. Method and apparatus for controlling ranging in wireless communication system
CN111343714A (en) * 2020-02-09 2020-06-26 北京小米移动软件有限公司 Terminal positioning method and device, electronic equipment and storage medium
CN112040361A (en) * 2020-09-03 2020-12-04 Oppo广东移动通信有限公司 Earphone control method, earphone control device and storage medium
CN113207052A (en) * 2021-01-28 2021-08-03 珠海市杰理科技股份有限公司 Communication connection method and device, Bluetooth headset, communication system and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200150262A1 (en) * 2018-11-09 2020-05-14 Samsung Electronics Co., Ltd. Method and apparatus for controlling ranging in wireless communication system
CN111343714A (en) * 2020-02-09 2020-06-26 北京小米移动软件有限公司 Terminal positioning method and device, electronic equipment and storage medium
CN112040361A (en) * 2020-09-03 2020-12-04 Oppo广东移动通信有限公司 Earphone control method, earphone control device and storage medium
CN113207052A (en) * 2021-01-28 2021-08-03 珠海市杰理科技股份有限公司 Communication connection method and device, Bluetooth headset, communication system and storage medium

Also Published As

Publication number Publication date
CN116233292A (en) 2023-06-06

Similar Documents

Publication Publication Date Title
US9602584B2 (en) System with distributed process unit
KR102447438B1 (en) Alarm device and method for informing location of objects thereof
US8976039B2 (en) Remote operation and monitoring of measurement systems and remote measurement data processing
US10354158B2 (en) Iris-based living-body detection method, mobile terminal and storage medium
US11079481B2 (en) Apparatus and method for measuring distance and location
US20220405733A1 (en) Payment Method and Electronic Device
KR20160035248A (en) Method for providing a virtual object and electronic device thereof
KR102516019B1 (en) Electronic apparatus and method for communicating with an external electronic device
US20220322042A1 (en) Terminal Interaction Method and Terminal
KR20150105802A (en) Beacon signal control method of electronic apparatus and electronic apparatus thereof
EP3404531A1 (en) Sound effect parameter adjustment method, and mobile terminal
AU2015202698B2 (en) Method and apparatus for processing input using display
WO2020048392A1 (en) Application virus detection method, apparatus, computer device, and storage medium
KR20160111211A (en) Method for communicating data and electronic device there
KR20150121491A (en) Method and apparatus for controlling beacon of electronic devices
WO2022078014A1 (en) Virtual wearable object matching method and apparatus, electronic device, and computer readable medium
CN106155468B (en) Alarm display method and terminal
US20140285177A1 (en) Mobile current measurement equipment, current measurement terminal and current measurement method
WO2022088989A1 (en) Augmented reality image display method and related apparatus
WO2023098373A1 (en) Measurement method, terminal device, electronic device, and readable storage medium
US10706282B2 (en) Method and mobile terminal for processing image and storage medium
TWI526915B (en) Methods and systems for displaying graphic representations in a user interface, and related computer program products
WO2023202141A1 (en) Display method, control device and computer storage medium
KR20150125338A (en) Method for control a text input and electronic device thereof
CN108429805B (en) File downloading processing method, sending terminal and receiving terminal

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: 22900178

Country of ref document: EP

Kind code of ref document: A1