JP3458853B2 - Communication system and communication method - Google Patents

Communication system and communication method

Info

Publication number
JP3458853B2
JP3458853B2 JP2002021484A JP2002021484A JP3458853B2 JP 3458853 B2 JP3458853 B2 JP 3458853B2 JP 2002021484 A JP2002021484 A JP 2002021484A JP 2002021484 A JP2002021484 A JP 2002021484A JP 3458853 B2 JP3458853 B2 JP 3458853B2
Authority
JP
Japan
Prior art keywords
code
scramble
bit
length
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002021484A
Other languages
Japanese (ja)
Other versions
JP2002344437A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2002021484A priority Critical patent/JP3458853B2/en
Publication of JP2002344437A publication Critical patent/JP2002344437A/en
Application granted granted Critical
Publication of JP3458853B2 publication Critical patent/JP3458853B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、送信データにBC
H(n、)符号による誤り訂正符号を付加し、排他的
論理和演算によるスクランブル符号化を行う通信システ
ムおよび通信方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention uses BC for transmission data.
The present invention relates to a communication system and a communication method for adding an error correction code by an H (n, k ) code and performing scramble coding by an exclusive OR operation.

【0002】[0002]

【従来の技術】送信装置と受信装置とで通信を行うと
き、最初に同期符号を送信し、続いて通信相手を識別す
るための識別符号、通信相手に伝送したい伝送データを
送信する。例えば小電力無線を利用するときの通信電文
フォーマットを図13に示す。
2. Description of the Related Art When a transmitter and a receiver communicate with each other, a synchronization code is first transmitted, and subsequently an identification code for identifying a communication partner and transmission data to be transmitted to the communication partner are transmitted. For example, a communication message format when using low power radio is shown in FIG.

【0003】図において、ビット同期符号131は送信
装置と受信装置とでビットタイミングを同期するための
符号で、「0101・・・」を百ビット程度繰り返す。
In the figure, a bit synchronization code 131 is a code for synchronizing the bit timing between the transmission device and the reception device, and repeats "0101 ..." About 100 bits.

【0004】フレーム同期符号132は送信装置と受信
装置とで通信電文フォーマットの位置を合わせるための
符号で、例えば図13では受信装置はフレーム同期符号
132を検知して次に識別符号133が来ると判断し受
信処理を行う。したがって他の信号を誤ってフレーム同
期符号と判断しないようフレーム同期符号はランダム性
の高いものが望ましく、疑似ランダム符号が用いられ
る。疑似ランダム符号は(2^N)−1ビット(Nは自
然数)で、小電力無線では31ビットの疑似ランダム符
号をしばしば用いる。
The frame synchronization code 132 is a code for aligning the positions of communication message formats between the transmission device and the reception device. For example, in FIG. 13, the reception device detects the frame synchronization code 132 and the identification code 133 comes next. Judge and perform reception processing. Therefore, it is desirable that the frame sync code has a high randomness so that other signals are not mistakenly determined as the frame sync code, and a pseudo random code is used. Pseudo-random code is (2 ^ N) -1 bit (N is a natural number), and 31-bit pseudo-random code is often used in low power radio.

【0005】識別符号133はシステム識別符号13
4、受信者識別符号135、送信者識別符号136とか
らなる。システム識別符号134は通信システム毎に固
有の識別符号であり、システム識別符号により通信電文
を送受信する通信システムを特定し他の通信システムと
混信しない。受信者識別符号135、送信者識別符号1
36は各受信装置、送信装置に固有の識別符号であり、
受信者識別符号135によって通信電文を受信すべき受
信装置を判別し、送信者識別符号136によって受信装
置は通信電文を送信した送信装置を判別する。
The identification code 133 is a system identification code 13
4, a receiver identification code 135, and a sender identification code 136. The system identification code 134 is an identification code unique to each communication system. The system identification code specifies a communication system that transmits and receives a communication message and does not interfere with other communication systems. Receiver identification code 135, sender identification code 1
36 is an identification code unique to each receiving device and transmitting device,
The receiver identification code 135 determines the receiving apparatus that should receive the communication message, and the sender identification code 136 determines the receiving apparatus that transmitted the communication message.

【0006】すなわち、受信装置はシステム識別符号と
自身の識別符号とを予め記憶し、これら識別符号が受信
した通信電文中のシステム識別符号と受信者識別符号に
一致することを確認して伝送データ137を受信する。
システム識別符号や受信者識別符号が一致しない場合は
受信しない。
That is, the receiving device stores the system identification code and its own identification code in advance, confirms that these identification codes match the system identification code and the recipient identification code in the received communication message, and confirms that the transmission data is transmitted. 137 is received.
If the system identification code and the recipient identification code do not match, the data is not received.

【0007】ところで、識別符号133や伝送データ1
37にスクランブル符号化を行うことがある。スクラン
ブル符号化の目的は二つあり、一つはデータの秘密性を
持たせること、もう一つは同じビット値が連続するのを
制限するためである。
By the way, the identification code 133 and the transmission data 1
In some cases, scramble coding may be performed on 37. The purpose of scramble coding is two-fold, one is to keep the confidentiality of data, and the other is to restrict the same bit value from continuing.

【0008】後者について説明すると、通信方式や送信
装置・受信装置の構成によってデータの中に同じビット
値が連続すると通信困難になるものがある。例えば、小
電力無線でFSK(Frequency Shift Keying)変調方式
は直流成分が伝送できないため、「0000・・001
00・・0000」のようなデータを送信すると、途中
の「1」を受信側で「0」と見なしてしまう可能性があ
る。これは送信するデータの内容によるが、1バイト
(8ビット)全て「0」といったデータは意図的に用い
ることが多く、これら1バイトデータが連続すると数十
ビットの間「0」が続く可能性がでてくる。また、同様
に1バイト(8ビット)全て「1」といったデータも意
図的に用いることが多く、数十ビットの間「1」が続く
可能性がある。これらを避けるためにスクランブル符号
化を行い同じビット値が長いあいだ連続することを制限
する必要がある。
Explaining the latter, there is a case where communication becomes difficult when the same bit value continues in the data depending on the communication system and the configuration of the transmitter / receiver. For example, in the FSK (Frequency Shift Keying) modulation method for low power wireless transmission, since a DC component cannot be transmitted, "0000 ... 001
When data such as "00 ... 0000" is transmitted, the halfway "1" may be regarded as "0" by the receiving side. This depends on the content of the data to be transmitted, but data such as 1 byte (8 bits) all "0" is often used intentionally, and if these 1 byte data continue, "0" may continue for several tens of bits. Comes out. Similarly, data such as 1 byte (8 bits) all “1” is often used intentionally, and “1” may continue for several tens of bits. In order to avoid these, it is necessary to perform scrambling coding to limit the same bit value from continuing for a long time.

【0009】スクランブル符号化については、例えば、
特開平6−291759号公報等がある。疑似ランダム
符号で排他的論理和演算(以下、XOR演算)を行うも
ので、送信装置と受信装置とで同じ疑似ランダム符号を
用いてXOR演算すれば元のデータが得られる。
Regarding the scramble coding, for example,
There is JP-A-6-291759. An exclusive OR operation (hereinafter, XOR operation) is performed using a pseudo random code, and the original data can be obtained by performing an XOR operation using the same pseudo random code in the transmitting device and the receiving device.

【0010】図14(a)に示すように、送信装置は送
信すべきデータにXOR演算して送信し、受信装置は受
信したデータにXOR演算して受信内容の解析を行う。
全て「0」であるデータをスクランブル符号とXOR演
算するとスクランブル符号(疑似ランダム符号)と同じ
符号列となり「0」と「1」とがランダムに配置され
る。また(b)のように、全て「1」であるデータをX
OR演算するとスクランブル符号のビット反転符号とな
り、これも疑似ランダム符号で「0」と「1」とがラン
ダムに配置される。
As shown in FIG. 14A, the transmitter XORs the data to be transmitted and transmits the data, and the receiver XORs the received data to analyze the received contents.
When the data that is all “0” is XORed with the scramble code, the same code string as the scramble code (pseudo random code) is obtained, and “0” and “1” are randomly arranged. Also, as shown in (b), the data that is all "1" is X
When the OR operation is performed, it becomes a bit inversion code of the scramble code, which is also a pseudo-random code in which "0" and "1" are randomly arranged.

【0011】ここで(c)のように、スクランブル符号
と同じ符号列のデータはXOR演算によって全て「0」
となるが、データが偶然にスクランブル符号(すなわち
疑似ランダム符号)と同じとなる確率は小さく、スクラ
ンブル符号の符号長が大きくなるほど確率は0に近づ
く。同様に(d)のように、スクランブル符号のビット
反転列のデータがあれば、XOR演算によって全て
「1」となるがこの確率も小さい。
Here, as shown in (c), the data of the same code string as the scramble code is all "0" by the XOR operation.
However, the probability that the data happens to be the same as the scramble code (that is, the pseudo-random code) is small, and the probability approaches 0 as the code length of the scramble code increases. Similarly, if there is data in the bit-reversed string of scramble codes as shown in (d), all will be "1" by the XOR operation, but this probability is also small.

【0012】ところで、特開平6−291759号公報
にはスクランブル符号にフレーム同期符号と同じ符号を
使用すれば疑似ランダム符号を多数用意する必要がなく
効率的であることが記載されている。
By the way, Japanese Patent Laid-Open No. 6-291759 discloses that if the same code as the frame synchronization code is used for the scramble code, it is not necessary to prepare a large number of pseudo random codes and it is efficient.

【0013】[0013]

【発明が解決しようとする課題】スクランブル符号にフ
レーム同期符号(mビット)を使用したとき、mビット
連続して「0」であるデータをXOR演算して送信する
とフレーム同期符号と同じとなる。この部分を受信装置
がフレーム同期符号であると誤って判断する恐れがあ
る。
When a frame synchronization code (m bits) is used as the scramble code, if m bits of consecutive "0" data is XORed and transmitted, it becomes the same as the frame synchronization code. The receiving device may erroneously determine that this portion is a frame synchronization code.

【0014】また、データの秘密性については、スクラ
ンブル符号を送信装置と受信装置とでのみ共有してお
り、第三者がその符号を知らないことが条件である。公
開されるような通信プロトコルの場合、フレーム同期符
号の符号内容、スクランブル符号化の方法が公となるの
でスクランブル符号にフレーム同期符号と同じ符号を使
用すればデータの秘密性が無くなる。
Regarding the confidentiality of the data, it is a condition that the scramble code is shared only between the transmitting device and the receiving device, and the third party does not know the code. In the case of an open communication protocol, the code content of the frame synchronization code and the scrambling encoding method are public, so that if the same code as the frame synchronization code is used for the scrambling code, the confidentiality of the data is lost.

【0015】以上のように、スクランブル符号をフレー
ム同期符号と同じとすることは、疑似ランダム符号を多
数用意する必要がなく効率的であるが課題が残ってい
る。
As described above, making the scramble code the same as the frame synchronization code is efficient because it is not necessary to prepare a large number of pseudo-random codes, but there remains a problem.

【0016】[0016]

【課題を解決するための手段】本発明は上記課題を解決
するために、少なくとも一つの送信装置と受信装置から
なる通信システムにおいて、送信装置と受信装置とは、
mビットのフレーム同期符号を記憶する同期符号記憶手
段と、フレーム同期符号に1ビットを付加した 符号から
スクランブル符号を生成するスクランブル符号生成手段
とをおのおの備え、送信装置は、BCH(n、k)符号
を用いた誤り訂正符号と1ビットパリティ符号を付加し
た送信データにスクランブル符号で排他的論理和演算を
行って送信信号を出力する第一の演算手段と、第一の演
算手段からの送信信号を送信する送信手段とを備え、受
信装置は、受信手段で受信した受信信号にスクランブル
符号で排他的論理和演算を行って受信データを出力する
第二の演算手段と、第二の演算手段からの受信データ内
の誤り訂正符号を解析する受信データ解析手段とを備
え、スクランブル符号の符号長(m+1)はBCH符号
の符号長nに1ビットパリティ符号を付加した長さ(n
+1)と等しくしたものである。
In order to solve the above problems, the present invention provides a communication system comprising at least one transmitting device and one receiving device, wherein the transmitting device and the receiving device are:
The transmission device is provided with BCH (n, k), each of which is provided with a synchronization code storage means for storing an m-bit frame synchronization code and a scramble code generation means for generating a scramble code from a code obtained by adding 1 bit to the frame synchronization code. A first arithmetic means for performing an exclusive OR operation on a transmission data to which an error correction code using a code and a 1-bit parity code is added with a scramble code and outputting a transmission signal, and a transmission signal from the first arithmetic means And a second calculating means for outputting the received data by performing an exclusive OR operation on the received signal received by the receiving means with a scramble code, and a receiving means from the second calculating means. and a received data analysis means for analyzing the error correction code in the received data, the code length of the scrambling code (m + 1) is 1 bit to the code length n BCH code The length obtained by adding a parity code (n
+1) .

【0017】上記発明によれば、BCH(n,k)符号
を用いた誤り訂正符号と1ビットパリティ符号を付加し
た送信データとするので送信データには(n+1)ビッ
ト以上「0」の連続したデータは発生しない。加えて、
スクランブル符号の符号長(m+1)はBCH符号の符
号長nに1ビットパリティ符号を付加した長さ(n+
1)と等しくしたので、「0」がnビット連続する場合
に連続する位置とスクランブル符号の位置との位置関係
が固定され、フレーム同期符号から生成したスクランブ
ル符号で排他的論理和演算を行っても送信信号にフレー
ム同期符号と同じ符号が現れない。
According to the above invention, since the transmission data is the error correction code using the BCH (n, k) code and the 1-bit parity code , the transmission data has (n + 1) bits or more "0" consecutively. No data is generated. in addition,
The code length (m + 1) of the scramble code is the length (n +) obtained by adding the 1-bit parity code to the code length n of the BCH code.
Since it is equal to 1) , the positional relationship between the consecutive positions and the position of the scramble code is fixed when "0" continues for n bits, and the exclusive OR operation is performed with the scramble code generated from the frame synchronization code. Also, the same code as the frame synchronization code does not appear in the transmission signal.

【0018】そして、誤り訂正符号としてBCH(n、
k)符号に1ビットパリティ符号を付加し、スクランブ
ル符号としてフレーム同期符号に1ビットを付加するこ
とで2^Nビット(Nは自然数)となりマイコンで扱い
やすいビット数となる。
Then, as an error correction code, BCH (n,
k) scrambling by adding 1-bit parity code to the code
1 bit as a frame code
And becomes 2 ^ N bits (N is a natural number) and handled by a microcomputer
The number of bits is easy.

【0019】[0019]

【発明の実施の形態】本発明は各請求項記載の形態で実
施することができるものである。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention can be implemented in the modes described in each claim.

【0020】すなわち、請求項記載の発明のように、
少なくとも一つの送信装置と受信装置からなる通信シス
テムにおいて、前記送信装置と前記受信装置とは、mビ
ットのフレーム同期符号を記憶する同期符号記憶手段
と、前記フレーム同期符号に1ビットを付加した符号か
らスクランブル符号を生成するスクランブル符号生成手
段とをおのおの備え、前記送信装置は、BCH(n、
k)符号を用いた誤り訂正符号と1ビットパリティ符号
を付加した送信データに前記スクランブル符号で排他的
論理和演算を行って送信信号を出力する第一の演算手段
と、前記第一の演算手段からの送信信号を送信する送信
手段とを備え、前記受信装置は、受信手段で受信した受
信信号に前記スクランブル符号で排他的論理和演算を行
って受信データを出力する第二の演算手段と、前記第二
の演算手段からの受信データ内の誤り訂正符号を解析す
る受信データ解析手段とを備え、スクランブル符号の符
号長(m+1)はBCH符号の符号長nに1ビットパリ
ティ符号を付加した長さ(n+1)ものである。
That is , as in the invention described in claim 1 ,
In a communication system including at least one transmitting device and one receiving device, the transmitting device and the receiving device include a synchronization code storage unit that stores an m-bit frame synchronization code, and a code obtained by adding 1 bit to the frame synchronization code. And a scrambling code generating means for generating a scrambling code from the BCH (n,
k) first arithmetic means for performing an exclusive OR operation on the transmission data to which the error correction code using the code and the 1-bit parity code is added with the scramble code and outputting the transmission signal; and the first arithmetic means. And a transmission means for transmitting a transmission signal from the receiving device, the receiving device, the second arithmetic means for performing an exclusive OR operation on the received signal received by the receiving means with the scramble code to output the received data, And a received data analysis means for analyzing an error correction code in the received data from the second operation means, wherein the code length (m + 1) of the scramble code is 1 bit pari to the code length n of the BCH code.
It has a length (n + 1) added with a tee code .

【0021】そして、誤り訂正符号としてBCH(n、
k)符号に1ビットパリティ符号を付加し、スクランブ
ル符号としてフレーム同期符号に1ビットを付加するこ
とで2^Nビット(Nは自然数)となりマイコンで扱い
やすいビット数となる。
Then, as an error correction code, BCH (n,
k) By adding a 1-bit parity code to the code and adding 1 bit to the frame synchronization code as a scramble code, 2 ^ N bits (N is a natural number) becomes a bit number that can be easily handled by a microcomputer.

【0022】また、請求項2記載の発明のように、請求
項1記載の通信システムにおいて、フレーム同期符号長
m=31ビット、BCH(n、k)符号をn=31ビッ
ト、k=16ビットとしたものである。
Further , as in the invention described in claim 2,
In the communication system according to Item 1, the frame synchronization code length
m = 31 bits, BCH (n, k) code is n = 31 bits
, K = 16 bits.

【0023】そして、誤り訂正符号としてBCH(3
1、16)符号に1ビットパリティ符号を付加し、スク
ランブル符号としてフレーム同期符号に1ビットを付加
することで共に2^5=32ビットとなりマイコンで扱
いやすいビット数となる。
Then, as an error correction code, BCH (3
1, 16) code with 1-bit parity code
Add 1 bit to frame sync code as rumble code
By doing so, both become 2 ^ 5 = 32 bits and handled by the microcomputer.
The number of bits is easy.

【0024】また、請求項3記載の発明のように、請求
項1又は2記載の通信システムにおいて、スクランブル
符号生成手段はフレーム同期符号をローテーション操作
を行い、通信システム毎に異なるスクランブル符号を生
成するものである。
Further, as in the invention of claim 3, produced according to claim 1 or 2, wherein the communication system, the scrambling code generating unit performs a frame synchronization code rows station operation, different scrambling codes for each communication system To do.

【0025】そして、フレーム同期符号をローテーショ
ン操作により複数のスクランブル符号を生成することが
容易にできる。通信システム毎にローテーション操作を
変えればスクランブル符号が多数得られ、通信システム
毎で異なるスクランブル符号によりデータの秘密性が得
られる。
[0025] Then, it is easily possible to generate a plurality of scrambling codes by the frame synchronization code rows Tesho <br/> down operation. A large number of scramble codes can be obtained by changing the rotation operation for each communication system, and the confidentiality of data can be obtained by the scramble code different for each communication system.

【0026】また、請求項記載の発明のように、少な
くとも一つの送信装置と受信装置との通信方法におい
て、前記送信装置と前記受信装置はおのおのmビットの
フレーム同期符号を記憶し、前記フレーム同期符号に1
ビットを付加した符号からスクランブル符号を生成し、
前記送信装置は、BCH(n、k)符号を用いた誤り訂
正符号と1ビットパリティ符号を付加した送信データに
前記スクランブル符号で排他的論理和演算を行って送信
信号を送信し、前記受信装置は、受信手段で受信した受
信信号に前記スクランブル符号で排他的論理和演算を行
って受信データ内の誤り訂正符号を解析し、スクランブ
ル符号の符号長(m+1)はBCH符号の符号長nに1
ビットパリティ符号を付加した長さ(n+1)と等しく
したものでる。
Further, as in the invention of claim 4, wherein, stored in the communication method between at least one transmitter and a receiver, a frame synchronization code of the transmitting device and each m bits the receiving device, said frame 1 for sync code
Generate a scramble code from a code with bits added,
The transmission device performs an exclusive OR operation on the transmission data to which the error correction code using the BCH (n, k) code and the 1-bit parity code are added with the scramble code to transmit the transmission signal, and the reception device. Performs an exclusive OR operation on the received signal received by the receiving means with the scramble code to analyze the error correction code in the received data, and the code length (m + 1) of the scramble code is 1 for the code length n of the BCH code.
It is equal to the length (n + 1) added with the bit parity code .

【0027】そして、誤り訂正符号としてBCH(n、
k)符号に1ビットパリティ符号を付加し、スクランブ
ル符号としてフレーム同期符号に1ビットを付加するこ
とで2^Nビット(Nは自然数)となりマイコンで扱い
やすいビット数となる。
Then, as an error correction code, BCH (n,
k) By adding a 1-bit parity code to the code and adding 1 bit to the frame synchronization code as a scramble code, 2 ^ N bits (N is a natural number) becomes a bit number that can be easily handled by a microcomputer.

【0028】また、請求項記載の発明のように、少な
くとも一つの受信装置と通信する送信装置において、m
ビットのフレーム同期符号を記憶する同期符号記憶手段
と、前記フレーム同期符号に1ビットを付加した符号か
らスクランブル符号を生成するスクランブル符号生成手
段と、BCH(n、k)符号を用いた誤り訂正符号と1
ビットパリティ符号を付加した送信データに前記スクラ
ンブル符号で排他的論理和演算を行って送信信号を出力
する第一の演算手段と、前記第一の演算手段からの送信
信号を送信する送信手段とを備え、スクランブル符号の
符号長(m+1)はBCH符号の符号長nに1ビットパ
リティ符号を付加した長さ(n+1)と等しくしたもの
である。
According to the invention of claim 5 , in the transmitting device communicating with at least one receiving device, m
A synchronous code storage means for storing a frame synchronous code of bits, a scramble code generating means for generating a scramble code from a code obtained by adding 1 bit to the frame synchronous code, and an error correction code using a BCH (n, k) code. And 1
A first arithmetic means for performing an exclusive OR operation on the transmission data to which the bit parity code is added with the scramble code and outputting a transmission signal; and a transmission means for transmitting the transmission signal from the first arithmetic means. The code length (m + 1) of the scramble code is 1 bit per the code length n of the BCH code.
It is equal to the length (n + 1) added with the priority code .

【0029】そして、誤り訂正符号としてBCH(n、
k)符号に1ビットパリティ符号を付加し、スクランブ
ル符号としてフレーム同期符号に1ビットを付加するこ
とで2^Nビット(Nは自然数)となりマイコンで扱い
やすいビット数となる。
As an error correction code, BCH (n,
k) By adding a 1-bit parity code to the code and adding 1 bit to the frame synchronization code as a scramble code, 2 ^ N bits (N is a natural number) becomes a bit number that can be easily handled by a microcomputer.

【0030】また、請求項記載の発明のように、少な
くとも一つの送信装置と通信する受信装置において、m
ビットのフレーム同期符号を記憶する同期符号記憶手段
と、前記フレーム同期符号に1ビットを付加した符号か
らスクランブル符号を生成するスクランブル符号生成手
段と、受信手段で受信した受信信号に前記スクランブル
符号で排他的論理和演算を行って受信データを出力する
第二の演算手段と、前記第二の演算手段からの受信デー
タ内のBCH(n、k)符号を用いた誤り訂正符号と1
ビットパリティ符号を解析する受信データ解析手段とを
備え、スクランブル符号の符号長(m+1)はBCH符
号の符号長nに1ビットパリティ符号を付加した長さ
(n+1)と等しくしたものである。
According to the invention of claim 6 , in the receiving device communicating with at least one transmitting device, m
A synchronization code storage means for storing a frame synchronization code of bits, a scramble code generation means for generating a scramble code from a code obtained by adding 1 bit to the frame synchronization code, and a scramble code exclusive for a reception signal received by the reception means. A second arithmetic means for performing a logical OR operation to output the received data; an error correction code using the BCH (n, k) code in the received data from the second arithmetic means;
A scramble code having a code length (m + 1) obtained by adding a 1-bit parity code to the code length n of the BCH code.
It is equal to (n + 1) .

【0031】そして、誤り訂正符号としてBCH(n、
k)符号に1ビットパリティ符号を付加し、スクランブ
ル符号としてフレーム同期符号に1ビットを付加するこ
とで2^Nビット(Nは自然数)となりマイコンで扱い
やすいビット数となる。
Then, as an error correction code, BCH (n,
k) By adding a 1-bit parity code to the code and adding 1 bit to the frame synchronization code as a scramble code, 2 ^ N bits (N is a natural number) becomes a bit number that can be easily handled by a microcomputer.

【0032】また、請求項記載の発明のように、請求
5、6のいずれか1項記載の手段の全てもしくは一部
としてコンピュータを機能させるためのプログラムを記
録した記録媒体である。そして、プログラムを記録した
記録媒体であるのでコンピュータを用いて本発明の送信
装置、受信装置の一部あるいは全てを容易に実現するこ
とができる。プログラムの配布やインストール作業が簡
単にできる。
A seventh aspect of the present invention is a recording medium recording a program for causing a computer to function as all or part of the means according to any one of the fifth and sixth aspects. Since the program is a recording medium, a computer can be used to easily realize some or all of the transmitting device and the receiving device of the present invention. You can easily distribute and install the program.

【0033】[0033]

【実施例】以下、本発明の実施例について図面を用いて
説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0034】(実施例1) 図1は本発明の実施例1に関わる送信装置の構成を示す
ブロック図である。送信装置1は、ビット同期符号やフ
レーム同期符号を記憶する同期符号記憶手段2と、この
フレーム同期符号からスクランブル符号を生成するスク
ランブル符号生成手段3と、送信バッファ4から出力さ
れたデータに識別符号を付加した送信データ(a)にB
CH(n、k)符号を用いた誤り訂正符号を付加する誤
り訂正符号生成手段5と、誤り訂正符号生成手段5から
の誤り訂正符号付き送信データ(b)にスクランブル符
号で排他的論理和演算を行う第一の演算手段6と、この
第一の演算手段6からのスクランブル符号化送信データ
(c)にビット同期符号とフレーム同期符号とを付加す
る送信信号生成手段7と、送信符号生成手段7からの送
信信号(d)を変調してアンテナ8を通して無線信号
(e)を送信する送信手段9と、システム識別符号や送
信装置自身の識別符号、通信相手の識別符号を記憶する
識別符号記憶手段10から構成する。
(Embodiment 1) FIG. 1 is a block diagram showing the configuration of a transmitting apparatus according to Embodiment 1 of the present invention. The transmitter 1 includes a synchronization code storage means 2 for storing a bit synchronization code and a frame synchronization code, a scramble code generation means 3 for generating a scramble code from the frame synchronization code, and an identification code for the data output from the transmission buffer 4. B to the transmission data (a) with
An error-correction code generation means 5 for adding an error-correction code using a CH (n, k) code, and an exclusive OR operation of the transmission data (b) with error-correction code from the error-correction code generation means 5 with a scramble code And a transmission signal generation means 7 for adding a bit synchronization code and a frame synchronization code to the scramble coded transmission data (c) from the first calculation means 6, and a transmission code generation means. A transmitter 9 that modulates a transmission signal (d) from the antenna 7 and transmits a radio signal (e) through an antenna 8, and an identification code storage that stores a system identification code, an identification code of the transmission device itself, and an identification code of a communication partner. It comprises the means 10.

【0035】また、請求項7記載の発明のように、請求
項5記載の送信装置としてコンピュータを機能させるた
めのプログラムを記録した記録媒体である。また請求項
8記載の発明のように、請求項6記載の受信装置として
コンピュータを機能させるためのプログラムを記録した
記録媒体である。そして、プログラムを記録した記録媒
体であるのでコンピュータを用いて本発明の送信装置、
受信装置を容易に実現することができる。プログラムの
配布やインストール作業が簡単にできる。
According to the invention of claim 7, a claim is made.
A computer is made to function as the transmitting device according to item 5.
Is a recording medium on which a program for recording is recorded. Claims
As the invention according to claim 8, as the receiving device according to claim 6,
A program for operating a computer is recorded
It is a recording medium. Then, since it is a recording medium in which the program is recorded, the transmission device of the present invention is used by using a computer.
The receiving device can be easily realized. You can easily distribute and install the program.

【0036】次に、通信電文フォーマットを図3に示
す。上より順に、送信信号(d)や受信信号(f)、ス
クランブル符号化送信データ(c)やスクランブル符号
化受信データ(g)、誤り訂正符号付き送信データ
(b)や誤り訂正符号付き受信データ(h)、BCH
(31,16)符号、送信データ(a)や受信データ
(i)である。
Next, the communication message format is shown in FIG. Transmission signal (d), reception signal (f), scramble coded transmission data (c), scramble coded reception data (g), error correction code added transmission data (b) and error correction code received data in order from the top. (H), BCH
(31, 16) code, transmission data (a) and reception data (i).

【0037】ここでは、BCH(n,k)符号としてB
CH(31,16)符号で説明する。BCH(n,k)
符号のnはデータ1単位と誤り訂正符号の合計ビット長
で符号長と呼び、kはデータ1単位のビット長で情報ビ
ット長と呼ぶ。BCH(31,16)符号では、16ビ
ットのデータ(図中31)毎に15ビットの誤り訂正符
号(図中32)を付加し、この31ビット中の3ビット
誤りまで訂正できる。
Here, BCH (n, k) code is B
The description will be made using the CH (31, 16) code. BCH (n, k)
The code n is the total bit length of one data unit and the error correction code and is called the code length, and k is the bit length of one data unit and is called the information bit length. In the BCH (31, 16) code, a 15-bit error correction code (32 in the drawing) is added to each 16-bit data (31 in the drawing), and up to 3 bit error in the 31 bits can be corrected.

【0038】誤り訂正符号を付加するデータの対象は識
別符号と伝送データである。これを16ビット単位で区
切り、BCH誤り訂正符号を付加する。識別符号にはシ
ステム識別符号、受信者識別符号、送信者識別符号が含
まれ、例えばシステム識別符号には48ビット全て
「0」や全て「1」といったものがある。また伝送デー
タには数十ビット連続した「0」や「1」を含むことが
ある。
The target of the data to which the error correction code is added is the identification code and the transmission data. This is divided into 16-bit units and a BCH error correction code is added. The identification code includes a system identification code, a receiver identification code, and a sender identification code. For example, the system identification code includes all 48 bits "0" and all "1". Further, the transmission data may include "0" or "1" in which several tens of bits are continuous.

【0039】しかしながら、BCH(31,16)符号
では、16ビットのデータに15ビットの誤り訂正符号
を付加するので、データが16ビット全て「0」でも誤
り訂正符号には「0」が連続しない。また誤り訂正符号
で「0」が連続するときデータがあるビット列(「0」
が連続しない)の時である。以上から、BCH(31,
16)符号では、「0」の連続は誤り訂正符号15ビッ
ト+次にあるデータ16ビットで31ビットが最長とな
る。
However, in the BCH (31, 16) code, since a 15-bit error correction code is added to 16-bit data, even if all 16 bits of data are "0", "0" is not continuous in the error correction code. . When the error correction code is consecutive "0", there is a bit string with data ("0"
Is not continuous). From the above, BCH (31,
In the 16) code, the consecutive "0" has the longest error correction code of 15 bits + the next 16 bits of data with 31 bits.

【0040】次にスクランブル符号について説明する。
図4に31通りのスクランブル符号を示す。これらは3
1ビットのフレーム同期符号「00011011101
01000010010110011111」を1ビッ
トずつ左ローテーションして得るもので、例えば、図中
スクランブル符号(1)はフレーム同期符号と同じ、ス
クランブル符号(2)はフレーム同期符号の1ビット左
ローテーションである。この中から一つを選択してスク
ランブル符号とする。
Next, the scramble code will be described.
FIG. 4 shows 31 types of scramble codes. These are 3
1-bit frame synchronization code "00011011101
01000010010110011111 "is obtained by left rotation bit by bit. For example, in the figure, the scramble code (1) is the same as the frame synchronization code, and the scramble code (2) is the 1 bit left rotation of the frame synchronization code. One of them is selected as a scramble code.

【0041】疑似ランダム符号であるフレーム同期符号
からスクランブル符号を得るので図5に示すような特性
を持つ。異なるスクランブル符号のビット差は常に16
ビットとなる。ここではスクランブル符号(1)と
(2)、(1)と(3)との比較のみを示したが、どの
スクランブル符号を比べてもビット差は常に16ビット
である。
Since the scramble code is obtained from the frame synchronization code which is a pseudo random code, it has the characteristics shown in FIG. The bit difference between different scrambling codes is always 16
Become a bit. Here, only the comparison between the scramble codes (1) and (2) and between the scramble codes (1) and (3) is shown, but the bit difference is always 16 bits regardless of which scramble code is compared.

【0042】したがって図6に示すように、送信すると
きのスクランブル符号と受信するときのスクランブル符
号とが異なると31ビット中の約半分のビットが送信と
受信とで異なる。この結果、送信と受信とでスクランブ
ル符号が異なると受信したデータを解析することができ
ない。すなわち、データの秘密性が得られる。なお、図
6中「*」で記したものは「0」あるいは「1」であ
る。
Therefore, as shown in FIG. 6, if the scramble code for transmission and the scramble code for reception are different, about half of 31 bits are different between transmission and reception. As a result, the received data cannot be analyzed if the scramble code is different between transmission and reception. That is, confidentiality of data is obtained. In addition, what is marked with "*" in FIG. 6 is "0" or "1".

【0043】それではBCH(n、k)符号とスクラン
ブル符号とで組み合わせて使用する場合のメリットを説
明する。スクランブル符号の符号長mはBCH符号の符
号長nと等しくしたので、BCH符号とスクランブル符
号との位置関係が固定される。
Now, the merits of using the BCH (n, k) code and the scramble code in combination will be described. Since the code length m of the scramble code is made equal to the code length n of the BCH code, the positional relationship between the BCH code and the scramble code is fixed.

【0044】例えば、BCH符号、スクランブル符号と
もに31ビットの場合を図6に示す。BCH符号の1ビ
ットめは常にスクランブル符号の1ビットめとXOR演
算を行い、BCH符号の31ビットめは常にスクランブ
ル符号の31ビットめとXOR演算を行う。このとき図
7(a)のように、BCH(31,16)符号が連続す
ると誤り訂正符号15ビットと伝送データ16ビットと
で連続して31ビットの「0」が出現する場合がある。
しかしスクランブル符号との位置関係が固定され図7
(a)のように、この31ビットの連続「0」とはスク
ランブル符号の後半15ビット+前半16ビットとXO
R演算することとなり、その結果、フレーム同期符号と
異なる符号列になる。
For example, FIG. 6 shows a case where both the BCH code and the scramble code have 31 bits. The first bit of the BCH code always performs the first bit of the scramble code and the XOR operation, and the 31st bit of the BCH code always performs the XOR operation of the 31st bit of the scramble code. At this time, as shown in FIG. 7A, if the BCH (31, 16) code is continuous, 31 bits of "0" may appear continuously in 15 bits of the error correction code and 16 bits of the transmission data.
However, since the positional relationship with the scramble code is fixed,
As shown in (a), this 31-bit continuous "0" is the latter half 15 bits + the first half 16 bits of the scramble code and XO.
R calculation is performed, and as a result, a code string different from the frame synchronization code is obtained.

【0045】従来はスクランブル符号との位置関係が定
まっていないため、スクランブル符号にフレーム同期符
号(mビット)を使用したとき、mビット連続した
「0」とスクランブル符号の位置関係によってはXOR
演算の結果がフレーム同期符号と同じとなりこの部分を
受信装置がフレーム同期符号であると誤る恐れがあっ
た。
Conventionally, since the positional relationship with the scramble code has not been determined, when a frame synchronization code (m bits) is used as the scramble code, XOR may be performed depending on the positional relationship between m bits of consecutive "0" and the scramble code.
The result of the calculation is the same as the frame synchronization code, and there is a possibility that the receiving device may mistake this portion as the frame synchronization code.

【0046】本発明で注意するのは使用できないスクラ
ンブル符号があることである。図4のスクランブル符号
(17)がこれにあたり、図7(b)のようにスクラン
ブル符号の後半15ビットがフレーム同期符号の前半1
5ビットでスクランブル符号の前半16ビットがフレー
ム同期符号の後半16ビットなっていると31ビット連
続「0」の部分でスクランブル符号化データがフレーム
同期符号と同じとなる。したがって、フレーム同期符号
のkビット左ローテーション(又はn−kビット右ロー
テーション)はスクランブル符号から取り除く必要があ
る。
It should be noted in the present invention that some scramble codes cannot be used. This corresponds to the scramble code (17) in FIG. 4, and the latter 15 bits of the scramble code are the first half 1 of the frame synchronization code as shown in FIG. 7B.
When the first half 16 bits of the scramble code is 5 bits and the latter half 16 bits of the frame sync code, the scramble coded data becomes the same as the frame sync code in the 31-bit continuous "0" part. Therefore, the k-bit left rotation (or nk-bit right rotation) of the frame synchronization code needs to be removed from the scramble code.

【0047】以上のように、BCH(31,16)符号
を用いた誤り訂正符号を付加した送信データとするので
送信データには32ビット以上「0」の連続したデータ
は発生しない。BCH(n,k)符号を用いた誤り訂正
符号を付加した送信データとするので送信データには
(n+1)ビット以上「0」の連続したデータは発生し
ない。加えて、スクランブル符号の符号長mはBCH符
号の符号長nと等しくしたので、「0」がnビット連続
する場合に連続する位置とスクランブル符号の位置との
位置関係が固定され、フレーム同期符号から生成したス
クランブル符号で排他的論理和演算を行っても送信信号
にフレーム同期符号と同じ符号が現れない。
As described above, since the transmission data is added with the error correction code using the BCH (31,16) code, continuous data of 32 bits or more "0" does not occur in the transmission data. Since the transmission data is added with the error correction code using the BCH (n, k) code, no continuous data of "0" or more is generated in the transmission data. In addition, since the code length m of the scramble code is made equal to the code length n of the BCH code, when n bits of "0" continue, the positional relationship between the continuous position and the scramble code position is fixed, and the frame synchronization code The same code as the frame synchronization code does not appear in the transmission signal even if the exclusive OR operation is performed with the scramble code generated from.

【0048】また、スクランブル符号生成手段はフレー
ム同期符号をコピーしローテーション操作により複数の
スクランブル符号を生成することが容易にできる。通信
システム毎にローテーション操作を変えればスクランブ
ル符号が多数得られ、通信システム毎で異なるスクラン
ブル符号によりデータの秘密性が得られる。
Also, the scramble code generating means can easily generate a plurality of scramble codes by copying the frame synchronization code and performing a rotation operation. A large number of scramble codes can be obtained by changing the rotation operation for each communication system, and the confidentiality of data can be obtained by the scramble code different for each communication system.

【0049】そこで、システム識別符号を用い、スクラ
ンブル符号生成手段はこのシステム識別符号によってロ
ーテーション操作を変化させれば通信システム毎にスク
ランブル符号を変えることが容易にできる。例えば、4
8ビットのシステム識別符号のうち下位5ビットでスク
ランブル符号を割り当てる方法であれば、フレーム同期
符号の符号内容、スクランブル符号化の方法が公となっ
てもシステム識別符号がわからなればデータの秘密性が
得られる。
Therefore, by using the system identification code, the scramble code generating means can easily change the scramble code for each communication system by changing the rotation operation according to the system identification code. For example, 4
If the scrambling code is assigned to the lower 5 bits of the 8-bit system identification code, the confidentiality of the data will be obtained if the system identification code is unknown even if the code content of the frame synchronization code and the scrambling coding method are public. Is obtained.

【0050】なお、このときフレーム同期符号のkビッ
ト左ローテーションはスクランブル符号として使用しな
い。それはBCH(n、k)符号の後半(n−k)ビッ
トの「0」連続と次のBCH(n、k)符号の前半kビ
ットの「0」連続とが続いたときに排他的論理和演算を
行うとフレーム同期符号と同じ符号が現れるためであ
る。「0」がnビット連続するときに、排他的論理和演
算の結果フレーム同期符号と同じ符号が現れるスクラン
ブル符号を予め取り除く。
At this time, the k-bit left rotation of the frame synchronization code is not used as a scramble code. It is the exclusive OR when the latter half (n−k) bit “0” continuation of the BCH (n, k) code and the first half k bit “0” continuation of the next BCH (n, k) code continue. This is because the same code as the frame synchronization code appears when the calculation is performed. When “0” continues for n bits, the scramble code in which the same code as the frame synchronization code appears as a result of the exclusive OR operation is removed in advance.

【0051】(実施例2) ところで、BCH(n,k)符号を用いると誤り訂正符
号付きデータ、スクランブル符号化データはnビット単
位で扱うことになる。誤り訂正符号処理やXOR演算処
理をマイコンで行うとすれば、nは(2^N)−1ビッ
ト(Nは自然数)で扱いにくいビット数であり4ビット
や8ビットであるほうがよい。そこで、BCH(n,
k)符号に1ビットのパリティ符号を付加して2^Nビ
ットで扱う方法がある。
(Second Embodiment) By the way, when the BCH (n, k) code is used, the data with error correction code and the scramble coded data are handled in units of n bits. If error correction code processing and XOR operation processing are performed by a microcomputer, n is (2 ^ N) -1 bit (N is a natural number), which is a difficult number to handle, and is preferably 4 bits or 8 bits. Therefore, BCH (n,
k) There is a method of adding a 1-bit parity code to a code and handling it with 2 ^ N bits.

【0052】例えば、BCH(31,16)符号では、
16ビットの伝送データに15ビットの誤り訂正符号と
1ビットの偶数パリティ符号を付加して、この32ビッ
ト中の4ビット誤りまで訂正できる。通信電文フォーマ
ットを図8に示す。上より順に、送信信号(d)や受信
信号(f)、スクランブル符号化送信データ(c)やス
クランブル符号化受信データ(g)、誤り訂正符号付き
送信データ(b)や誤り訂正符号付き受信データ
(h)、BCH(31,16)符号+パリティ符号、送
信データ(a)や受信データ(i)である。
For example, in the BCH (31,16) code,
By adding a 15-bit error correction code and a 1-bit even parity code to the 16-bit transmission data, it is possible to correct up to a 4-bit error in these 32 bits. The communication message format is shown in FIG. Transmission signal (d), reception signal (f), scramble coded transmission data (c), scramble coded reception data (g), error correction code added transmission data (b) and error correction code received data in order from the top. (H), BCH (31, 16) code + parity code, transmission data (a) and reception data (i).

【0053】次にスクランブル符号について説明する。
図9に31通りのスクランブル符号を示す。これらは3
1ビットフレーム同期符号を1ビットずつ左ローテーシ
ョンし最後に1ビットの「0」を加えて得るもので、例
えば、図中スクランブル符号(1)はフレーム同期符号
+「0」、スクランブル符号(2)はフレーム同期符号
の1ビット左ローテーション+「0」である。この中か
ら一つを選択してスクランブル符号とする。
Next, the scramble code will be described.
FIG. 9 shows 31 scramble codes. These are 3
It is obtained by rotating the 1-bit frame synchronization code one bit to the left and adding 1 bit of "0" at the end. For example, the scrambling code (1) in the figure is the frame synchronization code + "0", the scrambling code (2). Is 1 bit left rotation of frame synchronization code + “0”. One of them is selected as a scramble code.

【0054】疑似ランダム符号であるフレーム同期符号
からスクランブル符号を得るので図10に示すような特
性を持つ。異なるスクランブル符号のビット差は常に1
6ビットとなる。ここではスクランブル符号(1)と
(2)、(1)と(3)との比較のみを示したが、どの
スクランブル符号を比べてもビット差は常に16ビット
である。
Since the scramble code is obtained from the frame synchronization code which is a pseudo random code, it has the characteristics shown in FIG. The bit difference between different scramble codes is always 1
It will be 6 bits. Here, only the comparison between the scramble codes (1) and (2) and between the scramble codes (1) and (3) is shown, but the bit difference is always 16 bits regardless of which scramble code is compared.

【0055】したがって図11に示すように、送信する
ときのスクランブル符号と受信するときのスクランブル
符号とが異なると31ビット中の半分のビットが送信と
受信とで異なる。この結果、送信と受信とでスクランブ
ル符号が異なると受信したデータを解析することができ
ない。すなわち、データの秘密性が得られる。
Therefore, as shown in FIG. 11, when the scramble code for transmission and the scramble code for reception are different, half of 31 bits are different between transmission and reception. As a result, the received data cannot be analyzed if the scramble code is different between transmission and reception. That is, confidentiality of data is obtained.

【0056】なお、32ビットにするために挿入する1
ビットは「0」でなく「1」でも構わない。またその1
ビットを挿入する位置は最後でなくフレーム同期符号の
最初や途中でもよい。
Note that 1 is inserted to make 32 bits.
The bit may be "1" instead of "0". Also 1
The bit insertion position may be at the beginning or the middle of the frame synchronization code, not at the end.

【0057】それではBCH(n、k)符号+パリティ
符号とスクランブル符号とで組み合わせて使用する場合
のメリットを説明する。誤り訂正符号としてBCH
(n、k)符号に1ビットパリティ符号を付加し、スク
ランブル符号としてフレーム同期符号mビットに1ビッ
トを付加して、(m+1)と(n+1)とを等しくした
ので、BCH符号とスクランブル符号との位置関係が固
定される。
The advantages of using the BCH (n, k) code + parity code and scramble code in combination will now be described. BCH as error correction code
Since the 1-bit parity code is added to the (n, k) code and the 1 bit is added to the frame synchronization code m bits as a scramble code to make (m + 1) and (n + 1) equal, the BCH code and the scramble code are The positional relationship of is fixed.

【0058】例えば、BCH符号+パリティ符号、スク
ランブル符号ともに32ビットの場合を図12に示す。
BCH符号の1ビットめは常にスクランブル符号の1ビ
ットめとXOR演算を行い、パリティ符号は常にスクラ
ンブル符号の32ビットめとXOR演算を行う。このと
き図12(a)のように、BCH(31,16)符号+
パリティ符号が連続すると誤り訂正符号16ビットと伝
送データ16ビットとで連続して32ビットの「0」が
出現する場合がある。しかしスクランブル符号との位置
関係が固定され図12(a)のように、この32ビット
の連続「0」とはスクランブル符号の後半16ビット+
前半16ビットとXOR演算することとなり、その結
果、フレーム同期符号と異なる符号列になる。
For example, FIG. 12 shows a case where both the BCH code + parity code and the scramble code are 32 bits.
The first bit of the BCH code always performs the first bit of the scramble code and the XOR operation, and the parity code always performs the second bit of the scramble code and the XOR operation. At this time, as shown in FIG. 12A, BCH (31, 16) code +
When the parity codes are continuous, 16 bits of the error correction code and 16 bits of the transmission data may continuously appear as a 32-bit “0”. However, since the positional relationship with the scramble code is fixed, as shown in FIG. 12A, the 32-bit consecutive "0" means the latter 16 bits of the scramble code +
An XOR operation is performed with the first half 16 bits, resulting in a code string different from the frame synchronization code.

【0059】また、BCH(31,16)符号とスクラ
ンブル符号31ビットの場合、図6(b)のようにXO
R演算の結果がフレーム同期符号と同じとなって使用で
きないスクランブル符号があったが、1ビット付加した
この方法では図12(b)のように問題なく使用できる
のでスクランブル符号生成に注意を払う必要がない。
In the case of a BCH (31, 16) code and a scramble code of 31 bits, XO as shown in FIG.
There was a scramble code that could not be used because the result of the R operation was the same as the frame sync code, but this method with 1 bit added can be used without problems as shown in FIG. 12 (b), so attention must be paid to scramble code generation. There is no.

【0060】以上のように、誤り訂正符号としてBCH
(31、16)符号に1ビットパリティ符号を付加し、
スクランブル符号としてフレーム同期符号に1ビットを
付加することで共に2^5ビットとなりマイコンで扱い
やすいビット数となる。誤り訂正符号としてBCH
(n、k)符号に1ビットパリティ符号を付加し、スク
ランブル符号としてフレーム同期符号に1ビットを付加
することで2^Nビット(Nは自然数)となりマイコン
で扱いやすいビット数となる。
As described above, the BCH is used as the error correction code.
Add a 1-bit parity code to the (31, 16) code,
By adding 1 bit to the frame synchronization code as a scramble code, both become 2 ^ 5 bits, which is a bit number easy to handle by a microcomputer. BCH as error correction code
By adding a 1-bit parity code to the (n, k) code and adding 1 bit to the frame synchronization code as a scramble code, 2 ^ N bits (N is a natural number) are obtained, which is a bit number that can be easily handled by a microcomputer.

【0061】なお、図4や図9において右ローテーショ
ンによってスクランブル符号を得ても良い。
The scramble code may be obtained by right rotation in FIGS. 4 and 9.

【0062】[0062]

【発明の効果】以上の説明から明らかなように本発明に
よれば、フレーム同期符号から生成したスクランブル符
号によって、同じビット値が連続するのを制限するとと
もに、データの秘密性を得ることができる。
As is apparent from the above description, according to the present invention, the scramble code generated from the frame synchronization code can restrict the continuation of the same bit value and can obtain the confidentiality of the data. .

【0063】BCH(n,k)符号を用いた誤り訂正符
と1ビットパリティ符号を付加した送信データとする
ので送信データには(n+1)ビット以上「0」の連続
したデータは発生しない。加えて、スクランブル符号の
符号長(m+1)はBCH符号の符号長nに1ビットパ
リティ符号を付加した長さ(n+1)と等しくしたの
で、「0」がnビット連続する場合に連続する位置とス
クランブル符号の位置との位置関係が固定され、フレー
ム同期符号から生成したスクランブル符号で排他的論理
和演算を行っても送信信号にフレーム同期符号と同じ符
号が現れない。
Since the error correction code using the BCH (n, k) code and the 1-bit parity code are added to the transmission data, no continuous data of (n + 1) bits or more "0" is generated. In addition, the code length (m + 1) of the scramble code is 1 bit longer than the code length n of the BCH code.
Since the length is equal to the length (n + 1) added with the priority code, when n bits of "0" continue, the positional relationship between the consecutive position and the scramble code position is fixed, and the scramble code generated from the frame synchronization code is fixed. Even if the exclusive OR operation is performed, the same code as the frame synchronization code does not appear in the transmission signal.

【0064】また、誤り訂正符号としてBCH(n、
k)符号に1ビットパリティ符号を付加し、スクランブ
ル符号としてフレーム同期符号に1ビットを付加するこ
とで2^Nビット(Nは自然数)となりマイコンで扱い
やすいビット数となる。
As an error correction code, BCH (n,
k) By adding a 1-bit parity code to the code and adding 1 bit to the frame synchronization code as a scramble code, 2 ^ N bits (N is a natural number) becomes a bit number that can be easily handled by a microcomputer.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例1の通信システムにおける送信
装置のブロック図
FIG. 1 is a block diagram of a transmission device in a communication system according to a first embodiment of the present invention.

【図2】同システムにおける受信装置のブロック図FIG. 2 is a block diagram of a receiving device in the system.

【図3】同システムにおいて通信電文フォーマットを示
す図
FIG. 3 is a diagram showing a communication message format in the system.

【図4】同システムにおいてスクランブル符号を示す図FIG. 4 is a diagram showing a scramble code in the same system.

【図5】同システムにおいてスクランブル符号の特性を
示す図
FIG. 5 is a diagram showing characteristics of a scramble code in the same system.

【図6】同システムにおいてスクランブル符号の効果を
示す図
FIG. 6 is a diagram showing an effect of a scramble code in the same system.

【図7】(a)同システムにおいてスクランブル符号の
効果を示す図 (b)同システムにおいて別のスクランブル符号の効果
を示す図
FIG. 7A is a diagram showing an effect of a scramble code in the same system, and FIG. 7B is a diagram showing an effect of another scramble code in the same system.

【図8】本発明の実施例2の通信システムにおいて通信
電文フォーマットを示す図
FIG. 8 is a diagram showing a communication message format in the communication system according to the second embodiment of the present invention.

【図9】同システムにおいてスクランブル符号を示す図FIG. 9 is a diagram showing a scramble code in the same system.

【図10】同システムにおいてスクランブル符号の特性
を示す図
FIG. 10 is a diagram showing characteristics of a scramble code in the same system.

【図11】同システムにおいてスクランブル符号の効果
を示す図
FIG. 11 is a diagram showing an effect of a scramble code in the same system.

【図12】同システムにおいてスクランブル符号の効果
を示す図
FIG. 12 is a diagram showing an effect of scramble code in the same system.

【図13】従来の通信システムにおいて通信電文フォー
マットを示す図
FIG. 13 is a diagram showing a communication message format in a conventional communication system.

【図14】(a)従来の通信システムにおいて全て
「0」であるデータのスクランブル符号の効果を示す図 (b)同システムにおいて全て「1」であるデータのス
クランブル符号の効果を示す図 (c)同システムにおいてスクランブル符号と同じ符号
列データのスクランブル符号の効果を示す図 (d)同システムにおいてスクランブル符号の反転符号
別データのスクランブル符号の効果を示す図
FIG. 14A is a diagram showing an effect of a scramble code of data which is all “0” in the conventional communication system. FIG. 14B is a diagram showing an effect of a scramble code of data which is all “1” in the same system. ) A diagram showing the effect of the scramble code of the same code string data as the scramble code in the same system.

【符号の説明】[Explanation of symbols]

1 送信装置 2、22 同期符号記憶手段 3、23 スクランブル符号生成手段 5 誤り訂正符号生成手段 6 第一の演算手段 7 送信信号生成手段 9 送信手段 10 識別符号記憶手段 21 受信装置 25 受信手段 26 同期処理手段 27 第二の演算手段 28 識別符号記憶手段 29 受信データ解析手段 1 transmitter 2, 22 sync code storage means 3,23 scramble code generation means 5 Error correction code generation means 6 First computing means 7 Transmission signal generation means 9 Transmission means 10 identification code storage means 21 Receiver 25 Receiving means 26 Synchronous processing means 27 Second computing means 28 identification code storage means 29 Received data analysis means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山本 雅弘 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (56)参考文献 特開 平10−66157(JP,A) 特開 平6−291759(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04L 9/18 H04L 1/00 H04L 7/08 JICSTファイル(JOIS)─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Masahiro Yamamoto 1006 Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. (56) References JP-A-10-66157 (JP, A) JP-A-6- 291759 (JP, A) (58) Fields surveyed (Int.Cl. 7 , DB name) H04L 9/18 H04L 1/00 H04L 7/08 JISST file (JOIS)

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 少なくとも一つの送信装置と受信装置か
らなる通信システムにおいて、前記送信装置と前記受信
装置とは、mビットのフレーム同期符号を記憶する同期
符号記憶手段と、前記フレーム同期符号に1ビットを付
加した符号からスクランブル符号を生成するスクランブ
ル符号生成手段とをおのおの備え、前記送信装置は、B
CH(n、k)符号を用いた誤り訂正符号と1ビットパ
リティ符号を付加した送信データに前記スクランブル符
号で排他的論理和演算を行って送信信号を出力する第一
の演算手段と、前記第一の演算手段からの送信信号を送
信する送信手段とを備え、前記受信装置は、受信手段で
受信した受信信号に前記スクランブル符号で排他的論理
和演算を行って受信データを出力する第二の演算手段
と、前記第二の演算手段からの受信データ内の誤り訂正
符号を解析する受信データ解析手段とを備え、前記スク
ランブル符号の符号長(m+1)は前記BCH符号長n
に前記1ビットパリティ符号を付加した長さ(n+1)
と等しくした通信システム。
1. A communication system comprising at least one transmitting device and one receiving device, wherein the transmitting device and the receiving device have a synchronization code storage means for storing an m-bit frame synchronization code, and one for the frame synchronization code. And a scramble code generating means for generating a scramble code from a code to which bits are added.
First operation means for performing an exclusive OR operation on the transmission data to which the error correction code using the CH (n, k) code and the 1-bit parity code is added with the scramble code to output a transmission signal; A second transmission means for transmitting a transmission signal from one calculation means, wherein the reception device performs an exclusive OR operation on the reception signal received by the reception means with the scramble code to output reception data. Computation means and reception data analysis means for analyzing an error correction code in the reception data from the second computation means are provided, and the code length (m + 1) of the scramble code is the BCH code length n.
Length (n + 1) obtained by adding the 1-bit parity code to
Communication system equal to.
【請求項2】 フレーム同期符号長m=31ビット、B
CH(n、k)符号をn=31ビット、k=16ビット
とした請求項1記載の通信システム。
2. A frame synchronization code length m = 31 bits, B
The communication system according to claim 1, wherein the CH (n, k) code is n = 31 bits and k = 16 bits.
【請求項3】 スクランブル符号生成手段はフレーム同
期符号をローテーション操作を行い、通信システム毎に
異なるスクランブル符号を生成する請求項1又は2記載
の通信システム。
3. A scrambling code generating unit performs the Rothe Shon operating the frame synchronization code, a communication system according to claim 1 or 2, wherein generating different scrambling codes for each communication system.
【請求項4】 少なくとも一つの送信装置と受信装置と
の通信方法において、前記送信装置と前記受信装置はお
のおのmビットのフレーム同期符号を記憶し、前記フレ
ーム同期符号に1ビットを付加した符号からスクランブ
ル符号を生成し、前記送信装置は、BCH(n、k)符
号を用いた誤り訂正符号と1ビットパリティ符号を付加
した送信データに前記スクランブル符号で排他的論理和
演算を行って送信信号を送信し、前記受信装置は、受信
手段で受信した受信信号に前記スクランブル符号で排他
的論理和演算を行って受信データ内の誤り訂正符号を解
析し、前記スクランブル符号の符号長(m+1)は前記
BCH符号長nに前記1ビットパリティ符号を付加した
長さ(n+1)と等しくした通信方法。
4. A communication method between at least one transmitting device and at least one receiving device, wherein each of the transmitting device and the receiving device stores an m-bit frame synchronization code, and a code obtained by adding 1 bit to the frame synchronization code. A scramble code is generated, and the transmission device performs an exclusive OR operation on the transmission data to which the error correction code using the BCH (n, k) code and the 1-bit parity code are added with the scramble code to obtain a transmission signal. Then, the receiving device analyzes the error correction code in the received data by performing an exclusive OR operation on the received signal received by the receiving means with the scramble code, and the code length (m + 1) of the scramble code is A communication method in which the BCH code length n is made equal to the length (n + 1) obtained by adding the 1-bit parity code.
【請求項5】 少なくとも一つの受信装置と通信する送
信装置において、mビットのフレーム同期符号を記憶す
る同期符号記憶手段と、前記フレーム同期符号に1ビッ
トを付加した符号からスクランブル符号を生成するスク
ランブル符号生成手段と、BCH(n、k)符号を用い
た誤り訂正符号と1ビットパリティ符号を付加した送信
データに前記スクランブル符号で排他的論理和演算を行
って送信信号を出力する第一の演算手段と、前記第一の
演算手段からの送信信号を送信する送信手段とを備え、
前記スクランブル符号の符号長(m+1)は前記BCH
符号長nに前記1ビットパリティ符号を付加した長さ
(n+1)と等しくした送信装置。
5. A transmission device communicating with at least one reception device, wherein a synchronization code storage means for storing an m-bit frame synchronization code and scrambling for generating a scramble code from a code obtained by adding 1 bit to the frame synchronization code. Code generation means and a first calculation for performing an exclusive OR operation on the transmission data to which the error correction code using the BCH (n, k) code and the 1-bit parity code are added with the scramble code to output the transmission signal. Means and transmitting means for transmitting a transmission signal from the first arithmetic means,
The code length (m + 1) of the scramble code is the BCH
A transmitting device in which the code length n is equal to the length (n + 1) obtained by adding the 1-bit parity code.
【請求項6】 少なくとも一つの送信装置と通信する受
信装置において、mビットのフレーム同期符号を記憶す
る同期符号記憶手段と、前記フレーム同期符号に1ビッ
トを付加した符号からスクランブル符号を生成するスク
ランブル符号生成手段と、受信手段で受信した受信信号
に前記スクランブル符号で排他的論理和演算を行って受
信データを出力する第二の演算手段と、前記第二の演算
手段からの受信データ内のBCH(n、k)符号を用い
た誤り訂正符号と1ビットパリティ符号を解析する受信
データ解析手段とを備え、前記スクランブル符号の符号
長(m+1)は前記BCH符号長nに前記1ビットパリ
ティ符号を付加した長さ(n+1)と等しくした受信装
置。
6. A receiving device communicating with at least one transmitting device, wherein a sync code storing means for storing an m-bit frame sync code and scrambling for generating a scramble code from a code obtained by adding 1 bit to the frame sync code. BCH in the received data from the code generating means, the second operating means for performing exclusive OR operation on the received signal received by the receiving means with the scramble code to output the received data, An error correction code using an (n, k) code and a received data analysis means for analyzing a 1-bit parity code are provided, and the code length (m + 1) of the scramble code is the BCH code length n with the 1-bit parity code. A receiving device having a length equal to the added length (n + 1).
【請求項7】 請求項5記載の送信装置としてコンピュ
ータを機能させるためのプログラムを記録した記録媒
体。
7. A recording medium recording a program for causing a computer to function as the transmitting device according to claim 5 .
【請求項8】 請求項6記載の受信装置としてコンピュ8. A computer as the receiving device according to claim 6.
ータを機能させるためのプログラムを記録した記録媒A recording medium that records a program for operating the data
体。body.
JP2002021484A 2002-01-30 2002-01-30 Communication system and communication method Expired - Fee Related JP3458853B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002021484A JP3458853B2 (en) 2002-01-30 2002-01-30 Communication system and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002021484A JP3458853B2 (en) 2002-01-30 2002-01-30 Communication system and communication method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP31056299A Division JP2001127752A (en) 1999-11-01 1999-11-01 Communication system

Publications (2)

Publication Number Publication Date
JP2002344437A JP2002344437A (en) 2002-11-29
JP3458853B2 true JP3458853B2 (en) 2003-10-20

Family

ID=19192187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002021484A Expired - Fee Related JP3458853B2 (en) 2002-01-30 2002-01-30 Communication system and communication method

Country Status (1)

Country Link
JP (1) JP3458853B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005236348A (en) * 2004-02-17 2005-09-02 Matsushita Electric Ind Co Ltd Wireless system, wireless apparatus, wireless communication method, and program
JP4405875B2 (en) * 2004-08-25 2010-01-27 富士通株式会社 Method and apparatus for generating data for error correction, generation program, and computer-readable recording medium storing the program
US7508884B2 (en) * 2005-03-24 2009-03-24 Harris Corporation System and method for communicating data using constant amplitude equalized waveform
CN100446481C (en) * 2006-01-09 2008-12-24 华为技术有限公司 Method and apparatus for detecting optical fiber link in router
JP2007252573A (en) * 2006-03-23 2007-10-04 Aloka Co Ltd Wireless ultrasonic diagnostic apparatus
JP5425667B2 (en) * 2010-03-05 2014-02-26 株式会社日立製作所 Transmitting apparatus, receiving apparatus, and transmission system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06291759A (en) * 1993-04-07 1994-10-18 Matsushita Electric Ind Co Ltd Flow rate measuring device
FI112419B (en) * 1996-06-06 2003-11-28 Nokia Corp Procedure for the confidentiality of data transmission

Also Published As

Publication number Publication date
JP2002344437A (en) 2002-11-29

Similar Documents

Publication Publication Date Title
JP4912772B2 (en) Encryption method, encryption / decryption method, encryption device, encryption / decryption device, transmission / reception system, and communication system
WO2002101971A2 (en) Apparatus, system and method for validating integrity of transmitted data
JP2020501466A (en) Optimized hopping pattern for different sensor nodes and variable data length based on message segmentation transmission method
CN1124718C (en) Decryption of retransmitted data in an encrypted communication system
CA2375393C (en) Method and apparatus for transmitting and receiving wireless packet
US8213616B2 (en) Systems and methods for providing opportunistic security for physical communication channels
US11528260B2 (en) Transmitting device and transmitting method, and receiving device and receiving method
KR20120071880A (en) Rfid security reader and method for security thereof
CN1171416C (en) Modulated message authentication system and method
CN114051006A (en) Data transmission method, data transmission device, computer equipment and storage medium
CN115276906B (en) Data frame transmission method, device, chip, storage medium and Bluetooth equipment
WO2002011361A2 (en) Data encryption and decryption using error correction methodologies
JP3458853B2 (en) Communication system and communication method
KR101059344B1 (en) Encrypted communication system
JPWO2003007543A1 (en) Shared data refining apparatus and shared data refining method
JP2001024516A (en) Method and device for transmitting variable length coded data in low s/n ratio environment
JP2001127752A (en) Communication system
CA2448907A1 (en) Method and apparatus to maintain encryption synchronization in a multi-modulation tdm system
KR20090065141A (en) Method and apparatus of transmission/reception for wireless sensor network security
US6463556B1 (en) Method and apparatus for interleaving in a communication system
US6130895A (en) Methods and devices for sending and receiving data and systems using them
WO2007059389A2 (en) Method and apparatus for interleaving within a communication system
CN114239779A (en) Data transmission method, transmission system, acquisition equipment and receiving equipment
JPH07297817A (en) Data transmission system
US7907669B2 (en) Low-detectability communication between a transmitter and receiver

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
R151 Written notification of patent or utility model registration

Ref document number: 3458853

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070808

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080808

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080808

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090808

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090808

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100808

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110808

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110808

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130808

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees