[go: up one dir, main page]

CN111323803B - Wireless signal processing method, device and terminal - Google Patents

Wireless signal processing method, device and terminal Download PDF

Info

Publication number
CN111323803B
CN111323803B CN201811535184.6A CN201811535184A CN111323803B CN 111323803 B CN111323803 B CN 111323803B CN 201811535184 A CN201811535184 A CN 201811535184A CN 111323803 B CN111323803 B CN 111323803B
Authority
CN
China
Prior art keywords
wireless signal
ranging
ranging code
slope
correlator
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
CN201811535184.6A
Other languages
Chinese (zh)
Other versions
CN111323803A (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.)
Sanechips Technology Co Ltd
Original Assignee
Sanechips Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanechips Technology Co Ltd filed Critical Sanechips Technology Co Ltd
Priority to CN201811535184.6A priority Critical patent/CN111323803B/en
Priority to PCT/CN2019/125037 priority patent/WO2020119777A1/en
Publication of CN111323803A publication Critical patent/CN111323803A/en
Application granted granted Critical
Publication of CN111323803B publication Critical patent/CN111323803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/45Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement
    • G01S19/46Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement the supplementary measurement being of a radio-wave signal type
    • 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
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/22Multipath-related issues
    • 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
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/10Position of receiver fixed by co-ordinating a plurality of position lines defined by path-difference measurements, e.g. omega or decca systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention is applicable to the technical field of wireless communication, and provides a wireless signal processing method, a wireless signal processing device and a terminal, wherein the wireless signal processing method comprises the following steps: generating a first function curve according to incoherent accumulated values of wireless signals, and determining the slope of a straight line formed by any two adjacent incoherent accumulated values on the first function curve; determining a ranging code phase offset of the wireless signal according to the slope; and compensating the ranging error of the ranging code of the wireless signal according to the phase offset of the ranging code. The embodiment of the invention can reduce the ranging error caused by multipath interference when the wireless signal is used for positioning, so that the positioning result obtained based on the wireless signal is more accurate, the user can obtain accurate positioning coordinates in the area with weak wireless signal strength, and the experience of the user is improved.

Description

一种无线信号的处理方法、装置及终端A wireless signal processing method, device and terminal

技术领域technical field

本发明涉及无线通信技术领域,尤其涉及一种无线信号的处理方法、装置及终端。The present invention relates to the technical field of wireless communication, in particular to a wireless signal processing method, device and terminal.

背景技术Background technique

随着人们对定位的需求不断提升,卫星定位技术的定位精度不高、室内及严重遮挡区域的定位可用性不强等问题逐渐显现出来。利用无线信号作为卫星定位信号的补充,可以有效覆盖室内等卫星定位信号严重遮挡区域,并有效弥补卫星定位技术的定位精度不高的不足之处。在使用无线信号进行定位时,由于无线信号在传输过程中,受建筑物、地形、地貌等影响,会产生多径干扰,再加之各种电子元器件产生的热噪声,使得无线信号的测距码测量出的伪距测量值不准确,最终导致定位结果不准确。目前,现有技术中对多径干扰和热噪声造成的测距误差的处理通常就是使用预设参数进行测距误差补偿,这样虽然能一定程度上减少测距误差,但是其测距精度还是不够精确。With the continuous improvement of people's demand for positioning, problems such as low positioning accuracy of satellite positioning technology and low positioning availability in indoor and severely occluded areas have gradually emerged. The use of wireless signals as a supplement to satellite positioning signals can effectively cover indoor areas where satellite positioning signals are seriously blocked, and can effectively make up for the shortcomings of low positioning accuracy of satellite positioning technology. When using wireless signals for positioning, due to the influence of buildings, terrain, and landforms during the transmission of wireless signals, multipath interference will occur, coupled with thermal noise generated by various electronic components, making the ranging of wireless signals The pseudo-range measurement value measured by the code is inaccurate, which eventually leads to inaccurate positioning results. At present, the processing of ranging errors caused by multipath interference and thermal noise in the prior art is usually to use preset parameters for ranging error compensation. Although this can reduce ranging errors to a certain extent, the ranging accuracy is still not enough accurate.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种无线信号的处理方法、装置及终端,以解决现有技术中对多径干扰和热噪声干扰使用的误差补偿参数过于简单,导致基于无线信号得到的定位结果精度不高的问题。In view of this, the main purpose of the present invention is to provide a wireless signal processing method, device and terminal to solve the problem that the error compensation parameters used for multipath interference and thermal noise interference in the prior art are too simple, resulting in The accuracy of the positioning results is not high.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

第一方面,本发明实施例提供了一种无线信号的处理方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for processing a wireless signal, the method including:

根据无线信号的非相干累加值生成第一函数曲线;generating a first function curve according to the non-coherent accumulated value of the wireless signal;

确定所述第一函数曲线上任意相邻两个所述非相干累加值所构成直线的斜率;determining the slope of a straight line formed by any two adjacent non-coherent accumulation values on the first function curve;

根据所述斜率确定所述无线信号的测距码相位偏移量;determining a ranging code phase offset of the wireless signal according to the slope;

根据所述测距码相位偏移量,进行所述无线信号的测距码的测距误差补偿。Perform ranging error compensation of the ranging code of the wireless signal according to the ranging code phase offset.

进一步的,所述根据所述无线信号的斜率确定测距码相位偏移量,包括:Further, the determining the ranging code phase offset according to the slope of the wireless signal includes:

将所述斜率与第二函数曲线上任意相邻两个所述非相干累加值所构成的直线的斜率相减,得到斜率偏差值;Subtracting the slope from the slope of a straight line formed by any two adjacent non-coherent accumulation values on the second function curve to obtain a slope deviation value;

根据所述斜率偏差值查询第一预设表,获取所述第一预设表中与所述斜率偏差值对应的测距码相位偏移量。Querying the first preset table according to the slope deviation value, and obtaining the ranging code phase offset corresponding to the slope deviation value in the first preset table.

进一步的,所述根据无线信号的非相干累加值生成第一函数曲线之前,还包括:Further, before generating the first function curve according to the non-coherent accumulation value of the wireless signal, it also includes:

将所述无线信号输入相关器进行相关运算,得到相干累加数据;Inputting the wireless signal into a correlator to perform a correlation operation to obtain coherent accumulation data;

将所述相干累加数据进行非相干累加,得到所述非相干累加值。performing non-coherent accumulation on the coherent accumulation data to obtain the non-coherent accumulation value.

进一步的,所述将所述相干累加数据进行非相干累加,得到所述非相干累加值之后,还包括:Further, after performing non-coherent accumulation on the coherent accumulation data and obtaining the non-coherent accumulation value, it also includes:

将所述非相干累加值与理想非相干累加值相减,得到偏差值;Subtracting the non-coherent cumulative value from the ideal non-coherent cumulative value to obtain a deviation value;

统计预设时间内所述偏差值大于预设阈值的次数;counting the number of times the deviation value is greater than a preset threshold within a preset time;

判断所述次数是否大于预设次数;judging whether the number of times is greater than a preset number of times;

若所述次数大于或等于所述预设次数,则根据所述无线信号的非相干累加值生成第一函数曲线。If the number of times is greater than or equal to the preset number of times, a first function curve is generated according to the non-coherent accumulation value of the wireless signal.

进一步的,所述判断所述次数是否大于预设次数之后,还包括:Further, after the judging whether the number of times is greater than the preset number of times, it also includes:

若所述次数小于所述预设次数,则将所述无线信号输入相关器进行相关运算,得到所述相干累加数据。If the number of times is less than the preset number of times, the wireless signal is input into a correlator to perform a correlation operation to obtain the coherent accumulation data.

进一步的,所述方法还包括:Further, the method also includes:

统计预设观测次数内第m个相关器对所述无线信号相干处理得到最大非相干累加值的次数,获得所述第m个相关器的概率;counting the number of times that the mth correlator coherently processes the wireless signal within the preset number of observations to obtain the maximum non-coherent cumulative value, and obtains the probability of the mth correlator;

基于所述第m个相关器的概率,确定M个所述相关器的概率分布,其中,m为小于M的正整数,M为所述相关器的总个数;Based on the probability of the mth correlator, determine the probability distribution of M correlators, where m is a positive integer less than M, and M is the total number of correlators;

根据所述概率分布确定所述无线信号的测距码测距精度;determining the ranging accuracy of the ranging code of the wireless signal according to the probability distribution;

根据所述测距码测距精度,进行所述无线信号的测距码的测距误差补偿。Perform ranging error compensation of the ranging code of the wireless signal according to the ranging accuracy of the ranging code.

进一步的,所述根据所述概率分布确定所述无线信号的测距码测距精度,包括:Further, the determining the ranging accuracy of the ranging code of the wireless signal according to the probability distribution includes:

根据所述概率分布查询第二预设表,获取所述第二预设表中与所述概率分布对应的测距码测距精度。The second preset table is queried according to the probability distribution, and the ranging accuracy of the ranging code corresponding to the probability distribution in the second preset table is obtained.

第二方面,本发明实施例提供了一种无线信号的处理装置,该装置包括:In a second aspect, an embodiment of the present invention provides a wireless signal processing device, which includes:

曲线生成模块,用于根据所述无线信号的非相干累加值生成第一函数曲线;A curve generation module, configured to generate a first function curve according to the non-coherent accumulation value of the wireless signal;

斜率确定模块,用于确定所述第一函数曲线上任意相邻两个所述非相干累加值所构成直线的斜率;A slope determination module, configured to determine the slope of a straight line formed by any two adjacent non-coherent accumulation values on the first function curve;

测距码相位偏移量确定模块,根据所述斜率确定所述无线信号的测距码相位偏移量;a ranging code phase offset determination module, which determines the ranging code phase offset of the wireless signal according to the slope;

误差补偿模块,用于根据所述测距码相位偏移量,进行所述无线信号的测距码的测距误差补偿。The error compensation module is configured to perform ranging error compensation of the ranging code of the wireless signal according to the phase offset of the ranging code.

进一步的,所述装置还包括:Further, the device also includes:

统计模块,用于统计预设观测次数内第m个相关器对所述无线信号相干处理得到最大非相干累加值的次数,获得所述第m个相关器的概率;基于所述第m个相关器的概率,确定M个所述相关器的概率分布,其中,m为小于M的正整数,M为所述相关器的总个数;A statistics module, used to count the number of times that the mth correlator coherently processes the wireless signal within the preset number of observations to obtain the maximum non-coherent accumulation value, and obtains the probability of the mth correlator; based on the mth correlation Probability of the correlator, determine the probability distribution of M correlators, wherein, m is a positive integer less than M, and M is the total number of the correlators;

测距码测距精度确定模块,用于根据所述概率分布确定所述无线信号的测距码测距精度。A ranging code ranging accuracy determination module, configured to determine the ranging code ranging accuracy of the wireless signal according to the probability distribution.

第三方面,本发明实施例提供了一种终端,包括处理器、相关器、输入设备、输出设备和存储器,所述处理器、相关器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持终端执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。In a third aspect, an embodiment of the present invention provides a terminal, including a processor, a correlator, an input device, an output device, and a memory, where the processor, the correlator, the input device, the output device, and the memory are connected to each other, wherein the The memory is used to store a computer program that supports the terminal to execute the above method, the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the above method in the first aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the The processor executes the method of the first aspect above.

本发明实施例通过根据无线信号的非相干累加值生成第一函数曲线,确定所述第一函数曲线上任意相邻两个所述非相干累加值所构成直线的斜率;根据所述斜率确定所述无线信号的测距码相位偏移量;根据所述测距码相位偏移量,进行无线信号的测距码的测距误差补偿,该测距误差补偿可以弥补测距中一部分误差,从而可以提高测距的精度。例如,本发明实施例提供的技术方案,可以减少无线信号用于定位时由于多径干扰造成的测距误差,使得基于无线信号得到的定位结果更加准确,让用户在无线信号强度较弱的区域也能获得良好的定位坐标,提高了用户的体验感。In the embodiment of the present invention, the first function curve is generated according to the non-coherent accumulation value of the wireless signal, and the slope of the straight line formed by any two adjacent non-coherent accumulation values on the first function curve is determined; the slope is determined according to the slope. The ranging code phase offset of the wireless signal; according to the ranging code phase offset, the ranging error compensation of the ranging code of the wireless signal is performed, and the ranging error compensation can make up for a part of the error in ranging, thereby The accuracy of ranging can be improved. For example, the technical solution provided by the embodiment of the present invention can reduce the ranging error caused by multipath interference when the wireless signal is used for positioning, so that the positioning result based on the wireless signal is more accurate, and allows the user to locate in areas with weak wireless signal strength. Good positioning coordinates can also be obtained, which improves the user experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present invention. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.

图1是本发明实施例提供的一种无线信号多路径传播示意图;FIG. 1 is a schematic diagram of multipath propagation of a wireless signal provided by an embodiment of the present invention;

图2是本发明实施例提供的一种无线信号的处理方法的流程示意图;FIG. 2 is a schematic flowchart of a wireless signal processing method provided by an embodiment of the present invention;

图3是本发明实施例提供的一种第二函数曲线图;Fig. 3 is a kind of second function graph provided by the embodiment of the present invention;

图4是本发明实施例提供的一种多径传播环境下的第一函数曲线图;FIG. 4 is a first function graph in a multipath propagation environment provided by an embodiment of the present invention;

图5是本发明实施例提供的一种多径传播环境下的第一函数曲线的斜率示意图;5 is a schematic diagram of the slope of a first function curve in a multipath propagation environment provided by an embodiment of the present invention;

图6是本发明实施例提供的另一种无线信号的处理方法的流程示意图;FIG. 6 is a schematic flowchart of another wireless signal processing method provided by an embodiment of the present invention;

图7是本发明实施例提供的另一种无线信号的处理方法的流程示意图;FIG. 7 is a schematic flowchart of another wireless signal processing method provided by an embodiment of the present invention;

图8是本发明实施例提供的另一种无线信号的处理方法的流程示意图;FIG. 8 is a schematic flowchart of another wireless signal processing method provided by an embodiment of the present invention;

图9是本发明实施例提供的一种热噪声引起的相关器抖动示意图;FIG. 9 is a schematic diagram of correlator jitter caused by thermal noise provided by an embodiment of the present invention;

图10是本发明实施例提供的一种无线信号的处理方法的示意性框图;FIG. 10 is a schematic block diagram of a wireless signal processing method provided by an embodiment of the present invention;

图11是本发明实施例提供的一种无线信号的处理装置的示意图;Fig. 11 is a schematic diagram of a wireless signal processing device provided by an embodiment of the present invention;

图12是本发明一实施例提供的终端设备的示意图。Fig. 12 is a schematic diagram of a terminal device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and/or components, but do not exclude one or Presence or addition of multiple other features, integers, steps, operations, elements, components and/or collections thereof.

还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.

还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .

相比于将无线信号用于无线通信,将无线信号用于测距定位时,接收信号的处理方式有较大差别。在无线通信的应用场景中,终端与基站间的通信可靠性由多重手段保证,例如信号分集、信号重传机制、信道编解码纠错、信令交互及连接确认等。此外,无线通信过程通常是一个突发的数据传输过程,并不需要终端与基站始终保持信号交互状态,而利用无线信号进行测距定位中,由于需要实现连续定位的功能,接收机需对接收到的无线信号进行连续不断地观测,并根据观测值获取伪距测量值。即使在无线信号的信号强度持续起伏或遭遇多径干扰时,接收机应尽可能保持接收信号不中断,用以获得持续的伪距测量值,保证定位结果连续且不发散。在此过程中,数据重传等机制无法弥补因信道恶化造成的伪距测量值的恶化,因此,需要对信道恶化造成的测距误差进行测距误差补偿。Compared with using wireless signals for wireless communication, when using wireless signals for ranging and positioning, the processing methods of received signals are quite different. In the application scenario of wireless communication, the communication reliability between the terminal and the base station is guaranteed by multiple means, such as signal diversity, signal retransmission mechanism, channel codec error correction, signaling interaction and connection confirmation, etc. In addition, the wireless communication process is usually a bursty data transmission process, which does not require the terminal and the base station to maintain a signal interaction state all the time. In the ranging and positioning using wireless signals, due to the need to realize the continuous positioning function, the receiver needs to monitor the receiving The received wireless signal is continuously observed, and the pseudo-range measurement value is obtained according to the observed value. Even when the signal strength of the wireless signal continues to fluctuate or encounter multipath interference, the receiver should keep the received signal uninterrupted as much as possible to obtain continuous pseudo-range measurement values to ensure that the positioning results are continuous and do not diverge. During this process, mechanisms such as data retransmission cannot compensate for the deterioration of pseudorange measurement values caused by channel deterioration. Therefore, ranging error compensation for ranging errors caused by channel deterioration is required.

参考图1,图1是本发明实施例提供的一种无线信号多路径传播示意图,如图1所示,由于建筑和障碍物存在,基站发送的无线信号在障碍物处形成多路径传播,多径信号叠加至直射径信号上,造成测距误差,因此需要对多径干扰造成的误差进行测距误差补偿。Referring to FIG. 1, FIG. 1 is a schematic diagram of multipath propagation of a wireless signal provided by an embodiment of the present invention. As shown in FIG. The multipath signal is superimposed on the direct path signal, resulting in ranging error. Therefore, it is necessary to compensate the ranging error for the error caused by multipath interference.

此外,由于各种电子元器件的热噪声持续对定位的精确度产生影响,尤其在弱信号环境中,热噪声的影响就更为严重。如果不对由于热噪声产生的测距误差进行补偿,会对其最终定位结果产生影响。在弱信号环境中,伪距测量值对信噪比、载噪比和符号信噪比等参数的适应性要远高于无线通信应用场景中,然而,由于用户的移动导致终端通常具备一定的移动性,当用户移动到遮挡区域时,由于障碍物的遮挡造成了信号强度起伏与多普勒频移,信号受热噪声影响较为严重,这时候通常意义上的信噪比、载噪比和符号信噪比等参数往往无法及时有效反应接收信号的质量。In addition, since the thermal noise of various electronic components continues to affect the accuracy of positioning, especially in weak signal environments, the impact of thermal noise is even more serious. If the ranging error due to thermal noise is not compensated, the final positioning result will be affected. In a weak signal environment, the adaptability of the pseudorange measurement value to parameters such as signal-to-noise ratio, carrier-to-noise ratio, and symbol-to-signal-to-noise ratio is much higher than in wireless communication application scenarios. Mobility, when the user moves to an occluded area, the signal strength fluctuation and Doppler frequency shift are caused by the occlusion of obstacles, and the signal is seriously affected by thermal noise. At this time, the signal-to-noise ratio, carrier-to-noise ratio and symbol Parameters such as the signal-to-noise ratio often cannot reflect the quality of the received signal in a timely and effective manner.

因此,如果不对多径干扰和热噪声造成的测距误差进行误差补偿,那么最终获得的定位结果一定是不准确的。若简单的使用预设参数输入位置解算算法中进行误差补偿,这样位置解算算法计算出的定位结果不够准确。Therefore, if the ranging error caused by multipath interference and thermal noise is not compensated for, the final positioning result must be inaccurate. If the preset parameters are simply used to input the position calculation algorithm for error compensation, the positioning results calculated by the position calculation algorithm will not be accurate enough.

所以,本发明实施例提供了一种无线信号的处理方法,分别对多径干扰和热噪声干扰造成的测距误差进行误差补偿,使得基于无线信号得到的定位结果更加准确。为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。Therefore, an embodiment of the present invention provides a wireless signal processing method, which performs error compensation on ranging errors caused by multipath interference and thermal noise interference, so that the positioning result obtained based on the wireless signal is more accurate. In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

参考图2,图2是本发明实施例提供的一种无线信号的处理方法的流程示意图,该方法执行主体为处理器,所述处理器执行如步骤S101至S104所述的方法,该方法包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a wireless signal processing method provided by an embodiment of the present invention. The method is executed by a processor, and the processor executes the method described in steps S101 to S104. The method includes :

步骤S101,根据无线信号的非相干累加值生成第一函数曲线。Step S101, generating a first function curve according to non-coherent accumulated values of wireless signals.

所述非相干累加值为输入的无线信号先进行相干运算再进行非相干累加后得到的数值。相关运算的主要目的是将直射径信号从多径干扰和热噪声中提取出来,非相干累加的主要作用是进一步提升接收信号的累加增益。The non-coherent accumulation value is a value obtained after the input wireless signal is subjected to coherent calculation and then non-coherent accumulation. The main purpose of the correlation operation is to extract the direct path signal from the multipath interference and thermal noise, and the main function of the non-coherent accumulation is to further enhance the accumulation gain of the received signal.

在本发明的一种实施例中,所述第一函数曲线为自相关函数曲线,在后续实施例中也以自相关函数为例进行说明。具体的,根据非相干累加值生成自相关函数曲线,包括:处理器以非相干累加值为纵坐标,各相关器生成子载波信号的时延为横坐标,建立自相关函数曲线。In an embodiment of the present invention, the first function curve is an autocorrelation function curve, and the autocorrelation function is also used as an example for description in subsequent embodiments. Specifically, generating the autocorrelation function curve according to the non-coherent accumulation value includes: the processor takes the non-coherent accumulation value as the ordinate, and the time delay of each correlator to generate the sub-carrier signal as the abscissa, and establishes the autocorrelation function curve.

例如,参考图3,图3是本发明实施例提供的一种第二函数曲线图,所述第二函数曲线,即为根据没有热噪声和多径干扰的理想状态下无线信号所生成的自相关函数曲线。如图3所示,在没有热噪声和多径干扰的状态下,自相关函数曲线是对称的。所述第二函数曲线可由处理器预先运行matlab程序仿真出来,并存储在存储器中。For example, referring to FIG. 3, FIG. 3 is a second function curve provided by an embodiment of the present invention. Correlation function curve. As shown in Figure 3, in the absence of thermal noise and multipath interference, the autocorrelation function curve is symmetrical. The second function curve can be simulated by the processor running the matlab program in advance, and stored in the memory.

由于建筑和障碍物存在,基站发送的无线信号在障碍物处形成多路径传播,多径信号叠加至直射径信号上,造成测距误差。如图4所示,图4是本发明实施例提供的一种多径传播环境下的第一函数曲线图。如图4所示,由于多径信号叠加至直射径信号上,破坏了相关器对称性,导致生成的自相关函数曲线不对称,可能出现多个峰值。Due to the existence of buildings and obstacles, the wireless signal sent by the base station forms multi-path propagation at the obstacle, and the multi-path signal is superimposed on the direct path signal, resulting in ranging error. As shown in FIG. 4 , FIG. 4 is a graph of a first function in a multipath propagation environment provided by an embodiment of the present invention. As shown in Figure 4, since the multipath signal is superimposed on the direct path signal, the symmetry of the correlator is destroyed, resulting in the asymmetry of the generated autocorrelation function curve, and multiple peaks may appear.

应理解,由于相关器进行相关运算可按周期进行,所以曲线上任意相邻两个非相干累加值对应的点才会在坐标轴上出现间隔。It should be understood that since the correlation operation performed by the correlator can be performed periodically, the points corresponding to any two adjacent non-coherent accumulation values on the curve will have gaps on the coordinate axes.

步骤S102,确定所述第一函数曲线上任意相邻两个所述非相干累加值所构成直线的斜率。Step S102, determining the slope of a straight line formed by any two adjacent non-coherent accumulation values on the first function curve.

由于所述自相关函数曲线是根据所述非相干累加值生成的,每个非相干累加值都在曲线上对应一个点,例如,若有5个相关器,则对应计算出5个非相干累加值,在曲线上就有5个对应的点,相邻两点进行连线,得到4条直线,那么对应就会有4个斜率。Since the autocorrelation function curve is generated according to the non-coherent cumulative value, each non-coherent cumulative value corresponds to a point on the curve, for example, if there are 5 correlators, then 5 non-coherent cumulative values are correspondingly calculated Value, there are 5 corresponding points on the curve, connect two adjacent points to get 4 straight lines, then there will be 4 corresponding slopes.

例如,参考图5,图5是本发明实施例提供的一种多径传播环境下的第一函数曲线的斜率示意图。如图5所示,在自相关函数曲线上有A、B两点相邻,如果A点的坐标为(x1,y1),B点的坐标为(x2,y2),那么,A点和B点构成的直线的斜率k=(y1-y2)/(x1-x2)。For example, refer to FIG. 5 , which is a schematic diagram of a slope of a first function curve in a multipath propagation environment provided by an embodiment of the present invention. As shown in Figure 5, there are two points A and B adjacent to each other on the autocorrelation function curve, if the coordinates of point A are (x1, y1), and the coordinates of point B are (x2, y2), then, point A and point B The slope k=(y1-y2)/(x1-x2) of the straight line formed by the points.

步骤S103,根据所述斜率确定所述无线信号的测距码相位偏移量。Step S103, determining a ranging code phase offset of the wireless signal according to the slope.

由于多径干扰,根据非相干累加值生成的自相关函数曲线与第二函数曲线会产生差异,曲线上相邻两点构成的直线的斜率也会产生变化,直线的斜率变化越大,说明多径干扰越严重,直射径信号测距码的相位偏移量也就越大。Due to multipath interference, the autocorrelation function curve generated based on the incoherent cumulative value will be different from the second function curve, and the slope of the straight line formed by two adjacent points on the curve will also change. The greater the slope change of the straight line, the more The more serious the path interference, the greater the phase offset of the ranging code of the direct path signal.

进一步的,所述根据所述斜率确定所述无线信号的测距码相位偏移量,包括:Further, the determining the ranging code phase offset of the wireless signal according to the slope includes:

将所述斜率对应与第二函数曲线上任意相邻两个非相干累加值所构成直线的斜率相减,得到斜率偏差值。The slope is correspondingly subtracted from the slope of a straight line formed by any two adjacent non-coherent accumulation values on the second function curve to obtain a slope deviation value.

例如,如图5所示,曲线上A点和B点构成的直线的斜率k=(y1-y2)/(x1-x2)。如图3所示,在第二函数曲线上有与A、B两点对应的A1和B1,这里的对应指相同横坐标下对应的曲线上的两点,如果A1点的坐标为(x1,y11),B1点的坐标为(x2,y12),那么第二函数曲线上A1点和B1点构成的直线的斜率k1=(y11-y12)/(x1-x2)。那么,斜率偏差值等于k-k1,斜率偏差值越接近0,说明无线信号受到的多径干扰越小,测距码相位偏移量越小,通过斜率偏差值可以确定测距码相位偏移量的大小。For example, as shown in FIG. 5 , the slope k=(y1-y2)/(x1-x2) of the straight line formed by point A and point B on the curve. As shown in Figure 3, there are A 1 and B 1 corresponding to the two points A and B on the second function curve. The correspondence here refers to the two points on the corresponding curve under the same abscissa. If the coordinates of point A 1 are (x1, y 1 1), the coordinates of B 1 point are (x2, y 1 2), then the slope k 1 of the straight line formed by A 1 point and B 1 point on the second function curve=(y 1 1-y 1 2)/(x1-x2). Then, the slope deviation value is equal to kk 1 , and the closer the slope deviation value is to 0, it means that the wireless signal is subjected to less multipath interference, and the ranging code phase offset is smaller, and the ranging code phase offset can be determined by the slope deviation value the size of.

在本发明实施例中,由于所述第二函数曲线是通过matlab仿真出来的理想状态下的曲线,所以第二函数曲线上任意相邻两个非相干累加值所构成直线的斜率都是已知的,处理器预先获取第二函数曲线上任意相邻两个非相干累加值所构成直线的斜率,并写入存储器中,当计算斜率偏差值时直接从存储器中调用。In the embodiment of the present invention, since the second function curve is a curve in an ideal state simulated by matlab, the slope of a straight line formed by any adjacent two non-coherent accumulation values on the second function curve is known. The processor obtains in advance the slope of the straight line formed by any two adjacent non-coherent accumulation values on the second function curve, writes it into the memory, and calls it directly from the memory when calculating the slope deviation value.

根据所述斜率偏差值查询第一预设表,获取第一预设表中与所述斜率偏差值对应的测距码相位偏移量。The first preset table is queried according to the slope deviation value, and the ranging code phase offset corresponding to the slope deviation value in the first preset table is obtained.

斜率偏差值与测距码相位偏移量有一定的对应关系,不同的斜率偏差值对应着不同的测距码相位偏移量。例如,若相关器个数为3,则在第一函数曲线上能构成3条直线,若3条直线的斜率偏差值都是0,则所述测距码相位偏移量为0。处理器预先获取实验得到的各斜率偏差值与测距码相位偏移量的具体对应关系,将所述斜率偏差值和测距码相位偏移量的大小的对应关系一一写入第一预设表中,当获得斜率偏差值时,通过查第一预设表就可以获得测距码相位偏移量的大小,所述第一预设表存储在存储器中。There is a certain correspondence between the slope deviation value and the ranging code phase offset, and different slope deviation values correspond to different ranging code phase offsets. For example, if the number of correlators is 3, then 3 straight lines can be formed on the first function curve, and if the slope deviation values of the 3 straight lines are all 0, then the ranging code phase offset is 0. The processor obtains in advance the specific corresponding relationship between each slope deviation value and the phase offset of the ranging code obtained in the experiment, and writes the corresponding relationship between the slope deviation value and the phase offset of the ranging code into the first preset one by one. In the setting table, when the slope deviation value is obtained, the magnitude of the phase offset of the ranging code can be obtained by looking up the first preset table, and the first preset table is stored in the memory.

步骤S104,根据所述测距码相位偏移量,进行所述无线信号的测距码的测距误差补偿。Step S104, performing ranging error compensation of the ranging code of the wireless signal according to the ranging code phase offset.

将所述测距码相位偏移量作为位置解算算法的测距误差补偿参数参与位置解算,可以减少由于多径干扰造成的测距误差,从而增加位置解算算法解算出的定位坐标的定位精度。Using the ranging code phase offset as the ranging error compensation parameter of the position resolution algorithm to participate in the position resolution can reduce the ranging error caused by multipath interference, thereby increasing the accuracy of the positioning coordinates calculated by the position resolution algorithm. positioning accuracy.

在本发明实施例中,所述位置解算算法为本领域常用的位置解算算法,因此不展开详细介绍。例如,所述位置解算算法包括:加权最小二乘滤波算法或卡尔曼滤波算法。In the embodiment of the present invention, the position calculation algorithm is a commonly used position calculation algorithm in the field, so no detailed introduction will be given. For example, the location calculation algorithm includes: a weighted least squares filtering algorithm or a Kalman filtering algorithm.

本发明实施例通过根据无线信号的非相干累加值生成第一函数曲线,确定所述第一函数曲线上任意相邻两个所述非相干累加值所构成直线的斜率;根据所述斜率确定所述无线信号的测距码相位偏移量;根据所述测距码相位偏移量,进行无线信号的测距码的测距误差补偿。该测距误差补偿可以弥补测距中一部分误差,从而可以提高测距的精度。例如,本发明实施例提供的技术方案,可以减少无线信号用于定位时由于多径干扰造成的测距误差,使得基于无线信号得到的定位结果更加准确,让用户在无线信号强度较弱的区域也能获得准确的定位坐标,提高了用户的体验感。In the embodiment of the present invention, the first function curve is generated according to the non-coherent accumulation value of the wireless signal, and the slope of the straight line formed by any two adjacent non-coherent accumulation values on the first function curve is determined; the slope is determined according to the slope. The ranging code phase offset of the wireless signal; and performing ranging error compensation of the ranging code of the wireless signal according to the ranging code phase offset. The distance measurement error compensation can make up a part of the distance measurement error, thereby improving the distance measurement accuracy. For example, the technical solution provided by the embodiment of the present invention can reduce the ranging error caused by multipath interference when the wireless signal is used for positioning, so that the positioning result based on the wireless signal is more accurate, and allows the user to locate in areas with weak wireless signal strength. Accurate positioning coordinates can also be obtained, which improves the user experience.

参考图6,图6是本发明实施例提供的另一种无线信号的处理方法的流程示意图,如图6所示,在上述实施例步骤S101:所述根据无线信号的非相干累加值生成第一函数曲线之前,还包括步骤S1001至步骤S1002。Referring to FIG. 6 , FIG. 6 is a schematic flowchart of another wireless signal processing method provided by an embodiment of the present invention. As shown in FIG. 6 , in step S101 of the above embodiment: generating the first Before a function curve, steps S1001 to S1002 are also included.

步骤S1001,将所述无线信号输入相关器进行相关运算,得到相干累加数据。Step S1001, inputting the wireless signal into a correlator to perform a correlation operation to obtain coherent accumulation data.

具体的,所述将所述无线信号输入相关器进行相关运算,得到相干累加数据,包括:Specifically, the wireless signal is input into a correlator to perform a correlation operation to obtain coherent accumulation data, including:

相关器使用本地生成的一组子载波信号与所述无线信号进行相关运算,得到相干累加数据。The correlator uses a group of locally generated sub-carrier signals to perform a correlation operation with the wireless signal to obtain coherent accumulation data.

所述相关器能够利用信号的相关特性将直射径信号从多径干扰、或热噪声中提取出来。相关器中包括:本地载波信号生成器、相关运算阵列模块等。其中,本地载波信号生成器用于产生两路相互正交的离散信号,通常称之为子载波信号。相关运算阵列模块用于将输入信号与本地载波信号生成器生成的子载波信号进行相关运算。The correlator can use the correlation characteristic of the signal to extract the direct path signal from multipath interference or thermal noise. The correlator includes: a local carrier signal generator, a correlation operation array module, and the like. Wherein, the local carrier signal generator is used to generate two mutually orthogonal discrete signals, which are generally called sub-carrier signals. The correlation operation array module is used to perform correlation operation on the input signal and the sub-carrier signal generated by the local carrier signal generator.

所述输入信号为基站发出的用于定位的无线信号。处理器获取相关器使用本地生成的一组子载波信号与输入信号进行相关运算后得到的相干累加数据,所述相关运算的运算公式为:

Figure BDA0001906680740000101
其中,Cor为相干累加数据,τ为各相关器生成子载波信号的时间间隔,s为接收的无线信号,l为相干累加长度,f1(t+τ)至fm(t+τ)为被分成m份的子载波信号,1至m是子载波编号,子载波的分配由第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)规定;D1至Dm为无线信号的测距码编号,由于测距码是调制在子载波信号上的,所以子载波划分多少份,测距码就划分多少份,因此,在D1至Dm中,1至m也代表子载波的编号;e为自然对数的底,j代表负数。为了保证信号估算分辨率,通常τ≤0.5Ts,Ts为一个测距码符号宽度。The input signal is a wireless signal sent by the base station for positioning. The processor obtains the coherent accumulation data obtained after the correlator uses a group of locally generated subcarrier signals and the input signal to perform correlation operations, and the operation formula of the correlation operation is:
Figure BDA0001906680740000101
Among them, Cor is the coherent accumulation data, τ is the time interval for each correlator to generate subcarrier signals, s is the received wireless signal, l is the coherent accumulation length, f 1 (t+τ) to f m (t+τ) are Divided into m sub-carrier signals, 1 to m are sub-carrier numbers, and the allocation of sub-carriers is specified by the 3rd Generation Partnership Project (3GPP); D 1 to D m are the ranging codes of wireless signals Numbering, since the ranging code is modulated on the subcarrier signal, the number of divisions of the subcarrier is the number of divisions of the ranging code. Therefore, in D 1 to D m , 1 to m also represent the number of subcarriers; e is the base of the natural logarithm, and j represents a negative number. In order to ensure the signal estimation resolution, usually τ≤0.5Ts, where Ts is the symbol width of a ranging code.

因为本地载波信号生成器生成了2路相互正交的信号,因此,进行相关运算后得到的相干累加数据有2个,将其中一路的相干累加数据记为I,另一路的相干累加数据记为Q。Because the local carrier signal generator generates 2 mutually orthogonal signals, there are 2 coherent accumulation data obtained after the correlation operation, and the coherent accumulation data of one path is recorded as I, and the coherent accumulation data of the other path is recorded as Q.

步骤S1002,将所述相干累加数据进行非相干累加,得到所述非相干累加值。Step S1002, performing non-coherent accumulation on the coherent accumulation data to obtain the non-coherent accumulation value.

具体的,所述将所述相干累加数据进行非相干累加,得到非相干累加值,包括:Specifically, performing non-coherent accumulation on the coherent accumulation data to obtain a non-coherent accumulation value includes:

将所述相干累加数据取模或模平方后再进行数据累加,得到非相干累加值。Taking the modulus or modulus square of the coherent accumulation data and then performing data accumulation to obtain a non-coherent accumulation value.

将其中一路的相干累加数据I作为实部,另一路的相干累加数据Q作为虚部。The coherent accumulation data I of one path is taken as the real part, and the coherent accumulation data Q of the other path is taken as the imaginary part.

取模后数据累加公式为:The formula for data accumulation after modulus is:

Figure BDA0001906680740000111
Figure BDA0001906680740000111

模平方后数据累加公式为:The formula for data accumulation after modular square is:

Figure BDA0001906680740000112
Figure BDA0001906680740000112

其中,Noncoh为非相干累加值,k为非相干累加次数。Among them, Noncoh is the non-coherent accumulation value, and k is the number of non-coherent accumulation.

由于无线信号用在测距定位时需要在较弱的信号跟踪中最大限度还原出真实可用的测距信号,因此需要较长的非相干累加时间,通常取毫秒或秒级的非相干累加时间。例如,本发明的一种实施例使用秒级的非相干累加时间。所述非相干累加时间可通过增加上述公式中的k值来实现,k为非相干累加次数,非相干累加次数越多,相应的,所述非相干累加时间越长。Since the wireless signal is used for ranging and positioning, it is necessary to restore the real and usable ranging signal to the maximum extent in weak signal tracking, so a long non-coherent accumulation time is required, usually in milliseconds or seconds. For example, one embodiment of the invention uses non-coherent accumulation times on the order of seconds. The non-coherent accumulation time can be realized by increasing the k value in the above formula, where k is the number of non-coherent accumulation times, and the more non-coherent accumulation times, the longer the non-coherent accumulation time.

参考图7,图7是本发明提供的另一种无线信号的处理方法的流程示意图,如图7所示,在上述实施例步骤S1002之后,还包括步骤S1003至步骤S1007。Referring to FIG. 7 , FIG. 7 is a schematic flowchart of another wireless signal processing method provided by the present invention. As shown in FIG. 7 , after step S1002 in the above embodiment, steps S1003 to S1007 are also included.

步骤S1003,将所述非相干累加值与理想非相干累加值相减,得到偏差值。Step S1003, subtracting the non-coherent cumulative value from the ideal non-coherent cumulative value to obtain a deviation value.

所述理想非相干累加值即为第二函数曲线上的非相干累加值,因为无线信号受多径干扰和热噪声的影响,所述非相干累加值可能与理想非相干累加值不同,将所述非相干累加值对应与理想非相干累加值相减,得到偏差值,所述偏差值可以反映输入信号的质量,偏差越小,代表输入信号与理想输入信号越接近。例如,如图3和图5所示,将图5中A点的纵坐标减去图3中A1点的纵坐标,即为偏差值,所述偏差值=y1-y11。The ideal non-coherent cumulative value is the non-coherent cumulative value on the second function curve, because the wireless signal is affected by multipath interference and thermal noise, the non-coherent cumulative value may be different from the ideal non-coherent cumulative value, and the The incoherent accumulated value is correspondingly subtracted from the ideal incoherent accumulated value to obtain a deviation value, which can reflect the quality of the input signal, and the smaller the deviation, the closer the input signal is to the ideal input signal. For example, as shown in Fig. 3 and Fig. 5, subtracting the ordinate of point A1 in Fig. 3 from the ordinate of point A in Fig. 5 is the deviation value, and the deviation value = y1- y11 .

步骤S1004,统计预设时间内所述偏差值大于预设阈值的次数。Step S1004, counting the number of times the deviation value is greater than a preset threshold within a preset time.

所述预设时间为观测时间,例如,所述预设时间可以为1至5秒。所述预设阈值用于反映输入信号是否存在多径干扰,若偏差值大于预设阈值,说明当前接收的无线信号受到多径干扰。The preset time is an observation time, for example, the preset time may be 1 to 5 seconds. The preset threshold is used to reflect whether the input signal has multipath interference, and if the deviation value is greater than the preset threshold, it indicates that the currently received wireless signal is subject to multipath interference.

因为需要对信号进行持续观测,因此并不能只根据一次观测的结果就说明无线信号受到了多径干扰,因此需要持续观测一定时间。因为对信号周期性的进行处理,因此预设时间内会进行多次偏差值的计算。Because the signal needs to be continuously observed, it cannot be shown that the wireless signal is subject to multipath interference based on the result of one observation, so continuous observation is required for a certain period of time. Because the signal is processed periodically, the calculation of the deviation value will be performed multiple times within the preset time.

应理解,如果将所有非相干累加值都与对应的理想非相干累加值相减,可能其中大于预设阈值的偏差值有多个,因此,在一次观测中,不管大于预设阈值的偏差值有多少个,只将次数即为1次。It should be understood that if all the non-coherent accumulation values are subtracted from the corresponding ideal non-coherent accumulation values, there may be multiple deviation values greater than the preset threshold value. Therefore, in one observation, regardless of the deviation value greater than the preset threshold value How many there are, only the number of times is 1 time.

步骤S1005,判断所述次数是否大于预设次数。Step S1005, judging whether the number of times is greater than a preset number of times.

所述预设时间和预设次数由技术人员根据经验设定,例如,所述预设时间为2秒,所述预设次数为10次。The preset time and preset times are set by technicians based on experience, for example, the preset time is 2 seconds, and the preset times are 10 times.

例如,若所述次数为20次,所述预设次数为10次,则所述次数大于预设次数。For example, if the number of times is 20 and the preset number of times is 10, then the number of times is greater than the preset number of times.

步骤S1006,若所述次数大于或等于所述预设次数,则根据所述无线信号的非相干累加值生成第一函数曲线。Step S1006, if the number of times is greater than or equal to the preset number of times, generate a first function curve according to the non-coherent accumulated value of the wireless signal.

若所述次数大于或等于所述预设次数,则说明无线信号受到多径干扰,需要进行多径干扰的误差补偿,执行上述实施例的步骤S101及之后的步骤。If the number of times is greater than or equal to the preset number of times, it means that the wireless signal is subject to multipath interference, and error compensation for multipath interference is required, and step S101 and subsequent steps in the above embodiment are performed.

步骤S1007,若所述次数小于所述预设次数,则将无线信号输入相关器进行相关运算,得到所述相干累加数据。Step S1007, if the number of times is less than the preset number of times, then input the wireless signal into a correlator to perform a correlation operation to obtain the coherent accumulation data.

若所述次数小于所述预设次数,说明无线信号没有受到多径干扰,不需要进行多径干扰的误差补偿,执行上述实施例的步骤S1001及之后的步骤,将接收到的无线信号输入相关器进行相关运算,得到所述相干累加数据。If the number of times is less than the preset number of times, it means that the wireless signal is not subject to multipath interference, and error compensation for multipath interference is not required. Step S1001 and subsequent steps of the above-mentioned embodiment are executed to input the received wireless signal into the correlation The device performs a correlation operation to obtain the coherent accumulation data.

本发明实施例通过将所述非相干累加值与理想非相干累加值相减,得到偏差值;统计预设时间内所述偏差值大于预设阈值的次数;判断所述次数是否大于预设次数;若所述次数大于或等于所述预设次数,则说明无线信号的确受到多径干扰,需要对多径干扰造成的误差进行误差补偿;若所述次数小于所述预设次数,则说明无线信号没有受到多径干扰,不需要进行多径干扰的误差补偿。本发明实施例为上述对多径干扰造成的测距误差补偿提供了判断基础。In the embodiment of the present invention, a deviation value is obtained by subtracting the non-coherent cumulative value from the ideal non-coherent cumulative value; counting the number of times the deviation value is greater than a preset threshold within a preset time; judging whether the number of times is greater than a preset number of times ; If the number of times is greater than or equal to the preset number of times, it means that the wireless signal is indeed subject to multipath interference, and error compensation for errors caused by multipath interference is required; if the number of times is less than the preset number of times, it means that the wireless The signal is not subject to multipath interference, and error compensation for multipath interference is not required. The embodiment of the present invention provides a judgment basis for the above-mentioned ranging error compensation caused by multipath interference.

参考图8,图8是本发明提供的另一种无线信号的处理方法的流程示意图,如图8所示,在上述实施例中,所述方法还包括步骤S105至步骤S107。Referring to FIG. 8, FIG. 8 is a schematic flowchart of another wireless signal processing method provided by the present invention. As shown in FIG. 8, in the above embodiment, the method further includes steps S105 to S107.

步骤S105,统计预设观测次数内第m个相关器对无线信号相干处理得到最大非相干累加值的次数,获得所述第m个相关器的概率;基于所述第m个相关器的概率,确定M个所述相关器的概率分布。Step S105, count the number of times that the mth correlator coherently processes the wireless signal within the preset number of observations to obtain the maximum non-coherent cumulative value, and obtain the probability of the mth correlator; based on the probability of the mth correlator, A probability distribution for M said correlators is determined.

其中,m为小于M的正整数,M为所述相关器的总个数。Wherein, m is a positive integer smaller than M, and M is the total number of correlators.

参考图9,图9是本发明实施例提供的一种热噪声引起的相关器抖动的示意图,由于弱信号环境或用户移动,接收的无线信号受热噪声扰动明显,使得时间偏移量为0的相关器不能准确对准接收信号的测距码相位,从而形成了随机扰动,导致如图9所示的热噪声环境下的自相关函数曲线与第二函数曲线不能重叠。随着信号不断减弱,随机扰动逐渐加强,进而影响测距精度和定位精度。测距码是用以测定从卫星至接收机间的距离的一种二进制编码序列,因为受到热噪声和测距码本身码元宽度的影响,通过测距码测出的伪距测量值会不准确。因此需要估算出输入信号的测距码的测距精度,所述测距精度用于表示输入信号的测距码的测距可信度,可信度越高,说明输入信号的信号质量越好,用该输入信号的测距码测出的伪距测量值也就越准确。当输入信号的测距码的测量精度高时,系统将加大该输入信号的权重,告诉位置解算算法充分信任该输入信号的测距码测出的伪距测量值;反之,当输入信号的测距码的测距精度低时,说明输入信号的信号质量差,系统将减小该输入信号的权重,告诉位置解算算法不要过分信任通过该输入信号的测距码测出的伪距测量值。Referring to FIG. 9, FIG. 9 is a schematic diagram of correlator jitter caused by thermal noise according to an embodiment of the present invention. Due to a weak signal environment or user movement, the received wireless signal is significantly disturbed by thermal noise, so that the time offset is 0 The correlator cannot accurately align the ranging code phase of the received signal, thereby forming random disturbances, resulting in that the autocorrelation function curve and the second function curve in a thermal noise environment as shown in FIG. 9 cannot overlap. As the signal continues to weaken, the random disturbance gradually strengthens, which in turn affects the ranging accuracy and positioning accuracy. The ranging code is a binary code sequence used to measure the distance from the satellite to the receiver. Due to the influence of thermal noise and the symbol width of the ranging code itself, the pseudo-range measurement value measured by the ranging code will be different. precise. Therefore, it is necessary to estimate the ranging accuracy of the ranging code of the input signal. The ranging accuracy is used to represent the ranging reliability of the ranging code of the input signal. The higher the reliability, the better the signal quality of the input signal , the more accurate the pseudo-range measurement value measured by the ranging code of the input signal is. When the measurement accuracy of the ranging code of the input signal is high, the system will increase the weight of the input signal to tell the position calculation algorithm to fully trust the pseudo-range measurement value measured by the ranging code of the input signal; otherwise, when the input signal When the ranging accuracy of the ranging code is low, it means that the signal quality of the input signal is poor, the system will reduce the weight of the input signal, and tell the position calculation algorithm not to trust the pseudo-range measured by the ranging code of the input signal Measurements.

因为要实现连续定位功能,因此需要对无线信号进行连续不断的观测。所述统计预设观测次数内第m个相关器对无线信号相干处理得到最大非相干累加值的次数,例如,在本发明的一种实施例中,包括相关器A、相关器B和相关器C,预先将相关器B对准输入信号测距码相位中心,假设所述预设观测次数为100次。若在100次连续观测中,相关器A对无线信号相干处理得到最大非相干累加值的次数为10次,相关器B对无线信号相干处理得到最大非相干累加值的次数为80次,相关器C对无线信号相干处理得到最大非相干累加值的次数为10次。则所述相关器A的最大非相干累加值的概率分布为10%,相关器B的最大非相干累加值的概率分布为80%,相关器C的最大非相干累加值的概率分布为10%。In order to realize the continuous positioning function, it is necessary to continuously observe the wireless signal. The number of times that the mth correlator coherently processes the wireless signal within the preset number of observations to obtain the maximum non-coherent cumulative value, for example, in an embodiment of the present invention, including correlator A, correlator B and correlator C. Align the correlator B with the phase center of the ranging code of the input signal in advance, assuming that the preset number of observations is 100. If in 100 consecutive observations, correlator A coherently processes the wireless signal to obtain the maximum non-coherent cumulative value for 10 times, correlator B coherently processes the wireless signal to obtain the maximum non-coherent cumulative value for 80 times, correlator C coherently processes wireless signals to obtain the maximum non-coherent accumulation value for 10 times. Then the probability distribution of the maximum non-coherent accumulation value of the correlator A is 10%, the probability distribution of the maximum non-coherent accumulation value of the correlator B is 80%, and the probability distribution of the maximum non-coherent accumulation value of the correlator C is 10%. .

若接收到的无线信号质量非常好,则每次最大非相干累加值都会出现在对准无线信号测距码相位中心的相关器,最终A、B和C三个相关器的最大非相干累加值的概率分布将呈现0%、100%、0%。若输入信号完全淹没在热噪声中,则原本对准测距码相位中心的相关器B及其临近相关器A、C将无法呈现出高于噪声方差的相关器增益,最终A、B和C三个相关器最大非相干累加值的概率分布将呈现趋近于33%、33%、33%的均匀分布。If the quality of the received wireless signal is very good, the maximum non-coherent cumulative value will appear in the correlator aligned with the phase center of the wireless signal ranging code each time, and finally the maximum non-coherent cumulative value of the three correlators A, B and C The probability distribution for will assume 0%, 100%, 0%. If the input signal is completely submerged in the thermal noise, the correlator B and its adjacent correlators A and C, which are originally aligned with the phase center of the ranging code, will not be able to exhibit a correlator gain higher than the noise variance, and finally A, B and C The probability distribution of the maximum non-coherent cumulative value of the three correlators will present a uniform distribution approaching 33%, 33%, and 33%.

步骤S106,根据所述概率分布确定所述无线信号的测距码测距精度。Step S106, determining the ranging accuracy of the ranging code of the wireless signal according to the probability distribution.

进一步的,所述根据所述概率分布确定测距码测距精度,包括:Further, the determining the ranging accuracy of the ranging code according to the probability distribution includes:

根据所述分布率查询第二预设表,获取第二预设表中与所述分布率对应的测距码测距精度。The second preset table is queried according to the distribution rate, and the ranging accuracy of the ranging code corresponding to the distribution rate in the second preset table is obtained.

最大非相干累加值的概率分布和测距码测距精度有一定的对应关系,不同的最大非相干累加值的概率分布对应着不同的测距码测距精度。处理器获取实验得到的最大非相干累加值的概率分布与测距码测距精度的具体对应关系,并将所述最大非相干累加值的概率分布与测距码测距精度的对应关系一一写入第二预设表中,当获得最大非相干累加值的概率分布时,通过查第二预设表就可以获得测距码测距精度,所述第二预设表存储在存储器中。There is a certain correspondence between the probability distribution of the maximum non-coherent cumulative value and the ranging accuracy of the ranging code, and different probability distributions of the largest non-coherent cumulative value correspond to different ranging precisions of the ranging code. The processor obtains the specific corresponding relationship between the probability distribution of the maximum incoherent accumulated value obtained in the experiment and the ranging accuracy of the ranging code, and the corresponding relationship between the probability distribution of the maximum incoherent accumulated value and the ranging accuracy of the ranging code It is written into the second preset table, and when the probability distribution of the maximum non-coherent accumulation value is obtained, the ranging code ranging accuracy can be obtained by looking up the second preset table, and the second preset table is stored in the memory.

例如,在本发明的一种实施例中,可将测距码测距精度划分为0至9,不同的最大非相干累加值的概率分布对应不同的测距码测距精度,例如,若相关器A、B和C的最大非相干累加值的概率分布为0%、100%、0%,则可将该分布率对应的测距码测距精度划分为最高级9级;若相关器A、B和C的最大非相干累加值的概率分布为33%、33%、33%,则可将该最大非相干累加值的概率分布对应的测距码测距精度划分为最低级0级。For example, in one embodiment of the present invention, the ranging accuracy of the ranging code can be divided into 0 to 9, and the probability distribution of different maximum non-coherent accumulation values corresponds to different ranging accuracy of the ranging code, for example, if the correlation The probability distribution of the maximum non-coherent accumulation value of A, B and C is 0%, 100%, 0%, then the ranging accuracy of the ranging code corresponding to the distribution rate can be divided into the highest level 9; if the correlator A The probability distributions of the maximum incoherent accumulation values of , B and C are 33%, 33%, and 33%, then the ranging accuracy of the ranging code corresponding to the probability distribution of the maximum incoherent accumulation values can be divided into the lowest level 0.

应理解,测距码测距精度的划分不仅仅可以使用0至9这种表现形式,还可以使用0%至100%这种表现形式或其他表现形式。本发明给出的实施例中对测距码测距精度的划分只是示例性说明,并不能对本发明实施例的实施过程构成任何限定。It should be understood that the division of the ranging accuracy of the ranging code can not only use the representation form of 0 to 9, but also the representation form of 0% to 100% or other representation forms. The division of the ranging accuracy of the ranging codes in the embodiments of the present invention is only an illustration, and does not constitute any limitation to the implementation process of the embodiments of the present invention.

步骤S107,根据所述测距码测距精度,进行所述无线信号的测距码的测距误差补偿。Step S107, performing ranging error compensation of the ranging code of the wireless signal according to the ranging accuracy of the ranging code.

获取测距码测距精度后,将所述测距码测距精度作为位置解算算法的权重参数参与位置解算,可以减少热噪声对测距精度的影响,从而使得位置解算算法解算出的定位坐标更加精准。After obtaining the ranging accuracy of the ranging code, the ranging accuracy of the ranging code is used as the weight parameter of the position calculation algorithm to participate in the position calculation, which can reduce the influence of thermal noise on the ranging accuracy, so that the position calculation algorithm can calculate The positioning coordinates are more precise.

需要说明的是,在本发明实施例中,步骤101和步骤105是同时执行的。It should be noted that, in this embodiment of the present invention, step 101 and step 105 are executed simultaneously.

本发明实施例通过统计预设观测次数内第m个相关器对无线信号相干处理得到最大非相干累加值的次数,获得所述第m个相关器的概率;基于所述第m个相关器的概率,确定M个所述相关器的概率分布,根据所述概率分布确定无线信号的测距码测距精度;根据所述测距码测距精度,进行无线信号的测距码的测距误差补偿。该测距误差补偿可以弥补测距中一部分误差,从而可以提高测距的精度。例如,本发明实施例提供的技术方案,可以减少热噪声造成的测距误差,使得通过无线通信信号进行定位的定位结果更加精准,让用户在无线信号强度弱的区域也能获得准确的定位坐标,提高了用户的体验感。In the embodiment of the present invention, the probability of the mth correlator is obtained by counting the number of times that the mth correlator coherently processes the wireless signal within the preset number of observations to obtain the maximum non-coherent accumulation value; based on the mth correlator Probability, determining the probability distribution of the M correlators, determining the ranging accuracy of the ranging code of the wireless signal according to the probability distribution; performing the ranging error of the ranging code of the wireless signal according to the ranging accuracy of the ranging code compensate. The distance measurement error compensation can make up a part of the distance measurement error, thereby improving the distance measurement accuracy. For example, the technical solution provided by the embodiments of the present invention can reduce the ranging error caused by thermal noise, make the positioning result of positioning through wireless communication signals more accurate, and allow users to obtain accurate positioning coordinates in areas with weak wireless signal strength , improving the user experience.

参考图10,图10是本发明实施例提供的一种无线信号的处理方法的示意性框图,如图10所示,首先处理器将输入信号输入相关器中进行相关运算得到相干累加数据,接着将相干累加数据进行非相干累加得到非相干累加值,然后根据所述非相干累加值生成自相关函数曲线,将自相关函数曲线与第二函数曲线进行比较,得到测距码相位偏移量和测距码测距精度,将测距码相位偏移量作为位置解算算法的测距误差补偿参数,将测距码测距精度作为位置解算算法的权重参数,减少了多径干扰和热噪声造成的测距误差,使得通过无线通信信号进行定位的定位结果更加精准。Referring to FIG. 10 , FIG. 10 is a schematic block diagram of a wireless signal processing method provided by an embodiment of the present invention. As shown in FIG. 10 , first, the processor inputs the input signal into a correlator to perform a correlation operation to obtain coherent accumulation data, and then performing non-coherent accumulation on the coherent accumulation data to obtain a non-coherent accumulation value, and then generating an autocorrelation function curve according to the non-coherent accumulation value, comparing the autocorrelation function curve with the second function curve to obtain the ranging code phase offset and The ranging accuracy of the ranging code, the phase offset of the ranging code is used as the ranging error compensation parameter of the position solution algorithm, and the ranging accuracy of the ranging code is used as the weight parameter of the position solution algorithm, which reduces multipath interference and heat loss. The ranging error caused by noise makes the positioning result of positioning through wireless communication signals more accurate.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.

参考图11,图11是本发明实施例提供的一种无线信号的处理装置的示意图,如图11所示,该装置包括:曲线生成模块11、斜率确定模块12、测距码相位偏移量确定模块13和误差补偿模块14。Referring to FIG. 11, FIG. 11 is a schematic diagram of a wireless signal processing device provided by an embodiment of the present invention. As shown in FIG. 11, the device includes: a curve generation module 11, a slope determination module 12, a ranging code phase offset Determination module 13 and error compensation module 14 .

曲线生成模块11,用于根据无线信号的非相干累加值生成第一函数曲线;A curve generation module 11, configured to generate a first function curve according to the non-coherent accumulation value of the wireless signal;

斜率确定模块12,用于确定所述第一函数曲线上任意相邻两个所述非相干累加值所构成直线的斜率;A slope determination module 12, configured to determine the slope of a straight line formed by any two adjacent non-coherent accumulation values on the first function curve;

测距码相位偏移量确定模块13,根据所述斜率确定所述无线信号的测距码相位偏移量;The ranging code phase offset determination module 13 determines the ranging code phase offset of the wireless signal according to the slope;

误差补偿模块14,用于根据所述测距码相位偏移量,进行所述无线信号的测距码的测距误差补偿。The error compensation module 14 is configured to perform ranging error compensation of the ranging code of the wireless signal according to the phase offset of the ranging code.

进一步的,所述装置还包括:Further, the device also includes:

统计模块15,用于统计预设观测次数内第m个相关器对无线信号相干处理得到最大非相干累加值的次数,分别获得M个相干器各自对无线信号相干处理得到所述最大非相干累加值的次数,从而得到最大非相干累加值的概率分布,其中,m为小于M的正整数,M为所述相关器的总个数;The statistical module 15 is used to count the number of times that the mth correlator coherently processes the wireless signal within the preset number of observations to obtain the maximum non-coherent cumulative value, and respectively obtains the maximum non-coherent cumulative value obtained by coherent processing of the wireless signal by the M coherents value, thereby obtaining the probability distribution of the maximum non-coherent cumulative value, wherein, m is a positive integer less than M, and M is the total number of correlators;

测距码测距精度确定模块16,用于根据所述概率分布确定所述无线信号的测距码测距精度。A ranging code ranging precision determining module 16, configured to determine the ranging code ranging precision of the wireless signal according to the probability distribution.

所述误差补偿模块14还用于根据所述测距码测距精度,进行所述无线信号的测距码的测距误差补偿。The error compensation module 14 is further configured to perform ranging error compensation of the ranging code of the wireless signal according to the ranging accuracy of the ranging code.

图12是本发明一实施例提供的终端设备的示意图。如图12所示,该实施例的终端设备8包括:处理器80、存储器81以及存储在所述存储器81中并可在所述处理器80上运行的计算机程序82。所述终端设备还包括:相关器83。所述处理器80执行所述计算机程序82时实现上述各个方法实施例中的步骤,例如图1所示的步骤101至104。或者,所述处理器80执行所述计算机程序82时实现上述各装置实施例中各模块的功能,例如图11所示模块11至14的功能。所述相关器完成输入信号的相关运算,并将运算结果发送给处理器80。示例性的,所述计算机程序82可以被分割成一个或多个模块,所述一个或者多个模块被存储在所述存储器81中,并由所述处理器80执行,以完成本发明。所述一个或多个模块可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序82在所述终端设备8中的执行过程。Fig. 12 is a schematic diagram of a terminal device provided by an embodiment of the present invention. As shown in FIG. 12 , the terminal device 8 of this embodiment includes: a processor 80 , a memory 81 , and a computer program 82 stored in the memory 81 and operable on the processor 80 . The terminal device further includes: a correlator 83 . When the processor 80 executes the computer program 82, it implements the steps in the various method embodiments above, such as steps 101 to 104 shown in FIG. 1 . Alternatively, when the processor 80 executes the computer program 82, the functions of the modules in the above-mentioned device embodiments are implemented, for example, the functions of the modules 11 to 14 shown in FIG. 11 . The correlator completes the correlation operation of the input signal, and sends the operation result to the processor 80 . Exemplarily, the computer program 82 can be divided into one or more modules, and the one or more modules are stored in the memory 81 and executed by the processor 80 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 82 in the terminal device 8 .

所述终端设备可包括,但不仅限于,处理器80、存储器81。本领域技术人员可以理解,图12仅仅是终端设备8的示例,并不构成对终端设备8的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device may include, but not limited to, a processor 80 and a memory 81 . Those skilled in the art can understand that FIG. 12 is only an example of the terminal device 8, and does not constitute a limitation to the terminal device 8. It may include more or less components than those shown in the figure, or combine certain components, or different components. , for example, the terminal device may also include an input and output device, a network access device, a bus, and the like.

所称处理器80可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 80 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

所述存储器81可以是所述终端设备8的内部存储单元,例如终端设备8的硬盘或内存。所述存储器81也可以是所述终端设备8的外部存储设备,例如所述终端设备8上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器81还可以既包括所述终端设备8的内部存储单元也包括外部存储设备。所述存储器81用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器81还可以用于暂时地存储已经输出或者将要输出的数据。The storage 81 may be an internal storage unit of the terminal device 8 , such as a hard disk or memory of the terminal device 8 . The memory 81 can also be an external storage device of the terminal device 8, such as a plug-in hard disk equipped on the terminal device 8, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 81 may also include both an internal storage unit of the terminal device 8 and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the terminal device. The memory 81 can also be used to temporarily store data that has been output or will be output.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将所述装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中,上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。另外,各功能模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. Each functional module in the embodiment can be integrated into one processing module, or each module can exist separately physically, or two or more modules can be integrated into one module, and the above-mentioned integrated modules can be implemented in the form of hardware , can also be implemented in the form of software function modules. In addition, the specific names of the functional modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above system, reference may be made to the corresponding processes in the aforementioned method embodiments, and details will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal equipment and method may be implemented in other ways. For example, the device/terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.

所述集成的模块如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated modules are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. . Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (Read-Only Memory, ROM) , random access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.

以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still carry out the foregoing embodiments Modifications to the technical solutions recorded in the examples, or equivalent replacement of some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in within the protection scope of the present invention.

Claims (11)

1. A method for processing a wireless signal, comprising:
generating a first function curve according to the incoherent accumulated value of the wireless signal;
determining the slope of a straight line formed by any two adjacent incoherent accumulated values on the first function curve;
determining a ranging code phase offset of the wireless signal according to the slope;
and compensating the ranging error of the ranging code of the wireless signal according to the phase offset of the ranging code.
2. The method of claim 1, wherein said determining a ranging code phase offset from a slope of the wireless signal comprises:
Subtracting the slope of a straight line formed by any two adjacent incoherent accumulated values on the second function curve from the slope of the straight line formed by any two adjacent incoherent accumulated values to obtain a slope deviation value;
inquiring a first preset table according to the slope deviation value, and acquiring the ranging code phase offset corresponding to the slope deviation value in the first preset table.
3. The method of claim 1, wherein prior to generating the first function curve from the incoherent accumulated value of the wireless signal, further comprising:
inputting the wireless signals into a correlator to perform correlation operation to obtain coherent accumulated data;
and performing incoherent accumulation on the coherent accumulation data to obtain an incoherent accumulation value.
4. The method of claim 3 wherein said non-coherently accumulating said coherently accumulated data to obtain said non-coherently accumulated value further comprises:
subtracting the incoherent accumulated value from the ideal incoherent accumulated value to obtain an offset value;
counting the times that the deviation value is larger than a preset threshold value in preset time;
judging whether the times are larger than preset times or not;
and if the times are greater than or equal to the preset times, generating a first function curve according to the incoherent accumulated value of the wireless signal.
5. The method of claim 4, wherein after determining whether the number of times is greater than a preset number of times, further comprising:
and if the frequency is smaller than the preset frequency, inputting the wireless signal into a correlator to perform correlation operation to obtain the coherent accumulation data.
6. The method of claim 1, wherein the method further comprises:
counting the number of times of obtaining the maximum incoherent accumulated value by the mth correlator in the preset observation times for the coherent processing of the wireless signal, and obtaining the probability of the mth correlator;
determining probability distribution of M correlators based on the probability of the mth correlator;
wherein M is a positive integer less than or equal to M, and M is the total number of the correlators;
determining the ranging accuracy of the ranging codes of the wireless signals according to the probability distribution;
and according to the ranging accuracy of the ranging code, performing ranging error compensation of the ranging code of the wireless signal.
7. The method of claim 6, wherein the determining ranging code ranging accuracy of the wireless signal based on the probability distribution comprises:
inquiring a second preset table according to the probability distribution, and acquiring ranging accuracy of ranging codes corresponding to the probability distribution in the second preset table.
8. A wireless signal processing apparatus, comprising:
the curve generation module is used for generating a first function curve according to the incoherent accumulated value of the wireless signal;
the slope determining module is used for determining the slope of a straight line formed by any two adjacent incoherent accumulated values on the first function curve;
a ranging code phase offset determining module for determining a ranging code phase offset of the wireless signal according to the slope;
and the error compensation module is used for compensating the ranging error of the ranging code of the wireless signal according to the phase offset of the ranging code.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the statistics module is used for counting the times of obtaining the maximum incoherent accumulated value by the mth correlator on the coherent processing of the wireless signal in the preset observation times, and obtaining the probability of the mth correlator; determining probability distribution of M correlators based on the probability of the mth correlator, wherein M is a positive integer smaller than M, and M is the total number of the correlators;
and the ranging code ranging precision determining module is used for determining the ranging code ranging precision of the wireless signal according to the probability distribution.
10. A terminal comprising a processor, a correlator, an input device, an output device and a memory, the processor, correlator, input device, output device and memory being interconnected, wherein the memory is adapted to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-7.
11. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-7.
CN201811535184.6A 2018-12-14 2018-12-14 Wireless signal processing method, device and terminal Active CN111323803B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811535184.6A CN111323803B (en) 2018-12-14 2018-12-14 Wireless signal processing method, device and terminal
PCT/CN2019/125037 WO2020119777A1 (en) 2018-12-14 2019-12-13 Wireless signal processing method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535184.6A CN111323803B (en) 2018-12-14 2018-12-14 Wireless signal processing method, device and terminal

Publications (2)

Publication Number Publication Date
CN111323803A CN111323803A (en) 2020-06-23
CN111323803B true CN111323803B (en) 2023-07-04

Family

ID=71076797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535184.6A Active CN111323803B (en) 2018-12-14 2018-12-14 Wireless signal processing method, device and terminal

Country Status (2)

Country Link
CN (1) CN111323803B (en)
WO (1) WO2020119777A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112051562A (en) * 2020-08-26 2020-12-08 广东博智林机器人有限公司 Distance compensation method and device for wireless ranging, electronic equipment and storage medium
CN116953079B (en) * 2023-07-25 2025-03-04 常州市新创智能科技有限公司 Waveform generation method, device, equipment and medium for ultrasonic detection
CN119628754B (en) * 2024-12-04 2025-09-19 上海交通大学 Method and system for positioning optical multipath interference

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1128064A (en) * 1993-11-29 1996-07-31 诺瓦特尔通讯有限公司 Pseudorandom noise ranging receiver which compensates for multipath distortion by making use of multiple correlator time delay spacing
CN1333876A (en) * 1999-01-08 2002-01-30 真实定位公司 Calibration of the Wireless Location System
CN1582401A (en) * 2001-11-09 2005-02-16 罗瑟姆公司 Location of broadcast television signals using integrated services digital broadcasting terrestrial (ISDB-T)
CN106291619A (en) * 2016-07-29 2017-01-04 中国人民解放军国防科学技术大学 A kind of aeronautical satellite inter-satellite link wireless long-period spread spectrum code signal high-performance catching method
CN107843910A (en) * 2016-09-21 2018-03-27 上海创远仪器技术股份有限公司 A kind of virtual multistation TDOA localization methods and device being suitable under complex environment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6861984B2 (en) * 2001-02-02 2005-03-01 Rosum Corporation Position location using broadcast digital television signals
US6724343B2 (en) * 2002-04-30 2004-04-20 The Johns Hopkins University Weak signal and anti-jamming Global Positioning System receiver and method using full correlation grid
CN1474196A (en) * 2003-05-15 2004-02-11 重庆赛洛克无线定位有限公司 High precision anti-multipath narrow band correlated distance detecting system in radio positioning
CN104219761A (en) * 2014-10-09 2014-12-17 中国石油大学(华东) Ultra-wideband wireless positioning method based on maximum slope
CN105208527A (en) * 2015-09-01 2015-12-30 北京交通大学 Wireless positioning method based on signal propagation path calculation under multipath environment
US10705222B2 (en) * 2017-04-04 2020-07-07 Trimble Inc. GNSS multipath mitigation using slope-based code discriminator
CN107015250B (en) * 2017-04-19 2019-09-06 北京邮电大学 A method and device for multipath suppression based on linear regression
CN108123723B (en) * 2017-12-22 2020-11-10 西安烽火电子科技有限责任公司 Positioning system and method based on radio technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1128064A (en) * 1993-11-29 1996-07-31 诺瓦特尔通讯有限公司 Pseudorandom noise ranging receiver which compensates for multipath distortion by making use of multiple correlator time delay spacing
CN1333876A (en) * 1999-01-08 2002-01-30 真实定位公司 Calibration of the Wireless Location System
CN1582401A (en) * 2001-11-09 2005-02-16 罗瑟姆公司 Location of broadcast television signals using integrated services digital broadcasting terrestrial (ISDB-T)
CN106291619A (en) * 2016-07-29 2017-01-04 中国人民解放军国防科学技术大学 A kind of aeronautical satellite inter-satellite link wireless long-period spread spectrum code signal high-performance catching method
CN107843910A (en) * 2016-09-21 2018-03-27 上海创远仪器技术股份有限公司 A kind of virtual multistation TDOA localization methods and device being suitable under complex environment

Also Published As

Publication number Publication date
CN111323803A (en) 2020-06-23
WO2020119777A1 (en) 2020-06-18

Similar Documents

Publication Publication Date Title
US11782121B2 (en) Method and device for positioning utilizing beam information
CN1114832C (en) Method and apparatus for covariance matrix estimation in a weighted least-squares location solution
CN114585084B (en) Base station selection method, device, storage medium and server
US20160249316A1 (en) Non-line-of-sight (nlos) and line-of-sight (los) classification techniques for indoor ranging
CN111323803B (en) Wireless signal processing method, device and terminal
CN108683482B (en) Method and device for estimating timing position
WO2019076210A1 (en) Time domain correlation estimation method, apparatus, and device
CN113347703A (en) Positioning method, positioning device and electronic equipment
EP3525528B1 (en) Positioning method and positioning apparatus
US7653004B2 (en) Method and system for improving time of arrival (TOA) measurements in a wireless communication network
CN112367476B (en) Exposure time determining method and device of TOF camera and terminal equipment
CN104204850B (en) Signal searching method, signal searching device, GNSS signal receiving device and information equipment terminal
CN111034251A (en) Improving quality of service in a radio network by extracting geographic coordinates from a communication session
US20230284187A1 (en) Signal sending method, signal receiving method, and apparatus
JP7806266B2 (en) Method, apparatus, and readable storage medium for transmitting ranging signals in UWB
JP3910366B2 (en) Line quality measuring device
CN104717163B (en) A kind of noise estimation method and user equipment
CN109683178B (en) Satellite navigation spoofing detection method and device
US10527708B2 (en) Estimating the location of a wireless terminal based on cooperative measurements
US9270444B2 (en) Signal detector device and signal detection method
CN119743822A (en) Arrival time ToA determining method, device, apparatus, chip and readable storage medium
CN116068592B (en) Method and device for determining half cycle jump and electronic equipment
CN117354710A (en) Carrier phase correlation measurement method, device, equipment and readable storage medium
JP2008245253A (en) Iterative pilot aided frequency offset estimation and c/i measurement for tdma signal with offset larger than nyquist frequency of the reference symbol rate
CN114745775A (en) Frequency offset estimation method and device in wireless communication system

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