JP2014165636A - Electronic device, control method of the same, and program - Google Patents

Electronic device, control method of the same, and program Download PDF

Info

Publication number
JP2014165636A
JP2014165636A JP2013034538A JP2013034538A JP2014165636A JP 2014165636 A JP2014165636 A JP 2014165636A JP 2013034538 A JP2013034538 A JP 2013034538A JP 2013034538 A JP2013034538 A JP 2013034538A JP 2014165636 A JP2014165636 A JP 2014165636A
Authority
JP
Japan
Prior art keywords
detection distance
electronic device
proximity sensor
function
detection
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
JP2013034538A
Other languages
Japanese (ja)
Inventor
Masahiko Tsuchida
正彦 土田
Hiroyuki Matsumoto
裕行 松本
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.)
NEC Casio Mobile Communications Ltd
Original Assignee
NEC Casio Mobile Communications Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Casio Mobile Communications Ltd filed Critical NEC Casio Mobile Communications Ltd
Priority to JP2013034538A priority Critical patent/JP2014165636A/en
Publication of JP2014165636A publication Critical patent/JP2014165636A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

PROBLEM TO BE SOLVED: To further improve convenience by using a proximity sensor in other usages as well.SOLUTION: An electronic device 102 has: detection distance setting means 101 which sets the detection distance of a proximity sensor 100 to either of a first detection distance and a second detection distance which is longer than the first detection distance; and control means 103 which controls each section of the electronic device 102 so that the electronic device 102 may perform a first function while the detection distance of the proximity sensor 100 is set to the first detection distance and controls each section of the electronic device 102 so that the electronic device 102 may perform a second function which is different from the first function while the detection distance of the proximity sensor 100 is set to the second detection distance. The electronic device can be operated even in the second function in addition to the first function, thereby improving convenience.

Description

本発明は、電子機器、その制御方法及びプログラムに関し、特に近接センサを備えた電子機器、その制御方法及びプログラムに関する。   The present invention relates to an electronic device, a control method thereof, and a program, and more particularly, to an electronic device including a proximity sensor, a control method thereof, and a program thereof.

近年、携帯電話機等の電子機器にあっては、その入力インターフェースにタッチパネルを用いていることが多い。これはタッチパネルを透して表示画面上のボタン等のオブジェクトを視認しつつ、所望のオブジェクトに指先で触れるという直感的操作を行うことができるからであるが、一方で、このようなタッチパネルは、通話時に頬や耳などがタッチパネルに触れてしまい、意図しない操作が行われてしまうという欠点があった。   In recent years, electronic devices such as mobile phones often use a touch panel as an input interface. This is because an intuitive operation of touching a desired object with a fingertip while visually recognizing an object such as a button on the display screen through the touch panel can be performed. There was a drawback in that an unintended operation was performed because a cheek or ear touched the touch panel during a call.

この欠点を解消するために、近接センサを利用する技術(以下、関連技術という)が知られている(下記の特許文献参照)。
ここで、近接センサとは、物体(ヒトやモノ)の接近や近傍の検出対象の有無を非接触で検出するものの総称であり、その検出原理から、誘導形、静電容量形、超音波形、光電形、磁気形などの種類がある(JIS C 8201−5−2:低圧開閉装置および制御装置/第5部制御回路機器及び開閉素子/第2節近接スイッチ)。
In order to eliminate this drawback, a technique using a proximity sensor (hereinafter referred to as related technique) is known (see the following patent document).
Here, the proximity sensor is a general term for detecting the proximity of an object (human or object) or the presence or absence of a nearby detection target without contact. From the detection principle, an inductive type, a capacitance type, an ultrasonic type , Photoelectric type, magnetic type, etc. (JIS C 8201-5-2: low-voltage switchgear and control device / part 5 control circuit equipment and switchgear / second-node proximity switch).

関連技術では、近接センサの検出距離(一般的に0〜数cm)内で物体が検出された場合にタッチパネルの動作を無効にしている。このため、通話時における意図しないタッチ操作を防止することができる。   In the related art, the operation of the touch panel is invalidated when an object is detected within the detection distance (generally 0 to several cm) of the proximity sensor. For this reason, an unintended touch operation during a call can be prevented.

特開2012−049688号公報JP 2012-049688 A

しかしながら、関連技術にあっては、近接センサを一つの用途(意図しないタッチ操作の防止)にしか利用していないため、電子機器のさらなる利便性の向上を図るという点で改善すべき課題がある。   However, since the related technology uses the proximity sensor only for one purpose (preventing unintended touch operation), there is a problem to be improved in terms of further improving the convenience of the electronic device. .

そこで、本発明は、近接センサを他の用途にも利用できるようにし、これによってさらなる利便性の向上を図った電子機器、その制御方法及びプログラムを提供することにある。   SUMMARY OF THE INVENTION Accordingly, the present invention is to provide an electronic device, a control method thereof, and a program that make it possible to use the proximity sensor for other purposes, thereby further improving convenience.

本発明の電子機器は、近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定手段と、前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御手段とを備えたことを特徴とする。
本発明の制御方法は、近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定工程と、前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御工程とを含むことを特徴とする。
本発明のプログラムは、電子機器のコンピュータを、近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定手段、前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御手段として機能させることを特徴とする。
The electronic apparatus according to the present invention includes a detection distance setting unit that sets a detection distance of the proximity sensor to one of a first detection distance and a second detection distance that is longer than the first detection distance; and the proximity sensor While the detection distance is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor is the second detection distance. And a control means for controlling each part of the electronic device so that the electronic device executes a second function different from the first function while the detection distance is set. .
The control method of the present invention includes a detection distance setting step of setting a detection distance of a proximity sensor to one of a first detection distance and a second detection distance longer than the first detection distance; and the proximity sensor While the detection distance is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor is the second detection distance. And a control step of controlling each part of the electronic device so that the electronic device executes a second function different from the first function while the detection distance is set.
The program of the present invention is a detection distance setting means for setting a computer of an electronic device to a detection distance of a proximity sensor as one of a first detection distance and a second detection distance longer than the first detection distance. While the detection distance of the proximity sensor is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor Is set as the control means for controlling each part of the electronic device so that the electronic device executes the second function different from the first function while the second detection distance is set. Features.

本発明によれば、近接センサを他の用途にも利用できるようにしたので、さらなる利便性の向上を図った電子機器、その制御方法及びプログラムを提供することができる。   According to the present invention, since the proximity sensor can be used for other purposes, it is possible to provide an electronic device that is further improved in convenience, a control method thereof, and a program.

第1の実施形態に係る携帯電話機1の外観図である。1 is an external view of a mobile phone 1 according to a first embodiment. 携帯電話機1の概念的な内部ブロック図である。3 is a conceptual internal block diagram of the mobile phone 1. FIG. 近接センサ5のブロック構成図である。3 is a block configuration diagram of a proximity sensor 5. FIG. 近接センサ5の実装構造を示す図である。It is a figure which shows the mounting structure of the proximity sensor 5. FIG. 制御部20のCPU20aで実行する制御プログラムの概略フローを示す図である。It is a figure which shows the schematic flow of the control program run by CPU20a of the control part 20. FIG. 警戒モードの設定例を示す図である。It is a figure which shows the example of a setting of alert mode. 第2の実施形態の構成図である。It is a block diagram of 2nd Embodiment. 第2の実施形態の工程図である。It is process drawing of 2nd Embodiment.

以下、本発明の実施形態を、スマートフォン等の携帯電話機への適用を例にして、図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings, taking application to a mobile phone such as a smartphone as an example.

<第1の実施形態>
図1は、第1の実施形態に係る携帯電話機1の外観図である。この図において、電子機器の一例としての携帯電話機1は、たとえば、所定厚みを有する平板状(タブレット状)の筐体2を有しており、筐体2の主面2a(表面であって主たる操作対象となる面のこと)に透明なタッチパネル3を設けるとともに、そのタッチパネル3の裏側に表示部4を併設している。
<First Embodiment>
FIG. 1 is an external view of a mobile phone 1 according to the first embodiment. In this figure, a mobile phone 1 as an example of an electronic device has, for example, a flat plate (tablet-shaped) case 2 having a predetermined thickness, and a main surface 2a (the main surface of the case 2 is the main surface). A transparent touch panel 3 is provided on a surface to be operated), and a display unit 4 is provided on the back side of the touch panel 3.

また、タッチパネル3の上端辺側の筐体2の主面2aに近接センサ5と、スピーカ6と、前面カメラ7とを設けるとともに、そのタッチパネル3の下端辺側の筐体2の主面2aに複数の物理ボタン(ここでは3個の物理ボタン8〜10)と、マイク11とを設け、さらに、筐体2の背面2b(主面2aの反対側の面)に背面カメラ12と、カメラライト12aとを設けている。なお、筐体2の任意部分に電源スイッチやバッテリ充電用端子などが設けられているが、図では省略している。   In addition, a proximity sensor 5, a speaker 6, and a front camera 7 are provided on the main surface 2 a of the casing 2 on the upper end side of the touch panel 3, and the main surface 2 a of the casing 2 on the lower end side of the touch panel 3. A plurality of physical buttons (here, three physical buttons 8 to 10) and a microphone 11 are provided, and a rear camera 12 and a camera light are provided on the rear surface 2b (surface opposite to the main surface 2a) of the housing 2. 12a. In addition, although a power switch, a battery charging terminal, and the like are provided in an arbitrary portion of the housing 2, they are omitted in the drawing.

図2は、携帯電話機1の概念的な内部ブロック図である。この図において、携帯電話機1は、無線送受信部13、音声入出力部14、操作部15、センサ部16、表示部4、タッチパネル3、カメラ部17、メモリ部18、電源部19及び制御部20を備える。   FIG. 2 is a conceptual internal block diagram of the mobile phone 1. In this figure, a cellular phone 1 includes a wireless transmission / reception unit 13, a voice input / output unit 14, an operation unit 15, a sensor unit 16, a display unit 4, a touch panel 3, a camera unit 17, a memory unit 18, a power supply unit 19, and a control unit 20. Is provided.

無線送受信部13は、制御部20の制御の元、アンテナ21を介して最寄りの携帯電話基地局(不図示)との間で無線通信によるデジタルデータの送受信を行う。   The wireless transmission / reception unit 13 performs transmission / reception of digital data by wireless communication with the nearest mobile phone base station (not shown) via the antenna 21 under the control of the control unit 20.

音声入出力部14は、制御部20から適宜に出力されるデジタルの音響信号をアナログ信号に変換してスピーカ6から拡声したり、マイク11で拾った音響信号をデジタルデータに変換して制御部20に出力したりする。   The voice input / output unit 14 converts a digital acoustic signal appropriately output from the control unit 20 into an analog signal to be output from the speaker 6, or converts an acoustic signal picked up by the microphone 11 into digital data to control the control unit Or output to 20.

操作部15は、物理ボタン8〜10を含み、物理ボタン8〜10のいずれかが操作されたときに、その操作された物理ボタン8〜10に対応した操作信号を発生して制御部20に出力する。   The operation unit 15 includes physical buttons 8 to 10. When any one of the physical buttons 8 to 10 is operated, an operation signal corresponding to the operated physical button 8 to 10 is generated to the control unit 20. Output.

センサ部16は、近接センサ5、加速度センサ22及び磁気センサ23を含み、各センサは、制御部20の制御の元、各々の検出データを制御部20に出力する。加速度センサ22は筐体2に加えられた運動の加速度(XYZの三軸方向の加速度)を検出し、磁気センサ23は筐体11の向き(磁方位)を検出する。近接センサ5の詳細は後で説明する。   The sensor unit 16 includes a proximity sensor 5, an acceleration sensor 22, and a magnetic sensor 23, and each sensor outputs each detection data to the control unit 20 under the control of the control unit 20. The acceleration sensor 22 detects the acceleration of the motion applied to the housing 2 (XYZ triaxial acceleration), and the magnetic sensor 23 detects the orientation (magnetic orientation) of the housing 11. Details of the proximity sensor 5 will be described later.

表示部4は、たとえば、液晶ディスプレイやEL(Electro-Luminescence)パネルまたは有機液晶パネルなどの二次元表示デバイスであり、制御部20から適宜に出力される文字情報や画像情報またはそれらの混在情報を目視可能な状態で表示面に表示する。表示部4の表示面にはタッチペンや人体の一部(一般的には指先:以下、指先で代表する)の接触や接近を検知するタッチパネル3が併設されており、このタッチパネル3は、指先のタッチを検出し、そのタッチ位置を示す情報を制御部20に出力する。   The display unit 4 is a two-dimensional display device such as a liquid crystal display, an EL (Electro-Luminescence) panel, or an organic liquid crystal panel, for example, and displays character information, image information, or mixed information appropriately output from the control unit 20. Display on the display surface in a visible state. The display surface of the display unit 4 is provided with a touch panel 3 for detecting contact and approach of a touch pen or a part of a human body (generally, a fingertip: hereinafter, represented by a fingertip). A touch is detected, and information indicating the touch position is output to the control unit 20.

カメラ部17は、前面カメラ7、背面カメラ12及びカメラライト12aを含む。前面カメラ7は制御部20の制御の元、筐体2の主面2aの鉛直方向の画像を撮影して制御部20に出力し、背面カメラ12は制御部20の制御の元、筐体2の背面2bの鉛直方向の画像を撮影して制御部20に出力する。カメラライト12aは制御部20からの指令に応答して点灯し、背面カメラ12の撮影範囲を所定光量で照明する。ただし、カメラライト12aの役目はこれに限定されない。後述するように、単なる照明光源として用いられることもある。   The camera unit 17 includes a front camera 7, a rear camera 12, and a camera light 12a. The front camera 7 takes a vertical image of the main surface 2a of the housing 2 under the control of the control unit 20 and outputs the image to the control unit 20, and the rear camera 12 controls the housing 2 under the control of the control unit 20. An image in the vertical direction of the back surface 2 b of the camera is taken and output to the control unit 20. The camera light 12a is turned on in response to a command from the control unit 20, and illuminates the photographing range of the rear camera 12 with a predetermined amount of light. However, the role of the camera light 12a is not limited to this. As will be described later, it may be used as a simple illumination light source.

メモリ部18は、たとえば、フラッシュメモリやシリコンディスクあるいはハードディスクなどの書き換え可能不揮発性記憶デバイスで構成された記憶要素である。このメモリ部18は、前面カメラ7や背面カメラ12の撮像データや電話帳データ及びメールデータ等の様々なユーザデータを記憶保持する。   The memory unit 18 is a storage element composed of a rewritable nonvolatile storage device such as a flash memory, a silicon disk, or a hard disk. The memory unit 18 stores various user data such as imaging data of the front camera 7 and the rear camera 12, telephone directory data, and mail data.

電源部19は、一次電池または充電可能な二次電池からなるバッテリを含み、このバッテリの電力から携帯電話機1の動作に必要な各種電圧を発生して各部に供給する。   The power supply unit 19 includes a battery including a primary battery or a rechargeable secondary battery, and generates various voltages necessary for the operation of the mobile phone 1 from the power of the battery and supplies the voltages to the respective units.

制御部20は、コンピュータまたはマイクロコンピュータ(Central Processing Unit、以下、CPUと略す)20aや読み出し専用半導体メモリ(Read Only Memory、以下、ROMと略す)20b及び高速半導体メモリ(Random Access Memory、以下、RAMと略す)20cならびに不図示の周辺回路を含むプログラム制御方式の制御要素である。この制御部20は、あらかじめROM20bに格納されている基本プログラム(Operating System:OS)や応用プログラム(制御プログラムともいう)などのソフトウェアリソースをRAM20cにロードしてCPU20aで実行することにより、携帯電話機1の全体動作を統括制御する。ROM20bは書き換え可能な不揮発性半導体メモリ(Programmable Read Only Memory:PROM)であってもよい。   The control unit 20 includes a computer or microcomputer (Central Processing Unit, hereinafter abbreviated as CPU) 20a, a read-only semiconductor memory (Read Only Memory, hereinafter abbreviated as ROM) 20b, and a high-speed semiconductor memory (Random Access Memory, hereinafter referred to as RAM). This is a control element of a program control system including 20c and peripheral circuits (not shown). The control unit 20 loads software resources such as a basic program (Operating System: OS) and application programs (also referred to as control programs) stored in the ROM 20b in advance into the RAM 20c and executes them on the CPU 20a, thereby causing the mobile phone 1 Overall control of the overall operation. The ROM 20b may be a rewritable nonvolatile semiconductor memory (Programmable Read Only Memory: PROM).

次に、近接センサ5について詳しく説明する。
冒頭で説明したとおり、近接センサ5の種類は、誘導形や静電容量形、超音波形、光電形または磁気形など様々である。発明の思想上、実施形態の近接センサ5はどの種類を用いてもかまわない。ここでは一例として光電形を使用することにする。
Next, the proximity sensor 5 will be described in detail.
As described at the beginning, there are various types of proximity sensors 5 such as an induction type, a capacitance type, an ultrasonic type, a photoelectric type, and a magnetic type. Any kind of proximity sensor 5 may be used in the concept of the invention. Here, a photoelectric type is used as an example.

図3は、近接センサ5のブロック構成図である。近接センサ5は、赤外発光LED(Light Emitting Diode)等を用いた発光素子24と、センサ集積回路(オプティカルIC:Integrated Circuit)25とを含む。センサ集積回路25は、制御部20との間で双方向のデータのやりとりを行うインターフェース部26と、制御部20に対して所要のタイミングで割り込み(インタラプト:実行中の処理を中断させて強制的に指定された処理を実行させること。またはそのような処理を要求すること。)をかける割り込み部27と、制御部20からの設定データ28aや近接センサ5の検出データ28bなどを保持するレジスタ部28と、レジスタ部28に保持されている設定データ28aに従い、既定周波数の信号を発振する発振部29と、発振部29からの信号とレジスタ部28に保持されている設定データ28aに従い、発光と受光の各タイミング信号を発生するタイミング制御部30と、タイミング制御部30の出力を元に赤外光の駆動信号を発生する駆動信号発生部31と、その駆動信号に応答して発光素子24を駆動する発光駆動部32と、光/電変換素子(Optical Electrical Converter)の一種であるホトダイオードや硫化カドミウム(CdS)セル等で構成された受光素子33と、受光素子33の出力を増幅するアンプ34と、アンプ34の出力をデジタル信号に変換し、検出データ28bとしてレジスタ部28に保存するアナログ/デジタル変換部(Analog Digital Converter:ADC)35とを備える。   FIG. 3 is a block diagram of the proximity sensor 5. The proximity sensor 5 includes a light emitting element 24 using an infrared light emitting LED (Light Emitting Diode) and the like, and a sensor integrated circuit (Optical IC) 25. The sensor integrated circuit 25 includes an interface unit 26 that performs bidirectional data exchange with the control unit 20, and interrupts the control unit 20 at a required timing. The register unit holds the setting data 28a from the control unit 20, the detection data 28b of the proximity sensor 5 and the like. 28, an oscillation unit 29 that oscillates a signal of a predetermined frequency in accordance with setting data 28a held in the register unit 28, and light emission in accordance with a signal from the oscillation unit 29 and setting data 28a held in the register unit 28. A timing control unit 30 that generates each timing signal of light reception, and an infrared light drive signal based on the output of the timing control unit 30 Drive signal generation unit 31, light emission drive unit 32 that drives the light emitting element 24 in response to the drive signal, a photodiode or a cadmium sulfide (CdS) cell that is a kind of optical electrical converter (Optical Electrical Converter), etc. And an analog / digital conversion unit (Analog Digital) that converts the output of the amplifier 34 into a digital signal and stores it in the register unit 28 as detection data 28b. Converter: ADC) 35.

割り込み部27は、レジスタ部28に検出データ28b(ADC35の出力データ)が保存されたときに、その保存に応答して制御部20に対して割り込みをかけ、制御部20は、この割り込みに応答してレジスタ部28に保存されている検出データ28b(ADC35の出力データ)をインターフェース部26を介して読み込む。   When the detection data 28b (output data of the ADC 35) is stored in the register unit 28, the interrupt unit 27 interrupts the control unit 20 in response to the storage, and the control unit 20 responds to the interrupt. Then, the detection data 28 b (the output data of the ADC 35) stored in the register unit 28 is read via the interface unit 26.

上記のとおり、レジスタ部28は設定データ28aと検出データ28bとを保持する。検出データ28bはADC35の出力データであり、要するに、受光素子33の受光光量の大きさに対応したデータである。一方、設定データ28aは、この近接センサ5の動作を規定するために制御部20から適宜に設定される様々な制御データであり、この設定データ28aは、少なくとも、受発光のタイミング(受発光の長さや繰り返しの周期等)を規定するタイミング設定データ28cと、近接センサ5の検出距離を規定するための検出距離設定データ28cとを含む。   As described above, the register unit 28 holds the setting data 28a and the detection data 28b. The detection data 28b is output data of the ADC 35, and in short, is data corresponding to the magnitude of the amount of light received by the light receiving element 33. On the other hand, the setting data 28a is various control data appropriately set by the control unit 20 in order to define the operation of the proximity sensor 5. The setting data 28a includes at least the timing of light reception / emission (light emission / reception). Timing setting data 28c for defining the length, repetition cycle, etc.) and detection distance setting data 28c for defining the detection distance of the proximity sensor 5.

一般的に近接センサ5を冒頭で説明した「意図しないタッチ操作の防止」の用途で使用する場合、近接センサ5の検出距離はごく短い距離(0cm〜2cmまたは0cm〜3cm程度)になる。0cmで頬や耳等の密着を検出し、2〜3cmで頬や耳等の接近を検出する。以下、この短い検出距離のことを「第1の検出距離」ということにする。本実施形態の近接センサ5は、その検出距離を「第1の検出距離」に加えて、さらに遠方(たとえば、1m〜2m)のヒトやモノを検出するための「第2の検出距離」に設定することができる。すなわち、レジスタ部28の検出距離設定データ28dに「第1の検出距離」をセットすると、近接センサ5は0cm〜2cmまたは0cm〜3cmの距離にあるヒトやモノを検知し、また、検出距離設定データ28dに「第2の検出距離」をセットすると、近接センサ5は1m〜2mの距離にあるヒトやモノを検知する。   In general, when the proximity sensor 5 is used for the purpose of “preventing unintentional touch operation” described at the beginning, the detection distance of the proximity sensor 5 is very short (about 0 cm to 2 cm or 0 cm to 3 cm). Close contact of cheeks and ears is detected at 0 cm, and approach of cheeks and ears is detected at 2 to 3 cm. Hereinafter, this short detection distance is referred to as a “first detection distance”. In the proximity sensor 5 of the present embodiment, the detection distance is added to the “first detection distance”, and further to the “second detection distance” for detecting a far person (for example, 1 m to 2 m) or an object. Can be set. That is, when the “first detection distance” is set in the detection distance setting data 28d of the register unit 28, the proximity sensor 5 detects a person or an object at a distance of 0 cm to 2 cm or 0 cm to 3 cm, and sets the detection distance. When the “second detection distance” is set in the data 28d, the proximity sensor 5 detects a person or an object at a distance of 1 to 2 m.

図4は、近接センサ5の実装構造を示す図である。この図において、近接センサ5の発光素子24と受光素子33は、携帯電話機1の内部に設けられた基板36に固定載置されている。発光素子24と受光素子33はともに透明樹脂37、38によって覆われており、さらに、発光素子24と受光素子33の間に赤外光の遮光壁39が設けられている。発光素子24の発光方向と受光素子33の受光方向はほぼ並行である。発光素子24からの赤外光Paは筐体2の主面2aの一部をなす赤外光透過窓40を透して主面2aの鉛直方向に照射されるようになっており、任意の物体41(ヒトやモノ)で反射した赤外光Pbは赤外光透過窓40を透して受光素子33で受光され、その受光光量に応じた検出データ28bが近接センサ5のレジスタ部28に保存されるようになっている。   FIG. 4 is a diagram showing a mounting structure of the proximity sensor 5. In this figure, the light emitting element 24 and the light receiving element 33 of the proximity sensor 5 are fixedly mounted on a substrate 36 provided inside the mobile phone 1. Both the light emitting element 24 and the light receiving element 33 are covered with transparent resins 37 and 38, and an infrared light shielding wall 39 is provided between the light emitting element 24 and the light receiving element 33. The light emitting direction of the light emitting element 24 and the light receiving direction of the light receiving element 33 are substantially parallel. The infrared light Pa from the light emitting element 24 is irradiated in the vertical direction of the main surface 2a through the infrared light transmission window 40 that forms a part of the main surface 2a of the housing 2. The infrared light Pb reflected by the object 41 (human or object) passes through the infrared light transmission window 40 and is received by the light receiving element 33, and detection data 28 b corresponding to the received light amount is sent to the register unit 28 of the proximity sensor 5. It is supposed to be saved.

近接センサ5を用いた物体検知の流れは、以下のとおりである。まず、発光素子24から物体41に向けて赤外光Paを照射し、その物体41からの反射光Pbを受光素子33で受光して電気信号に変換し、アンプ34で増幅し、ADC35でデジタル値に変換し、そのデジタル値を検出データ28bとしてレジスタ部28に保存する。次いで、その検出データ28bを制御部20に取り込み、制御部20で、検出データ28bの大きさが所定の閾値を超えているか否かを調べ、閾値を超えている場合に物体41の近接を判断する。   The flow of object detection using the proximity sensor 5 is as follows. First, the infrared light Pa is emitted from the light emitting element 24 toward the object 41, the reflected light Pb from the object 41 is received by the light receiving element 33, converted into an electric signal, amplified by the amplifier 34, and digitalized by the ADC 35. The value is converted into a value, and the digital value is stored in the register unit 28 as detection data 28b. Next, the detection data 28b is taken into the control unit 20, and the control unit 20 checks whether or not the size of the detection data 28b exceeds a predetermined threshold. If the detection data 28b exceeds the threshold, the proximity of the object 41 is determined. To do.

近接センサ5の検出距離は、もっぱら発光素子24の光量と、制御部20で使用する閾値の大きさとによって決まる。光量を大きくすると検出距離が長くなり、光量を少なくすると検出距離が短くなる。また、閾値を低くすると検出距離が長くなり、閾値を高くすると検出距離が短くなる。実施形態の近接センサ5は、前記のとおり、二つの検出距離(第1の検出距離と第2の検出距離)で選択的に使用することができる。この選択的使用は、発光素子24の発光光量の増減制御と、閾値の大小制御とのいずれか一方で行ってもよく、あるいは、それらの組み合わせで行ってもよいが、実用上は後者の組み合わせが望ましい。発光光量は物理的な制約や法的な制約から一定の上限があるからであり、また、閾値についても低すぎるとノイズ等の影響を受けて誤検知が増えるからである。   The detection distance of the proximity sensor 5 is determined solely by the light amount of the light emitting element 24 and the threshold value used by the control unit 20. Increasing the amount of light increases the detection distance, and decreasing the amount of light decreases the detection distance. Further, when the threshold value is lowered, the detection distance becomes longer, and when the threshold value is raised, the detection distance becomes shorter. As described above, the proximity sensor 5 of the embodiment can be selectively used at two detection distances (a first detection distance and a second detection distance). This selective use may be performed by any one of the increase / decrease control of the light emission amount of the light emitting element 24 and the control of the threshold value, or may be performed by a combination thereof, but the latter combination is practically used. Is desirable. This is because the amount of emitted light has a certain upper limit due to physical restrictions and legal restrictions, and if the threshold is too low, false detection increases due to the influence of noise or the like.

したがって、実際上は、閾値の変更と発光素子24の光量調節との組み合わせが現実的である。つまり、「第1の検出距離」で使用する場合は、近接センサ5の発光素子24の光量を「第1の光量」にすると共に、制御部20の閾値を「第1の閾値」にし、一方、「第2の検出距離」で使用する場合は、近接センサ5の発光素子24の光量を第1の光量よりも大きい「第2の光量」にすると共に、制御部20の閾値を第1の閾値よりも小さい「第2の閾値」にすることが現実的である。ただし、実施形態の思想上は、これに限定されない。発光素子24の光量制御で「第1の検出距離」と「第2の検出距離」の双方を達成できるのであれば、閾値を変える必要はなく、あるいは、閾値の変更で「第1の検出距離」と「第2の検出距離」の双方を達成できるのであれば、発光素子24の光量を変更する必要はない。   Therefore, in practice, a combination of changing the threshold value and adjusting the light amount of the light emitting element 24 is realistic. In other words, when used at the “first detection distance”, the light amount of the light emitting element 24 of the proximity sensor 5 is set to “first light amount”, and the threshold value of the control unit 20 is set to “first threshold value”. , When used at the “second detection distance”, the light amount of the light emitting element 24 of the proximity sensor 5 is set to be a “second light amount” larger than the first light amount, and the threshold value of the control unit 20 is set to the first threshold value. It is practical to set the “second threshold value” smaller than the threshold value. However, the concept of the embodiment is not limited to this. If both the “first detection distance” and the “second detection distance” can be achieved by controlling the light amount of the light emitting element 24, it is not necessary to change the threshold value, or the “first detection distance” can be changed by changing the threshold value. The light quantity of the light emitting element 24 does not need to be changed as long as both of “” and “second detection distance” can be achieved.

図5は、制御部20のCPU20aで実行する制御プログラムの概略フローを示す図である。この制御プログラムは、携帯電話機1の電源がオンになっている間、CPU20aにより所定の短い周期で繰り返し実行される。   FIG. 5 is a diagram showing a schematic flow of a control program executed by the CPU 20 a of the control unit 20. This control program is repeatedly executed at a predetermined short cycle by the CPU 20a while the power of the mobile phone 1 is on.

この制御プログラムを開始すると、CPU20aは、まず、携帯電話機1の動作モードが所定のモード(以下、警戒モードという)に設定されているか否かを判定する(ステップS11)。ここで、近接センサ5の用途の一つは冒頭でも説明したとおり、タッチパネル3の意図しない操作を防止することにある。この用途のことを「通常用途」ということにする。一方、警戒モードは、近接センサ5を通常用途とは異なる他の用途に用いるためのモードのことをいい、この用途のことを「防犯用途」ということにする。   When this control program is started, the CPU 20a first determines whether or not the operation mode of the mobile phone 1 is set to a predetermined mode (hereinafter referred to as a warning mode) (step S11). Here, one of the uses of the proximity sensor 5 is to prevent an unintended operation of the touch panel 3 as described at the beginning. This application is called “normal use”. On the other hand, the alert mode refers to a mode for using the proximity sensor 5 for another use different from the normal use, and this use is referred to as a “crime prevention use”.

警戒モードは、携帯電話機1の使用者(ユーザ)によって意図的に設定される。
図6は、警戒モードの設定例を示す図である。警戒モードを設定しようとするユーザは、たとえば、物理ボタンの一つ(ここでは一例として中央の物理ボタン9)を長押しする。制御部20は、この物理ボタン9の長押しを検出すると(ステップS100のYES)、携帯電話機1の動作モードを「警戒モード」に設定(ステップS101)するとともに、表示部4に所要のメッセージ4aを表示して、ユーザに対し、警戒モードが設定されたことを報知する(ステップS103)。警戒モードの解除も同様に物理ボタン9の長押しで行ってもよい。
The alert mode is intentionally set by the user (user) of the mobile phone 1.
FIG. 6 is a diagram illustrating a setting example of the alert mode. For example, the user who wants to set the alert mode presses and holds one of the physical buttons (here, the central physical button 9 as an example). When the control unit 20 detects a long press of the physical button 9 (YES in step S100), the control unit 20 sets the operation mode of the mobile phone 1 to “warning mode” (step S101) and also displays a required message 4a on the display unit 4. Is displayed to notify the user that the alert mode has been set (step S103). Similarly, the warning mode may be canceled by long-pressing the physical button 9.

<通常用途>
再び、図5に戻り、警戒モードが設定されていない場合(ステップS11のNO判定)、CPU20aは、近接センサ5の検出距離を「第1の検出距離」に設定し(ステップS12)、近接センサ5から検知データ28bを取り込み、その検知データ28bと所定の閾値(第1の閾値)とを比較して、検知データ28b、つまり、受光素子33の受光光量が第1の閾値を超えているか否かを判定する(ステップS13)。そして、超えていなければタッチパネル3の動作を有効にして(ステップS14)フローを終了するが、超えていればタッチパネル3の動作を無効にして(ステップS15)フローを終了する。これにより、頬や耳などがタッチパネル3に接触しまたはごく接近した場合の意図しないタッチ操作を防止することができる。
<Normal use>
Returning to FIG. 5 again, when the alert mode is not set (NO determination in step S11), the CPU 20a sets the detection distance of the proximity sensor 5 to the “first detection distance” (step S12), and the proximity sensor 5, the detection data 28b is taken in, and the detection data 28b is compared with a predetermined threshold (first threshold) to determine whether or not the detection data 28b, that is, the amount of light received by the light receiving element 33 exceeds the first threshold. Is determined (step S13). If it does not exceed, the operation of the touch panel 3 is enabled (step S14), and the flow ends. If it exceeds, the operation of the touch panel 3 is disabled (step S15) and the flow ends. Thereby, an unintended touch operation when a cheek, an ear, or the like touches or comes close to the touch panel 3 can be prevented.

<防犯用途>
一方、警戒モードが設定されていた場合(ステップS11のYES判定)、CPU20aは、近接センサ5の検出距離を「第1の検出距離」よりも長い「第2の検出距離」に設定し(ステップS16)、近接センサ5から検知データ28bを取り込み、その検知データ28bと所定の閾値(第1の閾値よりも小さい第2の閾値)とを比較して、検知データ28b、つまり、受光素子33の受光光量が第2の閾値を超えているか否かを判定する(ステップS17)。そして、超えていなければ所定の警戒処理(詳細は後述)を実行せずまたは実行中であればその警戒処理を中止して(ステップS18)フローを終了するが、超えていれば所定の警戒処理の実行を開始して(ステップS19)フローを終了する。
<Security use>
On the other hand, if the alert mode is set (YES determination in step S11), the CPU 20a sets the detection distance of the proximity sensor 5 to a “second detection distance” that is longer than the “first detection distance” (step S11). S16), the detection data 28b is fetched from the proximity sensor 5, and the detection data 28b is compared with a predetermined threshold value (second threshold value smaller than the first threshold value) to detect the detection data 28b, that is, the light receiving element 33. It is determined whether the amount of received light exceeds a second threshold (step S17). If it does not exceed, the predetermined warning process (details will be described later) is not executed, or if it is being executed, the warning process is stopped (step S18), and the flow is terminated. Is started (step S19), and the flow is terminated.

所定の警戒処理はいろいろ考えられる。たとえば、以下の(1)〜(3)のようなものであってもよい。
(1)「第2の検出距離」に物体41が接近したことを検知して、予め設定されている登録先に自動発報を行い、着呼応答で予め録音した音声を送出して、携帯電話機1の近くに物体41が接近したことを伝えるという警戒処理。これにより、本来ヒトやモノが近づかない場所の防犯機能を実現することができる。自動発報の伝達手段として電子メールを使えば、登録先の電子メールアドレスに宛てに予め設定されている文書を自動送信することができる。たとえば、警戒モードに設定した携帯電話機1を自動車の車内に置いておけば、車内への不審者の侵入を検知して登録先にメールや音声で通報することができる。また、この場合、加速度センサ22や磁気センサ23を用いて車体の揺れ検出するようにしてもよい。近接センサ5の死角から侵入された場合でも車体の揺れから侵入を検知できる。
Various predetermined alert processes can be considered. For example, the following (1) to (3) may be used.
(1) Detecting that the object 41 has approached the “second detection distance”, automatically issuing information to a preset registration destination, sending a pre-recorded voice as an incoming call response, and carrying it A warning process that tells that the object 41 has approached the telephone 1. As a result, it is possible to realize a crime prevention function in a place where humans and objects are not originally accessible. If e-mail is used as a means for transmitting automatic notification, it is possible to automatically transmit a document set in advance to the registered e-mail address. For example, if the mobile phone 1 set in the alert mode is placed in the car, it is possible to detect the intrusion of the suspicious person into the car and notify the registration destination by e-mail or voice. In this case, the vehicle body shake may be detected using the acceleration sensor 22 or the magnetic sensor 23. Even when the proximity sensor 5 enters from the blind spot, the intrusion can be detected from the shaking of the vehicle body.

(2)「第2の検出距離」に物体41が接近したことを検知して、携帯電話機1の前面カメラ7や背面カメラ12で静止画撮影または動画撮影し、その撮影画像をメモリ部18に保存するという警戒処理。使用するカメラは近接センサ5の検出方向と一致しているカメラ(実施形態では前面カメラ7)を使うことが望ましい。また、動画の撮影記録と同時に前記(1)の警戒処理を並行して行ってもよい。また、動画情報をメモリ部18に保存するのではなく、通信機能を介してネットワークサーバ上に保存したり、あるいは、ネットワークを介して遠方の端末から見られるようにしてもよい。また、前記(1)の警戒処理と同様に加速度センサ22や磁気センサ23を用いて揺れの検出を行い、近接センサ5の出力と共に人感の判断に使用してもよい。 (2) Detecting that the object 41 has approached the “second detection distance”, taking a still image or a moving image with the front camera 7 or the rear camera 12 of the mobile phone 1, and storing the captured image in the memory unit 18. Warning process to save. It is desirable to use a camera (front camera 7 in the embodiment) that matches the detection direction of the proximity sensor 5 as the camera to be used. The warning process (1) may be performed in parallel with the shooting and recording of the moving image. Further, the moving image information may not be stored in the memory unit 18, but may be stored on a network server via a communication function, or may be viewed from a remote terminal via a network. Further, similarly to the warning process (1), the acceleration sensor 22 and the magnetic sensor 23 may be used to detect shaking, and may be used together with the output of the proximity sensor 5 to determine human feeling.

(3)「第2の検出距離」に物体41が接近したことを検知して、携帯電話機1のカメラライト12aを点灯するようにした警戒処理。これにより、たとえば、夜間の就寝中に緊急事態(地震や火事等)に遭遇したときに、携帯電話機1の近接センサ5に向けて手などをかざすことにより、非常照明を得ることができ、緊急時の避難行動を安全迅速に行うことができる。 (3) Warning processing in which it is detected that the object 41 has approached the “second detection distance” and the camera light 12a of the mobile phone 1 is turned on. Thus, for example, when an emergency situation (earthquake or fire, etc.) is encountered while sleeping at night, emergency lighting can be obtained by holding a hand or the like toward the proximity sensor 5 of the mobile phone 1. Evacuation behavior can be performed quickly and safely.

以上のとおり、第1の実施形態の携帯電話機1によれば、一つの近接センサ5をタッチパネル3の意図しない操作を防止するという「通常用途」と、携帯電話機1へのモノやヒトの接近を監視するという「防犯用途」の二つの用途で使用することができるので、さらなる利便性の向上を図った携帯電話機1を提供することができる。   As described above, according to the mobile phone 1 of the first embodiment, the “normal use” in which one proximity sensor 5 prevents an unintended operation of the touch panel 3 and the proximity of an object or a person to the mobile phone 1 are prevented. Since it can be used for two purposes of “crime prevention use” of monitoring, it is possible to provide the mobile phone 1 with further improved convenience.

また、かかる二つの用途利用は、ハードウェアの変更を必要とせず、もっぱら制御プログラムの改良によって行うことができるから、近接センサが標準で組み込まれている各種の電子機器に、容易且つコストをかけずに簡単に適用することができるという特有のメリットもある。   In addition, since the use of these two applications does not require hardware changes and can be performed solely by improving the control program, it is easy and costly to use various electronic devices with built-in proximity sensors. There is also a peculiar advantage that it can be applied easily.

なお、実施形態の適用は、携帯電話やスマートフォンに限らない。他の装置(例えば、ゲーム機、タブレットPC(Personal Computer)、ノートPC、PDA(Personal Data Assistants:携帯情報端末)、または、デジタルカメラなどにも適用可能である。   In addition, application of embodiment is not restricted to a mobile phone or a smart phone. The present invention can also be applied to other devices (for example, game machines, tablet PCs (Personal Computers), notebook PCs, PDAs (Personal Data Assistants: personal digital assistants), or digital cameras.

<第2の実施形態>
図7は、第2の実施形態に係る電子機器の構成図である。
この図において、第1の実施形態の携帯電話機1に相当する電子機器102は、検出距離設定手段101(第1の実施形態の制御部20に相当)と、制御手段103(実施形態の制御部20に相当)とを含む。
検出距離設定手段101は第1の実施形態の制御部20に相当し、制御手段103は第1の実施形態の制御部20に相当する。
検出距離設定手段101は、近接センサ100(第1の実施形態の近接センサ5に相当)の検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する。
制御手段103は、前記近接センサ100の検出距離が前記第1の検出距離に設定されている間は当該電子機器102が第1の機能を実行するように当該電子機器102の各部を制御する一方、前記近接センサ100の検出距離が前記第2の検出距離に設定されている間は当該電子機器102が前記第1の機能とは異なる第2の機能を実行するように当該電子機器102の各部を制御する。
第2の実施形態によれば、近接センサ100を他の用途にも利用できるようにしたので、さらなる利便性の向上を図った電子機器102を提供することができる。
<Second Embodiment>
FIG. 7 is a configuration diagram of an electronic apparatus according to the second embodiment.
In this figure, an electronic device 102 corresponding to the mobile phone 1 of the first embodiment includes a detection distance setting unit 101 (corresponding to the control unit 20 of the first embodiment) and a control unit 103 (control unit of the embodiment). Equivalent to 20).
The detection distance setting unit 101 corresponds to the control unit 20 of the first embodiment, and the control unit 103 corresponds to the control unit 20 of the first embodiment.
The detection distance setting unit 101 sets the detection distance of the proximity sensor 100 (corresponding to the proximity sensor 5 of the first embodiment) as either the first detection distance or the second detection distance longer than the first detection distance. Set to either.
The control means 103 controls each part of the electronic device 102 so that the electronic device 102 executes the first function while the detection distance of the proximity sensor 100 is set to the first detection distance. Each unit of the electronic device 102 performs the second function different from the first function while the detection distance of the proximity sensor 100 is set to the second detection distance. To control.
According to the second embodiment, since the proximity sensor 100 can be used for other purposes, it is possible to provide the electronic device 102 that is further improved in convenience.

図8は、第2の実施形態の工程図である。
この図に示すように、第2の実施形態の製造方法は、近接センサ200の検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定工程201と、
前記近接センサ200の検出距離が前記第1の検出距離に設定されている間は当該電子機器203が第1の機能を実行するように当該電子機器203の各部を制御する一方、前記近接センサ200の検出距離が前記第2の検出距離に設定されている間は当該電子機器203が前記第1の機能とは異なる第2の機能を実行するように当該電子機器203の各部を制御する制御工程202とを含む。
この工程によれば、近接センサ200を他の用途にも利用できるようにしたので、さらなる利便性の向上を図った電子機器の制御方法を提供することができる。
FIG. 8 is a process diagram of the second embodiment.
As shown in this figure, in the manufacturing method of the second embodiment, the detection distance of the proximity sensor 200 is set to one of the first detection distance and the second detection distance longer than the first detection distance. A detection distance setting step 201 to be set;
While the detection distance of the proximity sensor 200 is set to the first detection distance, each part of the electronic device 203 is controlled so that the electronic device 203 performs the first function, while the proximity sensor 200 A control step of controlling each part of the electronic device 203 so that the electronic device 203 executes a second function different from the first function while the detection distance is set to the second detection distance 202.
According to this step, since the proximity sensor 200 can be used for other purposes, it is possible to provide a method for controlling an electronic device that is further improved in convenience.

以下、本発明の特徴を付記する。
上記の実施形態の一部又は全部は、以下の付記のようにも記載されうるが、以下には限られない。
(付記1)
付記1は、近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定手段と、
前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御手段と
を備えたことを特徴とする電子機器である。
付記1によれば、近接センサを他の用途にも利用できるようにしたので、さらなる利便性の向上を図った電子機器を提供することができる。
(付記2)
付記2は、前記第1の機能は、タッチパネルの動作を有効または無効とする機能であることを特徴とする付記1に記載の電子機器である。
付記2によれば、タッチパネルの動作を有効または無効とする通常用途で使用することができる。
(付記3)
付記3は、前記第2の機能は、当該電子機器へのヒトやモノの接近を監視する機能であることを特徴とする付記1または2いずれかに記載の電子機器である。
付記3によれば、ヒトやモノの接近を監視するという防犯用途で使用することができる。
(付記4)
付記4は、検出距離設定手段は、ユーザ操作に応答して前記近接センサの検出距離を前記第1の検出距離から前記第2の検出距離に変更し、または、前記第2の検出距離から前記第1の検出距離に変更することを特徴とする付記1乃至3いずれか一項に記載の電子機器である。
付記4によれば、ユーザの意図にしたがって、近接センサの検出距離を設定することができる。
(付記5)
付記5は、近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定工程と、
前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御工程と
を含むことを特徴とする、電子機器の制御方法である。
付記5によれば、近接センサを他の用途にも利用できるようにしたので、さらなる利便性の向上を図った電子機器の制御方法を提供することができる。
(付記6)
付記6は、電子機器のコンピュータを、
近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定手段、
前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御手段
として機能させることを特徴とするプログラムである。
付記6によれば、近接センサを他の用途にも利用できるようにしたので、さらなる利便性の向上を図ったプログラムを提供することができる。
The features of the present invention will be described below.
A part or all of the above-described embodiment can be described as in the following supplementary notes, but is not limited thereto.
(Appendix 1)
Appendix 1 is a detection distance setting means for setting the detection distance of the proximity sensor to one of a first detection distance and a second detection distance longer than the first detection distance;
While the detection distance of the proximity sensor is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor is Control means for controlling each part of the electronic device so that the electronic device executes a second function different from the first function while the second detection distance is set. It is a featured electronic device.
According to Supplementary Note 1, since the proximity sensor can be used for other purposes, it is possible to provide an electronic device with further improved convenience.
(Appendix 2)
Appendix 2 is the electronic device according to Appendix 1, wherein the first function is a function that enables or disables the operation of the touch panel.
According to Supplementary Note 2, the touch panel can be used in a normal application that enables or disables the operation of the touch panel.
(Appendix 3)
Appendix 3 is the electronic device according to Appendix 1 or 2, wherein the second function is a function of monitoring the approach of a person or an object to the electronic device.
According to Supplementary Note 3, it can be used for a crime prevention purpose of monitoring the approach of a person or an object.
(Appendix 4)
Appendix 4 is that the detection distance setting means changes the detection distance of the proximity sensor from the first detection distance to the second detection distance in response to a user operation, or from the second detection distance. The electronic device according to any one of appendices 1 to 3, wherein the electronic device is changed to a first detection distance.
According to Supplementary Note 4, the detection distance of the proximity sensor can be set according to the user's intention.
(Appendix 5)
Appendix 5 is a detection distance setting step for setting the detection distance of the proximity sensor to one of the first detection distance and the second detection distance longer than the first detection distance;
While the detection distance of the proximity sensor is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor is And a control step of controlling each part of the electronic device so that the electronic device executes a second function different from the first function while the second detection distance is set. This is a method for controlling an electronic device.
According to Supplementary Note 5, since the proximity sensor can be used for other purposes, it is possible to provide a method for controlling an electronic device that is further improved in convenience.
(Appendix 6)
Appendix 6 shows the computer of the electronic device.
Detection distance setting means for setting the detection distance of the proximity sensor to one of the first detection distance and the second detection distance longer than the first detection distance;
While the detection distance of the proximity sensor is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor is While the second detection distance is set, the electronic device is caused to function as a control unit that controls each part of the electronic device so as to execute a second function different from the first function. It is a program.
According to Supplementary Note 6, since the proximity sensor can be used for other purposes, a program for further improving convenience can be provided.

1 携帯電話機
5 近接センサ
20 制御部
100 近接センサ
101 検出距離設定手段
102 電子機器
103 制御手段
201 検出距離設定工程
202 制御工程
DESCRIPTION OF SYMBOLS 1 Cellular phone 5 Proximity sensor 20 Control part 100 Proximity sensor 101 Detection distance setting means 102 Electronic device 103 Control means 201 Detection distance setting process 202 Control process

Claims (6)

近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定手段と、
前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御手段と
を備えたことを特徴とする電子機器。
Detection distance setting means for setting the detection distance of the proximity sensor to one of the first detection distance and the second detection distance longer than the first detection distance;
While the detection distance of the proximity sensor is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor is Control means for controlling each part of the electronic device so that the electronic device executes a second function different from the first function while the second detection distance is set. Features electronic equipment.
前記第1の機能は、タッチパネルの動作を有効または無効とする機能であることを特徴とする請求項1に記載の電子機器。   The electronic device according to claim 1, wherein the first function is a function that enables or disables the operation of the touch panel. 前記第2の機能は、当該電子機器へのヒトやモノの接近を監視する機能であることを特徴とする請求項1または2いずれかに記載の電子機器。   The electronic device according to claim 1, wherein the second function is a function of monitoring an approach of a person or an object to the electronic device. 検出距離設定手段は、ユーザ操作に応答して前記近接センサの検出距離を前記第1の検出距離から前記第2の検出距離に変更し、または、前記第2の検出距離から前記第1の検出距離に変更することを特徴とする請求項1乃至3いずれか一項に記載の電子機器。   The detection distance setting means changes the detection distance of the proximity sensor from the first detection distance to the second detection distance in response to a user operation, or from the second detection distance to the first detection The electronic device according to claim 1, wherein the electronic device is changed to a distance. 近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定工程と、
前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御工程と
を含むことを特徴とする、電子機器の制御方法。
A detection distance setting step of setting the detection distance of the proximity sensor to either the first detection distance or the second detection distance longer than the first detection distance;
While the detection distance of the proximity sensor is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor is And a control step of controlling each part of the electronic device so that the electronic device executes a second function different from the first function while the second detection distance is set. And a method for controlling an electronic device.
電子機器のコンピュータを、
近接センサの検出距離を第1の検出距離とこの第1の検出距離よりも長い第2の検出距離とのいずれか一方に設定する検出距離設定手段、
前記近接センサの検出距離が前記第1の検出距離に設定されている間は当該電子機器が第1の機能を実行するように当該電子機器の各部を制御する一方、前記近接センサの検出距離が前記第2の検出距離に設定されている間は当該電子機器が前記第1の機能とは異なる第2の機能を実行するように当該電子機器の各部を制御する制御手段
として機能させることを特徴とするプログラム。
The electronic computer,
Detection distance setting means for setting the detection distance of the proximity sensor to one of the first detection distance and the second detection distance longer than the first detection distance;
While the detection distance of the proximity sensor is set to the first detection distance, each part of the electronic device is controlled so that the electronic device performs the first function, while the detection distance of the proximity sensor is While the second detection distance is set, the electronic device is caused to function as a control unit that controls each part of the electronic device so as to execute a second function different from the first function. Program.
JP2013034538A 2013-02-25 2013-02-25 Electronic device, control method of the same, and program Pending JP2014165636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013034538A JP2014165636A (en) 2013-02-25 2013-02-25 Electronic device, control method of the same, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013034538A JP2014165636A (en) 2013-02-25 2013-02-25 Electronic device, control method of the same, and program

Publications (1)

Publication Number Publication Date
JP2014165636A true JP2014165636A (en) 2014-09-08

Family

ID=51615886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013034538A Pending JP2014165636A (en) 2013-02-25 2013-02-25 Electronic device, control method of the same, and program

Country Status (1)

Country Link
JP (1) JP2014165636A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018023087A (en) * 2016-08-03 2018-02-08 正文科技股▲ふん▼有限公司Gemtek Technology Co., Ltd, Radio communication device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018023087A (en) * 2016-08-03 2018-02-08 正文科技股▲ふん▼有限公司Gemtek Technology Co., Ltd, Radio communication device
US10200891B2 (en) 2016-08-03 2019-02-05 Gemtek Technology Co., Ltd. Wireless communication device

Similar Documents

Publication Publication Date Title
EP4161111A1 (en) Searching and positioning method and apparatus, electronic device, and storage medium
JP5960926B2 (en) Electronic device, battery protection method, facility, program, and recording medium
JP6060267B2 (en) Terminal lock release processing method, apparatus, terminal apparatus, program, and recording medium
US10162466B2 (en) Portable device and method of modifying touched position
ES2744128T3 (en) Use of mobile computing device sensors to initiate a telephone call or modify the operation of a telephone
US20110312349A1 (en) Layout design of proximity sensors to enable shortcuts
US10610152B2 (en) Sleep state detection method, apparatus and system
RU2669530C2 (en) Method and apparatus for triggering execution of operation instruction
US20150177865A1 (en) Alternative input device for press/release simulations
WO2014065254A1 (en) Portable terminal device and input operation acceptance method
KR20140005406A (en) Method and apparatus for controlling sleep mode in portable terminal
JP7329150B2 (en) Touch button, control method and electronic device
JP6386189B2 (en) Power management method, power management apparatus, and electronic device
KR20140140891A (en) Apparatus and Method for operating a proximity sensor function in an electronic device having touch screen
WO2016045027A1 (en) Screen sensitivity adjustment method and mobile terminal
WO2019047862A1 (en) Fingerprint acquisition method and terminal device and storage medium
JP2020515932A (en) Methods for capturing fingerprints and related products
EP2720445A1 (en) Electronic device with proximity sensing
JP2023538685A (en) Electronic equipment assembly, its control method, and electronic equipment control device
JP6478655B2 (en) Mobile device
US11476684B2 (en) Charging protection method, terminal, and charger
KR20220166853A (en) Display method and electronic device
WO2015199175A1 (en) Portable electronic apparatus, portable electronic apparatus control method, and recording medium
JP6047048B2 (en) Mobile device, touch panel restriction area setting method and program
JP2014165636A (en) Electronic device, control method of the same, and program