CN1937435A - Digital signal processing method for power line communication system - Google Patents
Digital signal processing method for power line communication system Download PDFInfo
- Publication number
- CN1937435A CN1937435A CN 200610096539 CN200610096539A CN1937435A CN 1937435 A CN1937435 A CN 1937435A CN 200610096539 CN200610096539 CN 200610096539 CN 200610096539 A CN200610096539 A CN 200610096539A CN 1937435 A CN1937435 A CN 1937435A
- Authority
- CN
- China
- Prior art keywords
- data
- synchronization
- dsp
- signal
- carrier
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 73
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 69
- 230000005540 biological transmission Effects 0.000 claims abstract description 24
- 238000004422 calculation algorithm Methods 0.000 claims description 31
- 238000001228 spectrum Methods 0.000 claims description 31
- 238000012937 correction Methods 0.000 claims description 28
- 238000012545 processing Methods 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 25
- 238000005070 sampling Methods 0.000 claims description 24
- 238000010586 diagram Methods 0.000 claims description 17
- 238000013507 mapping Methods 0.000 claims description 15
- 238000003860 storage Methods 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 12
- 239000000047 product Substances 0.000 claims description 9
- 125000004122 cyclic group Chemical group 0.000 claims description 7
- 230000006870 function Effects 0.000 claims description 7
- 238000005314 correlation function Methods 0.000 claims description 5
- 230000009471 action Effects 0.000 claims description 4
- 238000012884 algebraic function Methods 0.000 claims description 4
- 238000011010 flushing procedure Methods 0.000 claims description 4
- 230000009916 joint effect Effects 0.000 claims description 4
- 239000011159 matrix material Substances 0.000 claims description 4
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 230000000737 periodic effect Effects 0.000 claims description 4
- 230000008859 change Effects 0.000 claims description 2
- 238000004519 manufacturing process Methods 0.000 claims description 2
- 239000013589 supplement Substances 0.000 claims description 2
- 230000001960 triggered effect Effects 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 abstract description 47
- 238000012827 research and development Methods 0.000 abstract description 5
- 230000000875 corresponding effect Effects 0.000 description 17
- 238000011160 research Methods 0.000 description 14
- 238000011161 development Methods 0.000 description 11
- 238000013461 design Methods 0.000 description 10
- 230000008901 benefit Effects 0.000 description 7
- 230000002596 correlated effect Effects 0.000 description 4
- 238000009826 distribution Methods 0.000 description 3
- 239000000969 carrier Substances 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 102220207670 rs748889500 Human genes 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 101100172132 Mus musculus Eif3a gene Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 244000309464 bull Species 0.000 description 1
- 230000002860 competitive effect Effects 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000003892 spreading Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
电力线通信系统的数字信号处理方法是一种用于在电力线中高速传输数据信号的方法,尤其是一种基于正交频分复用(OFDM)的宽带高速电力载波通信的方法,该数字信号处理方法分发射端和接收端两部分,采用正交频分复用(OFDM)技术,利用电力线实现宽带高速电力载波通信系统的关键技术的研究和开发,该方法通信速率≥50Kbps;直接通信距离≥100米;并且实现系统的Internet的接入;为下一步设计通信速率为1-10Mbps的电力线载波通信系统做好基础性工作。
The digital signal processing method of the power line communication system is a method for high-speed transmission of data signals in the power line, especially a method for broadband high-speed power carrier communication based on Orthogonal Frequency Division Multiplexing (OFDM). The method is divided into two parts: the transmitting end and the receiving end. Using Orthogonal Frequency Division Multiplexing (OFDM) technology, the research and development of the key technology of broadband high-speed power carrier communication system is realized by using the power line. The communication rate of this method is ≥50Kbps; the direct communication distance is ≥ 100 meters; and realize the Internet access of the system; do the basic work for the next step of designing a power line carrier communication system with a communication rate of 1-10Mbps.
Description
技术领域technical field
本发明是一种用于在电力线中高速传输数据信号的方法,尤其是一种基于正交频分复用(OFDM)的宽带高速电力载波通信的方法,属于有线通信的技术领域。The invention is a method for high-speed transmission of data signals in power lines, in particular a method for broadband high-speed power carrier communication based on Orthogonal Frequency Division Multiplexing (OFDM), which belongs to the technical field of wired communication.
背景技术Background technique
目前的通信方式有无线信道通信和有线信道通信,电力线通信(Power LineCommunication)技术指的是建立在电力输送网络基础上的,实现电力线通信网络内部的各个节点之间以及与其他通信网络通信的系统。其历史可追溯到20世纪20年代,那时电力线通信技术主要利用11kV以上的高压进行远距离信息传输,工作频率为150kHz以下,后来该频段成为欧洲电技术标准化委员会电力线通信的正式频段。在中高压输电网(35kV以上)上通过电力线载波机以低频率(9~490kHz)以较低速率传送远距离数据或话音,是电力线通信技术应用的主要形式之一。在低压(220V)领域,PLC技术开始其传输速率一般为1200b/s或更低,称为低速PLC。近几年国内外开展的利用低压电力线传输速率在1Mb/s以上的电力线通信技术称之为高速PLC。PLC技术首先用于负荷控制、远程抄表和家居自动化。The current communication methods include wireless channel communication and wired channel communication. Power Line Communication (Power Line Communication) technology refers to a system based on the power transmission network that realizes communication between nodes within the power line communication network and with other communication networks. . Its history can be traced back to the 1920s. At that time, the power line communication technology mainly used high voltage above 11kV for long-distance information transmission, and the working frequency was below 150kHz. Later, this frequency band became the official frequency band of power line communication of the European Technical Standardization Committee. It is one of the main forms of power line communication technology to transmit long-distance data or voice at a low frequency (9-490kHz) at a low rate through a power line carrier on a medium and high voltage transmission network (above 35kV). In the field of low voltage (220V), the transmission rate of PLC technology is generally 1200b/s or lower, which is called low-speed PLC. In recent years, the power line communication technology using low-voltage power line transmission rate above 1Mb/s developed at home and abroad is called high-speed PLC. PLC technology was first used in load control, remote meter reading and home automation.
PLC技术用电力线作局域网总线有其显著的优点:成本低、施工方便、一线两用,价格低廉,延伸方便。电力线在家庭、公司及各种场所处处可达,比电缆和固定电话网络更为广泛。存在的最大问题是电力线网络是被设计用来输电的,而非用来传输数据的。因此,电力线是一个不可靠的传输信道,并且有很大的噪声和衰减。由于现代数字通信技术的发展,各种先进的调制解调技术(如OFDM)的引入以及现代DSP技术,使得电力线载波通信成为可能。The use of power lines as the LAN bus in PLC technology has its significant advantages: low cost, convenient construction, dual-purpose one-line, low price, and convenient extension. Powerlines are ubiquitous in homes, businesses and places, and are more extensive than cable and landline telephone networks. The biggest problem is that powerline networks are designed to carry electricity, not data. Therefore, the power line is an unreliable transmission channel and has a lot of noise and attenuation. Due to the development of modern digital communication technology, the introduction of various advanced modulation and demodulation technologies (such as OFDM) and modern DSP technology, power line carrier communication has become possible.
近年来,国内外对于电力线通信和Internet互连技术的研究非常活跃。从英国联合电力公司的子公司Norweb通讯公司在1990年开始对电力线载波通信进行研究以来,许多国家的研究机构开展了高速电力线技术的研究和开发,如中国的电力科学研究院,美国的Intellon,西班牙的DS2公司等,产品的传输速率也从1Mb/s发展到45Mb/s,目前高速PLC已经达到200Mb/s。In recent years, the research on power line communication and Internet interconnection technology at home and abroad is very active. Since Norweb Communications, a subsidiary of United Power Corporation of the United Kingdom, began research on power line carrier communication in 1990, research institutions in many countries have carried out research and development of high-speed power line technology, such as China's Electric Power Research Institute, the United States' Intellon, Spain's DS2 company, etc., the transmission rate of the product has also developed from 1Mb/s to 45Mb/s, and the current high-speed PLC has reached 200Mb/s.
随着Internet技术的飞速发展,登录上网的人数成倍增长。然而,采用何种通信方式使用户终端连接到最近的宽带网络连接设备,成为长期困扰人们的难点之一,也是Internet普及的瓶颈之一,被业内人士称为宽带网络接入的“最后l英里”问题。利用四通八达、遍布城乡、直达用户的220V低压电力线传输高速数据的PLC技术以其不用布线、覆盖范围广、连接方便的显著特点,被业内人士认为是提供“最后300m”解决方案最具竞争力的技术之一。With the rapid development of Internet technology, the number of people logging on to the Internet has doubled. However, what communication method to use to connect the user terminal to the nearest broadband network connection device has become one of the difficulties that have plagued people for a long time, and it is also one of the bottlenecks for Internet popularization. It is called "the last mile" of broadband network access by industry insiders. "question. Using the 220V low-voltage power line extending in all directions, all over urban and rural areas, and direct to users to transmit high-speed data, the PLC technology is considered by the industry to be the most competitive solution for the "last 300m" because of its remarkable characteristics of no wiring, wide coverage, and convenient connection. One of the techniques.
高速PLC已可传输高达45Mb/s的数据,而且能同时传输数据、语音、视频和电力,有可能带来“四网合一”的新趋势。High-speed PLC can already transmit data up to 45Mb/s, and can transmit data, voice, video and power at the same time, which may bring a new trend of "four networks in one".
根据当地电网的配置情况和各种Internet接入技术市场化程度的不同,当前高速PLC技术主要有两种发展模式:According to the configuration of the local power grid and the degree of marketization of various Internet access technologies, the current high-speed PLC technology mainly has two development modes:
其一为以美国为代表的家庭联网模式。这种模式的PLC只提供家庭内部联网,户外访问使用其它传统的通信方式。这一方面是由于美国ADSL、HFC等技术和产品已经比较成熟和普及,更重要的是由于美国的低压配电变压器一般为单相,平均只为5~6个用户提供供电服务,推广高速PLC接入技术成本过高的缘故。One is the home networking model represented by the United States. This mode of PLC only provides home networking, and other traditional communication methods are used for outdoor access. On the one hand, this is due to the relatively mature and popular technologies and products such as ADSL and HFC in the United States. More importantly, because the low-voltage distribution transformers in the United States are generally single-phase, they only provide power supply services for 5 to 6 users on average, and promote high-speed PLC. Due to the high cost of access technology.
另一种模式是面向欧洲和亚太市场的。因为这些地区的低压配电网结构比较类似,一般为200~300个用户提供供电服务,推广高速PLC接入服务平均成本较低。该应用模式提供自配电变压器或楼边至用户家庭的全面PLC解决方案。由于室外产品同室内产品的使用环境不同,技术上实现起来难度较大,因此能够提供该种方案的公司数量较少,主要有西班牙DS2公司、瑞士Ascom公司、以色列Main.Net公司等。这几家公司在欧洲的西班牙、德国、奥地利、法国和亚洲的韩国、新加坡、香港等国家和地区建有实验网络。Another model is for the European and Asia-Pacific markets. Because the structure of the low-voltage distribution network in these areas is relatively similar, it generally provides power supply services for 200 to 300 users, and the average cost of promoting high-speed PLC access services is low. This application mode provides a comprehensive PLC solution from the distribution transformer or building to the user's home. Since outdoor products are used in different environments from indoor products, it is difficult to implement technically. Therefore, the number of companies that can provide this solution is relatively small, mainly including DS2 in Spain, Ascom in Switzerland, and Main.Net in Israel. These companies have established experimental networks in Spain, Germany, Austria, France in Europe and South Korea, Singapore, Hong Kong and other countries and regions in Asia.
电力线高速通信的国际组织主要有家庭插电联盟HPA(HomePlug PowerlineAlliance)、电力线通信论坛PLC Forum、PALAS(Powerline as an AlternativeLocal AccesS)、以及日本的ECHONET。International organizations for high-speed power line communication mainly include the HomePlug Powerline Alliance (HPA), PLC Forum, PALAS (Powerline as an Alternative Local AccessS), and ECHONET in Japan.
由思科、英特尔、惠普、松下和夏普等13家公司组成的家庭插电联盟成立于2000年4月,致力于创造共同的家用电力线网络通信技术标准。目前HPA已发展成为由90家公司组成的企业集团,并选用美国Intellon公司的技术作为统一技术标准的原型。2001年6月,HPA发布了其标准的第1个版本Home-PlugSpecfication 1.0,将数据传输速率定为14Mb/s,采用OFDM调制解调技术,MAC层协议为CSMA/CA。该标准定位于家庭内部网络应用,对户外高速电力线接入较少涉及。The Home Plug Alliance, formed by 13 companies including Cisco, Intel, Hewlett-Packard, Panasonic and Sharp, was established in April 2000 and is committed to creating a common technical standard for home power line network communication. At present, HPA has developed into an enterprise group composed of 90 companies, and the technology of Intellon Company of the United States is selected as the prototype of the unified technical standard. In June 2001, HPA released the first version of its standard, Home-PlugSpecfication 1.0, setting the data transmission rate at 14Mb/s, using OFDM modulation and demodulation technology, and the MAC layer protocol as CSMA/CA. This standard is oriented towards home internal network applications, and is less involved in outdoor high-speed power line access.
就是在这样的国内外背景下,本课题组工作人员对OFDM在低压电力载波通信中的应用进行了实验性地研究,并在测试和参考了一些电力线信道资料的情况下,确定了OFDM系统中的DSP的实现方法。本专利的内容则主要是将课题组人员现已达到的研究成果加以整合并申请:基于正交频分复用的电力线通信系统的DSP的实现方法。It is under such a background at home and abroad that the staff of this research group have conducted experimental research on the application of OFDM in low-voltage power carrier communication, and after testing and referring to some power line channel data, they have determined the The realization method of the DSP. The content of this patent is mainly to integrate and apply the research results that the research team has achieved: the realization method of DSP of the power line communication system based on Orthogonal Frequency Division Multiplexing.
OFDM技术在电力线通信中的应用逐步得到了国内外同行的认同,国外研制并推出了10Mbps甚至更高的通信模块。由于国内未掌握其核心技术,因此,积极开展我国的电力载波通信核心技术研究是非常必要的。The application of OFDM technology in power line communication has gradually been recognized by counterparts at home and abroad, and foreign countries have developed and launched communication modules with 10Mbps or even higher. Since the core technology has not been mastered in China, it is very necessary to actively carry out research on the core technology of power carrier communication in our country.
该发明目标在于推动我国低压电力线载波通信核心技术的发展,为我国电力线通信标准的指定提供决策依据,为研制适应我国电网现状的电力线通信系统提供关键技术和产品。The goal of this invention is to promote the development of the core technology of low-voltage power line carrier communication in my country, provide decision-making basis for the designation of power line communication standards in my country, and provide key technologies and products for the development of power line communication systems that adapt to the current situation of my country's power grid.
发明内容Contents of the invention
技术问题:本发明的目的是提供一种基于正交频分复用的电力线通信系统的数字信号处理方法,该方法通信速率≥50Kbps;直接通信距离≥100米;并且实现系统的Internet的接入;为下一步设计通信速率为1-10Mbps的电力线载波通信系统做好基础性工作。Technical problem: The purpose of this invention is to provide a digital signal processing method based on OFDM power line communication system, the communication rate of this method is ≥50Kbps; the direct communication distance is ≥100 meters; and the Internet access of the system is realized ; Do a good job of basic work for the next step of designing a power line carrier communication system with a communication rate of 1-10Mbps.
技术方案:本发明的方法采用正交频分复用(OFDM)技术,利用电力线实现宽带高速电力载波通信系统的关键技术的研究和开发(基于正交频分复用的电力线通信系统的DSP的实现)。Technical scheme: the method of the present invention adopts Orthogonal Frequency Division Multiplexing (OFDM) technology, utilizes power line to realize the research and development of the key technology of broadband high-speed power carrier communication system (based on the DSP of the power line communication system of Orthogonal Frequency Division Multiplexing accomplish).
该数字信号处理方法分发射端和接收端两部分,其处理方法的步骤为:发射端:The digital signal processing method is divided into two parts, the transmitting end and the receiving end, and the steps of the processing method are: the transmitting end:
1)上位机产生数据流,同时按照系统的帧格式中数据段部分的要求发送。1) The upper computer generates a data stream and sends it according to the requirements of the data segment in the system frame format.
2)积码的DSP实现:卷积码是将发送的信息序列通过一个线性的,有限状态的移位寄存器而产生的编码,通常卷积码的编码器由K级,每级k比特的移位寄存器和n个线性代数函数发生器-模2加法器组成,需要编码的二进制数据串行输入移位寄存器,每次移入k比特数据,每个k比特的输入序列对应一个n比特的输出序列,在信道编码方案中,选用在工程中最常用的K=7,k=1,和n=2Rc=1/2的卷积码,译码采用Viterbi算法,取δ=40>5K,硬判决,(7,1,2)卷积码的生成多项式用八进制数表示为:POLYA=133,POLYB=171。2) DSP implementation of product codes: Convolutional codes are codes generated by passing the transmitted information sequence through a linear, finite-state shift register. Usually, the encoders of convolutional codes are composed of K-level, k-bit shift registers per level. Bit register and n linear algebraic function generators-modulo 2 adders, the binary data that needs to be encoded is serially input to the shift register, and k-bit data is shifted in each time, and each k-bit input sequence corresponds to an n-bit output sequence , in the channel coding scheme, the most commonly used convolutional code of K=7, k=1, and n=2R c =1/2 in engineering is selected, and the decoding adopts the Viterbi algorithm, taking δ=40>5K, hard Judgment, the generator polynomial of the (7,1,2) convolutional code is represented by octal numbers: POLYA=133, POLYB=171.
3)一般卷积码刚开始编码的时候初始状态都是0状态,而在编码快要结束的时候比特流的尾部会跟有填0的“Flushing”,以让编码状态回归到0,所以信息序列尾部必须人为地跟加上6bit的数据000000,以迫使编码器在一帧数据的尾部回到0状态,使得译码时最后一次回溯得到正确的译码结果。3) Generally, the initial state of the convolutional code is 0 at the beginning of encoding, and when the encoding is about to end, the tail of the bit stream will be followed by "Flushing" filled with 0, so that the encoding state returns to 0, so the information sequence The tail must be artificially followed by 6-bit data 000000 to force the encoder to return to the 0 state at the end of a frame of data, so that the last backtracking during decoding can obtain the correct decoding result.
4)交织:交织的方式有块交织和卷积交织两种,系统中选用块交织,块交织的过程是:m阶交织器将编码后的数据按行的方向排成m行n列的阵列形式,然后按列的方向依次读出数据,完成数据的交织。4) Interleaving: There are two types of interleaving: block interleaving and convolutional interleaving. In the system, block interleaving is selected. The process of block interleaving is: the m-order interleaver arranges the encoded data into an array of m rows and n columns in the row direction form, and then read the data sequentially in the direction of the column to complete the interleaving of the data.
5)16QAM映射:使用多进制调制中的16QAM调制,星座图采用方型星座图,相关参数为:最小相位偏移θmin=18°,最小欧氏距离
6)虚载波和共轭扩展:虚载波的添加在DSP中是通过一个载波映射图来完成的,载波映射图的数据只包括0和1,OFDM的频带被划分为几个子载波,载波映射图中就有几个0和1的数据,0表示相应的子载波不用来传输数据,1表示相应的子载波用来传输数据;在OFDM系统中一共使用了256个子载波,其中128个是虚载波,前面的112个和后面的16个都是虚载波,只有中间的128个子载波是用来传输数据的 载波映射图规则,运用傅里叶变换,实信号傅里叶变换后的结果是幅度谱呈偶对称,相位谱呈奇对称,OFDM用IFFT来实现调制也就是把频域信号转换为时域信号,将频域信号的幅度谱安排为偶对称,相位谱安排为奇对称,则变换出来的时域信号必然为实信号,可以不用经过载波调制就能将数据靠单路D/A发送出去,并且不会改变信号的频谱;如果OFDM采用I、Q路的方式,则必须加上载波调制才能将数据发送出去,共轭扩展就是有意识地将频域补为符合实信号特点的频域。6) Virtual carrier and conjugate extension: The addition of virtual carrier is done through a carrier map in DSP. The data in the carrier map only includes 0 and 1. The frequency band of OFDM is divided into several subcarriers. The carrier map There are several 0 and 1 data, 0 means that the corresponding subcarrier is not used to transmit data, 1 means that the corresponding subcarrier is used to transmit data; in the OFDM system, a total of 256 subcarriers are used, of which 128 are virtual carriers , the first 112 subcarriers and the last 16 are virtual carriers, and only the middle 128 subcarriers are used to transmit data Carrier map rules, using Fourier transform, the result of Fourier transform of the real signal is that the amplitude spectrum is evenly symmetrical, and the phase spectrum is oddly symmetrical. OFDM uses IFFT to realize modulation, which is to convert the frequency domain signal into a time domain signal. , the amplitude spectrum of the frequency domain signal is arranged as even symmetry, and the phase spectrum is arranged as odd symmetry, then the transformed time domain signal must be a real signal, and the data can be sent out by a single D/A without carrier modulation. And it will not change the spectrum of the signal; if OFDM adopts I and Q channels, carrier modulation must be added to send the data. Conjugate expansion is to consciously supplement the frequency domain to the frequency domain that conforms to the characteristics of real signals.
7)虚载波和共轭扩展共同作用的结果是:OFDM系统以单路发送信号,如果发送信号的基带频谱宽度为W,则在虚载波的作用下实际发送信号占用的频谱为DSP中虚载波和共轭扩展的实现都是对存储器内容进行修改或者重新排序来实现的。7) The result of the joint action of the virtual carrier and conjugate extension is that the OFDM system transmits signals in a single channel. If the baseband spectrum width of the transmitted signal is W, the spectrum occupied by the actual transmitted signal under the action of the virtual carrier is The implementation of virtual carrier and conjugate expansion in DSP is realized by modifying or reordering the contents of memory.
8)IFFT在DSP中的实现:在IFFT中,采用了TI基于基4和基2的IFFT算法,减少了复数乘法的次数,在定点DSP芯片中,应用右移一位的方法来完成1/N的运算,并且防止运算过程中的溢出。8) Implementation of IFFT in DSP: In IFFT, TI’s IFFT algorithm based on radix 4 and radix 2 is used to reduce the number of complex multiplications. In the fixed-point DSP chip, the method of shifting one bit to the right is used to complete 1/ N operations, and prevent overflow during operations.
9)D/A数据调整:在进行数据打包之前,将原始数据转换为适合D/A发送的数据。9) D/A data adjustment: Before data packaging, convert the original data into data suitable for D/A transmission.
接收端:Receiving end:
10)信号经由信道的传输在接收端首先通过耦合器,然后进行载波搬移,这个是和发送端相对应的一个将信号下变频过程。10) The transmission of the signal through the channel first passes through the coupler at the receiving end, and then performs carrier shifting. This is a process of down-converting the signal corresponding to the sending end.
11)在信号作完下变频以后,经过A/D采样将模拟信号变为数字信号。11) After the signal is down-converted, the analog signal is converted into a digital signal through A/D sampling.
12)同步模块:同步分为四步,符号粗同步,小数频率估计和纠正,整数频率估计和纠正以及精细同步;整个这个同步过程需要很好的控制时钟,在完成以上的同步过程后进行相位的估计和纠正,和最佳采样点判别;在完成同步以后对信号的帧进行处理,丢弃信号帧中的循环前缀和同步头,直接将数据帧中的数据段交给后面的处理单元。12) Synchronization module: Synchronization is divided into four steps, symbol coarse synchronization, decimal frequency estimation and correction, integer frequency estimation and correction, and fine synchronization; the entire synchronization process requires a good control of the clock, and the phase is performed after completing the above synchronization process Estimation and correction, and discrimination of the best sampling point; after the synchronization is completed, the signal frame is processed, the cyclic prefix and synchronization header in the signal frame are discarded, and the data segment in the data frame is directly handed over to the subsequent processing unit.
13)采用模块同步的方法,即采样进来一定数量的数据以后DSP才触发同步模块进行同步,每128点数据触发一次同步模块,这样就降低了保存现场和上下文切换所消耗的指令,提高了程序运行的效率。13) The method of module synchronization is adopted, that is, the DSP triggers the synchronization module to synchronize after a certain amount of data is sampled, and the synchronization module is triggered once every 128 points of data, which reduces the consumption of instructions for saving the scene and context switching, and improves the program. operating efficiency.
14)粗同步:在接收端,当接收机发现M(n)的输出值在一段时间内保持大于某个门限时,则认为帧头被正确捕获,精度方面的处理我们所选用的DSP是C54X系列的,为16bit的定点DSP。14) Coarse synchronization: at the receiving end, when the receiver finds that the output value of M(n) remains greater than a certain threshold for a period of time, the frame header is considered to be captured correctly, and the DSP we choose for precision processing is C54X Series, 16bit fixed-point DSP.
15)细同步:由于帧头捕获算法得到的帧头定位只落入帧头相关函数的平原区,因此帧头位置有一定的模糊性,采用的精细定时是基于IEEE 802.11a中用双相关来精细同步的思想,即让接收序列与本地的参考序列作复相关,就能获得突出而且尖锐的相关峰,检测是否有周期噪声产生的伪帧头捕获,从而提高同步的准确性。15) Fine synchronization: because the frame header positioning obtained by the frame header capture algorithm only falls into the plain area of the frame header correlation function, the frame header position has a certain ambiguity, and the fine timing adopted is based on the double correlation in IEEE 802.11a The idea of fine synchronization is to let the received sequence and the local reference sequence be complexly correlated to obtain a prominent and sharp correlation peak, and to detect whether there is a pseudo-frame header capture caused by periodic noise, thereby improving the accuracy of synchronization.
16)存储量和精度处理:细同步在进行运算的时候需要2个128字节的DSP存储器模块,外加1个A/D数据写入模块一共需要3个存储模块,在精度处理方面和粗同步是一样的。16) Storage capacity and precision processing: fine synchronization requires two 128-byte DSP memory modules when performing calculations, plus 1 A/D data writing module requires a total of 3 storage modules, in terms of precision processing and coarse synchronization it's the same.
17)FFT模块实现:FFT运用在接收端,因为接收端接收到的数据都是实数,所以采用了一定的方法使实数FFT变为复数FFT进行运算,节约了原来近一半的计算量,一并完成了解共轭扩展。17) FFT module implementation: FFT is used at the receiving end, because the data received at the receiving end are all real numbers, so a certain method is adopted to make real number FFT into complex number FFT for operation, which saves nearly half of the original calculation amount. Complete Understanding Conjugate Extensions.
18)去扩展,载波逆映射,将频谱下变频变换为基带信号。18) Despreading, carrier inverse mapping, down-converting the frequency spectrum into a baseband signal.
19)数据反调整,反16QAM映射,反交织,在接收端,反交织器将解调后的数据按列的方向排成m行n列的阵列形式,然后按行的方向依次读出数据,完成数据的反交织。19) Data anti-adjustment, anti-16QAM mapping, anti-interleaving, at the receiving end, the anti-interleaver arranges the demodulated data into an array form of m rows and n columns according to the column direction, and then reads the data sequentially according to the row direction, Complete data deinterleaving.
20)Viterbi译码的实现:蝶型图是Viterbi算法实现的核心,蝶型图的处理决定了Viterbi算法的效率,在DSP中实现Viterbi,利用产生快表的方法提高计算分支度量的速度;利用C54X DSP循环寻址的功能,使Metrix和Transition_matrix都限制在128字节的Circular Buffer里面,最大可能的节约和利用了存储器,利用了DSP对Viterbi算法的硬件支持,比如累加器的双16位运算能力;专门为Viterbi算法设计的比较、选择和存储单元,使用这些专门的硬件支持加速解码的速度。20) The realization of Viterbi decoding: butterfly diagram is the core that Viterbi algorithm realizes, and the processing of butterfly diagram has determined the efficiency of Viterbi algorithm, realizes Viterbi in DSP, utilizes the method for producing fast list to improve the speed of calculation branch measure; Utilize The circular addressing function of C54X DSP limits both Metrix and Transition_matrix to 128-byte Circular Buffer, saves and utilizes the memory as much as possible, and utilizes the hardware support of DSP for Viterbi algorithm, such as the double 16-bit operation of the accumulator Ability; comparison, selection, and storage units specially designed for Viterbi algorithms, using these specialized hardware to support accelerated decoding speed.
21)在译码完成以后,就利用接收终端的通信串口来接收数据。21) After the decoding is completed, use the communication serial port of the receiving terminal to receive the data.
有益效果:本发明是基于正交频分复用的电力线通信系统的DSP的实现,采用正交频分复用(OFDM)技术,利用电力线实现宽带高速电力载波通信系统的关键技术的研究和开发。OFDM技术在电力线通信中的应用逐步得到了国内外同行的认同,国外研制并推出了10Mbps甚至更高的通信模块。由于国内未掌握其核心技术,因此,积极开展我国的电力载波通信核心技术研究是非常必要的。Beneficial effects: the present invention is based on the realization of the DSP of the power line communication system of orthogonal frequency division multiplexing, adopts orthogonal frequency division multiplexing (OFDM) technology, utilizes the power line to realize the research and development of the key technology of broadband high-speed power carrier communication system . The application of OFDM technology in power line communication has gradually been recognized by counterparts at home and abroad, and foreign countries have developed and launched communication modules with 10Mbps or even higher. Since the core technology has not been mastered in China, it is very necessary to actively carry out research on the core technology of power carrier communication in our country.
该发明目标在于推动我国低压电力线载波通信核心技术的发展,为电力线通信标准的指定提供决策依据,为研制适应我国电网现状的电力线通信系统提供关键技术和产品。The goal of this invention is to promote the development of the core technology of low-voltage power line carrier communication in my country, provide decision-making basis for the designation of power line communication standards, and provide key technologies and products for the development of power line communication systems that adapt to the current situation of my country's power grid.
设计了DSP实现的硬件电路;Design the hardware circuit realized by DSP;
用软件算法在DSP平台上实现了OFDM通信系统(包括FFT/IFFT、QAM映射、卷积编码、Viterbi译码等模块);Realized the OFDM communication system (including FFT/IFFT, QAM mapping, convolutional coding, Viterbi decoding and other modules) on the DSP platform with software algorithms;
成功地实现了50kbps的数据传输;Successfully achieved 50kbps data transmission;
由于DSP芯片处理能力的限制,采用的同步算法相对简单(后期可完善)。Due to the limitation of DSP chip processing capability, the synchronization algorithm adopted is relatively simple (it can be perfected later).
本发明在前期工作人员研究的基础上进行了对OFDM系统完善和实现的工作。硬件设计方面,一起完成了基于DSP的OFDM系统,为OFDM系统的发送和接收端提供了稳定的DSP平台。软件设计方面,采用了TI近年来才推出的准RTOS(DSP/BIOS),运用了基于多线程的设计思想,成功设计了OFDM发送端和接收端的软件,为实用化迈出了具有意义的一步。The present invention completes and realizes the OFDM system on the basis of the research of previous staff members. In terms of hardware design, the DSP-based OFDM system has been completed together, providing a stable DSP platform for the sending and receiving ends of the OFDM system. In terms of software design, the quasi-RTOS (DSP/BIOS) introduced by TI in recent years has been adopted, and the design idea based on multi-threading has been used to successfully design the software of OFDM sending end and receiving end, which has taken a meaningful step for practical application .
附图说明Description of drawings
图1是本发明的系统实现框图,Fig. 1 is a system realization block diagram of the present invention,
图2是本发明的交织原理图,Fig. 2 is the principle diagram of interleaving of the present invention,
图3是本发明的同步的实现流程图,Fig. 3 is the realization flowchart of the synchronization of the present invention,
图4是本发明的电力通信系统的流程图,Fig. 4 is a flowchart of the power communication system of the present invention,
图5是本发明的Viterbi译码流程图,Fig. 5 is the Viterbi decoding flowchart of the present invention,
图6是K=7,k=1,和n=2(Rc=1/2)的卷积码编码方式图,Fig. 6 is K=7, k=1, and n=2 (R c =1/2) convolutional code encoding scheme figure,
图7是小数频偏估计与纠正的流程图,Fig. 7 is a flow chart of fractional frequency offset estimation and correction,
图8是整数频偏估计与纠正的流程图,Fig. 8 is a flowchart of integer frequency offset estimation and correction,
图9是精细帧同步处理流程图,Fig. 9 is a flow chart of fine frame synchronization processing,
图10是最佳采样点判别流程图。Fig. 10 is a flow chart for judging the optimal sampling point.
具体实施方式Detailed ways
系统方案设计System Design
OFDM基本参数设计:带宽 B=200kHzOFDM basic parameter design: bandwidth B=200kHz
使用频段 DSP实现方案:200~400kHz DSP implementation scheme: 200 ~ 400 kHz
子信道数 N=128The number of sub-channels N=128
循环前缀 CP=32
子信道映射模式选择: 16QAM: 4bit/子信道Sub-channel mapping mode selection: 16QAM: 4bit/sub-channel
DQPSK: 2bit/子信道DQPSK: 2bit/subchannel
传输方式实现:DSP方案:基带共轭扩展Transmission method implementation: DSP solution: baseband conjugate extension
通信距离100m~1000m左右 The communication distance is about 100m~1000m
误码率控制在10e-7~10e-9左右 The bit error rate is controlled at around 10e-7~10e-9
码元长度symbol length
T=N×1/B=640usT=N×1/B=640us
保护时间间隔guard interval
Δ=160usΔ=160us
子信道间隔subchannel spacing
Δf=1/T=1.5625kHzΔf=1/T=1.5625kHz
实际传输码元长度Actual transmission symbol length
Ts=T+Δ=800usT s =T+Δ=800us
实际的符号率actual symbol rate
fs=1/Ts=1/800us=1.25kbaudf s =1/T s =1/800us=1.25kbaud
总的比特速率:DSP:Total bit rate: DSP:
1.25kbaud×128×4bit/symbol=640kps1.25kbaud×128×4bit/symbol=640kps
项目所需主要器件:DSP:TMS320C5416Main components required for the project: DSP: TMS320C5416
SRAM:IS61LV25616SRAM: IS61LV25616
FLASH:SST39VF400FLASH: SST39VF400
CPLD:EPM7128 CPLD: EPM7128
A/D:AD7492ARA/D: AD7492AR
D/A:AD9762ARD/A: AD9762AR
系统的理论研究和仿真:Theoretical research and simulation of the system:
在Matlab平台下完成系统功能的仿真;The simulation of the system function is completed under the Matlab platform;
在SIMULINK平台下完成系统动态仿真,验证了系统的实时通信性能;用标准C实现系统的算法;用OPNET对数据传输协议进行了仿真。The system dynamic simulation is completed under the SIMULINK platform, and the real-time communication performance of the system is verified; the algorithm of the system is implemented with standard C; the data transmission protocol is simulated with OPNET.
本发明是基于正交频分复用的电力线通信系统的DSP的实现,采用正交频分复用(OFDM)技术,利用电力线实现宽带高速电力载波通信系统的关键技术的研究和开发。OFDM技术在电力线通信中的应用逐步得到了国内外同行的认同,国外研制并推出了10Mbps甚至更高的通信模块。由于国内未掌握其核心技术,因此,积极开展我国的电力载波通信核心技术研究是非常必要的。The present invention is based on the realization of the DSP of the power line communication system of orthogonal frequency division multiplexing, adopts orthogonal frequency division multiplexing (OFDM) technology, and utilizes the power line to realize the research and development of the key technology of broadband high-speed power carrier communication system. The application of OFDM technology in power line communication has gradually been recognized by counterparts at home and abroad, and foreign countries have developed and launched communication modules with 10Mbps or even higher. Since the core technology has not been mastered in China, it is very necessary to actively carry out research on the core technology of power carrier communication in our country.
该发明目标在于推动我国低压电力线载波通信核心技术的发展,为我国电力线通信标准的指定提供决策依据,为研制适应我国电网现状的电力线通信系统提供关键技术和产品。The goal of this invention is to promote the development of the core technology of low-voltage power line carrier communication in my country, provide decision-making basis for the designation of power line communication standards in my country, and provide key technologies and products for the development of power line communication systems that adapt to the current situation of my country's power grid.
设计了DSP实现的硬件电路;Design the hardware circuit realized by DSP;
用软件算法在DSP平台上实现了OFDM通信系统(包括FFT/IFFT、QAM映射、卷积编码、Viterbi译码等模块);Realized the OFDM communication system (including FFT/IFFT, QAM mapping, convolutional coding, Viterbi decoding and other modules) on the DSP platform with software algorithms;
成功地实现了50kbps的数据传输;Successfully achieved 50kbps data transmission;
由于DSP芯片处理能力的限制,采用的同步算法相对简单(后期可完善)。Due to the limitation of DSP chip processing capability, the synchronization algorithm adopted is relatively simple (it can be perfected later).
本发明在前期工作人员研究的基础上进行了对OFDM系统完善和实现的工作。硬件设计方面,一起完成了基于DSP的OFDM系统,为OFDM系统的发送和接收端提供了稳定的DSP平台。软件设计方面,采用了TI近年来才推出的准RTOS(DSP/BIOS),运用了基于多线程的设计思想,成功设计了OFDM发送端和接收端的软件,为实用化迈出了具有意义的一步。The present invention completes and realizes the OFDM system on the basis of the research of previous staff members. In terms of hardware design, the DSP-based OFDM system has been completed together, providing a stable DSP platform for the sending and receiving ends of the OFDM system. In terms of software design, the quasi-RTOS (DSP/BIOS) introduced by TI in recent years has been adopted, and the design idea based on multi-threading has been used to successfully design the software of OFDM sending end and receiving end, which has taken a meaningful step for practical application .
1971年,S.B.Weinstein和P.M.Ebert指出多路正交载波的调制解调可以利用DFT/IDFT来快速实现,为OFDM技术的广泛应用迈出了坚实的一步,OFDM中的循环前缀有效地消除了ISI和ICI。In 1971, S.B.Weinstein and P.M.Ebert pointed out that the modulation and demodulation of multi-channel orthogonal carriers can be quickly realized by using DFT/IDFT, which is a solid step for the wide application of OFDM technology. The cyclic prefix in OFDM effectively eliminates ISI and ICI.
DSP平台:DSP platform:
在提出用IFFT/FFT实现OFDM调制解调后,DSP上实现OFDM就变的切实可行了。系统中选择了TI C5000系列中的C5416 DSP来实现。After proposing to use IFFT/FFT to realize OFDM modulation and demodulation, it becomes feasible to realize OFDM on DSP. In the system, the C5416 DSP in the TI C5000 series is selected to realize it.
DSP软件设计环境CCS:1999年,TI革命性地推出了DSP软件集成开发环境Code Composer Studio(简称CCS)。DSP software design environment CCS: In 1999, TI revolutionaryly launched the DSP software integrated development environment Code Composer Studio (CCS for short).
DSP/BIOS:DSP/BIOS实时内核是TI近年来推出的准RTOS,它的目的是帮助开发人员建立DSP应用程序并管理DSP片上资源。DSP/BIOS: The DSP/BIOS real-time kernel is a quasi-RTOS launched by TI in recent years. Its purpose is to help developers build DSP applications and manage DSP on-chip resources.
1.直接由汇编语言编写,保证了DSP/BIOS的高效率;1. Directly written in assembly language, ensuring the high efficiency of DSP/BIOS;
2.支持基于线程的DSP程序设计,使得多任务嵌入式开发变得相对简单;2. Support thread-based DSP program design, making multi-task embedded development relatively simple;
3.DSP/BIOS具有灵活的可裁减性,在高效率的基础上使得其最小占有空间仅为1K字节;3. DSP/BIOS is flexible and scalable, and the minimum occupied space is only 1K bytes on the basis of high efficiency;
4.为开发人员提供了DSP底层硬件操作的统一界面,可以使开发人员省去很多因为具体芯片型号的不同而引起的问题,将精力集中在应用的实现上。4. Provide developers with a unified interface for DSP underlying hardware operations, which can save developers a lot of problems caused by different chip models, and focus on the implementation of applications.
系统的主要实现流程在图1中给出了,下面具体介绍一下系统的整个工作过程和执行的步骤:The main implementation process of the system is given in Figure 1. The following describes the entire working process and execution steps of the system in detail:
由上位机产生数据流,同时按照我们系统的帧格式中数据段部分的要求发送。The data stream is generated by the host computer and sent according to the requirements of the data segment in the frame format of our system.
卷积码的DSP实现,卷积码是将发送的信息序列通过一个线性的,有限状态的移位寄存器而产生的编码。通常卷积码的编码器由K级(每级k比特)的移位寄存器和n个线性代数函数发生器(这里是模2加法器)组成,如图6。需要编码的二进制数据串行输入移位寄存器,每次移入k比特数据。每个k比特的输入序列对应一个n比特的输出序列。因此卷积码的编码效率定义为Rc=k/n。参数K被称作卷积码的约束长度,它表示当前的n比特输出序列与多少个k比特输入序列有关系,同时也是一个决定编码复杂程度的重要参数。The DSP implementation of the convolutional code, the convolutional code is the code generated by passing the transmitted information sequence through a linear, finite-state shift register. Usually, the encoder of the convolutional code is composed of K-level (k-bit per level) shift registers and n linear algebraic function generators (here, modulo 2 adders), as shown in Figure 6. The binary data to be coded is serially input into the shift register, and k-bit data is shifted in each time. Each input sequence of k bits corresponds to an output sequence of n bits. Therefore, the coding efficiency of a convolutional code is defined as R c =k/n. The parameter K is called the constraint length of the convolutional code, which indicates how many k-bit input sequences the current n-bit output sequence is related to, and is also an important parameter that determines the complexity of the encoding.
在我们的信道编码方案中,选用了在工程中最常用的K=7,k=1,和n=2(Rc=1/2)的卷积码。译码采用Viterbi算法,取δ=40>5K,硬判决。(7,1,2)卷积码的生成多项式用八进制数表示为:POLYA=133,POLYB=171。In our channel coding scheme, the convolutional code with K=7, k=1, and n=2 (R c =1/2), which is most commonly used in engineering, is selected. Decoding adopts Viterbi algorithm, taking δ=40>5K, hard decision. The generator polynomial of the (7, 1, 2) convolutional code is represented by octal numbers: POLYA=133, POLYB=171.
实际上我们在进行卷积编码的时候就等效于给编码后的数据进行了一次交织,这个问题在解码前进行一次反交织就可以得到解决。需要注意的一点是:一般卷积码刚开始编码的时候初始状态都是0状态,而在编码快要结束的时候比特流的尾部会跟有填0的“Flushing”,以让编码状态回归到0。所以我们的信息序列尾部必须人为地跟加上6bit的数据000000,以迫使编码器在一帧数据的尾部回到0状态,使得译码时最后一次回溯得到正确的译码结果。In fact, when we perform convolutional encoding, it is equivalent to interleaving the encoded data. This problem can be solved by deinterleaving before decoding. One thing to note is that the initial state of the general convolutional code is 0 at the beginning of encoding, and when the encoding is about to end, the tail of the bit stream will be followed by "Flushing" filled with 0, so that the encoding state returns to 0 . Therefore, the end of our information sequence must be artificially followed by 6-bit data 000000 to force the encoder to return to the 0 state at the end of a frame of data, so that the last backtracking during decoding can obtain the correct decoding result.
交织:交织的方式有两种:块交织(Block Interleaving)和卷积交织(Convolutional Interleaving),系统中我们选用了块交织。块交织的过程是:m阶交织器将编码后的数据按行的方向排成m行n列的阵列形式,然后按列的方向依次读出数据,完成数据的交织。(如图2交织原理图),在接收端,解交织器将解调后的数据按列的方向排成m行n列的阵列形式,然后按行的方向依次读出数据,完成数据的解交织。在DSP中交织只是把数据的存放顺序变一下,实现比较简单。Interleaving: There are two ways of interleaving: Block Interleaving and Convolutional Interleaving. In the system, we choose block interleaving. The process of block interleaving is as follows: the m-order interleaver arranges the coded data into an array of m rows and n columns according to the row direction, and then reads out the data sequentially according to the column direction to complete the data interleaving. (As shown in Figure 2 Interleaving Schematic), at the receiving end, the deinterleaver arranges the demodulated data into an array of m rows and n columns in the direction of the column, and then reads the data in sequence according to the direction of the row to complete the deinterleaver of the data intertwined. Interleaving in DSP just changes the storage order of data, which is relatively simple to realize.
16QAM映射:在实际应用中,我们常常用一种称为多进制(如4进制,8进制,16进制等)的基带信号。多进制数字调制载波参数有M种不同的取值,多进制数字调制比二进制数字调制有两个突出的优点:一是有于多进制数字信号含有更多的信息使频带利用率更高;二是在相同的信息速率下持续时间长,可以提高码元的能量,从而减小由于信道特性引起的码间干扰。我们使用了多进制调制中的16QAM调制,星座图采用了方型星座图,相关参数为:最小相位偏移θmin=18°,最小欧氏距离
虚载波和共轭扩展:虚载波的添加在DSP中是通过一个载波映射图来完成的,载波映射图的数据只包括0和1,OFDM的频带被划分为几个子载波,载波映射图中就有几个0和1的数据。0表示相应的子载波不用来传输数据(也就是添0处理),1表示相应的子载波用来传输数据。在我们的OFDM系统中一共使用了256个子载波,其中128个是虚载波,前面的112个和后面的16个都是虚载波,只有中间的128个子载波是用来传输数据的。Virtual carrier and conjugate extension: The addition of virtual carrier is done through a carrier map in DSP. The data in the carrier map only includes 0 and 1. The frequency band of OFDM is divided into several subcarriers. In the carrier map, there is There are several 0's and 1's of data. 0 indicates that the corresponding subcarrier is not used to transmit data (that is, add 0), and 1 indicates that the corresponding subcarrier is used to transmit data. A total of 256 subcarriers are used in our OFDM system, 128 of which are virtual carriers, the front 112 and the latter 16 are virtual carriers, and only the middle 128 subcarriers are used to transmit data.
载波映射图规则 Carrier Map Rules
共轭扩展的实质是运用了傅里叶变换的特性。我们知道实信号傅里叶变换后的结果是幅度谱呈偶对称,相位谱呈奇对称,这是实信号所特别具有的。OFDM用IFFT来实现调制也就是把频域信号转换为时域信号,如果我们有意地将频域信号的幅度谱安排为偶对称,相位谱安排为奇对称,则变换出来的时域信号必然为实信号。这样我们就可以不用经过载波调制就能将数据靠单路D/A发送出去,并且不会改变信号的频谱。如果OFDM采用I、Q路的方式,则必须加上载波调制才能将数据发送出去。所以共轭扩展就是有意识地将频域补为符合实信号特点的频域。The essence of conjugate extension is to use the characteristics of Fourier transform. We know that the result of the Fourier transform of the real signal is that the amplitude spectrum is evenly symmetric, and the phase spectrum is oddly symmetric, which is special for real signals. OFDM uses IFFT to achieve modulation, which is to convert the frequency domain signal into a time domain signal. If we intentionally arrange the amplitude spectrum of the frequency domain signal as even symmetry and the phase spectrum as odd symmetry, the transformed time domain signal must be real signal. In this way, we can send the data by a single D/A without carrier modulation, and the frequency spectrum of the signal will not be changed. If OFDM adopts the way of I and Q channels, carrier modulation must be added to send the data. So the conjugate extension is to consciously complement the frequency domain to the frequency domain that conforms to the characteristics of the real signal.
虚载波和共轭扩展共同作用的结果是:OFDM系统以单路发送信号,如果发送信号的基带频谱宽度为W,则在虚载波的作用下实际发送信号占用的频谱为The result of the joint action of the virtual carrier and conjugate extension is that the OFDM system transmits signals in a single channel. If the baseband spectrum width of the transmitted signal is W, the spectrum occupied by the actual transmitted signal under the action of the virtual carrier is
DSP中虚载波和共轭扩展的实现都是对存储器内容进行修改或者重新排序来实现的。 The implementation of virtual carrier and conjugate expansion in DSP is realized by modifying or reordering the contents of memory.
IFFT在DSP中的实现:在IFFT中,采用了TI基于基4和基2的IFFT算法,这样做的好处是减少了复数乘法的次数,还有一个很好的特点就是在定点DSP芯片中,可以非常简单的应用右移一位的方法来完成1/N的运算,并且防止了运算过程中的溢出。Implementation of IFFT in DSP: In IFFT, TI’s IFFT algorithm based on radix 4 and radix 2 is used. The advantage of this is that the number of complex multiplications is reduced. Another good feature is that in fixed-point DSP chips, It is very simple to apply the method of shifting one bit to the right to complete the 1/N operation, and prevent overflow during the operation.
D/A数据调整:在进行数据打包之前还有一项工作必须做,就是原始数据转换为适合D/A发送的数据。D/A data adjustment: Before data packaging, there is another work that must be done, which is to convert the original data into data suitable for D/A transmission.
接收端:信号经由信道的传输在接收端首先通过耦合器,然后进行载波搬移这个是和发送端相对应的一个将信号下变频过程。在信号作完下变频以后,经过A/D采样将模拟信号变为数字信号。Receiving end: The transmission of the signal through the channel first passes through the coupler at the receiving end, and then carries out carrier shifting. This is a process of down-converting the signal corresponding to the sending end. After the signal is down-converted, the analog signal is converted into a digital signal through A/D sampling.
同步模块:系统的同步主要分为粗帧同步,小数频偏估计与纠正,整数频偏估计与纠正,精细帧同步,最佳采样点判别,载波相位估计等,具体的流程见附图中的图3。Synchronization module: The synchronization of the system is mainly divided into coarse frame synchronization, decimal frequency offset estimation and correction, integer frequency offset estimation and correction, fine frame synchronization, optimal sampling point discrimination, carrier phase estimation, etc. The specific process is shown in the attached figure image 3.
OFDM系统中同步是非常关键的技术,但由于时间原因和原先提出的同步算法实现起来有困难,所以我们在系统中只用了简单的能量相关同步的方法,就OFDM同步来讲我们还有很多工作需要去做。我们的同步分为四步,符号粗同步,小数频率估计和纠正,整数频率估计和纠正以及精细同步,整个这个同步过程需要很好的控制时钟,在完成以上的同步过程后我们进行相位的估计和纠正,和最佳采样点判别。在完成同步以后我们对信号的帧进行处理,我们丢弃信号帧中的循环前缀和同步头,直接将数据帧中的数据段交给后面的处理单元。Synchronization in the OFDM system is a very critical technology, but due to time reasons and the difficulty in implementing the original synchronization algorithm, we only use a simple energy-related synchronization method in the system. As far as OFDM synchronization is concerned, we still have a lot Work needs to be done. Our synchronization is divided into four steps, symbol coarse synchronization, fractional frequency estimation and correction, integer frequency estimation and correction, and fine synchronization. The entire synchronization process requires a good control of the clock. After completing the above synchronization process, we estimate the phase And correction, and best sampling point discrimination. After the synchronization is completed, we process the signal frame. We discard the cyclic prefix and synchronization header in the signal frame, and directly hand over the data segment in the data frame to the subsequent processing unit.
我们采用了模块同步的方法,即采样进来一定数量的数据以后DSP才触发同步模块进行同步,如我们是每128点数据触发一次同步模块,这样就降低了保存现场和上下文切换所消耗的指令,提高了程序运行的效率。We adopt the method of module synchronization, that is, after a certain amount of data is sampled, the DSP triggers the synchronization module for synchronization. For example, we trigger the synchronization module every 128 points of data, which reduces the consumption of instructions for saving the scene and context switching. Improve the efficiency of program operation.
粗同步:在接收端,当接收机发现M(n)的输出值在一段时间内保持大于某个门限时,则认为帧头被正确捕获。虽然从某种角度来说,这个帧头捕获函数具有一定的模糊性,但是它实现简单,可以最快得捕捉帧头,而随后还有细同步模块来给出精确的定时位置。精度方面的处理我们所选用的DSP是C54X系列的,为16bit的定点DSP。Coarse synchronization: At the receiving end, when the receiver finds that the output value of M(n) remains greater than a certain threshold for a period of time, it considers that the frame header is correctly captured. Although from a certain point of view, this frame header capture function has a certain degree of ambiguity, but it is simple to implement, and can capture the frame header as quickly as possible, and then there is a fine synchronization module to give precise timing positions. The DSP we choose for precision processing is the C54X series, which is a 16-bit fixed-point DSP.
粗同步实现方法:Coarse synchronization implementation method:
粗帧同步实现利用公式:Coarse frame synchronization is implemented using the formula:
因为:because:
可以得到:can get:
P(n)=P(n-1)+r(n+N-1)·r*(n+2N-1)-r(n-1)·r*(n+N-1)这样在每有新的采样数据输入时根据上式可以只需进行2次乘法运算即可得到相应的P(n)。同样R0(n)和RN(n)也可以进行相应的快速计算,提高粗帧同步的运算速度。P(n)=P(n-1)+r(n+N-1) r * (n+2N-1)-r(n-1) r * (n+N-1) When there is new sampling data input, the corresponding P(n) can be obtained only by performing two multiplication operations according to the above formula. Similarly, R 0 (n) and R N (n) can also perform corresponding fast calculations to improve the calculation speed of coarse frame synchronization.
由上可得同步模块的流程:The flow of the synchronization module can be obtained from the above:
1)在系统上电或者系统复位的情况下,给P(n)、R0(n)和RN(n)赋零初值。1) When the system is powered on or the system is reset, assign zero initial values to P(n), R 0 (n) and R N (n).
2)在未检测到粗帧的情况下,每间隔8个采样点同步控制模块发送给粗帧同步模块请求信息和数据,粗帧同步接收信息以及相应的数据计算出P(n)、R0(n)和RN(n)。2) In the case that the coarse frame is not detected, the synchronization control module sends the request information and data to the coarse frame synchronization module at intervals of 8 sampling points, and the coarse frame synchronously receives the information and the corresponding data to calculate P(n), R 0 (n) and R N (n).
3)根据设定的门限,因为数字电路实现的除法操作较为复杂需要消耗大量资源,将门限转化为分数形式 判断M1=a·|R0(n)|·|RN(n)|与M2=b·|P(n)|2的大小。当M2>M1时,将用于记录M(n)超过预设门限次数的计数器加1,否则将此计数器置零,以保证信号是连续的超过预设的门限。3) According to the set threshold, because the division operation implemented by the digital circuit is more complicated and consumes a lot of resources, the threshold is converted into a fractional form Judge the size of M1=a·|R 0 (n)|·|R N (n)| and M2=b·|P(n)| 2 . When M2>M1, add 1 to the counter used to record the number of times M(n) exceeds the preset threshold, otherwise, set the counter to zero to ensure that the signal continues to exceed the preset threshold.
4)当计数器数值大于一指定值时,认为此时已经检测到粗帧,发送标志信息到同步控制模块。同步控制模块接收到此信息时即将粗帧同步子模块挂起,同时将P(n)数据锁存用于小数频偏估计。4) When the counter value is greater than a specified value, it is considered that a coarse frame has been detected at this time, and the flag information is sent to the synchronization control module. When the synchronization control module receives this information, it will suspend the coarse frame synchronization submodule, and at the same time latch the P(n) data for fractional frequency offset estimation.
小数频偏估计和纠正的实现方法Realization Method of Fractional Frequency Offset Estimation and Correction
小数频偏估计是在粗帧检测到信号发出标志信息以后进行的,由同步模块控制端控制进行的。同步控制模块在收到粗帧同步检测到有效帧的标志位后,使能小数频偏估计模块,同时将粗帧同步中得到的数据P(n)发给小数频偏估计模块。小数频偏估计采用前述估计公式:
小数频偏估计完成以后需要对数据的小数频偏进行纠正。纠正的过程采用开环方法,通过设计一个DDS频率源,在FPGA内将数据与对应的频率相乘达到补偿小数频偏的目的。After the fractional frequency offset estimation is completed, the fractional frequency offset of the data needs to be corrected. The correction process adopts an open-loop method. By designing a DDS frequency source, the data is multiplied by the corresponding frequency in the FPGA to achieve the purpose of compensating the fractional frequency offset.
上式表明通过使用内建数字频率源可以补偿小数频偏,但是因为并不知道确切的起始点,在数据纠正时假设起始点是粗帧同步得到的起始位置,这就导致存在e-j2πn0ε/N的相位误差。这种相位误差对系统的影响等同于两地载波的相位差。可以和载波相位误差综合在一起纠正。The above formula shows that the fractional frequency offset can be compensated by using the built-in digital frequency source, but because the exact starting point is not known, it is assumed that the starting point is the starting position obtained by coarse frame synchronization during data correction, which leads to the existence of e -j2πn0ε /N phase error. The impact of this phase error on the system is equal to the phase difference between the two carriers. It can be corrected together with the carrier phase error.
小数频偏估计与纠正实现的流程图如图7所示,在估计的过程中我们需要求得P(n)的角度,我们利用了查表法和Cordic核来求去角度的两种方法整数频偏估计和纠正的实现方法:The flow chart of decimal frequency offset estimation and correction is shown in Figure 7. In the estimation process, we need to obtain the angle of P(n). We use the look-up table method and the Cordic kernel to obtain the two methods of removing the angle. The implementation method of frequency offset estimation and correction:
整数频偏的估计需要使用序列的频域信息。首先需要将粗帧同步确定的起点后的64个数据进行fft变换,这部分电路可以调用OFDM信号的解调的模块,需要完成的主要是接口问题。在得到数据的频域序列后,将数据送入整数频偏估计单元进行估计,所采用下面的估计公式:The estimation of integer frequency offset needs to use the frequency domain information of the sequence. Firstly, it is necessary to perform FFT transformation on 64 data after the starting point determined by coarse frame synchronization. This part of the circuit can call the OFDM signal demodulation module, and the main thing that needs to be completed is the interface problem. After the frequency domain sequence of the data is obtained, the data is sent to the integer frequency offset estimation unit for estimation, and the following estimation formula is used:
整数频偏估计与纠正实现的流程图如图8所示。The flow chart of the implementation of integer frequency offset estimation and correction is shown in Figure 8.
整数频偏估计模块首先接收数据的频域序列,利用本地序列与整数频偏估计模块计算相关能量,然后对本地序列做循环移位,再与数据频域序列求相关能量直到循环移位到原始本地序列。在这个过程中得到的最大相关能量的最大值点就是所对应的整数频率偏移量,第32次循环以后所对应的偏移量为负的归一化频偏在数据纠正时,同样使用数字频率源信号,原理与小数频偏纠正相同。The integer frequency offset estimation module first receives the frequency domain sequence of the data, uses the local sequence and the integer frequency offset estimation module to calculate the correlation energy, then performs a cyclic shift on the local sequence, and then calculates the correlation energy with the data frequency domain sequence until the cyclic shift reaches the original local sequence. The maximum point of the maximum correlation energy obtained in this process is the corresponding integer frequency offset, and the corresponding offset after the 32nd cycle is the negative normalized frequency offset In the data correction, the digital frequency source signal is also used, and the principle is the same as that of the decimal frequency offset correction.
细同步:由于帧头捕获算法得到的帧头定位只落入帧头相关函数的平原区,因此帧头位置有一定的模糊性,本系统采用的精细定时是基于IEEE 802.11a中用双相关来精细同步的思想,即让接收序列与本地的参考序列作复相关,就能获得突出而且尖锐的相关峰,这样做的另一个好处是检测是否有周期噪声产生的伪帧头捕获,从而提高同步的准确性。存储量和精度处理:细同步在进行运算的时候需要2个128字节的DSP存储器模块,外加1个A/D数据写入模块一共需要3个存储模块,所以粗同步中4个模块的存储空间已经能够满足细同步的要求。在精度处理方面和粗同步是一样的。精细帧同步使用的归一化相关函数如下:Fine synchronization: because the frame header positioning obtained by the frame header capture algorithm only falls into the plain area of the frame header correlation function, the frame header position has certain ambiguity. The idea of fine synchronization is to make the received sequence complexly correlated with the local reference sequence to obtain a prominent and sharp correlation peak. Another advantage of this is to detect whether there is a pseudo-frame header capture generated by periodic noise, thereby improving synchronization. accuracy. Storage capacity and precision processing: fine synchronization requires two 128-byte DSP memory modules, plus an A/D data writing module requires a total of 3 storage modules, so the storage of 4 modules in coarse synchronization Space has been able to meet the requirements of fine synchronization. In terms of precision processing, it is the same as coarse synchronization. The normalized correlation function used by fine frame synchronization is as follows:
其中
精细帧同步处理实现的流程图如图9所示。The flow chart of the implementation of the fine frame synchronization processing is shown in Fig. 9 .
精细帧同步处理流程为:The processing flow of fine frame synchronization is as follows:
1)从粗帧同步定义的起点开始,同步控制模块将随后的64个数据,以及这64个数据由粗帧同步过程计算得到的能量值E(n)发给精细帧同步处理模块;1) Starting from the starting point defined by the coarse frame synchronization, the synchronization control module sends the subsequent 64 data and the energy value E(n) calculated by the coarse frame synchronization process of these 64 data to the fine frame synchronization processing module;
2)精细帧同步在初始化的时候设定一个较低的门限。在精细帧同步中将接收到的64个数据与本地参考序列求相关能量。分别计算M(n)的分子和分母,然后利用交叉相乘法(避开除法运算)比较M(n)与预设门限的大小。当M(n)大于预设的门限值时,将预设门限的分子分母用M(n)的分子分母代替,用于后续的比较,同时存储相应的位置信息;2) Fine frame synchronization sets a lower threshold during initialization. In the fine frame synchronization, the 64 received data are correlated with the local reference sequence for energy. Calculate the numerator and denominator of M(n) respectively, and then use the cross-multiplication method (avoiding the division operation) to compare the size of M(n) with the preset threshold. When M(n) is greater than the preset threshold value, replace the numerator and denominator of the preset threshold with the numerator and denominator of M(n) for subsequent comparison, and store corresponding position information at the same time;
3)在一段64点数据传输结束以后,同步控制模块预留一定的时间余量用于精细帧同步模块进行数据处理。然后,将粗帧同步定义的起始点后移,重新进行1,2两步骤,直到移动到粗帧同步起始点的后64位,以保证在信息序列中包含有同步训练序列的第一段sync符号;3) After a period of 64 points of data transmission ends, the synchronization control module reserves a certain time margin for the fine frame synchronization module to process data. Then, the starting point defined by the coarse frame synchronization is moved back, and the two steps 1 and 2 are performed again until the last 64 bits of the starting point of the coarse frame synchronization are moved to ensure that the information sequence contains the first sync of the synchronization training sequence symbol;
4)此时,精细帧同步模块输出的位置信息,即为所求的M(n)最大的位置。4) At this time, the position information output by the fine frame synchronization module is the position where the sought M(n) is the largest.
最佳采样点判别的实现方式:The way to realize the best sampling point discrimination:
为了解决最佳采样点定时偏差,OFDM系统采用了过采样技术。前面所讨论的内容中,采样点是指在8倍采样率的情况下,每8个点选取其中的第一个点组成的采样点序列。在进行频偏纠正时,除需对所使用采样点序列进行纠正外,还需要对其余的采样点序列进行同样的数据纠正。In order to solve the timing deviation of the best sampling point, the OFDM system adopts over-sampling technology. In the content discussed above, the sampling point refers to the sampling point sequence composed of the first point selected from every 8 points in the case of 8 times the sampling rate. When performing frequency offset correction, in addition to correcting the used sampling point sequence, it is also necessary to perform the same data correction on the remaining sampling point sequences.
在精细帧同步得到较为精确的帧起始点的情况下,使用公式:In the case of fine frame synchronization to obtain a more accurate frame start point, use the formula:
其中r(n+k)为过采样的数据,按照顺序分成8组,Sk为本地训练序列。在确定精细帧同步位置后。对8组采样数据以精细帧定位位置为起点,分别计算公式(3.24),然后以精细帧定位位置前一个点为起点,分别计算公式(3.24)。在计算完成以后得到的M(n)最大值以及相应的采样点可以近似认为是最佳采样点。Among them, r(n+k) is the oversampled data, which is divided into 8 groups in sequence, and S k is the local training sequence. After determining the fine frame sync position. For the 8 groups of sampling data, calculate the formula (3.24) with the fine frame positioning position as the starting point, and then calculate the formula (3.24) with the point before the fine frame positioning position as the starting point. After the calculation is completed, the maximum value of M(n) and the corresponding sampling points can be approximately considered as the best sampling points.
FFT模块实现:FFT运用在接收端,因为接收端接收到的数据都是实数,所以采用了一定的方法使实数FFT变为复数FFT进行运算,节约了原来近一半的计算量。实际上这种方法还一并完成了解共轭扩展。去扩展,载波逆映射。数据反调整,反16QAM映射,反交织。FFT module implementation: FFT is used at the receiving end, because the data received at the receiving end are all real numbers, so a certain method is used to convert real FFT into complex FFT for operation, saving nearly half of the original calculation. In fact, this method also completes the understanding of conjugate expansion. De-spreading, Carrier Inverse Mapping. Data anti-adjustment, anti-16QAM mapping, anti-interleaving.
Viterbi译码的实现:蝶型图是Viterbi算法实现的核心,蝶型图的处理决定了Viterbi算法的效率。在DSP中实现Viterbi,我们运用了一些方法和手段来提高程序的质量。Implementation of Viterbi decoding: Butterfly diagram is the core of Viterbi algorithm implementation, and the processing of butterfly diagram determines the efficiency of Viterbi algorithm. To implement Viterbi in DSP, we have used some methods and means to improve the quality of the program.
利用产生快表的方法提高了计算分支度量的速度。The method of generating fast table improves the speed of calculating branch metrics.
充分利用了C54X DSP循环寻址的功能,使Metrix和Transition_matrix都限制在128字节的Circular Buffer里面,最大可能的节约和利用了存储器。Make full use of the circular addressing function of C54X DSP, so that both Metrix and Transition_matrix are limited to 128 bytes of Circular Buffer, which saves and utilizes the memory as much as possible.
充分利用了DSP对Viterbi算法的硬件支持。比如累加器的双16位运算能力(C16=1);专门为Viterbi算法设计的比较、选择和存储单元(CSSU)等,使用这些专门的硬件支持加速了解码的速度。Make full use of DSP's hardware support for Viterbi algorithm. For example, the dual 16-bit computing capability of the accumulator (C16=1); the comparison, selection and storage unit (CSSU) specially designed for the Viterbi algorithm, etc., using these special hardware supports to accelerate the speed of decoding.
在译码完成以后,我们就利用接收终端(PC等)的通信口(串口)来接收数据。After the decoding is completed, we use the communication port (serial port) of the receiving terminal (PC, etc.) to receive the data.
发射端:The transmitting end:
1)由上位机产生数据流,同时按照系统的帧格式中数据段部分的要求发送。1) The data stream is generated by the host computer and sent according to the requirements of the data segment in the frame format of the system.
2)卷积码的DSP实现:卷积码是将发送的信息序列通过一个线性的,有限状态的移位寄存器而产生的编码,通常卷积码的编码器由K级(每级k比特)的移位寄存器和n个线性代数函数发生器(这里是模2加法器)组成,需要编码的二进制数据串行输入移位寄存器,每次移入k比特数据。每个k比特的输入序列对应一个n比特的输出序列。因此卷积码的编码效率定义为Rc=k/n。参数K被称作卷积码的约束长度,它表示当前的n比特输出序列与多少个k比特输入序列有关系,同时也是一个决定编码复杂程度的重要参数。2) DSP implementation of convolutional codes: convolutional codes are codes generated by passing the transmitted information sequence through a linear, finite-state shift register. Usually, the encoders of convolutional codes are composed of K levels (k bits per level) The shift register and n linear algebraic function generators (here is a modulo 2 adder), the binary data that needs to be encoded are serially input to the shift register, and k-bit data is shifted in each time. Each input sequence of k bits corresponds to an output sequence of n bits. Therefore, the coding efficiency of a convolutional code is defined as R c =k/n. The parameter K is called the constraint length of the convolutional code, which indicates how many k-bit input sequences the current n-bit output sequence is related to, and is also an important parameter that determines the complexity of the encoding.
3)在我们的信道编码方案中,选用了在工程中最常用的K=7,k=1,和n=2(Rc=1/2)的卷积码。译码采用Viterbi算法,取δ=40>5K,硬判决。(7,1,2)卷积码的生成多项式用八进制数表示为:POLYA=133,POLYB=1713) In our channel coding scheme, the convolutional codes of K=7, k=1, and n=2 (R c =1/2), which are most commonly used in engineering, are selected. Decoding adopts Viterbi algorithm, taking δ=40>5K, hard decision. (7,1,2) the generator polynomial of convolution code is expressed as: POLYA=133, POLYB=171 with octal number
4)实际上我们在进行卷积编码的时候就等效于给编码后的数据进行了一次交织,这个问题在解码前进行一次反交织就可以得到解决。需要注意的一点是:一般卷积码刚开始编码的时候初始状态都是0状态,而在编码快要结束的时候比特流的尾部会跟有填0的“Flushing”,以让编码状态回归到0。所以我们的信息序列尾部必须人为地跟加上6bit的数据000000,以迫使编码器在一帧数据的尾部回到0状态,使得译码时最后一次回溯得到正确的译码结果。4) In fact, when we perform convolutional encoding, it is equivalent to interleaving the encoded data once. This problem can be solved by deinterleaving once before decoding. One thing to note is that the initial state of the general convolutional code is 0 at the beginning of encoding, and when the encoding is about to end, the tail of the bit stream will be followed by "Flushing" filled with 0, so that the encoding state returns to 0 . Therefore, the end of our information sequence must be artificially followed by 6-bit data 000000 to force the encoder to return to the 0 state at the end of a frame of data, so that the last backtracking during decoding can obtain the correct decoding result.
5)交织,交织的方式有两种:块交织(Block Interleaving)和卷积交织(Convolutional Interleaving),系统中我们选用了块交织。块交织的过程是:m阶交织器将编码后的数据按行的方向排成m行n列的阵列形式,然后按列的方向依次读出数据,完成数据的交织。如图2交织原理图,在接收端,解交织器将解调后的数据按列的方向排成m行n列的阵列形式,然后按行的方向依次读出数据,完成数据的解交织。在DSP中交织只是把数据的存放顺序变一下,实现比较简单。5) Interleaving. There are two ways of interleaving: Block Interleaving and Convolutional Interleaving. In the system, we choose block interleaving. The process of block interleaving is as follows: the m-order interleaver arranges the coded data into an array of m rows and n columns according to the row direction, and then reads out the data sequentially according to the column direction to complete the data interleaving. As shown in the interleaving schematic diagram in Figure 2, at the receiving end, the deinterleaver arranges the demodulated data into an array of m rows and n columns according to the column direction, and then reads the data sequentially according to the row direction to complete the deinterleaving of the data. Interleaving in DSP just changes the storage order of data, which is relatively simple to realize.
6)16QAM映射:在实际应用中,我们常常用一种称为多进制(如4进制,8进制,16进制等)的基带信号。多进制数字调制载波参数有M种不同的取值,多进制数字调制比二进制数字调制有两个突出的优点:一是有于多进制数字信号含有更多的信息使频带利用率更高;二是在相同的信息速率下持续时间长,可以提高码元的能量,从而减小由于信道特性引起的码间干扰。我们使用了多进制调制中的16QAM调制,星座图采用了方型星座图,相关参数为:最小相位偏移θmin=18°,最小欧氏距离
7)虚载波和共轭扩展:虚载波的添加在DSP中是通过一个载波映射图来完成的,载波映射图的数据只包括0和1,OFDM的频带被划分为几个子载波,载波映射图中就有几个0和1的数据。0表示相应的子载波不用来传输数据(也就是添0处理),1表示相应的子载波用来传输数据。在我们的OFDM系统中一共使用了256个子载波,其中128个是虚载波,前面的112个和后面的16个都是虚载波,只有中间的128个子载波是用来传输数据的。7) Virtual carrier and conjugate extension: The addition of virtual carrier is done through a carrier map in DSP. The data in the carrier map only includes 0 and 1. The frequency band of OFDM is divided into several subcarriers. The carrier map There are several 0 and 1 data in it. 0 indicates that the corresponding subcarrier is not used to transmit data (that is, add 0), and 1 indicates that the corresponding subcarrier is used to transmit data. A total of 256 subcarriers are used in our OFDM system, 128 of which are virtual carriers, the front 112 and the latter 16 are virtual carriers, and only the middle 128 subcarriers are used to transmit data.
载波映射图规则 Carrier Map Rules
8)共轭扩展的实质是运用了傅里叶变换的特性。我们知道实信号傅里叶变换后的结果是幅度谱呈偶对称,相位谱呈奇对称,这是实信号所特别具有的。OFDM用IFFT来实现调制也就是把频域信号转换为时域信号,如果我们有意地将频域信号的幅度谱安排为偶对称,相位谱安排为奇对称,则变换出来的时域信号必然为实信号。这样我们就可以不用经过载波调制就能将数据靠单路D/A发送出去,并且不会改变信号的频谱。如果OFDM采用I、Q路的方式,则必须加上载波调制才能将数据发送出去。所以共轭扩展就是有意识地将频域补为符合实信号特点的频域。8) The essence of conjugate extension is to use the characteristics of Fourier transform. We know that the result of the Fourier transform of the real signal is that the amplitude spectrum is evenly symmetric, and the phase spectrum is oddly symmetric, which is special for real signals. OFDM uses IFFT to achieve modulation, which is to convert the frequency domain signal into a time domain signal. If we intentionally arrange the amplitude spectrum of the frequency domain signal as even symmetry and the phase spectrum as odd symmetry, the transformed time domain signal must be real signal. In this way, we can send the data by a single D/A without carrier modulation, and the frequency spectrum of the signal will not be changed. If OFDM adopts the way of I and Q channels, carrier modulation must be added to send the data. So the conjugate extension is to consciously complement the frequency domain to the frequency domain that conforms to the characteristics of the real signal.
9)虚载波和共轭扩展共同作用的结果是:OFDM系统以单路发送信号,如果发送信号的基带频谱宽度为W,则在虚载波的作用下实际发送信号占用的频谱为。DSP中虚载波和共轭扩展的实现都是对存储器内容进行修改或者重新排序来实现的。9) The result of the joint action of the virtual carrier and conjugate extension is that the OFDM system transmits signals in a single channel. If the baseband spectrum width of the transmitted signal is W, the spectrum occupied by the actual transmitted signal under the action of the virtual carrier is . The implementation of virtual carrier and conjugate expansion in DSP is realized by modifying or reordering the contents of memory.
10)IFFT在DSP中的实现:在IFFT中,采用了TI基于基4和基2的IFFT算法,这样做的好处是减少了复数乘法的次数,还有一个很好的特点就是在定点DSP芯片中,可以非常简单的应用右移一位的方法来完成l/N的运算,并且防止了运算过程中的溢出可能。10) Implementation of IFFT in DSP: In IFFT, TI’s IFFT algorithm based on radix 4 and radix 2 is used. The advantage of this is that the number of complex multiplications is reduced. Another good feature is that it can be used in fixed-point DSP chips. In , it is very simple to apply the method of shifting one bit to the right to complete the l/N operation, and prevent the possibility of overflow during the operation.
11)D/A数据调整:在进行数据打包之前还有一项工作必须做,就是原始数据转换为适合D/A发送的数据。11) D/A data adjustment: Before data packaging, there is another work that must be done, which is to convert the original data into data suitable for D/A transmission.
接收端:Receiving end:
1).信号经由信道的传输在接收端首先通过耦合器,然后进行载波搬移这个是和发送端相对应的一个将信号下变频过程。1). The transmission of the signal through the channel first passes through the coupler at the receiving end, and then carries out carrier shifting. This is a process of down-converting the signal corresponding to the sending end.
2).在信号作完下变频以后,经过A/D采样将模拟信号变为数字信号。2). After the signal is down-converted, the analog signal is converted into a digital signal through A/D sampling.
3).同步模块:OFDM系统中同步是非常关键的技术,但由于时间原因和原先提出的同步算法实现起来有困难,所以我们在系统中只用了简单的能量相关同步的方法,就OFDM同步来讲我们还有很多工作需要去做。我们的同步分为四步,符号粗同步,小数频率估计和纠正,整数频率估计和纠正以及精细同步,整个这个同步过程需要很好的控制时钟,在完成以上的同步过程后我们进行相位的估计和纠正,和最佳采样点判别。在完成同步以后我们对信号的帧进行处理,我们丢弃信号帧中的循环前缀和同步头,直接将数据帧中的数据段交给后面的处理单元。3). Synchronization module: Synchronization is a very critical technology in OFDM system, but it is difficult to implement due to time reasons and the original synchronization algorithm, so we only use a simple energy-related synchronization method in the system to synchronize OFDM Speaking of which, we still have a lot of work to do. Our synchronization is divided into four steps, symbol coarse synchronization, fractional frequency estimation and correction, integer frequency estimation and correction, and fine synchronization. The entire synchronization process requires a good control of the clock. After completing the above synchronization process, we estimate the phase And correction, and best sampling point discrimination. After the synchronization is completed, we process the signal frame. We discard the cyclic prefix and synchronization header in the signal frame, and directly hand over the data segment in the data frame to the subsequent processing unit.
4).我们采用了模块同步的方法,即采样进来一定数量的数据以后DSP才触发同步模块进行同步,如我们是每128点数据触发一次同步模块,这样就降低了保存现场和上下文切换所消耗的指令,提高了程序运行的效率。4). We adopt the method of module synchronization, that is, the DSP triggers the synchronization module to synchronize after a certain amount of data is sampled. For example, we trigger the synchronization module every 128 points of data, which reduces the consumption of saving the scene and context switching The instruction improves the efficiency of program operation.
5).粗同步:在接收端,当接收机发现M(n)的输出值在一段时间内保持大于某个门限时,则认为帧头被正确捕获。虽然从某种角度来说,这个帧头捕获函数具有一定的模糊性,但是它实现简单,可以最快得捕捉帧头,而随后还有细同步模块来给出精确的定时位置。5). Coarse synchronization: at the receiving end, when the receiver finds that the output value of M(n) remains greater than a certain threshold for a period of time, it considers that the frame header is correctly captured. Although from a certain point of view, this frame header capture function has a certain degree of ambiguity, but it is simple to implement, and can capture the frame header as quickly as possible, and then there is a fine synchronization module to give precise timing positions.
6).精度方面的处理我们所选用的DSP是C54X系列的,为16bit的定点DSP。6). The processing of precision. The DSP we choose is C54X series, which is a 16-bit fixed-point DSP.
7).细同步:由于帧头捕获算法得到的帧头定位只落入帧头相关函数的平原区,因此帧头位置有一定的模糊性,本系统采用的精细定时是基于IEEE 802.11a中用双相关来精细同步的思想,即让接收序列与本地的参考序列作复相关,就能获得突出而且尖锐的相关峰,这样做的另一个好处是检测是否有周期噪声产生的伪帧头捕获,从而提高同步的准确性。7).Fine synchronization: because the frame header positioning obtained by the frame header capture algorithm only falls into the plain area of the frame header correlation function, the frame header position has certain ambiguity. The fine timing adopted by this system is based on IEEE 802.11a The idea of double correlation to fine synchronization, that is, to make the received sequence complexly correlated with the local reference sequence, can obtain a prominent and sharp correlation peak. Another advantage of this is to detect whether there is a pseudo-frame header capture generated by periodic noise. Thereby improving the accuracy of synchronization.
8).存储量和精度处理:细同步在进行运算的时候需要2个128字节的DSP存储器模块,外加1个A/D数据写入模块一共需要3个存储模块,所以粗同步中4个模块的存储空间已经能够满足细同步的要求。在精度处理方面和粗同步是一样的。8). Storage capacity and precision processing: fine synchronization requires two 128-byte DSP memory modules, plus an A/D data writing module requires a total of 3 storage modules, so 4 in coarse synchronization The storage space of the module has been able to meet the requirements of fine synchronization. In terms of precision processing, it is the same as coarse synchronization.
9).FFT模块实现:FFT运用在接收端,因为接收端接收到的数据都是实数,所以采用了一定的方法使实数FFT变为复数FFT进行运算,节约了原来近一半的计算量。实际上这种方法还一并完成了解共轭扩展。9). Realization of FFT module: FFT is used at the receiving end, because the data received at the receiving end are all real numbers, so a certain method is adopted to convert real number FFT into complex number FFT for operation, which saves nearly half of the original calculation amount. In fact, this method also completes the understanding of conjugate expansion.
10).去扩展,载波逆映射,将频谱下变频变换为基带信号;10). Despreading, carrier inverse mapping, down-converting the frequency spectrum into a baseband signal;
11).数据反调整,反16QAM映射,反交织。在接收端,反交织器将解调后的数据按列的方向排成m行n列的阵列形式,然后按行的方向依次读出数据,完成数据的反交织;11). Data anti-adjustment, anti-16QAM mapping, anti-interleaving. At the receiving end, the deinterleaver arranges the demodulated data into an array of m rows and n columns according to the column direction, and then reads the data sequentially according to the row direction to complete the deinterleaving of the data;
12).Viterbi译码的实现:蝶型图是Viterbi算法实现的核心,蝶型图的处理决定了Viterbi算法的效率。在DSP中实现Viterbi,我们运用了一些方法和手段来提高程序的质量。12). Implementation of Viterbi decoding: Butterfly diagram is the core of Viterbi algorithm implementation, and the processing of butterfly diagram determines the efficiency of Viterbi algorithm. To implement Viterbi in DSP, we have used some methods and means to improve the quality of the program.
利用产生快表的方法提高了计算分支度量的速度。The method of generating fast table improves the speed of calculating branch metrics.
充分利用了C54X DSP循环寻址的功能,使Metrix和Transition_matrix都限制在128字节的Circular Buffer里面,最大可能的节约和利用了存储器。充分利用了DSP对Viterbi算法的硬件支持。比如累加器的双16位运算能力(C16=1);专门为Viterbi算法设计的比较、选择和存储单元(CSSU)等,使用这些专门的硬件支持加速了解码的速度。Make full use of the circular addressing function of C54X DSP, so that both Metrix and Transition_matrix are limited to 128 bytes of Circular Buffer, which saves and utilizes the memory as much as possible. Make full use of DSP's hardware support for Viterbi algorithm. For example, the dual 16-bit computing capability of the accumulator (C16=1); the comparison, selection and storage unit (CSSU) specially designed for the Viterbi algorithm, etc., using these special hardware supports to accelerate the speed of decoding.
13).在译码完成以后,利用接收终端(PC等)的通信口(串口)来接收数据。13). After the decoding is completed, use the communication port (serial port) of the receiving terminal (PC, etc.) to receive the data.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610096539 CN1937435A (en) | 2006-09-30 | 2006-09-30 | Digital signal processing method for power line communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610096539 CN1937435A (en) | 2006-09-30 | 2006-09-30 | Digital signal processing method for power line communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1937435A true CN1937435A (en) | 2007-03-28 |
Family
ID=37954754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200610096539 Pending CN1937435A (en) | 2006-09-30 | 2006-09-30 | Digital signal processing method for power line communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1937435A (en) |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035573A (en) * | 2009-09-24 | 2011-04-27 | 株式会社电装 | Method of communicating with using electric power line for mobile body |
CN102123514A (en) * | 2010-01-08 | 2011-07-13 | 北京新岸线无线技术有限公司 | Method for realizing multiple accesses in wireless local area network and wireless local area network system |
CN101645613B (en) * | 2009-09-21 | 2011-12-07 | 邓洪盛 | Line-pass digital switch |
CN101753502B (en) * | 2008-11-28 | 2012-05-23 | 华为技术有限公司 | Signal processing method and signal processing device |
CN102484504A (en) * | 2009-06-12 | 2012-05-30 | 马克西姆综合产品公司 | Transmitter and method for applying multi-tone OFDM based communications within a lower frequency range |
CN101662292B (en) * | 2008-08-28 | 2012-07-25 | 电信科学技术研究院 | Method and device for confirming interleaver |
CN101667839B (en) * | 2008-09-02 | 2012-10-03 | 电信科学技术研究院 | Interleaving method |
CN102739339A (en) * | 2011-04-01 | 2012-10-17 | 杭州讯能科技有限公司 | Power line carrier communication method and system thereof |
CN101394392B (en) * | 2008-11-12 | 2012-11-07 | 北京邮电大学 | Signal diversifying method for OFDM system |
CN102801676A (en) * | 2012-03-06 | 2012-11-28 | 东南大学 | Virtual-instrument-based receiver |
CN103222250A (en) * | 2012-11-29 | 2013-07-24 | 华为技术有限公司 | Boardband accessing method, apparatus and system |
CN104716997A (en) * | 2013-12-12 | 2015-06-17 | 上海贝尔股份有限公司 | Distributed antenna system and signal processing method thereof |
CN105007099A (en) * | 2015-07-28 | 2015-10-28 | 中国科学院微电子研究所 | Power line communication system based on OFDM technology |
CN105119635A (en) * | 2015-07-16 | 2015-12-02 | 河南行知专利服务有限公司 | Low-voltage electric power line carrier communication method |
CN105450260A (en) * | 2015-11-26 | 2016-03-30 | 宁波迦南电子有限公司 | Power line carrier communication method |
CN106534797A (en) * | 2016-12-03 | 2017-03-22 | 浙江大学 | Real-time wireless monitoring system based on orthogonal frequency division multiple access technology |
CN107005328A (en) * | 2014-11-24 | 2017-08-01 | 松下知识产权经营株式会社 | Communicator and communication means |
CN107241120A (en) * | 2016-03-24 | 2017-10-10 | 中国科学院微电子研究所 | Method and device for acquiring zero setting threshold value in broadband power line communication |
CN107888533A (en) * | 2016-09-30 | 2018-04-06 | 华为技术有限公司 | A kind of data processing method, device and system |
CN109150466A (en) * | 2017-06-16 | 2019-01-04 | 华为技术有限公司 | Method and apparatus for carrying out data transmission |
CN110278008A (en) * | 2018-03-16 | 2019-09-24 | 华为技术有限公司 | A power line communication method and device |
CN110535802A (en) * | 2018-05-23 | 2019-12-03 | 英特尔公司 | Approach the multi-carrier modulation and coded system and method for capacity |
CN113258957A (en) * | 2021-05-19 | 2021-08-13 | 深圳市多酷科技有限公司 | Power line communication product test system, control method and device |
CN114257485A (en) * | 2021-12-16 | 2022-03-29 | 成都星联芯通科技有限公司 | Frame header capturing method and device, storage medium and electronic equipment |
CN114584174A (en) * | 2022-01-22 | 2022-06-03 | 北京睿信丰科技有限公司 | Signal capturing method based on frequency domain focusing and synthetic Fourier transform |
CN116719005A (en) * | 2023-08-10 | 2023-09-08 | 南京隼眼电子科技有限公司 | Fixed-point data processing method and device based on FPGA and storage medium |
-
2006
- 2006-09-30 CN CN 200610096539 patent/CN1937435A/en active Pending
Cited By (41)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101662292B (en) * | 2008-08-28 | 2012-07-25 | 电信科学技术研究院 | Method and device for confirming interleaver |
CN101667839B (en) * | 2008-09-02 | 2012-10-03 | 电信科学技术研究院 | Interleaving method |
CN101394392B (en) * | 2008-11-12 | 2012-11-07 | 北京邮电大学 | Signal diversifying method for OFDM system |
CN101753502B (en) * | 2008-11-28 | 2012-05-23 | 华为技术有限公司 | Signal processing method and signal processing device |
CN102484504A (en) * | 2009-06-12 | 2012-05-30 | 马克西姆综合产品公司 | Transmitter and method for applying multi-tone OFDM based communications within a lower frequency range |
CN102484504B (en) * | 2009-06-12 | 2014-11-12 | 马克西姆综合产品公司 | Transmitter and method for applying multi-tone OFDM based communications within a lower frequency range |
CN101645613B (en) * | 2009-09-21 | 2011-12-07 | 邓洪盛 | Line-pass digital switch |
CN102035573A (en) * | 2009-09-24 | 2011-04-27 | 株式会社电装 | Method of communicating with using electric power line for mobile body |
CN102123514A (en) * | 2010-01-08 | 2011-07-13 | 北京新岸线无线技术有限公司 | Method for realizing multiple accesses in wireless local area network and wireless local area network system |
CN102739339A (en) * | 2011-04-01 | 2012-10-17 | 杭州讯能科技有限公司 | Power line carrier communication method and system thereof |
CN102739339B (en) * | 2011-04-01 | 2015-04-22 | 杭州讯能科技有限公司 | Power line carrier communication method and system thereof |
CN102801676A (en) * | 2012-03-06 | 2012-11-28 | 东南大学 | Virtual-instrument-based receiver |
WO2014082252A1 (en) * | 2012-11-29 | 2014-06-05 | 华为技术有限公司 | Broadband access method, apparatus and system |
CN103222250A (en) * | 2012-11-29 | 2013-07-24 | 华为技术有限公司 | Boardband accessing method, apparatus and system |
CN104716997A (en) * | 2013-12-12 | 2015-06-17 | 上海贝尔股份有限公司 | Distributed antenna system and signal processing method thereof |
CN107005328A (en) * | 2014-11-24 | 2017-08-01 | 松下知识产权经营株式会社 | Communicator and communication means |
CN107005328B (en) * | 2014-11-24 | 2019-04-19 | 松下知识产权经营株式会社 | Communication device and communication means |
CN105119635A (en) * | 2015-07-16 | 2015-12-02 | 河南行知专利服务有限公司 | Low-voltage electric power line carrier communication method |
CN105007099A (en) * | 2015-07-28 | 2015-10-28 | 中国科学院微电子研究所 | Power line communication system based on OFDM technology |
CN105450260B (en) * | 2015-11-26 | 2017-09-29 | 宁波迦南智能电气股份有限公司 | A kind of power-line carrier communication method |
CN105450260A (en) * | 2015-11-26 | 2016-03-30 | 宁波迦南电子有限公司 | Power line carrier communication method |
CN107241120A (en) * | 2016-03-24 | 2017-10-10 | 中国科学院微电子研究所 | Method and device for acquiring zero setting threshold value in broadband power line communication |
CN107888533B (en) * | 2016-09-30 | 2020-11-06 | 华为技术有限公司 | Data processing method, device and system |
CN107888533A (en) * | 2016-09-30 | 2018-04-06 | 华为技术有限公司 | A kind of data processing method, device and system |
CN106534797A (en) * | 2016-12-03 | 2017-03-22 | 浙江大学 | Real-time wireless monitoring system based on orthogonal frequency division multiple access technology |
CN109150466A (en) * | 2017-06-16 | 2019-01-04 | 华为技术有限公司 | Method and apparatus for carrying out data transmission |
CN109150466B (en) * | 2017-06-16 | 2021-02-09 | 华为技术有限公司 | Method and device for data transmission |
CN110278008B (en) * | 2018-03-16 | 2021-05-04 | 华为技术有限公司 | A power line communication method, device and computer storage medium |
CN110278008A (en) * | 2018-03-16 | 2019-09-24 | 华为技术有限公司 | A power line communication method and device |
US11387865B2 (en) | 2018-03-16 | 2022-07-12 | Huawei Technologies Co., Ltd. | Power line communication method and apparatus |
CN110535802A (en) * | 2018-05-23 | 2019-12-03 | 英特尔公司 | Approach the multi-carrier modulation and coded system and method for capacity |
CN110535802B (en) * | 2018-05-23 | 2024-05-14 | 麦利尔亚洲新加坡私人有限公司 | Capacity-approximating multi-carrier modulation and coding system and method |
CN118214636A (en) * | 2018-05-23 | 2024-06-18 | 麦利尔亚洲新加坡私人有限公司 | Capacity-approximating multi-carrier modulation and coding system and method |
US12009839B2 (en) | 2018-05-23 | 2024-06-11 | Maxlinear, Inc. | Capacity achieving multicarrier modulation and coding systems and methods |
CN113258957A (en) * | 2021-05-19 | 2021-08-13 | 深圳市多酷科技有限公司 | Power line communication product test system, control method and device |
CN113258957B (en) * | 2021-05-19 | 2022-08-02 | 深圳市多酷科技有限公司 | Power line communication product test system, control method and device |
CN114257485A (en) * | 2021-12-16 | 2022-03-29 | 成都星联芯通科技有限公司 | Frame header capturing method and device, storage medium and electronic equipment |
CN114584174B (en) * | 2022-01-22 | 2022-12-06 | 北京睿信丰科技有限公司 | Signal capturing method based on frequency domain focusing and synthetic Fourier transform |
CN114584174A (en) * | 2022-01-22 | 2022-06-03 | 北京睿信丰科技有限公司 | Signal capturing method based on frequency domain focusing and synthetic Fourier transform |
CN116719005A (en) * | 2023-08-10 | 2023-09-08 | 南京隼眼电子科技有限公司 | Fixed-point data processing method and device based on FPGA and storage medium |
CN116719005B (en) * | 2023-08-10 | 2023-10-03 | 南京隼眼电子科技有限公司 | Fixed-point data processing method and device based on FPGA and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1937435A (en) | Digital signal processing method for power line communication system | |
CN1988402B (en) | Method for realizing power line carrier communication system | |
CN110166400B (en) | Synchronization method, device, network equipment and storage medium of high-speed industrial communication system | |
CN107528671B (en) | A system frame number detection method for narrowband Internet of Things NB-IoT | |
CN102821080B (en) | Receiving method for bandwidth expansion of 1553B communication bus | |
CN106453185B (en) | A kind of IDMA system improved method based on CCSK modulation | |
CN113794668B (en) | A WiFi-ZigBee reliable data transmission method based on symbol-level chip combination mode | |
CN101848184A (en) | Selective mapping scrambling method for reducing peak-to-average power ratio of orthogonal frequency division multiplexing system | |
CN110336765B (en) | Synchronization method, device, network equipment and storage medium of high-speed industrial communication system | |
CN111092663A (en) | An Optical Orthogonal Frequency Division Multiplexing System and Communication Method Based on Bit Weighted Distribution | |
CN101651647A (en) | Method and device for reconstructing CP-OFDM signal in time-domain synchronous orthogonal frequency-division multiplexing system | |
Alves et al. | Architecture design and implementation of key components of an OFDM transceiver for IEEE 802.15. 4g | |
Tran et al. | A complete real-time 802.11 a baseband receiver implemented on an array of programmable processors | |
CN103249149A (en) | Method and device for sending and receiving downlink data block of grouped data business | |
CN201044450Y (en) | Multi-carrier modulation device for free-space optical communication | |
CN202949449U (en) | Time division-long term evolution (TD-LTE) channel estimation system | |
CN204967862U (en) | High -speed wireless pollution sources data transmission system based on OFDM technique | |
WO2012100484A1 (en) | Data reconstruction method and device | |
Liu et al. | Design of narrow-band high speed power-line communications system based on G3-PLC in smart grid | |
CN102412934B (en) | Digital coding transmission method | |
CN1968237B (en) | Apparatus and method for reducing mean peak power rate in orthogonal frequency-division multiplexing system | |
Niu et al. | A research on modulation in digital communication system | |
Chen et al. | Performance Analysis of Reception for OFDM Communication Systems | |
Radder et al. | Efficient MODEM Design For SDR Application | |
CN118101409B (en) | OFDM symbol synchronization method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20070328 |