Positioning clock reference acquisition method, device, equipment and storage medium

By sending multiple rounds of instructions to obtain clock counts to multiple positioning base stations and generating an initial matrix to screen the clock reference, the problem of reduced accuracy in the clock reference acquisition process in the existing technology is solved, and high-precision underwater positioning is achieved.

CN116347355BActive Publication Date: 2024-09-24JILIN UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310332365.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-09-24
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

In the existing underwater positioning technology, the clock reference acquisition method has the problems of high cost, complex system and inaccurate clock synchronization. Especially when the underwater acoustic channel is time-varying and complex, it is difficult to achieve high-precision clock synchronization.

Method used

By sending multiple rounds of clock count acquisition instructions to multiple positioning base stations, an initial matrix is ​​generated, and the target clock reference is selected based on the delay time of the clock count in the matrix to achieve high-precision acquisition of the clock reference.

Benefits of technology

It simplifies the clock reference acquisition process, improves the accuracy of clock synchronization, and ensures high-precision time difference measurement and underwater positioning accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116347355B
    Figure CN116347355B
Patent Text Reader

Abstract

The present application relates to a positioning clock reference acquisition method, device, equipment and storage medium. The method includes: an electronic device sends multiple rounds of instructions for acquiring clock counts to multiple positioning base stations, obtains the clock counts of each round fed back by the multiple positioning base stations based on the instructions, generates an initial matrix according to the clock counts of each round, and screens and obtains the target clock reference from the initial matrix according to the delay time of the clock counts in the initial matrix. The present application can acquire the clock reference by communicating with multiple positioning base stations through the electronic device, which is simpler than the method of acquiring the clock reference in the prior art, and can obtain a clock reference with higher accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of underwater positioning technology, and in particular to a positioning clock reference acquisition method, device, equipment and storage medium. Background Art

[0002] The ranging method based on hydroacoustic positioning relies on high-precision arrival time difference measurement, which in turn relies on precise clock synchronization. Depending on the application scenario, clock synchronization can unify all nodes to a common clock source, or upload the local clock counts of each slave node at the same time to the master node. A centralized long baseline positioning system refers to a positioning method in which the hydroacoustic positioning base station reports the ranging results to the data center for processing. Therefore, the data center needs to obtain the clock counts of each base station at the same time (i.e., the clock reference). The clock reference can be obtained by the base station actively reporting the local clock count (active method), or by the data center issuing instructions to command the base station to report the local clock count (passive method). Regardless of the active or passive method, the clock of each base station needs to be synchronized, and the propagation delay of data or instructions during the acquisition of the clock reference needs to be eliminated.

[0003] At present, the methods for obtaining clock references include clock synchronization based on underwater acoustic signals, clock synchronization based on special clock synchronization devices, and clock synchronization based on atomic clocks. The current clock reference acquisition methods have the following shortcomings: either they are expensive and not applicable to low-cost systems; or the system design is relatively complex and difficult to implement in practical applications. In addition, the underwater acoustic channel is time-varying and complex. Accurate clock synchronization also requires accurate signal detection or robust channel equalization algorithms. Once the channel conditions are poor, the clock synchronization will be inaccurate. In addition, the propagation delay of underwater acoustic signals is not easy to measure, and a complex sound speed compensation algorithm is required to accurately calculate the actual propagation delay of the signal.

[0004] Therefore, how to achieve the acquisition of clock reference at low cost and eliminate the problem of reduced accuracy caused by the propagation delay of data or instructions during the clock reference acquisition process has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] In view of the above, the present application provides a positioning clock reference acquisition method, device, equipment and storage medium, which aims to solve the above technical problems.

[0006] In a first aspect, the present application provides a positioning clock reference acquisition method, the method is applied to an electronic device, the electronic device is communicatively connected to a plurality of positioning base stations, the method comprising:

[0007] Sending multiple rounds of instructions for acquiring clock counts to the multiple positioning base stations, and acquiring each round of clock counts fed back by the multiple positioning base stations;

[0008] Generate an initial matrix according to the clock count of each round;

[0009] According to the delay time of the clock count in the initial matrix, the target clock reference is screened and acquired from the initial matrix.

[0010] In a second aspect, the present application provides a positioning clock reference acquisition device, the positioning clock reference acquisition device comprising:

[0011] A first acquisition module is used to send multiple rounds of clock count acquisition instructions to the multiple positioning base stations, and acquire the clock counts of each round fed back by the multiple positioning base stations;

[0012] A generating module, used for generating an initial matrix according to the clock count of each round;

[0013] The second acquisition module is used to screen and acquire a target clock reference from the initial matrix according to the delay time of the clock count in the initial matrix.

[0014] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0015] Memory, used to store computer programs;

[0016] The processor is used to implement the steps of the positioning clock reference acquisition method described in any embodiment of the first aspect when executing the program stored in the memory.

[0017] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the positioning clock reference acquisition method as described in any embodiment of the first aspect are implemented.

[0018] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0019] The electronic device of the present application is communicatively connected with a plurality of positioning base stations, the electronic device sends a plurality of rounds of instructions for acquiring clock counts to the plurality of positioning base stations, acquires the clock counts of each round fed back by the plurality of positioning base stations based on the instructions, generates an initial matrix according to the clock counts of each round, and screens and acquires the target clock reference from the initial matrix according to the delay time of the clock counts in the initial matrix. The clock reference can be acquired by communicating with the plurality of positioning base stations through the electronic device. Compared with the processing method for acquiring the clock reference in the prior art, the processing method is simple, and a clock reference with higher precision can be acquired by screening according to the delay time of the clock counts in the initial matrix, thereby ensuring high-precision time difference measurement and improving underwater positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A schematic diagram of the application environment of the positioning clock reference acquisition method of this application;

[0023] Figure 2 A flowchart diagram of a preferred embodiment of the positioning clock reference acquisition method of the present application;

[0024] Figure 3 This is a schematic diagram of the clock counting composition of the DSP module in the embodiment of the present application;

[0025] Figure 4 A schematic diagram of a method for calculating the clock count of a DSP module in an embodiment of the present application;

[0026] Figure 5 A schematic diagram of a module of a preferred embodiment of a positioning clock reference acquisition device of the present application;

[0027] Figure 6 A schematic diagram of a preferred embodiment of the electronic device of the present application;

[0028] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0030] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0031] Reference Figure 1 As shown, it is a schematic diagram of the application environment of the positioning clock reference acquisition method of the present application. The positioning clock reference acquisition method is applied to an electronic device, and the electronic device can be a data center server or a cloud server. The electronic device 1 has a data center (DC) module 2, and the electronic device is connected to multiple positioning base stations 3 by communication, for example, through a 4G, 5G or 6G network communication connection. The data center module can also be deployed in any one of the multiple base stations (that is, the electronic device can also be a positioning base station), and the positioning base station deployed with the DC module is used as the main base station to control the operation of other slave base stations.

[0032] The positioning base station includes a global navigation satellite system (GNSS) receiving device 4, a main control module 5, a communication module 6 (such as a 4G module, a 5G module or a 6G module), and a digital signal processing (DSP) module 7. Among them, the GNSS receiving device is used to receive satellite signals and output clock signals (Pulse Per Second, PPS) according to the satellite signals. The main control module is an ARM-based main control board. The main control module receives data from the gateway, relay DSP module or DC module, and responds according to the instructions of the DC module. The communication module is used to transmit data between the main control module and the DC module through the network. The function of the DSP module is to process electrical signals. In the application scenario of the present invention, since the DC module needs to obtain the clock count of the DSP module, the DSP module in the system mainly passively receives the acquisition instruction of the clock reference, and then reports the local clock count.

[0033] The clock reference refers to the clock count of each positioning base station at the same time, and the clock count refers to the local time of the DSP module. Most DSP modules often do not have network port communication capabilities and do not have independent clock units. Therefore, the clock of the DSP module is essentially a count, that is, how much time has passed since the DSP module was started, and this time contains an integer part and a decimal part. The DC module of the electronic device sends a clock reference acquisition instruction to the DSP module of each positioning base station to obtain the clock count of the DSP. The collected clock counts are processed in the DC module of the electronic device, and the processing results are used as the clock reference. Specifically, multiple rounds of clock count acquisition instructions are sent to multiple positioning base stations, and the clock counts of each round of feedback from multiple positioning base stations based on the instructions are obtained. Based on each round of clock counts, an initial matrix is ​​generated, and based on the delay time of the clock counts in the initial matrix, the target clock reference is screened and obtained from the initial matrix. Provide a high-precision clock reference, ensure high-precision time difference measurement, and improve positioning accuracy.

[0034] The present application provides a method for obtaining a positioning clock reference. Figure 2 As shown, it is a method flow diagram of an embodiment of the positioning clock reference acquisition method of the present application. The method is executed by an electronic device, the electronic device is a data center server or a cloud server, and the electronic device has a data center (DC) module, and the electronic device is connected to multiple positioning base stations in communication, for example, through a 4G network communication connection. The data center module can also be deployed in any one of the multiple base stations (that is, the electronic device can also be a positioning base station), and the positioning base station deployed with the DC module is used as the main base station to control the operation of the slave base station. The positioning clock reference acquisition method includes:

[0035] Step S10, sending multiple rounds of instructions for obtaining clock counts to the multiple positioning base stations, and obtaining each round of clock counts fed back by the multiple positioning base stations;

[0036] Step S20, generating an initial matrix according to the clock count of each round;

[0037] Step S30: Screen and obtain a target clock reference from the initial matrix according to the delay time of the clock count in the initial matrix.

[0038] Taking the acquisition of the clock reference of the buoy base station in the long baseline positioning system in the field of hydroacoustic positioning as an example, this solution is explained. The positioning base station is a hydroacoustic positioning base station. The clock count of the positioning base station includes an integer part and a decimal part. The integer part is provided by the GNSS receiving device of the positioning base station, and the decimal part is provided by the crystal oscillator of the digital signal processing module of the positioning base station. Figure 3As shown in FIG. 1 , it is a schematic diagram of the clock count composition of the DSP module in the embodiment of the present application. The clock count 9 of the DSP module is provided by the GNSS receiving device 4 and the internal crystal oscillator 8 of the DSP module respectively. The clock count of the DSP module is essentially a count, that is, how much time has passed since the DSP was started. The clock count consists of an integer part and a decimal part. The GNSS receiving device outputs a 1Hz PPS signal to the DSP module, which constitutes the integer part of the clock count, denoted as T int The internal crystal oscillator outputs a 1kHz pulse signal to the DSP, which constitutes the fractional part of the clock count, recorded as T frac At any time, the clock count T o Equal to T int +T frac / 1000. Since the PPS signal is synchronized with UTC time and has an accuracy of nanoseconds, it is considered that the PPS signals output by all GNSS are synchronized. The millisecond pulses output by the crystal oscillators of different DSP modules are not synchronized, but due to their high output frequency, the error is no more than 1 millisecond.

[0039] like Figure 4 FIG. 1 is a schematic diagram of a method for calculating the clock count of a DSP module in an embodiment of the present application. int and T frac Whenever the DSP module detects a PPS pulse, it sets T int Increase by 1 and set T frac Whenever the DSP module detects a crystal pulse, it resets T frac Increase by 1. That is, the clock of the DSP module is a combined clock. The advantage of clock counting in this way is to reduce errors. The synchronization degree between PPS signals is relatively high, while the crystal oscillator output of DSP is not. If only the crystal oscillator output is used as clock counting, a large cumulative error will occur after a long time. However, the PPS signal interval is 1 second, and it cannot provide clock counting below a second. However, underwater acoustic positioning usually requires time difference measurement accurate to 1e-3 seconds. Considering that within a shorter time interval, the crystal oscillator can still guarantee the output accuracy, and the decimal part is cleared when the integer part increases, reducing the cumulative error of the crystal oscillator timing, so the decimal part of the clock count is still provided by the crystal oscillator. The combined clock counting method in which PPS provides the integer part and the crystal oscillator provides the decimal part reduces the error.

[0040] The acquisition of the clock reference is initiated by the DC module in the electronic device. The DC module sends the clock reference acquisition instruction to the main control module of each base station in turn through the network (for example, the 4G network). After receiving the instruction, the main control module of the positioning base station forwards the instruction to the DSP module in the positioning base station through the RS-232 port to obtain its current clock count. After receiving the instruction, the DSP module will immediately collect its current clock count and report it to the main control module. The main control module encapsulates the clock count and feeds it back to the DC module through the network. For example, the total number of positioning base stations N is 4, and the electronic device sends 6 rounds of instructions for obtaining clock counts to 4 positioning base stations, thereby obtaining each round of clock counts fed back by the 4 positioning base stations. It should be noted that when the clock counts fed back by each base station are received, it is considered that the acquisition of one round of clock counts is completed until 6 rounds of clock counts are obtained. Specifically, sending multiple rounds of instructions for obtaining clock counts to the multiple positioning base stations to obtain each round of clock counts fed back by the instructions includes:

[0041] Sub-step A1: setting a total number of rounds of sending instructions for obtaining clock counts to the multiple positioning base stations, and setting a waiting time interval corresponding to each round;

[0042] Sub-step A2: sending an instruction for acquiring a clock count to each of the positioning base stations in turn;

[0043] Sub-step A3: determining whether clock counts fed back by all positioning base stations based on the instruction are received within the waiting time interval;

[0044] Sub-step A4: If yes, obtain the clock count fed back by the positioning base station;

[0045] The above sub-steps A2 to A4 are repeatedly executed until the clock counts of each round of the multiple positioning base stations are obtained.

[0046] For example, the total number of rounds R of sending instructions for obtaining clock counts to multiple positioning base stations is set to 6, and the waiting time interval i corresponding to each round is set, and the waiting time interval of each round is the same. Assume that the total number of positioning base stations N is 4, namely base station 1, base station 2, base station 3 and base station 4, and send instructions for obtaining clock counts to the 4 positioning base stations in turn, and determine whether the clock counts fed back by the 4 positioning base stations are received within the waiting time interval. If so, the clock counts fed back by the 4 positioning base stations are obtained, and the first round of clock calculation acquisition is completed, and the second round of clock count acquisition is performed. The method of obtaining clock counts in each round is the same until 6 rounds of clock counts fed back by the 4 positioning base stations are obtained.

[0047] Further, the determining whether the clock counts fed back by all positioning base stations based on the instruction are received within the waiting time interval further includes:

[0048] If the clock counts fed back by all positioning base stations are not received within the waiting time interval, the sub-step A2 is executed again.

[0049] For example, if only clock counts fed back by three positioning base stations are received within the waiting time interval, the instruction to obtain the clock counts is resent to the four positioning base stations until the instruction to obtain the clock counts is sent by four positioning base stations in this round, that is, the acquisition of the clock counts in this round is completed after the clock counts of all base stations are obtained in this round.

[0050] Put the clock counts obtained in each round into vector t r =[t r,1 ,t r,2 ,…,t r,N ], generate the initial matrix T of clock counts, that is, the initial matrix T is expressed as:

[0051]

[0052] Among them, r represents the current round number, the rth column vector in the initial matrix represents the clock count result t obtained in the rth round (that is, the number of columns of the initial matrix is ​​the total number of rounds R), each element represents the clock count uploaded by the corresponding DSP module, and N represents the total number of positioning base stations.

[0053] The obtained initial matrix cannot be directly used as the clock reference. It is necessary to filter out the clock counts with obvious delay differences in the initial matrix, and it is necessary to solve the problem of clock counts crossing whole seconds when the acquisition instruction reaches the DSP module at the end of one second. Since the integer part of the clock count is provided by the GNSS receiving device, the integer part of the clock count of each DSP module is considered to be synchronously self-incremented. In the process of clock reference acquisition, various delays will be experienced, resulting in the clock counts acquired by the DC module not being sampled at the same time. The process from the issuance of the acquisition instruction to the acquisition feedback usually takes hundreds of milliseconds, which is generally less than the output interval of the PPS signal. Therefore, the integer part of the clock count of each DSP module usually does not change in this process, that is, the output clock reference is only accurate to the whole second, but when processing the collected clock counts, it is still necessary to pay attention to the decimal part, because the delay experienced by the instruction to reach the DSP module is different, and although the integer part of the clock count of the DSP module is synchronously self-incremented, it is not absolutely consistent (due to different startup times). Therefore, it is impossible to determine which DSP module's clock count is transmitted through the path with a larger delay by the difference in the integer part, and it is also necessary to combine the decimal part of the clock count to filter out the clock reference. Specifically, based on the delay time of the clock count in the initial matrix, screening and acquiring the target clock reference from the initial matrix includes:

[0054] Calculating the delay time of the clock counts in the initial matrix, and deleting the clock counts in the initial matrix whose delay time is greater than a preset threshold to obtain a first intermediate matrix;

[0055] Performing a rounding operation on the clock counts in the first intermediate matrix to obtain a second intermediate matrix;

[0056] Taking out a third intermediate matrix and a fourth intermediate matrix from the second intermediate matrix, and performing a subtraction between the fourth intermediate matrix and the third intermediate matrix to obtain a target matrix;

[0057] The data of any column is obtained from the target matrix as the target clock reference.

[0058] The delay time of the clock counts of two adjacent rounds in the initial matrix is ​​calculated, and the clock counts with a delay time greater than a preset threshold are deleted to obtain the first intermediate matrix. For example, among the 6 rounds of clock counts obtained, if the delay time of the clock counts of two adjacent instructions in the 5th round is greater than the preset threshold, the clock counts in the 5th column of the initial matrix are deleted to obtain the first intermediate matrix. Due to the difference in delay, the clock count reported by a certain DSP module may jump to the next full second, resulting in a one-second deviation in the output clock reference. Therefore, each clock count in the first intermediate matrix is ​​rounded down to obtain the second intermediate matrix, and the third intermediate matrix and the fourth intermediate matrix are taken from the second intermediate matrix. For example, the elements of the first few columns from the second intermediate matrix are taken to form the third intermediate matrix, and the elements of the last few columns from the second intermediate matrix are taken to form the third intermediate matrix. The fourth intermediate matrix is ​​subtracted from the third intermediate matrix to obtain the target matrix. If the rank of the target matrix is ​​1, any column of data obtained from the target matrix is ​​used as the target clock reference.

[0059] Further, the calculating the delay time of the clock counts in the initial matrix and deleting the clock counts in the initial matrix whose delay time is greater than a preset threshold to obtain a first intermediate matrix includes:

[0060] Calculate the difference between the decimal parts of the clock counts fed back by two adjacent instructions in each round of clock counts in the initial matrix to obtain the delay time of the clock counts fed back by two adjacent instructions in each round of clock counts in the initial matrix;

[0061] The clock counts corresponding to the rounds whose delay time is greater than a preset threshold are deleted to obtain a first intermediate matrix.

[0062] The delay time reflected in the clock count refers to the difference in the fractional part of the clock counts corresponding to two adjacent instructions. By calculating the difference in the fractional part of the clock counts fed back by two adjacent instructions in each round of clock counts in the initial matrix, the delay time of the clock counts in each round in the initial matrix is ​​obtained, and the clock counts corresponding to the rounds in the initial matrix whose delay time is greater than the preset threshold are deleted to obtain the first intermediate matrix. For example, the difference in the fractional part of the clock counts fed back by two adjacent instructions in the 1st round, the 2nd round, the 3rd round, the 4th round, the 5th round and the 6th round are calculated respectively. Assuming that the clock count of the 3rd round is t 3, 1,t 3, ,t 3, 3,t 3, 4. Calculate t separately 3, 1 and t 3, The difference of the decimal parts of 2, calculate t 3, 2 and t 3, The difference of the decimal parts of 3, calculate t 3, 3 and t 3, 4. If any of the three differences in the third round is greater than the preset threshold, the clock count in the third column of the initial matrix is ​​deleted. Assuming that the clock count in the fourth round is t 4, 1,t 4, 2,t 4, 3,t 4, 4. Calculate t separately 4, 1 and t 4, The difference of the decimal parts of 2, calculate t 4, 2 and t 4, The difference of the decimal parts of 3, calculate t 4, 3 and t 4, 4, if the three differences in the fourth round are all less than the preset threshold, the clock count of the fourth column in the initial matrix is ​​retained, thereby obtaining the first intermediate matrix. The preset threshold can be set according to actual needs and is not limited here.

[0063] Further, the extracting a third intermediate matrix and a fourth intermediate matrix from the second intermediate matrix includes:

[0064] Acquire the total number of rounds of sending instructions for acquiring clock counts to the multiple positioning base stations, and acquire the number of columns of matrix elements deleted from the first intermediate matrix compared to the initial matrix;

[0065] Subtract the number of columns from the total number of rounds to obtain a target value;

[0066] Taking out the elements of the column corresponding to the target value that are ranked first from the second intermediate matrix to generate the third intermediate matrix;

[0067] The fourth intermediate matrix is ​​generated by taking out the elements of the column corresponding to the target value which are sorted later from the second intermediate matrix.

[0068] The first intermediate matrix is ​​rounded down to obtain the second intermediate matrix, which is expressed as:

[0069]

[0070] Obtain the total number of rounds R of sending instructions for obtaining clock counts to multiple positioning base stations, obtain the number of columns m of matrix elements deleted from the first intermediate matrix compared to the initial matrix, take the value of Rm as the target value, or take the value of Rm-1 as the target value, and take the elements of the column corresponding to the top Rm-1 column from the second intermediate matrix to generate the third intermediate matrix, recorded as Take the elements of the corresponding columns of the Rm-1 columns that are sorted later from the second intermediate matrix to generate the fourth intermediate matrix, recorded as The third intermediate matrix is ​​represented as:

[0071]

[0072] The fourth intermediate matrix is ​​expressed as:

[0073]

[0074] The result obtained by subtracting the third intermediate matrix from the fourth intermediate matrix is ​​recorded as D f ,Right now If D f The rank of is 1, then D f The data in any column in is used as the target clock reference, which is recorded as

[0075] In another embodiment, the long baseline positioning method is mainly divided into two methods: positioning based on time of arrival (TOA) and positioning based on time difference of arrival (TDOA). Regardless of the positioning method, after parsing the positioning signal, the DSP module will measure the exact time when the signal arrives at the DSP module, and assign this time (clock count) as a timestamp to the signal, and then upload it to the DC module for processing. Assume that when the signal arrives, the local clock count of each DSP module is:

[0076] Q=[q1,q2,…,q N ]

[0077] The matrix is ​​uploaded to the DC module, where Q is connected to The result of the difference is the calibrated signal arrival time, which is input into the positioning algorithm to solve the target position.

[0078] Reference Figure 5 , which is a schematic diagram of the functional modules of the positioning clock reference acquisition device 100 of the present application.

[0079] The positioning clock reference acquisition device 100 described in the present application is installed in an electronic device. According to the functions to be implemented, the positioning clock reference acquisition device 100 includes a first acquisition module 110, a generation module 120 and a second acquisition module 130. The module described in the present application is also referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0080] In this embodiment, the functions of each module / unit are as follows:

[0081] The first acquisition module 110 is used to send multiple rounds of clock count acquisition instructions to the multiple positioning base stations, and acquire the clock counts of each round fed back by the multiple positioning base stations;

[0082] A generating module 120, configured to generate an initial matrix according to the clock count of each round;

[0083] The second acquisition module 130 is used to filter and acquire a target clock reference from the initial matrix according to the delay time of the clock count in the initial matrix.

[0084] In one embodiment, the second acquisition module 130 is specifically used to calculate the delay time of the clock counts in the initial matrix, and delete the clock counts in the initial matrix whose delay time is greater than a preset threshold to obtain the first intermediate matrix;

[0085] Performing a rounding operation on the clock counts in the first intermediate matrix to obtain a second intermediate matrix;

[0086] Taking out a third intermediate matrix and a fourth intermediate matrix from the second intermediate matrix, and performing a subtraction between the fourth intermediate matrix and the third intermediate matrix to obtain a target matrix;

[0087] The data of any column is obtained from the target matrix as the target clock reference.

[0088] In one embodiment, the second acquisition module 130 is further configured to:

[0089] Calculate the difference between the decimal parts of the clock counts fed back by two adjacent instructions in each round of clock counts in the initial matrix to obtain the delay time of the clock counts fed back by two adjacent instructions in each round of clock counts in the initial matrix;

[0090] The clock counts corresponding to the rounds whose delay time is greater than a preset threshold are deleted to obtain a first intermediate matrix.

[0091] In one embodiment, the second acquisition module 130 is further configured to:

[0092] Acquire the total number of rounds of sending instructions for acquiring clock counts to the multiple positioning base stations, and acquire the number of columns of matrix elements deleted from the first intermediate matrix compared to the initial matrix;

[0093] Subtract the number of columns from the total number of rounds to obtain a target value;

[0094] Taking out the elements of the column corresponding to the target value that are ranked first from the second intermediate matrix to generate the third intermediate matrix;

[0095] The fourth intermediate matrix is ​​generated by taking out the elements of the column corresponding to the target value which are sorted later from the second intermediate matrix.

[0096] In one embodiment, the first acquisition module 110 is specifically used to set the total number of rounds of sending instructions for acquiring clock counts to the multiple positioning base stations, and set a waiting time interval corresponding to each round;

[0097] Sending an instruction for acquiring a clock count to each of the positioning base stations in turn;

[0098] Determine whether the clock counts fed back by all positioning base stations based on the instruction are received within the waiting time interval;

[0099] If yes, obtaining the clock count fed back by the positioning base station;

[0100] The above steps are repeated until the clock counts of each round of the multiple positioning base stations are obtained.

[0101] In one embodiment, the first acquisition module 110 is further configured to:

[0102] If the clock counts fed back by all the positioning base stations are not received within the waiting time interval, the instruction of sending the clock count acquisition instruction to each positioning base station in turn is re-executed.

[0103] In one embodiment, the clock count includes an integer part and a decimal part, the integer part is provided by a GNSS receiving device of the base station, and the decimal part is provided by a crystal oscillator of a digital signal processing module of the base station.

[0104] Reference Figure 6 , which is a schematic diagram of a preferred embodiment of the electronic device 1 of the present application.

[0105] The electronic device 1 includes but is not limited to: a memory 11, a processor 12, a display 13 and a communication interface 14. The electronic device 1 is connected to a network via the communication interface 14. The network is a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, or a call network.

[0106] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 is an internal storage unit of the electronic device 1, such as a hard disk or memory of the electronic device 1. In other embodiments, the memory 11 is also an external storage device of the electronic device 1, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped with the electronic device 1. Of course, the memory 11 also includes both the internal storage unit of the electronic device 1 and its external storage device. In this embodiment, the memory 11 is generally used to store the operating system and various computer programs installed on the electronic device 1, such as the program code of the positioning clock reference acquisition program 10, etc. In addition, the memory 11 is also used to temporarily store various types of data that have been output or are to be output.

[0107] The processor 12 is a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 12 is generally used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication. In this embodiment, the processor 12 is used to run the program code stored in the memory 11 or process data, such as running the program code of the positioning clock reference acquisition program 10.

[0108] The display 13 is called a display screen or a display unit. In some embodiments, the display 13 is an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an organic light-emitting diode (OLED) touch device, etc. The display 13 is used to display information processed in the electronic device 1 and to display a visual working interface.

[0109] The communication interface 14 includes a standard wired interface, a wireless interface (such as a WI-FI interface) and an underwater acoustic communication interface. The communication interface 14 is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0110] Figure 6 Only the electronic device 1 having components 11 - 14 and the positioning clock reference acquisition program 10 is shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0111] In the above embodiment, the processor 12 implements the following steps when executing the positioning clock reference acquisition program 10 stored in the memory 11:

[0112] Sending multiple rounds of instructions for acquiring clock counts to the multiple positioning base stations, and acquiring each round of clock counts fed back by the multiple positioning base stations;

[0113] Generate an initial matrix according to the clock count of each round;

[0114] According to the delay time of the clock count in the initial matrix, the target clock reference is screened and acquired from the initial matrix.

[0115] The storage device is the memory 11 of the electronic device 1 , and also is other storage devices that are communicatively connected to the electronic device 1 .

[0116] For a detailed description of the above steps, please refer to the above Figure 5 Functional module diagram of the embodiment of the positioning clock reference acquisition device 100 and Figure 1 Description of a flowchart of an embodiment of a method for obtaining a positioning clock reference.

[0117] In addition, the embodiment of the present application also proposes a computer-readable storage medium, which is non-volatile and volatile. The computer-readable storage medium is any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, etc. The computer-readable storage medium includes a data storage area and a program storage area, and the program storage area stores a positioning clock reference acquisition program 10. When the positioning clock reference acquisition program 10 is executed by the processor, the following operations are implemented:

[0118] Sending multiple rounds of instructions for acquiring clock counts to the multiple positioning base stations, and acquiring each round of clock counts fed back by the multiple positioning base stations;

[0119] Generate an initial matrix according to the clock count of each round;

[0120] According to the delay time of the clock count in the initial matrix, the target clock reference is screened and acquired from the initial matrix.

[0121] The specific implementation of the computer-readable storage medium of the present application is substantially the same as the specific implementation of the positioning clock reference acquisition method described above, and will not be described in detail herein.

[0122] It should be noted that the serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof herein are intended to cover non-exclusive inclusion, so that the process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, device, article or method including the element.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware simulation platform, and of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0124] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A positioning clock reference acquisition method, characterized in that: The method is applied to an electronic device, the electronic device is communicatively connected with a plurality of positioning base stations, and the method comprises: Sending multiple rounds of instructions for acquiring clock counts to the multiple positioning base stations, and acquiring each round of clock counts fed back by the multiple positioning base stations; Generate an initial matrix according to the clock count of each round; Filtering and acquiring a target clock reference from the initial matrix according to a delay time of a clock count in the initial matrix; The delay time of the clock count refers to the difference between the decimal parts of the clock counts corresponding to two adjacent instructions, and the method of screening and acquiring the target clock reference from the initial matrix according to the delay time of the clock count in the initial matrix includes: Calculating the delay time of the clock counts in the initial matrix, and deleting the clock counts in the initial matrix whose delay time is greater than a preset threshold to obtain a first intermediate matrix; Performing a rounding operation on the clock counts in the first intermediate matrix to obtain a second intermediate matrix; Taking out a third intermediate matrix and a fourth intermediate matrix from the second intermediate matrix, and performing a subtraction between the fourth intermediate matrix and the third intermediate matrix to obtain a target matrix; If the rank of the target matrix is ​​1, obtaining data of any column from the target matrix as the target clock reference; The extracting the third intermediate matrix and the fourth intermediate matrix from the second intermediate matrix comprises: Acquire the total number of rounds of sending instructions for acquiring clock counts to the multiple positioning base stations, and acquire the number of columns of matrix elements deleted from the first intermediate matrix compared to the initial matrix; Subtract the number of columns from the total number of rounds to obtain a target value; Taking out the elements of the column corresponding to the target value that are ranked first from the second intermediate matrix to generate the third intermediate matrix; The fourth intermediate matrix is ​​generated by taking out the elements of the column corresponding to the target value which are sorted later from the second intermediate matrix.

2. The positioning clock reference acquisition method according to claim 1, characterized in that: The step of calculating the delay time of the clock counts in the initial matrix and deleting the clock counts in the initial matrix whose delay time is greater than a preset threshold to obtain a first intermediate matrix includes: Calculate the difference between the decimal parts of the clock counts fed back by two adjacent instructions in each round of clock counts in the initial matrix to obtain the delay time of the clock counts fed back by two adjacent instructions in each round of clock counts in the initial matrix; The clock counts corresponding to the rounds whose delay time is greater than a preset threshold are deleted to obtain a first intermediate matrix.

3. The positioning clock reference acquisition method according to claim 1, characterized in that: The sending of multiple rounds of instructions for acquiring clock counts to the multiple positioning base stations, and acquiring each round of clock counts fed back by the multiple positioning base stations based on the instructions, comprises: Sub-step A1: setting a total number of rounds of sending instructions for obtaining clock counts to the multiple positioning base stations, and setting a waiting time interval corresponding to each round; Sub-step A2: sending an instruction for acquiring a clock count to each of the positioning base stations in turn; Sub-step A3: determining whether clock counts fed back by all positioning base stations based on the instruction are received within the waiting time interval; Sub-step A4: If yes, obtain the clock count fed back by the positioning base station; The above sub-steps A2 to A4 are repeatedly executed until the clock counts of each round of the multiple positioning base stations are obtained.

4. The positioning clock reference acquisition method according to claim 3, characterized in that: The step of determining whether the clock counts fed back by all positioning base stations based on the instruction are received within the waiting time interval further includes: If the clock counts fed back by all positioning base stations are not received within the waiting time interval, the sub-step A2 is executed again.

5. The positioning clock reference acquisition method according to any one of claims 1 to 4, characterized in that: The clock count includes an integer part and a decimal part, the integer part is provided by the GNSS receiving device of the positioning base station, and the decimal part is provided by the crystal oscillator of the digital signal processing module of the positioning base station.

6. A positioning clock reference acquisition device, characterized in that: The device comprises: A first acquisition module is used to send multiple rounds of clock count acquisition instructions to multiple positioning base stations, and acquire the clock count of each round fed back by the multiple positioning base stations; A generating module, used for generating an initial matrix according to the clock count of each round; A second acquisition module, configured to screen and acquire a target clock reference from the initial matrix according to a delay time of a clock count in the initial matrix; The delay time of the clock count refers to the difference between the decimal parts of the clock counts corresponding to two adjacent instructions, and the method of screening and acquiring the target clock reference from the initial matrix according to the delay time of the clock count in the initial matrix includes: Calculating the delay time of the clock counts in the initial matrix, and deleting the clock counts in the initial matrix whose delay time is greater than a preset threshold to obtain a first intermediate matrix; Performing a rounding operation on the clock counts in the first intermediate matrix to obtain a second intermediate matrix; Taking out a third intermediate matrix and a fourth intermediate matrix from the second intermediate matrix, and performing a subtraction between the fourth intermediate matrix and the third intermediate matrix to obtain a target matrix; If the rank of the target matrix is ​​1, obtaining data of any column from the target matrix as the target clock reference; The extracting the third intermediate matrix and the fourth intermediate matrix from the second intermediate matrix comprises: Acquire the total number of rounds of sending instructions for acquiring clock counts to the multiple positioning base stations, and acquire the number of columns of matrix elements deleted from the first intermediate matrix compared to the initial matrix; Subtract the number of columns from the total number of rounds to obtain a target value; Taking out the elements of the column corresponding to the target value that are ranked first from the second intermediate matrix to generate the third intermediate matrix; The fourth intermediate matrix is ​​generated by taking out the elements of the column corresponding to the target value which are sorted later from the second intermediate matrix.

7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, used to implement the positioning clock reference acquisition method described in any one of claims 1 to 5 when executing a program stored in a memory.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the positioning clock reference acquisition method according to any one of claims 1 to 5 is implemented.