JP5525978B2 - Communication setting program and recording medium between optical information reader and computer - Google Patents
Communication setting program and recording medium between optical information reader and computer Download PDFInfo
- Publication number
- JP5525978B2 JP5525978B2 JP2010210250A JP2010210250A JP5525978B2 JP 5525978 B2 JP5525978 B2 JP 5525978B2 JP 2010210250 A JP2010210250 A JP 2010210250A JP 2010210250 A JP2010210250 A JP 2010210250A JP 5525978 B2 JP5525978 B2 JP 5525978B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- optical information
- temporary
- computer
- information reading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Description
本発明は、バーコードやQRコードなどの光学情報を読み取るための光学情報読取装置とこれに接続されるコンピュータとがイーサネット通信するための通信設定に関する。 The present invention relates to a communication setting for Ethernet communication between an optical information reading device for reading optical information such as a barcode and a QR code and a computer connected thereto.
トレーサビリティ(traceability)が普及した今日、工場や物流拠点などに光学情報読取装置を設置して、製品や産品に付与されたバーコードなどの光学情報又は光学符号の解読が行われている。この種の光学情報読取装置は「バーコードリーダ」又は「コードリーダ」と呼ばれている。 Now that traceability has become widespread, optical information readers are installed in factories, logistics bases, etc., and optical information such as barcodes attached to products and products or optical codes are decoded. This type of optical information reader is called a “bar code reader” or “code reader”.
コードリーダはレーザ光、可視光、赤外光を光学情報に照射し、その反射光を光学読取素子(撮像素子)で取り込む。そして、この取り込んだ撮像画像から光学情報に記録されている情報の解析が行われる(特許文献1)。コードリーダは、特許文献2にも記載のとおり、PLC(プログラマブル・ロジック・コントローラ)などと接続して運用されるが、PLCはCC−Link、DeviceNetなどのフィールドネットワークを介して外部機器と接続される。
The code reader irradiates optical information with laser light, visible light, and infrared light, and captures the reflected light with an optical reading element (imaging element). Then, the information recorded in the optical information is analyzed from the captured image taken in (Patent Document 1). As described in
ところで、コードリーダの各種の設定は、コードリーダに接続したパーソナルコンピュータを使って行われる(特許文献2)。具体的には、コードリーダの撮像及びデコードで使用するパラメータは、コードリーダが撮像した画像をパーソナルコンピュータで確認しながら設定されるのが通常である。また、コードリーダで読取エラーが発生したときに、その時の撮像画像をパーソナルコンピュータに取り込んで原因の解析などが行われる。 By the way, various settings of the code reader are performed using a personal computer connected to the code reader (Patent Document 2). Specifically, parameters used for code reader imaging and decoding are normally set while confirming an image captured by the code reader with a personal computer. When a reading error occurs in the code reader, the captured image at that time is taken into a personal computer and the cause analysis is performed.
コードリーダが撮像した画像をパーソナルコンピュータでリアルタイムに確認するには、画像データの送受信に適したイーサーネット(登録商標)を使うのが効果的であるが、そのためには、パーソナルコンピュータとコードリーダとの間の通信を確立するIPアドレスをコードリーダ、パーソナルコンピュータに設定する必要がある。 In order to check the image captured by the code reader in real time on a personal computer, it is effective to use Ethernet (registered trademark) suitable for transmission / reception of image data. For this purpose, a personal computer, a code reader, It is necessary to set an IP address for establishing communication between the code reader and the personal computer.
図7を参照して問題点を指摘すると、共通のフィールドネットワーク1に属する3つのコードリーダ2A、2B、2Cの運用で使用するIPアドレスが第1〜第3のコードリーダ2A、2B、2Cの夫々に設定されている。図7に見られる「192.168.100.1」は第1コードリーダ2AのIPアドレスであり、「192.168.100.2」は第2コードリーダ2BのIPアドレスであり、「192.168.100.3」は第3コードリーダ2CのIPアドレスである。これに対して、第1コードリーダ2Aとパーソナルコンピュータ3との間でイーサネット通信をするには、パーソナルコンピュータ3と第1コードリーダ2Aとが共通のIPネットワークに属している必要があり且つパーソナルコンピュータ3もしくは第1コードリーダ2AのIPアドレスを適切に設定する必要がある。
When the problem is pointed out with reference to FIG. 7, the IP addresses used in the operation of the three
しかし、第1コードリーダ2Aには、フィールドネットワーク1での運用上、既にIPアドレス「192.168.100.1」が設定されており、このIPアドレスの設定を変えることはフィールドネットワーク1での運用上の理由から好ましくない。また、パーソナルコンピュータ3のIPアドレスを第1コードリーダ2Aに合わせることは、作業者が、この第1コードリーダ2Aに設定されているIPアドレスを調べる必要があり煩雑である。
However, the IP address “192.168.100.1” has already been set in the
本発明の目的は、作業者が光学情報読取装置のIPアドレスを調べる必要無しに且つこの光学情報読取装置に接続したパーソナルコンピュータのIPアドレスを変更する必要無しにパーソナルコンピュータと光学情報読取装置との間でイーサネット通信を確立することのできる通信設定プログラム及び記録媒体を提供することにある。 An object of the present invention is to eliminate the need for an operator to check the IP address of an optical information reader and to change the IP address of a personal computer connected to the optical information reader. Another object is to provide a communication setting program and a recording medium that can establish Ethernet communication between them.
上記の技術的課題は、本発明によれば、基本的には、
フィールドネットワークでの運用のためにIPアドレスが割り当てられ且つワークの光学符合を撮像して該撮像画像から光学符合を読み取ってデコード処理を実行する光学情報読取装置と、該光学情報読取装置に接続されて該光学情報読取装置から取得した前記撮像画像を確認しながら各種の設定を実行するためのコンピュータとの間でイーサネット通信を実行するために前記光学情報読取装置に一時的な仮IPアドレスを設定するための通信設定プログラムであって、
作業者の操作を受けて前記光学情報読取装置から前記コンピュータにリクエスト送信を発信するリクエスト送信手段と、
該リクエスト送信を前記光学情報読取装置から受け取った前記コンピュータが前記光学情報読取装置に前記仮IPアドレスを送信する仮IPアドレス送信手段と、
該仮IPアドレスを受け取った前記光学情報読取装置が、前記フィールドネットワークの運用で割り付けられている元のIPアドレスを前記仮IPアドレスと置換させると共に、前記元のIPアドレスを前記光学情報読取装置のメモリに保存させる仮IPアドレス設定手段とを前記光学情報読取装置と前記コンピュータに実行させるための通信設定プログラムを提供することにより達成される。
According to the present invention, the above technical problem is basically as follows:
An optical information reading device that is assigned an IP address for operation in a field network, images an optical code of a work, reads the optical code from the captured image, and executes a decoding process, and is connected to the optical information reading device A temporary temporary IP address is set in the optical information reader to execute Ethernet communication with a computer for executing various settings while checking the captured image acquired from the optical information reader. A communication setting program for
A request transmitting means for transmitting a request transmission from the optical information reading device to the computer in response to an operation by an operator;
A temporary IP address transmitting means for the computer which has received the request transmitted from the optical information reading apparatus transmits the temporary IP address to the optical information reading device,
The optical information reading device that has received the temporary IP address replaces the original IP address assigned in the operation of the field network with the temporary IP address, and converts the original IP address to the optical information reading device. This is achieved by providing a communication setting program for causing the optical information reading apparatus and the computer to execute temporary IP address setting means to be stored in a memory.
本発明によれば、作業者が光学情報読取装置のIPアドレスを調べる必要無しに且つこの光学情報読取装置に接続したパーソナルコンピュータのIPアドレスを変更する必要無しにパーソナルコンピュータと光学情報読取装置との間でイーサネット通信を確立することができる。 According to the present invention, there is no need for the operator to check the IP address of the optical information reader, and there is no need to change the IP address of the personal computer connected to the optical information reader. Ethernet communication can be established between them.
以下に、添付の図面に基づいて本発明の好ましい実施例を説明する。 Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
図1、図7を参照して、第1コードリーダ2A及びこれに接続されたパーソナルコンピュータ3には、実施例の通信設定プログラムがインストールされており、この通信設定プログラムによって第1コードリーダ2Aに仮IPアドレスが割り付けられ、この仮IPアドレスによりパーソナルコンピュータ3と第1コードリーダ2Aとはイーサネット(登録商標)を介した通信が可能な状態になる。
Referring to FIGS. 1 and 7, the
通信設定プログラムによる仮IPアドレスの割り付けに先立って、第1コードリーダ2Aの不揮発メモリ5に次の(1)、(2)の情報を書き込む記憶領域が用意される(例えば図3参照)。
(1)第1コードリーダ2Aに仮IPアドレスを割り当てる前のIPアドレス(「元のIPアドレス」);
(2)IPアドレス復元フラグ。
なお、上記(1)及び(2)の仮IPアドレス、IPアドレス復元フラグの意義は後の説明から明らかになろう。
Prior to the allocation of the temporary IP address by the communication setting program, a storage area for writing the following information (1) and (2) is prepared in the
(1) IP address before assigning a temporary IP address to the
(2) IP address restoration flag.
The significance of the temporary IP address and the IP address restoration flag in the above (1) and (2) will become clear from the following description.
上記(1)の情報は、前述の図7の例であればフィールドネットワーク1の運用で設定されているIPアドレス「192.168.100.1」が「元のIPアドレス」に相当する。上記(2)のIP復元フラグは「1」又は「0」であるが、以下の説明では「ON」、「OFF」と記述することにする。
In the information of (1) above, in the example of FIG. 7 described above, the IP address “192.168.100.1” set in the operation of the
また、パーソナルコンピュータ3は通信設定プログラムによりBOOTPを使って当該パーソナルコンピュータが所属するネットワーク内で未使用なIPアドレスをパーソナルコンピュータ3に割り当てる。パーソナルコンピュータ3に割り当てたIPアドレスは、ここでは「10.10.14.200」であったと仮定する。
The
以上の準備が整ったら、パーソナルコンピュータ3及び第1コードリーダ2Aに組み込まれた通信設定プログラムによって、第1コードリーダ2Aに仮IPアドレスの割り付け処理を実行することができる。図2のフローチャートを参照して、その具体例を説明する。先ず、ステップS100で、第1コードリーダ2Aの図外のTESTキーを4秒以上長押しすると、第1コードリーダ2Aからパーソナルコンピュータ3にBOOTPリクエストパケットが送信される(図1の上の図)。このリクエストを受けたパーソナルコンピュータ3は、当該パーソナルコンピュータ3が所属するネットワーク内の全IPアドレスに対して順番にPINGコマンドを送信し、レスポンスの無かったIPアドレスは未使用であると判断して、このIPアドレス又は作業者がパーソナルコンピュータ3に入力したIPアドレスをBOOTPリプライパケットに設定して第1コードリーダ2Aに送信する(図1の下の図)。ここでは第1コードリーダ2Aに供給されたIPアドレスは「10.10.14.1」である。このアドレス「10.10.14.1」は、第1コードリーダ2Aに一時的に設定されるIPアドレスであり、これを「仮IPアドレス」と呼ぶ。
When the above preparation is completed, a temporary IP address can be assigned to the
第1コードリーダ2Aは上記BOOTPリプライを受信すると、ステップS102からステップS103に進んで、元のIPアドレス「192.168.100.1」を不揮発メモリ5に保存すると共に上記IPアドレス復元フラグをOFFにリセットする(S104)。そして、上記BOOTPリプライパケットに含まれている仮IPアドレス「10.10.14.1」が第1コードリーダ2AのIPアドレスとして設定される(S105、図3)。これにより、第1コードリーダ2Aとパーソナルコンピュータ3はイーサネットを介して通信できる状態になり、第1コードリーダ2Aが撮像した画像をパーソナルコンピュータ3でリアルタイムに確認しながら第1コードリーダ2Aの撮像条件などのパラメータを設定することができる。
Upon receiving the BOOTP reply, the
パーソナルコンピュータ3を使った第1コードリーダ2Aに関連した作業が終わると、パーソナルコンピュータ3は作業者の操作に従って第1コードリーダ2AにIPアドレス復元コマンドを送信する(図4)。図2のフローチャートに戻って、第1コードリーダ2AがIPアドレス復元コマンドを受信すると、ステップS106からステップS107に進んで、上記IPアドレス復元フラグがONにセットされる。換言すると、第1コードリーダ2Aは、パーソナルコンピュータ3からIPアドレス復元コマンドを受け取るまでは、ステップS107からS108に進んでIPアドレス復元フラグはOFF状態が継続される。
When the work related to the
図5はIPアドレス復元処理のフローチャートである。第1コードリーダ2Aの電源がONされる(S200)と、IPアドレス復元フラグがON状態であるかの判別が行われ(S201)、YES(ON状態)であれば、ステップS202に進んで第1コードリーダ2AのIPアドレスの復元処理が実行される。図6を参照して、この復元処理を説明すると、第1コードリーダ2AのIPアドレスは消去され、不揮発メモリ5に保存されている元のIPアドレス「192.168.100.1」が第1コードリーダ2AのIPアドレスとして再設定される。また、不揮発メモリ5のIPアドレス復元フラグはOFFにリセットされる(S203)。これにより第1コードリーダ2Aは、図7で説明したフィールドネットワーク1での運用に戻ることができ、それ以降は、第1コードリーダ2Aの電源が再投入されても、図5のステップS204で通常の起動処理が実行されるためIPアドレスはフィールドネットワークの「192.168.100.1」のままであり、IPアドレスを書き換える処理は行われない。
FIG. 5 is a flowchart of the IP address restoration process. When the power of the
如上の説明から分かるように、実施例によれば、作業者に手間をかけることなく且つ第1コードリーダ2Aの運用に支障を及ぼすことなく第1コードリーダ2Aとパーソナルコンピュータ3との間でイーサネットを使った通信が可能になる。したがって、第1コードリーダ2Aが撮像した画像をパーソナルコンピュータ3でリアルタイムに確認しながら第1コードリーダ2Aの撮像及びデコードで使用するパラメータを設定することができる。また、第1コードリーダ2Aで読取エラーが発生したときに、その時の撮像画像をパーソナルコンピュータ3に取り込む処理もイーサネット通信で素早く完了することができる。
As can be seen from the above description, according to the embodiment, the Ethernet between the
1 フィールドネットワーク
2 コードリーダ
3 パーソナルコンピュータ
5 コードリーダの不揮発メモリ
1
Claims (7)
作業者の操作を受けて前記光学情報読取装置から前記コンピュータにリクエスト送信を発信するリクエスト送信手段と、
該リクエスト送信を前記光学情報読取装置から受け取った前記コンピュータが前記光学情報読取装置に前記仮IPアドレスを送信する仮IPアドレス送信手段と、
該仮IPアドレスを受け取った前記光学情報読取装置が、前記フィールドネットワークの運用で割り付けられている元のIPアドレスを前記仮IPアドレスと置換させると共に、前記元のIPアドレスを前記光学情報読取装置のメモリに保存させる仮IPアドレス設定手段とを前記光学情報読取装置と前記コンピュータに実行させるための通信設定プログラム。 An optical information reading device that is assigned an IP address for operation in a field network, images an optical code of a work, reads the optical code from the captured image, and executes a decoding process, and is connected to the optical information reading device A temporary temporary IP address is set in the optical information reader to execute Ethernet communication with a computer for executing various settings while checking the captured image acquired from the optical information reader. A communication setting program for
A request transmitting means for transmitting a request transmission from the optical information reading device to the computer in response to an operation by an operator;
A temporary IP address transmitting means for the computer which has received the request transmitted from the optical information reading apparatus transmits the temporary IP address to the optical information reading device,
The optical information reading device that has received the temporary IP address replaces the original IP address assigned in the operation of the field network with the temporary IP address, and converts the original IP address to the optical information reading device. A communication setting program for causing the optical information reading apparatus and the computer to execute temporary IP address setting means to be stored in a memory.
該復元コマンドを受け取った前記光学情報読取装置が、前記メモリに保存してある前記元のIPアドレスを前記仮IPアドレスに代えて前記光学情報読取装置のIPアドレスに再設定するIPアドレス復元手段とを前記光学情報読取装置と前記コンピュータに更に実行させる、請求項1に記載の通信設定プログラム。 Restore command transmission means for sending an IP address restore command from the computer to the optical information reader;
IP address restoring means for receiving the restoration command and resetting the original IP address stored in the memory to the IP address of the optical information reading device instead of the temporary IP address; The communication setting program according to claim 1, further causing the optical information reading apparatus and the computer to execute.
作業者の操作を受けて前記光学情報読取装置から前記コンピュータにリクエスト送信を発信するリクエスト送信手段と、
該リクエスト送信を前記光学情報読取装置から受け取った前記コンピュータが前記光学情報読取装置に前記仮IPアドレスを送信する仮IPアドレス送信手段と、
該仮IPアドレスを受け取った前記光学情報読取装置が、前記フィールドネットワークの運用で割り付けられている元のIPアドレスを前記仮IPアドレスと置換させると共に、前記元のIPアドレスを前記光学情報読取装置のメモリに保存させる仮IPアドレス設定手段とを前記光学情報読取装置と前記コンピュータとに実行させるための通信設定プログラムを記録した記録媒体。 An optical information reading device that is assigned an IP address for operation in a field network, images an optical code of a work, reads the optical code from the captured image, and executes a decoding process, and is connected to the optical information reading device A temporary temporary IP address is set in the optical information reader to execute Ethernet communication with a computer for executing various settings while checking the captured image acquired from the optical information reader. A recording medium readable by the optical information reading apparatus and the computer in which a communication setting program for causing the optical information reading apparatus and the computer to execute a function to be
A request transmitting means for transmitting a request transmission from the optical information reading device to the computer in response to an operation by an operator;
A temporary IP address transmitting means for the computer which has received the request transmitted from the optical information reading apparatus transmits the temporary IP address to the optical information reading device,
The optical information reading device that has received the temporary IP address replaces the original IP address assigned in the operation of the field network with the temporary IP address, and converts the original IP address to the optical information reading device. A recording medium recording a communication setting program for causing the optical information reading apparatus and the computer to execute temporary IP address setting means to be stored in a memory.
該復元コマンドを受け取った前記光学情報読取装置が、前記メモリに保存してある前記元のIPアドレスを前記仮IPアドレスに代えて前記光学情報読取装置のIPアドレスに再設定するIPアドレス復元手段とを前記光学情報読取装置と前記コンピュータに更に実行させる、請求項6に記載の記録媒体。 Restore command transmission means for sending an IP address restore command from the computer to the optical information reader;
IP address restoring means for receiving the restoration command and resetting the original IP address stored in the memory to the IP address of the optical information reading device instead of the temporary IP address; The recording medium according to claim 6, further causing the optical information reader and the computer to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010210250A JP5525978B2 (en) | 2010-09-17 | 2010-09-17 | Communication setting program and recording medium between optical information reader and computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010210250A JP5525978B2 (en) | 2010-09-17 | 2010-09-17 | Communication setting program and recording medium between optical information reader and computer |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012065296A JP2012065296A (en) | 2012-03-29 |
JP5525978B2 true JP5525978B2 (en) | 2014-06-18 |
Family
ID=46060518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010210250A Active JP5525978B2 (en) | 2010-09-17 | 2010-09-17 | Communication setting program and recording medium between optical information reader and computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5525978B2 (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02257349A (en) * | 1989-03-30 | 1990-10-18 | Shikoku Nippon Denki Software Kk | Network address setting system |
JPH09153902A (en) * | 1995-11-30 | 1997-06-10 | Furukawa Electric Co Ltd:The | Operating setting method for network equipment |
JP2001057558A (en) * | 1999-06-10 | 2001-02-27 | Laboratories Of Image Information Science & Technology | Information processor |
JP2008015880A (en) * | 2006-07-07 | 2008-01-24 | Fuji Xerox Co Ltd | Network system, image processor and computer program |
JP4418970B2 (en) * | 2006-09-01 | 2010-02-24 | サイレックス・テクノロジー株式会社 | Network device and computer program |
JP4989277B2 (en) * | 2007-03-30 | 2012-08-01 | シスメックス株式会社 | Analysis system and server device |
JP5293378B2 (en) * | 2009-04-24 | 2013-09-18 | カシオ計算機株式会社 | Terminal IP setting system and portable terminal |
-
2010
- 2010-09-17 JP JP2010210250A patent/JP5525978B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2012065296A (en) | 2012-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106413124B (en) | Equipment binding method and device | |
KR102306400B1 (en) | Dynamically configurable production and/or distribution line control system and method therefor | |
CN104967585A (en) | Method for remote debugging of mobile terminal and apparatus thereof | |
CN105825355A (en) | Warehouse management system based on bar code scanning warehouse entry | |
CN104574170A (en) | Code pattern setting method for products and buying behavior automated verification method and system | |
US11340593B2 (en) | Management device, relay device, field wireless system, setting method, and recording medium | |
CN106506302A (en) | Support the communicator of dynamic MODBUS agreements mapping | |
CN104463056A (en) | Equipment spot inspection device based on Internet of things and control method of equipment spot inspection device | |
JP5525978B2 (en) | Communication setting program and recording medium between optical information reader and computer | |
US10675635B1 (en) | Hardware sanitization and destruction machine | |
CN111586022A (en) | Firewall opening verification method, electronic device, computer equipment and storage medium | |
JP7068912B2 (en) | Information processing equipment, equipment, defect analysis system, defect analysis method and program | |
CN114443766A (en) | Engineering material management method and device based on block chain | |
CN104796532A (en) | Method and device for destroying mobile terminal | |
CN104933454A (en) | Equipment spot inspection device based on Internet of things and control method thereof | |
KR102090013B1 (en) | Domain name system DNS resolution processing methods, devices, programs and computer readable media | |
JP2020052938A (en) | Operation panel management system | |
US20130241713A1 (en) | Method and Read/Write Device for Interchanging Data Between a Wirelessly Accessible Data Memory and an Industrial Automation Component | |
CN105722005A (en) | Near-field communication method and device | |
JP6734443B2 (en) | Information processing apparatus, information processing method, computer program, and information processing system | |
JP6285473B2 (en) | Communication setting notification device | |
CN204347856U (en) | Based on the equipment point-detecting device of technology of Internet of things | |
JP4215789B2 (en) | Communication protocol conversion system, communication protocol conversion method, and communication protocol conversion cradle | |
CN114298711A (en) | Industrial control equipment control method, device and system based on block chain | |
JP6950634B2 (en) | Control device and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130409 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140114 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140122 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140307 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20140402 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140414 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5525978 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |