JP2016045647A - Information code reading device - Google Patents

Information code reading device Download PDF

Info

Publication number
JP2016045647A
JP2016045647A JP2014168656A JP2014168656A JP2016045647A JP 2016045647 A JP2016045647 A JP 2016045647A JP 2014168656 A JP2014168656 A JP 2014168656A JP 2014168656 A JP2014168656 A JP 2014168656A JP 2016045647 A JP2016045647 A JP 2016045647A
Authority
JP
Japan
Prior art keywords
information code
light
posture
control unit
reading device
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.)
Pending
Application number
JP2014168656A
Other languages
Japanese (ja)
Inventor
華参 藤坂
Kasan Fujisaka
華参 藤坂
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.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
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 Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2014168656A priority Critical patent/JP2016045647A/en
Publication of JP2016045647A publication Critical patent/JP2016045647A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a technology that can curb occurrence of situations in which light to be irradiated from an illumination unit enters eyes of users or humans in an area around the users in comparison with conventional arts.SOLUTION: When a read start operation is input, if the amount of light emission [0(OFF)] is associated with a pose of an information code reading device 10 to be identified on the basis of a detection value of a sensor 20, a control unit 22 is configured not to emit light from an illumination unit 16. On the other hand, when the read start operation is input, if the amount of light emission [0(OFF)] is not associated with the pose of the information code reading device 10 to be identified on the basis of the detection value of the sensor 20, the control unit 22 is configured to emit the light from the illumination unit 16.SELECTED DRAWING: Figure 2

Description

本明細書で開示する技術は、情報コード読取装置に関する。   The technology disclosed in this specification relates to an information code reader.

特許文献1は、光を照射する照明部と、照明部から照射された光の反射光を受光する受光部と、照明部から対象物であるバーコードまでの距離を測定する距離センサと、受光部によって受光された反射光に基づいてバーコードに記録されたデータを読み取る制御部を備えるバーコードスキャナを開示する。制御部は、距離センサが所定距離内で対象物を検知したとき、照明部の発光強度を、バーコードの読取が可能な強度に調整する。   Patent Document 1 discloses an illumination unit that emits light, a light receiving unit that receives reflected light of light emitted from the illumination unit, a distance sensor that measures a distance from the illumination unit to a barcode that is an object, and a light receiving unit. Disclosed is a barcode scanner including a control unit that reads data recorded in a barcode based on reflected light received by the unit. When the distance sensor detects an object within a predetermined distance, the control unit adjusts the light emission intensity of the illumination unit to an intensity at which the barcode can be read.

特開2013−168067号公報JP 2013-168067 A

特許文献1のバーコードスキャナでは、バーコードスキャナの姿勢(即ち、照明部の向き)によって、照明部から照射される光がユーザや周囲の人の目に入り、ユーザや周囲の人に不快感を与えるおそれもある。   In the barcode scanner disclosed in Patent Document 1, depending on the orientation of the barcode scanner (that is, the direction of the illumination unit), the light emitted from the illumination unit enters the eyes of the user and the surrounding people, causing discomfort to the user and the surrounding people. There is also a risk of giving.

本明細書では、従来の技術に比べて、照明部から照射される光がユーザや周囲の人の目に入る事態の発生を抑制できる技術を提供する。   In this specification, compared with the conventional technique, the technique which can suppress generation | occurrence | production of the situation where the light irradiated from an illumination part enters into a user's or the surrounding person's eyes is provided.

本明細書が開示する情報コード読取装置は、読取対象の情報コードに光を照射する照明部と、情報コードからの反射光を受光する受光部と、情報コード読取装置の姿勢を検出可能なセンサと、読取指示が入力された場合に、センサが検出する情報コード読取装置の姿勢が予め定められた禁止姿勢でないときは、照明部から光を照射させ、受光部によって受光される反射光に基づいて、情報コードに記録されているデータを読み取る一方、センサが検出する情報コード読取装置の姿勢が禁止姿勢であるときは、照明部に光を照射させない、制御部と、を備える。   An information code reading device disclosed in this specification includes an illumination unit that irradiates light to an information code to be read, a light receiving unit that receives reflected light from the information code, and a sensor that can detect the attitude of the information code reading device. When the reading instruction is input, if the posture of the information code reading device detected by the sensor is not a predetermined prohibited posture, light is emitted from the illumination unit and is based on the reflected light received by the light receiving unit. And a control unit that reads data recorded in the information code and does not irradiate the illumination unit with light when the posture of the information code reading device detected by the sensor is a prohibited posture.

この構成によると、情報コード読取装置は、読取指示が入力された場合に、情報コード読取装置が禁止姿勢であるときは、照明部に光を照射させない。そのため、予め禁止姿勢を適切に設定しておくことにより、情報コード読取装置の姿勢に関わらず照明部から光を照射する従来の技術と比較して、照明部から照射される光がユーザや周囲の人の目に入る事態の発生を抑制することができる。   According to this configuration, the information code reading device does not irradiate the illumination unit with light when the reading instruction is input and the information code reading device is in the prohibited posture. Therefore, by appropriately setting the prohibited posture in advance, the light emitted from the illuminating unit can be radiated by the user or the surroundings as compared to the conventional technique of irradiating light from the illuminating unit regardless of the posture of the information code reader. The occurrence of a situation that falls into the eyes of a person can be suppressed.

情報コード読取装置10を模式的に示す平面図。FIG. 3 is a plan view schematically showing the information code reader 10. 情報コード読取装置10を模式的に示す側面図。FIG. 3 is a side view schematically showing the information code reader 10. 第1実施例の登録処理の例を示すフローチャート。The flowchart which shows the example of the registration process of 1st Example. 第1実施例の読取処理の例を示すフローチャート。6 is a flowchart illustrating an example of reading processing according to the first embodiment. 第2実施例の登録処理の例を示すフローチャート。The flowchart which shows the example of the registration process of 2nd Example. 第2実施例の読取処理の例を示すフローチャート。12 is a flowchart illustrating an example of a reading process according to the second embodiment.

以下に説明する実施例の主要な特徴を列記しておく。なお、以下に示す技術要素は、それぞれ独立した技術要素であって、単独であるいは各種の組み合わせによって技術的有用性を発揮するものであり、出願時請求項記載の組み合わせに限定されるものではない。   The main features of the embodiments described below are listed. In addition, the technical elements shown below are independent technical elements and exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. .

(特徴1)センサは、さらに、情報コード読取装置の運動状態を検出可能であってもよい。制御部は、さらに、読取指示が入力されたときに、センサが検出する情報コード読取装置の運動状態が予め設定された運動状態である場合には、照明部から光を照射させなくてもよい。 (Feature 1) The sensor may further be able to detect the motion state of the information code reader. Furthermore, the control unit may not emit light from the illumination unit when the movement state of the information code reader detected by the sensor when the reading instruction is input is a preset movement state. .

この構成によると、情報コード読取装置は、読取指示が入力された場合に、情報コード読取装置の運動状態が予め設定された運動状態である場合にも、照明部に光を照射させない。情報コード読取装置の運動状態に関わらず照明部に光を照射させる従来の技術と比較して、照明部から照射される光がユーザや周囲の人の目に入る事態の発生を適切に抑制することができる。   According to this configuration, when the reading instruction is input, the information code reading device does not irradiate the illumination unit with light even when the movement state of the information code reading device is a preset movement state. Compared to the conventional technology that irradiates the illumination unit with light regardless of the movement state of the information code reader, the occurrence of a situation where the light emitted from the illumination unit enters the eyes of the user or the surrounding people is appropriately suppressed. be able to.

(特徴2)制御部は、読取指示が入力された場合に、センサが検出する情報コード読取装置の姿勢が禁止姿勢とは異なる制限姿勢であるときは、当該制限姿勢に対応する設定発光量で照明部から光を照射させてもよい。 (Characteristic 2) When the reading instruction is input, if the posture of the information code reader detected by the sensor is a restricted posture different from the prohibited posture, the control unit uses a set light emission amount corresponding to the restricted posture. You may irradiate light from an illumination part.

この構成によると、情報コード読取装置は、読取指示が入力された際に、情報コード読取装置が制限姿勢であるときは、当該制限姿勢に対応する設定発光量で照明部から光を照射させる。そのため、予め制限姿勢及び設定発光量を適切に決定しておくことにより、情報コード読取装置の姿勢に応じた発光量で照明部から光を照射させることができる。   According to this configuration, when the reading instruction is input, when the information code reading device is in the restriction posture, the information code reading device irradiates light from the illumination unit with the set light emission amount corresponding to the restriction posture. Therefore, by appropriately determining the restriction posture and the set light emission amount in advance, it is possible to irradiate light from the illumination unit with the light emission amount corresponding to the posture of the information code reader.

(特徴3)制御部は、読取指示が入力された場合に、センサが検出する情報コード読取装置の姿勢が制限姿勢と禁止姿勢のどちらでもないときに、特定発光量で照明部から光を照射させてもよい。 (Characteristic 3) When a reading instruction is input, the control unit emits light from the illumination unit with a specific light emission amount when the posture of the information code reader detected by the sensor is neither the restricted posture nor the prohibited posture. You may let them.

この構成によると、情報コード読取装置は、読取指示が入力された場合に、情報コード読取装置が制限姿勢と禁止姿勢のどちらでもないときは、特定発光量で照明部から光を照射させる。情報コード読取装置の姿勢に応じた発光量で照明部から光を照射させることができる。   According to this configuration, when the reading instruction is input, the information code reading device irradiates light from the illumination unit with the specific light emission amount when the information code reading device is neither in the restricted posture or the prohibited posture. Light can be emitted from the illumination unit with a light emission amount corresponding to the posture of the information code reader.

(特徴4)情報コード読取装置はメモリをさらに備えてもよい。制御部は、第1の登録指示が入力される場合に、禁止姿勢をメモリに登録させることができてもよい。 (Feature 4) The information code reader may further include a memory. The control unit may be able to register the prohibited posture in the memory when the first registration instruction is input.

この構成によると、情報コード読取装置は、第1の登録指示の入力に応じて、所望の姿勢を禁止姿勢としてメモリに登録させることができる。使用実態に応じた禁止姿勢を適切に登録しておくことができる。   According to this configuration, the information code reader can register a desired posture in the memory as a prohibited posture in response to the input of the first registration instruction. It is possible to properly register a prohibited posture according to the actual usage.

(特徴5)制御部は、さらに、第2の登録指示が入力される場合に、禁止姿勢とは異なる制限姿勢と、制限姿勢に対応する設定発光量とを対応付けてメモリに登録させることができてもよい。制御部は、情報コード読取指示が入力された場合に、センサが禁止姿勢とは異なる制限姿勢を検出するときは、当該制限姿勢に対応する設定発光量で照明部から光を照射させてもよい。 (Characteristic 5) When the second registration instruction is input, the control unit may further cause the restriction posture different from the prohibited posture and the set light emission amount corresponding to the restriction posture to be associated with each other and registered in the memory. It may be possible. When the information code reading instruction is input and the sensor detects a restricted posture different from the prohibited posture, the control unit may cause the illumination unit to emit light with a set light emission amount corresponding to the restricted posture. .

この構成によると、情報コード読取装置は、第2の登録指示の入力に応じて、所望の姿勢を制限姿勢とし、所望の発光量を制限発光量として、メモリに登録させることができる。使用実態に応じた制限姿勢及び制限発光量を適切に登録しておくことができる。   According to this configuration, the information code reader can register the desired posture as the restricted posture and the desired light emission amount as the restricted light emission amount in the memory in response to the input of the second registration instruction. It is possible to appropriately register the restricted posture and the restricted light emission amount according to the actual usage.

(特徴6)制御部は、読取指示が入力され、照明部から光を照射させた場合に、データの読み取りに失敗すると、照明部から照射される光の発光量を増加させてもよい。 (Characteristic 6) When a reading instruction is input and light is emitted from the illumination unit, the control unit may increase the amount of light emitted from the illumination unit if data reading fails.

この構成によると、情報コード読取装置は、データの読み取りに失敗する場合に、適切な発光量で照明部から光を照射することができる。そのため、情報コード読取装置は、データの読み取りを適切に行うことができる。   According to this configuration, the information code reading device can irradiate light from the illumination unit with an appropriate light emission amount when data reading fails. Therefore, the information code reading device can appropriately read data.

(特徴7)制御部は、読取指示が入力され、照明部から光を照射させた場合に、データの読み取りに失敗し、かつ、受光部が受光した反射光に基づいて、照明部の光の照射対象が情報コードであると判断されると、照明部から照射される光の発光量を増加させてもよい。 (Characteristic 7) When the reading instruction is input and the illumination unit emits light, the control unit fails to read the data, and based on the reflected light received by the light receiving unit, the light of the illumination unit If it is determined that the irradiation target is an information code, the amount of light emitted from the illumination unit may be increased.

この構成によると、情報コード読取装置は、データの読み取りに失敗する場合に、光の照射対象が情報コードであるか否かに応じて、適切な発光量で照明部から光を照射することができる。そのため、情報コード読取装置は、データの読み取りを適切に行うことができる。   According to this configuration, the information code reader can irradiate light from the illumination unit with an appropriate light emission amount depending on whether or not the light irradiation target is an information code when data reading fails. it can. Therefore, the information code reading device can appropriately read data.

(第1実施例)
(情報コード読取装置10の構成;図1、図2)
図1に示す情報コード読取装置10は、バーコード、二次元コード等の情報コードを読取可能な装置である。情報コード読取装置10は、筐体11と、表示部12と、読取操作キー14aと、複数の情報入力キー14bとを有する。以下、読取操作キー14aと情報入力キー14bとをあわせて操作部14と呼ぶ場合がある。図2に示すように、筐体11には、照明部16と、受光部18と、センサ20と、制御部22と、メモリ24とが内蔵されている。
(First embodiment)
(Configuration of information code reader 10; FIGS. 1 and 2)
An information code reader 10 shown in FIG. 1 is an apparatus that can read an information code such as a bar code or a two-dimensional code. The information code reading apparatus 10 includes a housing 11, a display unit 12, reading operation keys 14a, and a plurality of information input keys 14b. Hereinafter, the reading operation key 14a and the information input key 14b may be collectively referred to as the operation unit 14. As shown in FIG. 2, the housing 11 includes a lighting unit 16, a light receiving unit 18, a sensor 20, a control unit 22, and a memory 24.

筐体11は、情報コード読取装置10の本体を構成する部品である。表示部12は、筐体11の上面に設けられている。表示部12は、様々な情報を表示するためのディスプレイである。読取操作キー14aは、情報コードの読み取り指示を入力するための操作ボタンである。読取操作キー14aは、筐体11の側面に設けられている。ユーザは、後述の読取処理(図4)を実行する場合に読取操作キー14aを操作する。情報入力キー14bは、情報コード読取装置10に様々な指示や情報を入力するためのキーである。情報入力キー14bは、筐体11の上面に設けられている。ユーザは、後述の登録処理(図3)を実行する場合に情報入力キー14bを操作する。   The housing 11 is a component that constitutes the main body of the information code reader 10. The display unit 12 is provided on the upper surface of the housing 11. The display unit 12 is a display for displaying various information. The reading operation key 14a is an operation button for inputting an instruction to read an information code. The read operation key 14 a is provided on the side surface of the housing 11. The user operates the reading operation key 14a when executing a reading process (FIG. 4) described later. The information input key 14 b is a key for inputting various instructions and information to the information code reading device 10. The information input key 14 b is provided on the upper surface of the housing 11. The user operates the information input key 14b when executing a registration process (FIG. 3) described later.

照明部16は、読取対象の情報コード30に対して光を照射する。照明部16から照射された光は、筐体11の下部に設けられている透明板17を透過して、情報コード30に照射される。照明部16は、レーザ光を照射するレーザ照明部と、読取範囲を照明するLED照明部とを有する。変形例では、照明部16は、レーザ照明部と、LED照明部とのうち一方のみを有していてもよい。   The illumination unit 16 irradiates the information code 30 to be read with light. The light emitted from the illuminating unit 16 passes through the transparent plate 17 provided at the lower part of the housing 11 and is irradiated to the information code 30. The illumination unit 16 includes a laser illumination unit that emits laser light and an LED illumination unit that illuminates the reading range. In the modification, the illumination unit 16 may have only one of the laser illumination unit and the LED illumination unit.

受光部18は、情報コード30からの反射光を受光する。上記の照明部16から照射された光の少なくとも一部は、情報コード30によって反射される。情報コード30からの反射光は、透明板17を透過して、受光部18によって受光される。   The light receiving unit 18 receives reflected light from the information code 30. At least a part of the light emitted from the illumination unit 16 is reflected by the information code 30. The reflected light from the information code 30 passes through the transparent plate 17 and is received by the light receiving unit 18.

センサ20は、3軸加速度センサである。センサ20は、X,Y,Zの3軸の加速度を検出する。センサ20の検出値を用いて、制御部22は、情報コード読取装置10の姿勢、及び、運動状態を特定することができる。   The sensor 20 is a triaxial acceleration sensor. The sensor 20 detects acceleration of three axes of X, Y, and Z. Using the detection value of the sensor 20, the control unit 22 can specify the posture and motion state of the information code reader 10.

制御部22は、メモリ24に記憶されているプログラムに従って様々な処理を実行する。制御部22が実行する処理の内容は後で詳しく説明する。   The control unit 22 executes various processes according to programs stored in the memory 24. The contents of the process executed by the control unit 22 will be described in detail later.

メモリ24は、様々なプログラムを記憶している。また、メモリ24は、制御部22の処理(後述の登録処理(図3)、読取処理(図4))に伴って生成される様々な情報を記憶する領域も有している。   The memory 24 stores various programs. The memory 24 also has an area for storing various information generated in accordance with the processing of the control unit 22 (a registration process (FIG. 3) and a reading process (FIG. 4) described later).

(登録処理;図3)
図3を参照して、本実施例の制御部22が実行する登録処理について説明する。ユーザは、操作部14(詳細には情報入力キー14b)を操作して、所定の登録開始操作を入力する。登録開始操作が入力されると、制御部22は、図3の登録処理を開始する。
(Registration process; Fig. 3)
With reference to FIG. 3, the registration process which the control part 22 of a present Example performs is demonstrated. The user operates the operation unit 14 (specifically, the information input key 14b) to input a predetermined registration start operation. When the registration start operation is input, the control unit 22 starts the registration process of FIG.

S10では、制御部22は、センサ20の検出値の監視を開始する。同時に、制御部22は、センサ20の検出値に基づいて、S10の時点における情報コード読取装置10(詳細には筐体11)の姿勢を算出する。具体的には、制御部22は、センサ20の検出値(即ち、X軸、Y軸、Z軸の各軸方向の加速度)に基づいて、重力方向を0°とした場合のX軸、Y軸、Z軸の傾斜角(θx、θy、θz)を算出し、それらの傾斜角に基づいて、S10の時点における情報コード読取装置10の姿勢(即ち、水平面に対する傾き)を算出する。   In S <b> 10, the control unit 22 starts monitoring the detection value of the sensor 20. At the same time, the control unit 22 calculates the attitude of the information code reader 10 (specifically, the housing 11) at the time of S10 based on the detection value of the sensor 20. Specifically, the control unit 22 determines whether the gravity direction is 0 ° based on the detection value of the sensor 20 (that is, acceleration in the X axis, Y axis, and Z axis directions). The tilt angles (θx, θy, θz) of the axis and the Z axis are calculated, and based on these tilt angles, the attitude of the information code reader 10 at the time of S10 (that is, the tilt with respect to the horizontal plane) is calculated.

続くS12では、制御部22は、所定時間t1(例えば3秒)以内に、情報コード読取装置10の姿勢が所定の許容範囲を超えて変化したか否かを判断する。制御部22は、S10でセンサ20の検出値の監視を開始してから所定時間t1が経過する前に、センサ22の検出値が変化したことに伴い、S10の時点の情報コード読取装置10の姿勢が所定の許容範囲を超えて変化したと判断する場合、S12でYESと判断し、図3の登録処理をエラー終了する。この場合、制御部22は、表示部12に所定のエラーメッセージを表示する。S12でYESの場合(即ち、所定の登録開始操作が入力された時点の情報コード読取装置10の姿勢が、所定時間t1以内に大きく変化した場合)には、情報コード読取装置10の姿勢が安定しておらず、登録処理の継続に適していない。   In subsequent S12, the control unit 22 determines whether or not the attitude of the information code reading device 10 has changed beyond a predetermined allowable range within a predetermined time t1 (for example, 3 seconds). The control unit 22 starts the monitoring of the detection value of the sensor 20 in S10 and changes the detection value of the sensor 22 before the predetermined time t1 elapses. If it is determined that the posture has changed beyond the predetermined allowable range, YES is determined in S12, and the registration process of FIG. In this case, the control unit 22 displays a predetermined error message on the display unit 12. In the case of YES in S12 (that is, when the attitude of the information code reader 10 when the predetermined registration start operation is input has changed greatly within the predetermined time t1), the attitude of the information code reader 10 is stable. It is not suitable for continuing the registration process.

一方、S10でセンサ20の検出値の監視を開始してから、S10の時点の情報コード読取装置10の姿勢が、所定の許容範囲を超えて変化することなく、所定時間t1が経過する場合、制御部22は、S12でNOと判断し、S14に進む。   On the other hand, after the monitoring of the detection value of the sensor 20 is started in S10, when the predetermined time t1 elapses without the attitude of the information code reading device 10 at the time of S10 changing beyond a predetermined allowable range, The control unit 22 determines NO in S12, and proceeds to S14.

S14では、制御部22は、この時点のセンサ20の検出値に基づいて特定される情報コード読取装置10の姿勢をメモリ24に登録する。S14の時点における情報コード読取装置10の姿勢の算出手法は、S10の時点における情報コード読取装置10の姿勢の算出手法と同様である。   In S <b> 14, the control unit 22 registers the attitude of the information code reading device 10 specified based on the detection value of the sensor 20 at this time in the memory 24. The method for calculating the attitude of the information code reader 10 at the time S14 is the same as the method for calculating the attitude of the information code reader 10 at the time S10.

次いで、S16では、制御部22は、所定の発光量設定画面を表示部12に表示させる。発光量設定画面には、S14で登録した姿勢に対応する照明部16の発光量の指定を要求するメッセージが表示される。ユーザは、操作部14を操作して、所望の発光量を指定することができる。この際、ユーザは、「0(OFF)」、「1(最小発光量)」〜「5(最大発光量)」の6段階の中から所望の発光量を選択して指定することができる。後で説明するように、制御部22は、読取処理(図4)において、S14で登録した姿勢で読取開始指示が行われる場合、発光量設定画面で指定された発光量で照明部16を発光させることができる(図4のS42〜S46参照)。   Next, in S16, the control unit 22 causes the display unit 12 to display a predetermined light emission amount setting screen. On the light emission amount setting screen, a message requesting specification of the light emission amount of the illumination unit 16 corresponding to the posture registered in S14 is displayed. The user can specify a desired light emission amount by operating the operation unit 14. At this time, the user can select and specify a desired light emission amount from among six levels “0 (OFF)”, “1 (minimum light emission amount)” to “5 (maximum light emission amount)”. As will be described later, in the reading process (FIG. 4), the control unit 22 emits the illumination unit 16 with the light emission amount specified on the light emission amount setting screen when a reading start instruction is issued in the posture registered in S14. (See S42 to S46 in FIG. 4).

S16で発光量設定画面を表示部12に表示させると、続くS18では、制御部22は、発光量が指定されることを監視する。ユーザによって所望の発光量が指定されると、制御部22は、S18でYESと判断し、S20に進む。   When the light emission amount setting screen is displayed on the display unit 12 in S16, in the subsequent S18, the control unit 22 monitors that the light emission amount is designated. When the desired light emission amount is designated by the user, the control unit 22 determines YES in S18, and proceeds to S20.

S20では、制御部22は、ユーザによって指定された発光量を、S14で登録した姿勢と対応付けてメモリ24に登録する。S20を終えると、制御部22は、図3の登録処理を終了する。この際、制御部22は、姿勢及び発光量の登録が完了したことを示すメッセージを表示部12に表示させる。   In S20, the control unit 22 registers the light emission amount specified by the user in the memory 24 in association with the posture registered in S14. When S20 ends, the control unit 22 ends the registration process of FIG. At this time, the control unit 22 causes the display unit 12 to display a message indicating that registration of the posture and the light emission amount has been completed.

(読取処理;図4)
図4を参照して、本実施例の制御部22が実行する読取処理について説明する。ユーザは、操作部14を操作して(具体的には読取操作キー14aを押下して)、所定の読取開始操作を入力する。読取開始操作が入力されると、制御部22は、図4の読取処理を開始する。以下、図4の読取処理の実行中は、ユーザは、読取操作キー14aを継続して押下する。読取操作キー14aの押下が終了(中断)すると、制御部22は、読取処理の途中であっても読取処理を終了する。
(Reading process; FIG. 4)
With reference to FIG. 4, the reading process which the control part 22 of a present Example performs is demonstrated. The user operates the operation unit 14 (specifically, presses the reading operation key 14a) and inputs a predetermined reading start operation. When a reading start operation is input, the control unit 22 starts the reading process of FIG. Hereinafter, during execution of the reading process of FIG. 4, the user continuously presses the reading operation key 14a. When the pressing of the reading operation key 14a ends (interrupts), the control unit 22 ends the reading process even during the reading process.

S40では、制御部22は、センサ20の検出値の監視を開始する。同時に、制御部22は、センサ20の検出値に基づいて、S40の時点における情報コード読取装置10(詳細には筐体11)の姿勢を算出する。具体的には、制御部22は、センサ20の検出値に基づいて、重力方向を0°とした場合のX軸、Y軸、Z軸の傾斜角(θx、θy、θz)を算出し、それらの傾斜角に基づいて、S40の時点における情報コード読取装置10の姿勢(即ち、水平面に対する傾き)を算出する。   In S <b> 40, the control unit 22 starts monitoring the detection value of the sensor 20. At the same time, the control unit 22 calculates the attitude of the information code reading device 10 (specifically, the casing 11) at the time of S40 based on the detection value of the sensor 20. Specifically, the control unit 22 calculates the tilt angles (θx, θy, θz) of the X axis, the Y axis, and the Z axis when the direction of gravity is 0 ° based on the detection value of the sensor 20, Based on these inclination angles, the attitude of the information code reader 10 at the time of S40 (that is, the inclination with respect to the horizontal plane) is calculated.

続くS42では、制御部22は、メモリ24を参照して、S40で算出された情報コード読取装置10の姿勢に、発光量「0(OFF)」が対応付けられているか否かを判断する。メモリ24内において、S40で算出された情報コード読取装置10の姿勢に発光量「0(OFF)」が対応付けられている場合、制御部22は、S42でYESと判断し、図4の読取処理をエラー終了する。この場合、制御部22は、照明部16を発光させない。また、制御部22は、表示部12に所定のエラーメッセージを表示する。   In subsequent S <b> 42, the control unit 22 refers to the memory 24 and determines whether or not the light emission amount “0 (OFF)” is associated with the attitude of the information code reading device 10 calculated in S <b> 40. In the memory 24, when the light emission amount “0 (OFF)” is associated with the posture of the information code reading device 10 calculated in S40, the control unit 22 determines YES in S42 and reads the reading in FIG. The process ends with an error. In this case, the control unit 22 does not cause the illumination unit 16 to emit light. Further, the control unit 22 displays a predetermined error message on the display unit 12.

一方、メモリ24内において、S40で算出された情報コード読取装置10の姿勢に「0(OFF)」以外の発光量(即ち「1」〜「5」のいずれか)が対応付けられている場合、又は、S40で算出された情報コード読取装置10の姿勢に特定の発光量が対応付けられていない場合、制御部22は、S42でNOと判断し、S44に進む。   On the other hand, in the memory 24, a light emission amount other than “0 (OFF)” (that is, any one of “1” to “5”) is associated with the attitude of the information code reader 10 calculated in S40. Alternatively, when the specific light emission amount is not associated with the attitude of the information code reading device 10 calculated in S40, the control unit 22 determines NO in S42 and proceeds to S44.

S44では、制御部22は、所定時間t2(例えば0.5秒)以内に、情報コード読取装置10の姿勢が所定の許容範囲を超えて変化したか否かを判断する。制御部22は、S40でセンサ20の検出値の監視を開始してから所定時間t2が経過する前に、センサ22の検出値が変化したことに伴い、S40の時点の情報コード読取装置10の姿勢が所定の許容範囲を超えて変化したと判断する場合、S44でYESと判断し、図4の読取処理をエラー終了する。この場合、制御部22は、表示部12に所定のエラーメッセージを表示する。S44でYESの場合(即ち、所定の読取開始操作が入力された時点の情報コード読取装置10の姿勢が、所定時間t2以内に大きく変化した場合)には、情報コード読取装置10の姿勢が安定しておらず、読取処理の継続に適していない。   In S44, the control unit 22 determines whether or not the attitude of the information code reading device 10 has changed beyond a predetermined allowable range within a predetermined time t2 (for example, 0.5 seconds). The control unit 22 starts the monitoring of the detection value of the sensor 20 in S40 and changes the detection value of the sensor 22 before the predetermined time t2 elapses, so that the information code reading device 10 at the time of S40 changes. If it is determined that the posture has changed beyond the predetermined allowable range, YES is determined in S44, and the reading process of FIG. In this case, the control unit 22 displays a predetermined error message on the display unit 12. If YES in S44 (that is, if the attitude of the information code reader 10 at the time when the predetermined reading start operation is input has changed significantly within the predetermined time t2), the attitude of the information code reader 10 is stable. It is not suitable for continuing the reading process.

一方、S40でセンサ20の検出値の監視を開始してから、S40の時点の情報コード読取装置10の姿勢が、所定の許容範囲を超えて変化することなく、所定時間t2が経過する場合、制御部22は、S44でNOと判断し、S46に進む。   On the other hand, after the monitoring of the detection value of the sensor 20 is started in S40, when the predetermined time t2 elapses without the attitude of the information code reading device 10 at the time of S40 changing beyond a predetermined allowable range, The control unit 22 determines NO in S44, and proceeds to S46.

S46では、制御部22は、メモリ24を参照して、この時点のセンサ20の検出値に基づいて算出される情報コード読取装置10の姿勢に対応付けられている発光量を特定し、特定した発光量で照明部16を発光させる。S46の時点における情報コード読取装置10の姿勢の算出手法は、S40の時点における情報コード読取装置10の姿勢の算出手法と同様である。例えば、メモリ24内で、S46の時点の情報コード読取装置10の姿勢に対応付けられている発光量が「1」である場合、制御部22は、最小の発光量で照明部16を発光させる。また例えば、メモリ24内で、S46の時点の情報コード読取装置10の姿勢に対応付けられている発光量が「5」である場合、制御部22は、最大の発光量で照明部16を発光させる。また、メモリ24内で、S46の時点の情報コード読取装置10の姿勢に発光量が対応付けられていない場合には、制御部22は、予め定められている発光量(例えば、発光量「3」)で照明部16を発光させる。S46で照明部16が発光した光は、読取対象物に照射される。照明部16から読取対象物に照射された光の少なくとも一部は反射し、受光部18によって受光される。   In S <b> 46, the control unit 22 refers to the memory 24 to identify and identify the light emission amount associated with the attitude of the information code reader 10 calculated based on the detection value of the sensor 20 at this time. The illumination unit 16 is caused to emit light with the emitted light amount. The calculation method of the attitude of the information code reading device 10 at the time of S46 is the same as the calculation method of the attitude of the information code reading device 10 at the time of S40. For example, when the light emission amount associated with the attitude of the information code reader 10 at the time of S46 is “1” in the memory 24, the control unit 22 causes the illumination unit 16 to emit light with the minimum light emission amount. . Further, for example, when the light emission amount associated with the attitude of the information code reader 10 at the time of S46 is “5” in the memory 24, the control unit 22 emits the illumination unit 16 with the maximum light emission amount. Let Further, when the light emission amount is not associated with the attitude of the information code reading device 10 at the time of S46 in the memory 24, the control unit 22 determines a predetermined light emission amount (for example, the light emission amount “3”). ]), The illumination unit 16 is caused to emit light. The light emitted from the illuminating unit 16 in S46 is applied to the reading object. At least a part of the light emitted from the illumination unit 16 to the reading object is reflected and received by the light receiving unit 18.

続くS48では、制御部22は、受光部18が受光した光(即ち読取対象物からの反射光)に基づいて、データ読取を試行する。続くS50では、制御部22は、読み取り(即ち、デコード)に成功したか否かを判断する。照明部16の光が照射された読取対象物が情報コードである場合、制御部22は、受光部18が受光した光に基づいて、その情報コードに記録されているデータを読み取ることができる。この場合、制御部22は、S50でYESと判断し、図4の読取処理を終了する。この際、制御部22は、情報コードの読み取りに成功したことを示すメッセージを表示部12に表示することができる。ただし、読取対象物が情報コードである場合でも、制御部22は、受光部18が受光した光の量が不十分な場合などには、データを読み取れない場合もある。また、読取対象物が情報コードではなかった場合も、制御部22は、受光部18が受光した光に基づいてデータを読み取れない。この場合、制御部22は、S50でNOと判断し、S52に進む。   In subsequent S48, the control unit 22 tries data reading based on the light received by the light receiving unit 18 (that is, the reflected light from the reading object). In subsequent S50, the control unit 22 determines whether reading (that is, decoding) has succeeded. When the reading object irradiated with the light from the illumination unit 16 is an information code, the control unit 22 can read the data recorded in the information code based on the light received by the light receiving unit 18. In this case, the control unit 22 determines YES in S50 and ends the reading process of FIG. At this time, the control unit 22 can display a message indicating that the information code has been successfully read on the display unit 12. However, even when the object to be read is an information code, the control unit 22 may not be able to read data when the amount of light received by the light receiving unit 18 is insufficient. Even when the reading object is not an information code, the control unit 22 cannot read data based on the light received by the light receiving unit 18. In this case, the control unit 22 determines NO in S50, and proceeds to S52.

S52では、制御部22は、受光部18が受光した光に基づいて、照明部16の光が照射された読取対象物が情報コードであるか否かを判断する。制御部22は、受光部18が受光した光が、情報コード特有のパターン(例えば、黒白の連続パターン)に対応するパターンを示す場合に、S52でYESと判断し、S54に進む。一方、制御部22は、受光部18が受光した光が、情報コード特有のパターンに対応するパターンを示さない場合に、S52でNOと判断し、S48に戻る。この場合、戻った先のS48では、制御部22は、再度データ読取を試行する。   In S52, based on the light received by the light receiving unit 18, the control unit 22 determines whether the reading object irradiated with the light from the illumination unit 16 is an information code. When the light received by the light receiving unit 18 indicates a pattern corresponding to a pattern specific to the information code (for example, a black and white continuous pattern), the control unit 22 determines YES in S52 and proceeds to S54. On the other hand, when the light received by the light receiving unit 18 does not indicate a pattern corresponding to the pattern specific to the information code, the control unit 22 determines NO in S52 and returns to S48. In this case, in S48 after the return, the control unit 22 tries data reading again.

S54では、制御部22は、S46で特定した発光量を1段階上げた発光量で照明部16を発光させる。例えば、S46で特定した発光量が「1」である場合、S54では、制御部22は、発光量を「2」に増加させ、照明部16を発光させる。ただし、S54の時点で発光量が既に「5(最大値)」である場合、制御部22は、S54ではそれ以上発光量を上げない。S54を終えると、S48に戻り、制御部22は、再度データ読取を試行する。   In S54, the control unit 22 causes the illumination unit 16 to emit light with the light emission amount obtained by increasing the light emission amount specified in S46 by one step. For example, when the light emission amount specified in S46 is “1”, in S54, the control unit 22 increases the light emission amount to “2” and causes the illumination unit 16 to emit light. However, if the light emission amount is already “5 (maximum value)” at the time of S54, the control unit 22 does not increase the light emission amount any more in S54. When S54 ends, the process returns to S48, and the control unit 22 tries data reading again.

本実施例では、図4のS42でYESの場合のように、制御部22は、読取開始操作が入力された場合において、センサ20の検出値に基づいて算出される情報コード読取装置10の姿勢に、発光量「0(OFF)」が対応付けられている場合には、照明部16から光を照射させない。一方、S42でNOの場合におけるS46のように、制御部22は、読取開始操作が入力された場合に、センサ20の検出値に基づいて特定される情報コード読取装置10の姿勢に、発光量「0(OFF)」が対応付けられていない場合には、照明部16から光を照射させる。そのため、本実施例の情報コード読取装置10によると、登録処理(図3)において、ユーザが照明部16を発光させたくない姿勢について、発光量「0」を対応付けておくことにより、情報コード読取装置の姿勢に関わらず照明部から光を照射する従来の技術と比較して、照明部16から照射される光がユーザや周囲の人の目に入る事態の発生を抑制することができる。   In the present embodiment, as in the case of YES in S42 of FIG. 4, the control unit 22 determines the attitude of the information code reading device 10 calculated based on the detection value of the sensor 20 when the reading start operation is input. In addition, when the light emission amount “0 (OFF)” is associated, light is not emitted from the illumination unit 16. On the other hand, as in S46 in the case of NO in S42, the control unit 22 changes the light emission amount to the posture of the information code reading device 10 specified based on the detection value of the sensor 20 when the reading start operation is input. When “0 (OFF)” is not associated, light is emitted from the illumination unit 16. Therefore, according to the information code reader 10 of the present embodiment, in the registration process (FIG. 3), the information code is obtained by associating the light emission amount “0” with the posture in which the user does not want the illumination unit 16 to emit light. Compared to the conventional technique of irradiating light from the illumination unit regardless of the orientation of the reading device, it is possible to suppress the occurrence of a situation where the light emitted from the illumination unit 16 enters the eyes of the user or the surrounding people.

また、図4のS44でYESの場合のように、制御部22は、読取開始操作が入力された場合において、S40でセンサ20の検出値の監視を開始してから所定時間t2が経過する前に、情報コード読取装置10の姿勢が所定の許容範囲を超えて変化した場合、照明部16から光を照射させない。そのため、本実施例の情報コード読取装置10によると、情報コード読取装置の運動状態に関わらず照明部から光を照射する従来の技術と比較して、照明部16から照射される光がユーザや周囲の人の目に入る事態の発生を抑制することができる。   Further, as in the case of YES in S44 of FIG. 4, when the reading start operation is input, the control unit 22 starts monitoring the detection value of the sensor 20 in S40 and before the predetermined time t2 has elapsed. Furthermore, when the attitude of the information code reading device 10 changes beyond a predetermined allowable range, the illumination unit 16 does not irradiate light. Therefore, according to the information code reader 10 of the present embodiment, the light emitted from the illuminating unit 16 is emitted from the illumination unit 16 as compared with the conventional technique of irradiating light from the illuminating unit regardless of the movement state of the information code reading device. Occurrence of a situation that enters the eyes of the surrounding people can be suppressed.

また、図4のS46のように、読取開始操作が入力された場合において、情報コード読取装置10の姿勢に発光量「0」が対応付けられておらず(S42でNO)、所定時間t2以内に情報コード読取装置10の姿勢が所定の許容範囲を超えて変化しない場合(S44でNO)に、制御部22は、メモリ24を参照して、S46の時点のセンサ20の検出値に基づいて算出される情報コード読取装置10の姿勢に対応付けられている発光量を特定し、特定した発光量に従って照明部16を発光させる。一般に、情報コード読取装置10の姿勢が情報コードの読み取りに適する姿勢である場合には、大きい発光量で照明部16を発光させることが、読み取りを適切に行う上で好ましく、情報コード読取装置10の姿勢が情報コードの読み取りに適さない姿勢である場合には、小さい発光量で照明部16を発光させることが、照明部16から照射される光がユーザや周囲の人の目に入る事態の発生を抑制する上で好ましい。本実施例の情報コード読取装置10では、予め情報コード読取装置10の姿勢と、その姿勢に対応する発光量を適切に設定しておくことにより、情報コード読取装置10の姿勢に応じた発光量で照明部16から光を照射させることができる。   Further, when a reading start operation is input as in S46 of FIG. 4, the light emission amount “0” is not associated with the posture of the information code reading device 10 (NO in S42), and within a predetermined time t2. When the attitude of the information code reading device 10 does not change beyond the predetermined allowable range (NO in S44), the control unit 22 refers to the memory 24 and based on the detection value of the sensor 20 at the time of S46. The light emission amount associated with the calculated posture of the information code reading device 10 is specified, and the illumination unit 16 emits light according to the specified light emission amount. In general, when the posture of the information code reading device 10 is a posture suitable for reading an information code, it is preferable that the illumination unit 16 emits light with a large light emission amount for proper reading, and the information code reading device 10 If the posture of the lighting device 16 is not suitable for reading the information code, the illumination unit 16 emits light with a small amount of light emission, which may cause the light emitted from the lighting unit 16 to enter the eyes of the user or the surrounding people. It is preferable for suppressing the generation. In the information code reading device 10 of the present embodiment, the light emission amount corresponding to the posture of the information code reading device 10 is set in advance by appropriately setting the posture of the information code reading device 10 and the light emission amount corresponding to the posture. Thus, the illumination unit 16 can irradiate light.

また、図4のS46では、メモリ24内で、この時点の情報コード読取装置10の姿勢に発光量が対応付けられていない場合には、制御部22は、予め定められている発光量に従って照明部16を発光させる。情報コード読取装置10の姿勢に対応する発光量が予め設定されていない場合であっても、適切な発光量で照明部16から光を照射させることができる。   In S46 of FIG. 4, when the light emission amount is not associated with the attitude of the information code reader 10 at this time in the memory 24, the control unit 22 performs illumination according to a predetermined light emission amount. The part 16 is caused to emit light. Even if the light emission amount corresponding to the posture of the information code reader 10 is not set in advance, the illumination unit 16 can irradiate light with an appropriate light emission amount.

また、本実施例では、図3の登録処理を実行することにより、メモリ24に、情報コード読取装置10の姿勢と発光量とを対応付けて登録することができる。使用実態に応じて、姿勢及び発光量を適切にメモリ24に登録しておくことができる。   In the present embodiment, by performing the registration process of FIG. 3, the attitude of the information code reader 10 and the light emission amount can be registered in the memory 24 in association with each other. The posture and the amount of light emission can be appropriately registered in the memory 24 according to the actual usage.

また、本実施例では、図4のS50でNO、S52でYESの場合のように、制御部22は、読み取りに失敗した場合であって、かつ、読取対象物が情報コードであると判断した場合に、照明部16の発光量を上げて再度データ読取を試行する。そのため、本実施例の情報コード読取装置10は、データの読み取りを適切に行い得る。   In this embodiment, as in the case of NO in S50 and YES in S52, the control unit 22 determines that the reading has failed and that the reading object is an information code. In this case, the amount of light emitted from the illumination unit 16 is increased and data reading is attempted again. Therefore, the information code reader 10 of this embodiment can appropriately read data.

読取開始操作が「読取指示」の一例である。発光量が「0」に対応付けられている情報コード読取装置10の姿勢が「禁止姿勢」の一例である。発光量が「1」〜「5」のいずれかに対応付けられている情報コード読取装置10の姿勢が「制限姿勢」の一例である。また、その場合の発光量(即ち「1」〜「5」のいずれか)が「設定発光量」の一例である。図3のS18でYESの場合において、発光量「0」を指定する指示が入力される場合が、「第1の登録指示」が入力される場合の一例である。図3のS18でYESの場合において、発光量「1」〜「5」のいずれかを指定する指示が入力される場合が、「第2の登録指示」が入力される場合の一例である。   The reading start operation is an example of “reading instruction”. The posture of the information code reading device 10 associated with the light emission amount “0” is an example of the “prohibited posture”. The posture of the information code reading device 10 associated with one of the light emission amounts “1” to “5” is an example of “restricted posture”. Further, the light emission amount (that is, any one of “1” to “5”) in that case is an example of “set light emission amount”. In the case of YES in S18 of FIG. 3, the case where the instruction to specify the light emission amount “0” is input is an example of the case where the “first registration instruction” is input. In the case of YES in S18 of FIG. 3, the case where an instruction for designating any one of the light emission amounts “1” to “5” is input is an example of the case where a “second registration instruction” is input.

(第2実施例)
本実施例の情報コード読取装置10も、その基本構成は第1実施例の情報コード読取装置10(図1、図2参照)と共通する。本実施例では、制御部22は、照明部16の発光量を調整しない点で、第1実施例とは異なる。そのため、本実施例では、制御部22が実行する登録処理(図5)及び読取処理(図6)の内容も第1実施例とは異なる。
(Second embodiment)
The basic configuration of the information code reader 10 of this embodiment is also the same as that of the information code reader 10 of the first embodiment (see FIGS. 1 and 2). In the present embodiment, the control unit 22 is different from the first embodiment in that the light emission amount of the illumination unit 16 is not adjusted. Therefore, in this embodiment, the contents of the registration process (FIG. 5) and the reading process (FIG. 6) executed by the control unit 22 are also different from those in the first embodiment.

(登録処理;図5)
図5を参照して、本実施例の制御部22が実行する登録処理について説明する。第1実施例と同様に、ユーザは、操作部14(詳細には情報入力キー14b)を操作して、所定の登録開始操作を入力する。登録開始操作が入力されると、制御部22は、図5の登録処理を開始する。
(Registration process; Fig. 5)
With reference to FIG. 5, the registration process which the control part 22 of a present Example performs is demonstrated. As in the first embodiment, the user operates the operation unit 14 (specifically, the information input key 14b) to input a predetermined registration start operation. When the registration start operation is input, the control unit 22 starts the registration process of FIG.

S70、S72の処理は、図3のS10、S12の処理と同様である。S72でYESと判断される場合、制御部22は、図5の登録処理をエラー終了する。この際、制御部22は、表示部12に所定のエラーメッセージを表示する。一方、S72でNOと判断される場合、制御部22は、S74に進む。   The processes of S70 and S72 are the same as the processes of S10 and S12 of FIG. If YES is determined in S72, the control unit 22 ends the registration process of FIG. 5 with an error. At this time, the control unit 22 displays a predetermined error message on the display unit 12. On the other hand, when it is determined NO in S72, the control unit 22 proceeds to S74.

S74では、制御部22は、この時点のセンサ20の検出値に基づいて特定される情報コード読取装置10の姿勢を禁止姿勢としてメモリ24に登録する。S74を終えると、制御部22は、図5の登録処理を終了する。この際、制御部22は、禁止姿勢の登録が完了したことを示すメッセージを表示部12に表示させる。   In S74, the control unit 22 registers the posture of the information code reading device 10 specified based on the detection value of the sensor 20 at this time in the memory 24 as a prohibited posture. When S74 ends, the control unit 22 ends the registration process of FIG. At this time, the control unit 22 causes the display unit 12 to display a message indicating that registration of the prohibited posture has been completed.

(読取処理;図6)
図6を参照して、本実施例の制御部22が実行する読取処理について説明する。第1実施例と同様に、ユーザは、操作部14を操作して(具体的には読取操作キー14aを押下して)、所定の読取開始操作を入力する。読取開始操作が入力されると、制御部22は、図6の読取処理を開始する。
(Reading process; FIG. 6)
With reference to FIG. 6, the reading process executed by the control unit 22 of the present embodiment will be described. As in the first embodiment, the user operates the operation unit 14 (specifically, presses the reading operation key 14a) and inputs a predetermined reading start operation. When a reading start operation is input, the control unit 22 starts the reading process of FIG.

S90では、制御部22は、センサ20の検出値の監視を開始する。同時に、制御部22は、センサ20の検出値に基づいて、S90の時点における情報コード読取装置10(詳細には筐体11)の姿勢を算出する。具体的には、制御部22は、センサ20の検出値に基づいて、重力方向を0°とした場合のX軸、Y軸、Z軸の傾斜角(θx、θy、θz)を算出し、それらの傾斜角に基づいて、S90の時点における情報コード読取装置10の姿勢(即ち、水平面に対する傾き)を算出する。   In S90, the control unit 22 starts monitoring the detection value of the sensor 20. At the same time, the control unit 22 calculates the attitude of the information code reading device 10 (specifically, the casing 11) at the time of S90 based on the detection value of the sensor 20. Specifically, the control unit 22 calculates the tilt angles (θx, θy, θz) of the X axis, the Y axis, and the Z axis when the direction of gravity is 0 ° based on the detection value of the sensor 20, Based on those inclination angles, the attitude of the information code reader 10 at the time of S90 (that is, the inclination with respect to the horizontal plane) is calculated.

続くS92では、制御部22は、メモリ24を参照して、S90で算出された情報コード読取装置10の姿勢が禁止姿勢であるか否かを判断する。メモリ24内において、S90で算出された情報コード読取装置10の姿勢が禁止姿勢として登録されている場合、制御部22は、S92でYESと判断し、図6の読取処理をエラー終了する。この場合、制御部22は、照明部16を発光させない。また、制御部22は、表示部12に所定のエラーメッセージを表示する。   In subsequent S92, the control unit 22 refers to the memory 24 and determines whether or not the posture of the information code reading device 10 calculated in S90 is a prohibited posture. If the attitude of the information code reading device 10 calculated in S90 is registered as a prohibited attitude in the memory 24, the control unit 22 determines YES in S92 and ends the reading process of FIG. 6 in error. In this case, the control unit 22 does not cause the illumination unit 16 to emit light. Further, the control unit 22 displays a predetermined error message on the display unit 12.

一方、メモリ24内において、S90で算出された情報コード読取装置10の姿勢が禁止姿勢として登録されていない場合、制御部22は、S92でNOと判断し、S94に進む。   On the other hand, if the posture of the information code reading device 10 calculated in S90 is not registered as a prohibited posture in the memory 24, the control unit 22 determines NO in S92 and proceeds to S94.

S94の処理は、図4のS44の処理と同様である。S94でYESと判断される場合、制御部22は、図6の読取処理をエラー終了する。この際、制御部22は、表示部12に所定のエラーメッセージを表示する。一方、S94でNOと判断される場合、制御部22は、S96に進む。   The process of S94 is the same as the process of S44 of FIG. If YES is determined in S94, the control unit 22 ends the reading process of FIG. 6 with an error. At this time, the control unit 22 displays a predetermined error message on the display unit 12. On the other hand, when it is determined NO in S94, the control unit 22 proceeds to S96.

S96では、制御部22は、照明部16を発光させ、読取対象物に光を照射させる。本実施例では、制御部22は、照明部16の発光量を調整しない。そのため、照明部16は、予め定められた発光量に従って光を照射する。読取対象物に照射された光の少なくとも一部は反射し、受光部18によって受光される。   In S <b> 96, the control unit 22 causes the illumination unit 16 to emit light, and irradiates the reading target with light. In the present embodiment, the control unit 22 does not adjust the light emission amount of the illumination unit 16. Therefore, the illumination unit 16 emits light according to a predetermined light emission amount. At least a part of the light applied to the reading object is reflected and received by the light receiving unit 18.

続くS98では、制御部22は、受光部18が受光した光(即ち読取対象物からの反射光)に基づいて、データ読取を試行する。続くS100では、制御部22は、読み取り(即ち、デコード)に成功したか否かを判断する。受光部18が受光した光に基づいてデータを読み取った場合、制御部22は、S100でYESと判断し、図6の読取処理を終了する。この際、制御部22は、情報コードの読み取りに成功したことを示すメッセージを表示部12に表示することができる。一方、受光部18が受光した光に基づいてデータを読み取れない場合、制御部22は、S100と判断し、S98に戻って再度データ読取を試行する。   In subsequent S98, the control unit 22 tries data reading based on the light received by the light receiving unit 18 (that is, the reflected light from the reading object). In subsequent S100, the control unit 22 determines whether the reading (that is, decoding) has succeeded. When the data is read based on the light received by the light receiving unit 18, the control unit 22 determines YES in S100, and ends the reading process of FIG. At this time, the control unit 22 can display a message indicating that the information code has been successfully read on the display unit 12. On the other hand, if the data cannot be read based on the light received by the light receiving unit 18, the control unit 22 determines S100, returns to S98, and tries data reading again.

本実施例でも、図6のS92でYESの場合のように、制御部22は、読取開始操作が入力された場合において、センサ20の検出値に基づいて特定される情報コード読取装置10の姿勢が禁止姿勢である場合には、照明部16から光を照射させない。一方、S92でNOの場合におけるS96のように、制御部22は、読取開始操作が入力された場合に、センサ20の検出値に基づいて特定される情報コード読取装置10の姿勢が禁止姿勢でない場合には、照明部16から光を照射させる。そのため、本実施例の情報コード読取装置10による場合も、ユーザが、登録処理(図5)において、禁止姿勢を適切に登録しておくことにより、情報コード読取装置の姿勢に関わらず照明部から光を照射する従来の技術と比較して、照明部16から照射される光がユーザや周囲の人の目に入る事態の発生を抑制することができる。   Also in this embodiment, as in the case of YES in S92 of FIG. 6, the control unit 22 determines the posture of the information code reading device 10 specified based on the detection value of the sensor 20 when the reading start operation is input. Is not allowed to irradiate light from the illumination unit 16. On the other hand, as in S96 in the case of NO in S92, the control unit 22 determines that the posture of the information code reading device 10 specified based on the detection value of the sensor 20 is not a prohibited posture when a reading start operation is input. In the case, light is emitted from the illumination unit 16. Therefore, also in the case of the information code reading device 10 of the present embodiment, the user can appropriately register the prohibited posture in the registration process (FIG. 5), so that the illumination unit can be used regardless of the posture of the information code reading device. Compared with the prior art which irradiates light, generation | occurrence | production of the situation where the light irradiated from the illumination part 16 enters into a user's or the surrounding person's eyes can be suppressed.

また、本実施例でも、図6のS94でYESの場合のように、制御部22は、読取開始操作が入力された場合において、S90でセンサ20の検出値の監視を開始してから所定時間t2が経過する前に、情報コード読取装置10の姿勢が所定の許容範囲を超えて変化した場合、照明部16から光を照射させない。そのため、本実施例の情報コード読取装置10によると、情報コード読取装置の運動状態に関わらず照明部から光を照射する従来の技術と比較して、照明部16から照射される光がユーザや周囲の人の目に入る事態の発生を抑制することができる。   Also in this embodiment, as in the case of YES in S94 in FIG. 6, the control unit 22 performs a predetermined time after starting the monitoring of the detection value of the sensor 20 in S90 when a reading start operation is input. If the attitude of the information code reader 10 changes beyond a predetermined allowable range before t2 elapses, the illumination unit 16 does not irradiate light. Therefore, according to the information code reader 10 of the present embodiment, the light emitted from the illuminating unit 16 is emitted by the user or Occurrence of a situation that enters the eyes of the surrounding people can be suppressed.

登録開始操作が入力された後に図5のS72でYESと判断される場合が「第1の登録指示」が入力される場合の一例である。   The case where “YES” is determined in S72 of FIG. 5 after the registration start operation is input is an example of the case where the “first registration instruction” is input.

以上、本発明の各実施例について詳細に説明したが、これらは例示に過ぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。例えば、以下の変形例を採用してもよい。   As mentioned above, although each Example of this invention was described in detail, these are only illustrations and do not limit a claim. The technology described in the claims includes various modifications and changes of the specific examples illustrated above. For example, the following modifications may be adopted.

(変形例1)上記の各実施例では、図4のS44でYES、図6のS94でYESのように、S40(又はS90)でセンサ20の検出値の監視を開始してから所定時間t2が経過する前に、情報コード読取装置10の姿勢が所定の許容範囲を超えて変化した場合に、制御部22は、読取処理(図4、図6)をエラー終了している。これに限られず、図4のS44、図6のS96において、S40(又はS90)でセンサ20の検出値の監視を開始してから所定時間t2が経過する前に、情報コード読取装置10が所定の許容範囲を超える速度で移動した場合に、制御部22は、読取処理をエラー終了するようにしてもよい。この場合、制御部22は、センサ20の検出値(即ち、X軸、Y軸、Z軸の各軸方向の加速度)に基づいて、情報コード読取装置10の移動速度を算出し、その移動速度が所定の許容範囲を超えるか否かを判断してもよい。情報コード読取装置10が所定の許容範囲を超える速度で移動している場合には、ユーザが情報コード読取装置10を比較的速い速度で大きく移動させている可能性が高いが、そのような場合は読取処理の継続に適さない。一般的に言うと、制御部は、読取指示が入力されたときに、センサが検出する情報コード読取装置の運動状態が予め設定された運動状態である場合には、照明部から光を照射させないようにすればよい。 (Modification 1) In each of the embodiments described above, a predetermined time t2 after monitoring of the detection value of the sensor 20 is started in S40 (or S90), such as YES in S44 of FIG. 4 and YES in S94 of FIG. If the attitude of the information code reading device 10 changes beyond a predetermined allowable range before the time elapses, the control unit 22 ends the reading process (FIGS. 4 and 6) with an error. The information code reading device 10 is not limited to this, and the information code reading device 10 is predetermined before the predetermined time t2 elapses after the monitoring of the detection value of the sensor 20 is started in S40 (or S90) in S44 of FIG. When moving at a speed exceeding the allowable range, the control unit 22 may end the reading process with an error. In this case, the control unit 22 calculates the moving speed of the information code reading device 10 based on the detection value of the sensor 20 (that is, the acceleration in the X-axis, Y-axis, and Z-axis directions), and the moving speed. It may be determined whether or not exceeds a predetermined allowable range. When the information code reading device 10 is moving at a speed exceeding a predetermined allowable range, it is highly likely that the user has moved the information code reading device 10 greatly at a relatively high speed. Is not suitable for continuing the reading process. Generally speaking, when the reading instruction is input, the control unit does not irradiate light from the illumination unit when the movement state of the information code reader detected by the sensor is a preset movement state. What should I do?

(変形例2)上記の第1実施例では、図4のS50でNO、S52でYESの場合のように、制御部22は、読み取りに失敗した場合であって、かつ、読取対象物が情報コードであると判断した場合に、照明部16の発光量を上げて再度データ読取を試行する。これに限られず、制御部22は、読み取りに失敗した場合に、読取対象物が情報コードであるか否かに関わらず、照明部16の発光量を上げて再度データ読取を試行してもよい。 (Modification 2) In the first embodiment described above, as in the case of NO in S50 and YES in S52 in FIG. 4, the control unit 22 is a case where reading has failed and the reading object is information. If it is determined that it is a code, the amount of light emitted from the illumination unit 16 is increased and data reading is attempted again. Without being limited thereto, the control unit 22 may attempt to read data again by increasing the light emission amount of the illumination unit 16 regardless of whether the reading target is an information code or not when reading fails. .

(変形例3)上記の第1実施例では、図4のS52において、制御部22は、照明部16の発光量を1段階ずつ挙げている。これに限られず、制御部22は、読み取りに失敗した場合であって、かつ、読取対象物が情報コードであると判断した場合に、照明部16の発光量を一度に最大値(即ち「5」)まで上げるようにしてもよい。 (Modification 3) In the first embodiment described above, in S52 of FIG. 4, the control unit 22 increases the light emission amount of the illumination unit 16 by one level. The control unit 22 is not limited to this, and when the reading has failed and it is determined that the object to be read is an information code, the light emission amount of the illumination unit 16 is maximized at a time (that is, “5”). )).

本明細書または図面に説明した技術要素は、単独であるいは各種の組み合わせによって技術的有用性を発揮するものであり、出願時請求項記載の組み合わせに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。   The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology illustrated in the present specification or the drawings achieves a plurality of objects at the same time, and has technical utility by achieving one of the objects.

10:情報コード読取装置
11:筐体
12:表示部
14:操作部
14a:読取操作キー
14b:情報入力キー
16:照明部
17:透明板
18:受光部
20:センサ
22:制御部
24:メモリ
30:情報コード
10: Information code reader 11: Housing 12: Display unit 14: Operation unit 14a: Reading operation key 14b: Information input key 16: Illumination unit 17: Transparent plate 18: Light receiving unit 20: Sensor 22: Control unit 24: Memory 30: Information code

Claims (8)

情報コード読取装置であって、
読取対象の情報コードに光を照射する照明部と、
情報コードからの反射光を受光する受光部と、
情報コード読取装置の姿勢を検出可能なセンサと、
読取指示が入力された場合に、センサが検出する情報コード読取装置の姿勢が予め定められた禁止姿勢でないときは、照明部から光を照射させ、受光部によって受光される反射光に基づいて、情報コードに記録されているデータを読み取る一方、センサが検出する情報コード読取装置の姿勢が禁止姿勢であるときは、照明部に光を照射させない、制御部と、
を備える、情報コード読取装置。
An information code reader,
An illumination unit that emits light to an information code to be read; and
A light receiving portion for receiving reflected light from the information code;
A sensor capable of detecting the attitude of the information code reader;
When the reading instruction is input, if the posture of the information code reading device detected by the sensor is not a predetermined prohibited posture, the illumination unit emits light, and based on the reflected light received by the light receiving unit, While reading the data recorded in the information code, when the posture of the information code reading device detected by the sensor is a prohibited posture, the controller does not irradiate light,
An information code reader comprising:
センサは、さらに、情報コード読取装置の運動状態を検出可能であり、
制御部は、さらに、読取指示が入力されたときに、センサが検出する情報コード読取装置の運動状態が予め設定された運動状態である場合には、照明部から光を照射させない、
請求項1の情報コード読取装置。
The sensor can further detect the movement state of the information code reader,
The control unit further does not irradiate light from the illumination unit when the movement state of the information code reader detected by the sensor when the reading instruction is input is a preset movement state,
The information code reading device according to claim 1.
制御部は、読取指示が入力された場合に、センサが検出する情報コード読取装置の姿勢が禁止姿勢とは異なる制限姿勢であるときは、当該制限姿勢に対応する設定発光量で照明部から光を照射させる、
請求項1又は2の情報コード読取装置。
When the reading instruction is input, if the posture of the information code reading device detected by the sensor is a restricted posture different from the prohibited posture, the control unit emits light from the illumination unit with a set light emission amount corresponding to the restricted posture. Irradiate,
The information code reading device according to claim 1 or 2.
制御部は、読取指示が入力された場合に、センサが検出する情報コード読取装置の姿勢が制限姿勢と禁止姿勢のどちらでもないときに、特定発光量で照明部から光を照射させる、
請求項3の情報コード読取装置。
When the reading instruction is input, the control unit causes the illumination unit to emit light with a specific light emission amount when the posture of the information code reading device detected by the sensor is neither the restricted posture nor the prohibited posture.
The information code reader according to claim 3.
メモリをさらに備え、
制御部は、第1の登録指示が入力される場合に、禁止姿勢をメモリに登録させることができる、
請求項1から4のいずれか一項の情報コード読取装置。
Further comprising memory,
The control unit can register the prohibited posture in the memory when the first registration instruction is input.
The information code reading device according to any one of claims 1 to 4.
制御部は、さらに、第2の登録指示が入力される場合に、禁止姿勢とは異なる制限姿勢と、制限姿勢に対応する設定発光量とを対応付けてメモリに登録させることができ、
制御部は、情報コード読取指示が入力された場合に、センサが禁止姿勢とは異なる制限姿勢を検出するときは、当該制限姿勢に対応する設定発光量で照明部から光を照射させる、
請求項5の情報コード読取装置。
Further, when the second registration instruction is input, the control unit can cause the restriction posture different from the prohibited posture and the set light emission amount corresponding to the restriction posture to be registered in the memory,
When the control unit detects a restricted posture different from the prohibited posture when the information code reading instruction is input, the control unit causes the illumination unit to emit light with a set light emission amount corresponding to the restricted posture.
The information code reading device according to claim 5.
制御部は、読取指示が入力され、照明部から光を照射させた場合に、データの読み取りに失敗すると、照明部から照射される光の発光量を増加させる、
請求項1から6のいずれか一項の情報コード読取装置。
When the reading instruction is input and the illumination unit emits light, if the data reading fails, the control unit increases the amount of light emitted from the illumination unit.
The information code reading device according to any one of claims 1 to 6.
制御部は、読取指示が入力され、照明部から光を照射させた場合に、データの読み取りに失敗し、かつ、受光部が受光した反射光に基づいて、照明部の光の照射対象が情報コードであると判断されると、照明部から照射される光の発光量を増加させる、
請求項1から6のいずれか一項の情報コード読取装置。
When the reading instruction is input and the illumination unit emits light, the control unit fails to read the data, and based on the reflected light received by the light receiving unit, the light irradiation target of the illumination unit is information If it is determined to be a code, it increases the amount of light emitted from the illumination unit,
The information code reading device according to any one of claims 1 to 6.
JP2014168656A 2014-08-21 2014-08-21 Information code reading device Pending JP2016045647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014168656A JP2016045647A (en) 2014-08-21 2014-08-21 Information code reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014168656A JP2016045647A (en) 2014-08-21 2014-08-21 Information code reading device

Publications (1)

Publication Number Publication Date
JP2016045647A true JP2016045647A (en) 2016-04-04

Family

ID=55636180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014168656A Pending JP2016045647A (en) 2014-08-21 2014-08-21 Information code reading device

Country Status (1)

Country Link
JP (1) JP2016045647A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110852127A (en) * 2019-10-26 2020-02-28 深圳盈达信息科技有限公司 Bar code reading method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110852127A (en) * 2019-10-26 2020-02-28 深圳盈达信息科技有限公司 Bar code reading method and terminal

Similar Documents

Publication Publication Date Title
JP6847124B2 (en) Adaptive lighting systems for mirror components and how to control adaptive lighting systems
US9122900B2 (en) Biometric authentication device and computer readable, non-transitory medium
WO2012124730A1 (en) Detection device, input device, projector, and electronic apparatus
JP6870474B2 (en) Gaze detection computer program, gaze detection device and gaze detection method
JP7018915B2 (en) Portable information code display device
JP2014137762A (en) Object detector
JP6731460B2 (en) Method for controlling a projector and associated electronic device
JP6540021B2 (en) Printing device, operation control method for printing device, and operation control program for printing device
CN113420700B (en) Palm biological characteristic acquisition device and method
JP2009015518A (en) Eye image photographing device and authentication device
JP2016045647A (en) Information code reading device
US9489927B2 (en) Information processing device for controlling direction of display image and control method thereof
CN111049953B (en) Control method and device of folding screen terminal and electronic equipment
JP4910644B2 (en) Imaging device
JP4451195B2 (en) Gaze detection device
JP6098386B2 (en) projector
JP2009178300A (en) Biological information reader
JP5531751B2 (en) Display device
JP2019215274A (en) Information processing device and method for controlling information processing device
JP2015138474A (en) Bar code reading device
US10762318B2 (en) Light projected feedback for guiding hand movements
JP7063045B2 (en) Line-of-sight detection device, line-of-sight detection method and line-of-sight detection program
JP6398809B2 (en) Information code reader
JP6263932B2 (en) Optical information reader
JP2019024571A (en) Visual line detection device and visual line detection method