JPH0241697Y2 - - Google Patents

Info

Publication number
JPH0241697Y2
JPH0241697Y2 JP5194385U JP5194385U JPH0241697Y2 JP H0241697 Y2 JPH0241697 Y2 JP H0241697Y2 JP 5194385 U JP5194385 U JP 5194385U JP 5194385 U JP5194385 U JP 5194385U JP H0241697 Y2 JPH0241697 Y2 JP H0241697Y2
Authority
JP
Japan
Prior art keywords
barcode
character
code
type
demodulation
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
Application number
JP5194385U
Other languages
Japanese (ja)
Other versions
JPS61168452U (en
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 filed Critical
Priority to JP5194385U priority Critical patent/JPH0241697Y2/ja
Publication of JPS61168452U publication Critical patent/JPS61168452U/ja
Application granted granted Critical
Publication of JPH0241697Y2 publication Critical patent/JPH0241697Y2/ja
Expired legal-status Critical Current

Links

Description

【考案の詳細な説明】 〔産業上の利用分野〕 本考案は、商品の包装などに印刷されるバーコ
ードの種別を自動的に判別する装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a device that automatically determines the type of barcode printed on the packaging of a product.

〔従来の技術〕[Conventional technology]

スペース(白棒)とバー(黒棒)の組合せで文
字等を表現するバーコードには種々の形式のもの
がある。4種類の幅を持つスペースとバーを各2
本用い、これらを白黒白黒の順で並べ、全体で7
モジユール(7単位幅)としてこれで1文字と、
その13文字で1商品種別を表現するJANコード
は広く使用されているバーコードであるが、この
ような多値(幅の種類が2より多い)レベルバー
コードの他に長短2種の幅を持つスペースとバー
を所要数組合せて1文字を表現し、その複数文字
で物品種別を示す2値レベルバーコードもある。
また2値レベルバーコードにも、黒棒4本使用の
もの、5本使用のもの、あるいは3本使用のもの
など種々ある。
There are various types of barcodes that express characters etc. using a combination of spaces (white bars) and bars (black bars). 2 spaces and 2 bars with 4 different widths
Using this book, arrange these in black and white order, totaling 7
This is one character as a module (7 units wide),
The JAN code, which expresses one product type with 13 characters, is a widely used barcode, but in addition to this multivalued (more than 2 width types) level barcode, there are also two types of widths, long and short. There is also a binary level barcode that expresses one character by combining the required number of spaces and bars, and indicates the product type using multiple characters.
There are also various types of binary level barcodes, such as those using four black bars, those using five black bars, and those using three black bars.

かゝるスペースとバーの組合せからなる文字
(キヤラクタ)の複数個で表現されるバーコード
はその前後にスタートコードとストツプコードが
付され、これらによりコード始、終端が表示され
る。第3図はバーコードのデータ形式を示し、第
1〜第nキヤラクタからなるデータ部の前後に、
スタートコードSTとストツプコードSPが付され
ている。スタートコードとストツプコードの形式
(スペースとバーの組合せ)も各バーコードで異
なる。バーコードの読み取りは周知のように読取
器(ペン)で光電的に行なわれる。
A barcode expressed by a plurality of characters consisting of a combination of spaces and bars has a start code and a stop code attached before and after it, and these indicate the start and end of the code. FIG. 3 shows the data format of the barcode, and the data section consisting of the first to nth characters is preceded and followed by
A start code ST and stop code SP are attached. The format of the start code and stop code (combination of spaces and bars) also differs for each barcode. Barcodes are read photoelectrically with a reader (pen), as is well known.

第5図はハンドヘルド型端末装置TEにバーコ
ードペンPEN(一般にはバーコードリーダ)を接
続してなるバーコード読取りシステムの構成図
で、その主要機能を第4図に示す。ペンPENは
バーコードの光電変換出力を増幅した後矩形波に
整形して端末装置TEに受渡す。端末装置TEでは
ペンPENからの矩形波入力のエツジ(立上り立
下り)を検出し、そのエツジでカウンタを起動し
て各スペースとバーの時間幅をカウントし、その
タイマ値をメモリ(第5図のRAM)に格納す
る。そして、このタイマ値に基づき復調動作を行
つてバーコードの各文字を解読し、解読したコー
ドデータ(文字コードで表わした文字群)を出力
する。この部分はCPUのソフト処理で行なわれ
る。
FIG. 5 is a block diagram of a barcode reading system in which a barcode pen PEN (generally a barcode reader) is connected to a handheld terminal device TE, and its main functions are shown in FIG. The pen PEN amplifies the photoelectric conversion output of the barcode, shapes it into a rectangular wave, and delivers it to the terminal device TE. The terminal device TE detects the edges (rising and falling) of the rectangular wave input from the pen PEN, starts a counter at the edges, counts the time width of each space and bar, and stores the timer value in memory (Figure 5). RAM). Then, a demodulation operation is performed based on this timer value to decode each character of the barcode, and decoded code data (a group of characters represented by a character code) is output. This part is performed by software processing on the CPU.

ところで、前述のように2値レベルバーコード
でも1キヤラクタに含まれるバーの本数等によつ
てNW−7コード、各標準コード、3out of 9コ
ード、Industrial 2 of 5コード等種々ある。
従つて、バーコードリーダが接続される端末TE
では、どの種別のバーコードであるかが指定され
ないと復調することができない。
By the way, as mentioned above, there are various types of binary level barcodes depending on the number of bars included in one character, such as NW-7 code, each standard code, 3 out of 9 code, Industrial 2 of 5 code, etc.
Therefore, the terminal TE to which the barcode reader is connected
In this case, it is not possible to demodulate a barcode unless the type of barcode is specified.

〔考案が解決しようとする問題点〕[Problem that the invention attempts to solve]

このため、従来はオペレータが手動スイツチ
(キー)でバーコード種別を指示する(切換える)
ようにしたものが多いが、これでは読取りの都度
オペレータがバーコード種別を判断しなければな
らず、甚だ不便である。バーコードにはその種別
は表示されていないのが普通で、またバーコード
を目視しただけで種別を判断するのは困難であ
る。バーコードの第1キヤラクタに先行して付加
されているスタートコードSTはバーコード種別
毎に異なるから、これをバーコードリーダで読取
つて端末TEで自動的に判別することも考えられ
る。しかしこの方法ではスタートコードにゴミが
付着していたりして正当な解析ができなかつた
り、逆に異なるバーコード種別に偶然解析され以
後の処理で行き詰つたり、という問題がある。本
考案はかゝる点を改善しようとするものである。
For this reason, conventionally the operator used a manual switch (key) to instruct (switch) the barcode type.
However, this method requires the operator to judge the type of barcode each time it is read, which is extremely inconvenient. The type is usually not displayed on the barcode, and it is difficult to determine the type just by looking at the barcode. Since the start code ST added before the first character of the barcode differs depending on the type of barcode, it may be possible to read this with a barcode reader and automatically discriminate it with the terminal TE. However, with this method, there are problems such as dust attached to the start code, which prevents proper analysis, or conversely, when a different barcode type is accidentally analyzed, resulting in a dead end in subsequent processing. The present invention attempts to improve these points.

〔問題点を解決するための手段〕[Means for solving problems]

本考案は、バーをスペースの組合せでキヤラク
タを表わし、かゝるキヤラクタの複数個の配列の
前後にやはりバーとスペースの組合せからなるス
タートコードおよびストツプコードを配置してな
るバーコードの種別自動判別装置において今回読
取つたバーコードのスタートコードと第1キヤラ
クタの光電変換出力を前回使用した解析プログラ
ムで復調する手段と、該復調手段でスタートコー
ドを復調できない場合および第1キヤラクタを復
調できない場合は種別の異なる他のバーコードに
対する解析プログラムに変更する手段と、該スタ
ートコードと第1キヤラクタを復調できる解析プ
ログラムが定まつたときは以後その解析プログラ
ムで該バーコードの第2キヤラクタ以下を復調す
る手段と、該バーコードのストツプコードまでの
復調に成功したとき該解析プログラムの種別を次
回使用のために記憶しておく手段とを備えること
を特徴とするものである。
The present invention is an automatic barcode type discrimination device in which a character is represented by a combination of bars and spaces, and a start code and a stop code, which are also a combination of bars and spaces, are arranged before and after the plurality of arrays of such characters. means to demodulate the start code of the barcode read this time and the photoelectric conversion output of the first character using the analysis program used last time, and if the start code cannot be demodulated or the first character cannot be demodulated by the demodulation means, the type means for changing to an analysis program for another different barcode, and means for demodulating the second character and subsequent characters of the barcode with the analysis program when an analysis program capable of demodulating the start code and the first character is determined. , and means for storing the type of the analysis program for next use when demodulation of the barcode up to the stop code is successful.

〔作用〕[Effect]

前回のバーコード読取りに使用した解析プログ
ラムの種別従つて前回解読に成功したバーコード
の種別をレジスタに記憶しておき、今回読取つた
バーコードの解析には先ず該記憶されている種別
の解析プログラムを使用してみると、一般的には
同じ種別のバーコードを続けて読取るケースが多
いので甚だ有効である。
The type of the analysis program used to read the previous barcode and the type of barcode successfully decoded last time are stored in a register, and in order to analyze the barcode read this time, the stored type of analysis program is first used. When used, it is extremely effective as barcodes of the same type are generally read consecutively in many cases.

この試験的な解析(復調)対象はスタートコー
ドのみならずそれに続く第1キヤラクタも含め
る。そして、これらが復調できた場合には順次第
2キヤラクタ、第3キヤラクタ,……と復調して
最後にレジスタ内のバーコード種別を更新する
(この場合は変化しない)。これに対し、第キヤラ
クタまでの復調に失敗したら解析プログラムの種
別を変えて再試行する。この結果新たな解析プロ
グラムで第1キヤラクタまでの解読に成功した
ら、そのプログラムで第2キヤラクタ以下を続け
て復調する。そして最後まで復調できたときはレ
ジスタ内のバーコード種別を次回用として保存す
る。以下、図示の実施例を参照しながらこれを詳
細に説明する。
This experimental analysis (demodulation) target includes not only the start code but also the first character following it. If these can be demodulated, the second character, third character, etc. are demodulated in order, and finally the barcode type in the register is updated (in this case, it does not change). On the other hand, if the demodulation up to the th character fails, the type of analysis program is changed and the attempt is made again. As a result, if the new analysis program succeeds in decoding up to the first character, the program continues to demodulate the second character and subsequent characters. When demodulation is completed to the end, the barcode type in the register is saved for next time use. This will be explained in detail below with reference to illustrated embodiments.

〔実施例〕〔Example〕

第1図は本考案の一実施例を示すブロツク図
で、1は各スペースおよびバーの幅を示すタイマ
値T01,T02,……を格納するメモリ、2はその
ポインタ制御回路、3は復調回路、4は判別コー
ドレジスタである。この判断コードレジスタ4に
は前回使用した解析プログラムの種別従つてバー
コード種別が格納さていて、今回読取つたバーコ
ードの復調には該種別の解析プログラムが優先的
に使用される。図面ではバーコード種類別解析プ
ログラムをバーコード1復調回路31,バーコー
ド2復調回路32,……として示してあるが、こ
れらは実際は第5図のRAMに格納されるCPUの
処理プログラムルーチンである。これら復調回路
31,32,……のうちレジスタ4で指示された
ものの復調出力は判定回路33で判定され、OK
(良)であればそのコードデータがバツフア34
に書込まれる。これに対しNG(否)であればレ
ジスタ4の内容が次のコード種別に更新される。
レジスタ4にセツトする次のコード種別は、最初
がバーコード1復調回路であれば次はバーコード
2復調回路と、単純にインクリメントする方式で
よく、そしてこの場合は復調回路の配列順をよく
現われるバーコード種別順としておくとよい。
FIG. 1 is a block diagram showing an embodiment of the present invention, in which 1 is a memory for storing timer values T 01 , T 02 , etc. indicating the width of each space and bar, 2 is a pointer control circuit thereof, and 3 is a Demodulation circuit 4 is a discrimination code register. This judgment code register 4 stores the type of analysis program used last time and the type of barcode, and the analysis program of this type is preferentially used for demodulating the barcode read this time. In the drawing, barcode type analysis programs are shown as barcode 1 demodulation circuit 31, barcode 2 demodulation circuit 32, etc., but these are actually processing program routines of the CPU stored in the RAM shown in FIG. . Among these demodulation circuits 31, 32, ..., the demodulated output of the one specified by the register 4 is judged by the judgment circuit 33, and the
(Good), the code data is 34
written to. On the other hand, if NG (no), the contents of register 4 are updated to the next code type.
The next code type to be set in register 4 may be a simple incrementing method, such as if the first is the barcode 1 demodulator, then the barcode 2 demodulator, and in this case, the order of arrangement of the demodulators is determined by the order in which the demodulators are arranged. It is best to sort them in order of barcode type.

判別コードレジスタ4で指定されたバーコード
復調回路が復調対象のバーコードに適合したもの
か否かの判断はスタートコード及び第1キヤラク
タを復調してみることにより行なわれる。これら
が復調できれば当該解析プログラムは適合してい
る、であり、復調できなければ復調要領を修正し
それでも復調できなければ解析プログラム不適合
であり、判別コードレジスタ4の値を変える。復
調は続いて第2、第3、……キヤラクタへ進行す
るが、第3キヤラクタ以後のNGに対してはエラ
ー処理へ移行し、そして最終キヤラクタまで復調
できたらストツプコードも復調し、これも復調で
きれば(詳しくは次のスペースも検出できれば)
当該バーコードの復調完了とする。第2図はこれ
らの処理を示すフローチヤートである。スタート
コードまたは第1キヤラクタが復調できなかつた
ときタイマ値をシフトするが、これはいわば同期
合せであつて、第1図のタイマ値格納メモリ1の
ポインタをずらし、例えばタイマT01〜T09を読
出してこれらをスタートコードのタイマ値群とし
ていたものを、1つずらしてT02〜T10を読出し、
これらをスタートコードのタイマ値群とするもの
である。本例では4回シフトしてもまだ復調でき
ないと、当該解析プログラムは不適合としてレジ
スタ4の値をインクリメントし、タイマ値を元に
戻し、再び最初から復調してみる。どの解析プロ
グラムに切換えても復調できないときは被読取バ
ーコードは本装置不適合のものであり、エラーと
する。バーコード種別をレジスタ4に次回復調用
に記憶するには、最終キヤラクタに続くストツプ
コードとその後の白マージンが検出され、読取対
象のバーコードは正規のバーコードであると判定
されたことを条件とする。スタートコードは続く
キヤラクタコードの始点を示す同期ビツトの役も
果しているので第2図のようにスタートコードが
全種類切換えても復調できなければエラーとする
のがよい。但しこの場合スタートコードにゴミが
ついていると復調できず、エラー、になつてしま
うが、このときはバーコードリーダでもう一度読
取り処理するとよい。
Whether or not the barcode demodulation circuit designated by the discrimination code register 4 is suitable for the barcode to be demodulated is determined by demodulating the start code and the first character. If these can be demodulated, the analysis program is compatible; if they cannot be demodulated, the demodulation procedure is corrected, and if it still cannot be demodulated, the analysis program is not compatible, and the value of the discrimination code register 4 is changed. Demodulation then proceeds to the second, third, ... character, but if there is an error after the third character, the process moves to error processing, and if the final character is demodulated, the stop code is also demodulated. (For details, if you can also detect the following spaces)
The demodulation of the barcode is completed. FIG. 2 is a flowchart showing these processes. When the start code or the first character cannot be demodulated, the timer value is shifted, but this is synchronization, so to speak, by shifting the pointer of the timer value storage memory 1 in FIG . Read out these as the start code timer value group, shift them by one and read out T 02 to T 10 .
These are used as a start code timer value group. In this example, if demodulation is still not possible after shifting four times, the analysis program determines that it is non-conforming, increments the value in register 4, restores the timer value, and attempts to demodulate from the beginning again. If the barcode cannot be demodulated no matter which analysis program is switched to, the barcode to be read is not compatible with this device, and an error is assumed. To store the barcode type in register 4 for the next recovery, the condition is that the stop code following the last character and the white margin after it are detected, and the barcode to be read is determined to be a regular barcode. do. The start code also serves as a synchronization bit indicating the start point of the following character code, so if demodulation is not possible even after all types of start codes are switched as shown in FIG. 2, it is best to treat it as an error. However, in this case, if there is dust on the start code, demodulation will not be possible and an error will occur.In this case, it is better to read and process the start code again using a barcode reader.

〔考案の効果〕[Effect of idea]

以上述べたように本考案によれば、オペレータ
がバーコード種別を判断する必要がなく読取対象
に適合した解析プログラムを自動的に選択するこ
とができ、また前回使用した解析プログラムを次
回読取りに優先的に使用するので、そして一般に
は同じ種類のバーコードが続いて読取対象となる
ことが多いので、処理時間が短くて済む利点があ
る。さらに、バーコード種別の判定対象をスター
トコードだけに限らずキヤラクタ部分にも拡げた
ので、スタートコードにゴミが付着していること
による解析ミス、プログラム選択誤りがなく、装
置の信頼性及び全体としての処理速度の向上を図
ることができる。
As described above, according to the present invention, the operator does not need to judge the type of barcode and can automatically select an analysis program that is suitable for the object to be read, and the analysis program used last time is given priority for next reading. Since barcodes of the same type are often read successively, the processing time is advantageously shortened. Furthermore, since the barcode type determination target is not limited to the start code but also includes the character part, there are no analysis errors or program selection errors due to dust attached to the start code, improving the reliability of the device as a whole. The processing speed can be improved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図に本考案の一実施例を示すブロツク図、
第2図はそのフローチヤート、第3図は2値レベ
ルバーコードのコード形式を示す説明図、第4図
はその復調方法の概略説明図、第5図はバーコー
ド読取りシステムの構成図である。 図中、PENはバーコードペン、TEはハンドヘ
ルド型端末装置、1はタイマ値格納メモリ、3は
復調回路、4は判別コードレジスタ、31,3
2,……はコード種別の異なるバーコード復調回
路、33は判定回路である。
FIG. 1 is a block diagram showing an embodiment of the present invention.
Fig. 2 is a flowchart, Fig. 3 is an explanatory diagram showing the code format of the binary level barcode, Fig. 4 is a schematic explanatory diagram of the demodulation method, and Fig. 5 is a block diagram of the barcode reading system. . In the figure, PEN is a barcode pen, TE is a handheld terminal device, 1 is a timer value storage memory, 3 is a demodulation circuit, 4 is a discrimination code register, 31, 3
2, . . . are bar code demodulation circuits for different code types, and 33 is a determination circuit.

Claims (1)

【実用新案登録請求の範囲】 複数種の符号化方式のいずれかによつて表わさ
れたバーコードの種別自動判別装置において 今回読取つたバーコードのスタートコードと第
1キヤラクタの読取り出力を前回復調時に使用し
た解析手段で復調する手段と、該復調手段でスタ
ートコードを復調できない場合および第1キヤラ
クタを復調できない場合は種別の異なる他のバー
コードに対する解析手段に変更する手段と、該ス
タートコードと第1キヤラクタを復調できる解析
プログラムが定まつたときは以後その解析プログ
ラムで該バーコードの第2キヤラクタ以下を復調
する手段と、該バーコードのストツプコードまで
の復調に成功したとき該解析プログラムの種別を
次回使用のために記憶しておく手段とを備えるこ
とを特徴とするバーコード種別自動判別装置。
[Claims for Utility Model Registration] Pre-recovery adjustment of the start code and the reading output of the first character of the barcode read this time in an automatic type discrimination device for barcodes expressed by one of multiple types of encoding methods. means for demodulating with the analysis means used at the time; means for changing to an analysis means for another barcode of a different type if the demodulation means cannot demodulate the start code or the first character; When an analysis program capable of demodulating the first character is determined, a method for demodulating the second character and subsequent characters of the barcode using that analysis program, and when the demodulation of the barcode up to the stop code is successful, the type of the analysis program is determined. and means for storing the information for next use.
JP5194385U 1985-04-08 1985-04-08 Expired JPH0241697Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5194385U JPH0241697Y2 (en) 1985-04-08 1985-04-08

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5194385U JPH0241697Y2 (en) 1985-04-08 1985-04-08

Publications (2)

Publication Number Publication Date
JPS61168452U JPS61168452U (en) 1986-10-18
JPH0241697Y2 true JPH0241697Y2 (en) 1990-11-07

Family

ID=30571445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5194385U Expired JPH0241697Y2 (en) 1985-04-08 1985-04-08

Country Status (1)

Country Link
JP (1) JPH0241697Y2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668775B2 (en) * 1986-10-06 1994-08-31 松下電器産業株式会社 Bar code reader
JP4636105B2 (en) * 2008-03-25 2011-02-23 株式会社デンソーウェーブ Bar code reading method, bar code reading apparatus, and computer program
JP4636104B2 (en) * 2008-03-25 2011-02-23 株式会社デンソーウェーブ Bar code reading method, bar code reading apparatus, and computer program

Also Published As

Publication number Publication date
JPS61168452U (en) 1986-10-18

Similar Documents

Publication Publication Date Title
US5128527A (en) Apparatus for reading a bar code
US6267296B1 (en) Two-dimensional code and method of optically reading the same
US4667089A (en) Bar code discriminating apparatus for bar code reading
EP0672994A1 (en) Method and apparatus for reading an optically two-dimensional code
WO1988002521A1 (en) Method and apparatus for bar code data autodiscrimination
JPS61101880A (en) Bar code reading method and its devices
US5036182A (en) Bar code reading and decoding apparatus
US20020074405A1 (en) Method of reading barcode and barcode reading system
EP0464713B1 (en) Bar-code reading apparatus
JPH0241697Y2 (en)
CA1306296C (en) Image processing apparatus
US4743744A (en) Bar code reader
US6651887B1 (en) Reading and interpreting barcodes using low resolution line scan cameras
JPH11312215A (en) Two-dimensional code decoder and storage medium thereof
EP0514041A2 (en) Digital data decoder using error information for selecting one of a plurality of transmissions
JP2572148B2 (en) Barcode demodulator
JP2757654B2 (en) Barcode demodulator and barcode demodulation method
JPH0950481A (en) Two-dimensional code reader
JP2603702B2 (en) Multi-barcode reader with automatic preprocessing identification function
JPH0544714B2 (en)
JPH05165996A (en) Bar code reader
JPH0950480A (en) Two-dimensional code reader
JPH02281468A (en) Card information reader
JPH0786903B2 (en) Bar code demodulation method
JP3018702B2 (en) Barcode demodulator