JPH0628507A - Bar code input device - Google Patents

Bar code input device

Info

Publication number
JPH0628507A
JPH0628507A JP5053995A JP5399593A JPH0628507A JP H0628507 A JPH0628507 A JP H0628507A JP 5053995 A JP5053995 A JP 5053995A JP 5399593 A JP5399593 A JP 5399593A JP H0628507 A JPH0628507 A JP H0628507A
Authority
JP
Japan
Prior art keywords
character
data
bar code
code
mode processing
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.)
Granted
Application number
JP5053995A
Other languages
Japanese (ja)
Other versions
JP3359688B2 (en
Inventor
Fumiaki Maruno
文明 丸野
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP05399593A priority Critical patent/JP3359688B2/en
Priority to KR1019930007300A priority patent/KR940006050A/en
Publication of JPH0628507A publication Critical patent/JPH0628507A/en
Application granted granted Critical
Publication of JP3359688B2 publication Critical patent/JP3359688B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation

Abstract

PURPOSE:To input KANJI(Chinese character), various marks and even a control code by reading a bar code through the use of existed hardware resources. CONSTITUTION:A bar code scanner 1 reads the bar code 4 and a specified character discrimination means 26 discriminates whether a specified character (space character and the like) which is previously decided exists in a character string constituting code data or not. When the specified character does not exist, the character string of the code which is read is transmitted as it is by a regular mode processing means 27. When the specified character exists, a conversion mode processing means 28 collects the respective characters of the character string following the specified character by a prescribed number, converts them into data of a KANJI code in a prescribed bit unit and transmits them. The transmitted data are inputted to a data processing part 20.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、各種コンピュータ及
びそれを利用した各種情報処理装置(システム)等に、
バーコードの読み取りに基づく各種データを入力させる
バーコード入力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to various computers and various information processing devices (systems) using them.
The present invention relates to a bar code input device for inputting various data based on reading a bar code.

【0002】[0002]

【従来の技術】今日では、各種アプリケーションプログ
ラムによってパーソナルコンピュータ等の各種コンピュ
ータを稼働させることにより、販売管理システム,在庫
管理システム,会計処理システム,文書作成・編集シス
テム,電子ファイルシステム,図形処理システム,生産
管理システム等、種々のシステムが構成されて多用され
ている。
2. Description of the Related Art Today, by operating various computers such as personal computers by various application programs, a sales management system, an inventory management system, an accounting processing system, a document creation / editing system, an electronic file system, a graphic processing system, Various systems such as a production control system have been constructed and are widely used.

【0003】これらのシステムあるいは装置にデータを
入力するには、キーボードを用いるのが最も一般的であ
るが、その他にタブレット,デジタイザ,マウス,タッ
チパネル,ディスクメモリ,ICカード,イメージスキ
ャナ,OCR,音声入力等、種々の入力装置が使用され
ており、近年バーコードを読み取ってそのコードデータ
を入力するバーコードスキャナ(バーコードリーダとも
いう)も多用されるようになっている。
A keyboard is most commonly used to input data to these systems or devices, but in addition, a tablet, digitizer, mouse, touch panel, disk memory, IC card, image scanner, OCR, voice is also used. Various input devices such as input are used, and in recent years, a bar code scanner (also referred to as a bar code reader) for reading a bar code and inputting the code data thereof has been widely used.

【0004】バーコードは、例えば図6,図7に示すよ
うに、太さの異なるバー(ワイドバーとナローバー)及
びスペース(ワイドスペースとナロースペース)の組合
せにより、数字やアルファベット等の文字をバーコード
リーダで解読できるように表現したものであり、流通業
界におけるPOS(Point of Sales:販売時点情報管理
システム)で最も普及しており、近年各種の分野にその
利用が急速に拡大している。
A bar code, for example, as shown in FIGS. 6 and 7, is a combination of a bar (wide bar and narrow bar) and a space (wide space and narrow space) having different thicknesses, which allows characters such as numbers and alphabets to be bar coded. It is expressed so that it can be read by a code reader, and it is most popular in POS (Point of Sales: Point-of-Sales Information Management System) in the distribution industry, and its use is rapidly expanding in various fields in recent years.

【0005】このようなバーコードによる入力方式は、
使用する機器のコストが安く、簡単に速く入力でき、し
かも認識率が極めて高く誤認識が少ないなどの利点があ
り、且つ汎用的な方式である。そして、このバーコード
にも多種類の方式があるが、良く使われているバーコー
ドには、JAN,CODE−39,NW−7,USS−
128,ITFなどがある。
The input method using such a bar code is
This is a general-purpose system, which has the advantages that the cost of the equipment used is low, it can be input easily and quickly, the recognition rate is extremely high, and there are few false recognitions. There are various types of barcodes, but the most commonly used barcodes are JAN, CODE-39, NW-7, USS-
128, ITF, etc.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のバーコードは、一般に数字あるいは英字しか
読み取り可能に表現できないものが多い。漢字もバーコ
ードの読み取りによって入力できるようにした「漢字バ
ーコード」といわれる方式が一時期あったが普及してお
らず、そのバーコードを印刷するためのバーコードプリ
ンタ、及びそのバーコードを読み取れるバーコードスキ
ャナが殆んどない。
However, many of such conventional bar codes are generally capable of expressing only numbers or letters in a readable manner. A method called "Kanji bar code" that allows inputting Kanji by reading the bar code has been available for a while, but it has not been widely used, and a bar code printer for printing the bar code and a bar that can read the bar code. There are few code scanners.

【0007】前述した一般によく使われているバーコー
ドのうちでは、図6に例示するCODE−39が最も多
くの文字を表現でき、0〜9の数字とA〜Zの英字(大
文字)と、−,.,$,/,+,%,及び‘スペース’
の記号が読めるが、英字の小文字や、漢字,平仮名,片
仮名,その他の記号(!,&,*,=,など)は入力で
きないし、JIS−8bit のコントロールコード(DE
L,BS,TABなど)も入力できない。そのため、用
途が限られてしまうという問題があった。
Among the commonly used bar codes described above, CODE-39 illustrated in FIG. 6 can represent the most characters, and the numbers 0 to 9 and the letters A to Z (uppercase letters), − ,. , $, /, +,%, And'space '
You can read the symbols of, but you cannot enter lowercase letters of the alphabet, kanji, hiragana, katakana, and other symbols (!, &, *, =, Etc.), and the JIS-8bit control code (DE
(L, BS, TAB, etc.) cannot be entered. Therefore, there is a problem that the use is limited.

【0008】そこで、これら各種データ処理システムの
入力に必要な文字,記号,コントロールコード等を全て
表現できるようなバーコードを新たに作ることも考えら
れるが、そうするとバーコードの長さが長くなるばかり
か、既存のバーコードプリンタやバーコードスキャナが
使用できなくなるという問題が生ずる。
Therefore, it is conceivable to newly create a bar code capable of expressing all the characters, symbols, control codes, etc. necessary for input of these various data processing systems, but if this is done, the length of the bar code will only become long. Or, there arises a problem that an existing bar code printer or bar code scanner cannot be used.

【0009】この発明は上記のような問題を解決するた
めになされたものであり、既存のバーコードプリンタや
バーコードリーダ等のハードウエア資源をそのまま使用
することができ、しかも漢字や平仮名,片仮名,英字の
小文字,各種の記号及びコントロールコードまで、必要
なデータやコマンド等を全てバーコードの読み取りによ
って入力できるようにすることを目的とする。
The present invention has been made in order to solve the above problems, and existing hardware resources such as bar code printers and bar code readers can be used as they are, and moreover, kanji, hiragana and katakana. , The purpose is to be able to input all necessary data and commands, such as lowercase letters, various symbols and control codes, by reading the barcode.

【0010】[0010]

【課題を解決するための手段】この発明は上記の目的を
達成するため、バーコードを読み取るバーコード読取手
段と、該手段によって読み取ったコードデータを構成す
る文字列中に予め決められた特定の文字があるか否かを
判別する特定文字判別手段と、上記文字列の各文字をそ
のまま送出する通常モード処理手段と、上記特定文字判
別手段によって特定の文字があると判別されたとき、該
特定文字に続く文字列の各文字を所定数ずつまとめて所
定ビット単位のデータに変換して送出する変換モード処
理手段とを備えたバーコード入力装置を提供する。
In order to achieve the above object, the present invention has a bar code reading means for reading a bar code and a predetermined specific character string constituting the code data read by the means. A specific character discriminating means for discriminating whether or not there is a character, a normal mode processing means for transmitting each character of the character string as they are, and a specific character discriminating means for discriminating whether or not a specific character is present. (EN) A bar code input device provided with a conversion mode processing means for collecting a predetermined number of characters of a character string following a character and converting the same into data of a predetermined bit unit and transmitting the data.

【0011】そして、上記特定文字判別手段を、バーコ
ード読取手段によって読み取られたコードデータを構成
する文字列の各文字をその読み取り順にチェックして特
定の文字であるか否かを判別する手段とすると共に、初
期には上記通常モード処理手段を動作させ、上記特定文
字判別手段が特定の文字を判別する毎に上記変換モード
処理手段と通常モード処理手段を交互に切り換えて動作
させる手段を設けるようにするとよい。
The specific character discriminating means is means for discriminating whether or not each character of the character string constituting the code data read by the bar code reading means is checked in the reading order to determine whether or not the character is a specific character. At the same time, the normal mode processing means is operated in the initial stage, and means is provided for alternately switching the conversion mode processing means and the normal mode processing means each time the specific character determining means determines a specific character. It should be set to.

【0012】なお、上記特定の文字として、「ペース文
字」,「%」,「スタート文字」,「ストップ文字」の
いずれかを用いるとよい。
It should be noted that any one of "pace character", "%", "start character", and "stop character" may be used as the specific character.

【0013】また、バーコードのパターンを入力して2
値化データとする手段と、該2値化データの両端部以外
にスタート又はストップパターンがあるか否かを判別す
るスタート/ストップパターン判別手段と、上記2値化
データをそのままデコードして文字列に変換して送出す
る通常モード処理手段と、上記スタート/ストップパタ
ーン判別手段によってスタート又はストップパターンが
あると判別されたとき、該スタート又はストップパター
ンに続く2値化データをデーコードして文字列に変換し
た後所定文字数ずつまとめて所定ビット単位のデータに
変換して送出する変換モード処理手段とを備えたバーコ
ード入力装置も提供する。
In addition, by inputting the barcode pattern, 2
Means for converting the binarized data, start / stop pattern discriminating means for discriminating whether or not there is a start or stop pattern other than both ends of the binarized data, and decoding the binarized data as it is for a character string When it is determined by the start / stop pattern discriminating means that there is a start or stop pattern, the normal mode processing means for converting and transmitting to Also provided is a bar code input device having conversion mode processing means for converting the data into a predetermined number of characters and then converting the data into a predetermined bit unit data for transmission.

【0014】上記バーコード入力装置において、スター
ト/ストップパターン判別手段を、上記2値化データの
始端のスタートパターンと終端のストップパターンを除
いて、1文字分ずつのパターンをその読み取り順にチェ
ックしてスタート又はストップパターンであるか否かを
判別する手段とすると共に、初期には上記通常モード処
理手段を動作させ、上記スタート/ストップパターン判
別手段が上記スタート又はストップパターンを判別する
毎に上記変換モード処理手段と通常モード処理手段を交
互に切り換えて動作させる手段を設けるようにするとよ
い。
In the bar code input device, the start / stop pattern discriminating means checks the pattern of each character in the reading order except for the start pattern and the stop pattern at the end of the binarized data. The conversion mode is used every time when the start / stop pattern determination means determines the start or stop pattern, and the normal mode processing means is operated in the initial stage. It is preferable to provide a means for alternately operating the processing means and the normal mode processing means.

【0015】[0015]

【作用】このように構成したこの発明によるバーコード
入力装置は、バーコードを読み取って、そのコードデー
タを構成する文字列中に予め決められた特定の文字があ
るか否かを判別し、その特定の文字がなければ読み取っ
たコードの文字列を通常モードでそのまま送出し、特定
の文字があったときは変換モードにして、その特定の文
字に続く文字列の各文字を所定数ずつまとめて所定ビッ
ト単位のデータ、すなわち漢字コードや仮名コードある
いは制御コード等に変換して送出する。これらの送出デ
ータを所要のデータ処理装置等に入力させることができ
る。
The bar code input device according to the present invention thus configured reads the bar code, determines whether or not there is a predetermined specific character in the character string forming the code data, and If there is no specific character, the character string of the read code is sent as it is in the normal mode, and if there is a specific character, the conversion mode is set and each character of the character string following the specific character is grouped by a predetermined number. The data is converted into a predetermined bit unit data, that is, a kanji code, a kana code, a control code, or the like, and is transmitted. These transmission data can be input to a required data processing device or the like.

【0016】その場合、バーコード読取手段によって読
み取られたバーコードを構成する文字列の最初に予め決
められた特定の文字があるか否かによって、その後の一
連の読み取りデータについて、すべて通常モードで処理
するか変換モードで処理するかを決めるようにすれば、
その切り換えが簡単である。
In this case, depending on whether or not there is a predetermined specific character at the beginning of the character string forming the bar code read by the bar code reading means, the subsequent series of read data are all in the normal mode. If you decide whether to process or conversion mode,
The switching is easy.

【0017】なお、上記特定の文字として、通常は入力
データの最初に使用されることがない文字、例えば「ス
ペース文字」か「%」、あるいはバーコードを読み取る
際に除かれるバーコードパターンの始端を示すスタート
文字又は終端を示すストップ文字などのいずれかを使用
することができる。
As the above-mentioned specific character, a character that is not used at the beginning of input data, such as "space character" or "%", or the beginning of a bar code pattern that is removed when reading a bar code is usually used. Either a start character indicating a or a stop character indicating an end can be used.

【0018】また、バーコード読取手段によって読み取
られたコードデータを構成する文字列の各文字をその読
み取り順にチェックして、上記特定の文字がある毎に、
変換モードと通常モードを交互に切り換えるようにすれ
ば、一連のバーコードの読み取りによって、通常のバー
コードデータ(数字又は英字)と漢字等の他のデータと
を連続して入力することができる。
Further, each character of the character string forming the code data read by the bar code reading means is checked in the reading order, and every time there is the above-mentioned specific character,
If the conversion mode and the normal mode are alternately switched, the normal bar code data (numeric characters or alphabetic characters) and other data such as Chinese characters can be continuously input by reading a series of bar codes.

【0019】さらに、バーコードのパターンを入力して
2値化データとし、その2値化データの両端部以外にス
タート又はストップパターンがあるか否かを判別して、
スタート又はストップパターンがなければ上記2値化デ
ータをそのままデコードして文字列に変換して送出する
通常モード処理を行ない、スタート又はストップパター
ンがあると、それに続く2値化データをデーコードして
文字列に変換した後所定文字数ずつまとめて所定ビット
単位のデータ(漢字コードや仮名コードあるいは制御コ
ード等)に変換して送出する変換モード処理を行なうこ
ともできる。このようにすれば、バーコードの読み取り
時に通常のバーコードデータ及び漢字等の他のデータを
読み取ることができる。
Further, a bar code pattern is input to be binarized data, and it is judged whether or not there is a start or stop pattern other than both ends of the binarized data,
If there is no start or stop pattern, the above binary data is directly decoded, converted into a character string and sent out in normal mode processing. If there is a start or stop pattern, the binary data following it is decoded. It is also possible to perform a conversion mode process in which after converting to a character string, a predetermined number of characters are collected and converted into data in a predetermined bit unit (kanji code, kana code, control code, etc.) and transmitted. By doing this, it is possible to read normal barcode data and other data such as Chinese characters when reading the barcode.

【0020】その場合、上記2値化データの始端のスタ
ートパターンと終端のストップパターンを除いて、1文
字分ずつのパターンをその読み取り順にチェックしてス
タート又はストップパターンであるか否かを判別し、初
期の上記通常モードから、スタート又はストップパター
ンを判別する毎に上記変換モードと通常モードを交互に
切り換えることにより、一連のバーコードの読み取りに
よって、通常のバーコードデータ(数字又は英字)と漢
字等の他のデータとを連続して読み取ることができる。
In that case, the start pattern and the stop pattern at the end of the binarized data are excluded, and the patterns for each character are checked in the reading order to determine whether it is a start or stop pattern. , From the initial normal mode, by switching the conversion mode and the normal mode alternately each time a start or stop pattern is discriminated, a series of bar code is read, and normal bar code data (numeric or English characters) and kanji And other data can be continuously read.

【0021】[0021]

【実施例】以下、この発明の実施例を図面に基づいて具
体的に説明する。図2はこの発明の一実施例を示すデー
タ処理システムのハードウェア構成を示す斜視図であ
り、ペン型のバーコードスキャナ1と、データ処理装置
として使用されるラップトップ型のパーソナルコンピュ
ータ2とによって構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be specifically described below with reference to the drawings. FIG. 2 is a perspective view showing a hardware configuration of a data processing system showing an embodiment of the present invention. It is a pen type barcode scanner 1 and a laptop type personal computer 2 used as a data processing apparatus. It is configured.

【0022】バーコードスキャナ1はバーコード読取手
段であり、起動スイッチ1aを押すと起動して先端部1
bから光を発し、ラベル等に印刷されたバーコードをこ
の先端部でなぞると、その反射光を受光してそのバーコ
ードが表わすコードデータを読み取るものであって、例
えばCODE−39等のバーコードを読み取れるもので
ある。
The bar code scanner 1 is a bar code reading means and is activated when the start switch 1a is pressed to start the tip portion 1.
When the bar code printed on a label or the like is emitted from b, the reflected light is received to read the code data represented by the bar code. For example, a bar code such as CODE-39. You can read the code.

【0023】パーソナルコンピュータ2は、本体2Aと
蓋対2Bとが開閉可能にヒンジ結合されており、本体2
Aにはキーボード21を備え、蓋体2Bの内面には大型
液晶ディスプレイ(以下単に「ディスプレイ」という)
22を備えている。このパーソナルコンピュータ2の本
体2Bに、RS232Cコネクタ3aを備えたインタフ
ェースコード3によってバーコードリーダ1が接続され
ている。
The personal computer 2 has a main body 2A and a lid pair 2B which are hinged to each other so as to be opened and closed.
A has a keyboard 21 and a large liquid crystal display (hereinafter simply referred to as "display") on the inner surface of the lid 2B.
22 is provided. The bar code reader 1 is connected to the main body 2B of the personal computer 2 by an interface code 3 having an RS232C connector 3a.

【0024】図1はこの実施例の内部構成(ハードと機
能とが混在する)を示すブロック図であり、この図によ
ってこの実施例の構成及び機能をさらに詳しく説明す
る。バーコードスキャナ1は、光・電気信号変換部1
1,2値化回路部12,バーコード解読部13,及びイ
ンタフェース部(以下「I/F」と略称する)14から
なり、従来のバーコード読み取り用のものと同じであ
る。
FIG. 1 is a block diagram showing the internal structure (mixing of hardware and function) of this embodiment. The structure and function of this embodiment will be described in more detail with reference to this drawing. The barcode scanner 1 includes an optical / electrical signal converter 1
It is composed of a binary conversion circuit section 12, a bar code decoding section 13, and an interface section (hereinafter abbreviated as "I / F") 14, which is the same as a conventional bar code reading section.

【0025】光・電気信号変換部11は、読み取るべき
バーコード4に光を照射する発光ダイオードと、その反
射光を受光してその明暗に応じた電気信号に変換するフ
ォトダイオード等の受光素子とを備えている。2値化回
路部12は、光・電気信号変換部11から出力されるア
ナログの電気信号を所定のスレッショルドレベルを設け
て“0”か“1”の信号に2値化するA/D変換部であ
る。
The optical / electrical signal converting section 11 includes a light emitting diode which irradiates the bar code 4 to be read with light, and a light receiving element such as a photodiode which receives the reflected light and converts it into an electric signal according to the brightness. Is equipped with. The binarization circuit unit 12 binarizes an analog electric signal output from the optical / electrical signal conversion unit 11 into a “0” or “1” signal by providing a predetermined threshold level. Is.

【0026】バーコード解読部13は、2値化回路部1
2から出力される2値データを解読してそのコードを読
み取って、I/F14を介してそのコードデータを送出
する。そのデータがインタフェースケーブル3を通して
パーソナルコンピュータ2のI/F25に入力される。
The bar code decoding section 13 is a binarization circuit section 1.
The binary data output from 2 is read, the code is read, and the code data is transmitted via the I / F 14. The data is input to the I / F 25 of the personal computer 2 through the interface cable 3.

【0027】パーソナルコンピュータ2内には前述した
キーボード21及びディスプレイ22を制御すると共
に、各種のデータ処理を行なうデータ処理部20を備え
ており、そこで処理したデータは、図示しないフロッピ
ディスク・ドライブ装置によってフロッピディスクに格
納したり、LANや電話信回線等を利用して他のパーソ
ナルコンピュータやホストコンピュータ等へ送信するこ
ともできるが、I/F23を通してプリンタ5へ出力し
て用紙にプリントアウトさせることもできる。
The personal computer 2 is provided with a data processing section 20 for controlling the keyboard 21 and the display 22 and for performing various data processing, and the data processed therein is processed by a floppy disk drive device (not shown). It can be stored on a floppy disk or sent to another personal computer or host computer using a LAN or telephone line, but can also be output to the printer 5 through the I / F 23 and printed out on paper. it can.

【0028】このデータ処理部20は、実際にはCP
U,ROM,及びRAM等からなるマイクロコンピュー
タによって機能するものであり、各種のアプリケーショ
ンプログラムを使用することにより、会計処理,販売及
び在庫管理処理,文書作成・編集処理,図面作成処理
等、種々のデータ処理を行なうことが可能である。
This data processing unit 20 is actually a CP
It functions by a microcomputer composed of U, ROM, RAM, etc., and by using various application programs, various processing such as accounting processing, sales and inventory management processing, document creation / editing processing, drawing creation processing, etc. Data processing can be performed.

【0029】さらに、このパーソナルコンピュータ2内
には、バーコードスキャナ1と共にこの発明によるバー
コード入力装置を構成するバーコードデータ処理部24
を設けている。それはI/F25から入力されるバーコ
ード読取データに対してこの発明による変換処理等を行
なうためのものであり、特定文字判別手段26と、通常
モード処理手段27及び変換モード処理手段28とによ
って構成されているが、実際にはマイクロコンピュータ
によるプログラム処理機能であり、データ処理部20の
マイクロコンピュータを兼用して実行させることができ
る。
Further, in the personal computer 2, a bar code data processing section 24 which constitutes the bar code input device according to the present invention together with the bar code scanner 1 is provided.
Is provided. It is for performing conversion processing and the like according to the present invention on bar code read data input from the I / F 25, and is composed of a specific character discriminating means 26, a normal mode processing means 27 and a conversion mode processing means 28. However, in reality, it has a program processing function by a microcomputer and can be executed by also using the microcomputer of the data processing unit 20.

【0030】特定文字判別手段26は、読み取られたバ
ーコードデータを構成する文字列中の最初(1文字目)
に予め決められた特定の文字があるか否かを判別する手
段である。通常モード処理手段27は、最初に特定の文
字が無かった場合に機能し、入力されるコードデータ
(文字列)の各文字をそのまま送出する処理を行なう。
変換モード処理手段28は、最初に特定の文字があった
ときに機能し、その特定文字に続く文字列の各文字を所
定数ずつまとめて所定ビット単位のデータに変換して送
出する処理を行なう。
The specific character discriminating means 26 is the first (first character) in the character string constituting the read bar code data.
Is a means for determining whether or not there is a predetermined specific character. The normal mode processing means 27 functions when there is no specific character at the beginning, and performs a process of sending each character of the input code data (character string) as it is.
The conversion mode processing means 28 functions when there is a specific character for the first time, and performs a process of converting a predetermined number of characters of a character string following the specific character into a predetermined bit unit data and transmitting the data. .

【0031】このバーコードデータ処理部24の処理動
作を図3のフローチャートに示す。このルーチンがスタ
ートすると、バーコードスキャナ1からの読取データの
入力を待ち、入力があると1文字目が特定文字が否かを
判断し、特定文字でなければ通常モードの処理を実行し
て、入力されたコードデータの文字列をそのまま送出す
る。1文字目が特定文字であると変換モードの処理を実
行して、特定文字に続く文字列の各文字を所定数ずつま
とめて所定ビット単位のデータに変換して送出する。
The processing operation of the bar code data processing unit 24 is shown in the flowchart of FIG. When this routine starts, it waits for the input of read data from the bar code scanner 1. If there is an input, it judges whether the first character is a specific character, and if it is not a specific character, the normal mode processing is executed, The character string of the input code data is sent as it is. If the first character is a specific character, a conversion mode process is executed, and a predetermined number of each character in the character string following the specific character is collected and converted into data in a predetermined bit unit and transmitted.

【0032】ここで、この実施例によってCODE−3
9のバーコードを用いて漢字を入力する場合の具体例に
ついて説明する。CODE−39のバーコードは、図6
に示すように、始端にスタートコード、終端にストップ
コード(スタートコードもストップコードも同じで
「*」の文字コード)のパターンがあり、その間に0〜
9(10文字)とA〜Z(26文字)と、−,.,$,
/,+,%,及び‘スペース’の記号(7文字)の計4
3文字のパターンを表現でき、バーコードスキャナ1は
この43文字を解読できる。1つの文字(キャラクタ)
は5本のバーとその各バー間の4本のスペースで構成さ
れる。図示の例は「1」と「A」を表現している。
Here, according to this embodiment, CODE-3 is used.
A specific example of inputting Chinese characters using the barcode 9 will be described. The CODE-39 barcode is shown in FIG.
As shown in, there is a pattern of a start code at the beginning and a stop code at the end (the character code of "*", which is the same for both the start code and the stop code).
9 (10 characters) and AZ (26 characters),-,. , $,
/, +,%, And'space 'symbols (7 characters) in total 4
A 3-character pattern can be expressed, and the bar code scanner 1 can decode these 43 characters. One character
Consists of 5 bars and 4 spaces between each bar. The illustrated example expresses "1" and "A".

【0033】一方、漢字はシフトJISコードで2バイ
ト、すなわち16進数で4桁(1桁当り4ビット)で表
現される。そこで、CODE−39の「スペース文字」
をモード切り換え用の特定の文字として、残りの42文
字を42進法の1桁の各数字(10進法の数値に対応さ
せると「0〜41」)に表1に示すように割り当てる。
On the other hand, the Chinese character is represented by a shift JIS code in 2 bytes, that is, in hexadecimal by 4 digits (4 bits per digit). Therefore, "space character" of CODE-39
As a specific character for mode switching, the remaining 42 characters are assigned to each 1-digit 42-digit number (“0 to 41” when corresponding to a decimal number) as shown in Table 1.

【0034】[0034]

【表1】 [Table 1]

【0035】この42進数で3桁あると、10進数にし
て‘74088’まで表わせる。これに対して、前述し
たシフトJISで漢字を表わす16進数で4桁(256
進数で2桁に相当する)のコードは10進数にして‘6
5536’まで表わせる。したがって、42進数で3桁
のほうが少し大きいため、16進数で4桁の漢字を表わ
す2バイトのコードは全て42進数3桁で表わせる。
If there are 3 digits in this 42-ary number, it can be expressed as a decimal number up to '74088'. On the other hand, the hexadecimal number representing the Chinese character in the shift JIS described above is 4 digits (256
(Corresponding to 2 digits in decimal) The code is a decimal number '6
Up to 5536 ' Therefore, since the three-digit binary number is a little larger, the two-byte code representing the four-digit hexadecimal Chinese character can be represented by the three-digit binary number.

【0036】例えば、漢字の「紫」という文字は、シフ
トJISコードでは8E 87 であるが、これを2バイトコードとすると次のようにな
る。 878E16(16進数4桁) これを42進化すると次のようになる。 JSA42(42進数3桁)
[0036] For example, the letters "purple" in Chinese characters, but in the Shift-JIS code is 8E 87, if this is a 2-byte code as follows. 878E 16 (4 digits of hexadecimal number) After 42 evolution, it becomes as follows. JSA 42 (42-digit 3-digit)

【0037】これを下位から順に並べて、先頭にスペー
スコード(漢字であることを示す印)を付けると、次の
ようになる。 これが漢字の「紫」を示すCODE−39の文字を利用
したコードで、これをCODE−39用のバーコードプ
リンタに入力すれば、そのバーコードを印字して、図6
の(a)に示したようなバーコードを簡単に作成するこ
とができる。
These are arranged in order from the bottom, and the space is placed at the beginning.
If you add a code (a mark indicating that it is a kanji),
Like A S J This uses the code of CODE-39 which shows "kanji" "purple"
This is a barcode that you can use with the CODE-39 barcode
If you enter it on the linter, the barcode will be printed and
You can easily create a barcode like the one shown in (a).
You can

【0038】そして、漢字の「紫」を入力したいときに
は、このバーコードをバーコードスキャナ1でスキャン
すると、 と読み取る。先頭にスペースコードがあるので、それに
続く3文字を42進数 JSA42 として認識し、それを16進化して 878E16 とし、文字列にして次のように「紫」のシフトJISコ
ードとなる。8E 87
Then, when inputting the kanji "purple"
Scans this barcode with barcode scanner 1
Then, A S J Read as There is a space code at the beginning, so
Subsequent three characters are in 42 base JSA42 And evolve it 16 times. 878E16 Then, the character string is converted to "purple" by the following JIS code.
It becomes a card.8E 87

【0039】したがって、このシフトJISコードをデ
ータ処理装置20に入力すると、キーボード21からの
シフトJISコード入力による漢字入力ができる機能を
持っていれば、それと同様に漢字「紫」を入力して、文
書や伝票の作成等を行なうことができる。また、その文
字データをプリンタ5へ出力して印字させることもでき
る。
Therefore, if this shift JIS code is input to the data processing device 20, if it has the function of inputting the Chinese character by the shift JIS code input from the keyboard 21, similarly input the Chinese character "purple", Documents and slips can be created. Further, the character data can be output to the printer 5 and printed.

【0040】その他、半角コード(JIS8コード)や
コントロールコード(例えば、1Bヘキサのエスケープ
コード)も16進数で表わされるので、その4桁をまと
めて42進数3桁に変換してCODE−39のバーコー
ドを作成することができる。したがって、そのバーコー
ドを読み取ることによって、半角コードやコントロール
コードも入力することができる。
In addition, since half-width codes (JIS8 codes) and control codes (for example, 1B hexa escape code) are also expressed in hexadecimal numbers, the four digits are collectively converted into 42-digit three-digit numbers and the CODE-39 bar is used. You can write code. Therefore, by reading the bar code, the half-width code and the control code can also be input.

【0041】このように、変換モードの処理によって、
特定の文字に続く文字列の各文字を3文字ずつまとめて
42進数の3桁の数値とみなして、8ビット単位で2バ
イトの16進数のデータに変換して送出するようにすれ
ば、16進数で表現する方式に比べて42進法は圧縮率
が高いので、比較的短いバーコードで多種のデータやコ
ントロールコード等を入力することができる。
As described above, by the processing of the conversion mode,
If each character of the character string following a specific character is grouped into three characters and regarded as a 42-digit 3-digit numerical value, and converted into 2-byte hexadecimal data in 8-bit units and transmitted, Since the 42-ary system has a higher compression rate than the system that expresses it in the base system, it is possible to input various data and control codes with a relatively short bar code.

【0042】そして、42進数と8ビット単位の16進
数との相互変換は容易であり、2バイトの16進数(4
桁)で、既存のJISあるいはシフトJIS等のコード
体系を用いる各種データ処理装置に、漢字,平仮名,片
仮名,英字の小文字,各種記号,及びコントロールコー
ド等(半角はJIS8コード)を混在して入力すること
ができる。それを通常のプリンタでプリントアウトする
こともできる。また、バーコードの読み取りによってコ
マンドを入力することもでき、そうすればキーボード2
1を使わなくても所要の動作を開始させたり停止させた
りすることもできる。
Mutual conversion between a 42-ary number and an 8-bit hexadecimal number is easy, and a 2-byte hexadecimal number (4
(Digits), inputting mixed kanji, hiragana, katakana, lowercase letters, various symbols, control codes, etc. (half-width JIS8 code) to various data processing devices that use existing JIS or shift JIS code systems. can do. You can also print it out on a regular printer. You can also enter commands by scanning the bar code, and the keyboard 2
It is also possible to start or stop the required operation without using 1.

【0043】あるいは、例えば現金出納帳のデータ入力
を行なうような場合には、よく使う「売掛金」「買掛
金」等の漢字列(キーワード)を42進数で表わすCO
DE−39のバーコードを作成しておけば、そのバーコ
ードを読み取るだけで、これらのキーワードを入力する
ことができる。そうすれば、キーボードから入力するよ
りも簡単に、速く且つ正確に入力することができる。
Alternatively, for example, when inputting data for a cash accounting book, CO that represents a frequently used kanji string (keyword) such as “accounts receivable” and “accounts payable” in a 42-ary number system.
If the DE-39 bar code is created, these keywords can be input only by reading the bar code. Then, it is easier, faster, and more accurate to input than to input from the keyboard.

【0044】さらに、外字やイメージデータもコード化
してデータ処理装置に記憶させておけば、そのコードに
対応するCODE−39のバーコードを作成することが
でき、それをバーコードスキャナで読み取ることによっ
て、その外字やイメージデータを入力することもでき
る。
Furthermore, if external characters and image data are coded and stored in the data processing device, a CODE-39 bar code corresponding to the code can be created, and by reading the bar code with a bar code scanner. , You can also input the external characters and image data.

【0045】あるいはまた、音声合成装置に使用する音
素片データや、ミュージックシンセサイザの音高や音
色,テンポ等を決めるデジタルデータ等もバーコード化
して、その読み取りによって簡単にそれらの装置に入力
し、人の声や楽音を発生させるようなことも可能であ
る。
Alternatively, phoneme piece data used in a speech synthesizer, digital data for determining the pitch, tone color, tempo, etc. of a music synthesizer are converted into bar codes, which are easily input to those devices by reading them. It is also possible to generate a human voice or musical sound.

【0046】次に、この発明の他の実施例を図4のフロ
ーチャートによって説明する。この実施例のハード構成
及び基本的な動作は前述の実施例と同じであるから、そ
の説明は省略する。
Next, another embodiment of the present invention will be described with reference to the flowchart of FIG. The hardware structure and basic operation of this embodiment are the same as those of the above-mentioned embodiment, and therefore their explanations are omitted.

【0047】この実施例では、前述した図1におけるバ
ーコードデータ処理部24の機能が若干異なり、特定文
字判別手段26がバーコード読取手段であるバーコード
スキャナ1で読み取られたコードデータを構成する文字
列の各文字をその読み取り順にチェックして、特定の文
字であるか否かを判別し、初期には通常モード処理手段
27を動作させ、特定の文字を判別すると変換モード処
理手段28に動作を切り換え、その状態で再び特定の文
字を判別するとまた通常モード処理手段27に切り換え
る。
In this embodiment, the function of the bar code data processing section 24 in FIG. 1 described above is slightly different, and the specific character discriminating means 26 constitutes the code data read by the bar code scanner 1 which is the bar code reading means. Each character of the character string is checked in the reading order to determine whether or not it is a specific character, and the normal mode processing means 27 is operated in the initial stage, and when the specific character is determined, the conversion mode processing means 28 operates. Is switched, and when a specific character is discriminated again in that state, the mode is switched to the normal mode processing means 27 again.

【0048】このように、特定文字判別手段26が特定
の文字を判別する毎に変換モード処理手段28と通常モ
ード処理手段27を交互に切り換えて動作させるように
して、一連のバーコードによって、通常のCODE−3
9のコード入力と漢字等の変換処理によるデータ入力と
を混在して行なえるようにするものである。
In this way, every time the specific character discriminating means 26 discriminates a specific character, the conversion mode processing means 28 and the normal mode processing means 27 are alternately switched and operated, and a series of bar codes are used for normal operation. CODE-3
The code input of 9 and the data input by the conversion processing of Chinese characters and the like can be performed in a mixed manner.

【0049】この動作を図4のフローチャートに沿って
説明すると、バーコードスキャナ1からの読取データの
入力を待ち、入力があるとモードを通常モードにして、
入力されたデータを一時記憶する。そして、まず1文字
目が特定の文字か否かを判断し、特定の文字でなければ
次に現在のモードは変換モードか否かを判断する。最初
は通常モードなので通常モードの処理(入力された読取
データをそのまま1文字ずつ送出する)を行なう。
This operation will be described with reference to the flow chart of FIG. 4. Waiting for the input of the read data from the bar code scanner 1, and if there is an input, the mode is set to the normal mode,
The input data is temporarily stored. Then, first, it is determined whether the first character is a specific character, and if it is not the specific character, then it is determined whether the current mode is the conversion mode. At first, since it is the normal mode, the processing of the normal mode (the input read data is sent as it is character by character) is performed.

【0050】1文字目が特定の文字であると、モードを
切り換える処理を行なうが、最初は通常モードになって
いるので変換モードに切り換える。そして次の文字に移
行して再び特定の文字か否かを判断し、特定の文字でな
ければ現在のモードは変換モードか否かを判断し、変換
モードであれば変換モードの処理(例えば3文字ずつま
とめて42進数の3桁の数値とみなして8ビット単位で
2バイトの16進数のデータに変換して送出する)を行
なうが、所定文字数(3文字)になるまでは保留してお
いて、連続して所定文字数になったら変換する。
When the first character is a specific character, the process of switching the mode is performed, but since the normal mode is initially set, the conversion mode is switched. Then, it shifts to the next character and judges again whether it is a specific character. If it is not a specific character, it judges whether the current mode is the conversion mode. If it is the conversion mode, the conversion mode processing (for example, 3 Characters are grouped together and treated as a 4-digit 3-digit number and converted into 2-byte hexadecimal data in 8-bit units and sent out. However, it is reserved until the predetermined number of characters (3 characters) is reached. When the number of characters reaches a predetermined number in succession, it is converted.

【0051】このような処理を一時記憶した文字を全部
チェックするまで繰り返して、処理を終える。したがっ
て、特定の文字の判別によって一旦変換モードの処理を
行なっても、その後に再び特定の文字を判別すると通常
モードに切り換わる。それによって、数字やアルファベ
ットの大文字等の通常のバーコード入力と、漢字等の変
換データの入力とを、一連のバーコードによって混在し
て行なうことが可能になる。
The above processing is repeated until all the temporarily stored characters are checked, and the processing is completed. Therefore, even if the conversion mode processing is once performed by determining the specific character, the normal mode is switched when the specific character is determined again. As a result, it becomes possible to perform normal bar code input such as numbers and capital letters of the alphabet and conversion data input such as Chinese characters by a series of bar codes.

【0052】この実施例においても、CODE−39の
バーコードを用いる場合には、前述の実施例の場合と同
様にモード切り換え用の特定文字としてスペース文字を
使用することができる。また、これらの各実施例におい
て42進数の「41」にスペース文字を割り当て、モー
ド切り換え用の特定文字として「%」を使用するように
してもよい。
Also in this embodiment, when the CODE-39 bar code is used, a space character can be used as a specific character for mode switching, as in the case of the above-described embodiments. Further, in each of these embodiments, a space character may be assigned to the binary number "41" and "%" may be used as the specific character for mode switching.

【0053】この特定文字には、CODE−39のバー
コードで表現できる43文字のうちの42進数を表す文
字として使用しない1文字を割り当てればよいが、「ス
ペース文字」又は「%」は、通常バーコード入力するデ
ータの最初の文字に使われることはないので、これを先
頭に付けることによって漢字等の変換すべきデータであ
ることを表わすことができる。
To this specific character, one character that is not used as a character representing a 42-digit number out of 43 characters that can be represented by a CODE-39 bar code may be assigned, but the "space character" or "%" is Normally, it is not used as the first character of the data to be input as a barcode, so by adding this at the beginning it can be indicated that it is the data to be converted such as kanji.

【0054】あるいは、図6に示したバーコードCOD
E−39の両端部のスタート/ストップコードである
「*」の2値化パターン、あるいは図7に示したバーコ
ードNW−7の両端部のスタート/ストップコードであ
る「a」の2値化パターンは、図1に示したバーコード
スキャナ1のバーコード解読部13で除去されるので、
バーコード処理部24へは入力されない。そこで、この
スタート/ストップコードをモードを切り換えるための
特定文字として、バーコードの両端部以外の部分に挿入
して使用するようにしてもよい。
Alternatively, the bar code COD shown in FIG.
Binary pattern of "*" which is the start / stop code at both ends of E-39, or binarization of "a" which is the start / stop code at both ends of the bar code NW-7 shown in FIG. Since the pattern is removed by the barcode decoding unit 13 of the barcode scanner 1 shown in FIG. 1,
It is not input to the barcode processing unit 24. Therefore, the start / stop code may be used by inserting it into a portion other than both ends of the barcode as a specific character for switching modes.

【0055】なお、この発明を実施するために使用する
バーコードは、CODE−39に限らずNW−7,US
S−128,ITFなど各種のバーコードを使用するこ
とも可能である。NW−7及びUSS−128を使用す
る場合は、変換モードにおいてバーコードの1文字を1
6進数として、4文字(4桁)を16ビットの漢字1文
字(シフトJIS)に、2文字(2桁)を8ビットの半
角コードに対応させることができる。ITFを使用する
場合は5桁の10進数として、漢字コードに対応させ
る。
The bar code used for carrying out the present invention is not limited to CODE-39, but NW-7, US.
It is also possible to use various barcodes such as S-128 and ITF. When using NW-7 and USS-128, one character of the barcode is 1 in conversion mode.
As a hexadecimal number, 4 characters (4 digits) can correspond to 1 16-bit Chinese character (shift JIS), and 2 characters (2 digits) can correspond to an 8-bit half-width code. When ITF is used, it is a 5-digit decimal number and corresponds to the Kanji code.

【0056】また、使用するバーコードは、バーコード
プリンタを用いて作成するが、図1に示したパーソナル
コンピュータ2内に、シフトJISの漢字コード等の入
力したい16進数4桁のコードデータを、例えばCOD
E−39で使用できる文字による42進数3桁のデータ
に変換する機能(アプリケーションソフト)を組み込ん
でおき、キーボード21から16進数4桁のコードデー
タを入力すると、それを42進数3桁のデータに変換し
て、ディスプレイ22に表示したり、接続したバーコー
ドプリンタによってCODE−39等のバーコードを印
字したりできるようにしてもよい。
The bar code to be used is created by using a bar code printer, and the 4-digit hexadecimal code data to be input such as the shift JIS kanji code is stored in the personal computer 2 shown in FIG. For example COD
E-39 has a function (application software) for converting to data in 42-digit 3-digit data in characters, and if you input 4-digit hexadecimal code data from the keyboard 21, it will be converted to 42-digit 3-digit data. It may be converted so that it can be displayed on the display 22 or a barcode such as CODE-39 can be printed by a connected barcode printer.

【0057】ところで、これまで説明した実施例では、
図1に示したようにバーコードデータ処理部24をデー
タ処理装置2内に設けたが、これをバーコードスキャナ
1内に設けるようにしてもよい。そうすれば、データ処
理装置等のデータを入力する各種装置側は、従来のまま
でよいことになる。バーコードスキャナ内に設ける場合
も、その中のマイクロコンピュータによる処理プログラ
ムが追加され、変換データ記憶用のメモリ容量の若干の
増加が必要になる程度で、ハードウェアは殆んどそのま
ま使用できる。
By the way, in the embodiment described so far,
Although the barcode data processing unit 24 is provided in the data processing device 2 as shown in FIG. 1, it may be provided in the barcode scanner 1. Then, various devices such as the data processing device for inputting the data can be left as they are. Even when it is provided in the bar code scanner, the processing program by the microcomputer therein is added, and it is necessary to slightly increase the memory capacity for storing the converted data, and the hardware can be used almost as it is.

【0058】すなわち、図1に示したバーコードデータ
処理部24に相当する機能を、バーコードスキャナ1の
バーコード解読部13に持たせるようにし、特定文字判
別手段26に代えて、バーコードパターンの2値化デー
タの両端部以外にスタート又はストップパターンがある
か否かを判別するスタート/ストップパターン判別手段
を設ける。
That is, the bar code decoding section 13 of the bar code scanner 1 is provided with a function corresponding to the bar code data processing section 24 shown in FIG. There is provided start / stop pattern discriminating means for discriminating whether or not there is a start or stop pattern other than both ends of the binary data.

【0059】そして、通常モード処理手段27は、2値
化回路部12からの2値化データをそのままデコードし
て文字列に変換して送出し、変換モード処理手段28
は、スタート/ストップパターン判別手段によってスタ
ート又はストップパターンがあると判別されたとき、そ
れに続く2値化データをデーコードして文字列に変換し
た後、所定文字数(例えば3文字)ずつまとめて所定ビ
ット単位のデータに変換して送出するようにする。
Then, the normal mode processing means 27 decodes the binarized data from the binarizing circuit section 12 as it is, converts it into a character string and sends it out, and the conversion mode processing means 28.
When the start / stop pattern discriminating unit discriminates that there is a start or stop pattern, the binarized data that follows is data-coded and converted into a character string, and then a predetermined number of characters (for example, three characters) are collectively determined. Convert it to bit unit data and send it.

【0060】あるいは、上記スタート/ストップパター
ン判別手段が、2値化回路部12からの2値化データの
始端のスタートパターンと終端のストップパターンを除
いて、1文字分ずつのパターンをその読み取り順にチェ
ックしてスタート又はストップパターンであるか否かを
判別するようにし、初期には通常モード処理手段27を
動作させ、スタート/ストップパターン判別手段によっ
てスタート又はストップパターンが判別される毎に、通
常モード処理手段27から変換モード処理手段28へ、
変換モード処理手段28から通常モード処理手段へと交
互に切り換えて動作させるようにすることもできる。
Alternatively, the start / stop pattern discriminating means excludes the start pattern and the stop pattern at the end of the binarized data from the binarization circuit unit 12 in the order of reading characters one by one. A check is made to determine whether the pattern is a start or stop pattern. The normal mode processing means 27 is initially operated, and the normal mode is set every time the start or stop pattern is determined by the start / stop pattern determination means. From the processing means 27 to the conversion mode processing means 28,
The conversion mode processing means 28 may be alternately switched to the normal mode processing means to operate.

【0061】その場合のバーコードスキャナの動作例
を、図15のフローチャートによって説明する。バーコ
ード入力を開始すると、先ず図1の光・電気信号変換部
11によってバーコードパターンをその前後を含めて明
暗に応じた電気信号に変換して入力し、2値化回路部1
2によって、左右のマージンを確認してバーコードパタ
ーン部を抽出して2値化し、一時記憶する。そして、こ
のバーコードパターン・データに対してバコード解読部
13で次の処理を行なう。
An example of the operation of the bar code scanner in that case will be described with reference to the flowchart of FIG. When the barcode input is started, first, the optical / electrical signal converter 11 shown in FIG.
2, the left and right margins are confirmed, the barcode pattern portion is extracted, binarized, and temporarily stored. Then, the barcode decoding unit 13 performs the following processing on the barcode pattern data.

【0062】両端部のスタート/ストップパターン(C
ODE−39の場合は図6に示した「*」を表わすコー
ド、NW−7の場合は図7に示した「a」を表わすコー
ド)と左右のマージンとの関係によって、読み取り方向
を確認した後、両端部のスタート/ストップパターンを
はずす。
Start / stop patterns (C
In the case of ODE-39, the reading direction was confirmed by the relationship between the left and right margins and the code representing "*" shown in FIG. 6 and the code representing "a" shown in FIG. 7 in NW-7). After that, remove the start / stop patterns at both ends.

【0063】そして、モードを通常モードにして、順次
1文字分のパターンデータを読み込み、スタート/スト
ップパターンか否かを判別する。その結果、スタート/
ストップパターンでなければ、そのパターンデータをデ
コードして文字を解読し、変換モードか否かを判別し
て、変換モードでなければ通常モードの処理(1文字ず
つ送出する)を行なう。
Then, the mode is set to the normal mode, the pattern data for one character is sequentially read, and it is determined whether the pattern is a start / stop pattern. As a result, start /
If it is not a stop pattern, the pattern data is decoded to decipher the character, and it is determined whether or not it is the conversion mode. If it is not the conversion mode, the normal mode processing (one character at a time) is performed.

【0064】変換モードであれば、変換モードの処理
(所定文字数になるまで待って所定ビット単位の漢字コ
ード等のデータに変換して送出する)を行なう。スター
ト/ストップパターンか否かの判別でスタート/ストッ
プパターンであると、その時のモードが通常モードであ
れば変換モードに、変換モードであれば通常モードに、
モードを切り換える。
In the case of the conversion mode, the conversion mode processing (waiting for a predetermined number of characters to be converted into data such as a Kanji code in a predetermined bit unit and transmitting the data) is performed. If the start / stop pattern is determined by determining whether it is a start / stop pattern, if the mode at that time is the normal mode, it is the conversion mode, and if it is the conversion mode, it is the normal mode.
Switch the mode.

【0065】このようにして、次のパターンなくなるま
で順次1文字分ずつのパターンデータを読み込んで処理
し、次のパターンが無くなったら処理を終了する。この
ようにすれば、図4のフローチャートによって説明した
前述の実施例と同等の効果が得られる。
In this way, the pattern data for each character is sequentially read and processed until the next pattern disappears, and the process ends when the next pattern disappears. By doing so, the same effect as that of the above-described embodiment described with reference to the flowchart of FIG. 4 can be obtained.

【0066】[0066]

【発明の効果】以上説明してきたように、この発明によ
るバーコード入力装置は、既存のバーコード体系を利用
するため、現在使用されているバーコードプリンタ及び
バーコードスキャナ(バーコードリーダ)のハードウェ
アを何ら改造することなく、特定文字判別とデータ変換
のソフトウェアを追加するだけで容易に実施できる。
As described above, since the bar code input device according to the present invention utilizes the existing bar code system, the hardware of the bar code printer and bar code scanner (bar code reader) currently used is used. This can be easily performed by adding specific character discrimination and data conversion software without modifying the ware at all.

【0067】そして、バーコードデータとシフトJIS
の漢字コード,JIS8の半角コード,コントロールコ
ードあるいはコマンド等、さらには外字やイメージデー
タ,音声データ等をも入力することができ、それらの各
種データが混在してもよい。したがって極めて汎用性が
高く、入力操作が容易で速く確実なバーコードによる入
力を広範な分野に適用できるようになる。
Then, the bar code data and the shift JIS
Kanji code, JIS8 half-width code, control code, command, etc., as well as external characters, image data, voice data, etc. can be input, and these various data may be mixed. Therefore, it becomes possible to apply the barcode input, which is extremely versatile, easy, fast, and reliable, to a wide range of fields.

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

【図1】図2に示すこの発明の一実施例の内部構成を示
すブロック図である。
FIG. 1 is a block diagram showing an internal configuration of an embodiment of the present invention shown in FIG.

【図2】この発明の一実施例を示すデータ処理システム
のハードウェア構成を示す外観斜視図である。
FIG. 2 is an external perspective view showing the hardware configuration of the data processing system showing the embodiment of the present invention.

【図3】図2におけるバーコードデータ処理部24の動
作を示すフローチャートである。
FIG. 3 is a flowchart showing an operation of a barcode data processing section 24 in FIG.

【図4】この発明の他の実施例の図3と同様なバーコー
ドデータ処理部の動作を示すフローチャートである。
FIG. 4 is a flowchart showing an operation of a barcode data processing unit similar to that of FIG. 3 of another embodiment of the present invention.

【図5】この発明のさらに他の実施例のバーコードスキ
ャナの動作を示すフローチャートである。
FIG. 5 is a flowchart showing the operation of a bar code scanner according to another embodiment of the present invention.

【図6】CODE−39のバーコードの例を示す説明図
である。
FIG. 6 is an explanatory diagram showing an example of a CODE-39 barcode.

【図7】NW−7のバーコードの例を示す説明図であ
る。
FIG. 7 is an explanatory diagram showing an example of a NW-7 barcode.

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

1 バーコードスキャナ 2 パーソナルコンピュータ 3 インタフェースコード 4 CODE−39のバーコード 5 プリンタ 11 光・電気信号変換部 12 2値化回路部 13 バーコード解読部 14,23,25 インタフェース部 20 データ処理部 21 キーボード 22 大型液晶ディスプレイ 24 バーコードデータ処理部 26 特定文字判別手段 27 通常モード処理手段 28 変換モード処理手段 1 Bar Code Scanner 2 Personal Computer 3 Interface Code 4 CODE-39 Bar Code 5 Printer 11 Optical / Electrical Signal Converter 12 Binarization Circuit 13 Bar Code Decoder 14, 23, 25 Interface 20 Data Processor 21 Keyboard 22 Large Liquid Crystal Display 24 Bar Code Data Processing Unit 26 Specific Character Discriminating Means 27 Normal Mode Processing Means 28 Conversion Mode Processing Means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 バーコードを読み取るバーコード読取手
段と、該手段によって読み取られたコードデータを構成
する文字列中に予め決められた特定の文字があるか否か
を判別する特定文字判別手段と、前記文字列の各文字を
そのまま送出する通常モード処理手段と、前記特定文字
判別手段によって前記特定の文字があると判別されたと
き、該特定文字に続く文字列の各文字を所定数ずつまと
めて所定ビット単位のデータに変換して送出する変換モ
ード処理手段とを備えたことを特徴とするバーコード入
力装置。
1. A bar code reading means for reading a bar code, and a specific character discriminating means for discriminating whether or not a predetermined specific character is present in a character string constituting the code data read by the means. , A normal mode processing means for transmitting each character of the character string as it is, and when the specific character determining means determines that the specific character exists, collects each character of the character string following the specific character by a predetermined number. And a conversion mode processing means for converting the data into a predetermined bit unit and transmitting the data.
【請求項2】 請求項1記載のバーコード入力装置にお
いて、前記特定文字判別手段を、前記バーコード読取手
段によって読み取られたコードデータを構成する文字列
の各文字をその読み取り順にチェックして前記特定の文
字であるか否かを判別する手段とすると共に、初期には
前記通常モード処理手段を動作させ、前記特定文字判別
手段が前記特定の文字を判別する毎に前記変換モード処
理手段と前記通常モード処理手段を交互に切り換えて動
作させる手段を設けたことを特徴とするバーコード入力
装置。
2. The bar code input device according to claim 1, wherein the specific character discriminating means checks each character of a character string constituting the code data read by the bar code reading means in the reading order. In addition to the means for determining whether the character is a specific character, the normal mode processing means is initially operated, and the conversion mode processing means and the conversion mode processing means are operated every time the specific character determining means determines the specific character. A bar code input device comprising means for alternately switching and operating the normal mode processing means.
【請求項3】 請求項1乃至3のいずれか一項に記載の
バーコード入力装置において、前記特定の文字がスペー
ス文字,%,スタート文字,ストップ文字のいずれかで
あることを特徴とするバーコード入力装置。
3. The bar code input device according to claim 1, wherein the specific character is a space character, a%, a start character, or a stop character. Code input device.
【請求項4】 バーコードのパターンを入力して2値化
データとする手段と、 該2値化データの両端部以外にスタート又はストップパ
ターンがあるか否かを判別するスタート/ストップパタ
ーン判別手段と、 前記2値化データをそのままデコードして文字列に変換
して送出する通常モード処理手段と、 前記スタート/ストップパターン判別手段によって前記
スタート又はストップパターンがあると判別されたと
き、該スタート又はストップパターンに続く2値化デー
タをデーコードして文字列に変換した後所定文字数ずつ
まとめて所定ビット単位のデータに変換して送出する変
換モード処理手段とを備えたことを特徴とするバーコー
ド入力装置。
4. A means for inputting a bar code pattern into binarized data, and a start / stop pattern discriminating means for discriminating whether or not there is a start or stop pattern other than both ends of the binarized data. A normal mode processing means for decoding the binarized data as it is, converting it into a character string and transmitting the character string; and, when the start / stop pattern judging means judges that there is the start or stop pattern, A barcode including a conversion mode processing means for data-converting the binary data following the stop pattern into a character string, and then converting the binary data into a predetermined bit unit data and transmitting the data. Input device.
【請求項5】 請求項4記載のバーコード入力装置にお
いて、前記スタート/ストップパターン判別手段を、前
記2値化データの始端のスタートパターンと終端のスト
ップパターンを除いて、1文字分ずつのパターンをその
読み取り順にチェックして前記スタート又はストップパ
ターンであるか否かを判別する手段とすると共に、初期
には前記通常モード処理手段を動作させ、前記スタート
/ストップパターン判別手段が前記スタート又はストッ
プパターンを判別する毎に前記変換モード処理手段と前
記通常モード処理手段を交互に切り換えて動作させる手
段を設けたことを特徴とするバーコード入力装置。
5. The bar code input device according to claim 4, wherein the start / stop pattern determining means excludes a start pattern and a stop pattern at a start end of the binarized data and is a pattern for each character. As a means for discriminating whether or not it is the start or stop pattern by checking the reading order, and in the initial stage, the normal mode processing means is operated, and the start / stop pattern discrimination means makes the start or stop pattern. A bar code input device, characterized in that a means for alternately switching the conversion mode processing means and the normal mode processing means to operate each time is determined.
JP05399593A 1992-05-15 1993-03-15 Barcode input device Expired - Lifetime JP3359688B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP05399593A JP3359688B2 (en) 1992-05-15 1993-03-15 Barcode input device
KR1019930007300A KR940006050A (en) 1992-05-15 1993-04-29 Bar-code input device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP4-123971 1992-05-15
JP12397192 1992-05-15
JP05399593A JP3359688B2 (en) 1992-05-15 1993-03-15 Barcode input device

Publications (2)

Publication Number Publication Date
JPH0628507A true JPH0628507A (en) 1994-02-04
JP3359688B2 JP3359688B2 (en) 2002-12-24

Family

ID=26394732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05399593A Expired - Lifetime JP3359688B2 (en) 1992-05-15 1993-03-15 Barcode input device

Country Status (2)

Country Link
JP (1) JP3359688B2 (en)
KR (1) KR940006050A (en)

Also Published As

Publication number Publication date
JP3359688B2 (en) 2002-12-24
KR940006050A (en) 1994-03-23

Similar Documents

Publication Publication Date Title
US5557092A (en) Apparatus and method for 16-bit and numeric data collection using bar code symbologies
US6758403B1 (en) System for editing data collection device message data
US8282006B2 (en) Imaging device operative for image processing
US6279828B1 (en) One dimensional bar coding for multibyte character
US20050248471A1 (en) Method and apparatus for displaying a time-varying code to a handheld terminal, and method and apparatus for approval authentication processing by using the same
JPH09504633A (en) Apparatus and method for 16-bit and numerical data collection using bar code symbology
JP3359688B2 (en) Barcode input device
KR100526202B1 (en) Bar code of representing Korean character and decoding device and method thereof
JPH10175385A (en) Printed matter with inspection character
JP2002245470A (en) Language specifying device, translating device, and language specifying method
JPH06223221A (en) Character recognizing device
JP2001307013A (en) Bar code reader
JP2002216073A (en) Device for reading readable character or the like and method for the same
JPH0644298A (en) Electronic dictionary
JPH09212334A (en) Text most likely decoding method and most likely decoding device, and data communication network device
JPH07334610A (en) Optical character reader
JPH0644216A (en) Input device
JP3310063B2 (en) Document processing device
JP2639314B2 (en) Character recognition method
JPH0749919A (en) Bar-code reader
JPH081640B2 (en) Small electronic dictionary
JPH01253079A (en) Character recognizing device
JPH06131092A (en) Input device
KR20030090254A (en) Completed hangle bar code system and method thereof
Cahill et al. Characters, Strings and Things

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071011

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081011

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081011

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091011

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101011

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111011

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121011

Year of fee payment: 10