Ranging method and device
By receiving and analyzing the relative coordinates and time difference of acoustic signals, the distance offset between devices is measured in real time, solving the ranging error problem caused by Bluetooth time synchronization and improving the accuracy and efficiency of ranging.
Patent Information
- Application Number
- CN202411247205.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2026-03-10
AI Technical Summary
Existing technologies suffer from significant errors when performing Bluetooth time synchronization between different models of mobile phones and headphones, resulting in inaccurate distance measurement. Adaptation is labor-intensive and only applies to specific devices, limiting its applicability.
By sending an instruction message to instruct the second communication device to send an acoustic signal, receiving multiple acoustic signals, and determining the distance offset value based on the relative coordinates, reception time, and time difference, the distance error caused by the time difference corresponding to the load is measured in real time, reducing the adaptation workload and improving the ranging accuracy.
Real-time measurement of distance error between devices reduces distance measurement error caused by time difference in load, improves the accuracy and efficiency of distance measurement, and is suitable for distance measurement between different devices.
Smart Images

Figure CN121633991A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of wireless communication, and more particularly, to a ranging method and device. BACKGROUND
[0002] Distance is an important parameter that needs to be detected in different occasions and controls. For example, when one electronic device searches for another electronic device, the distance and the included angle between the two electronic devices are accurately measured by using ultra wide band (UWB) technology, so as to inform the user of the specific distance and direction of the searched electronic device, and then the searched electronic device is accurately found. Taking searching for a headset by using a mobile phone as an example, the mobile phone and the headset need to be time-synchronized by using Bluetooth first, and then the distance between the mobile phone and the headset is determined according to the time difference of arrival of the ultrasonic waves.
[0003] Among them, for different models of mobile phones and / or different models of headsets, due to the device capability and the time delay inside the chip, there is a fixed time offset (i.e., the time difference of Bluetooth time synchronization) in the Bluetooth time synchronization; and there are also different fixed time offsets under different Bluetooth loads, so it is necessary to measure and compensate in advance. That is to say, every time a new mobile phone is added, the time difference of Bluetooth time synchronization between the mobile phone and different models of headsets and the fixed time offset under the corresponding Bluetooth load of the mobile phone need to be measured; similarly, every time a new headset is added, the time difference of Bluetooth time synchronization between the headset and different models of mobile phones and the fixed time offset under different Bluetooth loads need to be measured.
[0004] However, this method has a large adaptation workload, and the above adaptation work is only for different models of devices, and there is a large error in the time offset between each pair of devices (such as a mobile phone and a headset). SUMMARY
[0005] The present application provides a ranging method and device, which can reduce the distance error corresponding to different loads and improve the accuracy of ranging.
[0006] In a first aspect, an embodiment of the present application provides a ranging method, which can be executed by a first communication device. In the present application, the first communication device can refer to the first communication device itself, a component (for example, a communication module, a processor, a circuit, a chip, or a chip system) in the first communication device, or a logic module or software capable of realizing all or part of the functions of the first communication device. The method comprises the following steps: sending indication information, the indication information indicating that a second communication device sends a sound wave signal; receiving N sound wave signals; and determining a distance offset value according to N relative coordinates, N receiving times, and a first time difference. The N sound wave signals correspond to the N relative coordinates respectively, the N relative coordinates are coordinates of N signal receiving positions relative to a reference position respectively, N is a positive integer greater than or equal to 3, the N receiving times are receiving times corresponding to the N sound wave signals respectively, the first time difference is a time difference of a signal between the first communication device and the second communication device, and the distance offset value is used to determine a distance between the first communication device and the second communication device.
[0007] Based on the scheme, an embodiment of the present application provides a ranging method. The first communication device can send indication information to the second communication device, to instruct the second communication device to send a sound wave signal. Thus, the first communication device can receive the sound wave signal at different positions (that is, N relative coordinates, the N relative coordinates being coordinates of N signal receiving positions relative to a reference position respectively) respectively (that is, receiving N sound wave signals). Further, according to the position where the sound wave signal is located, the receiving time of the sound wave signal, and the signal time difference (that is, the first time difference) between the two, the distance offset value between the first communication device and the second communication device is determined, so that the ranging can be performed based on the distance offset value, and the accuracy of the ranging is improved.
[0008] It can be understood that, when the first communication device and the second communication device transmit signals, in order to improve the accuracy of the determined transmission time of the signal, the clock of the two devices needs to be synchronized. That is, the time of the two devices needs to be synchronized before the signal transmission. Thus, the signal time difference between the two devices can also be considered as the time difference determined in the process of synchronizing the time of the two devices (for example, the time difference corresponding to the Bluetooth time synchronization).
[0009] Therefore, in the present application, before ranging, the first communication device can determine the distance error between the two devices based on the position where the first communication device is located when receiving the sound wave signal and the receiving time of the sound wave signal, and further, subtract the distance error caused by the time difference existing in the time adjustment (i.e., the signal time difference between the two, or the first time difference) from the distance error to obtain the distance error caused by the time difference corresponding to the load (i.e., the distance offset value). That is, in the present application, the distance error caused by the time difference corresponding to the load can be measured in real time. Compared with the scheme of manually measuring and storing the distance error caused by the time difference corresponding to different loads in advance, the workload of adaptation can be reduced.
[0010] In addition, in the present application, for each device pair (i.e., the device pair composed of the first communication device and the second communication device), the distance error caused by the time difference corresponding to the load between the two can be measured in real time; compared with the scheme of measuring only the distance error caused by the time difference corresponding to the load between devices of different styles, the measurement is more accurate, and the accuracy of the subsequent ranging result is also higher.
[0011] In a possible design, the sending indication information includes: determining whether there is a distance offset value according to the load of the first communication device; in the case where there is no distance offset value, sending the indication information; and in the case where there is a distance offset value, determining the distance between the first communication device and the second communication device by using the distance offset value.
[0012] Based on the possible design, before sending the indication information, the first communication device can first determine whether there is a distance offset value, and if there is a distance offset value, the first communication device can directly determine the distance between the first communication device and the second communication device based on the distance offset value, without the need to determine the distance offset value again, thereby saving resources and improving the efficiency of ranging.
[0013] In a possible design, the distance offset value is determined according to the N relative coordinates, the N receiving times, and the first time difference, including: determining a second time difference according to the N relative coordinates and the N receiving times, the second time difference being the local time difference between the first communication device and the second communication device; and determining the distance offset value according to the second time difference and the first time difference.
[0014] In a possible design, the second time difference is determined according to the N relative coordinates and the N receiving times, including: determining the coordinate position of the second communication device according to the N relative coordinates and the N receiving times; determining N distances, the N distances being the distances between the N relative coordinates and the coordinate position of the second communication device respectively; and determining the second time difference according to the N distances and the N receiving times.
[0015] In a possible design, the coordinate position of the second communication apparatus is determined according to the N relative coordinates and the N receiving times, including: the coordinate position of the second communication apparatus is determined according to the N relative coordinates, the N receiving times, and the N sending times, where the N sending times are respectively corresponding sending times of the N sound wave signals.
[0016] In a possible design, the following relationship is met among the N relative coordinates, the N receiving times, the N sending times, and the coordinate position of the second communication apparatus:
[0017]
[0018] where (x, y) represents the coordinate position of the second communication apparatus, (x i , y i ) represents the i-th coordinate in the N relative coordinates, i represents the number of the i-th coordinate in the N relative coordinates, t' i represents the receiving time of the sound wave signal received at the i-th coordinate, t i represents the sending time of the sound wave signal received at the i-th coordinate, (x j , y j ) represents the j-th coordinate in the N relative coordinates, j represents the number of the j-th coordinate in the N relative coordinates, t' j represents the receiving time of the sound wave signal received at the j-th coordinate, t j represents the sending time of the sound wave signal received at the j-th coordinate, the i-th coordinate and the j-th coordinate are any two coordinates in the N relative coordinates, v represents the transmission speed of the sound wave signal, i and j are positive integers less than or equal to N, and i and j are different.
[0019] Based on the above two possible designs, the first communication apparatus can determine the coordinate position of the second communication apparatus based on the N relative coordinates and the N receiving and sending times (i.e., receiving times and sending times). In this way, whether the sending mode of the sound wave signal is non-periodic sending or periodic sending, the coordinate position of the second communication apparatus can be determined. The application range is wider.
[0020] In a possible design, the sound wave signal is periodically sent; the following relationship is met among the N relative coordinates, the N receiving times, and the coordinate position of the second communication apparatus:
[0021]
[0022] where (x, y) represents the coordinate position of the second communication apparatus, (x i , y irepresents the i-th coordinate in the N relative coordinates, i represents the number of the i-th coordinate in the N relative coordinates, t i represents the receiving time of the sound wave signal received at the i-th coordinate, (x j , y j ) represents the j-th coordinate in the N relative coordinates, j represents the number of the j-th coordinate in the N relative coordinates, t j ' represents the receiving time of the sound wave signal received at the j-th coordinate, the i-th coordinate and the j-th coordinate are any two coordinates in the N relative coordinates, T represents the sending period of the sound wave signal, v represents the transmission speed of the sound wave signal, i and j are positive integers less than or equal to N, and i and j are different.
[0023] Based on the possible design, when the sound wave signal is periodically sent, the first communication device can determine the coordinate position of the second communication device based on the N relative coordinates, the N receiving times (i.e., the receiving time and the sending time), and the sending period. That is, in this scheme, the N sending times do not need to be used, so the second communication device does not need to inform the first communication device of the N sending times, thereby reducing the air interface resources.
[0024] In a possible design, the indication information instructs the second communication device to send the sound wave signal, including: the indication information instructs the second communication device to periodically send the sound wave signal.
[0025] In a possible design, the N distances, the N receiving times, and the second time difference satisfy the following relationship:
[0026]
[0027] wherein, Δt represents the second time difference, N represents the number of the N distances, D k represents the k-th distance in the N distances, k = 1, 2, …, N, t k represents the sending time of the sound wave signal used to determine the k-th distance in the N sound wave signals, t′ k represents the receiving time of the sound wave signal used to determine the k-th distance in the N sound wave signals, and b represents the transmission speed of the sound wave signal.
[0028] In a possible design, the second time difference, the first time difference, and the distance offset value satisfy the following relationship:
[0029] d = v * (Δt - Δt B );
[0030] wherein, d represents the distance offset value, Δt represents the second time difference, Δt B represents the first time difference, and v represents the transmission speed of the sound wave signal.
[0031] In a possible design, before receiving the N acoustic signals, the measurement method further includes: providing a preset motion track, and positions corresponding to the N relative coordinates are determined based on the preset motion track.
[0032] Based on this possible design, in order to improve the accuracy of the calculated distance offset value, the N relative coordinates can be made as much as possible not to be on a straight line. Generally, the user moves with the first communication device, so that the first communication device is at different positions (such as the N relative coordinates), but the user can not be aware of whether the positions moved to and the other positions are on a straight line, and therefore, a motion track (i.e., the preset motion track) can be displayed on the first communication device, so that the user can move based on the motion track, thereby achieving the purpose of receiving the acoustic signals at the N relative positions respectively.
[0033] In a second aspect, an embodiment of the present application provides a ranging method, which can be executed by a second communication device. In the present application, the "second communication device" can refer to the second communication device itself, a component (for example, a communication module, a processor, a circuit, a chip, or a chip system) in the second communication device, or a logic module or software capable of realizing all or part of the functions of the second communication device. The method includes: receiving indication information, the indication information indicating that the second communication device sends acoustic signals; and sending a plurality of acoustic signals according to the indication information, wherein N acoustic signals correspond to N relative coordinates respectively, the N relative coordinates being coordinates of N signal receiving positions relative to a reference position respectively, the N relative coordinates being used to determine a distance offset value, and the distance offset value being used to determine a distance between the first communication device and the second communication device, and N being a positive integer greater than or equal to 3.
[0034] Based on this scheme, an embodiment of the present application provides a ranging method. The second communication device can receive indication information from the first communication device, and send acoustic signals based on the indication information. Therefore, the first communication device can receive acoustic signals at different positions (i.e., the N relative coordinates, the N relative coordinates being coordinates of N signal receiving positions relative to a reference position respectively) respectively (i.e., receive N acoustic signals), and further, determine a distance offset value between the first communication device and the second communication device based on the position where the acoustic signal is located, the receiving time of the acoustic signal, and the signal time difference (i.e., the first time difference) between the two, so that the distance offset value can be used for ranging, thereby improving the accuracy of ranging.
[0035] It is understandable that when the first communication device and the second communication device transmit signals, in order to improve the accuracy of the determined signal transmission time, they usually need to keep their clocks synchronized; that is, time synchronization is required before signal transmission between them. Therefore, the signal time difference between the two can also be considered as the time difference determined during the time synchronization process (such as the time difference corresponding to Bluetooth time synchronization). In addition, the distance determined based on different locations and different reception times of sound wave signals is usually the distance error between the two devices, and the distance error between the two devices usually includes the distance error caused by the time difference during the time synchronization process and the time difference corresponding to different loads.
[0036] Therefore, in this application, before ranging, the first communication device can determine the distance error between the two devices based on its location when receiving the acoustic signal and the reception time of the acoustic signal. Furthermore, it subtracts the distance error caused by the time difference during synchronization (i.e., the signal time difference between the two devices, or the first time difference) from this distance error to obtain the distance error caused by the time difference corresponding to the load (i.e., the distance offset value). That is, this application can measure the distance error caused by the time difference corresponding to the load in real time. Compared to manually measuring and storing the distance errors caused by the time differences corresponding to different loads in advance, this reduces the workload of adaptation.
[0037] Furthermore, in this application, for each device pair (i.e., a device pair consisting of a first communication device and a second communication device), the distance error caused by the time difference corresponding to the load between the two can be measured in real time; compared with the scheme that only measures the distance error caused by the time difference corresponding to the load between different types of devices, the measurement accuracy is higher; and the accuracy of the subsequent distance measurement results is also higher.
[0038] In one possible design, N phase coordinates are used to determine the distance offset value, including: N phase coordinates, N reception times, and a first time difference. The N reception times are the reception times corresponding to the N acoustic signals respectively, and the first time difference is the time difference between the signals between the first communication device and the second communication device.
[0039] In one possible design, N phase coordinates, N reception times, and a first time difference are used to determine the distance offset value, including: N phase coordinates and N reception times are used to determine a second time difference, the second time difference and the first time difference are used to determine the distance offset value, and the second time difference is the local time difference between the first communication device and the second communication device.
[0040] In one possible design, N phase coordinates and N reception times are used to determine the second time difference, including: N phase coordinates and N reception times are used to determine the coordinate position of the second communication device; the coordinate position of the second communication device and N relative coordinates are used to determine N distances; N distances and N reception times are used to determine the second time difference; and the N distances are the distances between the N relative coordinates and the coordinate position of the second communication device, respectively.
[0041] In one possible design, N phase coordinates and N reception times are used to determine the coordinate position of the second communication device, including: N relative coordinates, N reception times, and N transmission times to determine the coordinate position of the second communication device, where the N transmission times are the transmission times corresponding to the N acoustic wave signals respectively.
[0042] In one possible design, the acoustic signal is transmitted periodically; N phase coordinates and N reception times are used to determine the coordinate position of the second communication device, including: N phase coordinates, N reception times, and the period of the acoustic signal used to determine the coordinate position of the second communication device.
[0043] In one possible design, the instruction information instructs the second communication device to send an acoustic signal, including: the instruction information instructs the second communication device to periodically send an acoustic signal.
[0044] In one possible design, N relative coordinates cannot form a straight line.
[0045] The technical effects of any design in the second aspect can be referenced from the technical effects of the corresponding design in the first aspect, and will not be elaborated here.
[0046] Thirdly, a communication device is provided for implementing various methods. This communication device can be a first communication device as described in the first aspect, or a second communication device as described in the second aspect, or a device included in the first or second communication device, such as a chip or chip system. The communication device includes modules, units, or means corresponding to the implementation of the methods, which can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions.
[0047] In some possible designs, the communication device may include a processing module and a transceiver module. The processing module can be used to implement the processing functions in any of the above aspects and any possible implementations thereof. The transceiver module may include a receiving module and a transmitting module, respectively used to implement the receiving function and the transmitting function in any of the above aspects and any possible implementations thereof.
[0048] In some possible designs, the transceiver module can consist of transceiver circuits, transceivers, transceivers, or communication interfaces.
[0049] Fourthly, a communication device is provided, comprising: a processor and a memory; the memory is used to store computer instructions, which, when executed by the processor, cause the communication device to perform the method described in any aspect. The communication device may be a first communication device as described in the first aspect, or a second communication device as described in the second aspect, or a device included in the first or second communication device, such as a chip or chip system. The communication device includes modules, units, or means corresponding to the implementation of the method, which may be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the function.
[0050] Fifthly, a communication device is provided, comprising: a processor and a communication interface; the communication interface being used to communicate with a module outside the communication device; the processor being used to execute computer programs or instructions to cause the communication device to perform the method described in any aspect. The communication device may be a first communication device as described in the first aspect, or a second communication device as described in the second aspect, or a device included in the first or second communication device, such as a chip or chip system. The communication device includes modules, units, or means corresponding to the implementation of the method, which may be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the function.
[0051] A sixth aspect provides a communication device, comprising: at least one processor; the processor being configured to execute a computer program or instructions to cause the communication device to perform the method described in any aspect. The communication device may be a first communication device as described in the first aspect, or a second communication device as described in the second aspect, or a device included in the first or second communication device, such as a chip or chip system. The communication device includes modules, units, or means corresponding to the implementation of the method, which may be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described.
[0052] In some possible designs, the communication device includes a memory for storing necessary programs, instructions, and / or data. This memory may be coupled to the processor, or it may be independent of the processor.
[0053] In some possible designs, when the device is a chip system, it can be composed of chips or contain chips and other discrete components.
[0054] It is understandable that when the communication device provided by any of the third to sixth aspects is a chip, the sending action / function of the communication device can be understood as outputting information, and the receiving action / function of the communication device can be understood as inputting information.
[0055] In a seventh aspect, a computer-readable storage medium is provided that stores a computer program or instructions that, when executed on a communication device, enable the communication device to perform the method described in any aspect.
[0056] In an eighth aspect, a computer program product containing instructions is provided, which, when run on a communication device, enables the communication device to perform the method described in either aspect.
[0057] Ninth aspect, a communication system is provided, the communication system including a first communication device (or a device included in the first communication device, such as a chip or chip system) in the first aspect and a second communication device (or a device included in the second communication device, such as a chip or chip system) in the second aspect.
[0058] The technical effects of any of the design methods in aspects three through nine can be found in the technical effects of different design methods in aspects one or two above, and will not be repeated here. Attached Figure Description
[0059] Figure 1 A schematic diagram of the architecture of a wireless communication system applicable to embodiments of this application is provided for the purposes of this application;
[0060] Figure 2 A schematic diagram of the structure of a first communication device provided in this application;
[0061] Figure 3 A schematic diagram of the structure of a second communication device provided in this application;
[0062] Figure 4 A schematic diagram of another wireless communication system architecture applicable to embodiments of this application is provided for this application;
[0063] Figure 5 A flowchart illustrating a distance measurement method provided in this application;
[0064] Figure 6 A flowchart illustrating another ranging method provided in this application;
[0065] Figure 7A schematic diagram illustrating the transmission and reception time of an acoustic signal provided in this application;
[0066] Figure 8 A flowchart illustrating yet another distance measurement method provided in this application;
[0067] Figure 9 A flowchart illustrating yet another distance measurement method provided in this application;
[0068] Figure 10 A schematic diagram of a preset motion trajectory provided in this application;
[0069] Figure 11 A schematic diagram illustrating the determination of the coordinate position of a second communication device provided in this application;
[0070] Figure 12 A schematic diagram of the structure of a communication device provided in this application;
[0071] Figure 13 A schematic diagram of another communication device provided in this application;
[0072] Figure 14 A schematic diagram of another communication device provided in this application. Detailed Implementation
[0073] In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between the related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0074] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0075] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0076] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
[0077] It is understood that the term "embodiment" used throughout the specification means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, various embodiments throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It is understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0078] It is understood that the terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or apparatus.
[0079] It is understood that in this application, "...when" and "if" both refer to the corresponding processing that will be carried out under certain objective circumstances, and are not limited to a specific time, nor do they require a judgment action to be performed during implementation, nor do they imply any other limitations.
[0080] It is understood that some optional features in the embodiments of this application can be implemented independently in certain scenarios without relying on other features, such as the current solution on which they are based, to solve the corresponding technical problems and achieve the corresponding effects. Alternatively, they can be combined with other features as needed in certain scenarios. Correspondingly, the apparatus given in the embodiments of this application can also implement these features or functions, which will not be elaborated here.
[0081] It is understood that in this application, "instruction" can include direct and indirect instructions, as well as explicit and implicit instructions. When describing "a certain instruction information instructs A" or "instruction information of A," it can include whether the instruction information directly or indirectly instructs A, but does not necessarily mean that the instruction information carries A. The information indicated by a certain piece of information is called the information to be instructed. In the specific implementation process, there are many ways to instruct the information to be instructed, such as, but not limited to, directly instructing the information to be instructed, such as the information to be instructed itself or its index. It can also indirectly instruct the information to be instructed by instructing other information, where there is a relationship between the other information and the information to be instructed. It can also instruct only a part of the information to be instructed, while the other parts are known or pre-agreed upon. For example, the instruction of specific information can be achieved by using a pre-agreed (e.g., protocol-defined) arrangement of various information, thereby reducing instruction overhead to some extent. At the same time, the common parts of various information can be identified and uniformly indicated to reduce the instruction overhead caused by individually indicating the same information. Furthermore, the specific instruction method can also be any existing instruction method, such as, but not limited to, the above-mentioned instruction methods and their various combinations. As described above, for example, when multiple pieces of information of the same type need to be indicated, the indication methods for different pieces of information may differ. In specific implementation, the required indication method can be selected according to specific needs. This application embodiment does not limit the selected indication method; therefore, the indication methods involved in this application embodiment should be understood to cover various methods that enable the party to be indicated to obtain the information to be indicated. The information to be indicated can be sent as a whole or divided into multiple sub-information pieces and sent separately. Furthermore, the sending period or timing of these sub-information pieces can be the same or different. This application does not limit the specific sending method. The sending period or timing of these sub-information pieces can be predefined, for example, predefined according to a protocol, or configured by the transmitting device by sending configuration information to the receiving device.
[0082] In this application, "send" and "receive" indicate the direction of signal transmission. For example, "send information to XX" can be understood as the destination of the information being XX, which can include direct transmission via the air interface or indirect transmission via the air interface from other units or modules. "Receive information from YY" can be understood as the source of the information being YY, which can include direct reception from YY via the air interface or indirect reception from YY via the air interface from other units or modules. "Send" can also be understood as the "output" of a chip interface, and "receive" can also be understood as the "input" of a chip interface. In other words, sending and receiving can occur between devices, such as between network devices and terminal devices, or within a device, such as between components, modules, chips, software modules, or hardware modules within the device via buses, traces, or interfaces.
[0083] In this application, "predefined" can refer to a standard protocol predefined, or it can refer to something agreed upon or negotiated in advance between devices. In this application, "protocol" can refer to a standard protocol in the field of communications, such as the 5G protocol, the NR protocol, and related protocols applied in future communication systems; this application does not limit this. "Predefined" can include predefined terms, such as protocol definitions. "Preconfiguration" can be implemented by pre-storing corresponding codes, tables, or other methods that can be used to indicate relevant information in the device; this application does not limit the implementation method, for example.
[0084] In this application, the terms "exemplarily," "for example," etc., are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as an "example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the term "example" is intended to present concepts in a concrete manner. In the embodiments of this application, "of," "corresponding, relevant," and "corresponding" may sometimes be used interchangeably, and it should be noted that their intended meanings are consistent unless their distinction is emphasized.
[0085] In this application, unless otherwise specified, the same or similar parts between the various embodiments can be referred to each other. Unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments are consistent and can be mutually referenced. Different embodiments can be combined to form new embodiments based on their inherent logical relationships. The following descriptions of the embodiments of this application do not constitute a limitation on the scope of protection of this application.
[0086] The technical solutions provided in this application can be used in various communication systems, including cellular systems related to the 3rd Generation Partnership Project (3GPP), such as 4th generation (4G) long term evolution (LTE) systems, LTE-Advanced (LTE-A) systems, LTE frequency division duplex (FDD) systems, LTE time division duplex (TDD) systems, universal mobile telecommunication system (UMTS), 5th generation (5G) new radio (NR) systems, vehicle-to-everything (V2X) systems, LTE and NR hybrid networking systems, or device-to-device (D2D) systems, machine-to-machine (M2M) communication systems, Internet of Things (IoT) systems, narrowband Internet of Things (NB-IoT) systems, and future communication systems.
[0087] Alternatively, the communication system may be a non-3GPP communication system, such as an open radioaccess network (O-RAN or ORAN), a cloud radio access network (CRAN), a wireless fidelity (WiFi) system, or a communication system that integrates multiple of the above communication systems. This application does not limit the scope of the application.
[0088] The communication systems described above that are applicable to this application are merely illustrative examples, and the communication systems applicable to this application are not limited to these. They will be uniformly described here and will not be repeated below.
[0089] For example, such as Figure 1 As shown, the communication system to which the technical solution provided in this application is applicable may include at least one first communication device and at least one second communication device. The first communication device and the second communication device are capable of communicating with each other.
[0090] The first communication device and the second communication device are capable of transmitting sound wave signals. For example, the sound wave signal can be an ultrasonic signal.
[0091] Optionally, the first communication device may include: a mobile phone, tablet computer, laptop computer, PDA, desktop computer, laptop computer, mobile internet device (MID), wearable device (such as a watch), virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving (e.g., drone, vehicle), wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, or wireless terminal in smart home, head-mounted display, portable game console, reader device, tag device, etc. For example, the wireless terminal in self-driving can be a drone, helicopter, or airplane. For example, the wireless terminal in vehicle networking can be in-vehicle equipment, vehicle equipment, in-vehicle module, vehicle, or ship. The wireless terminal in industrial control can be a camera, robot, or robotic arm, etc. Wireless terminals in a smart home can be televisions, air conditioners, robot vacuums, portable music players (such as speakers), or set-top boxes, etc.
[0092] Optionally, the second communication device may include: mobile phones, tablets, laptops, handheld computers, desktop computers, laptops, MIDs, wearable devices, VR devices, AR devices, wireless terminals in industrial control, wireless terminals in autonomous driving, wireless terminals in remote surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, or wireless terminals in smart homes, head-mounted displays, portable game consoles, e-reader devices, tag devices, etc.
[0093] Optionally, the first communication device includes a wireless communication module and an acoustic wave module. The wireless communication module is used for wireless communication (such as the exchange of electronic signals) between the first and second communication devices; the acoustic wave module is used for acoustic communication (such as transmitting and receiving acoustic signals) between the first and second communication devices.
[0094] Specifically, if the first communication device is a mobile phone and the second communication device is a tag device, the first communication device includes a wireless communication module and an acoustic module.
[0095] Optionally, both the wireless communication module and the acoustic wave module include a transceiver module and a processing module; wherein, the transceiver module in the wireless communication module is used to transmit and receive electronic signals, and the processing module is used to process electronic signals. Similarly, the transceiver module in the acoustic wave module is used to transmit and receive acoustic wave signals, and the processing module is used to process acoustic wave signals. Sometimes, the processing module for processing electronic signals and the processing module for processing acoustic wave signals can be combined into a single processing module.
[0096] Optionally, the second communication device also includes a wireless communication module and an acoustic wave module. For example, the implementation of the wireless communication module and the acoustic wave module can be found in the relevant descriptions of the above embodiments, and will not be repeated here.
[0097] For ease of description, the following description will take the example of both the first and second communication devices processing electronic and acoustic signals through a single processing module. This will be described uniformly here and will not be repeated.
[0098] Optionally, the second communication device can send acoustic signals to the first communication device, and correspondingly, the first communication device can receive acoustic signals from the second device; thereby determining the distance between itself and the second communication device based on the acoustic signals. In other words, the transceiver module in the first communication module for sending and receiving acoustic signals fulfills the function of receiving acoustic signals. The transceiver module in the first communication module for sending and receiving acoustic signals also fulfills the function of sending acoustic signals.
[0099] For example, the first communication device can receive sound wave signals via a microphone; the second communication device can transmit sound wave signals via a speaker. In this case, as... Figure 2 As shown, the first communication device 200 may include at least: one or more microphones 201, one or more transceivers 202, and one or more processors 203. Further, the first communication device 200 may also include one or more memories 204. The microphones 201 are used to receive sound wave signals; the transceivers 202 are used to transmit and receive electronic signals; the memories 204 are used to store instructions; and the processors 203 can call the instructions in the memories 204, thereby enabling the first communication device 200 to execute relevant methods. The processors 203, microphones 201, transceivers 202, and memories 204 are connected via a bus to enable data exchange.
[0100] like Figure 3As shown, the second communication device 300 may include at least: one or more speakers 301, one or more transceivers 302, and one or more processors 303. Further, the second communication device 300 may also include one or more memories 304. The speakers 301 are used to transmit sound wave signals; the transceivers 302 are used to transmit and receive electronic signals; and the memories 304 are used to store instructions. The processors 303 can call the instructions in the memories 304, thereby enabling the second communication device 300 to execute relevant methods. The processors 303, speakers 301, transceivers 302, and memories 304 are connected via a bus to enable data exchange.
[0101] Taking a mobile phone as the first communication device and a tag device as the second communication device as an example, the communication system provided in this application can be as follows: Figure 4 As shown, that is Figure 1 It can be replaced with Figure 4 .exist Figure 4 In this configuration, the first communication device may include a wireless communication module and a microphone. Furthermore, the first communication device may also include a display module for displaying the distance and / or angle between the first communication device and the second communication device.
[0102] To facilitate understanding of the technical solutions of the embodiments of this application, a brief introduction to the relevant technologies of this application is given below.
[0103] Bluetooth time synchronization:
[0104] Bluetooth time synchronization refers to the process by which Bluetooth devices, before establishing a connection, quickly exchange handshake information (time and address) by selecting a frequency within a fixed frequency band (or determining the frequency based on the address of the queried device), thus rapidly achieving time and frequency synchronization. This allows the devices to change frequencies according to the channel hopping sequence after the connection is established, resulting in a random frequency hopping characteristic.
[0105] During the UE's device location process, it's typically necessary to display the distance and angle between the device and the UE, updating in real-time as the user (i.e., the user holding the UE) moves. Taking mobile phone location of a tag device as an example, unidirectional ultrasonic ranging can usually be used. Specifically, the mobile phone and the tag device first need to synchronize their time via Bluetooth (e.g.,...). Figure 5 As shown, the two devices synchronize their Bluetooth time via their respective Bluetooth modules. Therefore, the distance between the mobile phone and the tag device can be determined based on the time difference between the transmission and reception of the ultrasonic waves sent by the tag device to the mobile phone (i.e., the difference between the time the ultrasonic wave is transmitted from the tag device and the time the mobile phone receives the ultrasonic wave). Figure 5 As shown, the time it takes for the ultrasonic wave to be transmitted from the tag device is t. k The time it takes for the mobile phone to receive the ultrasonic wave is t′. kThus, after receiving the ultrasonic wave, the mobile phone can determine the distance difference D = (t′) k -t k )*v. Where v represents the speed of ultrasonic wave transmission. t k It could be that the tag device informs the mobile phone through the TB module.
[0106] For different models of mobile phones and / or different models of tag devices, due to the device capabilities and the internal latency of the chip, there is a fixed time offset (i.e., Bluetooth time difference) in Bluetooth time synchronization; and there are also different fixed time offsets under different Bluetooth loads, so it is necessary to measure and compensate for them in advance.
[0107] In other words, the above Figure 5 The distance difference D determined in the figure is not the actual distance between the mobile phone and the tag device. This distance also needs to be increased by the distance error corresponding to Bluetooth time synchronization (i.e., the time difference corresponding to Bluetooth time synchronization * v) and the distance error corresponding to Bluetooth load (i.e., the time difference corresponding to Bluetooth load * v). In other words, the distance between the mobile phone and the tag device can satisfy the following relationship (1):
[0108] d k =(t' k -t k +Δt B )v+d α Relationship (1);
[0109] Where, d α =Δt α *v.
[0110] Where, d k t represents the distance between the mobile phone and the tag device. k The time t′ represents the time it takes for the ultrasonic wave to be transmitted from the tag device. k Δt represents the time it takes for the mobile phone to receive the ultrasonic wave. B Δt represents the time difference corresponding to Bluetooth time synchronization. α d represents the time difference corresponding to the Bluetooth load α. α This indicates the distance error caused by the Bluetooth load α.
[0111] The distance error caused by Bluetooth load is currently determined manually by measuring each mobile phone and each tag device. That is, for each new mobile phone, the Bluetooth time difference between the mobile phone and different types of tags, as well as the fixed time offset under the corresponding Bluetooth load of the mobile phone, must be measured. Similarly, for each new tag, the Bluetooth time difference between the tag and different types of mobile phones, as well as the fixed time offset under different Bluetooth loads, must be measured.
[0112] However, this method involves a large amount of adaptation work, and the above adaptation work is only performed on different models of devices, resulting in a large error in the time offset between each pair of devices (such as a mobile phone and a pair of headphones).
[0113] In view of this, embodiments of this application provide a ranging method and apparatus. A first communication device can send instruction information to a second communication device to instruct the second communication device to send an acoustic signal. Thus, the first communication device can receive acoustic signals (i.e., receive N acoustic signals) at different locations (i.e., N relative coordinates, where N phase coordinates are the coordinates of N signal receiving positions relative to a reference position). Furthermore, based on the location of the acoustic signal, the reception time of the acoustic signal, and the signal time difference between the two (i.e., a first time difference), the distance offset value between the first and second communication devices is determined, thereby enabling ranging based on this distance offset value and improving the accuracy of ranging.
[0114] It is understandable that when the first communication device and the second communication device transmit signals, in order to improve the accuracy of the determined signal transmission time, they usually need to keep their clocks synchronized; that is, time synchronization is required before signal transmission between them. Therefore, the signal time difference between the two can also be considered as the time difference determined during the time synchronization process (such as the time difference corresponding to Bluetooth time synchronization). In addition, the distance determined based on different locations and different reception times of sound wave signals is usually the distance error between the two devices, and the distance error between the two devices usually includes the distance error caused by the time difference during the time synchronization process and the time difference corresponding to different loads.
[0115] Therefore, in this application, before ranging, the first communication device can determine the distance error between the two devices based on its location when receiving the acoustic signal and the reception time of the acoustic signal. Furthermore, it subtracts the distance error caused by the time difference during synchronization (i.e., the signal time difference between the two devices, or the first time difference) from this distance error to obtain the distance error caused by the time difference corresponding to the load (i.e., the distance offset value). That is, this application can measure the distance error caused by the time difference corresponding to the load in real time. Compared to manually measuring and storing the distance errors caused by the time differences corresponding to different loads in advance, this reduces the workload of adaptation.
[0116] Furthermore, in this application, for each device pair (i.e., a device pair consisting of a first communication device and a second communication device), the distance error caused by the time difference corresponding to the load between the two can be measured in real time; compared with the scheme that only measures the distance error caused by the time difference corresponding to the load between different types of devices, the measurement accuracy is higher; and the accuracy of the subsequent distance measurement results is also higher.
[0117] The ranging method provided in the embodiments of this application will now be described in detail with reference to the accompanying drawings. It is understood that in the embodiments of this application, the first communication device or the second communication device may execute some or all of the steps in the embodiments of this application. These steps or operations are merely examples, and the embodiments of this application may also execute other operations or variations thereof. Furthermore, the steps may be executed in different orders as presented in the embodiments of this application, and it is not necessary to execute all the operations in the embodiments of this application.
[0118] It should be noted that the message names between devices or the names of parameters in the messages in the embodiments of this application are just examples. In specific implementations, other names may also be used. This application does not specifically limit this.
[0119] See Figure 6 , Figure 6 This is a flowchart illustrating a ranging method provided in an embodiment of this application. Figure 6 The method shown may include the following steps S601 to S603:
[0120] S601, the first communication device sends an instruction message to the second communication device; correspondingly, the second communication device receives the instruction message from the first communication device. The instruction message instructs the second communication device to send an acoustic signal.
[0121] For example, acoustic signals include, but are not limited to, sound waves and ultrasound.
[0122] For example, the indication information can be represented by 1 bit; when the 1 bit is 1 or 0, it indicates that the second communication device needs to send an acoustic signal.
[0123] Optionally, the first communication device sends instruction information to the second communication device through its wireless communication module; correspondingly, the second communication device receives instruction information from the first communication device through its wireless communication module.
[0124] For example, the wireless communication module can be a Bluetooth module; that is, the first communication device and the second communication device can transmit instruction information through their Bluetooth modules. Specifically, the first communication device sends instruction information to the second communication device through its Bluetooth module; correspondingly, the second communication device receives instruction information from the first communication device through its Bluetooth module.
[0125] Optionally, the transmission method of the acoustic signal can be determined by the first communication device; or it can be determined by the second communication device itself. The transmission method of the acoustic signal can include periodic transmission or non-periodic transmission.
[0126] For example, when the transmission method of the sound wave signal is determined by the first communication device, the first communication device may instruct the second communication device to transmit the sound wave signal periodically; or, the first communication device may instruct the second communication device to transmit the sound wave signal non-periodically.
[0127] Specifically, information indicating the transmission mode of the sound wave signal can be represented by 1 bit. When this 1 bit is 1, it indicates that the sound wave signal is transmitted periodically; correspondingly, when this 1 bit is 1, it indicates that the sound wave signal is transmitted aperiodically. Alternatively, when this 1 bit is 1, it indicates that the sound wave signal is transmitted aperiodically; correspondingly, when this 1 bit is 1, it indicates that the sound wave signal is transmitted periodically.
[0128] For example, the information used to indicate the transmission method of the sound wave signal can be the same as the aforementioned indication information; that is, the aforementioned indication information can also indicate the transmission method of the sound wave signal. Alternatively, the information used to indicate the transmission method of the sound wave signal can be different from the aforementioned indication information.
[0129] For example, when the information used to indicate the transmission method of the sound wave signal can be the same as the aforementioned indication information, that is, the indication information also indicates the transmission method of the sound wave signal. In other words, the indication information instructs the second communication device to transmit the sound wave signal, including: the indication information instructs the second communication device to periodically transmit the sound wave signal.
[0130] For example, when the sound wave signal is transmitted periodically, the transmission period of the sound wave signal can be predefined; or, it can be determined by the first communication device and communicated to the second communication device; or, it can be determined by the second communication device.
[0131] S602. The second communication device sends N sound wave signals to the first communication device according to the instruction information; correspondingly, the first communication device receives N sound wave signals from the second communication device.
[0132] In this system, N acoustic signals correspond to N relative coordinates, and the N phase coordinates are the coordinates of the N signal receiving positions relative to the reference position, where N is a positive integer greater than or equal to 3.
[0133] For example, the indication information can be understood as trigger information, used to trigger the second communication device to send sound wave signals. That is, the second communication device sends N sound wave signals to the first communication device according to the indication information, which can be understood as: the second communication device sends N sound wave signals to the first communication device based on the trigger of the indication information.
[0134] For example, the second communication device sending N sound wave signals to the first communication device can be understood as the second communication device sending N sound wave signals. Or, the second communication device sending at least N sound wave signals.
[0135] Specifically, the N sound wave signals can be transmitted at N different times; that is, the transmission times of the N sound wave signals are different. In other words, the N sound wave signals correspond to N transmission times, and these N transmission times are different. There is a one-to-one correspondence between the N sound wave signals and the N transmission times.
[0136] For example, when the sound wave signal is transmitted periodically, the N transmission times can be located at different periods. When the sound wave signal is transmitted non-periodically, the N transmission times can be located at different times.
[0137] For example, N sound wave signals correspond to N relative coordinates respectively. This can be understood as: the first communication device receives sound wave signals at N relative coordinates respectively, thereby obtaining N sound wave signals.
[0138] It should be understood that in this application, "corresponding respectively" can be understood as "one-to-one correspondence"; that is, A parameters #1 and A parameters #2 correspond respectively, which means that A parameters #1 and A parameters #2 correspond one-to-one; this is described uniformly here and will not be repeated.
[0139] For example, N phase coordinates are the coordinates of N signal receiving positions relative to a reference position. This can be understood as follows: a two-dimensional coordinate system (such as an XY coordinate system) can be established with the reference position as the origin, and sound wave signals can be received at N positions. The coordinates of each of these N positions can be called relative coordinates, that is, the coordinates of that position relative to the origin (i.e., the reference position). Thus, N relative coordinates are obtained.
[0140] S603. The first communication device determines the distance offset value based on N relative coordinates, N reception times, and a first time difference.
[0141] Among them, N reception times are the reception times corresponding to N sound wave signals respectively, the first time difference is the time difference between the signals between the first communication device and the second communication device, and the distance offset value is used to determine the distance between the first communication device and the second communication device.
[0142] For example, the N reception times refer to the reception times corresponding to the N sound wave signals, which can be understood as: the time it takes for the first communication device to receive the sound wave signals at N relative coordinates. In other words, it is the reception time corresponding to each of the N sound wave signals.
[0143] Specifically, such as Figure 7As shown, the second communication device can send the first sound wave signal at time t1, and the corresponding reception time for this sound wave signal is t1′; similarly, the second communication device can send the second sound wave signal at time t2, and the corresponding reception time for this sound wave signal is t2′; the second communication device can send the third sound wave signal at time t3, and the corresponding reception time for this sound wave signal is t3′; the second communication device can send the fourth sound wave signal at time t4, and the corresponding reception time for this sound wave signal is t′4; the second communication device can send the third sound wave signal at time ... third sound wave signal at time t4′; the second communication device can send the third sound wave signal at time t3′; the second communication device can send the third sound wave signal at N The Nth sound wave signal is sent at time t, and the corresponding reception time for that sound wave signal is t′. N .
[0144] For example, the first communication device may determine its position (i.e., relative coordinates) each time it receives an acoustic signal based on its sensors.
[0145] It is understandable that when the first communication device and the second communication device transmit signals, in order to improve the accuracy of the determined signal transmission time, they usually need to keep their clocks synchronized; that is, time synchronization is required before signal transmission between them. Therefore, the signal time difference between the two can also be considered as the time difference determined during the time synchronization process between them (such as the time difference corresponding to Bluetooth time synchronization). Thus, the first time difference, which is the signal time difference between the first communication device and the second communication device, can be understood as: the time difference determined during the time synchronization process between the first communication device and the second communication device.
[0146] For example, the time difference determined during the time synchronization process between devices is usually the result of time synchronization between two devices. For instance, two devices can synchronize their time via Bluetooth, and the first time difference is the Bluetooth time difference.
[0147] Specifically, the time synchronization process between the first communication device and the second communication device can be performed before step S601 and / or step S602, after step S601 and / or step S602, or simultaneously with step S601 and / or step S602. This application does not impose any restrictions, as long as it is ensured that it is performed before step S603. When step S601 and / or step S602 are performed simultaneously, the ranging delay in this scheme can be reduced, improving the ranging efficiency.
[0148] Optionally, the distance offset value can be the distance error corresponding to the time difference associated with the load of the first communication device. That is, the distance offset value is the time difference associated with the load * v.
[0149] It is understandable that the distance error between two devices usually includes the distance error caused by the time difference during the time synchronization process and the time difference corresponding to different loads. The distance error between two devices is the local time difference between the two devices * v. That is to say, the local time difference, the time difference determined during the time synchronization process, and the time difference corresponding to the load satisfy the following relationship (2):
[0150] Δt=Δt B +Δt α Relationship (2);
[0151] Where Δt represents the local time difference, Δt B The time difference determined during time synchronization (such as the time difference for Bluetooth time synchronization), Δt α This represents the time difference corresponding to load α. Where load α is the load of the first communication device.
[0152] For example, typically, the local time difference can be determined based on the aforementioned N relative coordinates and N reception times. That is, the first communication device can determine the local time difference between the first communication device and the second communication device based on the N relative coordinates and N reception times, and then determine the time difference corresponding to the load (i.e., the difference between the local time difference and the time difference determined during the time synchronization process) based on the local time difference and the time difference determined during the time synchronization process (i.e., the first time difference), and then determine the distance error corresponding to the load (i.e., the time difference corresponding to the load * v, i.e., the distance offset value).
[0153] Optionally, after step S603, as follows: Figure 8 As shown, the ranging method may further include step S604:
[0154] S604. The first communication device determines the distance between the first communication device and the second communication device based on the distance offset value.
[0155] Optionally, the first communication device determines the distance between the first communication device and the second communication device based on the distance offset value, including:
[0156] The first communication device determines the distance between itself and the second communication device based on the transmission and reception time (i.e., sending time and receiving time) of any one of the N acoustic signals, the first time difference, and the distance offset value.
[0157] For example, the implementation of the first communication device determining the distance between itself and the second communication device is similar to the implementation of the mobile phone determining the distance between itself and the tag device in the above relationship (1). For details, please refer to the relevant description of the above relationship (1), which will not be repeated here.
[0158] This application provides a ranging method in which a first communication device can send instruction information to a second communication device to instruct the second communication device to send an acoustic signal. Thus, the first communication device can receive acoustic signals at different locations (i.e., N relative coordinates, where N phase coordinates are the coordinates of N signal receiving positions relative to a reference position). Furthermore, based on the location of the acoustic signal, the reception time of the acoustic signal, and the signal time difference between the two (i.e., a first time difference), the distance offset between the first and second communication devices is determined. This distance offset value allows for ranging based on the ranging accuracy.
[0159] It is understandable that when the first communication device and the second communication device transmit signals, in order to improve the accuracy of the determined signal transmission time, they usually need to keep their clocks synchronized; that is, time synchronization is required before signal transmission between them. Therefore, the signal time difference between the two can also be considered as the time difference determined during the time synchronization process (such as the time difference corresponding to Bluetooth time synchronization). In addition, the distance determined based on different locations and different reception times of sound wave signals is usually the distance error between the two devices, and the distance error between the two devices usually includes the distance error caused by the time difference during the time synchronization process and the time difference corresponding to different loads.
[0160] Therefore, in this application, before ranging, the first communication device can determine the distance error between the two devices based on its location when receiving the acoustic signal and the reception time of the acoustic signal. Furthermore, it subtracts the distance error caused by the time difference during synchronization (i.e., the signal time difference between the two devices, or the first time difference) from this distance error to obtain the distance error caused by the time difference corresponding to the load (i.e., the distance offset value). That is, this application can measure the distance error caused by the time difference corresponding to the load in real time. Compared to manually measuring and storing the distance errors caused by the time differences corresponding to different loads in advance, this reduces the workload of adaptation.
[0161] Furthermore, in this application, for each device pair (i.e., a device pair consisting of a first communication device and a second communication device), the distance error caused by the time difference corresponding to the load between the two can be measured in real time; compared with the scheme that only measures the distance error caused by the time difference corresponding to the load between different types of devices, the measurement accuracy is higher; and the accuracy of the subsequent distance measurement results is also higher.
[0162] The above is a general description of the ranging method provided in this application. The following describes steps S601 to S603 in the above embodiments:
[0163] (I) Regarding step S601:
[0164] Optionally, sending indication information includes: determining whether a distance offset value exists based on the load of the first communication device; sending indication information if no distance offset value exists; and determining the distance between the first communication device and the second communication device using the distance offset value if a distance offset value exists.
[0165] For example, such as Figure 9 As shown, since the distance offset value corresponding to each load is different, the first communication device can determine whether there is a distance offset value corresponding to its load based on its load. If there is, the distance between the first communication device and the second communication device can be directly determined based on the above step S604 (i.e., the distance between the first communication device and the second communication device is determined based on the distance offset value). If there is no distance offset value, the distance offset value corresponding to the load is determined based on the above steps S601 to S603 (i.e., sending indication information; receiving N sound wave signals; and determining the distance offset value based on N relative coordinates, N receiving times, and the first time difference), and then the distance between the first communication device and the second communication device is determined based on the distance offset value.
[0166] Based on this optional scheme, before sending the indication information, the first communication device can first determine whether there is a distance offset value corresponding to its load. If there is a distance offset value corresponding to the load, the first communication device can directly determine the distance between the first communication device and the second communication device based on the distance offset value corresponding to the load, without having to determine the distance offset value corresponding to the load again, thereby saving resources and improving the efficiency of ranging.
[0167] (II) Regarding step S602:
[0168] Optionally, to improve the accuracy of the calculated distance offset value, the N relative coordinates can be made to be non-linear. That is, the N relative coordinates cannot form a straight line. Furthermore, the movement range of the first communication device can be expanded, i.e., the distance between the N relative coordinates can be as far as possible. However, typically, the user moves the first communication device, placing it at different positions (e.g., at the N relative coordinates), but the user may not be aware whether their current position is aligned with other positions. Therefore, it is possible to display a motion trajectory on the first communication device, allowing the user to move based on this trajectory, thereby achieving the purpose of receiving sound wave signals at the N relative positions. In other words, before receiving the N sound wave signals, the ranging method further includes step S605:
[0169] S605. The first communication device provides a preset motion trajectory. The positions corresponding to the N relative coordinates are determined based on the preset motion trajectory.
[0170] For example, the first communication device can provide a motion trajectory (i.e., the preset motion trajectory) and display it on its display module (that is, the first communication device also includes a display module), allowing the user to move according to the motion trajectory and receive N sound wave signals during the movement. The position at each time a sound wave signal is received is the relative position corresponding to that sound wave signal, i.e., the N relative positions are located on the user's movement trajectory (or the movement trajectory of the first communication device). Furthermore, since the user moves according to the preset motion trajectory, it can also be considered that the positions corresponding to the N relative coordinates are determined based on the preset motion trajectory.
[0171] Specifically, the display module of the first communication device can display, for example, Figure 10 The content shown indicates that the first communication device can indicate a preset motion trajectory via arrows; where... Figure 10 The solid circle in the diagram represents the current position of the first communication device. Furthermore, the display module can also provide text prompts to the user, such as "Please move in the direction of the arrow"; thus, the user, combined with the text prompt, understands that they need to move according to the movement trajectory indicated by the display module (i.e., the preset movement trajectory).
[0172] (III) Regarding step S603:
[0173] Optionally, the first communication device determines the distance offset value based on N relative coordinates, N reception times, and a first time difference, including: the first communication device determines a second time difference based on the N relative coordinates and N reception times; and determines the distance offset value based on the second time difference and the first time difference. The second time difference is the local time difference between the first and second communication devices.
[0174] For example, as described above, N relative coordinates and N reception times can be used to determine the local time difference between the first communication device and the second communication device; and the local time difference and the first time difference satisfy the relationship shown in the above relationship (2). Therefore, the first communication device can determine the local time difference based on the N relative coordinates and N reception times, and further, determine the time difference corresponding to the load of the first communication device based on the above relationship (2), thereby determining the distance offset value (i.e., the distance error corresponding to the load).
[0175] Optionally, the first communication device determines the second time difference based on N relative coordinates and N reception times, including: the first communication device determines the coordinate position of the second communication device based on the N relative coordinates and N reception times; determines N distances, where the N distances are the distances between the N relative coordinates and the coordinate position of the second communication device respectively; and determines the second time difference based on the N distances and N reception times.
[0176] For example, the first communication device can determine the coordinate position of the second communication device based on N relative coordinates and N reception times. The coordinate position of the second communication device refers to its coordinates relative to a reference position. Further, the distances between the N relative coordinates and the second communication device (i.e., N distances) are determined, and then the local time difference is determined based on these N distances and the N reception times.
[0177] Specifically, taking a value of 3 for N as an example, such as Figure 11 As shown, the first communication device can receive sound wave signals at points A, B, and C respectively. The relative coordinates of point A are (x1, y1); the relative coordinates of point B are (x2, y2); and the relative coordinates of point C are (x3, y3). For example, the first communication device can determine the relative coordinates of points A, B, and C using its sensors. Furthermore, the first communication device can determine the coordinate position (x, y) of the second communication device based on the time of receiving the sound wave signal at each of these three relative coordinates (i.e.,...). Figure 11 The position of the solid circle in the middle.
[0178] Furthermore, the distances between each relative coordinate and the coordinate position (x, y) of the second communication device are determined. Specifically, the distance between (x1, y1) and (x, y) is D1; the distance between (x2, y2) and (x, y) is D2; and the distance between (x3, y3) and (x, y) is D3. Then, based on D1, D2, D3 and the times when the sound wave signals are received at points A, B, and C respectively, the local time difference (i.e., the second time difference) is determined.
[0179] For example, the first communication device may determine the coordinate position of the second communication device based on the following two possible implementations:
[0180] In one possible implementation, the first communication device can determine the coordinate position of the second communication device based on N relative coordinates and N transmission and reception times (i.e., reception time and transmission time).
[0181] Optionally, the first communication device determines the coordinate position of the second communication device based on N relative coordinates and N reception times, including: determining the coordinate position of the second communication device based on the N relative coordinates, N reception times, and N transmission times. Here, the N transmission times are the transmission times corresponding to the N sound wave signals.
[0182] For example, the implementation of N transmission times can be found in the relevant description of the above embodiments, and will not be repeated here.
[0183] Optionally, the N relative coordinates, N receiving times, N transmitting times, and the coordinate position of the second communication device satisfy the following relationship (3):
[0184]
[0185] Where (x, y) represents the coordinate position of the second communication device, (x i y i ) represents the i-th coordinate among N relative coordinates, where i represents the index of the i-th coordinate among the N relative coordinates, and t′ i t represents the reception time of the acoustic signal received at coordinate i. i This represents the transmission time of the sound wave signal received at the i-th coordinate, (x j y j ) represents the j-th coordinate in N relative coordinates, where j represents the index of the j-th coordinate in the N relative coordinates, and t j ' represents the reception time of the acoustic signal received at coordinate j, t j The signal is transmitted at the j-th coordinate. The i-th and j-th coordinates are any two of the N relative coordinates. v represents the transmission speed of the sound signal. i and j are both positive integers less than or equal to N, and i and j are different.
[0186] Taking the value of N as 3 as an example, relation (3) can be replaced with relation (3A):
[0187]
[0188] Where (x, y) represents the coordinate position of the second communication device; (x1, y1), (x2, y2), and (x3, y3) are three relative coordinates; t′1 represents the time when the sound wave signal is received at (x1, y1), and t1 represents the time when the sound wave signal is transmitted; t′2 represents the time when the sound wave signal is received at (x2, y2), and t2 represents the time when the sound wave signal is transmitted; t′3 represents the time when the sound wave signal is received at (x3, y3), and t3 represents the time when the sound wave signal is transmitted. Therefore, the first communication device can determine the coordinate position of the second communication device based on the above relationship (3A).
[0189] Optionally, the N transmission times can be communicated by the second communication device to the first communication device. For example, the second communication device and the first communication device can exchange N transmission times via a wireless communication module. Optionally, in this possible implementation, the acoustic signal is transmitted either aperiodically or periodically.
[0190] Based on this possible implementation, the first communication device can determine the coordinate position of the second communication device based on N relative coordinates and N transmission / reception times (i.e., reception time and transmission time). This method does not require consideration of whether the sound wave signal is transmitted aperiodically or periodically. That is, regardless of whether the sound wave signal is transmitted aperiodically or periodically, this method can be used to determine the coordinate position of the second communication device. This broadens its applicability.
[0191] In another possible implementation, when the sound wave signal is transmitted periodically, the first communication device can determine the coordinate position of the second communication device based on N relative coordinates, N reception times, and the transmission period.
[0192] Optionally, when the acoustic signal is transmitted periodically, the following relationship (4) is satisfied between the N relative coordinates, the N reception times, and the coordinate position of the second communication device:
[0193]
[0194] Where (x, y) represents the coordinate position of the second communication device, (x i y i ) represents the i-th coordinate among N relative coordinates, where i represents the index of the i-th coordinate among the N relative coordinates, and t′ i This represents the reception time of the sound wave signal received at the i-th coordinate, (x j y j ) represents the j-th coordinate in N relative coordinates, where j represents the index of the j-th coordinate in the N relative coordinates, and t j ′ represents the reception time of the sound wave signal received at the j-th coordinate. The i-th and j-th coordinates are any two coordinates among N relative coordinates. T represents the transmission period of the sound wave signal, v represents the transmission speed of the sound wave signal, and i and j are both positive integers less than or equal to N, and i and j are different.
[0195] Taking the value of N as 3 as an example, relation (4) can be replaced with relation (4A):
[0196]
[0197] Where (x, y) represents the coordinate position of the second communication device; (x1, y1), (x2, y2), and (x3, y3) are three relative coordinates; t′1 represents the time when the sound wave signal is received at (x1, y1), and t1 represents the time when the sound wave signal is transmitted; t′2 represents the time when the sound wave signal is received at (x2, y2), and t2 represents the time when the sound wave signal is transmitted; t′3 represents the time when the sound wave signal is received at (x3, y3), and t3 represents the time when the sound wave signal is transmitted. Therefore, the first communication device can determine the coordinate position of the second communication device based on the above relationship (4A).
[0198] Based on this possible implementation, when the acoustic signal is transmitted periodically, the first communication device can determine the coordinate position of the second communication device based on N relative coordinates, N reception times (i.e., reception time and transmission time), and the transmission period. In other words, this scheme does not require N transmission times, so the second communication device does not need to inform the first communication device of the N transmission times, thus reducing air interface resources.
[0199] Combining the two possible implementation methods mentioned above, the N distances, N reception times, and the second time difference can satisfy the following relationship (5):
[0200]
[0201] Where Δt represents the second time difference, N represents the number of N distances, and D k This represents the k-th distance among N distances, where k = 1, 2, ..., N, and t k Let t′ represent the transmission time of the sound wave signal used to determine the k-th distance among N sound wave signals. k Let v represent the reception time of the sound wave signal used to determine the k-th distance among N sound wave signals, and v represent the transmission speed of the sound wave signal. Thus, the first communication device can determine the second time difference (i.e., the local time difference) based on the above relationship (5).
[0202] Combining the two possible implementation methods mentioned above, optionally, the second time difference, the first time difference, and the distance offset value satisfy the following relationship (6):
[0203] d=v*(Δt-Δt B Relationship (6);
[0204] Where d represents the distance offset, Δy represents the second time difference, and Δt represents the distance offset. B Let v represent the first time difference, and v represent the transmission speed of the acoustic signal. Thus, the first communication device can determine the distance offset value (i.e., the distance error corresponding to the load) based on the above relationship (6).
[0205] It should be noted that the various embodiments of this application can be implemented independently or in combination, without limitation. Unless otherwise specified or in conflict, the terminology and / or descriptions between the different embodiments provided in this application are consistent and can be referenced mutually. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0206] The foregoing primarily describes the solutions provided in this application from the perspective of device-to-device interaction. It is understood that each device, in order to achieve the aforementioned functions, includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0207] It is understood that, in order to achieve the aforementioned functions, the communication device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0208] This application embodiment can divide each device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0209] Figure 12 A schematic diagram of a communication device 1200 is shown. The communication device 1200 includes a processing module 1201 and a transceiver module 1202. This communication device can be used to implement the functions of the first or second communication device described above.
[0210] In some embodiments, the communication device 1200 may further include a storage module.Figure 12 (not shown in the image) is used to store programs, instructions, and / or data.
[0211] In some embodiments, the transceiver module 1202, also referred to as a transceiver unit, is used to implement sending and / or receiving functions. The transceiver module 1202 may consist of a transceiver circuit, a transceiver, a transceiver unit, or a communication interface.
[0212] In some embodiments, the transceiver module 1202 may include a receiving module and a sending module, respectively configured to perform receiving and sending steps performed by the first or second communication device in the above method embodiments, and / or other processes to support the technology described herein; the processing module 1201 may be configured to perform processing steps (e.g., determination) performed by the first or second communication device in the above method embodiments, and / or other processes to support the technology described herein.
[0213] When the communication device 1200 is used to perform the functions of the first communication device described above:
[0214] In some embodiments, the transceiver module 1202 is used to send indication information, which instructs the second communication device to send acoustic signals; the transceiver module 1202 is also used to receive N acoustic signals, each of which corresponds to N relative coordinates, and the N phase coordinates are the coordinates of the N signal receiving positions relative to the reference position, where N is a positive integer greater than or equal to 3; the processing module 1201 is used to determine a distance offset value based on the N relative coordinates, the N receiving times, and a first time difference; wherein the N receiving times are the receiving times corresponding to the N acoustic signals, the first time difference is the time difference between the signals between the first communication device and the second communication device, and the distance offset value is used to determine the distance between the first communication device and the second communication device.
[0215] Optionally, the processing module 1201 is further configured to determine whether there is a distance offset value based on the load of the first communication device; if there is no distance offset value, send an indication message; if there is a distance offset value, use the distance offset value to determine the distance between the first communication device and the second communication device.
[0216] Optionally, the processing module 1201 is further configured to determine a second time difference based on N relative coordinates and N receiving times, wherein the second time difference is the local time difference between the first communication device and the second communication device; and to determine a distance offset value based on the second time difference and the first time difference.
[0217] Optionally, the processing module 1201 is further configured to determine the coordinate position of the second communication device based on N relative coordinates and N reception times; determine N distances, where the N distances are the distances between the N relative coordinates and the coordinate position of the second communication device respectively; and determine a second time difference based on the N distances and N reception times.
[0218] Optionally, the processing module 1201 is also used to determine the coordinate position of the second communication device based on N relative coordinates, N receiving times, and N sending times, wherein the N sending times are the sending times corresponding to the N sound wave signals respectively.
[0219] Optionally, the N relative coordinates, N reception times, N transmission times, and the coordinate position of the second communication device satisfy the following relationship:
[0220]
[0221] Where (x, y) represents the coordinate position of the second communication device, (x i y i ) represents the i-th coordinate among N relative coordinates, where i represents the index of the i-th coordinate among the N relative coordinates, and t′ i t represents the reception time of the acoustic signal received at coordinate i. i This represents the transmission time of the sound wave signal received at the i-th coordinate, (x j y j ) represents the j-th coordinate in N relative coordinates, where j represents the index of the j-th coordinate in the N relative coordinates, and t j ' represents the reception time of the acoustic signal received at coordinate j, t j The signal is transmitted at the j-th coordinate. The i-th and j-th coordinates are any two of the N relative coordinates. v represents the transmission speed of the sound signal. i and j are both positive integers less than or equal to N, and i and j are different.
[0222] Optionally, the acoustic signal is transmitted periodically; the N relative coordinates, N reception times, and the coordinate position of the second communication device satisfy the following relationship:
[0223]
[0224] Where (x, y) represents the coordinate position of the second communication device, (x i y i ) represents the i-th coordinate among N relative coordinates, where i represents the index of the i-th coordinate among the N relative coordinates, and t′ i This represents the reception time of the sound wave signal received at the i-th coordinate, (x j y j) represents the j-th coordinate in N relative coordinates, where j represents the index of the j-th coordinate in the N relative coordinates, and t j ′ represents the reception time of the sound wave signal received at the j-th coordinate. The i-th and j-th coordinates are any two coordinates among N relative coordinates. T represents the transmission period of the sound wave signal, v represents the transmission speed of the sound wave signal, and i and j are both positive integers less than or equal to N, and i and j are different.
[0225] Optionally, the indication information instructs the second communication device to send an acoustic signal, including: the indication information instructs the second communication device to periodically send an acoustic signal.
[0226] Optionally, the N distances, N reception times, and the second time difference satisfy the following relationship:
[0227]
[0228] Where Δt represents the second time difference, N represents the number of N distances, and D k This represents the k-th distance among N distances, where k = 1, 2, ..., N, and t k Let t′ represent the transmission time of the sound wave signal used to determine the k-th distance among N sound wave signals. k Let v represent the reception time of the sound wave signal used to determine the k-th distance among N sound wave signals, and v represent the transmission speed of the sound wave signal.
[0229] Optionally, the second time difference, the first time difference, and the distance offset value satisfy the following relationship:
[0230] d=v*(Δt-Δt B );
[0231] Where d represents the distance offset value, Δt represents the second time difference, and Δt B The first time difference is represented by , and v represents the transmission speed of the sound wave signal.
[0232] Optionally, the processing module 1201 is also used to provide a preset motion trajectory, and the positions corresponding to the N relative coordinates are determined based on the preset motion trajectory.
[0233] When the communication device 1200 is used to implement the functions of the second communication device described above:
[0234] In some embodiments, the transceiver module 1202 is used to receive indication information, which instructs the second communication device to send an acoustic signal; the processing module 1201 is used to send multiple acoustic signals according to the indication information; wherein, N acoustic signals correspond to N relative coordinates respectively, the N phase coordinates are the coordinates of the N signal receiving positions relative to the reference position, the N phase coordinates are used to determine the distance offset value, the distance offset value is used to determine the distance between the first communication device and the second communication device, and N is a positive integer greater than or equal to 3.
[0235] Optionally, N phase coordinates are used to determine the distance offset value, including: N phase coordinates, N reception times, and a first time difference to determine the distance offset value. The N reception times are the reception times corresponding to the N acoustic signals respectively, and the first time difference is the time difference between the signals between the first communication device and the second communication device.
[0236] Optionally, N phase coordinates, N reception times, and a first time difference are used to determine the distance offset value, including: N phase coordinates and N reception times are used to determine a second time difference, the second time difference and the first time difference are used to determine the distance offset value, and the second time difference is the local time difference between the first communication device and the second communication device.
[0237] Optionally, N phase coordinates and N reception times are used to determine the second time difference, including: N phase coordinates and N reception times are used to determine the coordinate position of the second communication device; the coordinate position of the second communication device and N relative coordinates are used to determine N distances; N distances and N reception times are used to determine the second time difference; and the N distances are the distances between the N relative coordinates and the coordinate position of the second communication device, respectively.
[0238] Optionally, N phase coordinates and N reception times are used to determine the coordinate position of the second communication device, including: N relative coordinates, N reception times, and N transmission times to determine the coordinate position of the second communication device, where the N transmission times are the transmission times corresponding to the N acoustic wave signals respectively.
[0239] Optionally, the acoustic signal is transmitted periodically; N phase coordinates and N reception times are used to determine the coordinate position of the second communication device, including: N phase coordinates, N reception times, and the period of the acoustic signal used to determine the coordinate position of the second communication device.
[0240] Optionally, the indication information instructs the second communication device to send an acoustic signal, including: the indication information instructs the second communication device to periodically send an acoustic signal.
[0241] Optionally, N relative coordinates cannot form a straight line.
[0242] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0243] In this application, the communication device (i.e., the first communication device or the second communication device) 1200 is presented in an integrated manner, divided into various functional modules. Here, "module" may refer to an application-specific integrated circuit (ASIC), a circuit, a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and / or other devices that can provide the above functions.
[0244] In some embodiments, when Figure 12 When the communication device 1200 is a chip or chip system, the function / implementation process of the transceiver module 1202 can be implemented through the input / output interface (or communication interface) of the chip or chip system, and the function / implementation process of the processing module 1201 can be implemented through the processor (or processing circuit) of the chip or chip system.
[0245] Since the communication device 1200 provided in this embodiment can execute the above method, the technical effects it can obtain can be referred to the above method embodiment, and will not be repeated here.
[0246] As another possible product form, either the first communication device or the second communication device described in the embodiments of this application can be adopted. Figure 13 The shown composition structure, or including Figure 13 The components shown. Figure 13 This is a schematic diagram illustrating the composition of a communication device 1300 provided in an embodiment of this application. The communication device 1300 can be a first communication device or a chip or system-on-a-chip within the first communication device; it can also be a second communication device or a chip or system-on-a-chip within the second communication device. For example... Figure 13 As shown, the communication device 1300 includes a processor 1301, a transceiver 1302, and a communication line 1303.
[0247] Furthermore, the communication device 1300 may also include a memory 1304. The processor 1301, the memory 1304, and the transceiver 1302 can be connected via a communication line 1303.
[0248] The processor 1301 can be a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 1301 can also be other devices with processing capabilities, such as circuits, devices, or software modules, without limitation.
[0249] Transceiver 1302 is used to communicate with other devices or other communication networks. These other communication networks can be Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. Transceiver 1302 can be a module, circuit, transceiver, or any device capable of enabling communication.
[0250] Communication line 1303 is used to connect different components in communication device 1300, enabling communication between them. Communication line 1303 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 13 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0251] The memory 1304 may be a device with storage function, used to store instructions and / or data. The instructions may be computer programs.
[0252] For example, the memory 1304 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and / or instructions; it may also be a random access memory (RAM) or other type of dynamic storage device capable of storing information and / or instructions; it may also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.
[0253] It should be noted that the memory 1304 can exist independently of the processor 1301, or it can be integrated with the processor 1301. The memory 1304 can be used to store instructions, program code, or some data, etc. The memory 1304 can be located inside or outside the communication device 1300, without limitation. The processor 1301 is used to execute the instructions stored in the memory 1304 to implement the ranging method provided in the following embodiments of this application.
[0254] In one example, processor 1301 may include one or more CPUs, for example Figure 13 CPU0 and CPU1 in the CPU.
[0255] In some embodiments, those skilled in the art will recognize that the communication device 1200 can be implemented in hardware using... Figure 13 The communication device shown is in the form of 1300.
[0256] As an example, Figure 12 The function / implementation process of the processing module 1201 can be achieved through... Figure 13 The processor 1301 in the communication device 1300 shown calls computer execution instructions stored in memory 1304 to implement the function. Figure 12 The function / implementation process of the transceiver module 1202 can be obtained through Figure 13 This is achieved through the transceiver 1302 in the communication device 1300 shown.
[0257] As an optional implementation, the communication device 1300 includes multiple processors, for example, besides Figure 13 In addition to processor 1301, it may also include processor 1307.
[0258] As an optional implementation, the communication device 1300 also includes an output device 1305 and an input device 1306. Exemplarily, the input device 1306 is a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. For example, the input device 1306 can be a keyboard, mouse, microphone, joystick, touchscreen device, or sensing device, etc. The output device 1305 is a display screen, a speaker, etc.
[0259] It should be noted that the communication device 1300 can be a desktop computer, laptop computer, network server, mobile phone, tablet computer, wireless terminal, embedded device, chip system, or other device. Figure 13 Equipment with a similar structure. Furthermore... Figure 13 The structural composition shown does not constitute a limitation on the communication device, except... Figure 13 In addition to the components shown, the communication device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0260] In this embodiment of the application, the chip system may be composed of chips or may include chips and other discrete devices.
[0261] As another possible product form, the first or second communication device described in the embodiments of this application can be implemented using a general bus architecture. For ease of explanation, see [link to documentation]. Figure 14 , Figure 14 This is a schematic diagram of the structure of a communication device 1400 provided in an embodiment of this application. The communication device 1400 includes a processor 1401 and a transceiver 1402. The communication device 1400 can be a first communication device, or a chip or chip system therein; or, the communication device 1400 can be a second communication device, or a chip or module therein. Figure 14 Only the main components of the communication device 1400 are shown. In addition to the processor 1401 and transceiver 1402, the communication device may further include a memory 1403.
[0262] Optionally, the processor 1401 is mainly used to process communication protocols and communication data, control the entire communication device, execute software programs, and process the data of the software programs. The memory 1403 is mainly used to store software programs and data. The transceiver 1402 may include radio frequency (RF) circuitry and an antenna. The RF circuitry is mainly used for converting baseband signals to RF signals and processing RF signals. The antenna is mainly used for transmitting and receiving RF signals in the form of electromagnetic waves.
[0263] Optionally, the processor 1401, transceiver 1402, and memory 1403 can be connected via a communication bus.
[0264] When the communication device is powered on, the processor 1401 can read the software program in the memory 1403, interpret and execute the instructions of the software program, and process the data of the software program. When data needs to be transmitted wirelessly, the processor 1401 performs baseband processing on the data to be transmitted and outputs the baseband signal to the radio frequency (RF) circuit. The RF circuit processes the baseband signal and transmits the RF signal outward in the form of electromagnetic waves through the antenna. When data is sent to the communication device, the RF circuit receives the RF signal through the antenna, converts the RF signal into a baseband signal, and outputs the baseband signal to the processor 1401. The processor 1401 converts the baseband signal into data and processes the data.
[0265] In some embodiments, transceiver 1402 may include a transmitter and a receiver, wherein the transmitter is used to implement the transmission operation in the above method embodiments; and the receiver is used to implement the reception operation in the above method embodiments.
[0266] For example, when the communication device is a chip, the chip may not include the memory 1403; that is, the communication device includes a processor 1401 and a transceiver 1402. In this case, the transceiver 1402 is the input / output interface of the chip, wherein the transmitter in the transceiver corresponds to the output interface of the chip, and the receiver in the transceiver corresponds to the input interface of the chip.
[0267] In some embodiments, this application also provides a communication device, which includes a processor for implementing the methods in any of the above method embodiments.
[0268] As one possible implementation, the communication device also includes a memory. This memory stores necessary computer programs or instructions. The processor can invoke the computer programs or instructions in the memory to cause the communication device to execute the methods in any of the above method embodiments. Alternatively, the memory may be external and not located within the communication device.
[0269] As another possible implementation, the communication device also includes an interface circuit, which is a code / data read / write interface circuit, used to receive computer execution instructions (which are stored in memory and may be read directly from memory or may be transmitted through other devices) and transmit them to the processor.
[0270] As another possible implementation, the communication device also includes a communication interface for communicating with modules outside the communication device.
[0271] It is understood that the communication device can be a chip or a chip system. When the communication device is a chip system, it can be composed of chips or may include chips and other discrete devices. This application does not specifically limit this.
[0272] This application also provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a computer, implements the functions of any of the above-described method embodiments.
[0273] This application also provides a computer program product that, when executed by a computer, implements the functions of any of the above method embodiments.
[0274] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0275] It is understood that the systems, apparatuses, and methods described in this application can also be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the couplings or direct couplings or communication connections shown or discussed may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0276] The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. The components shown as units may or may not be physical units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0277] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0278] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program or instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive (SSD)). In this embodiment, the computer may include the aforementioned apparatus.
[0279] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
Claims
1. A method of ranging, characterized by, The method is performed by a first communication device, and the method comprises: sending indication information, the indication information indicating a second communication device to send a sound wave signal; receiving N sound wave signals, the N sound wave signals corresponding to N relative coordinates respectively, the N relative coordinates being coordinates of N signal receiving positions relative to a reference position respectively, N being a positive integer greater than or equal to 3; determining a distance offset value according to the N relative coordinates, N receiving times, and a first time difference, the N receiving times being receiving times corresponding to the N sound wave signals respectively, the first time difference being a time difference of signals between the first communication device and the second communication device, the distance offset value being used to determine a distance between the first communication device and the second communication device. The sending of the indication information comprises:
2. The method of claim 1, wherein, determining whether the distance offset value exists according to a load of the first communication device; in a case where the distance offset value does not exist, sending the indication information; in a case where the distance offset value exists, determining the distance between the first communication device and the second communication device by using the distance offset value. The determination of the distance offset value according to the N relative coordinates, N receiving times, and the first time difference comprises:
3. The method according to claim 1 or 2, characterized in that, determining a second time difference according to the N relative coordinates and the N receiving times, the second time difference being a local time difference between the first communication device and the second communication device; determining the distance offset value according to the second time difference and the first time difference. The determination of the second time difference according to the N relative coordinates and the N receiving times comprises:
4. The method of claim 3, wherein, determining a coordinate position of the second communication device according to the N relative coordinates and the N receiving times; determining N distances, the N distances being distances between the N relative coordinates and the coordinate position of the second communication device respectively; determining the second time difference according to the N distances and the N receiving times. The determination of the coordinate position of the second communication device according to the N relative coordinates and the N receiving times comprises:
5. The method of claim 4, wherein, determining the coordinate position of the second communication device according to the N relative coordinates, the N receiving times, and N sending times, the N sending times being sending times corresponding to the N sound wave signals respectively. The N relative coordinates, the N receiving times, the N sending times, and the coordinate position of the second communication device satisfy the following relationship:
6. The method of claim 5, wherein, the sound wave signal is periodically sent; wherein (x, y) represents a coordinate position of the second communication device, (x i , y i ) represents an i-th coordinate among the N relative coordinates, i represents a number of the i-th coordinate among the N relative coordinates, t' i represents a reception time of a sound wave signal received at the i-th coordinate, t i represents a transmission time of a sound wave signal transmitted at the i-th coordinate, (x j , y j ) represents a j-th coordinate among the N relative coordinates, j represents a number of the j-th coordinate among the N relative coordinates, t j ′ represents a reception time of a sound wave signal received at the j-th coordinate, t j represents a transmission time of a sound wave signal transmitted at the j-th coordinate, the i-th coordinate and the j-th coordinate are any two coordinates among the N relative coordinates, and v represents a transmission speed of the sound wave signal, i and j are positive integers less than or equal to N, and i and j are different.
7. The method of claim 4, wherein, the N relative coordinates, the N receiving times, and the coordinate position of the second communication device satisfy the following relationship: the indication information indicating the second communication device to send the sound wave signal comprises the indication information indicating the second communication device to periodically send the sound wave signal. wherein (x, y) represents a coordinate position of the second communication device, (x i , y i ) represents an i-th coordinate among the N relative coordinates, i represents a number of the i-th coordinate among the N relative coordinates, t ′ i represents a receiving time of a sound wave signal received at the i-th coordinate, (x j , y j ) represents a j-th coordinate among the N relative coordinates, j represents a number of the j-th coordinate among the N relative coordinates, t' j represents a receiving time of a sound wave signal received at the j-th coordinate, the i-th coordinate and the j-th coordinate are any two coordinates among the N relative coordinates, T represents a transmission period of the sound wave signal, v represents a transmission speed of the sound wave signal, i and j are positive integers less than or equal to N, and i and j are different.
8. The method of claim 7, wherein, the N distances, the N receiving times, and the second time difference satisfy the following relationship:
9. The method according to any one of claims 4-8, characterized in that, the second time difference, the first time difference, and the distance offset value satisfy the following relationship: wherein Δt represents the second time difference, N represents the number of the N distances, D k represents the kth distance in the N distances, l = 1, 2, …, N, t k represents the transmission time of the sound wave signal used for determining the kth distance in the N sound wave signals, t' k represents the reception time of the sound wave signal used for determining the kth distance in the N sound wave signals, v represents the transmission speed of the sound wave signal.
10. The method according to any one of claims 3-9, characterized in that, Before the receiving of the N sound wave signals, the method further comprises: d = v * (Δt - Δt B ); where d represents the distance offset value, At represents the second time difference, At B represents the first time difference, and v represents the transmission speed of the sound wave signal.
11. The method according to any one of claims 1 to 10, characterized in that, The N relative coordinates correspond to positions determined based on a preset motion trajectory.
12. The method according to any one of claims 1 to 11, characterized in that, The N relative coordinates cannot form a straight line.
13. A method of ranging, the method comprising: The method is performed by a second communication device, and the method comprises: receiving indication information, the indication information indicating that the second communication device transmits acoustic signals; transmitting a plurality of acoustic signals according to the indication information; The N acoustic signals correspond to N relative coordinates respectively, the N phase coordinates are coordinates of the N signal receiving positions relative to a reference position respectively, the N phase coordinates are used to determine a distance offset value, the distance offset value is used to determine a distance between the first communication device and the second communication device, and N is a positive integer greater than or equal to 3.
14. The method of claim 13, wherein, The N phase coordinates are used to determine a distance offset value, comprising: The N phase coordinates, N receiving times, and a first time difference are used to determine the distance offset value, the N receiving times are receiving times corresponding to the N acoustic signals respectively, and the first time difference is a time difference between signals between the first communication device and the second communication device.
15. The method of claim 14, wherein, The N phase coordinates, N receiving times, and a first time difference are used to determine the distance offset value, comprising: The N phase coordinates and N receiving times are used to determine a second time difference, and the second time difference and the first time difference are used to determine the distance offset value, and the second time difference is a local time difference between the first communication device and the second communication device.
16. The method of claim 15, wherein, The N phase coordinates and N receiving times are used to determine a second time difference, comprising: The N phase coordinates and N receiving times are used to determine a coordinate position of the second communication device, the coordinate position of the second communication device and the N relative coordinates are used to determine N distances, the N distances and the N receiving times are used to determine the second time difference, and the N distances are distances between the N relative coordinates and the coordinate position of the second communication device respectively.
17. The method of claim 16, wherein, The N phase coordinates and N receiving times are used to determine a coordinate position of the second communication device, comprising: The N relative coordinates, the N receiving times, and N transmitting times are used to determine a coordinate position of the second communication device, and the N transmitting times are transmitting times corresponding to the N acoustic signals respectively.
18. The method of claim 16, wherein, The acoustic signals are periodically transmitted; The N phase coordinates and N receiving times are used to determine a coordinate position of the second communication device, comprising: The N phase coordinates, the N receiving times, and a period of the acoustic signals are used to determine the coordinate position of the second communication device.
19. The method of claim 18, wherein, The indication information indicating that the second communication device transmits acoustic signals comprises that the indication information indicates that the second communication device periodically transmits the acoustic signals.
20. The method according to any one of claims 13-19, characterized by, The N relative coordinates cannot form a straight line.
21. A communications device, characterized by The communication device comprises a transceiver module and a processing module, The transceiving module is configured to perform the receiving or transmitting in the method of any one of claims 1-12, or perform the receiving or transmitting in the method of any one of claims 13-20. The processing module is configured to perform the processing in the method of any one of claims 1-12, or perform the processing in the method of any one of claims 13-20.
22. A communications device, characterized by The communication device comprises a processor, and the processor is configured to run a computer program or instructions to cause the communication device to perform the method of any one of claims 1-12, or to perform the method of any one of claims 13-20.
23. The apparatus of claim 22, wherein, The communication device further comprises a memory, and the memory is configured to store the computer program or instructions required for performing the method of any one of claims 1-12, or to store the computer program or instructions required for performing the method of any one of claims 13-20.
24. A computer-readable storage medium, characterized in that, A computer readable storage medium stores computer instructions or programs, and when the computer instructions or programs are run on a computer, the method of any one of claims 1-12 is performed, or the method of any one of claims 13-20 is performed.
25. A computer program product, characterised in that, The computer program product comprises computer programs or instructions, and when part or all of the computer instructions are run on a computer, the method of any one of claims 1-12 is performed, or the method of any one of claims 13-20 is performed.
26. A chip, characterized by The computer program product comprises computer programs or instructions, and when part or all of the computer instructions are run on a computer, the method of any one of claims 1-12 is performed, or the method of any one of claims 13-20 is performed. The computer program product comprises computer programs or instructions, and when part or all of the computer instructions are run on a computer, the method of any one of claims 1-12 is performed, or the method of any one of claims 13-20 is performed. The computer program product comprises computer programs or instructions, and when part or all of the computer instructions are run on a computer, the method of any one of claims 1-12 is performed, or the method of any one of claims 13-20 is performed. The computer program product comprises computer programs or instructions, and when part or all of the computer instructions are run on a computer, the method of any one of claims 1-12 is performed, or the method of any one of claims 13-20 is performed.
Citation Information
Patent Citations
Time synchronization method and device
CN110971326A
Distance measurement method and device, storage medium and electronic equipment
CN112291710A
Audio positioning system, method and terminal for smart phone and wearable device
CN114828211A
Method and device for determining relative position
CN117676459A
Positioning method and electronic device
WO2022001147A1
