[go: up one dir, main page]

CN114167396B - Control method and related device based on ultra-wideband ranging - Google Patents

Control method and related device based on ultra-wideband ranging Download PDF

Info

Publication number
CN114167396B
CN114167396B CN202010947346.8A CN202010947346A CN114167396B CN 114167396 B CN114167396 B CN 114167396B CN 202010947346 A CN202010947346 A CN 202010947346A CN 114167396 B CN114167396 B CN 114167396B
Authority
CN
China
Prior art keywords
ultra
processor
crystal oscillator
wideband
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010947346.8A
Other languages
Chinese (zh)
Other versions
CN114167396A (en
Inventor
郭富祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010947346.8A priority Critical patent/CN114167396B/en
Publication of CN114167396A publication Critical patent/CN114167396A/en
Application granted granted Critical
Publication of CN114167396B publication Critical patent/CN114167396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • G01S11/08Systems for determining distance or velocity not using reflection or reradiation using radio waves using synchronised clocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Oscillators With Electromechanical Resonators (AREA)

Abstract

本申请提供了一种基于超宽带测距的控制方法及相关装置,所述方法应用于基于超宽带测距的控制系统,所述系统包括超宽带芯片、处理器、晶体振荡器、存储器,所述超宽带芯片包括超宽带协议单元、超宽带射频收发单元;首先,处理器调用所述存储器内置的时钟检测算法获取所述晶体振荡器的时钟数据;所述处理器根据所述时钟数据确定所述晶体振荡器的工作状态,所述工作状态包括稳定状态;在所述稳定状态下,所述处理器向所述超宽带协议单元发送第一通知消息,所述第一通知消息用于使所述超宽带协议单元控制所述超宽带射频收发单元发射信号和接收信号。可以在UWB测距之前先自动确定晶体振动器的状态来确定开始UWB测距的时间,大大提高了测距精度。

The present application provides a control method based on ultra-wideband ranging and a related device, the method is applied to a control system based on ultra-wideband ranging, the system includes an ultra-wideband chip, a processor, a crystal oscillator, and a memory, the ultra-wideband chip includes an ultra-wideband protocol unit and an ultra-wideband radio frequency transceiver unit; first, the processor calls the clock detection algorithm built into the memory to obtain the clock data of the crystal oscillator; the processor determines the working state of the crystal oscillator according to the clock data, and the working state includes a stable state; in the stable state, the processor sends a first notification message to the ultra-wideband protocol unit, and the first notification message is used to enable the ultra-wideband protocol unit to control the ultra-wideband radio frequency transceiver unit to transmit and receive signals. The state of the crystal oscillator can be automatically determined before UWB ranging to determine the time to start UWB ranging, which greatly improves the ranging accuracy.

Description

Control method and related device based on ultra-wideband ranging
Technical Field
The application relates to the technical field of communication, in particular to a control method and a related device based on ultra-wideband ranging.
Background
With the development of technology, indoor ranging technology is also developed more and more perfectly, and Ultra Wide Band (UWB) technology is a wireless carrier communication technology, which does not adopt a sinusoidal carrier, but uses non-sinusoidal narrow pulses of nanosecond level to transmit data, so that the occupied spectrum range is very Wide. At present, the UWB technology can be utilized to perform indoor ranging, but the current UWB technology needs a certain time from starting to stabilizing, and generally can be stabilized after hundreds of milliseconds or even one second, because the UWB ranging power consumption is very low, and the UWB ranging enters a dormant state after the ranging is completed, the related modules can be continuously switched back and forth between a working mode and a dormant mode, the prior means is to delay for a certain time after each time of entering the working mode to perform ranging, but the stabilizing time of different crystal oscillators is not necessarily the same, and the crystal oscillators are easily influenced by external factors such as temperature, voltage and the like, so that the accuracy is easily reduced due to the influence of the crystal oscillators during UWB ranging.
Disclosure of Invention
Based on the problems, the application provides a control method and a related device based on ultra-wideband ranging, which can automatically determine the state of a crystal vibrator to determine the time for starting UWB ranging before UWB ranging, thereby greatly improving the ranging precision.
In a first aspect, an embodiment of the present application provides a control method based on ultra wideband ranging, where the method is applied to a control system based on ultra wideband ranging, the system includes an ultra wideband chip, a processor, a crystal oscillator, and a memory, the ultra wideband chip includes an ultra wideband protocol unit, an ultra wideband radio frequency transceiver unit, the ultra wideband chip is connected to the processor and the crystal oscillator, respectively, and the processor is further connected to the memory, the method includes:
The processor calls a clock detection algorithm built in the memory to acquire clock data of the crystal oscillator;
The processor determines the working state of the crystal oscillator according to the clock data, wherein the working state comprises a stable state;
And in the stable state, the processor sends a first notification message to the ultra-wideband protocol unit, wherein the first notification message is used for enabling the ultra-wideband protocol unit to control the ultra-wideband radio frequency transceiver unit to transmit signals and receive signals.
In a second aspect, an embodiment of the present application provides a control system based on ultra-wideband ranging, where the system is applied to an electronic device, and the system includes an ultra-wideband chip, a processor, a crystal oscillator, and a memory, where the ultra-wideband chip includes an ultra-wideband protocol unit, an ultra-wideband radio frequency transceiver unit, and the ultra-wideband chip is connected to the processor and the crystal oscillator respectively, and the processor is further connected to the memory, and the processor is configured to invoke a clock detection algorithm built in the memory to perform the following operations, where the operations include:
acquiring clock data of the crystal oscillator;
determining a working state of the crystal oscillator according to the clock data, wherein the working state comprises a stable state;
And in the stable state, a first notification message is sent to the ultra-wideband protocol unit, and the first notification message is used for enabling the ultra-wideband protocol unit to control the ultra-wideband radio frequency transceiver unit to transmit signals and receive signals.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing steps in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform part or all of the steps as described in any of the methods of the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, first, the processor calls a clock detection algorithm built in the memory to obtain clock data of the crystal oscillator; the processor determines the working state of the crystal oscillator according to the clock data, wherein the working state comprises a stable state; and in the stable state, the processor sends a first notification message to the ultra-wideband protocol unit, wherein the first notification message is used for enabling the ultra-wideband protocol unit to control the ultra-wideband radio frequency transceiver unit to transmit signals and receive signals. The state of the crystal vibrator can be automatically determined to determine the time for starting UWB ranging before UWB ranging, and the ranging accuracy is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an architecture of a control system based on ultra-wideband ranging according to an embodiment of the present application;
fig. 2 is a schematic diagram of a functional unit of a control system based on ultra-wideband ranging according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a control method based on ultra-wideband ranging according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a frequency variation of a crystal oscillator according to an embodiment of the present application;
Fig. 5 is a flow chart of another control method based on ultra wideband ranging according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
For a better understanding of the aspects of the embodiments of the present application, the following description will first be made with respect to terms and concepts that may be related to the embodiments of the present application, and the following description is made with respect to the principle of UWB ranging:
Two-Way Time of Flight (TW-TOF), for example, each UWB module generates an independent Time stamp from start-up. The transmitter of UWB module a transmits a pulse signal of a requested nature at Ta1 on its time stamp, UWB module B transmits a signal of a responsive nature at time Tb2, which is received by UWB module a at its own time stamp Ta2, whereby the time of flight of the pulse signal between the two UWB modules can be calculated, and the flight distance S, s= C x [ (Ta 2-Ta 1) - (Tb 2-Tb 1) ] (C is the speed of light) is determined.
The TOF ranging method belongs to Two-way ranging technology (Two WAY RANGING, TWR), which mainly uses the time of flight of signals between Two asynchronous transceivers (transceivers) to measure the distance between nodes. Since the TOF-based ranging method is linear with distance in a line-of-sight environment, the result is more accurate. The time interval between the data packet sent by the sending end and the response received by the receiving end is marked as TTAT, and then the time TTOF of the data packet in one-way flight in the air can be calculated as: ttof= (TTOT-TTAT)/2, and then the distance d=cxttof between the two points can be calculated according to the performance of TTOF and the propagation speed of electromagnetic wave. The method of UWB ranging is not described in detail herein.
In the following description of the control system based on the ultra wideband ranging according to the embodiment of the present application with reference to fig. 1, fig. 1 is a schematic diagram of an architecture of the control system based on the ultra wideband ranging according to the embodiment of the present application, where the control system 100 includes an ultra wideband chip 110, a processor 120, a crystal oscillator 130, and a memory 140, the ultra wideband chip 110 includes an ultra wideband protocol unit 111, an ultra wideband radio frequency transceiver unit 112, the ultra wideband chip 110 is respectively connected to the processor 120 and the crystal oscillator 130, the processor 120 is further connected to the memory 140, where the ultra wideband protocol unit 110 is connected to the ultra wideband radio frequency transceiver unit 112, the ultra wideband protocol unit 110 may be a micro control unit (Microcontroller Unit, MCU) for controlling the ultra wideband radio frequency unit 112 to send signals and receive signals, the ultra wideband radio frequency transceiver unit 112 may be a radio frequency transceiver for transmitting and receiving signals, and also may be used for receiving clock signals of the crystal oscillator 130 and transferring to the processor 120, the processor 120 may call a detection algorithm from the memory 140 to process the clock signal to control whether the ultra wideband radio frequency transceiver unit 112 starts to send signals, i.e. to the ultra wideband radio frequency transceiver unit 112 starts sending instructions.
In the following, description will be given of functional units of a control system according to an embodiment of the present application with reference to fig. 2, fig. 2 is a schematic diagram of functional units of a control system based on ultra wideband ranging according to an embodiment of the present application, specifically including a UWB protocol control unit 210, a UWB radio frequency transceiver unit 220, a crystal unit 230, and a clock detection unit 240, where the UWB protocol control unit 210 is respectively connected to the UWB radio frequency transceiver unit 220 and the clock detection unit 240, the UWB radio frequency transceiver unit 220 is respectively connected to the crystal unit 230 and the clock detection unit 240, specifically, the UWB radio frequency transceiver unit 220 may acquire a clock signal of the crystal unit 230 and send the clock signal to the clock detection unit 240, the clock detection unit 240 may analyze the acquired clock signal to determine whether the operation state of the crystal unit 230 is stable, and then send a relevant notification message to the UWB protocol control unit 210 based on the operation state of the crystal unit 230,
Through the system architecture, the state of the crystal vibrator can be automatically determined to determine the time for starting UWB ranging before UWB ranging, the situation that the crystal vibrator is unstable is avoided, and the ranging accuracy is greatly improved.
The following describes a control method based on ultra wideband in the embodiment of the present application with reference to fig. 3, where the method is applied to a control system based on ultra wideband ranging, the system includes an ultra wideband chip, a processor, a crystal oscillator, and a memory, the ultra wideband chip includes an ultra wideband protocol unit, an ultra wideband radio frequency transceiver unit, the ultra wideband chip is respectively connected to the processor and the crystal oscillator, the processor is further connected to the memory, and fig. 3 is a flow diagram of the control method based on ultra wideband provided by the embodiment of the present application, and specifically includes the following steps:
in step 301, the processor invokes a clock detection algorithm built in the memory to acquire clock data of the crystal oscillator.
The memory is internally provided with a related clock detection algorithm, the clock detection algorithm can be used for acquiring clock data of the crystal oscillator and analyzing and processing the clock data, specifically, the processor can receive the clock data, i.e. clock signals, of the crystal oscillator within a preset period, which are sent by the ultra-wideband radio frequency transceiver unit, and it can be understood that the clock data are clock signals of the crystal oscillator within a period.
When the ultra-wideband radio frequency transceiver unit is in a restarting state, the clock signal of the crystal oscillator is acquired in the preset period, the restarting state can comprise any one of starting, powering up again, resetting and restarting, and it can be understood that the restarting state of the ultra-wideband radio frequency transceiver unit is triggered by the ultra-wideband protocol control unit as long as the ultra-wideband radio frequency transceiver unit is converted from a dormant state to a working state.
Therefore, the processor calls a clock detection algorithm built in the memory to acquire clock data of the crystal oscillator, so that the UWB module can be prevented from ranging when the UWB module is just awakened, and the situation that the accuracy of the ranging is low due to instability of the crystal oscillator is avoided.
In step 302, the processor determines a working state of the crystal oscillator according to the clock data.
Wherein the operating state comprises a steady state representing a frequency of the crystal oscillator proximate to the nominal frequency.
Specifically, the processor may calculate frequency data of the crystal oscillator in a preset period according to the clock data, split the preset period into a plurality of first sampling periods and a plurality of second sampling periods, calculate a frequency value of the crystal oscillator once every other first sampling period, calculate a maximum frequency and a minimum frequency in the current second sampling period once every other second sampling period, and the duration of the second sampling period is an integer multiple of the first sampling period. For example, as shown in fig. 4, fig. 4 is a schematic diagram of frequency variation of a crystal oscillator according to an embodiment of the present application, it can be seen that the preset period is composed of four second sampling periods Δt2, each second sampling period Δt2 is composed of four first sampling periods Δt1, the processor calculates the frequency of the crystal oscillator once every Δt1, determines the maximum frequency fmax_k and the minimum frequency fmin_k of each Δt2, obtains the ratio Δfk/f0 between the frequency difference data Δfk of the maximum frequency fmax_k and the minimum frequency fmin_k and the nominal frequency f0, the nominal frequency f0 is configured to the memory by the ultra wideband protocol control unit, and indicates the frequency at which the crystal oscillator operates normally,
When Δfk/f0 is less than a preset threshold, the processor determines that the crystal oscillator is in the steady state;
and when the delta fk/f0 is larger than or equal to the preset threshold value, the processor determines that the crystal oscillator is in an unstable state.
The above-mentioned preset threshold is also preconfigured by the ultra wideband protocol control unit, and is not limited herein, and it should be noted that fig. 4 is a case where Δfk/f0 is determined to be smaller than the preset threshold only in the fourth second sampling period Δt2, and if Δfk/f0 is determined to be smaller than the preset threshold in the first second sampling period Δt2, it may be determined that the crystal oscillator is in a stable state without waiting for the preset period to reach the time limit.
Therefore, the working state of the crystal oscillator is determined by the processor according to the clock data, whether the crystal oscillator is stable or not can be determined before UWB ranging, and the problem that the accuracy is lower due to direct ranging when the crystal oscillator is unstable is avoided.
Step 303, in the stable state, the processor sends a first notification message to the ultra wideband protocol unit.
The first notification message is used to enable the UWB protocol unit to control the UWB transceiver unit to transmit signals and receive signals, i.e., start ranging, and the UWB ranging process is not described herein.
By the method, the state of the crystal vibrator can be automatically determined to determine the time for starting UWB ranging before UWB ranging, and the ranging accuracy is greatly improved.
The following describes another control method based on ultra-wideband ranging in the embodiment of the present application with reference to fig. 5, where the method is applied to a control system based on ultra-wideband ranging, the system includes an ultra-wideband chip, a processor, a crystal oscillator, and a memory, the ultra-wideband chip includes an ultra-wideband protocol unit, an ultra-wideband radio frequency transceiver unit, the ultra-wideband chip is respectively connected to the processor and the crystal oscillator, the processor is further connected to the memory, and fig. 5 is a flow diagram of another control method based on ultra-wideband ranging provided in the embodiment of the present application, and specifically includes the following steps:
in step 501, the processor invokes a clock detection algorithm built in the memory to acquire clock data of the crystal oscillator.
Step 502, the processor determines the working state of the crystal oscillator according to the clock data.
Wherein the operating state comprises an unstable state.
In step 503, in the unstable state, the processor continues to receive clock data of the crystal oscillator in a maximum sampling period and determines an operating state of the crystal oscillator according to the clock data.
Wherein the maximum sampling period indicates a preset period, that is, the processor continues to receive the clock signal of the crystal oscillator sent by the ultra wideband radio frequency transceiver unit in the preset period, and as illustrated by the example in fig. 4,
It can be seen that the preset period is composed of four second sampling periods Δt2, and each second sampling period Δt2 is composed of four first sampling periods Δt1, the processor calculates the frequency of the crystal oscillator once every Δt1, determines the maximum frequency fmax_k and the minimum frequency fmin_k of each Δt2, and obtains the ratio Δfk/f0 between the frequency difference data Δfk of the maximum frequency fmax_k and the minimum frequency fmin_k and the nominal frequency f0, the nominal frequency f0 is configured to the memory by the ultra wideband protocol control unit, at this time, the frequency representing the normal operation frequency of the crystal oscillator is greater than or equal to the preset threshold value in the first Δt2, the processor determines that the crystal oscillator is in an unstable state, at this time, and further calculates the ratio Δfk/f0 between the frequency difference data Δfk of the maximum frequency fmax_k and the minimum frequency fmin_k and the nominal frequency f0, and the nominal frequency f0 is not smaller than the preset threshold value in the first Δt2, and the second Δfk/f0 can be further processed in the fourth step 504, and the fourth step Δf0 is not smaller than the preset threshold value in the first Δt2, and the fourth step 504 can be further described.
Therefore, in the unstable state, the processor continuously receives clock data of the crystal oscillator in the maximum sampling period and determines the working state of the crystal oscillator according to the clock data, so that the UWB module can be prevented from ranging immediately after being awakened.
Step 504, if the working state is still the unstable state when the maximum sampling period is exceeded, the processor sends a second notification message to the ultra wideband protocol unit.
The second notification message indicates that the crystal oscillator is in fault, so that the processor is prevented from detecting the crystal oscillator all the time, a user is reminded of repairing the UWB module in time, and the use experience is greatly improved.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional units of the electronic device according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
An electronic device according to an embodiment of the present application will be described in detail below with reference to fig. 6, where fig. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application, and includes a processor 610, a memory 620, a communication interface 630, and one or more programs 621, where the one or more programs 621 are stored in the memory 620 and configured to be executed by the processor 610, and the one or more programs 621 include instructions for executing any steps in the method embodiments. The electronic device 600 includes a control system based on ultra wideband ranging, the system includes an ultra wideband chip, a processor, a crystal oscillator, and a memory, the ultra wideband chip includes an ultra wideband protocol unit, an ultra wideband radio frequency transceiver unit, the ultra wideband chip is respectively connected to the processor and the crystal oscillator, the processor is also connected to the memory,
In one possible embodiment, the program 621 includes instructions for performing the steps of:
acquiring clock data of the crystal oscillator;
determining a working state of the crystal oscillator according to the clock data, wherein the working state comprises a stable state;
And in the stable state, a first notification message is sent to the ultra-wideband protocol unit, and the first notification message is used for enabling the ultra-wideband protocol unit to control the ultra-wideband radio frequency transceiver unit to transmit signals and receive signals.
Firstly, the processor calls a clock detection algorithm built in the memory to acquire clock data of the crystal oscillator; the processor determines the working state of the crystal oscillator according to the clock data, wherein the working state comprises a stable state; and in the stable state, the processor sends a first notification message to the ultra-wideband protocol unit, wherein the first notification message is used for enabling the ultra-wideband protocol unit to control the ultra-wideband radio frequency transceiver unit to transmit signals and receive signals. The state of the crystal vibrator can be automatically determined to determine the time for starting UWB ranging before UWB ranging, and the ranging accuracy is greatly improved.
In an alternative embodiment, the instructions in the program 621 are specifically configured to, in terms of invoking the clock detection algorithm built in the memory to obtain clock data of the crystal oscillator:
and receiving clock data of the crystal oscillator in a preset period, wherein the clock data comprise clock signals, and the clock data are sent by the ultra-wideband radio frequency transceiver unit.
In an alternative embodiment, the instructions in program 621 are specifically configured to, in determining the operational state of the crystal oscillator based on the clock data:
Calculating frequency data of the crystal oscillator in the preset period according to the clock data;
The processor determines the working state of the crystal oscillator according to the frequency data.
In an alternative embodiment, the preset period is composed of a first sampling period and a second sampling period, and the second sampling period is an integer multiple of the first sampling period; the frequency data includes a maximum frequency and a minimum frequency; in terms of calculating the frequency data of the crystal oscillator in the preset period according to the clock data, the instructions in the program 621 are specifically configured to perform the following operations:
The processor calculates a frequency value of the crystal oscillator in each first sampling period according to the clock data;
the processor determines the maximum frequency and the minimum frequency from the frequency value of each first sampling period within the second sampling period.
In an alternative embodiment, the instructions in program 621 are specifically configured to, in determining the operating state of the crystal oscillator from the frequency data:
Acquiring the ratio between the frequency difference data of the maximum frequency and the minimum frequency and the nominal frequency, wherein the nominal frequency is configured to the memory by the ultra-wideband protocol control unit and represents the frequency of the normal operation of the crystal oscillator;
When the ratio is less than the preset threshold, the processor determines that the crystal oscillator is in the stable state;
And when the ratio is greater than or equal to the preset threshold value, the processor determines that the crystal oscillator is in an unstable state.
In an alternative embodiment, the operating state comprises an unstable state; in terms of determining the operational state of the crystal oscillator from the clock data, the instructions in the program 621 are specifically further operable to:
In the unstable state, the processor continuously receives clock data of the crystal oscillator in a maximum sampling period and determines the working state of the crystal oscillator according to the clock data;
and if the working state is still the unstable state when the maximum sampling period is exceeded, the processor sends a second notification message to the ultra-wideband protocol unit, wherein the second notification message indicates that the crystal oscillator is in fault.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The control method based on ultra-wideband ranging is characterized in that the method is applied to a control system based on ultra-wideband ranging, the system comprises an ultra-wideband chip, a processor, a crystal oscillator and a memory, the ultra-wideband chip comprises an ultra-wideband protocol unit and an ultra-wideband radio frequency transceiver unit, the ultra-wideband chip is respectively connected with the processor and the crystal oscillator, and the processor is also connected with the memory, and the method comprises the following steps:
The processor calls a clock detection algorithm built in the memory to acquire clock data of the crystal oscillator;
The processor determines the working state of the crystal oscillator according to the clock data, wherein the working state comprises an unstable state;
In the unstable state, the processor continuously receives clock data of the crystal oscillator in a maximum sampling period and determines the working state of the crystal oscillator according to the clock data;
and if the working state is still the unstable state when the maximum sampling period is exceeded, the processor sends a second notification message to the ultra-wideband protocol unit, wherein the second notification message indicates that the crystal oscillator is in fault.
2. The method of claim 1, wherein the operating state comprises a steady state; after the processor determines the working state of the crystal oscillator according to the clock data, the method further comprises:
And in the stable state, the processor sends a first notification message to the ultra-wideband protocol unit, wherein the first notification message is used for enabling the ultra-wideband protocol unit to control the ultra-wideband radio frequency transceiver unit to transmit signals and receive signals.
3. The method of claim 1, wherein the processor invokes a clock detection algorithm built in the memory to obtain clock data of the crystal oscillator; comprising the following steps:
The processor receives clock data of the crystal oscillator in a preset period, which is sent by the ultra-wideband radio frequency transceiver unit, wherein the clock data comprises clock signals.
4. A method according to claim 3, wherein the processor determining the operating state of the crystal oscillator from the clock data comprises:
the processor calculates and obtains frequency data of the crystal oscillator in the preset period according to the clock data;
The processor determines the working state of the crystal oscillator according to the frequency data.
5. The method of claim 4, wherein the predetermined period consists of a first sampling period and a second sampling period, the second sampling period being an integer multiple of the first sampling period; the frequency data includes a maximum frequency and a minimum frequency; the processor calculates frequency data of the crystal oscillator in the preset period according to the clock data, and the frequency data comprises:
The processor calculates a frequency value of the crystal oscillator in each first sampling period according to the clock data;
the processor determines the maximum frequency and the minimum frequency from the frequency value of each first sampling period within the second sampling period.
6. The method of claim 5, wherein the processor determining the operating state of the crystal oscillator from the frequency data comprises:
the processor obtains the ratio between the frequency difference data of the maximum frequency and the minimum frequency and the nominal frequency, wherein the nominal frequency is configured to the memory by the ultra-wideband protocol unit and represents the frequency of the crystal oscillator in normal operation;
when the ratio is smaller than a preset threshold value, the processor determines that the crystal oscillator is in the stable state;
and when the ratio is greater than or equal to the preset threshold, the processor determines that the crystal oscillator is in the unstable state.
7. The method of any one of claims 1-6, wherein the ultra-wideband radio frequency transceiver unit is in a reboot state before the processor obtains clock data of the crystal oscillator, the reboot state including any one of a reboot, a reset, a reboot, and a start.
8. The control system based on ultra-wideband ranging is characterized in that the system is applied to electronic equipment and comprises an ultra-wideband chip, a processor, a crystal oscillator and a memory, wherein the ultra-wideband chip comprises an ultra-wideband protocol unit, an ultra-wideband radio frequency transceiver unit and the ultra-wideband chip is respectively connected with the processor and the crystal oscillator, the processor is also connected with the memory, and the processor is used for calling a clock detection algorithm arranged in the memory to execute the following operations, and the operations comprise:
acquiring clock data of the crystal oscillator;
Determining a working state of the crystal oscillator according to the clock data, wherein the working state comprises an unstable state;
In the unstable state, the processor continuously receives clock data of the crystal oscillator in a maximum sampling period and determines the working state of the crystal oscillator according to the clock data;
and if the working state is still the unstable state when the maximum sampling period is exceeded, the processor sends a second notification message to the ultra-wideband protocol unit, wherein the second notification message indicates that the crystal oscillator is in fault.
9. An electronic device comprising an application processor, a memory, and one or more programs stored in the memory and configured to be executed by the application processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
CN202010947346.8A 2020-09-10 2020-09-10 Control method and related device based on ultra-wideband ranging Active CN114167396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010947346.8A CN114167396B (en) 2020-09-10 2020-09-10 Control method and related device based on ultra-wideband ranging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010947346.8A CN114167396B (en) 2020-09-10 2020-09-10 Control method and related device based on ultra-wideband ranging

Publications (2)

Publication Number Publication Date
CN114167396A CN114167396A (en) 2022-03-11
CN114167396B true CN114167396B (en) 2024-11-19

Family

ID=80475632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010947346.8A Active CN114167396B (en) 2020-09-10 2020-09-10 Control method and related device based on ultra-wideband ranging

Country Status (1)

Country Link
CN (1) CN114167396B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4475448A1 (en) * 2022-03-25 2024-12-11 Huawei Technologies Co., Ltd. Clock synchronization method and apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104198846A (en) * 2014-08-18 2014-12-10 广东大普通信技术有限公司 Automatic testing method and system of aging characteristics of crystal oscillator
CN111413677A (en) * 2020-02-27 2020-07-14 湖南师范大学 Difference frequency-delay type transceiver clock synchronization method, circuit and ultra-wideband pulse radar receiving device

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246793A (en) * 2003-02-17 2004-09-02 Sharp Corp Card type device
KR100592598B1 (en) * 2003-12-26 2006-06-26 한국전자통신연구원 Ultra Wide Band Wireless Bridge Device
CN101237228B (en) * 2007-01-29 2011-09-21 盛群半导体股份有限公司 Clock generation circuit structure and generation method
WO2008114202A2 (en) * 2007-03-22 2008-09-25 Koninklijke Philips Electronics N. V. Method for operating a data processing device, a data processing device and a data processing system
CN101350619B (en) * 2008-08-26 2011-03-16 浙江大学 Acousto-optic driver base on direct digital synthesis technology
CN101552664B (en) * 2009-05-25 2012-01-11 张剑 Synchronization method for transmitting reference Chirp ultra- wideband system group based on multiphase filtering code domain
CN102158950A (en) * 2011-04-26 2011-08-17 上海华为技术有限公司 Clock synchronization method, system, device and base station
CN102594344B (en) * 2012-01-09 2015-03-18 青岛海信移动通信技术股份有限公司 Centralized clock device and mobile terminal device
CN102970745A (en) * 2012-10-29 2013-03-13 云南电网公司西双版纳供电局 Multi-target real-time positioning system and implementation method based on ultra wide band (UWB)
CN103684484B (en) * 2013-12-23 2015-08-26 联想(北京)有限公司 A kind of signal transmitting method, a kind of transmitter and a kind of electronic equipment
CN106612104B (en) * 2015-10-26 2023-06-09 深圳市博巨兴微电子科技有限公司 Real-time clock error compensation device and method
CN106199511B (en) * 2016-06-23 2019-07-12 郑州联睿电子科技有限公司 VR location tracking system and its location tracking method based on ultra wide band positioning
CN106527112A (en) * 2016-11-11 2017-03-22 重庆微标科技股份有限公司 High precision time acquisition method and device
CN107064918B (en) * 2016-12-15 2020-04-21 水利部南京水利水文自动化研究所 A high-precision radar ranging method
EP3367122B1 (en) * 2017-02-27 2020-10-14 Nxp B.V. Apparatus for a radio device
US10778144B2 (en) * 2017-12-22 2020-09-15 Wiser Systems, Inc. Methods for correcting oscillator offsets in ultra-wideband (UWB) networks
CN108601044B (en) * 2018-06-01 2021-09-17 Oppo广东移动通信有限公司 Network type switching method and device, storage medium and mobile terminal
CN108549301B (en) * 2018-06-11 2020-09-18 南京邮电大学南通研究院有限公司 Ultra-wideband ground penetrating radar control system
CN108919242A (en) * 2018-06-13 2018-11-30 四川合众精准科技有限公司 A kind of precise distance measurement system of the UWB module of shared crystal oscillator
CN109547052B (en) * 2018-12-05 2020-07-07 北京理工大学 Ultra-wideband frequency modulation composite transceiver for communication and distance measurement
CN110662287A (en) * 2019-08-23 2020-01-07 上海孟伯智能物联网科技有限公司 Method for realizing wireless clock synchronization and information convergence in ultra-wideband positioning
CN110794364A (en) * 2019-09-09 2020-02-14 河南工业大学 UWB indoor positioning method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104198846A (en) * 2014-08-18 2014-12-10 广东大普通信技术有限公司 Automatic testing method and system of aging characteristics of crystal oscillator
CN111413677A (en) * 2020-02-27 2020-07-14 湖南师范大学 Difference frequency-delay type transceiver clock synchronization method, circuit and ultra-wideband pulse radar receiving device

Also Published As

Publication number Publication date
CN114167396A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
US8041972B2 (en) Apparatus and method for setting wakeup times in a communication device based on estimated lock on time of frequency synthesizer
CN114080067B (en) Discontinuous Reception (DRX) configuration method, device and equipment
EP3214544B1 (en) User equipment power management method and power management device
KR20150082521A (en) Method, device, and terminal for adjusting heartbeat cycle for application
WO2022105756A1 (en) Positioning method and apparatus, terminal device, base station, and position management server
CN114698071A (en) Energy supply method, device and communication equipment
KR102151456B1 (en) A method and apparatus for reducing power consumption of a radio terminal
CN114980322A (en) Improved window widening
CN114167396B (en) Control method and related device based on ultra-wideband ranging
US20090141737A1 (en) Systems and methods for prioritized channel access hardware assistance design
CN109743140B (en) Communication control method and device based on low-power-consumption wide area network
CN114697992B (en) Adjustment method, device and terminal for monitoring behaviors
CN111149313B (en) Data transmission method and equipment
CN114245443A (en) Wake-up alignment method, system and related device
US10599195B2 (en) Method and apparatus for controlling hot plug operation of CPU in mobile terminal
JP2015111916A (en) Method and apparatus for reducing power consumption when operating as a Bluetooth Low Energy device
US12107723B2 (en) Systems and methods of deploying a program to a distributed network
WO2019079115A1 (en) Programmable hardware sleep cycle controller for 802.11 wireless devices supporting low-power
CN115604866A (en) Awakening method, awakening device and terminal
CN112469111A (en) Wireless communication method and device based on LoRa and gateway equipment
CN115459897B (en) Step length synchronous calibration method and device in power real-time simulation and related equipment
CN115804028A (en) A method, device and readable storage medium for transmitting auxiliary information
CN106550437B (en) Device and method for reducing energy consumption of ZigBee network system
CN118265125B (en) Method and device for reducing power consumption of intelligent wearable device
CN111007916B (en) Terminal device time setting method and system, storage medium and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant