Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5285582B2 - Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program - Google Patents
[go: Go Back, main page]

JP5285582B2 - Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program - Google Patents

Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program Download PDF

Info

Publication number
JP5285582B2
JP5285582B2 JP2009265947A JP2009265947A JP5285582B2 JP 5285582 B2 JP5285582 B2 JP 5285582B2 JP 2009265947 A JP2009265947 A JP 2009265947A JP 2009265947 A JP2009265947 A JP 2009265947A JP 5285582 B2 JP5285582 B2 JP 5285582B2
Authority
JP
Japan
Prior art keywords
error correction
dimensional code
code
parameter
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
JP2009265947A
Other languages
Japanese (ja)
Other versions
JP2011113106A (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.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting Corp
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 Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2009265947A priority Critical patent/JP5285582B2/en
Publication of JP2011113106A publication Critical patent/JP2011113106A/en
Application granted granted Critical
Publication of JP5285582B2 publication Critical patent/JP5285582B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、2次元コード生成のための符号化演算支援装置、2次元コード生成装置およびプログラムに関し、特に、デジタル放送受信装置において2次元コードを生成する技術に関する。   The present invention relates to an encoding operation support apparatus for generating a two-dimensional code, a two-dimensional code generating apparatus, and a program, and more particularly to a technique for generating a two-dimensional code in a digital broadcast receiving apparatus.

現在、QRコード(登録商標)を初めとする2次元コードが広く普及・活用されている。また、QRコードの読み取り装置(QRコードリーダ)も携帯電話機をはじめとして広く普及している。例えば印刷されたQRコードを、携帯電話機の読み取り機能を用いて読み取れば、ユーザによる文書の手入力操作を省略することができる。   Currently, two-dimensional codes such as QR code (registered trademark) are widely spread and utilized. QR code readers (QR code readers) are also widely used, including mobile phones. For example, if a printed QR code is read using a reading function of a mobile phone, a manual input operation of a document by a user can be omitted.

例えば、データ放送(電子文書)を受信するデジタル放送受信装置(以下、単に受信機ともいう)やパーソナルコンピュータ等の電子文書表示デバイス内において、2次元コードの閲覧者に依存しない共通情報(複数の電子文書デバイスに共通な情報)の文字列および2次元コードの閲覧者や閲覧デバイス固有である個別情報の文字列を含む個別2次元コードを生成し電子文書表示デバイス上に表示する技術が提案されている(例えば、非特許文献1参照)。非特許文献1では、QRコードの内容の一部とする共通情報の文字列として、例えば、インターネット上に存在する放送事業者のサーバ等へアクセスするためのURL(Uniform Resource Locator)が想定されている。また、QRコードの内容の他の一部とする個別情報の文字列として、B-CASカード番号が想定されている。   For example, in a digital broadcast receiving apparatus (hereinafter also simply referred to as a receiver) that receives a data broadcast (electronic document) or an electronic document display device such as a personal computer, common information that does not depend on a viewer of a two-dimensional code (a plurality of information) A technique has been proposed in which an individual two-dimensional code including a character string of information) common to an electronic document device and a character string of individual information unique to a viewer or a browsing device is generated and displayed on the electronic document display device. (For example, refer nonpatent literature 1). In Non-Patent Document 1, for example, a URL (Uniform Resource Locator) for accessing a broadcaster's server or the like existing on the Internet is assumed as a character string of common information as a part of the content of the QR code. Yes. In addition, a B-CAS card number is assumed as a character string of individual information that is another part of the content of the QR code.

このような個別情報の文字列を想定している理由は、現在のデジタル放送では、B-CASカードを用いたアクセス制御を行っていることによる。B-CASカードは、受信機購入時に添付される形で、ユーザ(視聴者)に配布される。ユーザは、B-CASカードを入手する度に、放送事業者に対しB-CASカード番号登録(ユーザ登録)が必要となっている。放送事業者では、はがき、電話、インターネット、共通QRコード(1種類のQRコード)での登録を受け付けている。B-CASカード番号は、ほとんど連続性のない20桁の数字の羅列である。そのため、ユーザにとってみれば、いずれの方法でも容易な手続きとは言えないことが課題となっている。   The reason for assuming such a character string of individual information is that access control using a B-CAS card is performed in the current digital broadcasting. The B-CAS card is distributed to users (viewers) in the form attached when the receiver is purchased. Every time a user obtains a B-CAS card, B-CAS card number registration (user registration) is required for the broadcaster. Broadcasters accept registration via postcard, telephone, Internet, and common QR code (one type of QR code). The B-CAS card number is an enumeration of 20-digit numbers with little continuity. For this reason, the problem is that it is not an easy procedure for any user.

この課題を解決するために、放送事業者のサーバアドレスの一部(引数)として、B-CASカード番号などの受信機や視聴者固有の個別情報を含めたテキスト情報を、QRコードなどの2次元コードに変換し、インターネットを介して放送事業者に伝える方法が考えられる。非特許文献1に基づく方法により、表示制約の厳しいデータ放送上であっても、個別QRコードを表示することができる。   To solve this problem, text information including receiver-specific information such as B-CAS card numbers and viewer-specific information as part of the broadcaster's server address (argument), QR code, etc. A method of converting to a dimension code and transmitting it to the broadcaster via the Internet can be considered. By the method based on Non-Patent Document 1, an individual QR code can be displayed even on data broadcasting with severe display restrictions.

ここで、従来の2次元コード生成処理の概要について図13を参照して説明する。例えば、共通情報の文字列と個別情報の文字列とを含むQRコードを、QRコード生成プログラムで生成する手順は次の通りである。電子文書表示デバイスの内部でQRコードを生成して画面表示させるには、まず、QRコードで実際に読み取らせたい内容を示すテキストを電子文書表示デバイスに入力する(S101)。読み取らせたい内容として、共通情報の文字列がURL、個別情報の文字列がカード番号の場合には、「http:// … 」等のテキストを入力することになる。   Here, an outline of a conventional two-dimensional code generation process will be described with reference to FIG. For example, a procedure for generating a QR code including a character string of common information and a character string of individual information by a QR code generation program is as follows. In order to generate a QR code and display it on the screen inside the electronic document display device, first, text indicating the content to be actually read by the QR code is input to the electronic document display device (S101). As contents to be read, if the character string of the common information is a URL and the character string of the individual information is a card number, a text such as “http: //...” Is input.

次に、電子文書表示デバイスの内部で入力テキストを符号化する(S102)。これにより、例えば「http:// … 」等のテキストは、「100110 … 」のような2進表現のビット列(データコード語列)に変換される。次に、電子文書表示デバイスの内部で数値演算を実行する。まず、誤り訂正符号を計算し、付加する。QRコードは、データコード語列に付加する一連の誤り訂正コード語を生成するリードソロモン(RS)誤り訂正を備えている。そこで、電子文書表示デバイスの内部でRS誤り訂正符号(誤り訂正コード語)を計算により求め、データコード語列に付加する(S103)。   Next, the input text is encoded inside the electronic document display device (S102). Thus, for example, a text such as “http: //...” Is converted into a binary-represented bit string (data code word string) such as “100110. Next, a numerical operation is executed inside the electronic document display device. First, an error correction code is calculated and added. The QR code includes Reed-Solomon (RS) error correction that generates a series of error correction code words to be added to the data code word string. Therefore, an RS error correction code (error correction code word) is obtained by calculation inside the electronic document display device and added to the data code word string (S103).

さらに、電子文書表示デバイスの内部でマスク処理を行う(S104)。マスク処理は、明モジュールと暗モジュールとをバランスよく配置してQRコードを読み取り易くするために、符号化領域で与えられたモジュールパターン(ビット列のパターン)と、複数のマスクパターン(マスク処理マトリックスパターン)とで順にXOR(排他的論理和)による変換を行い、変換結果の評価により、マスクパターンとして最適なものを選定し、最適なマスクパターンを用いた場合のXOR演算結果を出力する処理である。なお、QRコードは、8種類のマスクパターン{0,…,7}を備えている。そして、電子文書表示デバイスは、生成したQRコードを出力する(S105)。例えば、シンボルとして構成したQRコード(QRコードシンボル)を画面に表示させることができる。   Further, mask processing is performed inside the electronic document display device (S104). In the mask processing, a module pattern (bit string pattern) given in the encoding area and a plurality of mask patterns (mask processing matrix pattern) are arranged in order to make it easy to read the QR code by arranging the light module and the dark module in a balanced manner. ) And XOR (exclusive OR) in order, select the optimal mask pattern based on the evaluation of the conversion result, and output the XOR operation result when using the optimal mask pattern . The QR code has eight types of mask patterns {0,..., 7}. Then, the electronic document display device outputs the generated QR code (S105). For example, a QR code (QR code symbol) configured as a symbol can be displayed on the screen.

データ放送上に個別QRコードを表示するときには、それを読み取った携帯電話機等の表示画面に表示される英数字等のテキストが約50文字以上になると考えられる。つまり、個別QRコードのデータサイズが比較的大きいため、QRコードシンボルのサイズも大きくなる。電子文書表示デバイスの性能によっては、個別QRコードを表示するまでの所要時間が長くなる。非特許文献1には、マスク処理において、最適なマスクパターンを予め選定しておく技術が開示されている。これにより、非特許文献1の技術では、電子文書表示デバイスが古い受信機などの計算資源の乏しい環境であっても、電子文書表示デバイス内でQRコードを高速にシンボル化することができる。なお、QRコードは、日本工業規格(JIS X 0510)で仕様が定められている。   When an individual QR code is displayed on a data broadcast, text such as alphanumeric characters displayed on a display screen of a mobile phone or the like that has read the code is considered to be about 50 characters or more. That is, since the data size of the individual QR code is relatively large, the size of the QR code symbol is also increased. Depending on the performance of the electronic document display device, the time required to display the individual QR code becomes longer. Non-Patent Document 1 discloses a technique for selecting an optimal mask pattern in advance in mask processing. As a result, according to the technique of Non-Patent Document 1, even if the electronic document display device is in an environment with scarce computing resources such as an old receiver, the QR code can be symbolized at high speed in the electronic document display device. The QR code is specified by the Japanese Industrial Standard (JIS X 0510).

川喜田裕之、外6名、「個別QRコード生成BMLプログラムの開発」、映像情報メディア学会技術報告、Vol.33、No.9、p.9-12、2009年Hiroyuki Kawakita and 6 others, “Development of individual QR code generation BML program”, ITE Technical Report, Vol.33, No.9, p.9-12, 2009

放送局からデータ放送コンテンツのBML(Broadcast Markup Language)文書にQRコード等の2次元コード生成プログラムを組み込んで配信する場合には、視聴者が所有する受信機に応じて、個別QRコードを表示するまでの所要時間に差が生じる。これは、受信機の性能には、メーカ、型番、製造年によってばらつきがあるためである。非特許文献1の技術は、マスク処理を高速に行うことで、個別QRコードの表示までの時間を短縮できるが、受信機性能のばらつきを考慮すると、より多くの視聴者の利便性を高めるためには、さらなる時間短縮が望ましい。   When a broadcast station incorporates a two-dimensional code generation program such as a QR code into a BML (Broadcast Markup Language) document of data broadcast content and distributes it, an individual QR code is displayed according to the receiver owned by the viewer There will be a difference in the time required until. This is because the receiver performance varies depending on the manufacturer, model number, and year of manufacture. The technology of Non-Patent Document 1 can shorten the time to display the individual QR code by performing the mask process at a high speed. However, in consideration of variations in receiver performance, the convenience of more viewers is improved. For this, further time reduction is desirable.

2次元コード生成処理において、高速化を阻害するような負荷が大きい処理は、誤り訂正符号の計算および付加処理であることが実験で確かめられている。個別QRコードは、URL等の共通情報と、カード番号等の個別情報とを内容に含むので、このうちURL等の共通情報に関しては放送局側で予め誤り訂正符号の計算および付加処理を行い、その処理結果を配信し、受信機の負荷を軽減する方法が考えられる。しかしながら、1つの個別QRコードを生成するために必要な誤り訂正符号の計算等の符号化演算処理を、複数の異なる装置間で、QRコード等の2次元コードの仕様に則って分担して行うという技術は開発されていなかった。   In a two-dimensional code generation process, it has been experimentally confirmed that a process with a large load that impedes speeding up is an error correction code calculation and addition process. The individual QR code includes common information such as a URL and individual information such as a card number in the contents, so for the common information such as a URL, the broadcast station side performs error correction code calculation and additional processing in advance, A method of distributing the processing result and reducing the load on the receiver can be considered. However, encoding operation processing such as calculation of an error correction code necessary for generating one individual QR code is shared among a plurality of different devices in accordance with the specifications of a two-dimensional code such as a QR code. No technology has been developed.

本発明は、以上のような問題点に鑑みてなされたものであり、共通情報の文字列および個別情報の文字列を含む2次元コードを生成して表示する装置の処理負荷を軽減することを課題とする。   The present invention has been made in view of the above problems, and reduces the processing load of an apparatus that generates and displays a two-dimensional code including a character string of common information and a character string of individual information. Let it be an issue.

前記課題を解決するために、請求項1に記載の符号化演算支援装置は、複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成し電子文書表示デバイス上に表示する2次元コード生成装置と、2次元コードパラメータに基づいて前記共通情報および個別情報の文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援装置とを備える2次元コード生成システムにおける前記符号化演算支援装置であって、前記2次元コードパラメータが、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含み、前記符号化演算支援装置が、記憶手段と、ヘッダ付加・データ符号化手段と、誤り訂正符号化パラメータ変換手段と、誤り訂正符号計算手段と、出力手段と、を備えることとした。   In order to solve the above-described problem, the encoding calculation support device according to claim 1 is a character string of common information common to a plurality of two-dimensional code generation devices, and an individual piece that each two-dimensional code generation device individually acquires. A two-dimensional code generation device that generates a two-dimensional code including a character string of information and displays it on an electronic document display device, and encoding and error correction of the character string of the common information and individual information based on a two-dimensional code parameter An encoding operation support apparatus in a two-dimensional code generation system including an encoding operation support apparatus that supports an encoding operation that performs a calculation, wherein the two-dimensional code parameter includes a plurality of error correction blocks The encoding operation support device includes a storage means, and information on a character type mode of the character string of the common information and the number of characters of the common information character string. And a header adding data coding means, and the error correction coding parameter conversion means, and further comprising an error correction code calculating unit, and an output means.

かかる構成によれば、符号化演算支援装置は、記憶手段に、前記2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶している。ここで、2次元コードパラメータは、複数の誤り訂正ブロックを有する2次元コードの型に関するものなので、本来は2次元コード生成装置においてこれら複数の誤り訂正ブロックについて誤り訂正計算を行う必要があるが、符号化演算支援装置は、少なくとも1つの誤り訂正ブロックについて事前に誤り訂正計算を行う。また、符号化演算支援装置において、2次元コードは、QRコードであ、2次元コードの型とは、型番および誤り訂正レベルを示し、誤り訂正ブロックとはRSブロックを示し、誤り訂正パラメータとはRSブロック数およびデータコード語数を示す。 According to such a configuration, the encoding operation support apparatus includes an error correction encoding that is created in advance in association with the storage unit in association with the two-dimensional code parameter and an error correction parameter that specifies the number and size of the error correction blocks. A parameter conversion table is stored. Here, since the two-dimensional code parameter relates to the type of the two-dimensional code having a plurality of error correction blocks, it is originally necessary to perform error correction calculation for the plurality of error correction blocks in the two-dimensional code generation device. The coding operation support apparatus performs error correction calculation in advance for at least one error correction block. Further, the encoding operation supporting apparatus, two-dimensional code, Ri Ah in the QR code, and the type of 2-dimensional code to indicate the model number and error correction level, shows a RS block error correction block, and the error correction parameter Indicates the number of RS blocks and the number of data code words.

そして、符号化演算支援装置は、ヘッダ付加・データ符号化手段によって、前記共通情報の文字列の文字種のモードを符号化したモード指示子と、前記共通情報および個別情報の文字列の文字数の合計値を符号化した文字数指示子とを繋げてヘッダを生成し、前記文字種のモードで前記共通情報の文字列を符号化し、前記ヘッダに繋げることで第1ビット列データを生成する。つまり、この第1ビット列データは、ヘッダ情報と共通情報の文字列とを符号化したものである。   The encoding operation support device adds a mode indicator that encodes a character type mode of the character string of the common information and a total number of characters of the character string of the common information and the individual information by the header addition / data encoding means. A header is generated by connecting a character number indicator that encodes a value, a character string of the common information is encoded in the character type mode, and the first bit string data is generated by connecting to the header. That is, the first bit string data is obtained by encoding the header information and the character string of the common information.

そして、符号化演算支援装置は、誤り訂正符号化パラメータ変換手段によって、前記2次元コードパラメータを入力し、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記共通情報の文字列のデータ符号化後のビット数を算出すると共に、前記求めた誤り訂正パラメータから、前記第1ビット列データのビット数以下となるような最大の誤り訂正符号の誤り訂正ブロック数を算出し、各算出結果と前記求めた誤り訂正パラメータとにより誤り訂正計算手順を指定する。   Then, the encoding operation support device inputs the two-dimensional code parameter by the error correction encoding parameter conversion means, matches the input two-dimensional code parameter with reference to the error correction encoding parameter conversion table An error correction parameter to be calculated, the number of bits after data encoding of the character string of the common information is calculated, and the maximum error that is equal to or less than the number of bits of the first bit string data from the calculated error correction parameter The number of error correction blocks of the correction code is calculated, and an error correction calculation procedure is designated by each calculation result and the obtained error correction parameter.

ここで、2次元コードパラメータの入力に合わせて共通情報の文字列を入力する。また、2次元コードが例えばQRコードである場合には、誤り訂正ブロック数とはRSブロック数なので、バイト単位で表された数値をビット数に容易に換算できる。ここで、誤り訂正計算手順とは、誤り訂正ブロック数が「1」である場合には、誤り訂正ブロックがどのくらいのサイズであるのかだけを通知することを表し、誤り訂正ブロック数が複数の場合には、さらに、先頭から何番目の誤り訂正ブロックまで誤り訂正計算を行うのかといった情報を通知することを表す。そして、符号化演算支援装置に入力される共通情報の文字列の文字数に依存する第1ビット列データのサイズは、誤り訂正ブロック単位になるとは限らないが、誤り訂正ブロックは、ヘッダから順に割り当てられる。そして、演算可能な誤り訂正ブロック数の最大値を算出し、事前に誤り訂正符号の計算をすることで、2次元コード生成装置の処理負荷をより軽減することができる。   Here, a character string of common information is input in accordance with the input of the two-dimensional code parameter. Further, when the two-dimensional code is, for example, a QR code, the number of error correction blocks is the number of RS blocks, so that a numerical value expressed in bytes can be easily converted into the number of bits. Here, the error correction calculation procedure indicates that, when the number of error correction blocks is “1”, only the size of the error correction block is notified, and when the number of error correction blocks is plural. In addition, it indicates that information such as what error correction block from the head is to be subjected to error correction calculation is notified. The size of the first bit string data that depends on the number of characters in the common information character string input to the encoding operation support apparatus is not necessarily in error correction block units, but error correction blocks are assigned in order from the header. . Then, by calculating the maximum number of error correction blocks that can be calculated and calculating the error correction code in advance, the processing load on the two-dimensional code generation device can be further reduced.

そして、符号化演算支援装置は、誤り訂正符号計算手段によって、前記第1ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する。前記したように誤り訂正ブロック数は、第1ビット列データのヘッダから順に割り当てられるので、共通情報の文字列に相当する終端部分については指定から外れて誤り訂正計算されない部分が生じる場合がある。この部分については2次元コード生成装置にて誤り訂正計算を行うこととする。   Then, the coding operation support device uses the error correction code calculation means to indicate a data code indicating data corresponding to the error correction block designated by the error correction coding parameter conversion means among the number of bits of the first bit string data. Is subjected to error correction calculation to calculate an error correction code. As described above, since the number of error correction blocks is assigned in order from the header of the first bit string data, there is a case where a terminal part corresponding to the character string of the common information is not specified and a part that is not subjected to error correction calculation is generated. For this portion, error correction calculation is performed by the two-dimensional code generation device.

そして、符号化演算支援装置は、出力手段によって、前記データ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記算出した誤り訂正符号と、前記2次元コードパラメータとを出力する。これにより、符号化演算支援装置が出力するデータおよびパラメータの各情報を2次元コード生成装置が取得し、符号化演算支援装置が用いたものと同じ2次元コードパラメータにより、個別情報の文字列の符号化および誤り訂正計算を行い、さらに余剰ビットの誤り訂正計算を行うだけで、共通情報の文字列の大部分の符号化演算を省略することができる。   Then, the encoding operation support device uses the output means to output the data code, a surplus bit indicating a bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information, and the calculated error correction. The code and the two-dimensional code parameter are output. As a result, each piece of data and parameter information output by the encoding calculation support device is acquired by the two-dimensional code generation device, and the character string of the individual information is obtained using the same two-dimensional code parameters used by the encoding calculation support device. By performing encoding and error correction calculation, and further performing error correction calculation of surplus bits, most encoding operations of character strings of common information can be omitted.

また、請求項2に記載の符号化演算支援装置は、請求項1に記載の符号化演算支援装置において、前記記憶手段が、前記共通情報の文字列の文字種モードと、前記2次元コードの型と、前記共通情報文字列の許容最小文字数と、前記個別情報文字列の許容最大文字数との情報を予め関連付けて作成された2次元コードパラメータ変換表をさらに記憶し、2次元コードパラメータ生成手段をさらに備えることとした。   Also, the encoding calculation support device according to claim 2 is the encoding calculation support device according to claim 1, wherein the storage means includes a character type mode of the character string of the common information and a type of the two-dimensional code. And further storing a two-dimensional code parameter conversion table created in advance by associating information on the minimum allowable number of characters of the common information character string and the maximum allowable number of characters of the individual information character string. We decided to prepare further.

かかる構成によれば、符号化演算支援装置は、記憶手段に2次元コードパラメータ変換表をさらに記憶している。そして、符号化演算支援装置は、2次元コードパラメータ生成手段によって、前記共通情報の文字列の文字数と、前記個別情報の文字列の文字数と、前記共通情報の文字列の文字種のモードとの各情報を入力し、前記2次元コードパラメータ変換表を参照し、前記入力された各情報に合致する2次元コードの型を含む2次元コードパラメータを生成する。この生成された2次元コードパラメータは、ヘッダ付加・データ符号化手段や誤り訂正符号化パラメータ変換手段で利用される。このように、予め2次元コードパラメータ変換表を作成しておくことで、共通情報および個別情報の文字列の文字数と、文字種のモードとを指定するだけで、最適な2次元コードパラメータを選択し、入力された共通情報の文字列を符号化および誤り訂正計算を行うことができる。   According to such a configuration, the encoding operation support apparatus further stores the two-dimensional code parameter conversion table in the storage unit. Then, the encoding operation support apparatus uses the two-dimensional code parameter generation unit to perform each of the number of characters of the character string of the common information, the number of characters of the character string of the individual information, and the character type mode of the character string of the common information. Information is input, the two-dimensional code parameter conversion table is referred to, and a two-dimensional code parameter including a type of the two-dimensional code that matches the input information is generated. The generated two-dimensional code parameter is used by a header addition / data encoding unit and an error correction encoding parameter conversion unit. Thus, by creating a two-dimensional code parameter conversion table in advance, the optimum two-dimensional code parameters can be selected simply by specifying the number of characters in the character strings of the common information and individual information, and the character type mode. The character string of the input common information can be encoded and error correction calculation can be performed.

また、請求項3に記載の符号化演算支援装置は、請求項2に記載の符号化演算支援装置において、前記2次元コードパラメータ生成手段が、外部から、前記2次元コードの型の優先順位を取得し、前記入力された各情報に合致する2次元コードの型の候補が複数ある場合には、前記取得した優先順位にしたがって前記2次元コードパラメータを生成することとした。   The encoding operation support device according to claim 3 is the encoding operation support device according to claim 2, wherein the two-dimensional code parameter generation means sets the priority of the type of the two-dimensional code from the outside. When there are a plurality of two-dimensional code type candidates that are acquired and match the input information, the two-dimensional code parameters are generated according to the acquired priority order.

かかる構成によれば、符号化演算支援装置は、優先順位にしたがって2次元コードパラメータを生成するので、符号化演算支援装置の利用者が所望の基準で優先順位を指定することで、符号化演算支援装置の利用者の利便性を向上させることができる。例えば、用途に応じて、データサイズ、誤り訂正レベル、共通情報の文字数のいずれかにおいて、優先順位を割り当てることができる。   According to such a configuration, the encoding calculation support device generates a two-dimensional code parameter according to the priority order, so that the user of the encoding calculation support device designates the priority order according to a desired criterion, so that the encoding calculation support device The convenience of the user of the support device can be improved. For example, the priority can be assigned in any of the data size, the error correction level, and the number of characters of the common information according to the use.

また、請求項4に記載の符号化演算支援装置は、請求項1に記載の符号化演算支援装置において、2次元コードパラメータ入力手段をさらに備えることとした。   According to a fourth aspect of the present invention, there is provided a coding operation support apparatus according to the first aspect, further comprising a two-dimensional code parameter input unit.

かかる構成によれば、符号化演算支援装置は、2次元コードパラメータ入力手段によって、外部から前記2次元コードパラメータを入力する。例えば、共通情報および個別情報の文字列の文字数が固定された専用の個別2次元コードを生成するといった用途の場合には、外部から2次元コードパラメータを入力するだけの簡易構成とすることができる。   According to such a configuration, the encoding operation support apparatus inputs the two-dimensional code parameter from the outside by the two-dimensional code parameter input unit. For example, in the case of generating a dedicated individual two-dimensional code in which the number of characters in the character strings of the common information and the individual information is fixed, a simple configuration in which only two-dimensional code parameters are input from the outside can be achieved. .

また、請求項5に記載の符号化演算支援プログラムは、複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードの生成過程で行う文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援プログラムであって、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含む2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段を備えたコンピュータを、ヘッダ付加・データ符号化手段、誤り訂正符号化パラメータ変換手段、誤り訂正符号計算手段、出力手段として機能させるためのプログラムであることとした。 The encoding calculation support program according to claim 5 includes a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information acquired individually by each two-dimensional code generation device. A coding operation support program for supporting a coding operation for performing encoding and error correction calculation of a character string performed in a process of generating a two-dimensional code including a two-dimensional code type having a plurality of error correction blocks, A two-dimensional code parameter including information on the character type mode of the character string of common information, the number of characters of the common information character string, and an error correction parameter that specifies the number and size of the error correction blocks are created in advance. A computer having storage means for storing an error correction coding parameter conversion table is added to a header, data coding means, and error correction coding parameters. Switching means, it was decided that a program for causing the error correction code calculating unit, as the output means.

かかる構成によれば、符号化演算支援プログラムは、ヘッダ付加・データ符号化手段によって、前記共通情報の文字列の文字種のモードを符号化したモード指示子と、前記共通情報および個別情報の文字列の文字数の合計値を符号化した文字数指示子とを繋げてヘッダを生成し、前記文字種のモードで前記共通情報の文字列を符号化し、前記ヘッダに繋げることで第1ビット列データを生成する。   According to such a configuration, the encoding calculation support program includes a mode indicator in which the character type of the character string of the common information is encoded by the header addition / data encoding means, and the character string of the common information and the individual information. A header is generated by connecting a character number indicator that encodes the total value of the number of characters, and a character string of the common information is encoded in the character type mode, and the first bit string data is generated by connecting to the header.

そして、符号化演算支援プログラムは、誤り訂正符号化パラメータ変換手段によって、前記2次元コードパラメータを入力し、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記共通情報の文字列のデータ符号化後のビット数を算出すると共に、前記求めた誤り訂正パラメータから、前記第1ビット列データのビット数以下となるような最大の誤り訂正符号の誤り訂正ブロック数を算出し、各算出結果と前記求めた誤り訂正パラメータとにより誤り訂正計算手順を指定する。   Then, the coding operation support program inputs the two-dimensional code parameter by the error correction coding parameter conversion means, matches the input two-dimensional code parameter with reference to the error correction coding parameter conversion table An error correction parameter to be calculated, the number of bits after data encoding of the character string of the common information is calculated, and the maximum error that is equal to or less than the number of bits of the first bit string data from the calculated error correction parameter The number of error correction blocks of the correction code is calculated, and an error correction calculation procedure is designated by each calculation result and the obtained error correction parameter.

そして、符号化演算支援プログラムは、誤り訂正符号計算手段によって、前記第1ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する。   Then, the encoding operation support program uses the error correction code calculation means to generate a data code indicating data corresponding to the error correction block designated by the error correction coding parameter conversion means, out of the number of bits of the first bit string data. Is subjected to error correction calculation to calculate an error correction code.

そして、符号化演算支援プログラムは、出力手段によって、前記データ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記算出した誤り訂正符号と、前記2次元コードパラメータとを出力する。そして、符号化演算支援プログラムにおいて、前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする。 The encoding operation support program uses the output means to output the data code, the surplus bits indicating the bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information, and the calculated error correction. The code and the two-dimensional code parameter are output. In the encoding operation support program, the two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter is The number of RS blocks and the number of data code words are indicated.

前記課題を解決するために、請求項6に記載の2次元コード生成装置は、複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成し電子文書表示デバイス上に表示する2次元コード生成装置と、2次元コードパラメータに基づいて前記共通情報および個別情報の文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援装置とを備える2次元コード生成システムにおける前記2次元コード生成装置であって、前記2次元コードパラメータが、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含み、前記2次元コード生成装置が、記憶手段と、個別情報入力手段と、データ・パラメータ入力手段と、データ符号化・余剰ビット付加手段と、誤り訂正符号化パラメータ変換手段と、誤り訂正符号計算手段と、2次元コード化手段とを備えることとした。   In order to solve the above-described problem, the two-dimensional code generation device according to claim 6 includes a character string of common information common to a plurality of two-dimensional code generation devices and individual pieces of information acquired individually by each two-dimensional code generation device. A two-dimensional code generation device that generates a two-dimensional code including a character string of information and displays it on an electronic document display device, and encoding and error correction of the character string of the common information and individual information based on a two-dimensional code parameter A two-dimensional code generation device in a two-dimensional code generation system comprising an encoding operation support device that supports an encoding operation that performs a calculation, wherein the two-dimensional code parameter includes a plurality of error correction blocks. The two-dimensional code generation device includes information on the type of the common information character string and the number of characters of the common information character string. Means, individual information input means, data / parameter input means, data encoding / surplus bit addition means, error correction encoding parameter conversion means, error correction code calculation means, and two-dimensional encoding means. It was decided.

かかる構成によれば、2次元コード生成装置は、記憶手段に、前記2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する。そして、2次元コード生成装置は、個別情報入力手段によって、前記個別情報を入力する。ここで、個別情報は、2次元コード生成装置で生成される2次元コードの閲覧者や電子文書表示デバイス固有の情報である。   According to such a configuration, the two-dimensional code generation device includes an error correction coding created in advance by associating the two-dimensional code parameter with an error correction parameter that specifies the number and size of the error correction blocks in the storage unit. Store the parameter conversion table. Then, the two-dimensional code generation device inputs the individual information by the individual information input means. Here, the individual information is information unique to the viewer of the two-dimensional code generated by the two-dimensional code generation device and the electronic document display device.

そして、2次元コード生成装置は、データ・パラメータ入力手段によって、前記符号化演算支援装置で生成されたデータおよびパラメータとして、前記共通情報の文字列を符号化してヘッダに繋げた第1ビット列データのビット数のうち、予め指定された誤り訂正ブロックに該当するデータを示すデータ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記データ符号から算出された誤り訂正符号と、前記2次元コードパラメータとを入力する。   Then, the two-dimensional code generation device encodes the character string of the common information as data and parameters generated by the encoding operation support device by the data / parameter input means and connects the first bit string data connected to the header. Of the number of bits, a data code indicating data corresponding to a previously specified error correction block, a surplus bit indicating a bit string that has not been subjected to error correction calculation among the encoded bit string of the common information, and The error correction code calculated from the data code and the two-dimensional code parameter are input.

そして、2次元コード生成装置は、データ符号化・余剰ビット付加手段によって、前記入力された個別情報を符号化し、前記余剰ビットに繋げることで第2ビット列データを生成する。つまり、この第2ビット列データは、共通情報の文字列の終端部分と、個別情報の文字列とを符号化したものである。そして、2次元コード生成装置は、誤り訂正符号化パラメータ変換手段によって、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記求めた誤り訂正パラメータにより誤り訂正計算手順を指定する。なお、2次元コードパラメータは、複数の誤り訂正ブロックを有する2次元コードの型に関するものなので、符号化演算支援装置の側で発生した余剰ビットを2次元コード生成装置の側で追加することで、全体で見れば、誤り訂正ブロック単位で誤り訂正計算を行っていることになる。   Then, the two-dimensional code generation device encodes the input individual information by data encoding / surplus bit adding means, and generates the second bit string data by connecting to the surplus bits. That is, the second bit string data is obtained by encoding the end part of the character string of the common information and the character string of the individual information. Then, the two-dimensional code generation device refers to the error correction encoding parameter conversion table by using the error correction encoding parameter conversion means to determine an error correction parameter that matches the input two-dimensional code parameter, and The error correction calculation procedure is specified by the error correction parameter. Since the two-dimensional code parameter relates to the type of the two-dimensional code having a plurality of error correction blocks, by adding the surplus bits generated on the encoding operation support device side on the two-dimensional code generation device side, As a whole, error correction calculation is performed in units of error correction blocks.

そして、2次元コード生成装置は、誤り訂正符号計算手段によって、前記第2ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する。そして、2次元コード生成装置は、2次元コード化手段によって、前記入力された2次元コードパラメータ、データ符号および誤り訂正符号と、前記第2ビット列データに含まれるデータ符号および前記算出された誤り訂正符号とを用いて前記2次元コードを生成する。そして、2次元コード生成装置において、前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする。これにより、2次元コード生成装置は、誤り訂正計算の演算に関しては、2次元コードに含まれる共通情報の文字列と個別情報の文字列とのうち、余剰ビットに相当する共通情報の一部と個別情報とについて行うだけで済む。つまり、共通情報の文字列の大部分の誤り訂正計算を省略することができる。そのため、計算資源の乏しいBMLやHTML(Hyper Text Markup Language)等の電子文書を閲覧するための電子文書表示デバイス上で、高速に2次元コードを生成・表示することができる。 Then, the two-dimensional code generation device uses a data code indicating data corresponding to the error correction block designated by the error correction coding parameter conversion means out of the number of bits of the second bit string data by the error correction code calculation means. Is subjected to error correction calculation to calculate an error correction code. Then, the two-dimensional code generation device uses the two-dimensional encoding means to input the input two-dimensional code parameter, data code and error correction code, data code included in the second bit string data, and the calculated error correction. The two-dimensional code is generated using a code. In the two-dimensional code generation device, the two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter is The number of RS blocks and the number of data code words are indicated. As a result, the two-dimensional code generation device, regarding the error correction calculation operation, includes a part of the common information corresponding to the surplus bits in the character string of the common information and the character string of the individual information included in the two-dimensional code. All you have to do is individual information. That is, most of the error correction calculation of the common information character string can be omitted. Therefore, it is possible to generate and display a two-dimensional code at high speed on an electronic document display device for browsing an electronic document such as BML or HTML (Hyper Text Markup Language), which has few computational resources.

また、請求項7に記載の2次元コード生成プログラムは、複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成する2次元コード生成プログラムであって、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含む2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段を備えたコンピュータを、個別情報入力手段、データ・パラメータ入力手段、データ符号化・余剰ビット付加手段、誤り訂正符号化パラメータ変換手段、誤り訂正符号計算手段、2次元コード化手段として機能させるためのプログラムであることとした。 The two-dimensional code generation program according to claim 7 includes: a character string of common information common to a plurality of two-dimensional code generation devices; and a character string of individual information acquired individually by each two-dimensional code generation device. A two- dimensional code generation program for generating a two- dimensional code including: a two-dimensional code type having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string A computer having storage means for storing an error correction coding parameter conversion table created in advance by associating a two-dimensional code parameter including information and an error correction parameter specifying the number and size of the error correction blocks, Information input means, data / parameter input means, data encoding / surplus bit addition means, error correction encoding parameter conversion means, Ri correction code calculating unit, it was to be a program for functioning as a two-dimensional coding means.

かかる構成によれば、2次元コード生成プログラムは、個別情報入力手段によって、前記個別情報を入力する。そして、2次元コード生成プログラムは、データ・パラメータ入力手段によって、入力データおよび入力パラメータとして、前記共通情報の文字列を符号化してヘッダに繋げた第1ビット列データのビット数のうち、予め指定された誤り訂正ブロックに該当するデータを示すデータ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記データ符号から算出された誤り訂正符号と、前記2次元コードパラメータとを入力する。 According to such a configuration, the two-dimensional code generation program inputs the individual information by the individual information input unit. The two-dimensional code generation program is designated in advance by the data / parameter input means out of the number of bits of the first bit string data encoded as the input data and the input parameters and linked to the header. A data code indicating data corresponding to the error correction block, a surplus bit indicating a bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information character string, and an error correction calculated from the data code A code and the two-dimensional code parameter are input.

そして、2次元コード生成プログラムは、データ符号化・余剰ビット付加手段によって、前記入力された個別情報を符号化し、前記余剰ビットに繋げることで第2ビット列データを生成する。そして、2次元コード生成プログラムは、誤り訂正符号化パラメータ変換手段によって、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記求めた誤り訂正パラメータにより誤り訂正計算手順を指定する。 The two-dimensional code generation program generates the second bit string data by encoding the input individual information by the data encoding / surplus bit adding means and connecting the encoded individual information to the surplus bits. The two-dimensional code generation program obtains an error correction parameter that matches the input two-dimensional code parameter by referring to the error correction coding parameter conversion table by the error correction coding parameter conversion means, The error correction calculation procedure is specified by the error correction parameter.

そして、2次元コード生成プログラムは、誤り訂正符号計算手段によって、前記第2ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する。そして、2次元コード生成プログラムは、2次元コード化手段によって、前記入力された2次元コードパラメータ、データ符号および誤り訂正符号と、前記第2ビット列データに含まれるデータ符号および前記算出された誤り訂正符号とを用いて前記2次元コードを生成する。そして、2次元コード生成プログラムにおいて、前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする。 The two-dimensional code generation program uses the error correction code calculation means to generate a data code indicating data corresponding to the error correction block designated by the error correction coding parameter conversion means, out of the number of bits of the second bit string data. Is subjected to error correction calculation to calculate an error correction code. Then, the two-dimensional code generation program uses the two-dimensional encoding means to input the input two-dimensional code parameter, data code and error correction code, data code included in the second bit string data, and the calculated error correction. The two-dimensional code is generated using a code. In the two-dimensional code generation program, the two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter is The number of RS blocks and the number of data code words are indicated.

請求項1に記載の発明によれば、符号化演算支援装置は、共通情報の文字列の大部分およびヘッダ情報を符号化したデータ符号と、その誤り訂正符号と、符号化演算に利用した2次元コードパラメータと、共通情報の文字列の一部分に相当する余剰ビットとを出力する。したがって、これらの出力情報を利用すれば、2次元コードを生成して表示する2次元コード生成装置の処理負荷を軽減することができる。   According to the first aspect of the present invention, the encoding operation support apparatus uses a data code obtained by encoding most of the character string of the common information and the header information, its error correction code, and 2 used for the encoding operation. A dimension code parameter and a surplus bit corresponding to a part of a character string of common information are output. Therefore, if these output information is used, the processing load of the two-dimensional code generation device that generates and displays the two-dimensional code can be reduced.

請求項2に記載の発明によれば、符号化演算支援装置は、予め作成された2次元コードパラメータ変換表を備えているので、共通情報および個別情報の文字列の文字数と、文字種のモードとを指定するだけで、最適な2次元コードパラメータを選択することができる。   According to the second aspect of the present invention, since the encoding operation support apparatus includes the two-dimensional code parameter conversion table created in advance, the number of characters of the character strings of the common information and the individual information, the character type mode, The optimum two-dimensional code parameter can be selected simply by specifying.

請求項3に記載の発明によれば、符号化演算支援装置は、優先順位にしたがって2次元コードパラメータを生成するので、符号化演算支援装置の利用者の利便性を向上させることができる。   According to the third aspect of the present invention, since the encoding calculation support device generates the two-dimensional code parameter according to the priority order, the convenience of the user of the encoding calculation support device can be improved.

請求項4に記載の発明によれば、符号化演算支援装置は、2次元コードパラメータを外部から入力するので、装置内部で生成する場合に比べて簡易な構成とすることができる。   According to the fourth aspect of the present invention, since the encoding operation support apparatus inputs the two-dimensional code parameters from the outside, it can have a simpler configuration than that generated in the apparatus.

請求項5に記載の発明によれば、符号化演算支援プログラムは、共通情報の文字列の大部分およびヘッダ情報を符号化したデータ符号と、その誤り訂正符号と、符号化演算に利用した2次元コードパラメータと、共通情報の文字列の一部分に相当する余剰ビットとをコンピュータに出力させる。したがって、これらの出力情報を利用すれば、2次元コードを生成して表示する2次元コード生成装置の処理負荷を軽減することができる。   According to the fifth aspect of the present invention, the encoding operation support program uses a data code obtained by encoding most of the character string of the common information and the header information, its error correction code, and 2 used for the encoding operation. The computer outputs the dimension code parameter and surplus bits corresponding to a part of the character string of the common information. Therefore, if these output information is used, the processing load of the two-dimensional code generation device that generates and displays the two-dimensional code can be reduced.

請求項6に記載の発明によれば、2次元コード生成装置は、符号化演算支援装置から出力されるデータ符号と、その誤り訂正符号と、2次元コードパラメータと、余剰ビットとを利用することで、共通情報の文字列の大部分の誤り訂正計算を省略することができるので、処理負荷を軽減することができる。   According to the invention described in claim 6, the two-dimensional code generation device uses the data code output from the encoding operation support device, the error correction code, the two-dimensional code parameter, and the surplus bit. Thus, the error correction calculation for most of the character strings of the common information can be omitted, so that the processing load can be reduced.

請求項7に記載の発明によれば、2次元コード生成プログラムは、共通情報の文字列の大部分とヘッダ情報とを符号化したデータ符号と、その誤り訂正符号と、2次元コードパラメータと、余剰ビットとを利用することで、共通情報の文字列の大部分の誤り訂正計算を省略することができるので、コンピュータの処理負荷を軽減させることができる。   According to the invention described in claim 7, the two-dimensional code generation program includes a data code obtained by encoding most of the character string of the common information and the header information, an error correction code thereof, a two-dimensional code parameter, By using the surplus bits, it is possible to omit the error correction calculation for most of the character strings of the common information, so that the processing load on the computer can be reduced.

本発明の第1実施形態に係る符号化演算支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the encoding calculation assistance apparatus which concerns on 1st Embodiment of this invention. 本発明の実施形態に係る2次元コード生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the two-dimensional code production | generation apparatus which concerns on embodiment of this invention. 本発明の第1実施形態に係る2次元コード生成システムの処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of a process of the two-dimensional code generation system which concerns on 1st Embodiment of this invention. 本発明の第1実施形態に係る2次元コード生成システムにて生成する2次元コードの使用例を模式的に示す説明図である。It is explanatory drawing which shows typically the usage example of the two-dimensional code produced | generated in the two-dimensional code production | generation system which concerns on 1st Embodiment of this invention. 本発明の第1実施形態に係る2次元コード生成システムを適用したデジタル放送システムの構成を模式的に示すブロック図である。It is a block diagram which shows typically the structure of the digital broadcasting system to which the two-dimensional code generation system which concerns on 1st Embodiment of this invention is applied. 図1に示す符号化演算支援装置で参照する変換表の一例であって、(a)は2次元コードパラメータ変換表、(b)は誤り訂正符号化パラメータ変換表をそれぞれ示している。It is an example of the conversion table referred with the encoding calculation assistance apparatus shown in FIG. 1, Comprising: (a) has shown the two-dimensional code parameter conversion table, (b) has each shown the error correction encoding parameter conversion table. 本発明の第1実施形態に係る2次元コード生成システムの処理例であって、(a)は共通情報および個別情報、(b)は放送局側の処理、(c)は受信機側の処理をそれぞれ示している。It is a processing example of the two-dimensional code generation system which concerns on 1st Embodiment of this invention, Comprising: (a) is common information and individual information, (b) is a broadcast station side process, (c) is a receiver side process Respectively. 本発明の第2実施形態に係る符号化演算支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the encoding calculation assistance apparatus which concerns on 2nd Embodiment of this invention. 本発明の第3実施形態に係る符号化演算支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the encoding calculation assistance apparatus which concerns on 3rd Embodiment of this invention. 本発明の第3実施形態に係る2次元コード生成システムの処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of a process of the two-dimensional code generation system which concerns on 3rd Embodiment of this invention. 本発明の第4実施形態に係る2次元コード生成システムの処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of a process of the two-dimensional code generation system which concerns on 4th Embodiment of this invention. 本発明の第5実施形態に係る2次元コード生成システムの処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of a process of the two-dimensional code generation system which concerns on 5th Embodiment of this invention. 従来の2次元コード生成処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the conventional two-dimensional code production | generation process.

以下、本発明に係る符号化演算支援装置、2次元コード生成装置およびデジタル放送送信装置を実施するため形態(以下「実施形態」という)について図面を参照して詳細に説明する。以下では、説明の都合上、符号化演算支援装置および2次元コード生成装置を備える2次元コード生成システムの第1実施形態、この2次元コード生成システムをデジタル放送システムに適用する場合のデジタル放送送信装置の実施形態、2次元コード生成システムの第2ないし第5実施形態を順次説明することとする。   DESCRIPTION OF EMBODIMENTS Hereinafter, a mode for carrying out an encoding operation support device, a two-dimensional code generation device, and a digital broadcast transmission device according to the present invention (hereinafter referred to as “embodiment”) will be described in detail with reference to the drawings. In the following, for convenience of explanation, a first embodiment of a two-dimensional code generation system including an encoding calculation support device and a two-dimensional code generation device, and digital broadcast transmission when this two-dimensional code generation system is applied to a digital broadcast system Embodiments of the apparatus, second to fifth embodiments of the two-dimensional code generation system will be described sequentially.

(第1実施形態)
2次元コード生成システムは、図1に示す符号化演算支援装置1および図2に示す受信機(2次元コード生成装置)2を備える。
2次元コード生成装置2は、共通情報の文字列および個別情報の文字列を含む2次元コードを生成し電子文書表示デバイス上に表示するものである。
符号化演算支援装置1は、2次元コードパラメータに基づいて共通情報および個別情報の文字列の符号化および誤り訂正計算を行う符号化演算を支援するものである。
これら符号化演算支援装置1および2次元コード生成装置2は、例えば、CPU等の演算装置と、メモリ、ハードディスク等の記憶装置(記憶手段)と、マウスやキーボード等の外部から情報の入力を検出する入力装置と、外部との各種情報の送受信を行うインタフェース装置と、LCD(Liquid Crystal Display)等の表示装置を備えたコンピュータと、このコンピュータにインストールされたプログラムとから構成される。
(First embodiment)
The two-dimensional code generation system includes an encoding calculation support device 1 shown in FIG. 1 and a receiver (two-dimensional code generation device) 2 shown in FIG.
The two-dimensional code generation device 2 generates a two-dimensional code including a character string of common information and a character string of individual information and displays it on an electronic document display device.
The encoding operation support device 1 supports encoding operations for encoding character strings of common information and individual information and performing error correction calculation based on two-dimensional code parameters.
The encoding calculation support device 1 and the two-dimensional code generation device 2 detect, for example, a calculation device such as a CPU, a storage device (storage means) such as a memory or a hard disk, and an input of information from the outside such as a mouse or a keyboard. An input device for transmitting / receiving various information to / from the outside, a computer having a display device such as an LCD (Liquid Crystal Display), and a program installed in the computer.

以下では、2次元コードがQRコードであるものとして説明する。
ここで、第1実施形態に係る2次元コード生成システムの処理の概要について図3を参照(適宜図13参照)して従来の方法と比較しながら説明する。従来の方法との大きな相違点は、入力テキストの符号化の処理と、RS(リードソロモン)誤り訂正符号の計算・付加の処理とを、符号化演算支援装置1および2次元コード生成装置2で分担して実行するようにしたことである。
In the following description, it is assumed that the two-dimensional code is a QR code.
Here, an outline of processing of the two-dimensional code generation system according to the first embodiment will be described with reference to FIG. 3 (refer to FIG. 13 as appropriate) and compared with the conventional method. The major difference from the conventional method is that the encoding operation support apparatus 1 and the two-dimensional code generation apparatus 2 perform the encoding process of the input text and the calculation / addition process of the RS (Reed Solomon) error correction code. It is that it is shared and executed.

ただし、RS誤り訂正符号の計算・付加の処理は、所定のビット数で表されるRSブロック(誤り訂正ブロック)毎に行う処理であるため、RSブロック数が「1」の場合には、2つの装置で分担することはできないので、対象外とする。したがって、第1実施形態に係る2次元コード生成システムでは、複数のRSブロックが規定された2次元コードを対象とする。なお、RSブロック数が「1」であるQRコードの型は、QRコードの仕様を規定した日本工業規格(JIS X 0510)の表12に示すように、1-L型、1-M型、1-Q型、1-H型、2-L型、2-M型、2-Q型、2-H型、3-L型、3-M型、4-L型、5-L型だけである。ここで、L,M,Q,Hは、誤り訂正レベルのパラメータであり、この順に誤り訂正能力が高くなる。また、1,2,3,4,5は、QRコードのサイズを示す型番のパラメータである。JIS X 0510では、型番は「40」まで、RSブロック数は「81」まで規定されている。   However, the RS error correction code calculation / addition process is a process performed for each RS block (error correction block) represented by a predetermined number of bits. Since it cannot be shared by two devices, it is excluded. Therefore, the two-dimensional code generation system according to the first embodiment targets a two-dimensional code in which a plurality of RS blocks are defined. The QR code type with the number of RS blocks of “1” is 1-L type, 1-M type, as shown in Table 12 of the Japanese Industrial Standard (JIS X 0510) that defines the QR code specification. 1-Q, 1-H, 2-L, 2-M, 2-Q, 2-H, 3-L, 3-L, 3-M, 4-L, 5-L only It is. Here, L, M, Q, and H are parameters of the error correction level, and the error correction capability increases in this order. 1, 2, 3, 4, and 5 are model number parameters indicating the size of the QR code. In JIS X 0510, the model number is specified up to “40” and the number of RS blocks is set up to “81”.

例えば、共通情報の文字列と個別情報の文字列とを含むQRコードを電子文書表示デバイスに表示するために、QRコード生成プログラムで生成する手順は次の通りである。
まず、符号化演算支援装置1において、QRコードの内容の一部として読み取らせたい共通情報の内容を示すテキスト(共通情報テキスト)を入力する(S11)。読み取らせたい内容として、共通情報の文字列がURLの場合には、「http:// … 」等のテキストを入力することになる。
For example, in order to display a QR code including a character string of common information and a character string of individual information on an electronic document display device, a procedure for generating by a QR code generation program is as follows.
First, in the encoding operation support device 1, a text (common information text) indicating the content of common information to be read as a part of the content of the QR code is input (S11). If the character string of the common information is a URL as the content to be read, a text such as “http: //...” Is input.

次に、符号化演算支援装置1は、入力テキストを符号化する(S12)。これにより、例えば「http:// … 」等のテキストは、「100110 … 」のような2進表現のビット列(データコード語列)に変換される。さらに、詳細は後記するが、このビット列を、文字種のモードと文字数とを符号化したヘッダに繋げたビット列を生成する(これを第1ビット列データという)。   Next, the encoding operation support apparatus 1 encodes the input text (S12). Thus, for example, a text such as “http: //...” Is converted into a binary-represented bit string (data code word string) such as “100110. Further, as will be described in detail later, a bit string in which this bit string is connected to a header in which the character type mode and the number of characters are encoded is generated (this is referred to as first bit string data).

そして、符号化演算支援装置1は、第1ビット列データのRSブロックに対してRS誤り訂正符号(誤り訂正コード語)を計算により求め、第1ビット列データに付加する(S13)。ここで、詳細は後記するが、第1ビット列データのビット列がRSブロック数(ビット列)単位にならない場合には、第1ビット列データの終端部分についてはRS誤り訂正計算がなされない。   Then, the coding operation support apparatus 1 obtains an RS error correction code (error correction code word) for the RS block of the first bit string data by calculation, and adds it to the first bit string data (S13). Here, although details will be described later, when the bit string of the first bit string data is not in the number of RS blocks (bit strings), the RS error correction calculation is not performed on the end portion of the first bit string data.

そして、符号化演算支援装置1は、第1ビット列データのRS誤り訂正計算を行った部分を示すデータ符号D1と、そのRS誤り訂正符号E1とをQRコードの一部の情報(これを部分的なQRコードという)として、符号化演算に用いたパラメータと共に出力する(S14)。本実施形態では、符号化演算に用いたパラメータの1つとして、第1ビット列データのうちRS誤り訂正計算がなされなかった終端部分のビット列を示す余剰ビットの情報を含めることとした。 Then, the encoding operation support device 1 uses the data code D 1 indicating the portion where the RS error correction calculation of the first bit stream data is performed and the RS error correction code E 1 as a part of the QR code information (this A partial QR code) is output together with the parameters used for the encoding operation (S14). In the present embodiment, as one of the parameters used for the encoding operation, information of surplus bits indicating the bit string of the terminal portion of the first bit string data that has not been subjected to RS error correction calculation is included.

また、本実施形態では、部分的なQRコードとは、QRコードの一部の情報を含むものであって、データ符号D1とそのRS誤り訂正符号E1とにより「100110 … 」のような2進表現のビット列で表されるものであって、シンボルとしては構成せずに出力することとしている。つまり、符号化演算支援装置側のS13で図示したシンボルと、受信機側のS23で図示したシンボルとの2つの情報を合わせることで、受信機側のS25でQRコードシンボルが完成することを概念的に示すものである。なお、符号化演算支援装置1において、シンボルとして構成して出力するようにしてもよい。 In the present embodiment, the partial QR code includes a part of information of the QR code, and the data code D 1 and the RS error correction code E 1 are used as “100110... It is represented by a bit string in binary representation, and is output without being configured as a symbol. That is, it is a concept that the QR code symbol is completed in S25 on the receiver side by combining the two information of the symbol shown in S13 on the coding operation support apparatus side and the symbol shown in S23 on the receiver side. It is shown as an example. Note that the encoding calculation support device 1 may be configured and output as a symbol.

次に、受信機(2次元コード生成装置)2において、QRコードの内容の一部として読み取らせたい個別情報の内容を示すテキスト(個別情報テキスト)を入力する(S21)。読み取らせたい内容として、受信機やその利用者の個別情報の文字列が数字の場合には、「521234 … 」等のテキストを入力することになる。   Next, in the receiver (two-dimensional code generation device) 2, a text (individual information text) indicating the content of individual information that is to be read as part of the content of the QR code is input (S21). As the contents to be read, when the character string of the individual information of the receiver or the user is a number, a text such as “521234...” Is input.

そして、例えば、符号化演算支援装置1から部分的なQRコードおよびパラメータを取得すると、受信機(2次元コード生成装置)2は、入力テキストを符号化する(S22)。これにより、例えば「521234 … 」等のテキストは、「100110 … 」のような2進表現のビット列(データコード語列)に変換される。さらに、詳細は後記するが、受信機(2次元コード生成装置)2は、このビット列を、符号化演算支援装置1から取得した余剰ビットに繋げたビット列を生成する(これを第2ビット列データという)。   For example, when a partial QR code and parameters are acquired from the encoding calculation support device 1, the receiver (two-dimensional code generation device) 2 encodes the input text (S22). Thereby, for example, a text such as “521234...” Is converted into a binary-represented bit string (data code word string) such as “100110. Furthermore, although details will be described later, the receiver (two-dimensional code generation device) 2 generates a bit string in which this bit string is connected to surplus bits acquired from the encoding operation support apparatus 1 (this is referred to as second bit string data). ).

そして、受信機(2次元コード生成装置)2は、第2ビット列データのRSブロックに対してRS誤り訂正符号(誤り訂正コード語)を計算により求め、第2ビット列データに付加する(S23)。ここで、第2ビット列データのRS誤り訂正計算を行った部分を示すデータ符号をD2、そのRS誤り訂正符号をE2とする。 Then, the receiver (two-dimensional code generation device) 2 calculates an RS error correction code (error correction code word) for the RS block of the second bit string data by calculation, and adds it to the second bit string data (S23). Here, it is assumed that the data code indicating the portion of the second bit string data subjected to the RS error correction calculation is D 2 and the RS error correction code is E 2 .

そして、受信機(2次元コード生成装置)2は、自装置で算出したデータと、符号化演算支援装置1から取得したデータとを合わせて2次元コード化処理を行う(S24)。詳細は後記するが、データ符号D1およびRS誤り訂正符号E1と、データ符号D2およびRS誤り訂正符号E2とに対して、並び替え処理を行った上で、マスク処理を行う。そして、受信機(2次元コード生成装置)2は、ビット列の「0」に白、「1」に黒を割り当てたQRコードを出力する(S25)。これにより、QRコードシンボルが電子文書表示デバイスに表示される。 Then, the receiver (two-dimensional code generation device) 2 performs a two-dimensional encoding process by combining the data calculated by the own device and the data acquired from the encoding calculation support device 1 (S24). Although details will be described later, the data code D 1 and the RS error correction code E 1 and the data code D 2 and the RS error correction code E 2 are rearranged and then masked. Then, the receiver (two-dimensional code generation device) 2 outputs a QR code in which white is assigned to “0” and black is assigned to “1” in the bit string (S25). Thereby, the QR code symbol is displayed on the electronic document display device.

前記説明では、符号化演算支援装置1と2次元コード生成装置2とを一般化して説明したが、この2次元コード生成システムは、例えばデジタル放送システムに適用することができる。この場合には、符号化演算支援装置1は、放送局で使用され、部分的なQRコードは、パラメータと併せて放送される。また、受信機(2次元コード生成装置)2は、視聴者宅で使用されることになる。デジタル放送のデータ放送により、部分的なQRコードと、QRコード生成プログラムとを配信する概念図を図4に示す。放送事業者は、CGI(Common Gateway Interface)やPHP(Hypertext Preprocessor)といったサーバを用意し、視聴者のユーザ登録等を管理する。また、このときのデジタル放送システムのデジタル放送送信装置やデジタル放送受信装置は、図5に示すような機能ブロック図で構成され、符号化演算支援装置1や2次元コード生成装置2を備える。なお、デジタル放送送信装置やデジタル放送受信装置の構成の詳細は後記する。
図1に戻って、符号化演算支援装置1の詳細な構成について説明する。
In the above description, the coding calculation support device 1 and the two-dimensional code generation device 2 have been generalized, but this two-dimensional code generation system can be applied to, for example, a digital broadcasting system. In this case, the encoding operation support device 1 is used in a broadcasting station, and a partial QR code is broadcast together with parameters. The receiver (two-dimensional code generation device) 2 is used at the viewer's house. FIG. 4 shows a conceptual diagram for distributing a partial QR code and a QR code generation program by digital broadcast data broadcasting. Broadcasters prepare servers such as CGI (Common Gateway Interface) and PHP (Hypertext Preprocessor), and manage viewer user registration and the like. In addition, the digital broadcast transmission device and the digital broadcast reception device of the digital broadcast system at this time are configured by a functional block diagram as shown in FIG. 5 and include an encoding calculation support device 1 and a two-dimensional code generation device 2. Details of the configuration of the digital broadcast transmitting device and the digital broadcast receiving device will be described later.
Returning to FIG. 1, the detailed configuration of the encoding calculation support device 1 will be described.

[符号化演算支援装置の構成]
符号化演算支援装置1は、ハードウェア装置とソフトウェアとが協働することによって、前記したハードウェア資源がプログラムによって制御されることにより実現され、図1に示すように、共通情報入力手段11と、個別情報文字数入力手段12と、記憶手段13と、仮個別情報付加手段14と、2次元コードパラメータ生成手段15と、ヘッダ付加・データ符号化手段16と、誤り訂正符号化パラメータ変換手段17と、誤り訂正符号計算手段18と、出力手段19とを備えている。
[Configuration of encoding operation support device]
The encoding operation support device 1 is realized by the hardware device and software cooperating to control the hardware resources described above by a program. As shown in FIG. Individual information character number input means 12, storage means 13, provisional individual information addition means 14, two-dimensional code parameter generation means 15, header addition / data encoding means 16, error correction encoding parameter conversion means 17, , Error correction code calculating means 18 and output means 19 are provided.

<共通情報入力手段>
共通情報入力手段11は、共通情報の文字列(共通情報テキスト)を入力するものである。また、共通情報入力手段11は、共通情報の文字種のモードも入力することとした。ここで入力された共通情報の文字列(共通情報テキスト)と文字種のモードとは、2次元コードパラメータ生成手段15および仮個別情報付加手段14に出力される。
<Common information input means>
The common information input unit 11 inputs a character string (common information text) of common information. In addition, the common information input unit 11 inputs the character type mode of the common information. The character string (common information text) and the character type mode input here are output to the two-dimensional code parameter generation means 15 and the provisional individual information addition means 14.

共通情報入力手段11に入力される共通情報の文字数には、次の制限がある。すなわち、その文字列のデータ符号化後のビット数を、誤り訂正符号計算手段18で誤り訂正符号を計算するビット数(=RSブロックのビット数)以上とするような文字数でなければならない。例えば、QRコードで、{型番3,誤り訂正レベルQ,英数字モード}の場合、図6(a)に示すように、共通情報の最小文字数は、24文字である。   The number of characters of common information input to the common information input unit 11 has the following restrictions. That is, the number of characters after data encoding of the character string must be equal to or greater than the number of bits (= number of bits in the RS block) for calculating the error correction code by the error correction code calculation means 18. For example, when the QR code is {model number 3, error correction level Q, alphanumeric mode}, as shown in FIG. 6A, the minimum number of characters of the common information is 24 characters.

具体例として、共通情報と仮個別情報とを含む入力テキストを図7(a)に示す。この例では、QRコードのver(型番)が3で、誤り訂正レベルがQ、英数字モードを想定した。図7(a)に符号701で示す"http://k.nhk.jp/cas.cgi/"(24文字)は、共通情報入力手段11から入力される共通情報の文字列を示す。   As a specific example, an input text including common information and temporary individual information is shown in FIG. In this example, QR code ver (model number) is 3, error correction level is Q, and alphanumeric mode is assumed. “Http://k.nhk.jp/cas.cgi/” (24 characters) indicated by reference numeral 701 in FIG. 7A indicates a character string of common information input from the common information input means 11.

ここで、使用する共通情報の文字数が、もしも足りない場合には、任意の文字列を足せばよい。なお、使用する共通情報の文字列が、例えば、URLのようなケースでは、不足分の文字を補った後であっても、所望のアドレスにアクセスできるように文字列を足す必要がある。   Here, if the number of characters of common information to be used is insufficient, an arbitrary character string may be added. For example, in the case of a URL such as a URL, it is necessary to add a character string so that a desired address can be accessed even after supplementing the insufficient characters.

<個別情報文字数入力手段>
個別情報文字数入力手段12は、受信機(2次元コード生成装置)2で符号化される個別情報の文字列と同じ文字数の値を入力するものである。入力された文字数の値は、仮個別情報付加手段14および2次元コードパラメータ生成手段15に出力される。
具体的には、図7(a)に符号702で示す"12345678901234567890123"(23文字)は仮個別情報の文字列を示す。ここで、仮個別情報とは、真の個別情報ではない。一般には、符号化演算支援装置1(放送局)においては、受信機(2次元コード生成装置)2の個別情報の値が不明であるが、その個別情報の文字列の文字数は既知であるものとする。後記するように、符号化演算支援装置1(放送局)では、共通情報と個別情報との文字列の文字数の合計値(この場合には47文字)については、ヘッダ情報とする必要がある。そのために、説明上、符号702で示す仮個別情報を示した。
<Individual information character count input means>
The individual information character number input means 12 inputs the same number of characters as the character string of the individual information encoded by the receiver (two-dimensional code generation device) 2. The value of the number of input characters is output to the temporary individual information adding unit 14 and the two-dimensional code parameter generating unit 15.
Specifically, “12345678901234567890123” (23 characters) indicated by reference numeral 702 in FIG. 7A indicates a character string of temporary individual information. Here, provisional individual information is not true individual information. In general, in the encoding calculation support device 1 (broadcast station), the value of the individual information of the receiver (two-dimensional code generation device) 2 is unknown, but the number of characters in the character string of the individual information is known. And As will be described later, in the encoding calculation support device 1 (broadcast station), the total value of the number of characters in the character string of the common information and the individual information (in this case, 47 characters) needs to be used as header information. For this purpose, provisional individual information indicated by reference numeral 702 is shown for explanation.

<記憶手段>
記憶手段13は、メモリやハードディスク等の記憶装置から構成され、入力された情報やCPU等の処理結果を一時記憶したり、動作プログラムを格納したりするものである。
この記憶手段13は、2次元コードパラメータ変換表と、誤り訂正符号化パラメータ変換表とを記憶することとした。
<Storage means>
The storage means 13 is composed of a storage device such as a memory and a hard disk, and temporarily stores input information and processing results of the CPU, etc., and stores an operation program.
The storage means 13 stores a two-dimensional code parameter conversion table and an error correction coding parameter conversion table.

≪2次元コードパラメータ変換表≫
2次元コードパラメータ変換表は、共通情報の文字列の文字種モードと、2次元コードの型と、共通情報文字列の許容最小文字数と、個別情報文字列の許容最大文字数との情報を予め関連付けて作成されたものである。ここで、2次元コードの型とは、QRコードの「型番(バージョン)」とQRコードの「誤り訂正レベル」とを合わせたものである。また、共通情報の文字列の文字種モードと、データ符号化のモードとは同じことを意味する。共通情報の文字列の文字種モードが“英数字モード”である場合の一例を図6(a)に示す。文字種モードによってデータ容量は異なる。例えば、3-Q型のQRコードの場合には、英数字モードで「47文字」、数字モードで「77文字」、8ビットバイトモードで「32文字」、漢字モードで「20文字」と定められている。
≪Two-dimensional code parameter conversion table≫
The two-dimensional code parameter conversion table associates in advance information on the character type mode of the common information character string, the type of the two-dimensional code, the allowable minimum number of characters of the common information character string, and the allowable maximum number of characters of the individual information character string. It has been created. Here, the type of the two-dimensional code is a combination of the “model number (version)” of the QR code and the “error correction level” of the QR code. Further, the character type mode of the character string of the common information means the same as the data encoding mode. An example when the character type mode of the character string of the common information is “alphanumeric character mode” is shown in FIG. The data capacity varies depending on the character type mode. For example, in the case of a 3-Q type QR code, “47 characters” in alphanumeric mode, “77 characters” in number mode, “32 characters” in 8-bit byte mode, and “20 characters” in kanji mode are specified. It has been.

また、図6(a)の「最小共通情報文字数」は、共通情報の文字列として許容できる最小の文字数を示し、「最大個別情報文字数」は、個別情報の文字列として許容できる最大の文字数を示す。これらは相補関係にある。例えば、3-Q型の場合、最小共通情報文字数」=24と、「最大個別情報文字数」=23とを合計すると、英数字モードのデータ容量「47文字」と等しい。つまり、共通情報の文字列の文字数と、個別情報の文字列の文字数との合計値が「47文字」となるように選べばよい。また、例えば、3-Q型の場合、「最小共通情報文字数」と「最大個別情報文字数」とはほぼ等しい。これは、3-Q型の場合、図6(b)に示すように、RSブロック数は“2”なので、符号化演算支援装置1(放送局側)と、受信機(2次元コード生成装置)2とでほぼ均等に処理を分担しようとするためである。なお、余剰ビットを生成するために、符号化演算支援装置1(放送局側)の方が大きな値となるようにした。   In addition, the “minimum number of common information characters” in FIG. 6A indicates the minimum number of characters allowed as a character string of common information, and the “maximum number of individual information characters” indicates the maximum number of characters allowable as a character string of individual information. Show. These are complementary. For example, in the case of the 3-Q type, the sum of “minimum number of common information characters” = 24 and “maximum number of individual information characters” = 23 is equal to the data capacity “47 characters” in the alphanumeric mode. That is, the total value of the number of characters of the common information character string and the number of characters of the individual information character string may be selected to be “47 characters”. For example, in the case of the 3-Q type, the “minimum number of common information characters” and the “maximum number of individual information characters” are substantially equal. In the case of the 3-Q type, as shown in FIG. 6B, since the number of RS blocks is “2”, the encoding operation support device 1 (broadcasting station side) and the receiver (two-dimensional code generation device) This is because the processing is almost equally shared by 2). In order to generate surplus bits, the encoding operation support apparatus 1 (on the broadcasting station side) has a larger value.

また、例えば、4-H型の場合、「最小共通情報文字数」=38と、「最大個別情報文字数」=12とを合計すると、4-H型の英数字モードのデータ容量「50文字」と等しい。つまり、共通情報の文字列の文字数と、個別情報の文字列の文字数との合計値が「50文字」となるように選べばよい。また、4-H型の場合、「最小共通情報文字数」と「最大個別情報文字数」との比は、ほぼ3:1に等しい。これは、4-H型の場合、図6(b)に示すように、RSブロック数は“4”なので、符号化演算支援装置1(放送局側)と、受信機(2次元コード生成装置)2とでほぼ3:1に処理を分担しようとしたためである。なお、余剰ビットを生成するために、符号化演算支援装置1(放送局側)の方が大きな値となるようにした。   For example, in the case of 4-H type, the sum of “minimum number of common information characters” = 38 and “maximum number of individual information characters” = 12 gives the data capacity “50 characters” of 4-H type alphanumeric mode. equal. In other words, the total value of the number of characters of the common information character string and the number of characters of the individual information character string may be selected to be “50 characters”. In the case of the 4-H type, the ratio of “minimum common information character number” and “maximum individual information character number” is substantially equal to 3: 1. In the case of the 4-H type, as shown in FIG. 6B, the number of RS blocks is “4”, so that the encoding calculation support device 1 (broadcast station side) and the receiver (two-dimensional code generation device) This is because the processing was to be shared approximately 3: 1 with 2). In order to generate surplus bits, the encoding operation support apparatus 1 (on the broadcasting station side) has a larger value.

また、図6(a)において、「優先順位」の項目は、この2次元コードパラメータ変換表において変換される候補(入力された各情報に合致する2次元コードの型の候補)が複数ある場合に利用するための優先順位を示す。   In FIG. 6A, the item “priority order” has a plurality of candidates (two-dimensional code type candidates that match each input information) to be converted in this two-dimensional code parameter conversion table. Shows the priority for use.

2次元コードの型(型、誤り訂正レベル)と、共通情報の文字列の文字種モードと、共通情報文字列の文字数との情報を合わせて、2次元コードパラメータCpと定義する。具体例としては、型番=“ver3”,誤り訂正レベル=“Q”,文字種モード=“英数字モード”,共通情報文字列の文字数=“24”である場合には、2次元コードパラメータは、例えば、Cp={3, Q, EISU, 24}のように記述される。 The type of two-dimensional code (type error correction level), and the character type mode for strings of the common information, combined information of the number of characters of the common information string, is defined as two-dimensional code parameter C p. As a specific example, when the model number = “ver3”, the error correction level = “Q”, the character type mode = “alphanumeric mode”, and the number of characters of the common information character string = “24”, the two-dimensional code parameter is For example, it is described as C p = {3, Q, EISU, 24}.

≪誤り訂正符号化パラメータ変換表≫
誤り訂正符号化パラメータ変換表は、2次元コードパラメータCpと、RSブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成されたものである。図6(b)に示すように、“3-Q型”、“4-M型”のRSブロック数は「2」、“4-H型”、“6-M型”のRSブロック数は「4」と定められている。また、図6(b)において“RSブロック”の項目は、(c,k,r)の3つのパラメータを有している。ここで、c=総コード語数,k=データコード語数,r=誤り訂正数と定められている。例えば、“3-Q型”は、(c,k,r)=(35,17,9)なので、RSブロックのサイズは、17×8=136ビットである。また、図6(b)において“前半処理ブロック数”の項目は、RSブロック数のうち、符号化演算支援装置1で分担するブロック数の一例を示す。例えば、“4-H型”の場合には、RSブロック=4のうち、3ブロックの処理を符号化演算支援装置1で分担することを意味する。
≪Error correction coding parameter conversion table≫
The error correction coding parameter conversion table is created in advance by associating the two-dimensional code parameter Cp with error correction parameters that specify the number and size of RS blocks. As shown in Fig. 6 (b), the number of RS blocks for "3-Q type" and "4-M type" is "2", and the number of RS blocks for "4-H type" and "6-M type" is It is defined as “4”. In FIG. 6B, the item “RS block” has three parameters (c, k, r). Here, it is defined that c = total number of code words, k = number of data code words, and r = number of error corrections. For example, since “3-Q type” is (c, k, r) = (35, 17, 9), the size of the RS block is 17 × 8 = 136 bits. In FIG. 6B, the item “number of first half processing blocks” indicates an example of the number of blocks shared by the coding operation support apparatus 1 among the RS blocks. For example, in the case of “4-H type”, it means that the coding calculation support apparatus 1 shares the processing of three blocks of RS block = 4.

<仮個別情報付加手段>
仮個別情報付加手段14は、共通情報入力手段11から、共通情報の文字列(共通情報テキスト)と、共通情報の文字種のモードとを取得し、個別情報文字数入力手段12から入力された文字数に合わせて、共通情報テキストの後ろに任意の文字列を付加するものである。共通情報テキストに文字列が付加されて生成されたテキストは、ヘッダ付加・データ符号化手段16に出力される。この仮個別情報付加手段14は、共通情報の文字種のモードに合わせた文字種を使用して文字列を追加する。つまり、共通情報の文字種のモードが「英数字モード」である場合には、英数字モードで使用可能な文字種を使用する。図7(a)に符号702で示す"12345678901234567890123"(23文字)は仮個別情報の文字列を示す。なお、この仮個別情報付加手段14や前記した個別情報文字数入力手段12を備えるようにしたのは、一般的なQRコード生成プログラムを改良して別の新たな機能を付加することを容易にするためであり、符号化演算支援装置1は必ずしもこれらの構成を備える必要はない。
<Temporary individual information adding means>
The provisional individual information adding unit 14 acquires the common information character string (common information text) and the character type mode of the common information from the common information input unit 11, and sets the number of characters input from the individual information character number input unit 12. In addition, an arbitrary character string is added after the common information text. The text generated by adding the character string to the common information text is output to the header addition / data encoding means 16. The temporary individual information adding unit 14 adds a character string using a character type that matches the character type mode of the common information. That is, when the mode of the character type of the common information is “alphanumeric mode”, the character type that can be used in the alphanumeric mode is used. “12345678901234567890123” (23 characters) indicated by reference numeral 702 in FIG. 7A indicates a character string of temporary individual information. The provision of the temporary individual information adding means 14 and the individual information character number input means 12 makes it easier to improve a general QR code generation program and add another new function. Therefore, the encoding calculation support apparatus 1 does not necessarily have these configurations.

<2次元コードパラメータ生成手段>
2次元コードパラメータ生成手段15は、共通情報の文字列の文字数と、共通情報の文字列の文字種のモードと、個別情報の文字列の文字数とを入力し、記憶手段13に予め記憶された2次元コードパラメータ変換表を参照し、入力された各情報に合致する2次元コードの型を含む2次元コードパラメータを生成するものである。
<Two-dimensional code parameter generation means>
The two-dimensional code parameter generation means 15 inputs the number of characters of the common information character string, the character type mode of the common information character string, and the number of characters of the character string of the individual information, and is stored in the storage means 13 in advance. By referring to the dimension code parameter conversion table, a two-dimensional code parameter including a two-dimensional code type that matches each input information is generated.

本実施形態では、2次元コードパラメータ生成手段15は、共通情報入力手段11から、共通情報の文字列と、共通情報の文字列の文字種のモードとの各情報を取得し、個別情報文字数入力手段12から仮個別情報の文字列の文字数(=個別情報の文字数)を取得することとした。2次元コードパラメータ生成手段15は、共通情報入力手段11から、共通情報の文字列を取得すると文字数をカウントする。なお、共通情報入力手段11が共通情報の文字列の文字数をカウントしてその文字数の情報を2次元コードパラメータ生成手段15が取得するようにしてもよい。   In the present embodiment, the two-dimensional code parameter generation unit 15 acquires each information of the character string of the common information and the character type mode of the character string of the common information from the common information input unit 11, and the individual information character number input unit 12, the number of characters of the character string of the temporary individual information (= number of characters of the individual information) is obtained. The two-dimensional code parameter generation unit 15 counts the number of characters when the common information input unit 11 acquires the character string of the common information. The common information input unit 11 may count the number of characters in the character string of the common information, and the two-dimensional code parameter generation unit 15 may acquire information on the number of characters.

また、2次元コードパラメータ生成手段15は、例えば、図6(a)に示す2次元コードパラメータ変換表を用いて2次元コードパラメータを生成する。例えば、「共通情報の文字列の文字数」=24、「文字種のモード」=英数字モード、「個別情報の文字列の文字数」=23である場合には、2次元コードパラメータ生成手段15は、2次元コードの型を、「型番」=「3」、「誤り訂正レベル」=「Q」と特定し、これらのパラメータを含む2次元コードパラメータCp={3, Q, EISU, 24}を生成する。生成された2次元コードパラメータCpは、ヘッダ付加・データ符号化手段16、誤り訂正符号化パラメータ変換手段17、および出力手段19に出力される。 Further, the two-dimensional code parameter generation means 15 generates a two-dimensional code parameter using, for example, a two-dimensional code parameter conversion table shown in FIG. For example, when “number of characters in the character string of common information” = 24, “mode of character type” = alphanumeric mode, and “number of characters of character string of individual information” = 23, the two-dimensional code parameter generation unit 15 The type of the two-dimensional code is specified as “model number” = “3”, “error correction level” = “Q”, and the two-dimensional code parameters C p = {3, Q, EISU, 24} including these parameters are set. Generate. The generated two-dimensional code parameter C p is output to the header addition / data encoding unit 16, the error correction encoding parameter conversion unit 17, and the output unit 19.

また、本実施形態では、2次元コードパラメータ生成手段15は、外部から、2次元コードの型(型番、誤り訂正レベル)の優先順位を取得し、入力された各情報に合致する2次元コードの型の候補が複数ある場合には、取得した優先順位にしたがって2次元コードパラメータを生成する。   In the present embodiment, the two-dimensional code parameter generation unit 15 obtains the priority of the type (model number and error correction level) of the two-dimensional code from the outside, and generates a two-dimensional code that matches each input information. If there are a plurality of type candidates, a two-dimensional code parameter is generated according to the acquired priority order.

仮に2次元コードパラメータ生成手段15に入力する各情報が、例えば、「共通情報の文字列の文字数」=38、「文字種のモード」=英数字モード、「個別情報の文字列の文字数」=9である場合には、“3-Q型”と“4-H型”の2つの候補が抽出される。しかし、図6(a)に示す例では、“3-Q型”の優先順位が“1”なので、2次元コードパラメータ生成手段15は、2次元コードパラメータCp={3, Q, EISU, 24}を生成することとなる。 For example, each piece of information input to the two-dimensional code parameter generation unit 15 includes, for example, “number of characters in the character string of common information” = 38, “mode of character type” = alphanumeric mode, “number of characters of character string of individual information” = 9 In this case, two candidates of “3-Q type” and “4-H type” are extracted. However, in the example shown in FIG. 6A, since the priority of “3-Q type” is “1”, the two-dimensional code parameter generation means 15 uses the two-dimensional code parameter C p = {3, Q, EISU, 24} will be generated.

外部から指定される優先順位は、2次元コードパラメータ変換表において外部から書き換えることができる。この場合、用途に応じて、様々な基準で優先順位を割り当てることができる。例えば、図6(a)に示したように、データサイズの小さい順に優先順位を割り当てることができる。また、図6(a)の具体例の場合に、次のように優先順位の基準を変更することができる。例えば、誤り訂正レベルの高い順に優先順位を割り当てる場合には、「誤り訂正レベル」=“H”の4-H型を第1位にすることができる。また、共通情報文字と個別情報文字の文字数がほぼ同じでなるべく多くの文字を使用したい場合には4-M型を第1位にすることができる。さらに、共通情報の文字列の文字数が長い順に割り当てる場合には6-M型を第1位にすることができる。このように符号化演算支援装置1の利用者が所望の基準で優先順位を指定することで、符号化演算支援装置1の利用者の利便性を向上させることができる。   The priority order designated from outside can be rewritten from outside in the two-dimensional code parameter conversion table. In this case, priorities can be assigned according to various criteria depending on the application. For example, as shown in FIG. 6A, priorities can be assigned in ascending order of data size. In the case of the specific example of FIG. 6A, the priority order can be changed as follows. For example, when assigning priorities in descending order of error correction level, the 4-H type of “error correction level” = “H” can be set first. In addition, when the number of characters of the common information character and the individual information character is substantially the same and it is desired to use as many characters as possible, the 4-M type can be ranked first. Further, when the number of characters in the common information character string is assigned in ascending order, the 6-M type can be ranked first. Thus, the user of the encoding calculation support apparatus 1 can improve the convenience of the user of the encoding calculation support apparatus 1 by designating the priority order according to a desired standard.

<ヘッダ付加・データ符号化手段>
ヘッダ付加・データ符号化手段16は、ヘッダ情報を符号化してヘッダを生成し、共通情報の文字列を符号化し、ヘッダに繋げることで第1ビット列データを生成するものである。ヘッダ付加・データ符号化手段16は、2次元コードパラメータ生成手段15から、2次元コードパラメータCpを取得する。また、ヘッダ付加・データ符号化手段16は、仮個別情報付加手段14から、共通情報テキストに仮個別情報の文字列が付加されて生成されたテキストを取得し、取得すると、取得テキストの文字数をカウントする。このカウント結果は、共通情報および個別情報の文字列の文字数の合計値を示す。
<Header addition / data encoding means>
The header addition / data encoding means 16 encodes header information to generate a header, encodes a character string of common information, and connects the header to the header to generate first bit string data. The header addition / data encoding unit 16 acquires the two-dimensional code parameter C p from the two-dimensional code parameter generation unit 15. Further, the header addition / data encoding unit 16 acquires the text generated by adding the character string of the temporary individual information to the common information text from the temporary individual information adding unit 14, and, when acquired, obtains the number of characters of the acquired text. Count. This count result indicates the total value of the number of characters in the character strings of the common information and the individual information.

ヘッダ付加・データ符号化手段16は、取得した2次元コードパラメータCpに含まれる共通情報の文字列の文字種のモードの値を符号化してモード指示子を生成する。QRコードの場合、モード指示子は、4ビットの情報で表される。
ヘッダ付加・データ符号化手段16は、仮個別情報付加手段14から取得したテキストからカウントした文字数を、2次元コードパラメータCpで示される2次元コードの型番にあったビット数で符号化して文字数指示子を生成する。QRコードの場合、文字数指示子は、「型番」と「文字種のモード」とに応じて8種類のビット数が用意されている。例えば、「型番」=3、「文字種モード」=EISUの場合には、文字数指示子は、9ビットの情報で表される。
ヘッダ付加・データ符号化手段16は、生成したモード指示子に、文字数指示子を繋げてヘッダを生成する。「型番」=3、「文字種モード」=EISUの場合には、ヘッダは、13ビットの情報で表される。
Header adding data coding means 16, the value of the mode character kind character string of the common information included in the two-dimensional code parameter C p obtained to generate encoded to mode indicator. In the case of the QR code, the mode indicator is represented by 4-bit information.
Header adding data coding means 16, the number of characters the number of characters counted from the acquired text from the temporary individual information adding means 14, and encoded with the number of bits that were in the model number of the two-dimensional code represented by the two-dimensional code parameter C p Generate an indicator. In the case of the QR code, eight types of bit numbers are prepared for the character number indicator according to the “model number” and the “character type mode”. For example, when “model number” = 3 and “character type mode” = EISU, the character number indicator is represented by 9-bit information.
The header addition / data encoding means 16 generates a header by connecting a character number indicator to the generated mode indicator. When “model number” = 3 and “character type mode” = EISU, the header is represented by 13-bit information.

ヘッダ付加・データ符号化手段16は、仮個別情報付加手段14から取得したテキスト(共通情報と仮個別情報)のうち、2次元コードパラメータCpで示される共通情報の文字列部分を、取得した共通情報の文字列の文字種のモードで符号化してビット列(符号化後ビットとよぶ)を生成する。図7(a)に示す例のように、共通情報の文字列が24文字、「文字種モード」=EISUの場合には、図7(b)に示す符号化後ビット703は、132ビットの情報で表される。つまり、"http://k.nhk.jp/cas.cgi/"(24文字)を英数字モードでデータ符号化した結果が132ビットになる。その結果、ヘッダに繋げると、145ビットの情報で表される。ヘッダ付加・データ符号化手段16は、ヘッダに符号化後ビットを繋げたビット列(第1ビット列データ)を誤り訂正符号計算手段18に出力する。 The header addition / data encoding unit 16 has acquired the character string portion of the common information indicated by the two-dimensional code parameter C p from the text (common information and temporary individual information) acquired from the temporary individual information adding unit 14. A bit string (called post-encoding bit) is generated by encoding in the character type mode of the common information character string. As in the example shown in FIG. 7A, when the character string of the common information is 24 characters and “character type mode” = EISU, the post-encoding bit 703 shown in FIG. 7B is 132-bit information. It is represented by That is, the result of data encoding “http://k.nhk.jp/cas.cgi/” (24 characters) in alphanumeric mode is 132 bits. As a result, when connected to the header, it is represented by 145-bit information. The header addition / data encoding means 16 outputs a bit string (first bit string data) in which the encoded bits are connected to the header to the error correction code calculation means 18.

<誤り訂正符号化パラメータ変換手段>
誤り訂正符号化パラメータ変換手段17は、記憶手段13に予め記憶された誤り訂正符号化パラメータ変換表を参照して、入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、共通情報の文字列のデータ符号化後のビット数を算出し、誤り訂正ブロック数を算出し、誤り訂正符号計算手段18に対して誤り訂正計算を行う部分を指定するものである。
<Error correction coding parameter conversion means>
The error correction coding parameter conversion unit 17 refers to the error correction coding parameter conversion table stored in advance in the storage unit 13 to obtain an error correction parameter that matches the input two-dimensional code parameter, and determines the character of the common information The number of bits after data encoding of the column is calculated, the number of error correction blocks is calculated, and the part for performing error correction calculation is designated to the error correction code calculation means 18.

本実施形態では、誤り訂正符号化パラメータ変換手段17は、2次元コードパラメータ生成手段15から、生成された2次元コードパラメータCpを取得することとした。具体的には、誤り訂正符号化パラメータ変換手段17は、3-Q型の2次元コードパラメータCpが入力されると、図6(b)に示す誤り訂正符号化パラメータ変換表から、RSパラメータとして、「RSブロック数」=2、「RSブロック」=(35,17,9)、「前半処理ブロック数」=1の各情報が記述された行を特定する。RSブロックのサイズは、17バイト(136ビット)と求められる。 In this embodiment, the error correction coding parameter conversion unit 17 acquires the generated two-dimensional code parameter C p from the two-dimensional code parameter generation unit 15. Specifically, when the 3-Q type two-dimensional code parameter C p is input, the error correction coding parameter conversion means 17 reads the RS parameter from the error correction coding parameter conversion table shown in FIG. , “RS block number” = 2, “RS block” = (35, 17, 9), and “first half processing block number” = 1 are described. The RS block size is required to be 17 bytes (136 bits).

また、本実施形態では、誤り訂正符号化パラメータ変換手段17は、共通情報の文字列のデータ符号化後のビット数と、第1ビット列データのビット数とを算出することとした。具体的には、図7(a)に示す例のように、共通情報の文字列が24文字、「文字種モード」=EISUの場合には、誤り訂正符号化パラメータ変換手段17は、共通情報の文字列のデータ符号化後のビット数として、式(1)の右辺の第3項および第4項を計算し、132ビットの情報を取得する。また、第1ビット列データのビット数として、式(1)の右辺すべての項を計算し、145ビットの情報を取得する。   In this embodiment, the error correction coding parameter conversion means 17 calculates the number of bits after data encoding of the character string of the common information and the number of bits of the first bit string data. Specifically, as in the example shown in FIG. 7A, when the character string of the common information is 24 characters and “character type mode” = EISU, the error correction coding parameter conversion unit 17 As the number of bits after data encoding of the character string, the third term and the fourth term on the right side of Expression (1) are calculated, and 132-bit information is acquired. Further, as the number of bits of the first bit string data, all the terms on the right side of Expression (1) are calculated, and 145-bit information is acquired.

B=4+C+11(D DIV 2)+6(D MOD 2) … 式(1)
ここで、Bはビット列の長さ、Cは文字数指示子のビット数、Dは入力データ文字数をそれぞれ示す。なお、QRコードの場合、任意の数のデータ文字数に対するビット列の長さは、文字種のモードに応じて異なっており、文字種のモードが英数字モードの場合には、式(1)で計算することが規定されている。
B = 4 + C + 11 (D DIV 2) +6 (D MOD 2) (1)
Here, B indicates the length of the bit string, C indicates the number of bits of the character number indicator, and D indicates the number of input data characters. In the case of QR codes, the length of the bit string for an arbitrary number of data characters differs depending on the character type mode. When the character type mode is alphanumeric mode, the length of the bit string should be calculated using equation (1). Is stipulated.

この例では、第1ビット列データのビット数(145ビット)を、RSブロックのサイズ(136ビット)で除算すると、1余り9である。つまり、この場合には、第1ビット列データのビット数以下となるような誤り訂正符号のRSブロック数の最大値は、1である。なお、余り9が余剰ビットとなる。   In this example, when the number of bits of the first bit string data (145 bits) is divided by the size of the RS block (136 bits), the remainder is 9. That is, in this case, the maximum value of the number of RS blocks of the error correction code that is equal to or less than the number of bits of the first bit string data is 1. The remainder 9 is a surplus bit.

そして、誤り訂正符号化パラメータ変換手段17は、算出したRSブロックのサイズ(例えば136ビット)と、共通情報の文字列のデータ符号化後のビット数(例えば132ビット)と、RSパラメータ(例えば、3-Q型についての、RSブロック数、RSブロック、前半処理ブロック数の各情報)とを、ブロック情報として誤り訂正符号計算手段18に出力することで、誤り訂正符号計算手段18に対して、ビット列のうち誤り訂正計算をすべき部分を指定する。   Then, the error correction coding parameter conversion means 17 calculates the calculated RS block size (eg, 136 bits), the number of bits after data encoding of the common information character string (eg, 132 bits), and the RS parameter (eg, For each of the 3-Q types, the RS block number, RS block, and first half processing block number information) are output to the error correction code calculation unit 18 as block information. Specifies the portion of the bit string that should be error corrected.

仮に、第2の例として、4-H型の2次元コードパラメータCpが入力されると、誤り訂正符号化パラメータ変換手段17は、図6(b)に示す誤り訂正符号化パラメータ変換表から、RSパラメータとして、「RSブロック数」=4、「RSブロック」=(25,9,8)、「前半処理ブロック数」=3の各情報が記述された行を特定する。RSブロックのサイズは、9バイト(72ビット)と求められる。また、この第2の例において、共通情報の文字列が38文字、「文字種モード」=EISUである場合には、誤り訂正符号化パラメータ変換手段17は、前記式(1)から、38文字の共通情報の文字列の符号化後のビット数として、222ビットを算出する。なお、38文字の共通情報の文字列のデータ符号化後のビット数は209ビットとなる。この第2の例では、第1ビット列データのビット数(222ビット)を、RSブロックのサイズ(72ビット)で除算すると、3余り6である。つまり、この場合には、第1ビット列データのビット数以下となるような誤り訂正符号のRSブロック数の最大値は、3である。なお、余り6が余剰ビットとなる。 As a second example, when a 4-H type two-dimensional code parameter C p is input, the error correction coding parameter conversion means 17 reads the error correction coding parameter conversion table shown in FIG. As the RS parameter, a line in which each information of “RS block number” = 4, “RS block” = (25, 9, 8), and “first half process block number” = 3 is described is specified. The size of the RS block is required to be 9 bytes (72 bits). In the second example, when the character string of the common information is 38 characters and “character type mode” = EISU, the error correction coding parameter conversion means 17 calculates the 38 characters from the equation (1). 222 bits are calculated as the number of bits after encoding the common information character string. Note that the number of bits after data encoding of the character string of the common information of 38 characters is 209 bits. In the second example, when the number of bits of the first bit string data (222 bits) is divided by the size of the RS block (72 bits), the remainder is 6. That is, in this case, the maximum value of the number of RS blocks of the error correction code that is equal to or less than the number of bits of the first bit string data is 3. The remainder 6 is a surplus bit.

<誤り訂正符号計算手段>
誤り訂正符号計算手段18は、ヘッダ付加・データ符号化手段16から取得した第1ビット列データのビット数のうち、誤り訂正符号化パラメータ変換手段17で指定された誤り訂正ブロックに該当するデータを示すデータ符号D1について、指定された誤り訂正パラメータで誤り訂正計算を行って誤り訂正符号E1を算出するものである。算出されたデータ符号D1および誤り訂正符号E1を部分的なQRコードとして出力手段19に出力される。
<Error correction code calculation means>
The error correction code calculation means 18 indicates data corresponding to the error correction block designated by the error correction coding parameter conversion means 17 out of the number of bits of the first bit string data obtained from the header addition / data encoding means 16. For the data code D 1 , the error correction code E 1 is calculated by performing error correction calculation with the specified error correction parameter. The calculated data code D 1 and error correction code E 1 are output to the output means 19 as a partial QR code.

また、誤り訂正符号計算手段18は、共通情報の文字列の符号化後のビット列(図7(b)に示す符号化後ビット703)のうち誤り訂正計算されなかったビット列を示す余剰ビットB1を出力手段19に出力する。また、本実施形態では、誤り訂正符号計算手段18は、誤り訂正計算がどのRSブロックまで終了しているかをRSブロックのブロック位置で示す計算済みブロック数N1を出力手段19に出力する。なお、予め定められた順序でRSブロックを計算する場合や、RSブロック数が2であるQRコードの場合には、計算済みブロック数N1の情報を省略してもよい。 Further, the error correction code calculation means 18 is a surplus bit B 1 indicating a bit string that has not been subjected to error correction calculation in the bit string after encoding of the character string of the common information (the encoded bit 703 shown in FIG. 7B). Is output to the output means 19. In the present embodiment, the error correction code calculation means 18 outputs to the output means 19 the calculated number of blocks N 1 indicating the RS block to which error correction calculation has been completed by the block position of the RS block. Note that when the RS blocks are calculated in a predetermined order, or in the case of a QR code having two RS blocks, the information on the calculated number of blocks N 1 may be omitted.

具体的には、図7(a)に示す例のように、共通情報の文字列が24文字、「文字種モード」=EISUであって、3-Q型の場合には、誤り訂正符号計算手段18は、データ符号化後の結果のビット列(ヘッダから数えて145ビット)のうち、指定されたRSブロック(136ビット)に該当するデータ(=データ符号D1)について、誤り訂正符号を計算する。そして、誤り訂正符号計算手段18は、データ符号D1(136ビット)と、共通情報の文字列(24文字)のデータ符号化後の結果のビット列(132ビット)のうち、ビット列の終端部にあったために誤り訂正計算がなされなかった余剰ビット(9ビット)と、計算された誤り訂正符号(36ビット)とを出力する。 Specifically, as in the example shown in FIG. 7A, when the character string of the common information is 24 characters, “character type mode” = EISU, and 3-Q type, error correction code calculation means 18 calculates an error correction code for data (= data code D 1 ) corresponding to the designated RS block (136 bits) in the bit string (145 bits counted from the header) of the result after data encoding. . Then, the error correction code calculation means 18 outputs the data code D 1 (136 bits) and the bit string (132 bits) resulting from the data encoding of the common information character string (24 characters) at the end of the bit string. Therefore, the surplus bits (9 bits) for which error correction calculation has not been performed and the calculated error correction code (36 bits) are output.

また、前記した第2の例のように、共通情報の文字列が38文字、「文字種モード」=EISUであって、4-H型の場合には、誤り訂正符号計算手段18は、データ符号化後の結果のビット列(ヘッダから数えて222ビット)のうち、指定された3つのRSブロック(それぞれが72ビット)に該当するデータを順に誤り訂正符号を計算する。この場合には、3つのRSブロックをデータ符号D1(216ビット)と表記する。そして、誤り訂正符号計算手段18は、データ符号D1(216ビット)と、共通情報の文字列(38文字)のデータ符号化後の結果のビット列(206ビット)のうち、ビット列の終端部にあったために誤り訂正計算がなされなかった余剰ビット(6ビット)と、計算された誤り訂正符号(36ビット)とを出力する。 Further, as in the second example described above, when the character string of the common information is 38 characters, “character type mode” = EISU, and 4-H type, the error correction code calculation means 18 An error correction code is calculated in order for the data corresponding to three designated RS blocks (each of which is 72 bits) in the resulting bit string (222 bits counted from the header). In this case, the three RS blocks are represented as a data code D 1 (216 bits). Then, the error correction code calculation means 18 uses the data code D 1 (216 bits) and the bit string (206 bits) resulting from the data encoding of the common information character string (38 characters) at the end of the bit string. The surplus bits (6 bits) for which error correction calculation has not been performed because of the error and the calculated error correction code (36 bits) are output.

<出力手段>
出力手段19は、誤り訂正符号化対象としたデータ符号D1と、余剰ビットB1と、算出した誤り訂正符号E1と、生成した2次元コードパラメータCpと、計算済みブロック数(RSブロックのブロック位置)N1とを出力する。ここで、データ符号D1および誤り訂正符号E1が部分的なQRコードを示す。以下では、2次元コードパラメータCpと、余剰ビットB1と、計算済みブロック数(RSブロックのブロック位置)N1とを、1つにまとめて単にパラメータと呼ぶ。つまり、出力手段19は、部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを出力する。これら部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とは、受信機(2次元コード生成装置)2で利用される。
<Output means>
The output means 19 includes a data code D 1 to be subjected to error correction coding, a surplus bit B 1 , a calculated error correction code E 1 , a generated two-dimensional code parameter C p, and the number of calculated blocks (RS block) Block position) N 1 is output. Here, the data code D 1 and the error correction code E 1 indicate partial QR codes. Hereinafter, the two-dimensional code parameter C p , the surplus bit B 1, and the calculated number of blocks (block position of the RS block) N 1 are collectively referred to as a parameter. That is, the output means 19 outputs a partial QR code (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ). These partial QR codes (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ) are used by the receiver (two-dimensional code generation device) 2.

[2次元コード生成装置の構成]
次に、図2を参照して、受信機(2次元コード生成装置)2の構成について説明する。
受信機(2次元コード生成装置)2は、ハードウェア装置とソフトウェアとが協働することによって、前記したハードウェア資源がプログラムによって制御されることにより実現され、図2に示すように、個別情報入力手段21と、データ・パラメータ入力手段22と、記憶手段23と、2次元コードパラメータ・余剰ビット抽出手段24と、データ符号化・余剰ビット付加手段25と、誤り訂正符号化パラメータ変換手段26と、誤り訂正符号計算手段27と、2次元コード化手段28と、表示手段29とを備えている。
[Configuration of two-dimensional code generator]
Next, the configuration of the receiver (two-dimensional code generation device) 2 will be described with reference to FIG.
The receiver (two-dimensional code generation device) 2 is realized by controlling the hardware resources described above by the cooperation of the hardware device and software, and as shown in FIG. Input means 21, data / parameter input means 22, storage means 23, two-dimensional code parameter / surplus bit extraction means 24, data encoding / surplus bit addition means 25, error correction encoding parameter conversion means 26, , An error correction code calculating means 27, a two-dimensional encoding means 28, and a display means 29 are provided.

<個別情報入力手段>
個別情報入力手段21は、個別情報の文字列を入力するものである。個別情報は、受信機やその利用者の個別情報であり、例えば、B-CASカード番号や郵便番号等である。入力された個別情報の文字列は、データ符号化・余剰ビット付加手段25に出力される。
<Individual information input means>
The individual information input means 21 inputs a character string of individual information. The individual information is individual information of the receiver and its user, such as a B-CAS card number or a postal code. The character string of the input individual information is output to the data encoding / surplus bit adding means 25.

<データ・パラメータ入力手段>
データ・パラメータ入力手段22は、図1に示す符号化演算支援装置1で生成されたデータおよびパラメータを入力するものである。ここで、データおよびパラメータとは、部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを意味する。このうち、パラメータ(Cp、B1、N1)は、2次元コードパラメータ・余剰ビット抽出手段24に出力される。また、部分的なQRコード(D1、E1)と、パラメータ(Cp)は、2次元コード化手段28に出力される。
<Data / parameter input means>
The data / parameter input means 22 inputs data and parameters generated by the encoding calculation support device 1 shown in FIG. Here, data and parameters mean partial QR codes (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ). Among these, the parameters (C p , B 1 , N 1 ) are output to the two-dimensional code parameter / surplus bit extraction means 24. The partial QR code (D 1 , E 1 ) and the parameter (C p ) are output to the two-dimensional encoding means 28.

<記憶手段>
記憶手段23は、メモリやハードディスク等の記憶装置から構成され、入力された情報やCPU等の処理結果を一時記憶したり、動作プログラムを格納したりするものである。この記憶手段23は、誤り訂正符号化パラメータ変換表を記憶することとした。誤り訂正符号化パラメータ変換表は、図6(b)に例示したものにおいて、「前半処理ブロック数」の項目を省略したテーブルと同様なものである。
<Storage means>
The storage means 23 is composed of a storage device such as a memory or a hard disk, and temporarily stores input information and processing results of the CPU, etc., and stores an operation program. The storage means 23 stores an error correction coding parameter conversion table. The error correction coding parameter conversion table is the same as the table illustrated in FIG. 6B in which the item “number of first half processing blocks” is omitted.

<2次元コードパラメータ・余剰ビット抽出手段>
2次元コードパラメータ・余剰ビット抽出手段24は、データ・パラメータ入力手段22に入力したデータおよびパラメータのうち、2次元コードパラメータCpと、余剰ビットB1と、計算済みブロック数N1とを抽出するものである。抽出されたパラメータのうち、2次元コードパラメータCpおよび余剰ビットB1は、データ符号化・余剰ビット付加手段25に出力される。また、抽出されたパラメータのうち、2次元コードパラメータCpおよび計算済みブロック数N1は、誤り訂正符号化パラメータ変換手段26に出力される。
<Two-dimensional code parameter / excess bit extraction means>
The two-dimensional code parameter / surplus bit extracting unit 24 extracts the two-dimensional code parameter C p , the surplus bit B 1, and the calculated number of blocks N 1 from the data and parameters input to the data / parameter input unit 22. To do. Among the extracted parameters, the two-dimensional code parameter C p and the surplus bit B 1 are output to the data encoding / surplus bit adding means 25. Of the extracted parameters, the two-dimensional code parameter C p and the calculated number of blocks N 1 are output to the error correction coding parameter conversion means 26.

<データ符号化・余剰ビット付加手段>
データ符号化・余剰ビット付加手段25は、入力された個別情報を符号化し、余剰ビットに繋げることで第2ビット列データを生成するものである。本実施形態では、データ符号化・余剰ビット付加手段25は、個別情報入力手段21から、個別情報を取得し、2次元コードパラメータCpで指定される文字種のモードで符号化し、余剰ビットB1の後ろに繋げて第2ビット列データを生成し、誤り訂正符号計算手段27に出力する。
<Data encoding / surplus bit addition means>
The data encoding / surplus bit adding means 25 encodes the input individual information and connects it to the surplus bits to generate second bit string data. In the present embodiment, the data encoding / surplus bit adding means 25 acquires the individual information from the individual information input means 21, encodes it in the character type mode specified by the two-dimensional code parameter C p , and the surplus bit B 1. The second bit string data is generated after being connected to the error code and output to the error correction code calculation means 27.

具体的には、図7(a)に示す例のように、個別情報の文字列が23文字、「文字種モード」=EISUであって、3-Q型の場合には、前記した式(1)の右辺の第3項および第4項の計算から、個別情報の文字列のデータ符号化後のビット数は、127ビットとなる。ここで、前記したように、共通情報の文字列が24文字の場合の余剰ビットB1は、9ビットであったので、この例の場合には、第2ビット列データのビット列の長さは、136ビットとなり、RSブロックのサイズ(17バイト=136ビット)と等しくなる。 Specifically, as in the example shown in FIG. 7A, when the character string of the individual information is 23 characters, “character type mode” = EISU and the 3-Q type, the above-described formula (1) ), The number of bits after data encoding of the character string of the individual information is 127 bits. Here, as described above, the surplus bit B 1 when the character string of the common information is 24 characters is 9 bits. In this example, the length of the bit string of the second bit string data is 136 bits, which is equal to the RS block size (17 bytes = 136 bits).

<誤り訂正符号化パラメータ変換手段>
誤り訂正符号化パラメータ変換手段26は、記憶手段23に予め記憶された誤り訂正符号化パラメータ変換表を参照して、入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、誤り訂正符号計算手段27に対して誤り訂正計算を行う部分を指定するものである。
<Error correction coding parameter conversion means>
The error correction coding parameter conversion means 26 refers to the error correction coding parameter conversion table stored in advance in the storage means 23, obtains an error correction parameter that matches the input two-dimensional code parameter, and calculates an error correction code. The part for performing error correction calculation is designated for the means 27.

本実施形態では、誤り訂正符号化パラメータ変換手段26は、2次元コードパラメータ・余剰ビット抽出手段24から、2次元コードパラメータCpを取得することとした。具体的には、誤り訂正符号化パラメータ変換手段26は、3-Q型の2次元コードパラメータCpが入力されると、図6(b)に示す誤り訂正符号化パラメータ変換表から、RSパラメータとして、「RSブロック数」=2、「RSブロック」=(35,17,9)の各情報が記述された行を特定する。RSブロックのサイズは、17バイト(136ビット)と求められる。そして、誤り訂正符号化パラメータ変換手段26は、算出したRSブロックのサイズ(例えば136ビット)を、ブロック情報として誤り訂正符号計算手段18に出力することで、誤り訂正符号計算手段18に対して、RSブロックのサイズ毎に、誤り訂正計算をするように指定する。 In this embodiment, the error correction coding parameter conversion unit 26 acquires the two-dimensional code parameter C p from the two-dimensional code parameter / surplus bit extraction unit 24. Specifically, when the 3-Q type two-dimensional code parameter C p is input, the error correction coding parameter conversion means 26 reads the RS parameter from the error correction coding parameter conversion table shown in FIG. As described above, a line in which each information of “number of RS blocks” = 2 and “RS block” = (35, 17, 9) is described is specified. The RS block size is required to be 17 bytes (136 bits). Then, the error correction coding parameter conversion means 26 outputs the calculated RS block size (for example, 136 bits) to the error correction code calculation means 18 as block information, so that the error correction code calculation means 18 Specify error correction calculation for each RS block size.

<誤り訂正符号計算手段>
誤り訂正符号計算手段27は、第2ビット列データのビット数のうち、誤り訂正符号化パラメータ変換手段17で指定された誤り訂正ブロックに該当するデータを示すデータ符号D2について誤り訂正計算を行って誤り訂正符号E2を算出するものである。算出されたデータ符号D2および誤り訂正符号E2は、2次元コード化手段28に出力される。
<Error correction code calculation means>
The error correction code calculation means 27 performs error correction calculation on the data code D 2 indicating the data corresponding to the error correction block designated by the error correction coding parameter conversion means 17 out of the number of bits of the second bit string data. The error correction code E 2 is calculated. The calculated data code D 2 and error correction code E 2 are output to the two-dimensional encoding means 28.

<2次元コード化手段>
2次元コード化手段28は、データ・パラメータ入力手段22から取得した2次元コードパラメータCp、データ符号D1および誤り訂正符号E1と、誤り訂正符号計算手段27から取得したデータ符号D2および誤り訂正符号E2と、を用いて2次元コードを生成するものである。図7(a)に示す例のように、共通情報の文字列が24文字、個別情報の文字列が23文字、「文字種モード」=EISUであって、3-Q型の場合には、データ・パラメータ入力手段22から取得したデータ符号D1および誤り訂正符号E1は、図7(c)において“送信側”に示すビット列で模式的に表すことができる。同様に、誤り訂正符号計算手段27から取得したデータ符号D2および誤り訂正符号E2は、図7(c)において“受信側”に示すビット列で模式的に表すことができる。
<Two-dimensional coding means>
The two-dimensional encoding unit 28 includes a two-dimensional code parameter C p acquired from the data / parameter input unit 22, a data code D 1 and an error correction code E 1 , a data code D 2 acquired from the error correction code calculation unit 27, and and it generates a two-dimensional code using the error correction code E 2, the. As in the example shown in FIG. 7A, the character string of the common information is 24 characters, the character string of the individual information is 23 characters, “character type mode” = EISU, and in the case of the 3-Q type, the data The data code D 1 and the error correction code E 1 acquired from the parameter input means 22 can be schematically represented by a bit string indicated as “transmission side” in FIG. Similarly, the data code D 2 and the error correction code E 2 acquired from the error correction code calculation means 27 can be schematically represented by a bit string shown as “reception side” in FIG.

そして、2次元コード化手段28は、“送信側”と“受信側”のデータ符号を1つにまとめ、かつ、“送信側”と“受信側”の誤り訂正符号を1つにまとめるように並べ替える。この並び替え処理により、左からデータ符号D1、データ符号D2、誤り訂正符号E1、誤り訂正符号E2の順に整列される。そして、2次元コード化手段28は、マスク処理を行う。QRコードの場合、このマスク処理は、JIS X 0510の仕様で行ってもよいし、非特許文献1に記載の方法で行ってもよい。続いて、2次元コード化手段28は、ビット列の「0」に白、「1」に黒を割り当てる白黒割当処理を行い、処理結果を表示手段29に出力する。 Then, the two-dimensional encoding means 28 combines the data codes of “transmission side” and “reception side” into one, and the error correction codes of “transmission side” and “reception side” into one. Rearrange. By this rearrangement process, data code D 1 , data code D 2 , error correction code E 1 , and error correction code E 2 are arranged in this order from the left. Then, the two-dimensional encoding unit 28 performs a mask process. In the case of a QR code, this mask processing may be performed according to the specification of JIS X 0510 or may be performed by the method described in Non-Patent Document 1. Subsequently, the two-dimensional encoding unit 28 performs a black and white assignment process for assigning white to “0” and black to “1” of the bit string, and outputs the processing result to the display unit 29.

<表示手段>
表示手段29は、QRコードシンボルを表示するものであって、例えばLCD等から構成される。なお、図5に示すように、2次元コード生成装置2を受信装置(デジタル放送受信装置)4に含む場合には、表示手段29は、図5に示す表示手段43として構成される。
<Display means>
The display means 29 displays a QR code symbol and is composed of, for example, an LCD. As shown in FIG. 5, when the two-dimensional code generation device 2 is included in the receiving device (digital broadcast receiving device) 4, the display means 29 is configured as the display means 43 shown in FIG.

前記した符号化演算支援装置1および2次元コード生成装置2は、一般的なコンピュータを、前記した各手段として機能させるプログラムにより動作させることで実現することができる。このプログラム(符号化演算支援プログラム、2次元コード生成プログラム)は、通信回線を介して提供することも可能であるし、CD−ROM等の記録媒体に書き込んで配布することも可能である。   The encoding calculation support device 1 and the two-dimensional code generation device 2 described above can be realized by operating a general computer by a program that functions as each of the above-described units. This program (encoding calculation support program, two-dimensional code generation program) can be provided via a communication line, or can be written and distributed on a recording medium such as a CD-ROM.

[デジタル放送システムの構成]
次に、図5を参照して、第1実施形態に係る2次元コード生成システムを、デジタル放送システムにおいて実施する例について説明する。図5に示したデジタル放送システムSは、デジタル放送送信装置3が、放送波を介して、受信装置(デジタル放送受信装置)4にデジタル放送を配信するシステムである。
[Configuration of digital broadcasting system]
Next, an example in which the two-dimensional code generation system according to the first embodiment is implemented in a digital broadcasting system will be described with reference to FIG. The digital broadcast system S shown in FIG. 5 is a system in which a digital broadcast transmission device 3 distributes a digital broadcast to a reception device (digital broadcast reception device) 4 via a broadcast wave.

<デジタル放送送信装置>
デジタル放送送信装置3は、デジタル放送番組の番組コンテンツを配信するものであり、さらに、データ放送として電子文書(BML文書)を配信するものである。デジタル放送送信装置3は、受信装置4が、共通情報と、受信装置4毎に個別の情報である個別情報とを含む2次元コードを生成するための2次元コード生成プログラム等をBML文書に組み込む。また、デジタル放送送信装置3は、共通情報から得られた部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とをデータ放送コンテンツのBML文書に組み込む。このデジタル放送送信装置3は、主に、コンテンツ記憶手段31と、放送制御手段32と、放送送出手段33とを備えている。
<Digital broadcast transmitter>
The digital broadcast transmission device 3 distributes program content of a digital broadcast program, and further distributes an electronic document (BML document) as a data broadcast. In the digital broadcast transmitting apparatus 3, the receiving apparatus 4 incorporates a two-dimensional code generation program or the like for generating a two-dimensional code including common information and individual information that is individual information for each receiving apparatus 4 into the BML document. . Also, the digital broadcast transmitting apparatus 3 incorporates the partial QR code (D 1 , E 1 ) obtained from the common information and the parameters (C p , B 1 , N 1 ) into the BML document of the data broadcast content. . The digital broadcast transmission apparatus 3 mainly includes content storage means 31, broadcast control means 32, and broadcast transmission means 33.

コンテンツ記憶手段31は、デジタル放送の番組コンテンツやデータ放送コンテンツ等の各種コンテンツを記憶するものであって、ハードディスク等の記憶装置である。
放送制御手段32は、コンテンツ記憶手段31から、番組コンテンツ、データ放送コンテンツ等を読み出して、放送送出手段33に出力するものである。この放送制御手段32には、符号化演算支援装置1を備えている。符号化演算支援装置1は、共通情報から得られた部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを出力する。
放送制御手段32は、データ放送コンテンツのBML文書に、部分的なQRコード(D1、E1)およびパラメータ(Cp、B1、N1)と、2次元コード生成プログラム等を組み込む。なお、放送制御手段32は、詳細な説明は省略するが、デジタル放送の限定受信システムに対応してコンテンツのスクランブル、鍵情報の暗号化等の各種の制御を行う。
放送送出手段33は、放送制御手段32から出力される番組コンテンツ、データ放送のデータ等を多重化して、データカルーセルで伝送(配信)するものである。
The content storage means 31 stores various contents such as digital broadcast program contents and data broadcast contents, and is a storage device such as a hard disk.
The broadcast control means 32 reads program content, data broadcast content, etc. from the content storage means 31 and outputs them to the broadcast sending means 33. The broadcast control means 32 includes an encoding calculation support device 1. The encoding operation support device 1 outputs a partial QR code (D 1 , E 1 ) obtained from the common information and parameters (C p , B 1 , N 1 ).
The broadcast control means 32 incorporates a partial QR code (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ), a two-dimensional code generation program, and the like into the BML document of the data broadcast content. The broadcast control means 32 performs various controls such as content scrambling and key information encryption corresponding to the digital broadcast conditional access system, although detailed explanation is omitted.
The broadcast transmission means 33 multiplexes the program content output from the broadcast control means 32, data of data broadcast, etc., and transmits (distributes) them in the data carousel.

<受信装置>
受信装置(デジタル放送受信装置)4は、放送波を介して、デジタル放送を受信するものであって、一般的なデジタル放送受信装置である。ここでは、受信装置4は、放送受信手段41と、ユーザ操作手段42と、表示手段43と、コンテンツ蓄積手段44と、記憶手段45と、受信制御手段46とを備えている。そして、受信装置4は、セキュリティモジュールである個別情報記憶カード5を装着されることで、デジタル放送の受信を可能としている。個別情報記憶カード5は、例えば、図4に示すB-CASカードである。
<Receiving device>
The receiving device (digital broadcast receiving device) 4 receives a digital broadcast via a broadcast wave, and is a general digital broadcast receiving device. Here, the receiving device 4 includes a broadcast receiving unit 41, a user operation unit 42, a display unit 43, a content storage unit 44, a storage unit 45, and a reception control unit 46. The receiving device 4 is capable of receiving a digital broadcast by mounting the individual information storage card 5 that is a security module. The individual information storage card 5 is, for example, a B-CAS card shown in FIG.

放送受信手段41は、デジタル放送送信装置3から送出されるデジタル放送を受信するチューナ等から構成され、個別情報記憶カード5の装着時に受信したデジタル信号を受信制御手段46に出力するものである。
ユーザ操作手段42は、ユーザの操作により指定されるコマンドを受信制御手段46に出力するものであり、例えば、リモコン装置等である。
表示手段43は、受信制御手段46の処理結果として復号されたデジタル放送番組、データ放送を画面上に表示するものであり、例えば、LCD等である。
The broadcast receiving means 41 is composed of a tuner or the like that receives a digital broadcast transmitted from the digital broadcast transmitting apparatus 3, and outputs a digital signal received when the individual information storage card 5 is attached to the reception control means 46.
The user operation unit 42 outputs a command designated by a user operation to the reception control unit 46, and is, for example, a remote control device.
The display means 43 displays the digital broadcast program and data broadcast decoded as the processing result of the reception control means 46 on the screen, and is, for example, an LCD.

コンテンツ蓄積手段44は、放送受信手段41で受信したデジタル放送番組等のコンテンツを記憶するものであり、ハードディスク等で構成される。
記憶手段45は、受信制御手段46等の動作プログラムやその処理結果等を記憶するものであり、メモリやハードディスク等で構成される。この記憶手段45には、個別情報を取得する個別情報取得プログラムが予め記憶されている。なお、個別情報取得プログラムはデータ放送により配信するようにしてもよい。この記憶手段45には、例えば、ユーザの住所、年齢等の個人情報を記憶した不揮発性メモリであるNVRAMも含むこととする。
The content storage unit 44 stores content such as a digital broadcast program received by the broadcast receiving unit 41, and includes a hard disk or the like.
The storage unit 45 stores an operation program of the reception control unit 46 and the processing result thereof, and includes a memory, a hard disk, and the like. The storage unit 45 stores in advance an individual information acquisition program for acquiring individual information. The individual information acquisition program may be distributed by data broadcasting. The storage means 45 includes, for example, NVRAM which is a nonvolatile memory storing personal information such as the user's address and age.

受信制御手段46は、放送受信手段41で受信したデジタル信号の再生・表示制御するものである。ここでは、受信制御手段46は、2次元コード生成装置2と、コンテンツ再生制御手段461と、表示制御手段462とを備えている。   The reception control means 46 controls reproduction / display of the digital signal received by the broadcast receiving means 41. Here, the reception control unit 46 includes a two-dimensional code generation device 2, a content reproduction control unit 461, and a display control unit 462.

2次元コード生成装置2は、デジタル放送送信装置3から、2次元コード生成プログラムを含む電子文書を受信した際に、当該電子文書に組み込まれている情報(2次元コード生成プログラム)に基づいて機能するものである。2次元コード生成装置2は、デジタル放送送信装置3の符号化演算支援装置1が出力する情報を含む電子文書を受信した際に、当該電子文書に組み込まれている情報(部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1))に基づいて、個別情報記憶カード5から、個別情報としてカード番号を取得し、2次元コードとしてQRコードを生成し、表示手段43に表示させる。 The two-dimensional code generation device 2 functions based on information (two-dimensional code generation program) incorporated in the electronic document when the electronic document including the two-dimensional code generation program is received from the digital broadcast transmission device 3. To do. When the two-dimensional code generation device 2 receives an electronic document including information output from the encoding operation support device 1 of the digital broadcast transmission device 3, the information (partial QR code ( D 1 , E 1 ) and parameters (C p , B 1 , N 1 )), obtain a card number as individual information from the individual information storage card 5, generate a QR code as a two-dimensional code, It is displayed on the display means 43.

コンテンツ再生制御手段461は、受信した多重化されたデジタル信号から暗号化鍵情報やコンテンツ等を分離し、鍵情報を復号して、コンテンツをデスクランブルすることでコンテンツを再生する制御を行うものである。   The content reproduction control means 461 performs control to reproduce the content by separating the encryption key information and content from the received multiplexed digital signal, decrypting the key information, and descrambling the content. is there.

表示制御手段462は、コンテンツ再生制御手段461で再生されたコンテンツを表示手段43に表示させるものである。また、表示制御手段462は、データ放送の電子文書であるBMLを解析し、表示制御を行うものでもある。   The display control unit 462 displays the content reproduced by the content reproduction control unit 461 on the display unit 43. The display control means 462 also performs display control by analyzing BML, which is an electronic document for data broadcasting.

このように、受信装置4は、共通情報の符号化および誤り訂正符号計算については、予め配信側で算出された結果をそのまま利用し、個別情報の符号化および誤り訂正符号計算については、受信装置4内で実行し、2次元コードを生成し、表示する。   As described above, the reception device 4 uses the result calculated in advance on the distribution side as it is for the encoding of common information and the error correction code calculation, and the reception device for the encoding of individual information and the error correction code calculation. 4 is executed and a two-dimensional code is generated and displayed.

[デジタル放送システムの動作]
次に、デジタル放送システムSの動作について図4を参照(適宜図5参照)して説明する。まず、デジタル放送送信装置3は、放送制御手段32によって、放送用の電子文書に情報(2次元コード生成プログラム等)を組み込み、2次元コード表示用電子文書を生成する。また、デジタル放送送信装置3は、放送制御手段32によって、放送用の電子文書に情報(部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1))を組み込み、2次元コード表示用電子文書を生成する。なお、放送制御手段32は、2次元コード生成プログラムと、部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とをまとめて組み込んでもよい。そして、デジタル放送送信装置3は、生成した2次元コード表示用電子文書を、放送送出手段33によって、放送波を介して配信(送出)する(S31)。
[Operation of digital broadcasting system]
Next, the operation of the digital broadcasting system S will be described with reference to FIG. 4 (refer to FIG. 5 as appropriate). First, the digital broadcast transmitting apparatus 3 uses the broadcast control unit 32 to incorporate information (such as a two-dimensional code generation program) into a broadcast electronic document and generate a two-dimensional code display electronic document. Also, the digital broadcast transmitting apparatus 3 uses the broadcast control means 32 to add information (partial QR code (D 1 , E 1 ) and parameters (C p , B 1 , N 1 )) to the electronic document for broadcasting. An embedded two-dimensional code display electronic document is generated. The broadcast control means 32 may incorporate a two-dimensional code generation program, partial QR codes (D 1 , E 1 ), and parameters (C p , B 1 , N 1 ) together. Then, the digital broadcast transmitting apparatus 3 distributes (transmits) the generated two-dimensional code display electronic document via the broadcast wave by the broadcast transmitting means 33 (S31).

一方、受信装置4(図4では受信機2と表記)は、放送受信手段41によって、放送波を介して、2次元コード表示用電子文書を受信する。そして、受信装置4は、受信制御手段46によって、2次元コード表示用電子文書を解析し、2次元コード生成プログラムを展開することによって2次元コード生成装置2として機能する。また、この2次元コード生成装置2は、2次元コード表示用電子文書に組み込まれている部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを取得すると、受信機2に装着されているB-CASカード(個別情報記憶カード)5のカード番号等の個別情報を取得する(S32)。さらに、受信装置4の2次元コード生成装置2は、2次元コードパラメータによって、カード番号等の個別情報と、取得した部分的なQRコードとから2次元コードを生成する(S33)。 On the other hand, the receiving device 4 (denoted as receiver 2 in FIG. 4) receives a two-dimensional code display electronic document via broadcast waves by the broadcast receiving means 41. The reception device 4 functions as the two-dimensional code generation device 2 by analyzing the two-dimensional code display electronic document by the reception control means 46 and developing the two-dimensional code generation program. Further, the two-dimensional code generation device 2 receives a partial QR code (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ) incorporated in the two-dimensional code display electronic document. Upon acquisition, individual information such as the card number of the B-CAS card (individual information storage card) 5 attached to the receiver 2 is acquired (S32). Further, the two-dimensional code generation device 2 of the reception device 4 generates a two-dimensional code from the individual information such as the card number and the acquired partial QR code by using the two-dimensional code parameter (S33).

これにより、受信機2は、データ放送(電子文書)上に、共通情報の文字列および個別情報の文字列を含むQRコードシンボルを生成し表示する。視聴者は、携帯電話機6の2次元コード読み取り機能を用いることで、画面表示されたQRコードシンボルを読み取る。そして、視聴者が、読み取ったURLにアクセスする操作を行うと、QRコードシンボルの内容のうち、共通情報の文字列が例えば、放送事業者のCGIサーバのアドレスを意味していれば、個別情報の文字列がインターネットを介して、このCGIサーバに伝送され、放送事業者でユーザ登録が管理されることとなる。   Thereby, the receiver 2 generates and displays a QR code symbol including the character string of the common information and the character string of the individual information on the data broadcast (electronic document). The viewer uses the two-dimensional code reading function of the mobile phone 6 to read the QR code symbol displayed on the screen. Then, when the viewer performs an operation to access the read URL, if the character string of the common information among the contents of the QR code symbol means, for example, the address of the broadcaster's CGI server, the individual information Is transmitted to the CGI server via the Internet, and user registration is managed by the broadcaster.

第1実施形態によれば、送信側の符号化演算支援装置1によって、共通情報の文字列の大部分およびヘッダ情報を符号化したデータ符号の誤り訂正計算を予め行っておくので、2次元コードを生成して表示する受信側では、2次元コードを生成する処理負荷を軽減することができる。   According to the first embodiment, the encoding correction support apparatus 1 on the transmission side performs in advance error correction calculation of a data code obtained by encoding most of the character string of the common information and the header information. On the receiving side that generates and displays the code, the processing load for generating the two-dimensional code can be reduced.

特に、古い受信機においてデータサイズの大きな個別QRコードを生成する場合には、従来は数十秒単位の所要時間であったが、本実施形態のQRコード生成プログラムをダウンロードした古い受信機は、QRコードの生成対象を、ほぼ個別情報の文字列だけに絞ることができる。そのため、全体のデータサイズに対する個別情報の文字列サイズの割合(受信側が分担する割合)にも依存するが、従来の1/3〜2/3程度の高速表示が可能である。そのため、この時間短縮効果により、現在世の中に普及している受信機性能のばらつきを考慮したとしても、より多くの視聴者の利便性を向上させることができる。   In particular, when generating an individual QR code with a large data size in an old receiver, the time required in the past is several tens of seconds, but the old receiver that downloaded the QR code generation program of this embodiment is QR code generation targets can be narrowed down to just individual information strings. Therefore, although depending on the ratio of the character string size of the individual information to the entire data size (ratio shared by the receiving side), high-speed display of about 1/3 to 2/3 of the conventional one is possible. For this reason, this time shortening effect can improve the convenience of more viewers even when the variation in receiver performance that is currently popular in the world is taken into consideration.

また、広く普及した一般の携帯電話機を、QRコード対応の読み取り装置として利用できるため、デジタル放送システムにおいて、視聴者のユーザ登録の用途だけに限定されずに、クイズ番組に対する視聴者の回答や、アンケートの回収といった利用にすぐにでも導入することができる。この場合、視聴者の回答内容や、アンケート記入内容が個別情報として管理されることとなる。   In addition, since a general mobile phone that is widely spread can be used as a QR code compatible reader, the digital broadcast system is not limited to the use of viewer user registration, but the viewer's response to a quiz program, It can be used immediately for collecting questionnaires. In this case, the response contents of the viewer and the questionnaire entry contents are managed as individual information.

(第2実施形態)
第2実施形態に係る2次元コード生成システムは、図8に示す符号化演算支援装置1Bおよび図2に示す受信機(2次元コード生成装置)2を備える。
符号化演算支援装置1Bは、テキスト入力手段51と、2次元コードパラメータ入力手段52と、記憶手段13と、ヘッダ付加・データ符号化手段16と、誤り訂正符号化パラメータ変換手段17と、誤り訂正符号計算手段18と、出力手段19とを備えている。なお、第1実施形態の符号化演算支援装置1と同じ構成には同じ符号を付して説明を省略する。
(Second Embodiment)
The two-dimensional code generation system according to the second embodiment includes an encoding calculation support device 1B shown in FIG. 8 and a receiver (two-dimensional code generation device) 2 shown in FIG.
The encoding operation support apparatus 1B includes a text input unit 51, a two-dimensional code parameter input unit 52, a storage unit 13, a header addition / data encoding unit 16, an error correction encoding parameter conversion unit 17, and an error correction. A code calculation means 18 and an output means 19 are provided. In addition, the same code | symbol is attached | subjected to the same structure as the encoding calculation assistance apparatus 1 of 1st Embodiment, and description is abbreviate | omitted.

テキスト入力手段51は、共通情報の文字列と仮個別情報の文字列とを繋げたテキストを入力するものである。なお、テキスト入力手段51は、文字種のモードも入力する。
このテキスト入力手段51において、共通情報の文字数には、図1に示した共通情報入力手段11に入力される共通情報の文字数と同様な制限がある。入力されたテキストおよび文字種のモードは、ヘッダ付加・データ符号化手段16に出力される。
The text input means 51 inputs text in which a character string of common information and a character string of temporary individual information are connected. The text input means 51 also inputs a character type mode.
In this text input means 51, the number of characters of common information has the same restrictions as the number of characters of common information input to the common information input means 11 shown in FIG. The input text and character type modes are output to the header addition / data encoding means 16.

2次元コードパラメータ入力手段52は、外部から2次元コードパラメータCpを入力するものである。この入力された2次元コードパラメータCpは、ヘッダ付加・データ符号化手段16、誤り訂正符号化パラメータ変換手段17、および出力手段19に出力される。 2-dimensional code parameter input means 52 is used to input the two-dimensional code parameter C p externally. The input two-dimensional code parameter C p is output to the header addition / data encoding unit 16, the error correction encoding parameter conversion unit 17, and the output unit 19.

ヘッダ付加・データ符号化手段16は、テキスト入力手段51から、共通情報の文字列と仮個別情報の文字列とを繋げたテキストと文字種のモードとを取得し、2次元コードパラメータ入力手段52から、2次元コードパラメータCpを取得する。また、ヘッダ付加・データ符号化手段16は、共通情報の文字列と仮個別情報の文字列とを繋げたテキストを取得すると、取得テキストの文字数をカウントする。このカウント結果は、共通情報および個別情報の文字列の文字数の合計値を示す。 The header addition / data encoding unit 16 obtains the text and the mode of the character type obtained by connecting the character string of the common information and the character string of the temporary individual information from the text input unit 51, and from the two-dimensional code parameter input unit 52. A two-dimensional code parameter C p is acquired. Further, when the header addition / data encoding means 16 acquires the text connecting the character string of the common information and the character string of the temporary individual information, it counts the number of characters of the acquired text. This count result indicates the total value of the number of characters in the character strings of the common information and the individual information.

第2実施形態に係る符号化演算支援装置1Bは、2次元コードパラメータCpを外部から入力するので、装置内部で生成する場合に比べて簡易な構成とすることができる。例えば、共通情報および個別情報の文字列の文字数が固定された個別2次元コードを生成する用途に適している。 Since the encoding calculation support device 1B according to the second embodiment inputs the two-dimensional code parameter Cp from the outside, the configuration can be simplified as compared with the case where the encoding calculation support device 1B is generated inside the device. For example, it is suitable for the purpose of generating an individual two-dimensional code in which the number of characters in the character strings of common information and individual information is fixed.

(第3実施形態)
次に、図9および図10を参照して、第3実施形態に係る2次元コード生成システムについて説明する。前記第1および第2実施形態は、2次元コードを生成するための符号化演算処理を2つの装置で分担したが、3つ以上の装置で分担するようにしてもよい。この場合、最初と最後をつなぐ途中の装置(中継装置)は、同様な符号化演算処理を同様に行う多段構成とすることができる。第3実施形態に係る2次元コード生成システムは、図1(または図8)に示す符号化演算支援装置1(1B)および図2に示す受信機(2次元コード生成装置)2と、少なくとも1つの符号化演算支援装置1C(図9参照)とを備える。なお、QRコードの場合、RSブロック数は「81」まで規定されているので、理論的には処理を81分割して79の中継装置を設けることが可能である。
(Third embodiment)
Next, a two-dimensional code generation system according to the third embodiment will be described with reference to FIGS. 9 and 10. In the first and second embodiments, encoding operation processing for generating a two-dimensional code is shared by two devices, but may be shared by three or more devices. In this case, a device (relay device) that is in the middle of connecting the first and last can have a multi-stage configuration that similarly performs the same encoding operation processing. The two-dimensional code generation system according to the third embodiment includes at least one encoding operation support apparatus 1 (1B) shown in FIG. 1 (or FIG. 8) and the receiver (two-dimensional code generation apparatus) 2 shown in FIG. One encoding calculation support device 1C (see FIG. 9). In the case of a QR code, the number of RS blocks is defined up to “81”, so theoretically, it is possible to divide the processing into 81 and provide 79 relay devices.

図9に示す符号化演算支援装置(中継装置)1Cは、図1(または図8)に示す符号化演算支援装置1(1B)、または、他の符号化演算支援装置1Cが出力するデータおよびパラメータを引き継ぎ情報として取得し、処理結果として生成したデータおよびパラメータを、取得した引き継ぎ情報に加えて、図2に示す受信機(2次元コード生成装置)2または他の符号化演算支援装置1Cに出力する。   The encoding calculation support apparatus (relay apparatus) 1C shown in FIG. 9 includes data output from the encoding calculation support apparatus 1 (1B) shown in FIG. 1 (or FIG. 8) or other encoding calculation support apparatus 1C and The parameter is acquired as takeover information, and the data and parameters generated as a processing result are added to the acquired takeover information, and are added to the receiver (two-dimensional code generation device) 2 shown in FIG. 2 or another encoding calculation support device 1C. Output.

このときの処理の概要を図10に示す。ここでは、第3の実施形態に係る2次元コード生成システムを、デジタル放送システムに適用する場合を想定し、符号化演算支援装置(中継装置)1Cは、放送局に設けられるものとする。この場合、放送局内で最後の中継装置が、デジタル放送送信装置3(図5参照)に組み込まれることとしてもよいし、最後の中継装置が、データおよびパラメータをBML文書に組み込む機能を有した他のデジタル放送送信装置に出力することとしてもよい。   An overview of the processing at this time is shown in FIG. Here, it is assumed that the two-dimensional code generation system according to the third embodiment is applied to a digital broadcast system, and the encoding calculation support device (relay device) 1C is provided in a broadcast station. In this case, the last relay device in the broadcasting station may be incorporated in the digital broadcast transmission device 3 (see FIG. 5), or the last relay device has a function of incorporating data and parameters into the BML document. It is good also as outputting to the digital broadcast transmission apparatus.

以下では、簡便のため、符号化演算支援装置1Cが1つの場合であって、図1に示す符号化演算支援装置1からデータおよびパラメータを取得するものとして図10を参照して処理の概要を説明する。なお、図9においては、図1に示す符号化演算支援装置1が出力するデータおよびパラメータを、部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)と表記し、符号化演算支援装置(中継装置)1Cが出力するデータおよびパラメータを、部分的なQRコード(D3、E3)と、パラメータ(Cp、B3、N3)と表記した。順序が最初の符号化演算支援装置1の仮個別情報付加手段14は、ヘッダの文字数指示子として、共通情報の文字数と全ての個別情報の文字数との合計文字数を符号化する。 In the following, for the sake of simplicity, it is assumed that there is one encoding calculation support device 1C, and the outline of the processing will be described with reference to FIG. 10 as data and parameters obtained from the encoding calculation support device 1 shown in FIG. explain. In FIG. 9, the data and parameters output from the encoding operation support device 1 shown in FIG. 1 are divided into partial QR codes (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ). And the data and parameters output from the encoding operation support device (relay device) 1C are expressed as partial QR codes (D 3 , E 3 ) and parameters (C p , B 3 , N 3 ). . The temporary individual information adding unit 14 of the encoding operation support apparatus 1 in the first order encodes the total number of characters of the number of characters of the common information and the number of characters of all the individual information as the number of characters indicator of the header.

図10に示すS11〜S14Cは、図3に示すS11〜S14と同様である。ただし、S14Cでは、符号化演算支援装置1は、符号化演算支援装置(中継装置)1Cに対してデータおよびパラメータ(D1、E1、Cp、B1、N1)を出力する。 S11 to S14C illustrated in FIG. 10 are the same as S11 to S14 illustrated in FIG. However, in S14C, the encoding operation support device 1 outputs data and parameters (D 1 , E 1 , C p , B 1 , N 1 ) to the encoding operation support device (relay device) 1C.

図10に示すS15〜S18は、S11〜S14Cと同様である。ただし、S15では、符号化演算支援装置(中継装置)1Cは、当該中継装置またはその利用者の個別情報を入力する。また、S17では、符号化演算支援装置(中継装置)1Cは、図1に示すヘッダ付加・データ符号化手段16によるヘッダ付加はしない代わりに、当該装置に入力される個別情報を符号化した後に、その符号化後のビット列の頭に、取得した余剰ビットB1を付加する。さらに、S18では、符号化演算支援装置(中継装置)1Cは、受信機(2次元コード生成装置)2に対してデータおよびパラメータ(D3、E3、Cp、B3、N3)を出力(配信)する。 S15 to S18 shown in FIG. 10 are the same as S11 to S14C. However, in S15, the encoding calculation support device (relay device) 1C inputs the individual information of the relay device or its user. In S17, the encoding operation support apparatus (relay apparatus) 1C encodes the individual information input to the apparatus instead of adding the header by the header addition / data encoding means 16 shown in FIG. The acquired surplus bit B 1 is added to the head of the encoded bit string. Further, in S18, the encoding operation support device (relay device) 1C sends data and parameters (D 3 , E 3 , C p , B 3 , N 3 ) to the receiver (two-dimensional code generation device) 2. Output (deliver).

図10に示すS21〜S25は、図3に示したものと同様なので、説明を省略する。ただし、S24Cでは、受信機(2次元コード生成装置)2は、データ符号D1および誤り訂正符号E1と、データ符号D3および誤り訂正符号E3とを取得し、データ符号D2および誤り訂正符号E2を有しているので、並び替え処理は次のように行う。すなわち、データ符号のグループと、誤り訂正符号のグループとに分別し、符号化演算処理を適用した順番に入れ替える。そのため、先頭(左)からデータ符号D1、データ符号D3、データ符号D2、誤り訂正符号E1、誤り訂正符号E3、誤り訂正符号E2の順に整列させる。なお、符号化演算支援装置側のS14Cで図示したシンボルと、中継装置のS18で図示したシンボルと、受信機側のS23で図示したシンボルとの3つの情報を合わせることで、受信機側のS25でQRコードシンボルが完成することを概念的に示した。 Since S21 to S25 shown in FIG. 10 are the same as those shown in FIG. However, the S24c, the receiver (2-dimensional code generation device) 2, a data code D 1 and the error correction code E 1, acquires the data symbols D 3 and the error correction code E 3, data symbols D 2 and error Since the correction code E 2 is included, the rearrangement process is performed as follows. In other words, the data code group and the error correction code group are separated and switched to the order in which the encoding operation processing is applied. Therefore, the data code D 1 , the data code D 3 , the data code D 2 , the error correction code E 1 , the error correction code E 3 , and the error correction code E 2 are arranged in order from the top (left). It should be noted that by combining the three information of the symbol illustrated in S14C on the coding operation support apparatus side, the symbol illustrated in S18 of the relay apparatus, and the symbol illustrated in S23 on the receiver side, S25 on the receiver side is combined. The above conceptually shows that the QR code symbol is completed.

図9に戻って、符号化演算支援装置(中継装置)1Cの構成を説明する。
符号化演算支援装置(中継装置)1Cは、個別情報入力手段61と、データ・パラメータ入力手段62と、記憶手段63と、2次元コードパラメータ・余剰ビット抽出手段64と、データ符号化・余剰ビット付加手段65と、誤り訂正符号化パラメータ変換手段66と、誤り訂正符号計算手段67と、出力手段68とを備えている。
Returning to FIG. 9, the configuration of the encoding calculation support device (relay device) 1C will be described.
The encoding operation support device (relay device) 1C includes an individual information input unit 61, a data / parameter input unit 62, a storage unit 63, a two-dimensional code parameter / surplus bit extraction unit 64, and a data encoding / surplus bit. An adding unit 65, an error correction coding parameter conversion unit 66, an error correction code calculation unit 67, and an output unit 68 are provided.

個別情報入力手段61と、データ・パラメータ入力手段62と、記憶手段63と、2次元コードパラメータ・余剰ビット抽出手段64と、データ符号化・余剰ビット付加手段65は、図2に示す受信機(2次元コード生成装置)2の個別情報入力手段21と、データ・パラメータ入力手段22と、記憶手段23と、2次元コードパラメータ・余剰ビット抽出手段24と、データ符号化・余剰ビット付加手段25と同様なので、説明を省略する。ただし、データ・パラメータ入力手段62は、部分的なQRコード(D1、E1)と、2次元コードパラメータCpとを出力手段68に出力する。 The individual information input means 61, the data / parameter input means 62, the storage means 63, the two-dimensional code parameter / surplus bit extraction means 64, and the data encoding / surplus bit addition means 65 are connected to the receiver shown in FIG. Individual information input means 21, data / parameter input means 22, storage means 23, two-dimensional code parameter / surplus bit extraction means 24, data encoding / surplus bit addition means 25, Since it is the same, description is abbreviate | omitted. However, the data / parameter input means 62 outputs the partial QR code (D 1 , E 1 ) and the two-dimensional code parameter C p to the output means 68.

また、誤り訂正符号化パラメータ変換手段66と、誤り訂正符号計算手段67と、出力手段68は、図1に示す符号化演算支援装置1の誤り訂正符号化パラメータ変換手段17と、誤り訂正符号計算手段18と、出力手段19と同様なので、説明を省略する。ただし、出力手段19は、部分的なQRコード(D1、E1、D3、E3)と、パラメータ(Cp、B3、N3)とを出力する。したがって、受信機(2次元コード生成装置)2の2次元コード化手段28は、並び替え処理により、左からデータ符号D1、データ符号D3、データ符号D2、誤り訂正符号E1、誤り訂正符号E3、誤り訂正符号E2の順に整列する。 Further, the error correction coding parameter conversion means 66, the error correction code calculation means 67, and the output means 68 are the error correction coding parameter conversion means 17 and the error correction code calculation of the coding operation support apparatus 1 shown in FIG. Since it is the same as the means 18 and the output means 19, description is abbreviate | omitted. However, the output means 19 outputs partial QR codes (D 1 , E 1 , D 3 , E 3 ) and parameters (C p , B 3 , N 3 ). Accordingly, the two-dimensional encoding means 28 of the receiver (two-dimensional code generation device) 2 performs the rearrangement process from the left to the data code D 1 , the data code D 3 , the data code D 2 , the error correction code E 1 , the error The correction code E 3 and the error correction code E 2 are arranged in this order.

第3実施形態によれば、視聴者の受信機2に2次元コードを生成するための符号化演算処理を放送局側の多くの装置で分担できるので、より大きな2次元コードを視聴者の受信機2に表示することができる。例えば、本発明で適用できる最小サイズは、QRコードでは、「型番3」の29×29モジュールであるが、QRコードの最大サイズは「型番40」の177×177モジュールまであるので、こういった大きなサイズのQRコードシンボルが表示可能となる。   According to the third embodiment, the encoding operation processing for generating the two-dimensional code in the viewer's receiver 2 can be shared by many apparatuses on the broadcasting station side, so that a larger two-dimensional code can be received by the viewer. It can be displayed on the machine 2. For example, the minimum size that can be applied in the present invention is 29 × 29 module of “model number 3” in QR code, but the maximum size of QR code is up to 177 × 177 module of “model number 40”. A large QR code symbol can be displayed.

なお、放送事業者では、自前の情報を視聴者に公開するだけではなく、例えば、天気予報であれば気象庁から情報を取得するなどしているので、中継装置を官公庁等の外部のサーバとしてもよい。   In addition, broadcasters not only disclose their own information to viewers but also acquire information from the Japan Meteorological Agency, for example, if it is a weather forecast, so the relay device can also be used as an external server such as a public office Good.

また、共通情報の文字列として、URLを用いる代わりに、「mailto: … 」のようにメールアドレスやメール本文とすることもできる。そして、各中継装置またはその利用者の個別情報を、メールアドレス、メール本文、メール本文への署名とすることもできる。仮に、各中継装置の利用者の署名を、各中継装置で入力される個別情報として、かつ、共通情報をURLとすると、受信機2で入力された個別情報は、各中継装置の利用者全員の賛同がなければ、該当するURLに送信されない。この意味で、グループ署名に適用することが可能である。この場合、受信機2から収集され管理される個別情報へのアクセスを制限するといった運用が可能となる。   Further, instead of using a URL as the character string of the common information, it can be an email address or an email text such as “mailto:...”. The individual information of each relay device or its user can be a mail address, a mail text, and a signature on the mail text. Assuming that the signature of each relay device user is the individual information input at each relay device and the common information is a URL, the individual information input at the receiver 2 is all the users of each relay device. Without the approval of, it will not be sent to the corresponding URL. In this sense, it can be applied to a group signature. In this case, an operation of restricting access to the individual information collected and managed from the receiver 2 becomes possible.

(第4実施形態)
第4実施形態に係る2次元コード生成システムは、送信側でマスク処理まで行うこととした。このときの処理の概要を図11に示す。図11に示すS11〜S14Dは、図3に示すS11〜S14と同様である。ただし、S13とS14Dとの間に、符号化演算支援装置1は、生成した部分的なQRコード(D1、E1)にマスク処理を行う。このマスク処理は、図1に示す誤り訂正符号計算手段18において誤り訂正計算の処理の後に続いて行ってもよいし、図示しない専用のマスク処理手段を設けて行ってもよい。そして、S14Dでは、マスク処理された部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを出力する。
(Fourth embodiment)
In the two-dimensional code generation system according to the fourth embodiment, mask processing is performed on the transmission side. An outline of the processing at this time is shown in FIG. S11 to S14D shown in FIG. 11 are the same as S11 to S14 shown in FIG. However, between S13 and S14D, the encoding operation support device 1 performs mask processing on the generated partial QR code (D 1 , E 1 ). This mask processing may be performed subsequent to the error correction calculation processing in the error correction code calculation means 18 shown in FIG. 1, or may be performed by providing a dedicated mask processing means (not shown). In S14D, the masked partial QR code (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ) are output.

図11に示すS21〜S25は、図3に示したものと同様なので、説明を省略する。ただし、受信機(2次元コード生成装置)2は、S23に続けて、個別情報の文字列に該当する部分だけマスク処理を行う(S231)。そのため、S24Dの2次元コード化処理は、並び替え処理だけを行う。   Since S21 to S25 shown in FIG. 11 are the same as those shown in FIG. However, the receiver (two-dimensional code generation device) 2 performs mask processing only on the portion corresponding to the character string of the individual information following S23 (S231). Therefore, the two-dimensional encoding process of S24D performs only the rearrangement process.

第4実施形態によれば、送信側において、誤り訂正計算等の符号化演算処理に加えて、共通情報の文字列に該当する部分のマスク処理の数値演算処理まで行うので、受信側の処理負荷をより軽減することができる。   According to the fourth embodiment, on the transmitting side, in addition to the encoding calculation processing such as error correction calculation, the numerical calculation processing of the mask processing of the portion corresponding to the character string of the common information is performed, so the processing load on the reception side Can be further reduced.

(第5実施形態)
第5実施形態に係る2次元コード生成システムは、送信側でマスク処理に加えて、部分的なQRコードのシンボル化まで行うこととした。このときの処理の概要を図12に示す。図12に示すS11〜S14Eは、図11に示すS11〜S14Dと同様である。ただし、S131とS14Eとの間に、符号化演算支援装置1は、マスク処理後の部分的なQRコード(D1、E1)をシンボル化して画像ファイルとする。この処理は、図1に示す誤り訂正符号計算手段18においてマスク処理の後に続いて行ってもよいし、専用の2次元コード化手段28(図2参照)を設けて行ってもよい。そして、S14Eでは、画像ファイル化された部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを出力する。
(Fifth embodiment)
In the two-dimensional code generation system according to the fifth embodiment, partial QR code symbolization is performed in addition to mask processing on the transmission side. An overview of the processing at this time is shown in FIG. S11 to S14E shown in FIG. 12 are the same as S11 to S14D shown in FIG. However, between S131 and S14E, the encoding operation support device 1 converts the partial QR code (D 1 , E 1 ) after the mask processing into a symbol to form an image file. This processing may be performed after the mask processing in the error correction code calculation unit 18 shown in FIG. 1, or may be performed by providing a dedicated two-dimensional encoding unit 28 (see FIG. 2). In S14E, the partial QR code (D 1 , E 1 ) and the parameters (C p , B 1 , N 1 ) converted into an image file are output.

図12に示すS21〜S25は、図11に示したものと同様なので、説明を省略する。ただし、受信機(2次元コード生成装置)2は、S231に続けて、個別情報の文字列に該当する部分を文字列に変換する処理を行う(S232)。そのため、S24Eの2次元コード化処理は、送信側から取得した画像データ(部分的なQRコード)上に、S232で変換した文字列を配置する処理を行う。つまり、S24Eの処理は、共通情報の部分的なQRコードシンボルの上に、個別情報の部分的なQRコードシンボルを重ね合わせる処理
である。
Since S21 to S25 shown in FIG. 12 are the same as those shown in FIG. However, the receiver (two-dimensional code generation device) 2 performs a process of converting a portion corresponding to the character string of the individual information into a character string following S231 (S232). Therefore, the two-dimensional encoding process of S24E performs a process of arranging the character string converted in S232 on the image data (partial QR code) acquired from the transmission side. That is, the process of S24E is a process of superimposing a partial QR code symbol of individual information on a partial QR code symbol of common information.

なお、S232において、QRコードで読み取らせようとするテキスト(個別情報の文字列)を符号化したビット列を、文字列に変換する処理は、非特許文献1に開示されているように、例えば、黒で塗りつぶされるシンボル部分を、“■”文字(文字コードShift JIS:0x81A1)に置き換えたり、左上1/4が黒い形状の外字フォントを用いて置き換えたりすることで実現できる。   In S232, as disclosed in Non-Patent Document 1, for example, a process of converting a bit string obtained by encoding text (character string of individual information) to be read with a QR code into a character string is as follows: It can be realized by replacing the symbol part filled in black with the “■” character (character code Shift JIS: 0x81A1) or by using an external character font whose upper left quarter is black.

第5実施形態によれば、送信側において、誤り訂正計算等の符号化演算処理に加えて、部分的なQRコードのシンボル化まで行うので、受信機2は、並べ替え処理等をする必要がなく、受信側の処理負荷をより軽減することができる。   According to the fifth embodiment, on the transmitting side, in addition to encoding operation processing such as error correction calculation, partial QR code symbolization is performed, so the receiver 2 needs to perform rearrangement processing and the like. Therefore, the processing load on the receiving side can be further reduced.

以上、本発明の各実施形態について説明したが、本発明は、これらの実施形態には限定されない。その仕様さえ満足するならば、例えば、QRコード以外の2次元コードであっても用いることができる。また、各実施形態では、個別情報記憶カード5をB-CASカードとして例示したが、本発明はこれに限定されるものではなく、他のICカードを用いてもよい。   As mentioned above, although each embodiment of the present invention was described, the present invention is not limited to these embodiments. As long as the specifications are satisfied, for example, a two-dimensional code other than a QR code can be used. In each embodiment, the individual information storage card 5 is exemplified as a B-CAS card. However, the present invention is not limited to this, and other IC cards may be used.

1,1B 符号化演算支援装置
1C 符号化演算支援装置(中継装置)
11 共通情報入力手段
12 個別情報文字数入力手段
13 記憶手段
14 仮個別情報付加手段
15 2次元コードパラメータ生成手段
16 ヘッダ付加・データ符号化手段
17 誤り訂正符号化パラメータ変換手段
18 誤り訂正符号計算手段
19 出力手段
2 受信機(2次元コード生成装置)
21 個別情報入力手段
22 データ・パラメータ入力手段
23 記憶手段
24 2次元コードパラメータ・余剰ビット抽出手段
25 データ符号化・余剰ビット付加手段
26 誤り訂正符号化パラメータ変換手段
27 誤り訂正符号計算手段
28 2次元コード化手段
29 表示手段
3 デジタル放送送信装置
31 コンテンツ記憶手段
32 放送制御手段
33 放送送出手段
4 受信装置(デジタル放送受信装置)
41 放送受信手段
42 ユーザ操作手段
43 表示手段
44 コンテンツ蓄積手段
45 記憶手段
46 受信制御手段
461 コンテンツ再生制御手段
462 表示制御手段
5 個別情報記憶カード
6 携帯電話機
51 テキスト入力手段
52 2次元コードパラメータ入力手段
61 個別情報入力手段
62 データ・パラメータ入力手段
63 記憶手段
64 2次元コードパラメータ・余剰ビット抽出手段
65 データ符号化・余剰ビット付加手段
66 誤り訂正符号化パラメータ変換手段
67 誤り訂正符号計算手段
68 出力手段
1,1B encoding operation support device 1C encoding operation support device (relay device)
DESCRIPTION OF SYMBOLS 11 Common information input means 12 Individual information character number input means 13 Storage means 14 Temporary individual information addition means 15 Two-dimensional code parameter generation means 16 Header addition / data encoding means 17 Error correction coding parameter conversion means 18 Error correction code calculation means 19 Output means 2 Receiver (2D code generator)
21 Individual information input means 22 Data / parameter input means 23 Storage means 24 Two-dimensional code parameter / surplus bit extraction means 25 Data encoding / surplus bit addition means 26 Error correction coding parameter conversion means 27 Error correction code calculation means 28 Two-dimensional Encoding means 29 Display means 3 Digital broadcast transmission apparatus 31 Content storage means 32 Broadcast control means 33 Broadcast transmission means 4 Receiving apparatus (digital broadcast receiving apparatus)
41 Broadcast receiving means 42 User operating means 43 Display means 44 Content storage means 45 Storage means 46 Reception control means 461 Content playback control means 462 Display control means 5 Individual information storage card 6 Mobile phone 51 Text input means 52 Two-dimensional code parameter input means 61 Individual information input means 62 Data / parameter input means 63 Storage means 64 Two-dimensional code parameter / surplus bit extraction means 65 Data encoding / surplus bit addition means 66 Error correction coding parameter conversion means 67 Error correction code calculation means 68 Output means

Claims (7)

複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成し電子文書表示デバイス上に表示する2次元コード生成装置と、2次元コードパラメータに基づいて前記共通情報および個別情報の文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援装置とを備える2次元コード生成システムにおける前記符号化演算支援装置であって、
前記2次元コードパラメータは、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含み、
前記符号化演算支援装置は、
前記2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段と、
前記共通情報の文字列の文字種のモードを符号化したモード指示子と、前記共通情報および個別情報の文字列の文字数の合計値を符号化した文字数指示子とを繋げてヘッダを生成し、前記文字種のモードで前記共通情報の文字列を符号化し、前記ヘッダに繋げることで第1ビット列データを生成するヘッダ付加・データ符号化手段と、
前記2次元コードパラメータを入力し、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記共通情報の文字列のデータ符号化後のビット数を算出すると共に、前記求めた誤り訂正パラメータから、前記第1ビット列データのビット数以下となるような最大の誤り訂正符号の誤り訂正ブロック数を算出し、各算出結果と前記求めた誤り訂正パラメータとにより誤り訂正計算手順を指定する誤り訂正符号化パラメータ変換手段と、
前記第1ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する誤り訂正符号計算手段と、
前記データ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記算出した誤り訂正符号と、前記2次元コードパラメータとを出力する出力手段と、
を備え
前記2次元コードはQRコード(登録商標)であり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする符号化演算支援装置。
A two-dimensional code including a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information acquired individually by each two-dimensional code generation device is generated and displayed on the electronic document display device. Two-dimensional code generation comprising: a two-dimensional code generation device; and an encoding operation support device that supports an encoding operation that performs encoding and error correction calculation of character strings of the common information and individual information based on two-dimensional code parameters The encoding operation support apparatus in a system,
The two-dimensional code parameter includes information on a type of a two-dimensional code having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string,
The encoding calculation support device includes:
Storage means for storing an error correction coding parameter conversion table created in advance by associating the two-dimensional code parameter with an error correction parameter specifying the number and size of the error correction blocks;
A mode indicator that encodes the mode of the character type of the character string of the common information and a character number indicator that encodes the total number of characters of the character string of the common information and the individual information are connected to generate a header, A header addition / data encoding means for encoding a character string of the common information in a character type mode and generating the first bit string data by connecting to the header;
After inputting the two-dimensional code parameter, referring to the error correction encoding parameter conversion table, obtaining an error correction parameter that matches the input two-dimensional code parameter, and after encoding the character string of the common information And calculating the number of error correction blocks of the maximum error correction code so as to be less than or equal to the number of bits of the first bit string data from the obtained error correction parameter, An error correction coding parameter conversion means for specifying an error correction calculation procedure according to an error correction parameter;
An error correction code for calculating an error correction code by performing an error correction calculation on a data code indicating data corresponding to an error correction block designated by the error correction coding parameter conversion means among the number of bits of the first bit string data A calculation means;
Output that outputs the data code, surplus bits indicating a bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information, the calculated error correction code, and the two-dimensional code parameter Means,
Equipped with a,
The two-dimensional code is a QR code (registered trademark), the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter includes the number of RS blocks and data An encoding operation support apparatus characterized by indicating the number of code words .
前記記憶手段は、
前記共通情報の文字列の文字種モードと、前記2次元コードの型と、前記共通情報文字列の許容最小文字数と、前記個別情報文字列の許容最大文字数との情報を予め関連付けて作成された2次元コードパラメータ変換表をさらに記憶し、
前記共通情報の文字列の文字数と、前記個別情報の文字列の文字数と、前記共通情報の文字列の文字種のモードとの各情報を入力し、前記2次元コードパラメータ変換表を参照し、前記入力された各情報に合致する2次元コードの型を含む2次元コードパラメータを生成する2次元コードパラメータ生成手段をさらに備えることを特徴とする請求項1に記載の符号化演算支援装置。
The storage means
2 created in advance by associating information on the character type mode of the character string of the common information, the type of the two-dimensional code, the allowable minimum number of characters of the common information character string, and the allowable maximum number of characters of the individual information character string. Further storing a dimension code parameter conversion table;
Input each information of the number of characters of the character string of the common information, the number of characters of the character string of the individual information, and the character type mode of the character string of the common information, refer to the two-dimensional code parameter conversion table, The encoding operation support apparatus according to claim 1, further comprising a two-dimensional code parameter generation unit configured to generate a two-dimensional code parameter including a two-dimensional code type that matches each input information.
前記2次元コードパラメータ生成手段は、外部から、前記2次元コードの型の優先順位を取得し、前記入力された各情報に合致する2次元コードの型の候補が複数ある場合には、前記取得した優先順位にしたがって前記2次元コードパラメータを生成することを特徴とする請求項2に記載の符号化演算支援装置。   The two-dimensional code parameter generation means acquires the priority of the two-dimensional code type from the outside, and if there are a plurality of two-dimensional code type candidates that match the input information, the acquisition The encoding operation support apparatus according to claim 2, wherein the two-dimensional code parameter is generated according to the priority order. 外部から前記2次元コードパラメータを入力する2次元コードパラメータ入力手段をさらに備えることを特徴とする請求項1に記載の符号化演算支援装置。   The encoding operation support apparatus according to claim 1, further comprising a two-dimensional code parameter input means for inputting the two-dimensional code parameter from the outside. 複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードの生成過程で行う文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援プログラムであって
複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含む2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段を備えたコンピュータを、
前記共通情報の文字列の文字種のモードを符号化したモード指示子と、前記共通情報および個別情報の文字列の文字数の合計値を符号化した文字数指示子とを繋げてヘッダを生成し、前記文字種のモードで前記共通情報の文字列を符号化し、前記ヘッダに繋げることで第1ビット列データを生成するヘッダ付加・データ符号化手段、
前記2次元コードパラメータを入力し、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記共通情報の文字列のデータ符号化後のビット数を算出すると共に、前記求めた誤り訂正パラメータから、前記第1ビット列データのビット数以下となるような最大の誤り訂正符号の誤り訂正ブロック数を算出し、各算出結果と前記求めた誤り訂正パラメータとにより誤り訂正計算手順を指定する誤り訂正符号化パラメータ変換手段、
前記第1ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する誤り訂正符号計算手段、
前記データ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記算出した誤り訂正符号と、前記2次元コードパラメータとを出力する出力手段、
として機能させるためのプログラムであり、
前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする符号化演算支援プログラム。
Encoding of a character string performed in the process of generating a two-dimensional code including a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information individually acquired by each two-dimensional code generation device; An encoding operation support program for supporting an encoding operation for performing error correction calculation,
A two-dimensional code parameter including information on a type of a two-dimensional code having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string; the number of the error correction blocks; A computer having storage means for storing an error correction coding parameter conversion table created in advance in association with an error correction parameter for specifying a size;
A mode indicator that encodes the mode of the character type of the character string of the common information and a character number indicator that encodes the total number of characters of the character string of the common information and the individual information are connected to generate a header, A header addition / data encoding means for encoding a character string of the common information in a character type mode and generating the first bit string data by connecting to the header;
After inputting the two-dimensional code parameter, referring to the error correction encoding parameter conversion table, obtaining an error correction parameter that matches the input two-dimensional code parameter, and after encoding the character string of the common information And calculating the number of error correction blocks of the maximum error correction code so as to be less than or equal to the number of bits of the first bit string data from the obtained error correction parameter, An error correction coding parameter conversion means for designating an error correction calculation procedure according to an error correction parameter;
An error correction code for calculating an error correction code by performing an error correction calculation on a data code indicating data corresponding to an error correction block designated by the error correction coding parameter conversion means among the number of bits of the first bit string data Calculation means,
Output that outputs the data code, surplus bits indicating a bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information, the calculated error correction code, and the two-dimensional code parameter means,
Is the order of the program to function as,
The two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter indicates the number of RS blocks and the number of data code words A coding operation support program characterized by the above.
複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成し電子文書表示デバイス上に表示する2次元コード生成装置と、2次元コードパラメータに基づいて前記共通情報および個別情報の文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援装置とを備える2次元コード生成システムにおける前記2次元コード生成装置であって、
前記2次元コードパラメータは、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含み、
前記2次元コード生成装置は、
前記2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段と、
前記個別情報を入力する個別情報入力手段と、
前記符号化演算支援装置で生成されたデータおよびパラメータとして、前記共通情報の文字列を符号化してヘッダに繋げた第1ビット列データのビット数のうち、予め指定された誤り訂正ブロックに該当するデータを示すデータ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記データ符号から算出された誤り訂正符号と、前記2次元コードパラメータとを入力するデータ・パラメータ入力手段と、
前記入力された個別情報を符号化し、前記余剰ビットに繋げることで第2ビット列データを生成するデータ符号化・余剰ビット付加手段と、
前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記求めた誤り訂正パラメータにより誤り訂正計算手順を指定する誤り訂正符号化パラメータ変換手段と、
前記第2ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する誤り訂正符号計算手段と、
前記入力された2次元コードパラメータ、データ符号および誤り訂正符号と、前記第2ビット列データに含まれるデータ符号および前記算出された誤り訂正符号とを用いて前記2次元コードを生成する2次元コード化手段と、
を備え
前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする2次元コード生成装置。
A two-dimensional code including a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information acquired individually by each two-dimensional code generation device is generated and displayed on the electronic document display device. Two-dimensional code generation comprising: a two-dimensional code generation device; and an encoding operation support device that supports an encoding operation that performs encoding and error correction calculation of character strings of the common information and individual information based on two-dimensional code parameters The two-dimensional code generation device in a system,
The two-dimensional code parameter includes information on a type of a two-dimensional code having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string,
The two-dimensional code generation device includes:
Storage means for storing an error correction coding parameter conversion table created in advance by associating the two-dimensional code parameter with an error correction parameter specifying the number and size of the error correction blocks;
Individual information input means for inputting the individual information;
The data corresponding to the error correction block designated in advance among the number of bits of the first bit string data obtained by encoding the character string of the common information and connecting it to the header as data and parameters generated by the encoding operation support device A surplus bit indicating a bit string that has not been subjected to error correction calculation among bit strings after encoding of the character string of the common information, an error correction code calculated from the data code, and the two-dimensional code parameter Data and parameter input means for inputting
Data encoding / surplus bit adding means for encoding the input individual information and generating the second bit string data by connecting to the surplus bits;
Error correction coding parameter conversion for obtaining an error correction parameter that matches the input two-dimensional code parameter with reference to the error correction coding parameter conversion table and designating an error correction calculation procedure by the obtained error correction parameter Means,
An error correction code for calculating an error correction code by performing an error correction calculation on a data code indicating data corresponding to an error correction block designated by the error correction coding parameter conversion means among the number of bits of the second bit string data Calculation means;
Two-dimensional coding that generates the two-dimensional code using the input two-dimensional code parameter, data code and error correction code, and the data code and the calculated error correction code included in the second bit string data Means,
Equipped with a,
The two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter indicates the number of RS blocks and the number of data code words A two-dimensional code generator characterized by the above.
複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成する2次元コード生成プログラムであって
複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含む2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段を備えたコンピュータを、
前記個別情報を入力する個別情報入力手段、
入力データおよび入力パラメータとして、前記共通情報の文字列を符号化してヘッダに繋げた第1ビット列データのビット数のうち、予め指定された誤り訂正ブロックに該当するデータを示すデータ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記データ符号から算出された誤り訂正符号と、前記2次元コードパラメータとを入力するデータ・パラメータ入力手段、
前記入力された個別情報を符号化し、前記余剰ビットに繋げることで第2ビット列データを生成するデータ符号化・余剰ビット付加手段、
前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記求めた誤り訂正パラメータにより誤り訂正計算手順を指定する誤り訂正符号化パラメータ変換手段、
前記第2ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する誤り訂正符号計算手段、
前記入力された2次元コードパラメータ、データ符号および誤り訂正符号と、前記第2ビット列データに含まれるデータ符号および前記算出された誤り訂正符号とを用いて前記2次元コードを生成する2次元コード化手段、
として機能させるためのプログラムであり、
前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする2次元コード生成プログラム。
A two- dimensional code generation program for generating a two- dimensional code including a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information individually acquired by each two-dimensional code generation device. ,
A two-dimensional code parameter including information on a type of a two-dimensional code having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string; the number of the error correction blocks; A computer having storage means for storing an error correction coding parameter conversion table created in advance in association with an error correction parameter for specifying a size;
Individual information input means for inputting the individual information,
A data code indicating data corresponding to a previously specified error correction block out of the number of bits of the first bit string data encoded as a character string of the common information and connected to a header as input data and an input parameter, and the common Data parameter input for inputting a surplus bit indicating a bit string that has not been subjected to error correction calculation among bit strings after encoding of an information character string, an error correction code calculated from the data code, and the two-dimensional code parameter means,
Data encoding / surplus bit adding means for encoding the input individual information and generating the second bit string data by connecting to the surplus bits,
Error correction coding parameter conversion for obtaining an error correction parameter that matches the input two-dimensional code parameter with reference to the error correction coding parameter conversion table and designating an error correction calculation procedure by the obtained error correction parameter means,
An error correction code for calculating an error correction code by performing an error correction calculation on a data code indicating data corresponding to an error correction block designated by the error correction coding parameter conversion means among the number of bits of the second bit string data Calculation means,
Two-dimensional coding that generates the two-dimensional code using the input two-dimensional code parameter, data code and error correction code, and the data code and the calculated error correction code included in the second bit string data means,
Is the order of the program to function as,
The two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter indicates the number of RS blocks and the number of data code words A two-dimensional code generation program characterized by the above.
JP2009265947A 2009-11-24 2009-11-24 Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program Expired - Fee Related JP5285582B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009265947A JP5285582B2 (en) 2009-11-24 2009-11-24 Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009265947A JP5285582B2 (en) 2009-11-24 2009-11-24 Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program

Publications (2)

Publication Number Publication Date
JP2011113106A JP2011113106A (en) 2011-06-09
JP5285582B2 true JP5285582B2 (en) 2013-09-11

Family

ID=44235423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009265947A Expired - Fee Related JP5285582B2 (en) 2009-11-24 2009-11-24 Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program

Country Status (1)

Country Link
JP (1) JP5285582B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115271013B (en) * 2021-04-30 2026-02-06 华为技术有限公司 Two-dimensional code encoding and decoding method and electronic equipment
CN113610203B (en) * 2021-06-28 2024-04-19 清华大学 Bit stream coding method and device for quick response matrix code

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4122629B2 (en) * 1998-09-03 2008-07-23 株式会社デンソー 2D code generation method
JP2007074471A (en) * 2005-09-08 2007-03-22 Fuji Xerox Co Ltd Image processor, image processing method and image processing program
JP2007328487A (en) * 2006-06-07 2007-12-20 Fuji Xerox Co Ltd Two dimensional code generation device, two dimensional code generation method, two dimensional code generation program, information embedding device, information embedding method, information embedding program, and two dimensional code
JP2008192111A (en) * 2007-01-31 2008-08-21 Wats Kk Method, system and product for introducing improvement of confidentiality in symbol system with error correcting function

Also Published As

Publication number Publication date
JP2011113106A (en) 2011-06-09

Similar Documents

Publication Publication Date Title
CN110383834B (en) Method and apparatus for signaling asset change information for media content
US8723703B2 (en) Method and apparatus for encoding and decoding structured data
CN104937949A (en) Obtaining a version of an item of content
JP5395774B2 (en) Service provision system
JP5537377B2 (en) Service provision system
JP5281381B2 (en) Two-dimensional code display program, digital broadcast receiver, and program transmission device
JP5285582B2 (en) Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program
JP5123794B2 (en) IDENTIFICATION INFORMATION OUTPUT DEVICE, PROGRAM THEREOF, PROGRAM TRANSMITTING DEVICE, AND IC CARD
JP5171742B2 (en) Electronic document generation apparatus for displaying two-dimensional code, program thereof, and digital broadcast transmission apparatus
JP6920569B2 (en) Broadcast receiver and content protection processing method
JP6425345B2 (en) Program guide providing apparatus, program guide providing method, program, and recording medium
JP2021106423A (en) Broadcast receiving system
JP6920570B2 (en) Broadcast receiver and content protection processing method
JP6855195B2 (en) Broadcast reception system
JP6923718B2 (en) Broadcast receiver
JP6923719B2 (en) Broadcast receiver
JP6951513B2 (en) Content protection processing method
JP6923727B2 (en) Copy control method for broadcast program content
JP6826229B2 (en) Broadcast receiver and content protection processing method
JP6826228B2 (en) Broadcast receiver and content protection processing method
JP2021170693A (en) Receiving device and receiving method
KR20250014795A (en) Method and system for providing iptv service
JP2021078134A (en) Content protection processing method
JP2021101582A (en) Broadcast receiving system
CN120712737A (en) Apparatus and method for encoding, decoding, transmitting and signaling logos and icons in television and radio broadcasts

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120321

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130226

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130328

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130507

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130531

LAPS Cancellation because of no payment of annual fees