Movatterモバイル変換


[0]ホーム

URL:


CN116299382A - Distance measuring method and device, storage medium and terminal equipment - Google Patents

Distance measuring method and device, storage medium and terminal equipment
Download PDF

Info

Publication number
CN116299382A
CN116299382ACN202111566263.5ACN202111566263ACN116299382ACN 116299382 ACN116299382 ACN 116299382ACN 202111566263 ACN202111566263 ACN 202111566263ACN 116299382 ACN116299382 ACN 116299382A
Authority
CN
China
Prior art keywords
ranging
chip
terminal device
conduction loss
distance value
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111566263.5A
Other languages
Chinese (zh)
Inventor
乔光军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN202111566263.5ApriorityCriticalpatent/CN116299382A/en
Publication of CN116299382ApublicationCriticalpatent/CN116299382A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本公开提供了一种测距方法及装置、存储介质和终端设备。其中,该方法包括:由超带宽UWB芯片从安全芯片中获取传导损耗参数;其中,所述传导损耗参数用于指示测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程对测距造成的距离损耗;向待测设备发送所述测距信号;基于所述测距信号的飞行时间,确定所述终端设备与所述待测设备之间的初始距离值;基于所述初始距离值和所述传导损耗参数,确定所述终端设备与所述待测设备之间的目标距离值。本公开可以确保传导损耗参数不会被非法篡改,提高了测距的准确性和安全性,进而可以提高使用数字钥匙的安全性以及支付安全性。

Figure 202111566263

The present disclosure provides a ranging method and device, a storage medium, and a terminal device. Wherein, the method includes: obtaining a conduction loss parameter from a security chip by an ultra-wideband UWB chip; wherein, the conduction loss parameter is used to indicate that a ranging signal is transmitted from the antenna of the terminal device to the UWB chip of the terminal device The distance loss caused by the conduction process to the ranging; sending the ranging signal to the device under test; based on the time-of-flight of the ranging signal, determining an initial distance value between the terminal device and the device under test; Based on the initial distance value and the conduction loss parameter, determine a target distance value between the terminal device and the device under test. The disclosure can ensure that conduction loss parameters will not be illegally tampered with, improves the accuracy and security of distance measurement, and can further improve the security of using digital keys and payment security.

Figure 202111566263

Description

Translated fromChinese
测距方法及装置、存储介质和终端设备Distance measuring method and device, storage medium and terminal equipment

技术领域technical field

本公开涉及通信领域,尤其涉及一种测距方法及装置、存储介质和终端设备。The present disclosure relates to the communication field, and in particular, to a ranging method and device, a storage medium, and a terminal device.

背景技术Background technique

目前,在使用数字钥匙、终端支付等场景下,一些不法分子可以通过入侵终端设备,将传导损耗参数修改为较大的数值的方式,使得终端设备离待测设备较远的情况下,让终端设备误判与待测设备的距离,造成了极大的安全隐患。其中,待测设备可以是车辆、家庭门锁、支付设备(例如pos机)等。At present, in the scenarios of using digital keys and terminal payment, some criminals can modify the conduction loss parameter to a larger value by invading the terminal device, so that the terminal device is far away from the device under test. The misjudgment of the distance between the device and the device under test has caused a great potential safety hazard. Wherein, the device to be tested may be a vehicle, a home door lock, a payment device (such as a POS machine) and the like.

发明内容Contents of the invention

有鉴于此,本申请公开了一种测距方法及装置、存储介质和终端设备。In view of this, the present application discloses a ranging method and device, a storage medium, and a terminal device.

根据本公开实施例的第一方面,提供一种测距方法,所述方法应用于终端设备,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a ranging method is provided, the method is applied to a terminal device, and the method includes:

由超带宽UWB芯片从安全芯片中获取传导损耗参数;其中,所述传导损耗参数用于指示测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程对测距造成的距离损耗;The conduction loss parameter is obtained from the security chip by the ultra-wideband UWB chip; wherein the conduction loss parameter is used to indicate that the conduction process of the ranging signal from the antenna of the terminal device to the UWB chip of the terminal device affects the ranging The distance loss caused by;

向待测设备发送所述测距信号;sending the ranging signal to the device under test;

基于所述测距信号的飞行时间,确定所述终端设备与所述待测设备之间的初始距离值;determining an initial distance value between the terminal device and the device under test based on the time-of-flight of the ranging signal;

基于所述初始距离值和所述传导损耗参数,确定所述终端设备与所述待测设备之间的目标距离值。Based on the initial distance value and the conduction loss parameter, determine a target distance value between the terminal device and the device under test.

可选地,所述传导损耗参数是在所述终端设备出厂前写入所述安全芯片上的只读文件的。Optionally, the conduction loss parameter is written into a read-only file on the security chip before the terminal device leaves the factory.

可选地,所述由超带宽UWB芯片从安全芯片中获取传导损耗参数,包括:Optionally, the acquisition of conduction loss parameters from the security chip by the ultra-wideband UWB chip includes:

由所述UWB芯片通过所述UWB芯片与所述安全芯片之间的安全通道,从所述安全芯片上读取所述只读文件中的所述传导损耗参数。The UWB chip reads the conduction loss parameter in the read-only file from the security chip through the security channel between the UWB chip and the security chip.

可选地,所述基于所述初始距离值和所述传导损耗参数,确定所述终端设备与所述待测设备之间的目标距离值,包括:Optionally, the determining a target distance value between the terminal device and the device under test based on the initial distance value and the conduction loss parameter includes:

将所述初始距离值与所述传导损耗参数指示的距离损耗的差值确定为所述目标距离值。A difference between the initial distance value and the distance loss indicated by the conduction loss parameter is determined as the target distance value.

可选地,所述方法还包括:Optionally, the method also includes:

响应于所述UWB芯片接收到所述终端设备的服务发送的启动安全测距会话消息,执行所述由超带宽UWB芯片从安全芯片中获取传导损耗参数的步骤。In response to the UWB chip receiving the message of starting a security ranging session sent by the service of the terminal device, the step of obtaining the conduction loss parameter from the security chip by the ultra-wideband UWB chip is performed.

可选地,所述方法还包括:Optionally, the method also includes:

由所述UWB芯片从所述安全芯片获取测距密钥;其中,所述测距密钥用于对测距前导码进行加密或解密,所述测距前导码用于指示所述待测设备接收所述终端设备发送的所述测距信号;Obtaining a ranging key from the security chip by the UWB chip; wherein the ranging key is used to encrypt or decrypt a ranging preamble, and the ranging preamble is used to indicate the device under test receiving the ranging signal sent by the terminal device;

通过所述测距密钥对所述测距前导码进行加密,得到加密后的测距前导码;Encrypting the ranging preamble by using the ranging key to obtain an encrypted ranging preamble;

在发送加密后的测距前导码给所述待测设备之后,执行所述向待测设备发送所述测距信号的步骤。After sending the encrypted ranging preamble to the device under test, the step of sending the ranging signal to the device under test is performed.

根据本公开实施例的第二方面,提供一种测距装置,所述装置应用于终端设备,所述装置包括:According to a second aspect of an embodiment of the present disclosure, a ranging device is provided, the device is applied to a terminal device, and the device includes:

第一获取模块,用于由超带宽UWB芯片从安全芯片中获取传导损耗参数;其中,所述传导损耗参数用于指示测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程对测距造成的距离损耗;The first acquisition module is configured to acquire a conduction loss parameter from a security chip by an ultra-wideband UWB chip; wherein, the conduction loss parameter is used to indicate that a ranging signal passes from the antenna of the terminal device to the UWB of the terminal device The distance loss caused by the conduction process of the chip to the ranging;

发送模块,用于向待测设备发送所述测距信号;a sending module, configured to send the ranging signal to the device under test;

测距模块,用于基于所述测距信号的飞行时间,确定所述终端设备与所述待测设备之间的初始距离值;a ranging module, configured to determine an initial distance value between the terminal device and the device under test based on the time-of-flight of the ranging signal;

距离校正模块,用于基于所述初始距离值和所述传导损耗参数,确定所述终端设备与所述待测设备之间的目标距离值。A distance correction module, configured to determine a target distance value between the terminal device and the device under test based on the initial distance value and the conduction loss parameter.

根据本公开实施例的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述任一项所述的测距方法的步骤。According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the distance measuring methods described above are implemented.

根据本公开实施例的第四方面,提供一种终端设备,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a terminal device, including:

安全芯片;security chip;

超带宽UWB芯片;其中,所述UWB芯片用于采用上述任一项所述的方法测量所述终端设备与待测设备之间的目标距离值。An ultra-wideband UWB chip; wherein, the UWB chip is used to measure the target distance value between the terminal device and the device under test by using the method described in any one of the above.

根据本公开实施例的第五方面,提供一种测距装置,包括:According to a fifth aspect of an embodiment of the present disclosure, a ranging device is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为执行所述可执行指令实现上述任一项所述的测距方法的步骤。Wherein, the processor is configured to execute the executable instructions to implement the steps of any one of the distance measuring methods described above.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开中,可以由终端设备的UWB芯片从终端设备的安全芯片中获取传导损耗参数,进而基于该传导损耗参数进行测距,确保传导损耗参数不会被非法篡改,提高了测距的准确性和安全性,进而可以提高使用数字钥匙的安全性以及支付安全性。In this disclosure, the UWB chip of the terminal device can obtain the conduction loss parameter from the security chip of the terminal device, and then perform distance measurement based on the conduction loss parameter, so as to ensure that the conduction loss parameter will not be illegally tampered with, and improve the accuracy of distance measurement And security, which in turn can improve the security of using digital keys and payment security.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1A是根据本公开一示例性实施例示出的一种测距方法的流程示意图;Fig. 1A is a schematic flowchart of a ranging method according to an exemplary embodiment of the present disclosure;

图1B是根据本公开一示例性实施例示出的一种测距过程示意图;Fig. 1B is a schematic diagram of a ranging process according to an exemplary embodiment of the present disclosure;

图2是根据本公开一示例性实施例示出的另一种测距方法的流程示意图;Fig. 2 is a schematic flowchart of another ranging method according to an exemplary embodiment of the present disclosure;

图3是根据本公开一示例性实施例示出的另一种测距方法的流程示意图;Fig. 3 is a schematic flowchart of another ranging method according to an exemplary embodiment of the present disclosure;

图4是根据本公开一示例性实施例示出的另一种测距方法的流程示意图;Fig. 4 is a schematic flowchart of another ranging method according to an exemplary embodiment of the present disclosure;

图5是根据本公开一示例性实施例示出的一种测距装置的框图;Fig. 5 is a block diagram of a distance measuring device according to an exemplary embodiment of the present disclosure;

图6是本公开根据一示例性实施例示出的一种测距装置的一结构示意图。Fig. 6 is a schematic structural diagram of a ranging device according to an exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

目前在基于终端设备与待测设备之间的距离值使用数字钥匙、线下支付等场景下,终端设备获取传导损耗参数的过程的安全性仍有待提高。At present, in scenarios such as using digital keys and offline payment based on the distance value between the terminal device and the device under test, the security of the process for the terminal device to obtain conduction loss parameters still needs to be improved.

例如,在基于终端设备与待测设备之间的距离值使用数字钥匙打开车门或家门时,如果终端设备实际距离待测设备即车门或家门较远,但不法分子通过修改传导损耗参数,使得终端设备误判与车门或家门距离满足开门条件,则容易造成财务损失。For example, when using a digital key to open a car door or home based on the distance value between the terminal device and the device under test, if the terminal device is actually far away from the device under test, that is, the car door or house door, but criminals modify the conduction loss parameters to make the terminal Misjudging the distance between the device and the car door or house door meets the door opening condition, which may easily cause financial losses.

再例如,线下支付场景下,终端设备实际距离支付设备,例如UWB(Ultra WideBand,超带宽)pos机较远,但不法分子通过修改传导损耗参数使得终端设备误判与支付设备距离满足支付条件,则同样容易造成财务损失。Another example, in the offline payment scenario, the terminal device is actually far away from the payment device, such as a UWB (Ultra WideBand, ultra-wideband) pos machine, but criminals make a misjudgment of the distance between the terminal device and the payment device to meet the payment conditions by modifying the conduction loss parameters , it is also easy to cause financial losses.

为了解决上述技术问题,本公开提供了以下测距方法。下面从终端设备侧介绍以下本公开提供的测距方法。In order to solve the above technical problems, the present disclosure provides the following ranging method. The following ranging method provided by the present disclosure is introduced below from the side of the terminal device.

参照图1A所示,图1A是本公开一示例性实施例示出的一种测距方法流程图,该实施例从终端设备侧进行描述,其中,终端设备包括但不限于手机、笔记本电脑、台式计算机、ipad等,如图1A所示,该测距方法可以包括以下步骤:Referring to Fig. 1A, Fig. 1A is a flowchart of a distance measuring method according to an exemplary embodiment of the present disclosure. computer, ipad, etc., as shown in Figure 1A, the ranging method may include the following steps:

在步骤101中,由超带宽UWB芯片从安全芯片中获取传导损耗参数。Instep 101, the ultra-wideband UWB chip acquires conduction loss parameters from the security chip.

在本公开实施例中,UWB(Ultra Wide Band,超带宽)芯片可以从SE(SecureElement,安全芯片)中读取该传导损耗参数。其中,所述传导损耗参数用于指示测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程对测距造成的距离损耗。In the embodiment of the present disclosure, the UWB (Ultra Wide Band, ultra-wideband) chip can read the conduction loss parameter from the SE (SecureElement, secure chip). Wherein, the conduction loss parameter is used to indicate the distance loss caused by the conduction process of the ranging signal from the antenna of the terminal device to the UWB chip of the terminal device to the ranging.

在一个可能的实现方式中,传导损耗参数是在该终端设备出厂前由测试人员写入终端设备的安全芯片上的只读文件的。In a possible implementation manner, the conduction loss parameter is written into a read-only file on the security chip of the terminal device by a tester before the terminal device leaves the factory.

在另一个可能的实现方式中,UWB芯片可以通过自身与安全芯片之间的安全通道,从安全芯片上读取只读文件中的传导损耗参数。In another possible implementation manner, the UWB chip can read the conduction loss parameter in the read-only file from the security chip through the security channel between itself and the security chip.

在步骤102中,向待测设备发送所述测距信号。Instep 102, the ranging signal is sent to the device under test.

在一个可能的实现方式中,待测设备可以为车辆、家庭门锁、支付设备等,本公开对此不作限定。在步骤103中,基于所述测距信号的飞行时间,确定所述终端设备与所述待测设备之间的初始距离值。In a possible implementation manner, the device under test may be a vehicle, a home door lock, a payment device, etc., which is not limited in the present disclosure. Instep 103, an initial distance value between the terminal device and the device under test is determined based on the time-of-flight of the ranging signal.

在一个可能的实现方式中,参照图1B所示,终端设备可以记录发送该测距信号的发送时间点T1,待测设备记录接收到该测距信号的时间点T2。待测设备将测距信号返回给终端设备,待测设备记录发送测距信号的时间点T3,终端设备记录接收到待测设备返回的测距信号的时间点T4In a possible implementation manner, as shown in FIG. 1B , the terminal device may record the sending time point T1 of sending the ranging signal, and the device under test records the time point T2 of receiving the ranging signal. The device under test returns the ranging signal to the terminal device, the device under test records the time point T3 of sending the ranging signal, and the terminal device records the time point T4 of receiving the ranging signal returned by the device under test.

进一步地,终端设备计算Tround和Treply。其中,Tround=T4-T1,Treply=T3-T2。则测距信号在终端设备与待测设备之间的飞行时间可以表示为Tprop,具体计算方式为:Tprop=(Tround-Treply)/2。Further, the terminal device calculates Tround and Treply . Wherein, Tround =T4 -T1 , Treply =T3 -T2 . Then the flight time of the ranging signal between the terminal device and the device under test can be expressed as Tprop , and the specific calculation method is: Tprop =(Tround −Treply )/2.

在计算得到测距信号在终端设备与待测设备之间的飞行时间Tprop之后,可以计算得到终端设备与待测设备之间的初始距离值:d1=Tprop×c,其中,c表示光速,一般为340米每秒。After calculating the flight time Tprop of the ranging signal between the terminal device and the device under test, the initial distance value between the terminal device and the device under test can be calculated: d1 =Tprop ×c, where c represents The speed of light is generally 340 meters per second.

需要说明的是,初始距离值仅为初步估计得到的终端设备与待测设备之间的距离值,还需要考虑到测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程所消耗的时间,因此,该部分损耗会对实际距离产生影响,即在确定终端设备与待测设备之间的距离值时,需要考虑传导损耗参数。It should be noted that the initial distance value is only a preliminary estimate of the distance between the terminal device and the device under test, and it is also necessary to consider that the ranging signal is transmitted from the antenna of the terminal device to the UWB chip of the terminal device Therefore, this part of the loss will affect the actual distance, that is, when determining the distance value between the terminal device and the device under test, the conduction loss parameter needs to be considered.

以上仅为示例性说明,实际应用中,任何通过UWB芯片确定终端设备与任一待测设备之间的距离值的方式均应属于本公开的保护范围。The above is only an illustration, and in practical applications, any method of determining the distance value between a terminal device and any device under test through a UWB chip shall fall within the scope of protection of the present disclosure.

在步骤104中,基于所述初始距离值和所述传导损耗参数,确定所述终端设备与所述待测设备之间的目标距离值。Instep 104, a target distance value between the terminal device and the device under test is determined based on the initial distance value and the conduction loss parameter.

在一个可能的实现方式中,可以将所述初始距离值与所述传导损耗参数指示的距离损耗的差值确定为所述目标距离值。In a possible implementation manner, a difference between the initial distance value and the distance loss indicated by the conduction loss parameter may be determined as the target distance value.

即目标距离值d2=d1-d’,其中,d’是传导损耗参数指示的距离损耗。That is, the target distance value d2 =d1 −d', where d' is the distance loss indicated by the conduction loss parameter.

在一个可能的实现方式中,d’的取值可以为30米。在另一个可能的实现方式中,d’的取值可以为大于30米或小于30米,本公开对此不作限定。In a possible implementation manner, the value of d' may be 30 meters. In another possible implementation manner, the value of d' may be greater than 30 meters or less than 30 meters, which is not limited in the present disclosure.

上述实施例中,由于UWB芯片是从安全芯片中读取的传导损耗参数,确保了传导损耗参数不会被非法用户篡改,因此提高了测距的准确性和安全性。在待测设备为车辆或家庭门锁的情况下,可以提高测量得到的终端设备与车辆或家庭门锁之间的目标距离值的准确性,提高了使用数字钥匙的安全性。在待测设备为支付设备的情况下,提高了支付安全性。In the above embodiment, since the UWB chip reads the conduction loss parameters from the security chip, it is ensured that the conduction loss parameters will not be tampered with by illegal users, thus improving the accuracy and security of distance measurement. In the case that the device to be tested is a vehicle or a home door lock, the accuracy of the measured target distance value between the terminal device and the vehicle or home door lock can be improved, and the security of using the digital key is improved. In the case that the device to be tested is a payment device, the payment security is improved.

在一些可选实施例中,参照图2所示,图2是本公开一示例性实施例示出的一种测距方法流程图,该方法可以应用于终端设备,包括以下步骤:In some optional embodiments, refer to FIG. 2 . FIG. 2 is a flowchart of a ranging method according to an exemplary embodiment of the present disclosure. The method can be applied to a terminal device, and includes the following steps:

在步骤201中,响应于UWB芯片接收到终端设备的服务发送的开始安全测距会话消息,由所述UWB芯片从安全芯片中获取传导损耗参数。Instep 201, in response to the UWB chip receiving a message of starting a security ranging session sent by a service of a terminal device, the UWB chip acquires a conduction loss parameter from a security chip.

在本公开实施例中,终端设备的服务可以包括但不限于数字钥匙服务或者支付服务等任何需要测距的服务。其中,数字钥匙服务可以为DK framework(Digital Keyframework,数字钥匙框架)。In the embodiment of the present disclosure, the service of the terminal device may include but not limited to any service that requires ranging, such as digital key service or payment service. Wherein, the digital key service may be DK framework (Digital Keyframework, digital key framework).

终端设备的服务可以发送Starts Secure Ranging session(启动安全测距会话)消息给UWB芯片,触发UWB芯片启动安全测距过程。此时,UWB芯片可以从终端设备的安全芯片的只读文件中来获取传导损耗参数。其中,所述传导损耗参数用于指示测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程对测距造成的距离损耗。The service of the terminal device can send a Starts Secure Ranging session (start secure ranging session) message to the UWB chip, triggering the UWB chip to start the secure ranging process. At this time, the UWB chip can obtain the conduction loss parameter from the read-only file of the security chip of the terminal device. Wherein, the conduction loss parameter is used to indicate the distance loss caused by the conduction process of the ranging signal from the antenna of the terminal device to the UWB chip of the terminal device to the ranging.

在步骤202中,向待测设备发送所述测距信号。Instep 202, the ranging signal is sent to the device under test.

在一个可能的实现方式中,待测设备可以为车辆、家庭门锁、支付设备等,本公开对此不作限定。In a possible implementation manner, the device under test may be a vehicle, a home door lock, a payment device, etc., which is not limited in the present disclosure.

在步骤203中,基于所述测距信号的飞行时间,确定所述终端设备与所述待测设备之间的初始距离值。Instep 203, an initial distance value between the terminal device and the device under test is determined based on the time-of-flight of the ranging signal.

在本公开实施例中,确定初始距离值的方式与步骤103的方式类似,在此不再赘述。In the embodiment of the present disclosure, the manner of determining the initial distance value is similar to the manner ofstep 103, and will not be repeated here.

在步骤204中,基于所述初始距离值和所述传导损耗参数,确定所述终端设备与所述待测设备之间的目标距离值。Instep 204, a target distance value between the terminal device and the device under test is determined based on the initial distance value and the conduction loss parameter.

在一个可能的实现方式中,可以将所述初始距离值与所述传导损耗参数指示的距离损耗的差值确定为所述目标距离值。In a possible implementation manner, a difference between the initial distance value and the distance loss indicated by the conduction loss parameter may be determined as the target distance value.

上述实施例中,可以由终端设备的数字车钥匙触发启动安全测距会话,从而由UWB芯片从安全芯片读取该传导损耗参数。由于UWB芯片是从安全芯片中读取的传导损耗参数,确保了传导损耗参数不会被非法用户篡改,因此提高了测距的准确性和安全性。在待测设备为车辆或家庭门锁的情况下,可以提高测量得到的终端设备与车辆或家庭门锁之间的目标距离值的准确性,提高了使用数字钥匙的安全性。在待测设备为支付设备的情况下,提高了支付安全性。In the above-mentioned embodiment, the digital car key of the terminal device can be used to trigger the initiation of the security ranging session, so that the UWB chip can read the conduction loss parameter from the security chip. Since the UWB chip reads the conduction loss parameters from the security chip, it is ensured that the conduction loss parameters will not be tampered with by illegal users, thus improving the accuracy and safety of distance measurement. In the case that the device to be tested is a vehicle or a home door lock, the accuracy of the measured target distance value between the terminal device and the vehicle or home door lock can be improved, and the security of using the digital key is improved. In the case that the device to be tested is a payment device, the payment security is improved.

在一些可选实施例中,参照图3所示,图3是本公开一示例性实施例示出的一种测距方法流程图,该方法可以应用于终端设备,包括以下步骤:In some optional embodiments, refer to FIG. 3 . FIG. 3 is a flowchart of a ranging method according to an exemplary embodiment of the present disclosure. The method can be applied to a terminal device, and includes the following steps:

在步骤301中,由UWB芯片从安全芯片获取传导损耗参数。Instep 301, the UWB chip acquires conduction loss parameters from the security chip.

其中,所述传导损耗参数用于指示测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程对测距造成的距离损耗。Wherein, the conduction loss parameter is used to indicate the distance loss caused by the conduction process of the ranging signal from the antenna of the terminal device to the UWB chip of the terminal device to the ranging.

在步骤302中,由所述UWB芯片从所述安全芯片获取测距密钥。Instep 302, the UWB chip acquires a ranging key from the security chip.

其中,测距密钥用于对测距前导码进行加密或解密,测距前导码用于指示待测设备接收所述终端设备发送的所述测距信号。在本公开实施例中,待测设备可以为车辆、家庭门锁、支付设备等,本公开对此不作限定。Wherein, the ranging key is used to encrypt or decrypt the ranging preamble, and the ranging preamble is used to instruct the device under test to receive the ranging signal sent by the terminal device. In the embodiment of the present disclosure, the device under test may be a vehicle, a home door lock, a payment device, etc., which is not limited in the present disclosure.

在本公开实施例中,不限定步骤301与步骤302的执行顺序。In the embodiment of the present disclosure, the execution sequence ofstep 301 and step 302 is not limited.

在步骤303中,通过所述测距密钥对所述测距前导码进行加密,得到加密后的测距前导码。Instep 303, the ranging preamble is encrypted by the ranging key to obtain an encrypted ranging preamble.

在本公开实施例中,UWB芯片可以通过测距密钥对所述测距前导码进行加密,得到加密后的测距前导码。In the embodiment of the present disclosure, the UWB chip may encrypt the ranging preamble by using a ranging key to obtain an encrypted ranging preamble.

在步骤304中,发送加密后的测距前导码给待测设备。Instep 304, the encrypted ranging preamble is sent to the device under test.

其中,待测设备可以通过测距密钥对加密后的测距前导码进行解密,得到解密后的测距前导码。待测设备基于该解密后的测距前导码,确定终端设备正在进行测距,此时,待测设备可以准备接收终端设备发送的测距信号。Wherein, the device under test may decrypt the encrypted ranging preamble by using the ranging key to obtain the decrypted ranging preamble. Based on the decrypted ranging preamble, the device under test determines that the terminal device is performing ranging, and at this time, the device under test may prepare to receive a ranging signal sent by the terminal device.

在步骤305中,向待测设备发送所述测距信号。Instep 305, the ranging signal is sent to the device under test.

在步骤306中,基于所述测距信号的飞行时间,确定所述终端设备与所述待测设备之间的初始距离值。Instep 306, an initial distance value between the terminal device and the device under test is determined based on the time-of-flight of the ranging signal.

在本公开实施例中,确定初始距离值的方式与步骤103的方式类似,在此不再赘述。In the embodiment of the present disclosure, the manner of determining the initial distance value is similar to the manner ofstep 103, and will not be repeated here.

在步骤307中,基于所述初始距离值和所述传导损耗参数,确定所述终端设备与所述待测设备之间的目标距离值。Instep 307, a target distance value between the terminal device and the device under test is determined based on the initial distance value and the conduction loss parameter.

在一个可能的实现方式中,可以将所述初始距离值与所述传导损耗参数指示的距离损耗的差值确定为所述目标距离值。In a possible implementation manner, a difference between the initial distance value and the distance loss indicated by the conduction loss parameter may be determined as the target distance value.

上述实施例中,UWB芯片可以从安全芯片获取传导损耗参数和测距密钥。确保了传导损耗参数和测距密钥均不会被非法用户篡改,因此提高了测距的准确性和安全性。在待测设备为车辆或家庭门锁的情况下,可以提高测量得到的终端设备与车辆或家庭门锁之间的目标距离值的准确性,提高了使用数字钥匙的安全性。在待测设备为支付设备的情况下,提高了支付安全性。In the above embodiment, the UWB chip can obtain the conduction loss parameter and the ranging key from the security chip. It is ensured that both the conduction loss parameter and the ranging key will not be tampered by illegal users, thus improving the accuracy and security of ranging. In the case that the device to be tested is a vehicle or a home door lock, the accuracy of the measured target distance value between the terminal device and the vehicle or home door lock can be improved, and the security of using the digital key is improved. In the case that the device to be tested is a payment device, the payment security is improved.

在一些可选实施例中,参照图4所示,图4是本公开一示例性实施例示出的一种测距方法流程图,在本公开实施例中,待测设备为车辆,终端设备的服务为数字钥匙服务,具体为数字钥匙框架,该方法包括以下步骤:In some optional embodiments, refer to FIG. 4 . FIG. 4 is a flowchart of a ranging method in an exemplary embodiment of the present disclosure. In this embodiment of the present disclosure, the device to be tested is a vehicle, and the terminal device The service is a digital key service, specifically the digital key framework, and the method includes the following steps:

在步骤400中,终端设备进行邻近探测。In step 400, the terminal device performs proximity detection.

在一个可能的实现中,终端设备可以通过蓝牙模块探测周围设备。在另一个可能的实现方式中,终端设备也可以通过WiFi(Wireless Fidelity,无线保真)、NFC(NearField Communication,近场通信)等方式探测周围设备。In a possible implementation, the terminal device can detect surrounding devices through the Bluetooth module. In another possible implementation manner, the terminal device may also detect surrounding devices by means of WiFi (Wireless Fidelity, wireless fidelity), NFC (NearField Communication, near field communication), and the like.

在步骤401中,车辆与终端设备的数字钥匙框架进行交互,建立测距会话。In step 401, the vehicle interacts with the digital key framework of the terminal device to establish a distance measurement session.

在本公开实施例中,终端设备探测到车辆的情况下,可以接收车辆发送给终端设备的数字钥匙框架的测距会话建立请求消息,当然,该消息也可以是测距会话恢复请求消息。In the embodiment of the present disclosure, when the terminal device detects a vehicle, it may receive a distance measurement session establishment request message sent by the vehicle to the digital key framework of the terminal device. Of course, the message may also be a distance measurement session recovery request message.

进一步地,数字钥匙框架提供UWB会话信息和相关索引信息等给车辆。Further, the digital key framework provides UWB session information and related index information to the vehicle.

在步骤402中,终端设备的数字钥匙框架发送安全测距会话消息给UWB芯片。In step 402, the digital key framework of the terminal device sends a secure ranging session message to the UWB chip.

在步骤403中,由超带宽UWB芯片从安全芯片中获取传导损耗参数。In step 403, the ultra-wideband UWB chip acquires conduction loss parameters from the security chip.

其中,所述传导损耗参数用于指示测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程对测距造成的距离损耗。Wherein, the conduction loss parameter is used to indicate the distance loss caused by the conduction process of the ranging signal from the antenna of the terminal device to the UWB chip of the terminal device to the ranging.

在一个可能的实现方式中,由所述UWB芯片通过所述UWB芯片与所述安全芯片之间的安全通道,从所述安全芯片上读取所述只读文件中的所述传导损耗参数。In a possible implementation manner, the UWB chip reads the conduction loss parameter in the read-only file from the security chip through a security channel between the UWB chip and the security chip.

在另一个可能的实现方式中,由所述UWB芯片从安全芯片的数字钥匙程序中读取该传导损耗参数。In another possible implementation manner, the UWB chip reads the conduction loss parameter from a digital key program of the security chip.

在步骤404中,由超带宽UWB芯片从安全芯片获取安全测距数据。In step 404, the ultra-wideband UWB chip acquires safe ranging data from the safe chip.

其中,安全测距数据包括但不限于测距密钥等信息。所述UWB芯片可以从安全芯片的数字钥匙程序中读取安全测距数据。Wherein, the secure ranging data includes, but is not limited to, information such as a ranging key. The UWB chip can read safe ranging data from the digital key program of the safe chip.

在步骤405中,安全芯片确定安全测距数据后提供给UWB芯片。In step 405, the security chip determines the security ranging data and provides it to the UWB chip.

在步骤406中,UWB芯片进行安全测距计算。In step 406, the UWB chip performs safe distance measurement calculation.

在本公开实施例中,可以由终端设备向车辆发送所述测距信号,UWB芯片基于所述测距信号的飞行时间,确定所述终端设备与所述待测设备之间的初始距离值,进一步地,UWB芯片将所述初始距离值与所述传导损耗参数指示的距离损耗的差值确定为所述目标距离值。In the embodiment of the present disclosure, the ranging signal may be sent to the vehicle by the terminal device, and the UWB chip determines the initial distance value between the terminal device and the device under test based on the time-of-flight of the ranging signal, Further, the UWB chip determines the difference between the initial distance value and the distance loss indicated by the conduction loss parameter as the target distance value.

在确定了目标距离值之后,可以由终端设备的数字钥匙框架判断终端设备与车辆之间的目标距离值是否满足使用数字车钥匙的距离条件,在满足该距离条件的情况下,可以使用数字车钥匙执行例如打开车门、关闭车门、遥控车窗等操作。After the target distance value is determined, the digital key framework of the terminal device can judge whether the target distance value between the terminal device and the vehicle meets the distance condition for using the digital car key. If the distance condition is met, the digital car key can be used The key performs operations such as opening the door, closing the door, remote control of the windows, etc.

上述实施例中,可以由终端设备的UWB芯片从终端设备的安全芯片中获取传导损耗参数,进而基于该传导损耗参数进行测距,确保传导损耗参数不会被非法篡改,提高了测距的准确性和安全性,进而提高了使用数字钥匙的安全性。In the above embodiment, the UWB chip of the terminal device can obtain the conduction loss parameter from the security chip of the terminal device, and then perform distance measurement based on the conduction loss parameter, so as to ensure that the conduction loss parameter will not be illegally tampered with, and improve the accuracy of distance measurement. Safety and security, thereby improving the security of using digital keys.

需要说明的是,本公开的测距方法不局限于适用在基于测距结果使用数字钥匙开门或进行支付的场景下,其他需要基于终端设备与待测设备之间的目标距离值进行后续操作的应用场景均可适用本公开提供的测距方法,同样均应属于本公开的保护范围。It should be noted that the distance measurement method of the present disclosure is not limited to the scenarios where the digital key is used to open the door or make payment based on the distance measurement results, and other scenarios that require subsequent operations based on the target distance value between the terminal device and the device under test The ranging method provided in the present disclosure can be applied to the application scenarios, and should also belong to the protection scope of the present disclosure.

与前述应用功能实现方法实施例相对应,本公开还提供了应用功能实现装置的实施例。Corresponding to the foregoing embodiments of the method for implementing application functions, the present disclosure also provides embodiments of apparatuses for implementing application functions.

参照图5,图5是根据一示例性实施例示出的一种测距装置框图,所述装置应用于终端设备,所述装置包括:Referring to Fig. 5, Fig. 5 is a block diagram of a ranging device according to an exemplary embodiment, the device is applied to a terminal device, and the device includes:

第一获取模块501,用于由超带宽UWB芯片从安全芯片中获取传导损耗参数;其中,所述传导损耗参数用于指示测距信号从所述终端设备的天线到所述终端设备的所述UWB芯片的传导过程对测距造成的距离损耗;Thefirst acquisition module 501 is configured to acquire a conduction loss parameter from a security chip by an ultra-wideband UWB chip; wherein, the conduction loss parameter is used to indicate the distance between the ranging signal from the antenna of the terminal device to the terminal device The distance loss caused by the conduction process of the UWB chip to the ranging;

发送模块502,用于向待测设备发送所述测距信号;A sendingmodule 502, configured to send the ranging signal to the device under test;

测距模块503,用于基于所述测距信号的飞行时间,确定所述终端设备与所述待测设备之间的初始距离值;A rangingmodule 503, configured to determine an initial distance value between the terminal device and the device under test based on the time-of-flight of the ranging signal;

距离校正模块504,用于基于所述初始距离值和所述传导损耗参数,确定所述终端设备与所述待测设备之间的目标距离值。Adistance correction module 504, configured to determine a target distance value between the terminal device and the device under test based on the initial distance value and the conduction loss parameter.

可选地,所述传导损耗参数是在所述终端设备出厂前写入所述安全芯片上的只读文件的。Optionally, the conduction loss parameter is written into a read-only file on the security chip before the terminal device leaves the factory.

可选地,所述第一获取模块包括:Optionally, the first acquisition module includes:

读取子模块,用于由所述UWB芯片通过所述UWB芯片与所述安全芯片之间的安全通道,从所述安全芯片上读取所述只读文件中的所述传导损耗参数。The reading sub-module is used for the UWB chip to read the conduction loss parameter in the read-only file from the security chip through the security channel between the UWB chip and the security chip.

可选地,所述距离校正模块包括:Optionally, the distance correction module includes:

距离校正子模块,用于将所述初始距离值与所述传导损耗参数指示的距离损耗的差值确定为所述目标距离值。A distance correction submodule, configured to determine the difference between the initial distance value and the distance loss indicated by the conduction loss parameter as the target distance value.

具体实现方式与上述图1A和图1B提供的实现方式类似,在此不再赘述。The specific implementation manner is similar to the implementation manners provided in FIG. 1A and FIG. 1B above, and will not be repeated here.

在一些可选实施例中,所述装置还包括:In some optional embodiments, the device also includes:

第一控制模块,用于响应于所述UWB芯片接收到所述终端设备的服务发送的启动安全测距会话消息,控制由超带宽UWB芯片从安全芯片中获取传导损耗参数。The first control module is configured to control the ultra-wideband UWB chip to acquire conduction loss parameters from the security chip in response to the UWB chip receiving the start security ranging session message sent by the service of the terminal device.

具体实现方式与上述图2提供的实现方式类似,在此不再赘述。The specific implementation manner is similar to the implementation manner provided in FIG. 2 above, and will not be repeated here.

在一些可选实施例中,所述装置还包括:In some optional embodiments, the device also includes:

第二获取模块,用于由所述UWB芯片从所述安全芯片获取测距密钥;其中,所述测距密钥用于对测距前导码进行加密或解密,所述测距前导码用于指示所述待测设备接收所述终端设备发送的所述测距信号;The second acquisition module is used to obtain the ranging key from the security chip by the UWB chip; wherein, the ranging key is used to encrypt or decrypt the ranging preamble, and the ranging preamble is used Instructing the device under test to receive the ranging signal sent by the terminal device;

加密模块,用于通过所述测距密钥对所述测距前导码进行加密,得到加密后的测距前导码;An encryption module, configured to encrypt the ranging preamble by using the ranging key to obtain an encrypted ranging preamble;

第二控制模块,用于在发送加密后的测距前导码给所述待测设备之后,控制所述发送模块向待测设备发送所述测距信号。The second control module is configured to control the sending module to send the ranging signal to the device under test after sending the encrypted ranging preamble to the device under test.

具体实现方式与上述图3提供的实现方式类似,在此不再赘述。The specific implementation manner is similar to the implementation manner provided in FIG. 3 above, and will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the above-mentioned 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 a place, or can also be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.

相应地,本公开还提供了一种计算机可读存储介质,用于存储有计算机程序,所述计算机程序被处理器执行时用于实现上述任一项所述的测距方法的步骤。Correspondingly, the present disclosure also provides a computer-readable storage medium for storing a computer program, and when the computer program is executed by a processor, it is used to implement the steps of any one of the distance measuring methods described above.

相应地,本公开还提供了一种终端设备,包括:Correspondingly, the present disclosure also provides a terminal device, including:

安全芯片;security chip;

超带宽UWB芯片;其中,所述UWB芯片用于采用上述任一项所述的方法测量所述终端设备与待测设备之间的目标距离值。An ultra-wideband UWB chip; wherein, the UWB chip is used to measure the target distance value between the terminal device and the device under test by using the method described in any one of the above.

相应地,本公开还提供了一种测距装置,包括:Correspondingly, the present disclosure also provides a distance measuring device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为执行所述可执行指令实现上述车主端设备侧任一项所述的测距方法的步骤。Wherein, the processor is configured to execute the executable instructions to implement the steps of any one of the ranging methods described above on the vehicle owner side device side.

图6是根据一示例性实施例示出的一种测距装置框图。例如,装置600可以是移动电话,计算机,数字广播终端设备,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端设备。Fig. 6 is a block diagram of a ranging device according to an exemplary embodiment. For example, thedevice 600 may be a terminal device such as a mobile phone, a computer, a digital broadcasting terminal device, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件616,以及通信组件618。6,device 600 may include one or more of the following components: processingcomponent 602,memory 604,power supply component 606,multimedia component 608,audio component 610, input/output (I/O)interface 612,sensor component 616, andcommunication component 618 .

处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。Theprocessing component 602 generally controls the overall operations of thedevice 600, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing component 602 may include one ormore processors 620 to execute instructions to complete all or part of the steps of the above method. Additionally,processing component 602 may include one or more modules that facilitate interaction betweenprocessing component 602 and other components. For example,processing component 602 may include a multimedia module to facilitate interaction betweenmultimedia component 608 andprocessing component 602 .

处理组件602中的其中一个处理器620可以被配置为执行上述用于任一所述的测距方法。One of theprocessors 620 in theprocessing component 602 may be configured to execute any one of the foregoing ranging methods.

存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Thememory 604 is configured to store various types of data to support operations at thedevice 600 . Examples of such data include instructions for any application or method operating ondevice 600, contact data, phonebook data, messages, pictures, videos, and the like. Thememory 604 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件606为装置600的各种组件提供电力。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。Thepower supply component 606 provides power to various components of thedevice 600 .Power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power fordevice 600 .

多媒体组件608包括在装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Themultimedia component 608 includes a screen that provides an output interface between thedevice 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, themultimedia component 608 includes a front camera and/or a rear camera. When thedevice 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件618发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。Theaudio component 610 is configured to output and/or input audio signals. For example, theaudio component 610 includes a microphone (MIC) configured to receive external audio signals when thedevice 600 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored inmemory 604 or sent viacommunication component 618 . In some embodiments, theaudio component 610 also includes a speaker for outputting audio signals.

I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between theprocessing component 602 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件616包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件616可以检测到装置600的打开/关闭状态,组件的相对定位,例如组件为装置600的显示器和小键盘,传感器组件616还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件616可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件616还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件616还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 616 includes one or more sensors for providing status assessments of various aspects ofdevice 600 . For example, thesensor component 616 can detect the open/closed state of thedevice 600, the relative positioning of components, such as the display and keypad of thedevice 600, thesensor component 616 can also detect a change in the position of thedevice 600 or a component of thedevice 600, the user Presence or absence of contact withdevice 600 ,device 600 orientation or acceleration/deceleration and temperature change ofdevice 600 .Sensor assembly 616 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.Sensor assembly 616 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor component 616 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件618被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,3G,4G,5G,6G或它们的组合。在一个示例性实施例中,通信组件618经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件618还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Thecommunication component 618 is configured to facilitate wired or wireless communication between theapparatus 600 and other devices. Thedevice 600 can access wireless networks based on communication standards, such as WiFi, 3G, 4G, 5G, 6G or a combination thereof. In an exemplary embodiment, thecommunication component 618 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 618 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment,apparatus 600 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as thememory 604 including instructions, which can be executed by theprocessor 620 of thedevice 600 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. The term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements but also other elements not expressly listed elements, or also elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

CN202111566263.5A2021-12-202021-12-20 Distance measuring method and device, storage medium and terminal equipmentPendingCN116299382A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111566263.5ACN116299382A (en)2021-12-202021-12-20 Distance measuring method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111566263.5ACN116299382A (en)2021-12-202021-12-20 Distance measuring method and device, storage medium and terminal equipment

Publications (1)

Publication NumberPublication Date
CN116299382Atrue CN116299382A (en)2023-06-23

Family

ID=86782053

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111566263.5APendingCN116299382A (en)2021-12-202021-12-20 Distance measuring method and device, storage medium and terminal equipment

Country Status (1)

CountryLink
CN (1)CN116299382A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2025162042A1 (en)*2024-01-312025-08-07华为技术有限公司Uwb key transmission method and related apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105814835A (en)*2013-12-272016-07-27英特尔公司Apparatus, system and method of protecting domains of a multimode wireless radio transceiver
CN110708388A (en)*2019-10-152020-01-17大陆投资(中国)有限公司Vehicle body safety anchor node device, method and network system for providing safety service
CN111095963A (en)*2017-09-282020-05-01苹果公司Method and architecture for secure ranging
CN112051562A (en)*2020-08-262020-12-08广东博智林机器人有限公司Distance compensation method and device for wireless ranging, electronic equipment and storage medium
US20210051178A1 (en)*2019-08-152021-02-18ColorTokens, Inc.Determination and autocorrection of modified security policies
CN112995948A (en)*2021-02-032021-06-18北京小米移动软件有限公司Vehicle function control method, vehicle function control device, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105814835A (en)*2013-12-272016-07-27英特尔公司Apparatus, system and method of protecting domains of a multimode wireless radio transceiver
CN111095963A (en)*2017-09-282020-05-01苹果公司Method and architecture for secure ranging
US20210051178A1 (en)*2019-08-152021-02-18ColorTokens, Inc.Determination and autocorrection of modified security policies
CN110708388A (en)*2019-10-152020-01-17大陆投资(中国)有限公司Vehicle body safety anchor node device, method and network system for providing safety service
CN112051562A (en)*2020-08-262020-12-08广东博智林机器人有限公司Distance compensation method and device for wireless ranging, electronic equipment and storage medium
CN112995948A (en)*2021-02-032021-06-18北京小米移动软件有限公司Vehicle function control method, vehicle function control device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2025162042A1 (en)*2024-01-312025-08-07华为技术有限公司Uwb key transmission method and related apparatus

Similar Documents

PublicationPublication DateTitle
US20170289181A1 (en)Payment method, apparatus and medium
EP3076716A1 (en)Method and apparatus for network access
CN106170004B (en) Method and device for processing verification code
CN106453052B (en) Message interaction method and device
EP3151507A1 (en)Methods and apparatuses for controlling device
CN108632081A (en)Network Situation appraisal procedure, device and storage medium
US20210326429A1 (en)Access control method and device, electronic device and storage medium
CN105656948A (en)Account login method and device
KR101642019B1 (en)Method, apparatus, program, and recording medium of verifying terminal
CN104331668A (en)Wrong password prompting method and device
CN105471814A (en)Account number management method and account number management device
CN105100074A (en)Data operation processing method, device and terminal equipment
CN106909827A (en)Using account management method and device
CN106453527A (en)Account sharing method and equipment
CN107491681B (en)Fingerprint information processing method and device
CN104063654A (en)Monitoring method and device for application program
CN107147815B (en) Taxi-based call processing method and device
CN107819740B (en) Verification method of terminal equipment, terminal equipment, speaker, server and medium
CN105491518A (en)Method and device for social reminding based on wearable devices
CN107612058A (en)Charging method and equipment
CN106488132A (en)Photographic method and device
CN106789070A (en)The decryption method of data, device and terminal
CN116299382A (en) Distance measuring method and device, storage medium and terminal equipment
US10671827B2 (en)Method and device for fingerprint verification
CN107743063A (en) Data processing method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp