CN101644775B - Synchronous ranging system and synchronous ranging method - Google Patents
Synchronous ranging system and synchronous ranging method Download PDFInfo
- Publication number
- CN101644775B CN101644775B CN2008102263701A CN200810226370A CN101644775B CN 101644775 B CN101644775 B CN 101644775B CN 2008102263701 A CN2008102263701 A CN 2008102263701A CN 200810226370 A CN200810226370 A CN 200810226370A CN 101644775 B CN101644775 B CN 101644775B
- Authority
- CN
- China
- Prior art keywords
- digital
- analog
- converter
- signal
- data
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000001360 synchronised effect Effects 0.000 title claims abstract description 21
- 238000001514 detection method Methods 0.000 claims abstract description 45
- 238000006243 chemical reaction Methods 0.000 claims abstract description 25
- 230000008569 process Effects 0.000 claims abstract description 15
- 238000005259 measurement Methods 0.000 claims abstract description 12
- 238000005070 sampling Methods 0.000 claims description 33
- 230000005540 biological transmission Effects 0.000 claims description 16
- 239000013078 crystal Substances 0.000 abstract description 3
- 101150115013 DSP1 gene Proteins 0.000 description 11
- 235000019800 disodium phosphate Nutrition 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000033001 locomotion Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000002592 echocardiography Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
Images
Landscapes
- Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
Abstract
本发明公开了一种同步测距系统及方法。该系统包括:主控机、数字信号处理器、数字/模拟转换器(DA卡)、探测信号发射与接收装置及模拟/数字转换器(AD卡);该测距系统及方法在整个测距过程中的所有测距周期内,DA卡和AD卡处于持续工作状态;DA卡和AD卡采用同一时钟信号进行测距计时,并且二者的转换频率满足整数倍关系。本发明的优点在于:(1)对主机操作系统的非实时性更为宽容。(2)消除了独立晶振频率漂移不一致的影响,也不必在每个测量周期内对卡上缓存数据进行管理,使测距精度受设备特性不理想性的影响更小。
The invention discloses a synchronous ranging system and method. The system includes: a master computer, a digital signal processor, a digital/analog converter (DA card), a detection signal transmitting and receiving device and an analog/digital converter (AD card); During all the ranging periods in the process, the DA card and the AD card are in a continuous working state; the DA card and the AD card use the same clock signal for ranging timing, and the conversion frequency of the two satisfies the integer multiple relationship. The advantages of the present invention are: (1) It is more tolerant to the non-real-time nature of the host operating system. (2) Eliminate the influence of inconsistency in frequency drift of independent crystal oscillators, and it is not necessary to manage the cached data on the card in each measurement cycle, so that the distance measurement accuracy is less affected by the imperfection of device characteristics.
Description
技术领域 technical field
本发明涉及利用目标回波信号对目标进行测距领域,特别涉及一种利用目标回波信号同步的测距系统及方法。The invention relates to the field of distance measurement for a target by using target echo signals, in particular to a distance measurement system and method for synchronizing by using target echo signals.
背景技术 Background technique
为了给出目标距离的估计值,主动声纳系统需要精确计算主动信号发射时刻和回波信号到达时刻的时间差。传统的实现方法是:数字/模拟转换器DA和模拟/数字转换器AD受主机(例如PC机)控制,在一个探测周期内,当准备发射主动探测信号时,则打开DA卡使之工作,主动探测信号发射完毕后再关闭DA卡;然后启动AD卡开始采集数据,探测周期完成后再关闭AD卡;在每个探测周期内,DA和AD卡需要反复使能、禁止。In order to give an estimate of the target distance, the active sonar system needs to accurately calculate the time difference between the time when the active signal is transmitted and the time when the echo signal arrives. The traditional implementation method is: the digital/analog converter DA and the analog/digital converter AD are controlled by the host (such as a PC). In a detection period, when the active detection signal is ready to be launched, the DA card is turned on to make it work. Turn off the DA card after the active detection signal is transmitted; then start the AD card to start collecting data, and then turn off the AD card after the detection cycle is completed; in each detection cycle, the DA and AD cards need to be repeatedly enabled and disabled.
这种工作方式下,有几种因素可能会带来人为的测距误差:首先,PC机上常用的Windows并不是一个实时操作系统,因此,基于该系统的测时必然是不精确的;其次,由于需要在不同的探测周期之间反复使能、禁止DA和AD卡,并对卡上缓存器件中的数据队列进行管理,这有可能带来板卡硬件工作的不稳定并引入人为的测距误差;再者,声纳系统中的DA和AD卡的输入时钟往往是彼此独立的,而独立的时钟源频率漂移是不同的,对类似线性调频信号这样存在时间-频率耦合特性的信号,就会带来测距误差。In this way of working, there are several factors that may cause man-made distance measurement errors: first, Windows, which is commonly used on PCs, is not a real-time operating system, so the time measurement based on this system must be inaccurate; secondly, Due to the need to repeatedly enable and disable the DA and AD cards between different detection cycles, and manage the data queue in the buffer device on the card, this may lead to unstable work of the board hardware and introduce artificial ranging In addition, the input clocks of DA and AD cards in the sonar system are often independent of each other, and the frequency drift of independent clock sources is different. For signals with time-frequency coupling characteristics such as chirp signals, it is It will cause ranging error.
发明内容 Contents of the invention
为了克服传统测距方法存在一定测时误差的不足,本发明提供了一种同步测距系统及方法,该系统及方法在整个测距过程中的所有测距周期内,数字信号处理器DSP与DA、AD卡之间持续不断地进行数据传输,同时DA和AD卡也在同一时钟源的驱动下不间断地进行数据转换,并根据该时钟源的频率来计算声纳接收主动回波信号的延时。In order to overcome the shortcomings of certain time measurement errors in traditional ranging methods, the present invention provides a synchronous ranging system and method. In all ranging periods during the entire ranging process, the digital signal processor DSP and Continuous data transmission between DA and AD cards, while DA and AD cards also continuously perform data conversion driven by the same clock source, and calculate the frequency of the active echo signal received by the sonar according to the frequency of the clock source delay.
所述同步测距系统,包括:The synchronous ranging system includes:
一主控机,用于对系统中各板卡进行控制并提供人机操作接口和界面。A main control computer, used to control each board in the system and provide man-machine operation interface and interface.
一数字信号处理器(也可以是两个独立的数字信号处理器),用于通过数字/模拟转换器向探测信号发射与接收装置发送主动探测信号,同时接收模拟/数字转换器的采样数据、处理目标回波信号。A digital signal processor (can also be two independent digital signal processors), used to send the active detection signal to the detection signal transmitting and receiving device through the digital/analog converter, and simultaneously receive the sampling data of the analog/digital converter, Process the target echo signal.
一数字/模拟转换器,通过传输数据实时端口与数字信号处理器相连;用于将数字信号处理器发送的数字信号转换为模拟信号,并将该模拟信号发送到探测信号发射与接收装置。A digital/analog converter is connected with the digital signal processor through the real-time data transmission port; it is used to convert the digital signal sent by the digital signal processor into an analog signal, and send the analog signal to the detecting signal transmitting and receiving device.
一探测信号发射与接收装置,用于根据数字信号处理器的指令发射主动探测信号,并接收目标回波信号。及A detection signal transmitting and receiving device is used for transmitting the active detection signal according to the instruction of the digital signal processor and receiving the target echo signal. and
一模拟/数字转换器,通过传输数据实时端口与数字信号处理器相连;用于采集探测信号发射与接收装置接收的目标回波信号,将该目标回波信号转换为数字信号,并将该数字信号传送到数字信号处理器处理。An analog/digital converter, connected to the digital signal processor through the real-time port of the transmission data; used to collect the target echo signal received by the detection signal transmitting and receiving device, convert the target echo signal into a digital signal, and convert the digital signal The signal is sent to a digital signal processor for processing.
其中,在整个测距过程中,所述数字/模拟转换器和模拟/数字转换器处于持续工作状态;数字/模拟转换器和模拟/数字转换器采用同一时钟信号进行测距计时,但使用的分频系数可以不同,二者的转换频率也可以不同,即所述数字/模拟转换器的转换频率FS1与模拟/数字转换器的转换频率FS2满足整数倍关系,即:FS1=nFS2或FS2=nFS1,其中,n为整数倍分频系数。Wherein, during the entire ranging process, the digital/analog converter and the analog/digital converter are in a continuous working state; the digital/analog converter and the analog/digital converter use the same clock signal for distance measurement timing, but the used The frequency division coefficients can be different, and the conversion frequencies of the two can also be different, that is, the conversion frequency F S1 of the digital/analog converter and the conversion frequency F S2 of the analog/digital converter satisfy the integer multiple relationship, that is: FS1=nFS2 or FS2=nFS1, wherein, n is an integer multiple frequency division coefficient.
在每个探测周期内,数字信号处理器持续不断地接收模拟/数字转换器的采样数据,如果数字信号处理器从采样数据中检测到目标回波信号,则数字信号处理器对采样数据进行处理,完成对目标的测距定位;如果没有检测到目标回波信号,则直接丢弃该采样数据。In each detection cycle, the digital signal processor continuously receives the sampling data from the analog/digital converter, and if the digital signal processor detects the target echo signal from the sampling data, the digital signal processor processes the sampling data , to complete the ranging and positioning of the target; if no target echo signal is detected, the sampled data is directly discarded.
其中,所述传输数据实时端口可以是Link、UART或USB端口。Wherein, the real-time port for transmitting data may be Link, UART or USB port.
其中,所述同一时钟信号由以下:(a)由数字/模拟转换器传送到模拟/数字转换器、(b)由模拟/数字转换器传送到数字/模拟转换器、或(c)由外部时钟源同时传送给数字/模拟转换器和模拟/数字转换器的任一种方式提供。Wherein, the same clock signal is transmitted by the following: (a) from the digital/analog converter to the analog/digital converter, (b) from the analog/digital converter to the digital/analog converter, or (c) by an external Either way the clock source is delivered to the D/A converter and the A/D converter simultaneously.
其中,所述探测信号发射与接收装置是主动声纳设备或雷达。Wherein, the detection signal transmitting and receiving device is an active sonar device or a radar.
本发明提供的一种同步测距方法,具体步骤包括:A kind of synchronous ranging method provided by the present invention, concrete steps comprise:
(1)主控机对数字/模拟转换器和模拟/数字转换器进行使能和初始化操作;数字/模拟转换器和模拟/数字转换器受同一时钟信号驱动,处于待命状态;数字/模拟转换器的转换频率FS1与模拟/数字转换器的转换频率FS2,满足整数倍分频关系,即:FS1=nFS2或FS2=nFS1,其中,n为整数倍分频系数。(1) The host computer enables and initializes the digital/analog converter and the analog/digital converter; the digital/analog converter and the analog/digital converter are driven by the same clock signal and are in a standby state; the digital/analog conversion The conversion frequency F S1 of the converter and the conversion frequency F S2 of the analog/digital converter satisfy the integer multiple frequency division relationship, namely: FS1=nFS2 or FS2=nFS1, where n is an integer multiple frequency division coefficient.
(2)数字信号处理器通过传输数据实时端口向数字/模拟转换器发送全‘0’数据帧,数字/模拟转换器进行数字-模拟转换;同时,模拟/数字转换器开始进行模拟-数字转换,并将采样数据通过传输数据实时端口传送到数字信号处理器;在整个测距过程,数字/模拟转换器和模拟/数字转换器处于持续工作状态。(2) The digital signal processor sends all '0' data frames to the digital/analog converter through the real-time port of the transmission data, and the digital/analog converter performs digital-to-analog conversion; at the same time, the analog/digital converter starts to perform analog-to-digital conversion , and the sampling data is transmitted to the digital signal processor through the real-time port of the transmission data; during the whole ranging process, the digital/analog converter and the analog/digital converter are in continuous working state.
(3)进入一个探测周期后,数字信号处理器停止发送全‘0’数据帧,开始将主动探测信号发送给数字/模拟转换器;发送完毕后,继续发送全‘0’数据帧。(3) After entering a detection cycle, the digital signal processor stops sending all '0' data frames, and starts to send the active detection signal to the digital/analog converter; after sending, continue to send all '0' data frames.
(4)数字/模拟转换器将主动探测信号转换成模拟信号,并将模拟信号传送给探测信号发射与接收装置;信号发射与接收装置接到指令后发射主动探测信号;发射完成后再开始接收目标回波信号,并将目标回波信号传送给模拟/数字转换器,模拟/数字转换器将接收到的目标回波信号转换成数字信号,并将该数字信号传送给数字信号处理器。(4) The digital/analog converter converts the active detection signal into an analog signal, and transmits the analog signal to the detection signal transmitting and receiving device; the signal transmitting and receiving device transmits the active detection signal after receiving the instruction; starts receiving after the transmission is completed the target echo signal, and transmit the target echo signal to an analog/digital converter, and the analog/digital converter converts the received target echo signal into a digital signal, and transmits the digital signal to a digital signal processor.
(5)数字信号处理器持续不断地接收模拟/数字转换器的采样数据,如果数字信号处理器从采样数据中检测到目标回波信号,则数字信号处理器对该采样数据进行处理,完成对目标的测距定位;如果没有检测到目标回波信号,则直接丢弃该采样数据。(5) The digital signal processor continuously receives the sampling data of the analog/digital converter. If the digital signal processor detects the target echo signal from the sampling data, the digital signal processor processes the sampling data to complete the Distance measurement and positioning of the target; if no target echo signal is detected, the sampled data is directly discarded.
本发明的优点在于:The advantages of the present invention are:
1、本发明的系统及方法对主机操作系统的非实时性更为宽容。1. The system and method of the present invention are more tolerant to the non-real-time nature of the host operating system.
2、本发明的系统及方法中的DA、AD卡采用同一时钟信号,消除了独立晶振频率漂移不一致的影响;也不必在每个测量周期内对卡上缓存数据进行管理,使测距精度受设备特性不理想性的影响更小。2. The DA and AD cards in the system and method of the present invention adopt the same clock signal, which eliminates the inconsistency of independent crystal oscillator frequency drift; The influence of non-idealities in device characteristics is smaller.
附图说明 Description of drawings
图1是本发明具体实施例同步测距系统框架图;Fig. 1 is a frame diagram of a synchronous ranging system of a specific embodiment of the present invention;
图2是本发明具体实施例同步测距方法模拟信号与Link端口数据帧的定时关系图;Fig. 2 is the timing relationship diagram of the synchronous ranging method analog signal and the Link port data frame of the specific embodiment of the present invention;
图3是本发明具体实施例同步测距方法流程图;Fig. 3 is a flowchart of a method for synchronous ranging in a specific embodiment of the present invention;
图4是本发明具体实施例同步测距方法Link端口数据传输示意图。FIG. 4 is a schematic diagram of data transmission at a Link port of a synchronous ranging method according to a specific embodiment of the present invention.
具体实施方式 Detailed ways
下面以主动声纳测距系统,具体说明本发明的系统及方法。本具体实施例的同步测距系统(如图1所示)采用两个DSP,分别通过Link端口与DA卡和AD卡连接,DA卡、AD卡分别通过功放PA和信号调理器与水下换能器连接,在整个测距过程中的所有测距周期内,DA卡和AD卡处于持续工作状态;DA卡和AD卡采用同一时钟信号进行测距计时。The system and method of the present invention will be specifically described below with an active sonar ranging system. The synchronous ranging system (as shown in Figure 1) of this specific embodiment adopts two DSPs, which are respectively connected to the DA card and the AD card through the Link port. The sensor is connected, and the DA card and the AD card are in a continuous working state during all the ranging periods during the entire ranging process; the DA card and the AD card use the same clock signal for ranging timing.
测距原理如下:设介质均匀、声速恒定为c,发射长度为NTs(Ts=1/fs为采样周期)的主动信号s(n),假设DA卡和AD卡的采样时钟频率一致,则接收回波信号可以表示为:The ranging principle is as follows: assume that the medium is uniform, the speed of sound is constant c, and the active signal s(n) with a transmission length of NT s (T s = 1/f s is the sampling period), assuming that the sampling clock frequencies of the DA card and the AD card are consistent , then the received echo signal can be expressed as:
r(n)=As[n-τ(n)]+g(n) (1)r(n)=As[n-τ(n)]+g(n) (1)
式中A为幅度衰减因子,它随距离R变化;τ(n)是以样点数表示的由声波双程传播带来的r(n)相对于s(n)的时间延迟,当声纳和探测目标保持相对静止时τ(n)为常数T,当二者之间有径向相对运动时τ(n)将随时间n变化;g(n)是噪声。In the formula, A is the amplitude attenuation factor, which changes with the distance R; τ(n) is the time delay of r(n) relative to s(n) caused by the two-way propagation of the sound wave, expressed by the number of samples, when the sonar and When the detection target remains relatively stationary, τ(n) is a constant T, and when there is radial relative motion between the two, τ(n) will change with time n; g(n) is noise.
假定声速c为一固定数值,声纳和相距R处的探测目标保持相对静止,无径向运动,τ(n)=T,则距离的计算公式为:Assuming that the speed of sound c is a fixed value, the sonar and the detection target at a distance R remain relatively stationary, without radial movement, τ(n)=T, then the formula for calculating the distance is:
R=cT/2 (2)R=cT/2 (2)
基于上述原理,叙述本测距方法如下:Based on the above principles, the ranging method is described as follows:
声纳系统加电开始运行后,PC机首先对DA、AD卡进行使能和初始化操作;然后,连接DA卡的DSP0便通过Link端口向DA卡发送全‘0’序列,使DA卡开始进行数字-模拟转换;AD卡也开始进行模拟-数字转换,并将采样数据通过Link端口传送给DSP1;之后,AD和DA卡便处于持续工作状态,直至系统关闭。After the sonar system is powered on and starts running, the PC first enables and initializes the DA and AD cards; then, the DSP0 connected to the DA card sends all '0' sequences to the DA card through the Link port, so that the DA card starts to operate. Digital-to-analog conversion; the AD card also starts to perform analog-to-digital conversion, and transmits the sampling data to DSP1 through the Link port; after that, the AD and DA cards will continue to work until the system is shut down.
在每个探测周期内,当需要发射主动声纳探测信号s(n)时,DSP0中止向DA发送全‘0’序列,而改为发送信号s(n),发送完成之后再恢复发送全‘0’序列;而连接AD卡的DSP1则持续不断地接收AD卡发送来的采样数据,当需要从采样数据中检测目标回波时,DSP1便对采样数据进行处理,否则就直接丢弃。In each detection cycle, when the active sonar detection signal s(n) needs to be transmitted, DSP0 stops sending all '0' sequences to DA, and sends signal s(n) instead, and resumes sending all '0' sequences after the transmission is completed 0' sequence; while the DSP1 connected to the AD card continuously receives the sampling data sent by the AD card. When the target echo needs to be detected from the sampling data, the DSP1 processes the sampling data, otherwise it is discarded directly.
为了克服DA和AD使用独立时钟源时频率漂移的不一致,本测距方法中使用同一时钟向DA、AD卡提供时钟信号,并利用该时钟源进行精确的测距计时。In order to overcome the inconsistency of frequency drift when DA and AD use independent clock sources, the same clock is used to provide clock signals to DA and AD cards in this ranging method, and the clock source is used for accurate ranging timing.
图2为模拟信号与Link端口数据帧的定时关系图。Figure 2 is a diagram of the timing relationship between the analog signal and the Link port data frame.
具体流程如下(如图3所示):The specific process is as follows (as shown in Figure 3):
1、声纳系统加电启动;1. The sonar system is powered on and started;
2、PC机对DA和AD卡进行复位、初始化、频率设置等操作。2. The PC performs operations such as reset, initialization, and frequency setting on the DA and AD cards.
3、DA和AD卡受同一时钟源(假设频率为75KHz)驱动,处于待命状态。3. The DA and AD cards are driven by the same clock source (assuming the frequency is 75KHz) and are in a standby state.
4、PC机设置DSP0的标志位,使其开始向DA卡发送全‘0’帧;同时,设置AD卡的控制字,使其开始进行模拟-数字转换工作。4. The PC sets the flag bit of DSP0 to make it start to send all '0' frames to the DA card; at the same time, set the control word of the AD card to make it start the analog-to-digital conversion.
5、AD卡开始进行模拟-数字转换工作。首先将采样信号放在卡上的FIFO缓存里,然后装配成数据帧,并通过Link端口发送给DSP1。假设每帧数据长度为4ms,即单个通道上有300个采样点,由于Link端口的传输速度高于AD采样数据的产生速度,因此,在相对较短的时间内(比如1ms)就可以将这4ms采样数据通过Link端口传输给DSP1。Link端口始终在等待AD生成新的采样数据,每当累积达到300个采样点时,就成帧发送给DSP1,如图2所示。5. The AD card starts to perform analog-to-digital conversion. First put the sampling signal in the FIFO buffer on the card, then assemble it into a data frame, and send it to DSP1 through the Link port. Assume that the data length of each frame is 4ms, that is, there are 300 sampling points on a single channel. Since the transmission speed of the Link port is higher than the generation speed of AD sampling data, this can be transferred in a relatively short period of time (such as 1ms). The 4ms sampling data is transmitted to DSP1 through the Link port. The Link port is always waiting for AD to generate new sampling data, and when the accumulation reaches 300 sampling points, it will be framed and sent to DSP1, as shown in Figure 2.
6、由于探测周期还没有开始,DSP1收到AD卡发来的数据帧后,认为是无效数据,并不进行后续处理,以帧为单位丢弃。6. Since the detection cycle has not yet started, after DSP1 receives the data frame from the AD card, it considers it to be invalid data, does not perform subsequent processing, and discards it in units of frames.
7、DSP0通过Link端口向DA卡发送全‘0’帧。7. DSP0 sends all '0' frames to the DA card through the Link port.
8、DA卡接收到全‘0’帧,经过FIFO缓存器件移位,将数字序列转换为模拟信号发出去。8. The DA card receives all '0' frames, shifts through the FIFO buffer device, converts the digital sequence into an analog signal and sends it out.
9、进入一个探测周期后,DSP停止向DA卡发送全‘0’帧,改为开始将主动探测信号s(n)发送给DA卡,这可能要占用一个或几个数据帧,如果s(n)无法填满某一帧,则在其尾部补‘0’。同步信号控制功放仅在接收到s(t)(s(n)序列的模拟输出)时才开始工作,将s(t)放大后传送给湿端换能器,其余时间,功放处于关闭状态。发送完s(n)之后,再继续发送全‘0’帧给DA卡。由于Link端口的传输速度高于DA卡进行数字-模拟转换的速度,Link端口始终在等待DA卡请求新的数据帧,每当DA卡FIFO缓存器清理出足够的存储空间时,DSP0就发送新的数据帧给DA卡,如图2所示。9. After entering a detection period, the DSP stops sending all '0' frames to the DA card, and instead starts to send the active detection signal s(n) to the DA card, which may take up one or several data frames. If s( n) If a certain frame cannot be filled, fill '0' at the end. The synchronous signal controls the power amplifier to start working only when it receives s(t) (the analog output of the s(n) sequence), amplifies s(t) and sends it to the wet end transducer, and the power amplifier is turned off for the rest of the time. After sending s(n), continue to send all '0' frames to the DA card. Since the transmission speed of the Link port is higher than the speed of digital-to-analog conversion of the DA card, the Link port is always waiting for the DA card to request a new data frame. Whenever the DA card FIFO buffer clears enough storage space, DSP0 will send a new data frame. The data frame is sent to the DA card, as shown in Figure 2.
10、功放将DA输送过来的模拟信号放大之后发送给水下换能器。10. The power amplifier amplifies the analog signal sent by the DA and sends it to the underwater transducer.
11、换能器将电信号以声波的形式发射出去,探测水中目标。11. The transducer emits electrical signals in the form of sound waves to detect underwater targets.
12、DSP0将序列s(n)发给DA卡之后,再向DSP1的内存空间中写入控制字,指示DSP1开始处理本探测周期接收到的AD采样信号。12. After DSP0 sends the sequence s(n) to the DA card, it writes the control word into the memory space of DSP1 to instruct DSP1 to start processing the AD sampling signal received in this detection cycle.
13、DSP1停止丢弃接收到的AD采样数据帧,并将新接收到的采样数据逐帧送入后续的处理单元进行处理,假设一个探测周期为10s,则每个探测周期内要对大约10s/4ms=2500帧数据进行处理,当计数器达到2500帧时,即认为该周期完成。13. DSP1 stops discarding the received AD sampling data frames, and sends the newly received sampling data frame by frame to the subsequent processing unit for processing. Assuming that a detection period is 10s, each detection period needs to be about 10s/ 4ms=2500 frames of data are processed, when the counter reaches 2500 frames, it is considered that the cycle is completed.
14、一个周期完成之后,DSP0仍继续向DA卡发送全‘0’帧;DSP1仍继续接收并丢弃AD卡发来的采样数据帧,DA、AD卡则持续不间断地进行数据转换工作。14. After a cycle is completed, DSP0 continues to send all '0' frames to the DA card; DSP1 continues to receive and discard the sampling data frames sent by the AD card, and the DA and AD cards continue to perform data conversion without interruption.
15、如果主机下达命令,要开始下一个探测周期,则转到步骤9;否则转到步骤14。15. If the host issues a command to start the next detection cycle, go to step 9; otherwise go to step 14.
16、如果主机下达关机命令,则上述各模块均停止运行,系统关闭。16. If the host issues a shutdown command, the above modules will all stop running and the system will shut down.
其中,每个周期的长度是依靠DA、AD卡时钟来精确计时的,在单个周期之内整个系统处于同步工作状态,如图4所示;而每个周期的启动时则是由PC通知DSP0向DA卡发送数据开始的,因此相邻两个周期之间是异步的,其时间间隔可能是11s、12s或13s等。但因为DA、AD卡是在同一时钟源的控制下持续不断地进行数据转换并通过Link端口进行数据交互,因此,虽然相邻两个周期之间的时间间隔不是固定数值,但该时间间隔一定是数据帧长度的整数倍,并且图4中DA和AD数据帧的相对时间差ΔT在不同的周期内是保持不变的。Among them, the length of each cycle is accurately timed by DA and AD card clocks, and the entire system is in a synchronous working state within a single cycle, as shown in Figure 4; and when each cycle is started, the PC notifies DSP0 The data is sent to the DA card, so two adjacent cycles are asynchronous, and the time interval may be 11s, 12s or 13s, etc. However, because the DA and AD cards are continuously performing data conversion under the control of the same clock source and performing data interaction through the Link port, therefore, although the time interval between two adjacent cycles is not a fixed value, the time interval must be is an integer multiple of the length of the data frame, and the relative time difference ΔT between the DA and AD data frames in Figure 4 remains unchanged in different periods.
本发明克服了主动声纳系统中传统测距方法存在一定测时误差的不足:对主机操作系统的非实时性更为宽容;DA、AD卡采用同一时钟信号,消除了独立晶振频率漂移不一致的影响;也不必在每个测量周期内对卡上缓存数据进行管理。使测距精度受设备特性不理想性的影响更小,是一种稳健的测距方法。The present invention overcomes the deficiency of certain timing errors in the traditional ranging method in the active sonar system: it is more tolerant to the non-real-time nature of the host operating system; the DA and AD cards use the same clock signal, eliminating the inconsistency of independent crystal oscillator frequency drift impact; nor does it have to manage the on-card cached data every measurement cycle. Making ranging accuracy less affected by imperfections in device characteristics is a robust ranging method.
本发明还可有以下变化例:The present invention also can have the following variations:
1、DSP和DA、AD卡之间进行数据传输的端口可以但并不局限于Link端口,也可以是其他可以传输数据的实时端口,比如UART、USB等。1. The port for data transmission between DSP and DA, AD card can be but not limited to Link port, it can also be other real-time ports that can transmit data, such as UART, USB, etc.
2、时钟信号可以由DA卡送给AD卡,也可以由AD卡送给DA卡,或者由外部时钟源同时输送给DA和AD卡。2. The clock signal can be sent from the DA card to the AD card, or from the AD card to the DA card, or sent to both the DA and AD cards by an external clock source.
3、DA和AD卡共用同一时钟源,但使用的分频系数可以不同,因而,二者的转换频率也可以不同。3. The DA and AD cards share the same clock source, but the frequency division coefficients used can be different, so the conversion frequencies of the two can also be different.
4、控制并通过Link端口与DA和AD卡进行数据传输的既可以是同一DSP芯片,也可以是两个独立的DSP芯片。4. It can be the same DSP chip or two independent DSP chips that control and transmit data with DA and AD cards through the Link port.
5、湿端发射换能器和接收水听器既可以是收发合置设备,也可以是收发分置的。5. The wet-end transmitting transducer and receiving hydrophone can be combined transceivers or separate transceivers.
6、本方法的适用范围并不仅仅局限于主动声纳设备,也可以是发射模拟探测信号并利用接收回波对目标进行测距定位的其它设备,比如雷达等。6. The scope of application of this method is not limited to active sonar equipment, but can also be other equipment that emits analog detection signals and uses received echoes to measure and locate targets, such as radar.
本系统及方法已在某主动声纳实验设备中实际应用,性能优异。当AD卡采用75KHz的采样频率、并对DA卡输出的模拟信号直接进行采集时,多次距离测量的测时误差均不大于1个采样周期Ts。The system and method have been practically applied in an active sonar experimental equipment with excellent performance. When the AD card adopts a sampling frequency of 75KHz and directly collects the analog signal output by the DA card, the timing error of multiple distance measurements is not greater than one sampling period T s .
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102263701A CN101644775B (en) | 2008-11-14 | 2008-11-14 | Synchronous ranging system and synchronous ranging method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102263701A CN101644775B (en) | 2008-11-14 | 2008-11-14 | Synchronous ranging system and synchronous ranging method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101644775A CN101644775A (en) | 2010-02-10 |
CN101644775B true CN101644775B (en) | 2011-11-09 |
Family
ID=41656738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102263701A Expired - Fee Related CN101644775B (en) | 2008-11-14 | 2008-11-14 | Synchronous ranging system and synchronous ranging method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101644775B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115396502B (en) * | 2022-08-24 | 2024-04-16 | 中国银行股份有限公司 | Multi-system message time conversion method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1942781A (en) * | 2004-05-11 | 2007-04-04 | 株式会社村田制作所 | Radar system |
CN1971649A (en) * | 2006-12-01 | 2007-05-30 | 哈尔滨工程大学 | Positioning and communicating integral buoy |
CN1971305A (en) * | 2006-12-01 | 2007-05-30 | 哈尔滨工程大学 | Intelligent responder of deep water |
CN1987516A (en) * | 2007-02-27 | 2007-06-27 | 呼秀山 | Equivalent sampling pulse distance measuring laser system |
-
2008
- 2008-11-14 CN CN2008102263701A patent/CN101644775B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1942781A (en) * | 2004-05-11 | 2007-04-04 | 株式会社村田制作所 | Radar system |
CN1971649A (en) * | 2006-12-01 | 2007-05-30 | 哈尔滨工程大学 | Positioning and communicating integral buoy |
CN1971305A (en) * | 2006-12-01 | 2007-05-30 | 哈尔滨工程大学 | Intelligent responder of deep water |
CN1987516A (en) * | 2007-02-27 | 2007-06-27 | 呼秀山 | Equivalent sampling pulse distance measuring laser system |
Non-Patent Citations (1)
Title |
---|
JP特开2006-226711A 2006.08.31 |
Also Published As
Publication number | Publication date |
---|---|
CN101644775A (en) | 2010-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103023583B (en) | Frame synchronization device capable of suppressing and measuring Doppler in underwater acoustic communication | |
CN101799545A (en) | Ultrasonic based dynamic distance measurement method and system | |
JP2018523236A (en) | Low speed bus time stamp method and circuit | |
CN201298077Y (en) | An error compensation type ultrasonic ranging apparatus | |
EP3922958B1 (en) | Measurement of absolute time of flight in an ultrasonic meter using received and reflected waves | |
CN102841343A (en) | Echo sounding apparatus calibration system based on industrial computer and calibration method | |
CN106646443A (en) | Ultrasonic ranging system and method based on ZigBee communications | |
CN101644775B (en) | Synchronous ranging system and synchronous ranging method | |
CN201654224U (en) | Acoustic-based spatial positioning system | |
CN104614446A (en) | Acoustic velocity measurement method based on marine bottom sediment | |
CN110515082B (en) | An Automatic Ranging System Based on Ultrasonic | |
CN201654231U (en) | A Dynamic Distance Measuring System Based on Ultrasonic | |
CN201355244Y (en) | Data acquisition circuit of ultrasonic ice melting sensor | |
CN104181538A (en) | Asynchronous precise static distance estimating system and method based on underwater sonar signal transmission | |
CN111551180B (en) | Smart phone indoor positioning system and method capable of identifying LOS/NLOS acoustic signals | |
CN201444295U (en) | Electronic whiteboard system based on host processing | |
CN216483019U (en) | A Synchronization Circuit for Positioning and Bathymetry Data | |
CN107478717A (en) | A kind of device that methane concentration is surveyed based on ultrasonic pulse method | |
CN110988148B (en) | Measuring system and measuring method for detecting compactness by utilizing ultrasonic waves | |
CN111190344A (en) | Design method of satellite navigation military code time service equipment | |
US20210381863A1 (en) | Flow measurement by combining 3l echo with delta time-of-flight cross correlation | |
CN110645966B (en) | GPS-based water depth synchronization method and equipment | |
CN107607616B (en) | Wireless sound wave detection device and method | |
CN203838128U (en) | Ultrasonic non-destructive testing high-speed data acquisition and processing system | |
CN106646479A (en) | Synchronous data acquisition system and acquisition method based on LabVIEW and sound card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111109 Termination date: 20141114 |
|
EXPY | Termination of patent right or utility model |