CN113067601B - System and method for improving initial synchronization performance of direct sequence spread system and direct sequence spread power meter reading system - Google Patents
System and method for improving initial synchronization performance of direct sequence spread system and direct sequence spread power meter reading system Download PDFInfo
- Publication number
- CN113067601B CN113067601B CN202110320016.0A CN202110320016A CN113067601B CN 113067601 B CN113067601 B CN 113067601B CN 202110320016 A CN202110320016 A CN 202110320016A CN 113067601 B CN113067601 B CN 113067601B
- Authority
- CN
- China
- Prior art keywords
- correlation
- data
- baseband
- chip
- local
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000004364 calculation method Methods 0.000 claims abstract description 97
- 238000001228 spectrum Methods 0.000 claims abstract description 23
- 238000006243 chemical reaction Methods 0.000 claims abstract description 10
- 230000011218 segmentation Effects 0.000 claims description 21
- 108010003272 Hyaluronate lyase Proteins 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 16
- 238000005070 sampling Methods 0.000 claims description 16
- 230000007480 spreading Effects 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 claims description 9
- 230000010363 phase shift Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 7
- 239000013078 crystal Substances 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 230000000875 corresponding effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/69—Spread spectrum techniques
- H04B1/707—Spread spectrum techniques using direct sequence modulation
- H04B1/7073—Synchronisation aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
技术领域technical field
本发明属于物联网通信领域,涉及一种提高直扩系统初始同步性能的系统、方法及在直扩电力抄表系统中的应用。The invention belongs to the field of Internet of Things communication, and relates to a system and method for improving the initial synchronization performance of a direct expansion system and an application in a direct expansion power meter reading system.
背景技术Background technique
直接序列扩频(Direct Sequence Spread Spectrum,DSSS)技术,简称直扩技术,是将一位数据编码为多位序列,称为一个“码片”。例如,数据比特“0”用码片“00100111000”编码,数据比特“1”用码片“11011000111”编码,数据串“010”则编码为“00100111000”,“11011000111”。“00100111000”。Direct Sequence Spread Spectrum (DSSS) technology, referred to as direct spread technology, encodes one bit of data into a multi-bit sequence, called a "chip". For example, the data bit "0" is encoded with the chip "00100111000", the data bit "1" is encoded with the chip "11011000111", and the data string "010" is encoded as "00100111000", "11011000111". "00100111000".
直接序列扩频存在抗干扰能力强,抗多径干扰能力强,抗截获能力强,可同频工作,便于实现多址通信等优点,直接序列扩频技术在军事通信和机密工业中得到了广泛的应用,现在甚至普及到一些民用的高端产品,例如信号基站、无线电视、蜂窝手机、无线婴儿监视器等,是一种可靠安全的工业应用方案。Direct sequence spread spectrum has the advantages of strong anti-interference ability, strong anti-multipath interference ability, strong anti-interception ability, can work on the same frequency, and is easy to realize multiple access communication. Direct sequence spread spectrum technology has been widely used in military communications and confidential industries. It is a reliable and safe industrial application solution.
这里介绍一种直接序列扩频在电力抄表中使用的场景。电力抄表系统采用帧突发方式进行通信,电力抄表突发帧结构有三部分组成,即同步头(简称:SHR),物理层帧头(简称:PHR) 和物理层服务数据单元(简称:PSDU),其中SHR主要用于完成突发帧数据块搜索,频率同步,定时同步以及帧同步作用;PHR提供解析PSDU的信令;PSDU承载电力抄表的协议信令和业务数据内容。Here is a scenario where direct sequence spread spectrum is used in power meter reading. The power meter reading system uses frame burst mode for communication. The power meter reading burst frame structure consists of three parts, namely the synchronization header (abbreviation: SHR), the physical layer frame header (abbreviation: PHR) and the physical layer service data unit (abbreviation: : PSDU), in which SHR is mainly used to complete burst frame data block search, frequency synchronization, timing synchronization and frame synchronization; PHR provides signaling for parsing PSDU; PSDU carries protocol signaling and service data content of power meter reading.
在电力抄表的帧突发中,其中SHR分成两个部分,即前导(简称Preamble)和帧起始定界符 (SFD),Preamble由多个0比特组成,在不同PSDU传输速率下,推荐使用Preamble比特0的长度不同。Preamble提供了接收端进行自动增益控制,帧突发侦测,突发数据块的频率和定时初步调整。In the frame burst of power meter reading, the SHR is divided into two parts, namely the preamble (preamble for short) and the frame start delimiter (SFD). The preamble consists of multiple 0 bits. Under different PSDU transmission rates, it is recommended to Different lengths using
帧起始定界符SFD则由固定的比特序列组成,Preamble提供了接收端进行自动增益控制,帧突发侦测,突发数据块的频率和定时初步调整。帧起始定界符SFD指明Preamble结束位置以及物理层帧头PHR开始位置。The frame start delimiter SFD is composed of a fixed bit sequence. Preamble provides the receiver to perform automatic gain control, frame burst detection, and preliminary adjustment of the frequency and timing of burst data blocks. The frame start delimiter SFD indicates the end position of the Preamble and the start position of the physical layer frame header PHR.
由于电力抄表采用直接扩频方式进行传输,所以SHR的Preamble和SFD数据同样也需要进行直接扩频之后才能进行传输,在该电力抄表应用场景中,Preamble采用固定的扩频因子256 进行直接扩频传输,而SFD则采用几种固定的扩频因子进行传输。Since the power meter reading is transmitted in the direct spread spectrum mode, the Preamble and SFD data of SHR also need to be directly spread before they can be transmitted. Spread spectrum transmission, while SFD uses several fixed spreading factors for transmission.
从理论来分析,在直接扩频序列中,扩频因子越大,则性能越好,所以在帧突发数据结构中Preamble的扩频因子采用256。From the theoretical analysis, in the direct spread spectrum sequence, the larger the spreading factor, the better the performance, so the spreading factor of the Preamble in the frame burst data structure adopts 256.
但是在实际工程中,接收端在接收帧突发数据之后,采用时域相关方式进行解调,由于 Preamble前导扩频因子增大,并且发送端和接收端存在初始频率差异,这直接影响到了接收端相关结果,研究发现,当收发两端基带不存在频率偏差场景,接收端相关峰非常明显。当收发两端基带存在200Hz的频率偏差场景,接收端相关峰依然明显,但是已经存在干扰。当收发两端基带存在400Hz的频率偏差场景,接收端已经存在多个相关峰,已经不能明确判定有效的相关峰值。但是实际工程中,收发两端的基带频率偏差一般都在1000Hz以上,极限情况可以达到2000Hz,所以在扩频因子采用256的时候,直接采用256码片进行相关处理,效果肯定不理想,对硬件时钟晶振提出太高要求。However, in actual engineering, after receiving frame burst data, the receiving end uses time domain correlation method to demodulate. Due to the increase of Preamble preamble spreading factor and the initial frequency difference between the transmitting end and the receiving end, this directly affects the receiving end. The research found that when there is no frequency deviation in the baseband at both ends of the transceiver, the correlation peak at the receiving end is very obvious. When there is a frequency deviation of 200 Hz in the baseband at both ends of the transceiver, the correlation peak at the receiving end is still obvious, but there is already interference. When there is a frequency deviation of 400 Hz in the baseband at both ends of the transceiver, there are already multiple correlation peaks at the receiving end, and the effective correlation peak cannot be clearly determined. However, in actual engineering, the baseband frequency deviation at both ends of the transceiver is generally above 1000Hz, and the limit can reach 2000Hz. Therefore, when the spreading factor is 256, 256 chips are directly used for related processing, and the effect is definitely not ideal. The crystal oscillator is too demanding.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明的目的在于提供一种提高直接扩频通信技术同步精度的方法。In view of this, the purpose of the present invention is to provide a method for improving the synchronization accuracy of the direct spread spectrum communication technology.
为达到上述目的,本发明提供如下技术方案:For achieving the above object, the present invention provides the following technical solutions:
一方面,本发明提供一种提高直扩系统初始同步性能的系统,包括接收基带信号单元,相关计算单元,前导分段数据相关峰值搜索单元,频率偏差计算单元,本地一比特前导码片生成分段码片单元,分段码片生成本地基带信号单元;On the one hand, the present invention provides a system for improving the initial synchronization performance of a direct expansion system, including a baseband signal receiving unit, a correlation calculation unit, a preamble segment data correlation peak search unit, a frequency deviation calculation unit, and a local one-bit preamble chip generation component. a segment chip unit, the segmented chip generates a local baseband signal unit;
所述接收基带信号单元接收来自射频单元的数据,完成自动增益控制,进行模数转化,形成数字基带数据;The receiving baseband signal unit receives data from the radio frequency unit, completes automatic gain control, performs analog-to-digital conversion, and forms digital baseband data;
所述本地一比特前导码片生成分段码片单元根据直扩系统中的扩频码和扩频因子的要求,生成本地前导码片序列,根据需要将码片序列分成多段码片序列;The local one-bit preamble chip generating segmented chip unit generates a local preamble chip sequence according to the requirements of the spreading code and the spreading factor in the direct-spreading system, and divides the chip sequence into a multi-segment chip sequence as required;
所述分段码片生成本地基带信号单元将已经分段好的码片序列,进行调制处理,生成对应的基带数据;The segmented chip generating local baseband signal unit performs modulation processing on the segmented chip sequence to generate corresponding baseband data;
所述相关计算单元对本地前导分段码片基带数据和接收基带信号进行相关计算,每接收一个码片符号数据,进行一次相关计算;The correlation calculation unit performs correlation calculation on the local preamble segmented chip baseband data and the received baseband signal, and performs a correlation calculation every time one chip symbol data is received;
所述前导分段数据相关峰值搜索单元用于对相关计算单元计算结果进行搜索,得到前导比特的开始和结束位置;The preamble segmented data correlation peak search unit is used to search the calculation result of the correlation calculation unit to obtain the start and end positions of the preamble bits;
所述频率偏差计算单元使用相关计算单元得到的相关似然值进行频率估算,得到频率偏差。The frequency deviation calculation unit performs frequency estimation using the correlation likelihood value obtained by the correlation calculation unit to obtain the frequency deviation.
进一步,所述频率偏差计算单元根据确定的多个相关值,首先计算出相邻两个相关峰的相位差,然后计算两个相邻相关峰之间的时间间隔,最后计算出接收端和发射端之间基带的频率偏差,进行基带频率调整。Further, the frequency deviation calculation unit first calculates the phase difference between two adjacent correlation peaks according to the determined multiple correlation values, then calculates the time interval between the two adjacent correlation peaks, and finally calculates the receiving end and the transmitting end. Baseband frequency deviation between basebands, and baseband frequency adjustment.
另一方面,本发明提供一种提高直扩系统初始同步性能的方法,包括以下步骤:On the other hand, the present invention provides a method for improving the initial synchronization performance of a direct expansion system, comprising the following steps:
步骤1:接收端根据扩频因子和扩频码本地生成一个前导比特的码片序列,令前导扩频因子为N,则一个比特前导数据生成N个码片序列数据;Step 1: The receiving end locally generates a chip sequence of preamble bits according to the spreading factor and the spreading code, so that the preamble spreading factor is N, then one bit of preamble data generates N chip sequence data;
步骤2:将生成的一比特前导码片序列分成K段码片数据,亦称分段码片序列,每个分段码片数据的长度记为S,S满足S=(N/K)关系,然后将分段码片序列进行调制处理,形成本地前导基带信号;令接收端采用m倍码片速率对接收到基带信号进行抽样,则对本地分段码片序列调制信号,同样进行m倍升采样处理,即对本地分段码片序列调制信号中每个数据进行m次重复;Step 2: Divide the generated one-bit preamble chip sequence into K-segment chip data, also known as segmented chip sequence, the length of each segmented chip data is denoted as S, and S satisfies the relationship of S=(N/K) , and then modulate the segmented chip sequence to form a local preamble baseband signal; let the receiver use m times the chip rate to sample the received baseband signal, then the local segmented chip sequence modulation signal, the same m times Upsampling processing, that is, repeating each data in the local segmented chip sequence modulation signal m times;
步骤3:接收帧突发数据,形成基带数据流,基带数据流是基带信号m倍升采样;Step 3: Receive frame burst data to form a baseband data stream, and the baseband data stream is m times up-sampling of the baseband signal;
步骤4:接收到的基带数据流和本地分段码片序列调制信号分别进行相关计算;接收端每接收一个采样数据,则和本地分段码片序列调制信号一次相关计算,则每次得到K个相关峰值;Step 4: Correlation calculation is performed on the received baseband data stream and the local segmented chip sequence modulated signal respectively; each time the receiver receives a sampled data, a correlation calculation is performed with the local segmented chip sequence modulated signal, and K is obtained each time. correlation peaks;
步骤5:接收端对相关峰进行搜索,如果存在K个明显的相关峰值,则表明接收端已经搜索到帧突发中一个比特0的前导基带信号;Step 5: the receiving end searches for the correlation peak, and if there are K obvious correlation peaks, it indicates that the receiving end has searched for a leading baseband signal of
步骤6:接收端根据相关峰的位置,确定前导比特的开始和结束位置,然后使用相关峰的相关值计算出相邻两个相关峰值之间的相位差,并且使用两个相关峰之间的位置差计算出两个相关峰之间时间长度,计算出接收端和发送端之间的基带信号频率差;Step 6: The receiving end determines the start and end positions of the leading bits according to the position of the correlation peak, then uses the correlation value of the correlation peak to calculate the phase difference between two adjacent correlation peaks, and uses the position between the two correlation peaks The difference calculates the time length between the two correlation peaks, and calculates the baseband signal frequency difference between the receiving end and the transmitting end;
步骤7:接收端使用步骤6计算得到的基带信号频率差对接收基带信号进行频率调整。Step 7: The receiving end uses the baseband signal frequency difference calculated in
再一方面,本发明提供一种提高直扩电力抄表系统初始同步性能的系统,所述直扩电力抄表系统采用帧突发方式进行传输,每个突发数据块由SHR,PHR和PSDU组成,采用偏移四相相移键控OQPSK调制方式进行调制;In another aspect, the present invention provides a system for improving the initial synchronization performance of a direct expansion power meter reading system, the direct expansion power meter reading system uses frame burst mode for transmission, and each burst data block is composed of SHR, PHR and PSDU. It is composed of offset quadrature phase shift keying OQPSK modulation mode for modulation;
电力抄表接收前导由电力抄表信号接收模块、本地前导码片数据生成模块、本地前导基带数据生成模块、前导相关计算模块,前导分段数据相关峰值搜索模块和频率同步计算模块组成;The power meter reading reception preamble is composed of a power meter reading signal receiving module, a local preamble chip data generation module, a local preamble baseband data generation module, a preamble correlation calculation module, a preamble segment data correlation peak search module and a frequency synchronization calculation module;
电力抄表信号接收模块,接收端从射频前端接收到的信号,进行下变频处理,然后进行模数转化,在接收端采用8倍码片速率升采样方式处理,得到8倍速的I/Q两路基带数字信号;In the power meter reading signal receiving module, the signal received by the receiving end from the RF front-end is subjected to down-conversion processing, and then analog-to-digital conversion is performed. At the receiving end, the upsampling method of 8 times the chip rate is used to obtain 8 times the speed of the I/Q two. Road baseband digital signal;
本地前导码片数据生成模块,前导采用固定扩频因子256,前导一个比特0,扩频成256个码片序列,然后采用16段或8段两种方式对码片进行分段处理,形成两种基带码片分段数据;Local preamble chip data generation module, the preamble adopts a fixed spreading factor of 256, and a leading bit of 0 is used to spread the spectrum into 256 chip sequences, and then use 16 or 8 segments to segment the chips to form two baseband chip segment data;
本地前导基带数据生成模块,在接收端本地将基带码片分段数据进行OQPSK调制,形成I和Q两路数据,分段前导基带数据进行8倍升采样,在16分段的情况下,生成16组 16x8的分段前导基带数据;在8分段的情况下,生成8组32x8的分段前导基带数据;The local preamble baseband data generation module performs OQPSK modulation on the baseband chip segmented data locally at the receiving end to form I and Q two-way data, and the segmented preamble baseband data is upsampled by 8 times, and in the case of 16 segments, generates 16 groups of 16x8 segmented preamble baseband data; in the case of 8 segments, generate 8 groups of 32x8 segmented preamble baseband data;
前导相关计算模块,完成接收到的基带数字信号和分段前导调制基带数据进行相关计算,每收到一个基带数字信号采样值,则进行一次相关计算,得到16个或8个相关值;The preamble correlation calculation module completes the correlation calculation between the received baseband digital signal and the segmented preamble modulated baseband data. Each time a baseband digital signal sample value is received, a correlation calculation is performed to obtain 16 or 8 correlation values;
前导分段数据相关峰搜索模块,对前导相关模块计算得到16个或8个相关值进行求模计算,得个16个或8个相关峰值,如果16个或8个相关峰值大于一定门限,则确定接收端搜索到一个有效前导0比特基带信号;The correlation peak search module of the leading segmented data, performs modulo calculation on the 16 or 8 correlation values obtained by the leading correlation module, and obtains 16 or 8 correlation peaks. If the 16 or 8 correlation peaks are greater than a certain threshold, then Determine that the receiving end searches for a valid leading 0-bit baseband signal;
频率同步计算模块,根据确定的16或8个相关值,首先计算出相邻两个相关峰的相位差,然后计算两个相邻相关峰之间的时间间隔,最后计算出接收端和发射端之间基带的频率偏差,用于电力抄表信号接收模块进行基带频率调整。The frequency synchronization calculation module, according to the determined 16 or 8 correlation values, first calculates the phase difference between two adjacent correlation peaks, then calculates the time interval between the two adjacent correlation peaks, and finally calculates the difference between the receiving end and the transmitting end. The frequency deviation between basebands is used for baseband frequency adjustment by the power meter reading signal receiving module.
进一步,本地分段原理包括以下内容:Further, the local segmentation principle includes the following:
首先采用收到256×8个I/Q采样数据和后续收到256×8个I/Q采样数据进行相关计算,如果存在明显相关峰值,则表明接收端搜索到两个前导0比特的码片开始和结束位置;First, use the received 256×8 I/Q sampled data and the subsequent received 256×8 I/Q sampled data for correlation calculation. If there is an obvious correlation peak, it means that the receiver has searched for two chips with leading 0 bits. start and end positions;
接收端接收256×8个I/Q数据,本地生成的256码片I/Q基带数据,基带数据总长度为256×8,第一次分段分成16段本地基带信号,每段基带信号长度为16×8,用于频率粗调;The receiving end receives 256 × 8 I/Q data, locally generated 256-chip I/Q baseband data, the total length of the baseband data is 256 × 8, the first segment is divided into 16 local baseband signals, and the length of each baseband signal is is 16×8, used for coarse frequency adjustment;
接收端接收256x8个I/Q数据,本地生成的256码片I/Q基带数据,基带数据总长度为 256x8,第二次分段分成8段本地基带信号,本地每段基带信号长度为32x8,用于频率精调;The receiving end receives 256x8 I/Q data, locally generated 256-chip I/Q baseband data, the total length of the baseband data is 256x8, the second segment is divided into 8 local baseband signals, and the length of each local baseband signal is 32x8, For frequency fine tuning;
完成频率调整,过程中采用256x8长度的前导码片基带信号和接收信号直接相关计算,计算出相关峰值,进行第一次模糊相位调整,再采用相同的方法进行第二次相位调整。To complete the frequency adjustment, the 256x8 length preamble baseband signal and the received signal are used for direct correlation calculation in the process, the correlation peak is calculated, the first fuzzy phase adjustment is carried out, and the second phase adjustment is carried out by the same method.
进一步,相关计算包括以下内容:Further, relevant calculations include the following:
前导比特0生成的256个码片,生成的I/Q两路数据,采用复数方式进行表示,实部表示I路,虚部表示Q路,则发送端发送的基带数据表示为:The 256 chips generated by the leading
(a1+b1j),(a2+b2j),...,(a256+b256j)(a 1 +b 1 j),(a 2 +b 2 j),...,(a 256 +b 256 j)
发送端发送的基带信号采用极坐标方式表示为:The baseband signal sent by the sender is expressed in polar coordinates as:
本地生成的基带信号表示为:The locally generated baseband signal is represented as:
相关计算,记为两个信号的共轭相关,再累加处理,采用公式表示为:The correlation calculation is recorded as the conjugate correlation of the two signals, and then accumulated and processed, which is expressed as:
进一步,频率偏差计算方法包括:Further, the frequency deviation calculation method includes:
根据相关计算得到的xCorr值,每次计算都得到bejΨ,绝对值abs(bejΨ)即为相关峰值,Ψ为相关相位,两个相邻相关峰的相关差ΔΨ为收发两端的相位偏差,Δt表示两个相邻相关峰的时间长度;According to the xCorr value obtained by the correlation calculation, be jΨ is obtained in each calculation, the absolute value abs(be jΨ ) is the correlation peak value, Ψ is the correlation phase, and the correlation difference between two adjacent correlation peaks ΔΨ is the phase deviation between the two ends of the transceiver, Δt represents the time length of two adjacent correlation peaks;
2πΔfΔt=ΔΨ2πΔfΔt=ΔΨ
即收发两端基带信号频率偏差Δf表示为:That is, the frequency deviation Δf of the baseband signal at both ends of the transceiver is expressed as:
Δf=ΔΨ/(2πΔt)。Δf=ΔΨ/(2πΔt).
在计算得到频率偏差后,还消除相位模糊,即在接收信号上乘以e -jΨ。After the frequency offset is calculated, the phase ambiguity is also eliminated, that is, the received signal is multiplied by e -jΨ .
进一步,电力抄表的帧前导搜索过程包括:Further, the frame preamble search process for power meter reading includes:
电力抄表系统中帧搜索或帧头搜索在接收端完成,接收端连续收到来自发送端的帧突发数据,经过射频前端,下变频,最后通过8倍码片速率进行采样得到I/Q两路基带信号;In the power meter reading system, frame search or frame header search is completed at the receiving end. The receiving end continuously receives the frame burst data from the transmitting end, goes through the RF front-end, down-converts the frequency, and finally obtains the I/Q two data by sampling at 8 times the chip rate. road baseband signal;
本地前导码片分段方式一为:本地前导一个0比特,根据直扩电力抄表规范要求,生成 256个码片,将256码片序列数据分成16段,每段长度为16的分段码片序列;根据直扩电力抄表规范要求采用OQPSK进行调制,形成16个I/Q两个通道的本地基带数据;最后将 16个I/Q本地基带数据继续进行8倍升抽样处理;The first local preamble chip segmentation method is: the local preamble is a 0-bit, according to the requirements of the direct expansion power meter reading specification, 256 chips are generated, and the 256-chip sequence data is divided into 16 segments, each segment is 16 segmented codes with a length of 16. Chip sequence; according to the requirements of the direct expansion power meter reading specification, OQPSK is used for modulation to form 16 I/Q two-channel local baseband data; finally, the 16 I/Q local baseband data is continuously processed by 8 times up sampling;
使用16段分段基带数据信号和接收到的基带信号进行相关处理,每接收到一个抽样值,则计算一次16段的相关计算,得到16个相关峰值;Use the 16-segment segmented baseband data signal and the received baseband signal to perform correlation processing, and each time a sample value is received, a 16-segment correlation calculation is calculated to obtain 16 correlation peaks;
使用计算得到的16个相关值,初步计算出基带信号频率偏差,然后使用该频率偏差对接收到基带信号进行频率补偿;Using the calculated 16 correlation values, initially calculate the frequency deviation of the baseband signal, and then use the frequency deviation to perform frequency compensation on the received baseband signal;
本地前导码片分段方式二为:本地前导一个0比特,生成256个码片,将256码片序列数据分成8段,每段长度为32的分段码片序列,采用OQPSK进行调制,形成8个I/Q两个通道的本地基带数据;最后将8个I/Q本地基带数据继续进行8倍升抽样处理;The second local preamble chip segmentation method is: the local preamble is a 0-bit, generating 256 chips, dividing the 256-chip sequence data into 8 segments, and each segment has a length of 32. The segmented chip sequence is modulated by OQPSK to form The local baseband data of 8 I/Q two channels; finally, the 8 I/Q local baseband data will continue to be sampled by 8 times upsampling;
完成方式一和方式二两种本地基带信号分段进行相关计算和频率调整之后,采用非分段基带信号进行相关计算,得到一个相关值,使用该相关值的相位进行相位补偿。After completing the correlation calculation and frequency adjustment of the two local baseband signals in the first and second modes, the non-segmented baseband signal is used for the correlation calculation to obtain a correlation value, and the phase of the correlation value is used for phase compensation.
本发明的有益效果在于:在直扩系统中,并且采用帧突发方式进行发送,由于在收发两端存在时钟频率偏差,所以导致了收发两端在基带信号上亦存在频率偏差,如果之间采用较长的扩频序列直接对接收到的信号进行相关计算,性能比较差,频率偏差到一定范围则无法使用,导致接收端无法搜索到来自发送端的帧突发信号。The beneficial effects of the present invention are: in the direct expansion system, and the frame burst mode is used for transmission, because there is a clock frequency deviation at the two ends of the transceiver, the baseband signal at the two ends of the transceiver also has a frequency deviation. Using a long spread spectrum sequence to directly perform correlation calculation on the received signal, the performance is relatively poor, and the frequency deviation can not be used when the frequency deviation reaches a certain range, so that the receiving end cannot search for the frame burst signal from the transmitting end.
鉴于此,本发明将较长的扩频码片序列,分段成较短的码片序列,使用较短的码片序列生成本地基带信号和接收到的基带信号进行相关计算,抑制了收发两端存在频率偏差对相关性能影响的问题。本发明使得收发接收机可以不使用高精度的晶振,降低了设备成本,通过软件方法依然可以达到很好的性能。In view of this, the present invention divides the longer spread spectrum chip sequence into shorter chip sequences, and uses the shorter chip sequence to generate the local baseband signal and the received baseband signal for correlation calculation, thereby suppressing the transmission and reception There is a problem that the frequency deviation affects the related performance at the terminal. The invention makes the transceiver and receiver do not use high-precision crystal oscillators, reduces equipment cost, and can still achieve good performance through software methods.
本发明的其他优点、目标和特征在某种程度上将在随后的说明书中进行阐述,并且在某种程度上,基于对下文的考察研究对本领域技术人员而言将是显而易见的,或者可以从本发明的实践中得到教导。本发明的目标和其他优点可以通过下面的说明书来实现和获得。Other advantages, objects, and features of the present invention will be set forth in the description that follows, and will be apparent to those skilled in the art based on a study of the following, to the extent that is taught in the practice of the present invention. The objectives and other advantages of the present invention may be realized and attained by the following description.
附图说明Description of drawings
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作优选的详细描述,其中:In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be preferably described in detail below with reference to the accompanying drawings, wherein:
图1为分段码片工作原理图;Fig. 1 is the working principle diagram of segmented chip;
图2为直接扩频序列前导分段示意图;Fig. 2 is a schematic diagram of a direct spreading sequence preamble segment;
图3为分段码片工作流程;Fig. 3 is a segmented chip workflow;
图4为直扩系统同步头发送流程;Fig. 4 is the synchronous head sending process of direct expansion system;
图5为OQPSK调制示意图;Fig. 5 is a schematic diagram of OQPSK modulation;
图6为电力抄表初始同步原理图;Figure 6 is a schematic diagram of the initial synchronization of power meter reading;
图7为电力抄表本地Preamble分段相关原理图;Fig. 7 is the relevant schematic diagram of the local Preamble subsection of power meter reading;
图8为接收端进行相关计算原理;Fig. 8 is the relevant calculation principle of the receiving end;
图9为电力抄表前导同步过程;Fig. 9 is the preamble synchronization process of electric meter reading;
图10为不存在频率偏差的场景,其中(a)为没有分段进行相关结果图,(b)16分段进行相关结果图,(c)为8分段进行相关结果图;Fig. 10 is a scene without frequency deviation, wherein (a) is a graph of correlation results without segmentation, (b) is a graph of correlation results with 16 segments, and (c) is a graph of correlation results with 8 segments;
图11为收发基带信号存在200Hz频率偏差场景,其中(a)为没有分段进行相关结果图, (b)16分段进行相关结果图,(c)为8分段进行相关结果图;Fig. 11 is a scene of 200Hz frequency deviation in the baseband signal receiving and transmitting, wherein (a) is a graph of the correlation result without segmentation, (b) is a graph of the correlation result of 16 segments, and (c) is a graph of the correlation result of 8 segments;
图12为收发基带信号存在400Hz频率偏差场景,其中(a)为没有分段进行相关结果图, (b)16分段进行相关结果图,(c)为8分段进行相关结果图;Fig. 12 is the scene that 400Hz frequency deviation exists in transmitting and receiving baseband signals, wherein (a) is the result of correlation without segmentation, (b) is the result of correlation with 16 segments, and (c) is the result of correlation with 8 segments;
图13为收发基带信号存在2500Hz频率偏差场景,其中(a)为没有分段进行相关结果图, (b)16分段进行相关结果图,(c)为8分段进行相关结果图。Figure 13 shows a scenario where the baseband signal is received and received with a frequency deviation of 2500 Hz, where (a) is the result of correlation without segmentation, (b) is the result of correlation with 16 segments, and (c) is the result of correlation with 8 segments.
具体实施方式Detailed ways
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。The embodiments of the present invention are described below through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the drawings provided in the following embodiments are only used to illustrate the basic idea of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
其中,附图仅用于示例性说明,表示的仅是示意图,而非实物图,不能理解为对本发明的限制;为了更好地说明本发明的实施例,附图某些部件会有省略、放大或缩小,并不代表实际产品的尺寸;对本领域技术人员来说,附图中某些公知结构及其说明可能省略是可以理解的。Among them, the accompanying drawings are only used for exemplary description, and represent only schematic diagrams, not physical drawings, and should not be construed as limitations of the present invention; in order to better illustrate the embodiments of the present invention, some parts of the accompanying drawings will be omitted, The enlargement or reduction does not represent the size of the actual product; it is understandable to those skilled in the art that some well-known structures and their descriptions in the accompanying drawings may be omitted.
本发明实施例的附图中相同或相似的标号对应相同或相似的部件;在本发明的描述中,需要理解的是,若有术语“上”、“下”、“左”、“右”、“前”、“后”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此附图中描述位置关系的用语仅用于示例性说明,不能理解为对本发明的限制,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there are terms “upper”, “lower”, “left” and “right” , "front", "rear" and other indicated orientations or positional relationships are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the indicated device or element must be It has a specific orientation, is constructed and operated in a specific orientation, so the terms describing the positional relationship in the accompanying drawings are only used for exemplary illustration, and should not be construed as a limitation of the present invention. situation to understand the specific meaning of the above terms.
请参阅图1~图13,根据实际工程中存在的问题,本发明提出了一种直接序列扩频系统中前导码的解析方法,其基本方法就是将本地一个比特的前导扩频码片分成多段码片序列,简称为分段码片序列,使用每个分段码片序列形成本地基带信号和接收到的基带信号进行相关计算,然后使用相关峰值之间的相位差计算出频率偏差,使用该频率偏差对接收信号进行频率补偿。Please refer to FIG. 1 to FIG. 13. According to the problems in practical engineering, the present invention proposes a method for analyzing the preamble in the direct sequence spread spectrum system. The basic method is to divide the local one-bit preamble spread spectrum chip into multiple segments. The chip sequence, abbreviated as segmented chip sequence, uses each segmented chip sequence to form the local baseband signal and the received baseband signal for correlation calculation, and then uses the phase difference between the correlation peaks to calculate the frequency deviation, using this The frequency offset performs frequency compensation on the received signal.
本发明由接收基带信号单元,相关计算单元,前导分段数据相关峰值搜索单元,频率偏差计算单元,本地一比特前导码片生成分段码片单元,分段码片生成本地基带信号单元组成。如图1所示。The invention consists of a receiving baseband signal unit, a correlation calculation unit, a preamble segmented data correlation peak search unit, a frequency deviation calculation unit, a local one-bit preamble chip generating a segmented chip unit, and a segmented chip generating a local baseband signal unit. As shown in Figure 1.
其中接收基带信号单元接收来自射频单元的数据,完成自动增益控制,进行模数转化,形成数字基带数据;本地一比特前导码片生成分段码片单元根据直扩系统中的扩频码和扩频因子的要求,生成本地前导码片序列,根据需要将码片序列分成多段码片序列;分段码片生成本地基带信号单元将已经分段好的码片序列,进行调制处理,生成对应的基带数据;相关计算单元完成本地前导分段码片基带数据和接收基带信号进行相关计算,每接收一个码片符号数据,进行一次相关计算;前导分段数据相关峰值搜索单元完成相关计算单元计算结果,搜索得到前导比特的开始和结束位置;频率偏差计算单元使用相关计算单元得到的相关似然值进行频率估算,得到频率偏差。The baseband signal receiving unit receives data from the radio frequency unit, completes automatic gain control, performs analog-to-digital conversion, and forms digital baseband data; the local one-bit preamble chip generates segmented chip units according to the spreading code and spreading code in the direct spread system. According to the requirements of the frequency factor, the local preamble chip sequence is generated, and the chip sequence is divided into multi-segment chip sequences according to the needs; the segmented chip generation local baseband signal unit modulates the segmented chip sequence to generate the corresponding baseband data; the correlation calculation unit completes the correlation calculation between the local preamble segmented chip baseband data and the received baseband signal, and performs a correlation calculation each time a chip symbol data is received; the preamble segmented data correlation peak search unit completes the correlation calculation unit calculation result , the start and end positions of the leading bits are obtained by searching; the frequency deviation calculation unit uses the correlation likelihood value obtained by the correlation calculation unit to perform frequency estimation to obtain the frequency deviation.
为了进一步说明本发明中一个前导比特数据码片的分段方法,具体如图2所示。假设在该直扩系统中,前导扩频因子为N,则一个前导比特直扩之后将形成N个码片的基带数据。将N个码片数据分成K个分段码片序列,每个分段码片序列长度为S个码片组成。其中N,K和S满足N=KxS关系。In order to further illustrate the method for segmenting a preamble bit data chip in the present invention, it is specifically shown in FIG. 2 . Assuming that in this direct spreading system, the preamble spreading factor is N, then one preamble bit will form baseband data of N chips after direct spreading. The N chip data is divided into K sub-chip sequences, each sub-chip sequence is composed of S chips. Among them, N, K and S satisfy the relationship of N=KxS.
本发明的实施流程Implementation process of the present invention
步骤1:接收端根据扩频因子和扩频码本地生成一个前导比特的码片序列,假设前导扩频因子为N,则一个比特前导数据生成N个码片序列数据。如图3中1步。Step 1: The receiving end locally generates a chip sequence of preamble bits according to the spreading factor and the spreading code. Assuming that the preamble spreading factor is N, one bit of preamble data generates N chip sequence data.
步骤2:将生成的一比特前导码片序列分成K段码片数据,亦称分段码片序列,每个分段码片数据的长度记为S,S满足S=(N/K)关系,然后将分段码片序列进行调制处理,形成本地前导基带信号。假设接收端采用m倍码片速率对接收到基带信号进行抽样,则对本地分段码片序列调制信号,同样进行m倍升采样处理,即对本地分段码片序列调制信号中每个数据进行m次重复。如图3中2步。Step 2: Divide the generated one-bit preamble chip sequence into K-segment chip data, also known as segmented chip sequence, the length of each segmented chip data is denoted as S, and S satisfies the relationship of S=(N/K) , and then modulate the segmented chip sequence to form a local preamble baseband signal. Assuming that the receiving end uses m times the chip rate to sample the received baseband signal, then the local segmented chip sequence modulation signal is also subjected to m times up-sampling processing, that is, each data in the local segmented chip sequence modulated signal is processed. Perform m repetitions.
步骤3:接收帧突发数据,形成基带数据流,基带数据流是基带信号m倍升采样。如图 3中3步。Step 3: Receive frame burst data to form a baseband data stream, and the baseband data stream is m times up-sampling of the baseband signal.
步骤4:接收到的基带数据流和本地分段码片序列调制信号分别进行相关计算。接收端每接收一个采样数据,则和本地分段码片序列调制信号一次相关计算,则每次得到K个相关峰值。如图3中4步。Step 4: Correlation calculation is performed on the received baseband data stream and the local segmented chip sequence modulation signal respectively. Each time the receiving end receives a sampled data, a correlation calculation is performed with the local segmented chip sequence modulated signal, and K correlation peaks are obtained each time.
步骤5:接收端对相关峰进行搜索,如果存在K个明显的相关峰值,则表明接收端已经搜索到帧突发中一个比特0的前导基带信号。如图3中5步。Step 5: The receiving end searches for correlation peaks. If there are K obvious correlation peaks, it indicates that the receiving end has searched for a preamble baseband signal with a bit of 0 in the frame burst.
步骤6:接收端根据相关峰的位置,确定前导比特的开始和结束位置,然后使用相关峰的相关值计算出相邻两个相关峰值之间的相位差,并且使用两个相关峰之间的位置差计算出两个相关峰之间时间长度,计算出接收端和发送端之间的基带信号频率差。如图3中6步。Step 6: The receiving end determines the start and end positions of the leading bits according to the position of the correlation peak, then uses the correlation value of the correlation peak to calculate the phase difference between two adjacent correlation peaks, and uses the position between the two correlation peaks The difference calculates the time length between the two correlation peaks, and calculates the baseband signal frequency difference between the receiver and the transmitter.
步骤7:接收端使用步骤6计算得到的基带信号频率差对接收基带信号进行频率调整。如图3中7步。Step 7: The receiving end uses the baseband signal frequency difference calculated in
为了更加清楚本发明在实际工程中应用,将采用在直扩电力抄表系统中进行说明。正如技术背景中介绍,直扩电力抄表系统采用帧突发方式进行传输,每个突发数据块由SHR,PHR 和PSDU组成。该系统采用偏移四相相移键控(简称:OQPSK)调制方式进行调制。其中的SHR 部分的发送链路如图4所示。In order to make it clearer that the present invention is applied in practical engineering, it will be described in the direct expansion power meter reading system. As introduced in the technical background, the direct expansion power meter reading system adopts frame burst mode for transmission, and each burst data block is composed of SHR, PHR and PSDU. The system adopts offset quadrature phase shift keying (abbreviation: OQPSK) modulation mode for modulation. The transmission chain of the SHR part is shown in Figure 4.
直扩电力抄表系统的前导链路和电力抄表同步头链路相同。同步数据准备好之后,分别经过差分编码、DSSS扩频、组帧、OQPSK调制,然后通过射频发送出去。其中,对于前导 Preamble比特,前导比特都是0比特组成,所以差分编码对于前导Preamble比特是没有作用。 DSSS扩频则采用电力抄表系统确定的扩频因子256的扩频码进行扩频。扩频码序列经过 OQPSK调制之后,提交射频前端将含有前导帧突发数据发送出去。其中OQPSK调制方式,码片序列到I和Q两个通道映射规则如图5所示。The leading link of the direct expansion power meter reading system is the same as the power meter reading synchronization head link. After the synchronization data is ready, it undergoes differential coding, DSSS spread spectrum, framing, OQPSK modulation, and then sent out through radio frequency. Among them, for the leading Preamble bits, the leading bits are composed of 0 bits, so the differential coding has no effect on the leading Preamble bits. DSSS spread spectrum uses the spread spectrum code with the spreading factor 256 determined by the power meter reading system to spread the spectrum. After the spreading code sequence is modulated by OQPSK, the RF front end sends out the burst data containing the preamble frame. Among them, the OQPSK modulation mode and the mapping rules of the chip sequence to the I and Q channels are shown in Figure 5.
在本实施例中,关于前导Preamble接收处理模块如图6所示,即电力抄表初始同步原理图。电力抄表接收前导由电力抄表信号接收模块、本地前导码片数据生成模块、本地前导基带数据生成模块、前导相关计算模块,前导分段数据相关峰值搜索模块和频率同步计算模块组成。In this embodiment, the preamble receiving and processing module is shown in Figure 6, that is, the schematic diagram of the initial synchronization of the power meter reading. The power meter reading reception preamble consists of a power meter reading signal receiving module, a local preamble chip data generation module, a local preamble baseband data generation module, a preamble correlation calculation module, a preamble segment data correlation peak search module and a frequency synchronization calculation module.
其中电力抄表信号接收模块,接收端从射频前端接收到的信号,进行下变频处理,然后进行模数转化(A/D变化),为了提高解调性能,在接收端采用8倍码片速率升采样方式处理,即从射频接收到的帧突发数据,采用码片时钟的8倍进行采样,从而保证接收端接收信号的信号质量,最终得到8倍速的I/Q两路基带数字信号。Among them, in the power meter reading signal receiving module, the signal received by the receiving end from the RF front-end is subjected to down-conversion processing, and then analog-to-digital conversion (A/D change) is performed. In order to improve the demodulation performance, the receiving end adopts 8 times the chip rate. Up-sampling processing, that is, the frame burst data received from the radio frequency is sampled by 8 times the chip clock, so as to ensure the signal quality of the signal received by the receiving end, and finally obtain 8 times the speed of the I/Q two-way baseband digital signal.
本地前导码片数据生成模块,根据电力抄表系统要求,采用前导中0比特定义的扩频码形成比特0的扩频序列。在本实施例中,前导采用固定扩频因子256。所以前导一个比特0,扩频成256个码片序列。然后对码片进行分段处理,在该实施例中,采用两种分段方式,即16段或8段两种方式,形成两种基带码片分段数据。The local preamble chip data generation module, according to the requirements of the power meter reading system, uses the spreading code defined by the 0 bit in the preamble to form a spreading sequence of
本地前导基带数据生成模块,在接收端本地将基带码片分段数据进行OQPSK调制,形成I和Q两路数据,亦称为分段前导基带数据,如图5所示。在该模块中,由在电力抄表信号接收模块中,采用了码片速率8倍进行抽样,所以分段前导基带数据同样进行8倍升采样。在16分段的情况下,生成了16组16x8的分段前导基带数据。在8分段的情况下,生成了8 组32x8的分段前导基带数据。The local preamble baseband data generation module performs OQPSK modulation on the baseband chip segment data locally at the receiving end to form I and Q two-way data, also called segmented preamble baseband data, as shown in Figure 5. In this module, in the power meter reading signal receiving module, the chip rate is 8 times for sampling, so the segmented preamble baseband data is also up-sampled by 8 times. In the case of 16 segments, 16 sets of 16x8 segment preamble baseband data are generated. In the case of 8 segments, 8 sets of 32x8 segmented preamble baseband data are generated.
前导相关计算模块,完成接收到的基带数字信号和分段前导调制基带数据进行相关计算,每收到一个基带数字信号采样值,则进行一次相关计算,得到16或是8个相关值。The preamble correlation calculation module completes the correlation calculation between the received baseband digital signal and the segmented preamble modulation baseband data. Each time a baseband digital signal sample value is received, a correlation calculation is performed to obtain 16 or 8 correlation values.
前导分段数据相关峰搜索模块,对前导相关模块计算得到16个或8个相关值进行求模计算,得个16个或8个相关峰值,如果16个或8个相关峰值大于一定门限,则确定接收端搜索到一个有效前导0比特基带信号。The correlation peak search module of the leading segmented data, performs modulo calculation on the 16 or 8 correlation values obtained by the leading correlation module, and obtains 16 or 8 correlation peaks. If the 16 or 8 correlation peaks are greater than a certain threshold, then Make sure that the receiving end searches for a valid leading 0-bit baseband signal.
频率同步计算模块,根据确定的16或8个相关值,首先计算出相邻两个相关峰的相位差,然后计算两个相邻相关峰之间的时间间隔,最后计算出接收端和发射端之间基带的频率偏差,用于电力抄表信号接收模块进行基带频率调整。The frequency synchronization calculation module, according to the determined 16 or 8 correlation values, first calculates the phase difference between two adjacent correlation peaks, then calculates the time interval between the two adjacent correlation peaks, and finally calculates the difference between the receiving end and the transmitting end. The frequency deviation between basebands is used for baseband frequency adjustment by the power meter reading signal receiving module.
本实施例中,采用两种分段进行相关的原理,在直扩电力抄表系统中,由于Preamble前导采用扩频因子256,所以在收发两端还没有进行基带频率同步的情况下,直接采用256码片序列形成的OQPSK基带信号进行相关处理。由于在物联网中,由于考虑到设备成本,基本不能选择高精度的晶振,所以收发设备之间频率偏差比较大。导致了在工程实现时候不能直接使用256码片形成基带信号直接进行相关计算。In this embodiment, two kinds of subsections are used for correlation. In the direct-spreading power meter reading system, since the preamble preamble adopts a spreading factor of 256, when the baseband frequency synchronization has not been performed at both ends of the transceiver, it is directly used. The OQPSK baseband signal formed by the 256-chip sequence is processed for correlation. Because in the Internet of Things, due to the consideration of equipment cost, it is basically impossible to choose a high-precision crystal oscillator, so the frequency deviation between the transceivers is relatively large. As a result, it is not possible to directly use 256 chips to form a baseband signal for direct correlation calculation during engineering implementation.
第一:在本实施例中,由于存在至少8个0比特作为前导数据,首先采用接收到基带数据前后进行相关计算,即采用收到256x8个I/Q采样数据和后续收到256x8个I/Q采样数据进行相关计算。如果存在明显相关峰值,则表明接收端搜索到两个前导0比特的码片开始和结束位置。如图7中(1)标注。First: In this embodiment, since there are at least 8 0 bits as the preamble data, the correlation calculation is performed before and after the baseband data is received, that is, the received 256x8 I/Q sampling data and the subsequent 256x8 I/Q sampling data are used. Q-sampled data for correlation calculations. If there is an obvious correlation peak, it indicates that the receiver has searched for the start and end positions of two leading 0-bit chips. (1) marked in Figure 7.
第二:接收端接收256x8个I/Q数据(8倍码片时钟速率抽样),本地生成的256码片I/Q基带数据,基带数据总长度为256x8,第一次分段分成16段本地基带信号,即每段基带信号长度为16x8。如图7中(2)标注。用于频率粗调。Second: the receiving end receives 256x8 I/Q data (8 times the chip clock rate sampling), locally generated 256-chip I/Q baseband data, the total length of the baseband data is 256x8, the first segment is divided into 16 local segments Baseband signal, that is, the length of each baseband signal is 16x8. (2) in Figure 7. Used for coarse frequency adjustment.
第三:接收端接收256x8个I/Q数据(8倍码片时钟速率抽样),本地生成的256码片I/Q基带数据,基带数据总长度为256x8,第二次分段分成8段本地基带信号,即本地每段基带信号长度为32x8。如图7中(3)标注。用于频率精调。Third: the receiving end receives 256x8 I/Q data (8 times the chip clock rate sampling), locally generated 256-chip I/Q baseband data, the total length of the baseband data is 256x8, the second segment is divided into 8 local segments The baseband signal, that is, the length of each segment of the local baseband signal is 32x8. (3) marked in Figure 7. Used for frequency fine tuning.
第四:经过前面三个过程完成频率调整,这在该过程可以采用256x8长度的前导码片基带信号和接收信号直接相关计算,计算出相关峰值,进行第一次模糊相位调整。采用相同的方法进行第二次相位调整。如图7中(4)和(5)标注。Fourth: The frequency adjustment is completed through the first three processes. In this process, the 256x8 length preamble baseband signal and the received signal can be directly correlated to calculate the correlation peak value and perform the first fuzzy phase adjustment. Use the same method for a second phase adjustment. (4) and (5) are marked in Figure 7.
本发明中接收基带信号和本地基带信号进行相关计算的原理The principle of performing correlation calculation between the received baseband signal and the local baseband signal in the present invention
第一:根据直扩电力系统OQPSK调制定义,前导比特0生成的256个码片,生成的I/Q两路数据,为了方便分析处理,采用复数方式进行表示,实部表示I路,虚部表示Q路。则发送端发送的基带数据可以表示为:(a1+b1j),(a2+b2j),...,(a256+b256j),如图8中(1)标注。First: According to the OQPSK modulation definition of the direct-spreading power system, the 256 chips generated by the leading
第二:为了直观分析,发送端发送的基带信号采用极坐标方式表示为:采用同样的方法,则本地生成的基带信号表示为:如图8中(2)标注。Second: For intuitive analysis, the baseband signal sent by the sender is expressed in polar coordinates as: Using the same method, the locally generated baseband signal is expressed as: (2) in Figure 8.
第三:相关计算,记为两个信号的共轭相关,再累加处理,采用公式表示为:The third: correlation calculation, recorded as the conjugate correlation of the two signals, and then accumulated processing, using the formula to express as:
如图8中(3)标注。It is marked as (3) in Figure 8.
假设在接收端接收到的前导基带序列和本地生成的前导基带序列,如果发送端和接收端工作频率相同,则在xCorr计算公式中的Ψ=Φi-θi应该是一个固定值。如果收发两端基带工作频率不同,则相关序列越短,则ΔΨ值越稳定。Assuming that the preamble baseband sequence received at the receiving end and the locally generated preamble baseband sequence, if the operating frequency of the transmitting end and the receiving end are the same, Ψ=Φ i -θ i in the xCorr calculation formula should be a fixed value. If the baseband operating frequencies at both ends of the transceiver are different, the shorter the correlation sequence, the more stable the ΔΨ value.
所以在发明中,首先使用16段较短的本地基带信号,然后使用8段较长的本地基带信号,最后使用整个比特对应的扩频基带信号进行相关计算。Therefore, in the invention, 16 shorter local baseband signals are used first, then 8 longer local baseband signals are used, and finally the spread spectrum baseband signal corresponding to the entire bit is used for correlation calculation.
第四:频率偏差计算方法Fourth: Frequency deviation calculation method
根据相关计算得到的xCorr值,每次计算都可以得到bejΨ,其中的b的绝对值abs(bejΨ) 就是相关峰值,Ψ就是相关相位。两个相邻相关峰的相关差ΔΨ可以认为收发两端的相位偏差。Δt表示两个相邻相关峰的时间长度。According to the xCorr value obtained by the correlation calculation, be jΨ can be obtained in each calculation, where the absolute value of b abs(be jΨ ) is the correlation peak value, and Ψ is the correlation phase. The correlation difference ΔΨ between two adjacent correlation peaks can be regarded as the phase deviation between the two ends of the transceiver. Δt represents the time length of two adjacent correlation peaks.
2πΔfΔt=ΔΨ2πΔfΔt=ΔΨ
即收发两端基带信号频率偏差Δf表示为:That is, the frequency deviation Δf of the baseband signal at both ends of the transceiver is expressed as:
Δf=ΔΨ/(2πΔt)Δf=ΔΨ/(2πΔt)
第五:关于相位模糊(相位同步)Fifth: About Phase Ambiguity (Phase Synchronization)
接收端相位模糊,即使在发送端和接收端频率同步情况,同样存在相位模糊问题,理论上具体表现在相关计算的时候,由于存在发送端和接收相位偏差,存在一个固定的Ψ值,消除相位模糊就是在接收信号上乘以一个e-jΨ。那么收发信号进行相关的结果就是一个实数。需要说明的,在同步搜索和频率补偿过程中,仅仅关心相关峰值以及相位差值。并且在实际工程中,收发两端基带不能完全同步,需要实时进行相位补偿。Phase ambiguity at the receiving end, even in the case of frequency synchronization between the sending end and the receiving end, there is also a phase ambiguity problem. Theoretically, it is manifested in the correlation calculation. Due to the phase deviation between the sending end and the receiving end, there is a fixed Ψ value to eliminate the phase. Blurring is simply multiplying the received signal by an e -jΨ . Then the result of correlating the sending and receiving signals is a real number. It should be noted that in the process of synchronization search and frequency compensation, only the correlation peak value and the phase difference value are concerned. And in actual engineering, the basebands at both ends of the transceiver cannot be completely synchronized, and phase compensation needs to be performed in real time.
本发明完成电力抄表的帧前导搜索过程The present invention completes the frame preamble search process for power meter reading
步骤1:电力抄表系统中帧搜索或是帧头搜索是在接收端完成,接收端连续收到来自发送端的帧突发数据,经过射频前端,下变频,最后通过8倍码片速率进行采样得到I/Q两路基带信号。如图9中1步。Step 1: The frame search or frame header search in the power meter reading system is completed at the receiving end. The receiving end continuously receives frame burst data from the transmitting end, goes through the RF front-end, down-converts the frequency, and finally conducts sampling at 8 times the chip rate. Obtain I/Q two-way baseband signal.
步骤2:本地前导码片分段方式一。本地前导一个0比特,根据直扩电力抄表规范要求,生成256个码片,将256码片序列数据分成16段,每段长度为16的分段码片序列。根据直扩电力抄表规范要求采用OQPSK进行调制,形成16个I/Q两个通道的本地基带数据。最后将16个I/Q本地基带数据继续进行8倍升抽样处理,本质就是将每个I/Q数据重复8次,形成16段本地I/Q基带信号,每段信号长度为16x8。如图9中2步。Step 2: Local preamble
步骤3:使用16段分段基带数据信号和接收到的基带信号进行相关处理,每接收到一个抽样值,则计算一次16段的相关计算。得到16个相关峰值。如图9中3步。Step 3: Use the 16-segment segmented baseband data signal and the received baseband signal to perform correlation processing, and calculate the 16-segment correlation calculation once every time a sample value is received. 16 correlation peaks are obtained.
使用计算得到的16个相关值,初步计算出基带信号频率偏差,然后使用该频率偏差对接收到基带信号进行频率补偿。Using the calculated 16 correlation values, the frequency deviation of the baseband signal is preliminarily calculated, and then the frequency deviation is used to perform frequency compensation on the received baseband signal.
步骤4:本地前导码片分段方式二。本地前导一个0比特,生成256个码片,将256码片序列数据分成8段,每段长度为32的分段码片序列。根据直扩电力抄表规范要求采用OQPSK进行调制,形成8个I/Q两个通道的本地基带数据。最后将8个I/Q本地基带数据继续进行8倍升抽样处理,本质就是将每个I/Q数据重复8次,形成8段本地I/Q基带信号,每段信号长度为32。如图9中4,5步。Step 4: Local preamble
步骤5:完成方式一和方式二两种本地基带信号分段进行相关计算和频率调整之后,最后采用非分段基带信号进行相关计算,得到一个相关值。经过步骤3和步骤4之后,非分段基带信号进行相关计算得到相关值,使用该相关值的相位进行相位补偿。如图9中6,7,8 步。Step 5: After completing the correlation calculation and frequency adjustment of the two local baseband signals in the first and second modes, finally use the non-segmented baseband signal to perform the correlation calculation to obtain a correlation value. After
本发明在实际直扩电力抄表系统中的性能,下面将使用收发两端存在不同频率偏差场景进行说明。根据本实施例的说明,分成(a)没有分段直接进行相关结果,(b)16分段进行相关结果,(c)8分段进行相关结果。The performance of the present invention in an actual direct expansion power meter reading system will be described below using the scenario where there are different frequency deviations at both ends of the transceiver. According to the description of this embodiment, it is divided into (a) no segmentation to directly perform the correlation result, (b) 16 segmentation to perform the correlation result, (c) 8 segmentation to perform the correlation result.
第一:不存在频率偏差的场景中,如图10所示。没有分段,以及采用16和8分段方式都存在很好的相关性能。First: in a scenario where there is no frequency deviation, as shown in Figure 10. There is good correlation performance with no segmentation and with 16 and 8 segmentations.
第二:存在频率偏差200Hz的场景中,如图11所示。没有分段,以及采用16和8分段方式都存在很好的相关性能。表明收发两端基带信号存在频率偏差200Hz不影响接收端的接收性能,即不采样分段方式也能正常接收。Second: In a scene with a frequency deviation of 200 Hz, as shown in Figure 11. There is good correlation performance with no segmentation and with 16 and 8 segmentations. It shows that there is a frequency deviation of 200Hz in the baseband signals at both ends of the transceiver, which does not affect the receiving performance of the receiving end, that is, it can receive normally without sampling.
第三:存在频率偏差400Hz的场景中,如图12所示。采用16和8分段方式都存在很好的相关性能,但是没有分段直接相关计算,已经没有明显相关峰值。表明收发两端基带信号存在频率偏差400Hz场景,如果不采样前导分段处理,则不能正常搜索到前导信号。Third: In a scene with a frequency deviation of 400 Hz, as shown in Figure 12. Both 16 and 8 segments have good correlation performance, but there is no segmented direct correlation calculation, and there is no obvious correlation peak. It indicates that there is a frequency deviation of 400 Hz in the baseband signals at both ends of the transceiver. If the preamble is not sampled for segment processing, the preamble cannot be searched normally.
第四:存在频率偏差2500Hz的场景中,如图13所示。采用不分段前导直接进行相关计算,没有明显相关峰值,采用16段分段前导进行相关的时候,虽然可以识别相关峰值,但是已经存在干扰,本来应该只有16个相关峰值,但是已经识别出19个相关峰值,但是这19个相关峰值依然有效,采用这个19个相关峰值进行频率调整之后,再次进行8段分段,依然能够得到较好的8个相关峰值。Fourth: In a scene with a frequency deviation of 2500 Hz, as shown in Figure 13. The correlation calculation is performed directly with the non-segmented preamble, and there is no obvious correlation peak. When the 16-segment segmented preamble is used for correlation, although the correlation peak can be identified, there is already interference. There should be only 16 correlation peaks, but 19 have been identified. However, these 19 correlation peaks are still valid. After using the 19 correlation peaks for frequency adjustment, 8-segment segmentation is performed again, and 8 better correlation peaks can still be obtained.
从上面仿真来看,如果不使用本发明,那么接收端只能抑制200Hz的基带频率偏差,但是使用本发明方法之后,接收端可以抑制2500Hz的基带频率偏差。在该实施例中,即使选择了低成本的晶体,依然能够使用算法方式进行抑制收发两端存在的基带频率偏差。From the above simulation, if the present invention is not used, the receiving end can only suppress the baseband frequency deviation of 200 Hz, but after using the method of the present invention, the receiving end can suppress the baseband frequency deviation of 2500 Hz. In this embodiment, even if a low-cost crystal is selected, an algorithm can still be used to suppress the baseband frequency deviation existing at both ends of the transceiver.
最后说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本技术方案的宗旨和范围,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements, without departing from the spirit and scope of the technical solution, should all be included in the scope of the claims of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110320016.0A CN113067601B (en) | 2021-03-25 | 2021-03-25 | System and method for improving initial synchronization performance of direct sequence spread system and direct sequence spread power meter reading system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110320016.0A CN113067601B (en) | 2021-03-25 | 2021-03-25 | System and method for improving initial synchronization performance of direct sequence spread system and direct sequence spread power meter reading system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113067601A CN113067601A (en) | 2021-07-02 |
| CN113067601B true CN113067601B (en) | 2022-06-10 |
Family
ID=76561882
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110320016.0A Active CN113067601B (en) | 2021-03-25 | 2021-03-25 | System and method for improving initial synchronization performance of direct sequence spread system and direct sequence spread power meter reading system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113067601B (en) |
Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101702701A (en) * | 2009-11-20 | 2010-05-05 | 西安电子科技大学 | Estimation and Compensation Method of Frequency Offset in Extremely Low SNR |
| CN102067544A (en) * | 2008-05-15 | 2011-05-18 | 马维尔国际贸易有限公司 | Phy preamble format for wireless communication system |
| CN102332933A (en) * | 2011-09-28 | 2012-01-25 | 上海交通大学 | Short-time burst spread spectrum signal transmission and reception method |
| CN103873225A (en) * | 2014-03-26 | 2014-06-18 | 清华大学 | Timing estimation method for burst communication |
| CN105103485A (en) * | 2013-03-28 | 2015-11-25 | 索尼公司 | Transmitter and method of transmitting payload data, receiver and method of receiving payload data in an OFDM system |
| CN105099496A (en) * | 2014-05-21 | 2015-11-25 | 德克萨斯仪器股份有限公司 | Methods and apparatus for frequency offset estimation and correction prior to preamble detection of direct sequence spread spectrum (DSSS) signals |
| CN106506037A (en) * | 2016-10-25 | 2017-03-15 | 湖北航天技术研究院总体设计所 | A kind of demodulation method of incoherent spread spectrum communication system |
| CN107026810A (en) * | 2017-03-17 | 2017-08-08 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | The PN synchronization method of burst directly-enlarging system and its DS waveform that happens suddenly |
| CN107247276A (en) * | 2017-07-05 | 2017-10-13 | 西安电子科技大学 | Weak signal catching method based on overlapping polylith zero padding algorithm |
| CN109743073A (en) * | 2018-09-20 | 2019-05-10 | 南京控维通信科技有限公司 | Big frequency deviation Direct Sequence Spread Spectrum fast synchronization method based on unique code |
| US10327213B1 (en) * | 2015-10-01 | 2019-06-18 | Origin Wireless, Inc. | Time-reversal communication systems |
| CN110071886A (en) * | 2019-05-08 | 2019-07-30 | 哈尔滨海能达科技有限公司 | A kind of signal processing method, relevant device and LoRa wireless system |
| CN111679123A (en) * | 2020-08-12 | 2020-09-18 | 长沙北斗产业安全技术研究院有限公司 | Symbol edge and frequency estimation method and system suitable for multimode modulation system |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2122843B1 (en) * | 2007-01-10 | 2010-11-17 | Nokia Corporation | Apparatus, method and computer program product for detecting non-synchronized random access channel preamble |
| US9935681B2 (en) * | 2016-03-16 | 2018-04-03 | Texas Instruments Incorporated | Preamble sequence detection of direct sequence spread spectrum (DSSS) signals |
| US10129014B2 (en) * | 2017-01-25 | 2018-11-13 | Samsung Electronics Co., Ltd. | System and method of performing initial timing synchronization of receivers of modulated signals |
| CN111131117B (en) * | 2019-12-23 | 2022-07-15 | 西安烽火电子科技有限责任公司 | Spread spectrum signal multi-period capture fast demodulation method and de-spread receiver |
-
2021
- 2021-03-25 CN CN202110320016.0A patent/CN113067601B/en active Active
Patent Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102067544A (en) * | 2008-05-15 | 2011-05-18 | 马维尔国际贸易有限公司 | Phy preamble format for wireless communication system |
| CN101702701A (en) * | 2009-11-20 | 2010-05-05 | 西安电子科技大学 | Estimation and Compensation Method of Frequency Offset in Extremely Low SNR |
| CN102332933A (en) * | 2011-09-28 | 2012-01-25 | 上海交通大学 | Short-time burst spread spectrum signal transmission and reception method |
| CN105103485A (en) * | 2013-03-28 | 2015-11-25 | 索尼公司 | Transmitter and method of transmitting payload data, receiver and method of receiving payload data in an OFDM system |
| CN103873225A (en) * | 2014-03-26 | 2014-06-18 | 清华大学 | Timing estimation method for burst communication |
| CN105099496A (en) * | 2014-05-21 | 2015-11-25 | 德克萨斯仪器股份有限公司 | Methods and apparatus for frequency offset estimation and correction prior to preamble detection of direct sequence spread spectrum (DSSS) signals |
| US10327213B1 (en) * | 2015-10-01 | 2019-06-18 | Origin Wireless, Inc. | Time-reversal communication systems |
| CN106506037A (en) * | 2016-10-25 | 2017-03-15 | 湖北航天技术研究院总体设计所 | A kind of demodulation method of incoherent spread spectrum communication system |
| CN107026810A (en) * | 2017-03-17 | 2017-08-08 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | The PN synchronization method of burst directly-enlarging system and its DS waveform that happens suddenly |
| CN107247276A (en) * | 2017-07-05 | 2017-10-13 | 西安电子科技大学 | Weak signal catching method based on overlapping polylith zero padding algorithm |
| CN109743073A (en) * | 2018-09-20 | 2019-05-10 | 南京控维通信科技有限公司 | Big frequency deviation Direct Sequence Spread Spectrum fast synchronization method based on unique code |
| CN110071886A (en) * | 2019-05-08 | 2019-07-30 | 哈尔滨海能达科技有限公司 | A kind of signal processing method, relevant device and LoRa wireless system |
| CN111679123A (en) * | 2020-08-12 | 2020-09-18 | 长沙北斗产业安全技术研究院有限公司 | Symbol edge and frequency estimation method and system suitable for multimode modulation system |
Non-Patent Citations (3)
| Title |
|---|
| A New Method for PN Code Synchronization in the Direct Sequence Spread Spectrum Communication Systems;Tiejun Li;《The 11th International Conference on Computer Science & Education 》;20161106;第92-96页 * |
| 卫星通信系统OFDM同步算法研究;段红光;《通信技术》;20161010;第49卷(第10期);第1312-1316页 * |
| 长码扩频信号调制与解调算法研究与实现;徐雨玮;《中国优秀硕士学位论文全文数据库-信息科技辑》;20160315;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113067601A (en) | 2021-07-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100530277B1 (en) | High Communication Speed Diffusion Spectrum Transceiver and Related Methods | |
| JP3202658B2 (en) | Variable rate CDMA transmission power control method | |
| CN109547059B (en) | Chirp-GFSK combined spread spectrum modulation and demodulation system | |
| CN108234376A (en) | Radio data communication method and device | |
| US20040170157A1 (en) | Apparatus and method for transmitting/receiving preamble in ultra wideband communication system | |
| CN113726704A (en) | Frequency shift chirp spread spectrum modulation and demodulation method based on grouping | |
| KR20070106798A (en) | Spectrum spread communication method and system by weak power, high frequency radio | |
| CN103281280B (en) | Based on the carrier synchronization method of rotation average period map and demodulation Soft Inform ation | |
| CN111565161A (en) | Baseband transmitter, baseband receiver, modulation and demodulation system and terminal | |
| CN110601717A (en) | Communication and ranging integrated system and method based on code division multiplexing | |
| EP1118193B1 (en) | Encoding/decoding additional symbols in a communications system | |
| CN114024619A (en) | A backscatter communication method, device and system based on pulse interval modulation | |
| CN102025669A (en) | Short-wave data transmission method based on dual multisystem quasi-orthogonal spread-spectrum composite phase modulation | |
| CN113141195A (en) | Demodulation method for dispreading in direct sequence spread spectrum system and storage medium | |
| CN111294082A (en) | Spread spectrum-based parallel transmission OFDM communication method and system | |
| CN114465865A (en) | A Frequency Offset Estimation Method for Pilot Segment Recombination | |
| CN114513287A (en) | Frame structure and communication method of data chain system suitable for DSP processing platform | |
| JP2003532311A (en) | Spread spectrum communication system using differential code shift keying | |
| CN115580513A (en) | A Modulation and Demodulation Method of Frequency Shifting Chirp Spread Spectrum Index | |
| CN113067601B (en) | System and method for improving initial synchronization performance of direct sequence spread system and direct sequence spread power meter reading system | |
| CN118659864A (en) | Satellite communication synchronization method, device and storage medium | |
| CN117221058A (en) | Receiving and transmitting processing method and system for MSK spread spectrum system | |
| CN116192585B (en) | Partial matched filtering signal capturing method based on scattered packet pilot frequency structure | |
| CN116667876A (en) | ZigBee-to-Lora cross-technology communication method based on physical layer | |
| CN111835668B (en) | Simplified non-coherent despreading and demodulating method for MSK spread spectrum 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 |