[go: up one dir, main page]

CN104243084B - Error correction coding/decoding method and its device applied to human body communication channel - Google Patents

Error correction coding/decoding method and its device applied to human body communication channel Download PDF

Info

Publication number
CN104243084B
CN104243084B CN201310226302.6A CN201310226302A CN104243084B CN 104243084 B CN104243084 B CN 104243084B CN 201310226302 A CN201310226302 A CN 201310226302A CN 104243084 B CN104243084 B CN 104243084B
Authority
CN
China
Prior art keywords
data stream
bch
human body
body communication
communication channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310226302.6A
Other languages
Chinese (zh)
Other versions
CN104243084A (en
Inventor
聂泽东
戴荣新
胡必祥
陈弘
罗德军
段长江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201310226302.6A priority Critical patent/CN104243084B/en
Publication of CN104243084A publication Critical patent/CN104243084A/en
Application granted granted Critical
Publication of CN104243084B publication Critical patent/CN104243084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Error Detection And Correction (AREA)

Abstract

本发明涉及一种应用于人体通信信道的纠错编解码方法,依次包括如下步骤:对输入数据流进行BCH编码;对经过BCH编码后的数据流进行插入同步状态字处理;对经过插入同步状态字处理后的数据流进行随机分组交织编码;对经过随机分组交织编码后的数据流进行调制;将经过调制后的数据流通过人体通信信道传输;接收由人体通信信道传输的数据流并进行解调;检测经过解调后的数据流的同步状态字;对经过同步状态字检测处理后的数据流进行解交织;对经过解交织后的数据流进行BCH解码并输出。该应用于人体通信信道的纠错编解码方法满足了对随机错误和突发错误纠正的要求。另外,还提供了一种应用于人体通信信道的纠错编解码装置,可以纠正随机错误和突发错误。

The invention relates to an error correction encoding and decoding method applied to a human body communication channel, which comprises the following steps in turn: performing BCH encoding on an input data stream; performing insertion synchronization status word processing on the BCH encoded data stream; Perform random packet interleaving encoding on the data stream after word processing; modulate the data stream after random packet interleaving encoding; transmit the modulated data stream through the human body communication channel; receive and decode the data stream transmitted by the human body communication channel tune; detect the synchronization status word of the demodulated data stream; deinterleave the data stream after the synchronization status word detection; perform BCH decoding and output the deinterleaved data stream. The error correction encoding and decoding method applied to the human body communication channel meets the requirements for correcting random errors and burst errors. In addition, it also provides an error correction coding and decoding device applied to the communication channel of the human body, which can correct random errors and burst errors.

Description

应用于人体通信信道的纠错编解码方法及其装置Error correction coding and decoding method and device applied to human body communication channel

技术领域technical field

本发明涉及无线体域网领域,特别是涉及一种应用于人体通信信道的纠错编解码方法及其装置。The invention relates to the field of wireless body area networks, in particular to an error correction encoding and decoding method and device applied to human body communication channels.

背景技术Background technique

随着现代科技的迅猛发展,数字通信已经深入到人类社会生活的方方面面。为满足着各式各样的应用要求,各种新型通信方式层出不穷。人体通信就是一种新型的以人体作为信号传播媒介的无线通信方式。不论在医疗健康领域还是日常工作生活,人体通信都有广阔的应用前景。但是由于人的运动和应用环境的变化,信号在人体通信信道的传输过程中不仅会有随机错误,而且也可能存在突发错误,这些传输过程中的错误会严重影响人体通信的通信质量。因而如何设计出适合人体通信的基带系统,保证信息的有效性、可靠性成为亟待解决的问题。With the rapid development of modern science and technology, digital communication has penetrated into all aspects of human social life. In order to meet various application requirements, various new communication methods emerge in an endless stream. Human body communication is a new type of wireless communication that uses the human body as a signal transmission medium. No matter in the field of medical health or daily work and life, human body communication has broad application prospects. However, due to changes in human motion and application environment, not only random errors but also burst errors may occur during the transmission of signals in the human body communication channel. These errors in the transmission process will seriously affect the communication quality of human body communication. Therefore, how to design a baseband system suitable for human body communication to ensure the validity and reliability of information has become an urgent problem to be solved.

无线体域网(Body Area Network,BAN)是一种在人体近端的传感器网络,其由一些具有通信功能的传感节点和一个身体主站(或称BAN协调器)组成。在2012年,无线体域网的规范标准IEEE(Institute of Electrical and Electronics Engineers,电气电子工程师协会)802.15.6颁布。人体通信(Human Body Communication,HBC)技术作为无线体域网的物理层技术之一越来越受到人们的重视。早期的人体通信系统比较简单,有的甚至不带编码纠错能力。而随着应用的更加广泛和复杂,信道纠错编码的相关工作越来越受到重视。目前对信道纠错编码中主流的编码有BCH码(BCH码取自Bose、Ray-Chaudhuri与Hocquenghem的缩写,是编码理论尤其是纠错码中研究得比较多的一种编码方法)、RS码(Reed-solomon codes,里所码)、卷积码、Turbo码(Turbo码是一类应用在外层空间卫星通信和设计者寻找完成最大信息传输通过一个限制带宽通信链路在数据破坏的噪声面前的其它无线通信应用程序的高性能纠错码)和LDPC码(Low Density Parity Check Code,低密度奇偶校验码)等。各种编码都有其不同的应用场合。而体域网物理层的信道编码多采用普通的BCH码。BCH码是一种很好的线性分组码。然而现有的用于人体通信信道的BCH编码技术仅能对随机错误具有很好的纠错能力,不能够满足对突发错误纠正的要求。Wireless Body Area Network (BAN) is a sensor network near the human body, which consists of some sensor nodes with communication functions and a body master station (or BAN coordinator). In 2012, the specification standard IEEE (Institute of Electrical and Electronics Engineers, Institute of Electrical and Electronics Engineers) 802.15.6 of the wireless body area network was promulgated. Human Body Communication (HBC) technology, as one of the physical layer technologies of wireless body area network, has attracted more and more attention. Early human body communication systems were relatively simple, and some did not even have coding error correction capabilities. With the more extensive and complex applications, more and more attention has been paid to the related work of channel error correction coding. At present, the mainstream codes in channel error correction coding include BCH code (BCH code is taken from the abbreviation of Bose, Ray-Chaudhuri and Hocquenghem, which is a coding method that has been studied more in coding theory, especially in error correction codes), RS code (Reed-solomon codes, Reed-solomon codes), convolutional codes, Turbo codes (Turbo codes are a class of applications in satellite communications in outer space and designers seek to achieve maximum information transmission over a bandwidth-limited communication link in the face of data-destroying noise High-performance error-correcting codes for other wireless communication applications) and LDPC codes (Low Density Parity Check Code, Low Density Parity Check Code), etc. Various codes have their different applications. The channel coding of the physical layer of the body area network mostly adopts common BCH codes. BCH code is a good linear block code. However, the existing BCH coding technology used in human body communication channels can only have a good error correction ability for random errors, and cannot meet the requirements for burst error correction.

发明内容Contents of the invention

基于此,有必要提供一种能够同时满足对随机错误和突发错误纠正的要求的应用于人体通信信道的纠错编解码方法及其装置。Based on this, it is necessary to provide an error correction encoding and decoding method and its device applied to human body communication channels, which can meet the requirements for correcting random errors and burst errors at the same time.

一种应用于人体通信信道的纠错编解码方法,依次包括如下步骤:An error correction encoding and decoding method applied to a human body communication channel, comprising the following steps in sequence:

对输入数据流进行BCH编码;BCH encode the input data stream;

对经过BCH编码后的数据流进行插入同步状态字处理;Insert synchronization status word processing on the data stream encoded by BCH;

对经过插入同步状态字处理后的数据流进行随机分组交织编码;Perform random packet interleaving encoding on the data stream processed by inserting the synchronization status word;

对经过随机分组交织编码后的数据流进行调制;Modulate the data stream after random packet interleaving and coding;

将经过调制后的数据流通过人体通信信道传输;Transmit the modulated data stream through the human body communication channel;

接收由人体通信信道传输的数据流并进行解调;Receive and demodulate the data stream transmitted by the human body communication channel;

检测经过解调后的数据流的同步状态字;Detecting the synchronization status word of the demodulated data stream;

对经过同步状态字检测处理后的数据流进行解交织;Deinterleave the data stream after the synchronization status word detection process;

对经过解交织后的数据流进行BCH解码并输出。Perform BCH decoding on the deinterleaved data stream and output it.

在其中一个实施例中,在所述对输入数据流进行BCH编码的步骤中,采用并行同步编码方式对输入数据进行编码。In one of the embodiments, in the step of performing BCH encoding on the input data stream, the input data is encoded in a parallel synchronous encoding manner.

在其中一个实施例中,在所述对输入数据流进行BCH编码的步骤之前,还包括如下步骤:In one of the embodiments, before the step of performing BCH encoding on the input data stream, the following steps are also included:

接收输入数据流并将输入数据流存储于缓存器。An input data stream is received and stored in a buffer.

在其中一个实施例中,在所述对经过随机分组交织编码后的数据流进行调制的步骤中,采用BPSK调制法对经过随机分组交织编码后的数据流进行调制;在所述接收由人体通信信道传输的数据流并进行解调的步骤中,采用BPSK解调法对由人体通信信道传输的数据流进行解调。In one of the embodiments, in the step of modulating the data stream encoded by random block interleaving, BPSK modulation is used to modulate the data stream encoded by random block interleaving; In the step of demodulating the data stream transmitted by the channel, the data stream transmitted by the human body communication channel is demodulated by using the BPSK demodulation method.

在其中一个实施例中,在所述对经过解交织后的数据流进行BCH解码并输出的步骤中,通过BCH解码得到的数据流根据先入先出的规则输出。In one embodiment, in the step of BCH decoding and outputting the deinterleaved data stream, the data stream obtained through BCH decoding is output according to a first-in-first-out rule.

一种应用于人体通信信道的纠错编解码装置,包括依次顺序连接的BCH编码器、插入同步状态字模块、随机分组交织器、调制器、解调器、同步状态字检测器、解交织器以及BCH解码器,所述BCH编码器对输入数据流进行BCH编码,所述插入同步状态字模块对经过BCH编码后的数据流进行插入同步状态字处理,所述随机分组交织器对经过插入同步状态字处理后的数据流进行随机分组交织编码,所述调制器对经过随机分组交织编码后的数据流进行调制,经过调制后的数据流通过人体通信信道传输,所述解调器接收由人体通信信道传输的数据流并进行解调,所述同步状态字检测器检测经过解调后的数据流的同步状态字,所述解交织器对经过同步状态字检测处理后的数据流进行解交织,所述BCH解码器对经过解交织后的数据流进行BCH解码。An error correction encoding and decoding device applied to a human body communication channel, comprising a sequentially connected BCH encoder, an insertion synchronization status word module, a random packet interleaver, a modulator, a demodulator, a synchronization status word detector, and a deinterleaver And a BCH decoder, the BCH encoder performs BCH encoding on the input data stream, the insertion synchronization status word module performs insertion synchronization status word processing on the data stream after BCH encoding, and the random packet interleaver performs insertion synchronization status word processing on the input data stream. The data stream processed by the state word is subjected to random block interleaving encoding, the modulator modulates the data stream after random block interleaving encoding, and the modulated data stream is transmitted through the human body communication channel, and the demodulator receives The data stream transmitted by the communication channel is demodulated, the synchronization status word detector detects the synchronization status word of the demodulated data stream, and the deinterleaver deinterleaves the data stream after the synchronization status word detection process , the BCH decoder performs BCH decoding on the deinterleaved data stream.

在其中一个实施例中,所述应用于人体通信信道的纠错编解码装置还包括控制器,所述BCH编码器包括32条BCH编码支路,所述32条BCH编码支路以并联方式连接,所述控制器分别连接至32条BCH编码支路,在所述控制器的控制下,所述32条BCH编码支路使用同一个时钟和复位信号,所述32条BCH编码支路分别独立串接有所述插入同步状态字模块,所述控制器分别连接至32条BCH编码支路上串接的插入同步状态字模块,在所述控制器的控制下,所述插入同步状态字模块为每一路BCH编码支路输出的数据流插入同步状态字。In one of the embodiments, the error correction coding and decoding device applied to the human body communication channel further includes a controller, and the BCH encoder includes 32 BCH coding branches, and the 32 BCH coding branches are connected in parallel , the controllers are respectively connected to 32 BCH encoding branches, under the control of the controller, the 32 BCH encoding branches use the same clock and reset signal, and the 32 BCH encoding branches are independent The insertion synchronization status word module is connected in series, and the controller is respectively connected to the insertion synchronization status word modules connected in series on the 32 BCH encoding branches. Under the control of the controller, the insertion synchronization status word module is The data stream output by each BCH coding branch is inserted into the synchronization status word.

在其中一个实施例中,所述应用于人体通信信道的纠错编解码装置还包括缓存器,所述缓存器与所述BCH编码器输入端相连,所述缓存器用于接收输入数据并将其存储。In one of the embodiments, the error correction codec device applied to the human body communication channel further includes a buffer, the buffer is connected to the input end of the BCH encoder, and the buffer is used to receive input data and convert it to storage.

在其中一个实施例中,所述调制器和解调器分别为BPSK调制器和BPSK解调器,所述BPSK调制器对经过随机分组交织编码后的数据流进行BPSK调制,所述BPSK解调器对由人体通信信道传输的数据流并进行BPSK解调。In one of the embodiments, the modulator and the demodulator are respectively a BPSK modulator and a BPSK demodulator, and the BPSK modulator performs BPSK modulation on the data stream after random block interleaving encoding, and the BPSK demodulator The device performs BPSK demodulation on the data stream transmitted by the human body communication channel.

在其中一个实施例中,所述BCH解码器的输出端连接有FIFO数据缓存器,所述FIFO数据缓存器按照数据输入的先后顺序有序地将输出数据输出。In one embodiment, the output end of the BCH decoder is connected to a FIFO data buffer, and the FIFO data buffer sequentially outputs the output data according to the sequence of data input.

上述应用于人体通信信道的纠错编解码方法对输入数据流进行BCH编码和随机分组交织编码,之后对数据流进行相应的解码,其中对输入数据流进行BCH编码对随机错误具有很好的纠错能力,而随机分组交织编码对突发错误具有很好的纠错能力,因此上述应用于人体通信信道的纠错编解码方法同时满足了对随机错误和突发错误纠正的要求。另外,还提供了一种应用于人体通信信道的纠错编解码装置,不仅可以纠正随机错误,还可以纠正突发错误。The above-mentioned error correction coding and decoding method applied to the human body communication channel performs BCH coding and random block interleaving coding on the input data stream, and then performs corresponding decoding on the data stream, wherein BCH coding on the input data stream has a good correction effect on random errors Error capability, and random block interleaving coding has a good error correction ability for burst errors, so the error correction coding and decoding method applied to the human body communication channel meets the requirements for random error and burst error correction at the same time. In addition, it also provides an error correction coding and decoding device applied to the communication channel of the human body, which can not only correct random errors, but also correct burst errors.

附图说明Description of drawings

图1为一个实施例的应用于人体通信信道的纠错编解码方法的流程图;Fig. 1 is a flow chart of an embodiment of an error correction encoding and decoding method applied to a human body communication channel;

图2为一个实施例的应用于人体通信信道的纠错编解码装置的结构示意图;Fig. 2 is a schematic structural diagram of an embodiment of an error correction codec device applied to a human body communication channel;

图3为一个实施例的BCH编码器的结构示意图。Fig. 3 is a schematic structural diagram of a BCH encoder of an embodiment.

具体实施方式Detailed ways

为了解决目前用于人体通信信道的BCH编码技术仅能对随机错误具有很好的纠错能力,却不能对突发错误进行有效纠正的问题,本实施方式提供了一种应用于人体通信信道的纠错编解码方法。下面结合具体的实施例,对应用于人体通信信道的纠错编解码方法进行具体的描述。In order to solve the problem that the BCH coding technology currently used in human body communication channels can only have good error correction capabilities for random errors, but cannot effectively correct burst errors, this embodiment provides a method for human body communication channels. Error correction codec method. The error correction coding and decoding method applied to the human body communication channel will be specifically described below in combination with specific embodiments.

请参考图1,本实施方式提供的应用于人体通信信道的纠错编解码方法包括如下步骤:Please refer to FIG. 1, the error correction coding and decoding method applied to the human body communication channel provided by this embodiment includes the following steps:

步骤S100:接收输入数据流并将输入数据流存储于缓存器。缓存器用于暂时存储输入数据流,无需对输入数据流进行实时处理,能够按照实际需要延时处理输入数据流。Step S100: Receive an input data stream and store the input data stream in a buffer. The buffer is used to temporarily store the input data stream, without real-time processing of the input data stream, and can delay processing the input data stream according to actual needs.

步骤S110:对输入数据流进行BCH编码。本实施方式中,在步骤S110中,采用并行同步编码方式对输入数据流进行编码。采用并行同步编码方式能够减少编译码的周期,提高了编码的效率。Step S110: Perform BCH encoding on the input data stream. In this embodiment, in step S110, the input data stream is encoded using a parallel synchronous encoding method. The parallel synchronous encoding method can reduce the encoding and decoding cycle and improve the encoding efficiency.

步骤S120:对经过BCH编码后的数据流进行插入同步状态字处理。插入同步状态字的作用是保持数据流的同步,避免数据流丢失。Step S120: Inserting a synchronization status word into the BCH-encoded data stream. The function of inserting the synchronous status word is to keep the synchronization of the data flow and avoid the loss of the data flow.

步骤S130:对经过插入同步状态字处理后的数据流进行随机分组交织编码。在通信过程中,由于人体通信信道受到外界干扰或信道衰落等可能会产生较长的突发误码,采用随机分组交织编码可以使误码离散化,接收端用纠正随机差错的编码技术消除随机差错,能够改善信号的传输质量。Step S130: Perform random block interleaving coding on the data stream processed by inserting the synchronization status word. In the communication process, due to external interference or channel fading of the human body communication channel, long burst errors may occur. Random block interleaving coding can be used to discretize the errors, and the receiving end uses the coding technology to correct random errors to eliminate random errors. errors, which can improve the transmission quality of the signal.

步骤S140:对经过随机分组交织编码后的数据流进行调制。一般来说,信号源的信息(也称为信源)含有直流分量和频率较低的频率分量,称为基带信号。基带信号往往不能作为传输信号在信道中直接传输,因此必须把基带信号转变为一个相对基带频率而言频率非常高的信号以适合于信道中传输。在本实施方式中,采用BPSK(Binary Phase ShiftKeying,二进制移相键控法)调制法对经过随机分组交织编码后的数据流进行BPSK调制,从而使得经过随机分组交织编码后的数据流适合在人体通信信道中传输。Step S140: Modulate the data stream encoded by random block interleaving. Generally speaking, the information of the signal source (also known as the source) contains a DC component and a lower frequency component, called the baseband signal. The baseband signal often cannot be directly transmitted in the channel as a transmission signal, so the baseband signal must be converted into a signal with a very high frequency relative to the baseband frequency to be suitable for transmission in the channel. In this embodiment, the BPSK (Binary Phase Shift Keying, Binary Phase Shift Keying) modulation method is used to perform BPSK modulation on the data stream after random block interleaving coding, so that the data stream after random block interleaving coding is suitable for human body transmitted in the communication channel.

步骤S150:将经过调制后的数据流通过人体通信信道传输。Step S150: Transmit the modulated data stream through the human body communication channel.

步骤S160:接收由人体通信信道传输的数据流并进行解调。在本实施方式中,由人体通信信道传输的数据流为BPSK数据流,因此采用BPSK解调法对BPSK数据流进行解调。Step S160: Receive and demodulate the data stream transmitted by the human body communication channel. In this embodiment, the data stream transmitted by the human body communication channel is a BPSK data stream, so the BPSK demodulation method is used to demodulate the BPSK data stream.

步骤S170:检测经过解调后的数据流的同步状态字。Step S170: Detect the synchronization status word of the demodulated data stream.

步骤S180:对经过同步状态字检测处理后的数据流进行解交织。Step S180: Perform deinterleaving on the data stream after the synchronization status word detection process.

步骤S190:对经过解交织后的数据流进行BCH解码并输出。Step S190: Perform BCH decoding on the deinterleaved data stream and output it.

上述应用于人体通信信道的纠错编解码方法对输入数据流进行BCH编码和随机分组交织编码,之后对数据流进行相应的解码,其中对输入数据流进行BCH编码对随机错误具有很好的纠错能力,而随机分组交织编码对突发错误具有很好的纠错能力,因此上述应用于人体通信信道的纠错编解码方法同时满足了对随机错误和突发错误纠正的要求。The above-mentioned error correction coding and decoding method applied to the human body communication channel performs BCH coding and random block interleaving coding on the input data stream, and then performs corresponding decoding on the data stream, wherein BCH coding on the input data stream has a good correction effect on random errors Error capability, and random block interleaving coding has a good error correction ability for burst errors, so the error correction coding and decoding method applied to the human body communication channel meets the requirements for random error and burst error correction at the same time.

运用上述应用于人体通信信道的纠错编解码方法,本实施方式还提供了一种应用于人体通信信道的纠错编解码装置。请参考图2,应用于人体通信信道的纠错编解码装置包括缓存器210、BCH编码器220、插入同步状态字模块230、随机分组交织器240、BPSK调制器250、BPSK解调器260、同步状态字检测器270、解交织器280以及BCH解码器290。Using the above error correction codec method applied to the human body communication channel, this embodiment also provides an error correction codec device applied to the human body communication channel. Please refer to Fig. 2, the error correction coding and decoding device applied to the human body communication channel includes a buffer 210, a BCH encoder 220, an insertion synchronization status word module 230, a random packet interleaver 240, a BPSK modulator 250, a BPSK demodulator 260, Sync status word detector 270 , de-interleaver 280 and BCH decoder 290 .

缓存器210、BCH编码器220、插入同步状态字模块230、随机分组交织器240以及BPSK调制器250依次串接。BPSK调制器250输出端连接于人体通信信道。输入数据从缓存器210输入,依次经过BCH编码器220、插入同步状态字模块230、随机分组交织器240以及BPSK调制器250并进入人体通信信道。其中,缓存器210用于接收输入数据流并将其存储。BCH编码器220对输入数据流进行BCH编码。插入同步状态字模块230对经过BCH编码后的数据流进行插入同步状态字处理,用于保持数据流的同步,避免数据流丢失。随机分组交织器240对经过插入同步状态字处理后的数据流进行随机分组交织编码。经过随机分组交织编码后的数据流再经过BPSK调制器250调制,得到BPSK数据流进入人体通信信道。The buffer 210, the BCH encoder 220, the module for inserting the synchronization status word 230, the random packet interleaver 240, and the BPSK modulator 250 are sequentially connected in series. The output end of the BPSK modulator 250 is connected to the human body communication channel. The input data is input from the buffer 210, passes through the BCH encoder 220, inserts the synchronization status word module 230, the random block interleaver 240 and the BPSK modulator 250 in sequence and enters the human body communication channel. Among them, the buffer 210 is used to receive and store the input data stream. The BCH encoder 220 performs BCH encoding on the input data stream. The insertion synchronization status word module 230 performs insertion synchronization status word processing on the BCH-encoded data stream to maintain the synchronization of the data stream and avoid loss of the data stream. The random block interleaver 240 performs random block interleaving coding on the data stream processed by inserting the synchronization status word. The data stream encoded by random block interleaving is then modulated by the BPSK modulator 250, and the obtained BPSK data stream enters the human body communication channel.

请参考图3,应用于人体通信信道的纠错编解码装置还包括控制器300。BCH编码器220包括32条BCH编码支路。32条BCH编码支路以并联方式连接。控制器300分别连接至32条BCH编码支路,在控制器300的控制下,32条BCH编码支路使用同一个时钟和复位信号,从而减少了编译码的周期,提高了编码的效率。此外,32条BCH编码支路均串接有插入同步状态字模块230。控制器300分别连接至32条BCH编码支路上串接的插入同步状态字模块230,在所述控制器300的控制下,插入同步状态字模块230为每一路BCH编码支路输出的数据流插入同步状态字。Please refer to FIG. 3 , the error correction codec device applied to the human body communication channel further includes a controller 300 . The BCH encoder 220 includes 32 BCH encoding branches. The 32 BCH encoding branches are connected in parallel. The controller 300 is respectively connected to the 32 BCH encoding branches. Under the control of the controller 300, the 32 BCH encoding branches use the same clock and reset signal, thereby reducing the encoding and decoding cycle and improving the encoding efficiency. In addition, the 32 BCH encoding branches are all connected in series with a synchronization status word insertion module 230 . The controller 300 is respectively connected to the insertion synchronization status word modules 230 connected in series on the 32 BCH encoding branches. Under the control of the controller 300, the insertion synchronization status word module 230 inserts Synchronization status word.

BPSK解调器260、同步状态字检测器270、解交织器280以及BCH解码器290依次串接。BPSK解调器260输入端连接于人体通信信道。由人体通信信道传输的BPSK数据流依次经过BPSK解调器260、同步状态字检测器270、解交织器280以及BCH解码器290。其中,BPSK解调器260、同步状态字检测器270、解交织器280以及BCH解码器290用于将BPSK数据流解码得到输出数据。在本实施方式中,BCH解码器290的输出端连接有FIFO(First Input FirstOutput,先入先出)数据缓存器。FIFO数据缓存器按照数据输入的先后顺序有序地输出数据。BPSK demodulator 260, sync status word detector 270, de-interleaver 280 and BCH decoder 290 are sequentially connected in series. The input end of the BPSK demodulator 260 is connected to the human body communication channel. The BPSK data stream transmitted by the human body communication channel passes through the BPSK demodulator 260 , the sync status word detector 270 , the deinterleaver 280 and the BCH decoder 290 in sequence. Among them, the BPSK demodulator 260, the synchronization status word detector 270, the deinterleaver 280 and the BCH decoder 290 are used to decode the BPSK data stream to obtain output data. In this embodiment, the output end of the BCH decoder 290 is connected to a FIFO (First Input First Output, First In First Out) data buffer. The FIFO data buffer sequentially outputs data according to the sequence of data input.

下面简要介绍一下BCH解码器290对经过解交织后的数据流进行BCH解码的过程。定义BCH解码器290输入端的数据流为接收多项式r(x)。BCH解码器290对数据流的解码步骤为由接收多项式r(x)计算校正子S=(S1,S2…,S2t),若S=0,则表明接收信息和发送信息一样,无错误,不需要迭代求解错误位置多项式。若S≠0,再通过校正子分量S1,S2…,S2t确定错误位置多项式σ(X)。求解σ(X)的根,即确定错误位置数β12…βv,并纠正r(x)中的错误。设发送码为v(x),e(x)为错误模式,于是r(x)=v(x)+e(x)。因α12,…,α2t是生成多项式的根。The following briefly introduces the BCH decoding process of the BCH decoder 290 on the deinterleaved data stream. The data flow at the input of the BCH decoder 290 is defined as the reception polynomial r(x). The decoding step of the BCH decoder 290 for the data stream is to calculate the syndrome S=(S 1 , S 2 ..., S 2t ) from the receiving polynomial r(x). If S=0, it means that the received information is the same as the transmitted information, and there is no Error, there is no need to iteratively solve the error location polynomial. If S≠0, the error position polynomial σ(X) is determined through the syndrome components S 1 , S 2 ..., S 2t . Find the root of σ(X), that is, determine the number of error positions β 1 , β 2 ... β v , and correct the errors in r(x). Let the sending code be v(x), e(x) is the error mode, so r(x)=v(x)+e(x). Because α 1 , α 2 ,…, α 2t are the roots of generating polynomials.

Si=r(α)=r0+r1αi+r2α2i+…+rn-1α(n-1)i=(…((rn-1αi+rn-2i+rn-3i+…)αi+r0(1)S i =r(α)=r 0 +r 1 α i +r 2 α 2i +…+r n-1 α (n-1)i =(…((r n-1 α i +r n-2i +r n-3i +…)α i +r 0 (1)

由公式(1)则可容易得到计算校正子S的硬件电路。From the formula (1), the hardware circuit for calculating the syndrome S can be easily obtained.

BCH码解码关键在于确定错误位置多项式σ(X)。本次设计的BCH解码采用的是普通求解错误多项式BM(Boyer-Moore)算法上优化的riBM算法。无需求逆,简化了硬件结构,同时所需迭代为原始算法的一半。优化后的伪代码如下:The key to BCH code decoding is to determine the error location polynomial σ(X). The BCH decoding designed this time uses the riBM algorithm optimized on the common error polynomial BM (Boyer-Moore) algorithm. No inverse is required, the hardware structure is simplified, and the required iterations are half of the original algorithm. The optimized pseudocode is as follows:

其中,B(j)为临时的错误位置多项式寄存器,而l(j+1)表示σ(j+1)(x)的最高项系数。Among them, B (j) is a temporary error location polynomial register, and l(j+1) represents the highest term coefficient of σ (j+1) (x).

本实施方式中,在BCH编码步骤中,取码长为31,信息位为19的BCH(31,19,2)码,BCH(31,19,2)码是本原BCH(63,51,2)的缩短码。缩短长度为32,即需要在前面增加32个0才能变成BCH(63,51,2)码。所以在寻找错误位置时应从第32位开始,搜索时只需将αi替换成αi+32即可。初始状态时,将σ032σ1(32*2)%63σ2,即σ032σ11σ2载入寄存器。最后得出的结果c(x)即为纠正后的数据。In this embodiment, in the BCH encoding step, the BCH (31, 19, 2) code with a code length of 31 and an information bit of 19 is obtained, and the BCH (31, 19, 2) code is the original BCH (63, 51, 2) Shortcodes. The shortened length is 32, that is, 32 0s need to be added in front to become a BCH (63, 51, 2) code. Therefore, when looking for the error position, you should start from the 32nd position, and you only need to replace α i with α i+32 when searching. In the initial state, σ 0 , α 32 σ 1 , α (32*2)%63 σ 2 , that is, σ 0 , α 32 σ 1 , α 1 σ 2 are loaded into the register. The final result c(x) is the corrected data.

上述应用于人体通信信道的纠错编解码装置,由BCH编码器220和随机分组交织器240先后对输入数据进行BCH编码和随机分组交织编码,再通过解交织器280以及BCH解码器290对信号进行解码,不仅可以纠正随机错误,还可以纠正突发错误。In the above-mentioned error correction codec device applied to the human body communication channel, the BCH encoder 220 and the random block interleaver 240 successively perform BCH encoding and random block interleaving encoding on the input data, and then pass the deinterleaver 280 and the BCH decoder 290 to the signal By decoding, not only random errors can be corrected, but burst errors can also be corrected.

此外,改进的无求逆riBM算法,与原始的BM算法相比,所需迭代次数减少,算法速度更快。且由于采用的是随机分组交织技术,每次产生的随机数都不相同。在人体通信信道中传输相当于起到加密的作用,大大提高了信息的安全性。In addition, the improved inversion-free riBM algorithm requires fewer iterations and is faster than the original BM algorithm. And because the random group interleaving technology is adopted, the random numbers generated each time are different. The transmission in the human body communication channel is equivalent to playing the role of encryption, which greatly improves the security of information.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.

Claims (8)

1.一种应用于人体通信信道的纠错编解码方法,其特征在于,依次包括如下步骤:1. An error correction encoding and decoding method applied to a human body communication channel, characterized in that it comprises the following steps successively: 对输入数据流进行BCH编码;BCH encode the input data stream; 对经过BCH编码后的数据流进行插入同步状态字处理;Insert synchronization status word processing on the data stream encoded by BCH; 对经过插入同步状态字处理后的数据流进行随机分组交织编码;Perform random packet interleaving encoding on the data stream processed by inserting the synchronization status word; 对经过随机分组交织编码后的数据流进行调制;Modulate the data stream after random packet interleaving and encoding; 将经过调制后的数据流通过人体通信信道传输;Transmit the modulated data stream through the human body communication channel; 接收由人体通信信道传输的数据流并进行解调;Receive and demodulate the data stream transmitted by the human body communication channel; 检测经过解调后的数据流的同步状态字;Detecting the synchronization status word of the demodulated data stream; 对经过同步状态字检测处理后的数据流进行解交织;Deinterleave the data stream after the synchronization status word detection process; 对经过解交织后的数据流进行BCH解码并输出;Perform BCH decoding on the deinterleaved data stream and output it; 在所述对输入数据流进行BCH编码的步骤之前,还包括如下步骤:Before the step of carrying out BCH encoding to the input data stream, the following steps are also included: 接收输入数据流并将输入数据流存储于缓存器以便从缓存器获取输入数据流进行BCH编码;receiving the input data stream and storing the input data stream in a buffer so as to obtain the input data stream from the buffer for BCH encoding; 所述BCH解码采用对普通求解错误多项式BM算法进行优化后的riBM算法。The BCH decoding adopts the riBM algorithm after optimizing the common error polynomial BM algorithm. 2.根据权利要求1所述的应用于人体通信信道的纠错编解码方法,其特征在于,在所述对输入数据流进行BCH编码的步骤中,采用并行同步编码方式对输入数据进行编码。2. The error correction encoding and decoding method applied to human body communication channels according to claim 1, characterized in that, in the step of performing BCH encoding on the input data stream, the input data is encoded by using parallel synchronous encoding. 3.根据权利要求1所述的应用于人体通信信道的纠错编解码方法,其特征在于,在所述对经过随机分组交织编码后的数据流进行调制的步骤中,采用BPSK调制法对经过随机分组交织编码后的数据流进行调制;在所述接收由人体通信信道传输的数据流并进行解调的步骤中,采用BPSK解调法对由人体通信信道传输的数据流进行解调。3. The error correction encoding and decoding method applied to human body communication channels according to claim 1, characterized in that, in the step of modulating the data stream after random block interleaving encoding, the BPSK modulation method is used to The coded data stream is modulated by random packet interleaving; in the step of receiving and demodulating the data stream transmitted by the human body communication channel, the data stream transmitted by the human body communication channel is demodulated by using BPSK demodulation method. 4.根据权利要求1所述的应用于人体通信信道的纠错编解码方法,其特征在于,在所述对经过解交织后的数据流进行BCH解码并输出的步骤中,通过BCH解码得到的数据流根据先入先出的规则输出。4. The error correction coding and decoding method applied to human body communication channels according to claim 1, characterized in that, in the step of BCH decoding and outputting the deinterleaved data stream, the BCH decoding obtained Data streams are output according to the first-in-first-out rule. 5.一种应用于人体通信信道的纠错编解码装置,其特征在于,包括依次顺序连接的BCH编码器、插入同步状态字模块、随机分组交织器、调制器、解调器、同步状态字检测器、解交织器以及BCH解码器,所述BCH编码器对输入数据流进行BCH编码,所述插入同步状态字模块对经过BCH编码后的数据流进行插入同步状态字处理,所述随机分组交织器对经过插入同步状态字处理后的数据流进行随机分组交织编码,所述调制器对经过随机分组交织编码后的数据流进行调制,经过调制后的数据流通过人体通信信道传输,所述解调器接收由人体通信信道传输的数据流并进行解调,所述同步状态字检测器检测经过解调后的数据流的同步状态字,所述解交织器对经过同步状态字检测处理后的数据流进行解交织,所述BCH解码器对经过解交织后的数据流进行BCH解码;所述应用于人体通信信道的纠错编解码装置还包括缓存器,所述缓存器与所述BCH编码器输入端相连,所述缓存器用于接收输入数据流并将其存储,以便从缓存器获取输入数据流进行BCH编码;5. An error correction encoding and decoding device applied to human body communication channels, characterized in that it comprises a BCH encoder connected sequentially, an insertion synchronization status word module, a random packet interleaver, a modulator, a demodulator, and a synchronization status word detector, deinterleaver and BCH decoder, the BCH encoder performs BCH encoding on the input data stream, the insertion synchronization status word module inserts synchronization status word processing on the data stream after BCH encoding, and the random grouping The interleaver performs random packet interleaving coding on the data stream processed by inserting the synchronization status word, the modulator modulates the data stream after random packet interleaving coding, and the modulated data stream is transmitted through the human body communication channel, and the The demodulator receives and demodulates the data stream transmitted by the human body communication channel, the synchronization status word detector detects the synchronization status word of the demodulated data stream, and the deinterleaver detects and processes the synchronization status word Deinterleaving is performed on the data stream, and the BCH decoder performs BCH decoding on the deinterleaved data stream; the error correction codec device applied to the human body communication channel also includes a buffer, and the buffer is connected to the BCH The input end of the encoder is connected, and the buffer is used to receive the input data stream and store it, so as to obtain the input data stream from the buffer for BCH encoding; 所述BCH解码采用对普通求解错误多项式BM算法进行优化后的riBM算法。The BCH decoding adopts the riBM algorithm after optimizing the common error polynomial BM algorithm. 6.根据权利要求5所述的应用于人体通信信道的纠错编解码装置,其特征在于,所述应用于人体通信信道的纠错编解码装置还包括控制器,所述BCH编码器包括32条BCH编码支路,所述32条BCH编码支路以并联方式连接,所述控制器分别连接至32条BCH编码支路,在所述控制器的控制下,所述32条BCH编码支路使用同一个时钟和复位信号,所述32条BCH编码支路分别独立串接有所述插入同步状态字模块,所述控制器分别连接至32条BCH编码支路上串接的插入同步状态字模块,在所述控制器的控制下,所述插入同步状态字模块为每一路BCH编码支路输出的数据流插入同步状态字。6. The error correction codec device applied to the human body communication channel according to claim 5, wherein the error correction codec device applied to the human body communication channel also includes a controller, and the BCH encoder includes 32 BCH coding branches, the 32 BCH coding branches are connected in parallel, the controllers are respectively connected to the 32 BCH coding branches, under the control of the controller, the 32 BCH coding branches Using the same clock and reset signal, the 32 BCH coding branches are independently connected in series with the insertion synchronization status word modules, and the controllers are respectively connected to the insertion synchronization status word modules connected in series on the 32 BCH coding branches , under the control of the controller, the inserting synchronization status word module inserts a synchronization status word for the data stream output by each BCH encoding branch. 7.根据权利要求5所述的应用于人体通信信道的纠错编解码装置,其特征在于,所述调制器和解调器分别为BPSK调制器和BPSK解调器,所述BPSK调制器对经过随机分组交织编码后的数据流进行BPSK调制,所述BPSK解调器对由人体通信信道传输的数据流并进行BPSK解调。7. the error correction codec device that is applied to human body communication channel according to claim 5, is characterized in that, described modulator and demodulator are respectively BPSK modulator and BPSK demodulator, and described BPSK modulator is to BPSK modulation is performed on the data stream after the random packet interleaving and encoding, and the BPSK demodulator performs BPSK demodulation on the data stream transmitted by the human body communication channel. 8.根据权利要求5所述的应用于人体通信信道的纠错编解码装置,其特征在于,所述BCH解码器的输出端连接有FIFO数据缓存器,所述FIFO数据缓存器按照数据输入的先后顺序有序地将输出数据输出。8. The error correction codec device applied to human body communication channel according to claim 5, characterized in that, the output end of the BCH decoder is connected with a FIFO data buffer, and the FIFO data buffer is input according to the data input Output the output data sequentially.
CN201310226302.6A 2013-06-07 2013-06-07 Error correction coding/decoding method and its device applied to human body communication channel Active CN104243084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310226302.6A CN104243084B (en) 2013-06-07 2013-06-07 Error correction coding/decoding method and its device applied to human body communication channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310226302.6A CN104243084B (en) 2013-06-07 2013-06-07 Error correction coding/decoding method and its device applied to human body communication channel

Publications (2)

Publication Number Publication Date
CN104243084A CN104243084A (en) 2014-12-24
CN104243084B true CN104243084B (en) 2018-09-04

Family

ID=52230515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310226302.6A Active CN104243084B (en) 2013-06-07 2013-06-07 Error correction coding/decoding method and its device applied to human body communication channel

Country Status (1)

Country Link
CN (1) CN104243084B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994534B (en) * 2015-05-14 2018-12-21 广西大学 A kind of wireless body area network that packet loss is controlled acquisition data transmission method
DE102018103408B3 (en) * 2018-02-15 2019-05-02 Infineon Technologies Ag INTEGRATED CIRCUIT AND METHOD FOR PROCESSING A CODED MESSAGE
CN112905023B (en) * 2019-12-03 2024-12-27 北京搜狗科技发展有限公司 Input error correction method, device and device for input error correction

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101843064A (en) * 2007-08-30 2010-09-22 Lg电子株式会社 Apparatus for transmitting and receiving a signal and method for transmitting and receiving a signal
CN102045073A (en) * 2009-10-26 2011-05-04 成都市华为赛门铁克科技有限公司 Method and device for decoding broadcast channel (BCH) code

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100770010B1 (en) * 2006-09-29 2007-10-25 한국전자통신연구원 Human Body Communication System for High Speed Data Transmission
WO2010095780A1 (en) * 2009-02-18 2010-08-26 Lg Electronics Inc. Apparatus for transmitting and receiving a signal and method of transmitting and receiving a signal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101843064A (en) * 2007-08-30 2010-09-22 Lg电子株式会社 Apparatus for transmitting and receiving a signal and method for transmitting and receiving a signal
CN102045073A (en) * 2009-10-26 2011-05-04 成都市华为赛门铁克科技有限公司 Method and device for decoding broadcast channel (BCH) code

Also Published As

Publication number Publication date
CN104243084A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
US11171738B2 (en) Enhanced automatic identification system
US7627803B2 (en) System and method for variable forward error correction (FEC) protection
US7856591B2 (en) Decoding method for tail-biting convolutional codes using a search depth viterbi algorithm
WO2016107160A1 (en) Data packet processing method and apparatus in ofdma system, and storage medium
WO2016070573A1 (en) Data checking method and apparatus
US9344117B2 (en) Methods and systems for error-correction decoding
US6606724B1 (en) Method and apparatus for decoding of a serially concatenated block and convolutional code
Kumar et al. Bit error rate analysis of Reed-Solomon code for efficient communication system
CN102386996A (en) Transmission method and device for physical layer data in satellite two-way communication
Ramabadran et al. Blind recognition of LDPC code parameters over erroneous channel conditions
CN102904667B (en) Method for decoding tail biting convolution codes of PBCH (physical broadcast channel) decoding in LTE (long term evolution)
CN104243084B (en) Error correction coding/decoding method and its device applied to human body communication channel
KR102547369B1 (en) Receiver and decoding method thereof
Pai et al. New HARQ scheme based on decoding of tail-biting convolutional codes in IEEE 802.16 e
Borui et al. Performance of RS-Turbo concatenated code in AOS
JP5489786B2 (en) Decoding device
JP4025226B2 (en) Error correction transmission device
CN104468023B (en) Coding/decoding method and device
Nguyen et al. A high coding-gain reduced-complexity serial concatenated error-control coding solution for wireless sensor networks
Li et al. Outer Codes
KR102105188B1 (en) Transmission method and apparatus, and reception method and apparatus for transmission frame throuth code rate change
Ma et al. Introduction of FECs and its Applications on Internet & Wireless Communications
Yalamarthy et al. Near-ml decoding of crc codes
Yang et al. Cross-layer FEC for reliable transfer of variable-length coded data in WMSN
Singh et al. Performance Comparision of Coded and Un-Coded OFDM for Different Fic Code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant