JP2016012199A - Electronic apparatus with reset function - Google Patents

Electronic apparatus with reset function Download PDF

Info

Publication number
JP2016012199A
JP2016012199A JP2014132783A JP2014132783A JP2016012199A JP 2016012199 A JP2016012199 A JP 2016012199A JP 2014132783 A JP2014132783 A JP 2014132783A JP 2014132783 A JP2014132783 A JP 2014132783A JP 2016012199 A JP2016012199 A JP 2016012199A
Authority
JP
Japan
Prior art keywords
key
cpu
reset
fpga
external circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014132783A
Other languages
Japanese (ja)
Other versions
JP6335682B2 (en
Inventor
裕吾 杉▲崎▼
Yugo Sugisaki
裕吾 杉▲崎▼
竹厚 善生
Yoshio Takeatsu
善生 竹厚
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.)
Japan Radio Co Ltd
Original Assignee
Japan Radio Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Japan Radio Co Ltd filed Critical Japan Radio Co Ltd
Priority to JP2014132783A priority Critical patent/JP6335682B2/en
Publication of JP2016012199A publication Critical patent/JP2016012199A/en
Application granted granted Critical
Publication of JP6335682B2 publication Critical patent/JP6335682B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an electronic apparatus with a reset function capable of easily, reliably, and safely resetting and reactivating a CPU of the electronic apparatus through simple operation.SOLUTION: An FPGA 3 comprising a key scan circuit 31 and a reset circuit 32 is externally mounted on an electronic apparatus 1, and a key panel 2 and a CPU 4 are communicatively connected. When the CPU 4 is normally operating, the FPGA 3 and the CPU 4 transmit and receive key scan information through key operation. On the other hand, if communication with the CPU 4 is not performed after the elapse of a certain time after depressing a key 21, a reset signal is transmitted from the FPGA 3 to the CPU 4 and the CPU 4 is reset by depressing a prescribed key 21A which is set in the CPU 4 in advance and stored in the FPGA 3.

Description

本発明は、電子機器が動作中にフリーズしたとき、CPUをリセットして再起動するための機能を備えた、リセット機能付き電子機器に関する。   The present invention relates to an electronic device with a reset function, which has a function for resetting and restarting a CPU when the electronic device freezes during operation.

パソコンや携帯電話やスマートフォン等の電子機器は、その使用中に様々な原因によりフリーズ(「ハングアップ」、「ストール」、「暴走」、または「固まる」等といわれることもあるが、本願では「フリーズ」で統一する。)といわれる状態になり、外部操作に対して反応しなくなり、正常な操作ができなくなる事態が発生することがある。   Electronic devices such as personal computers, mobile phones, and smartphones are sometimes referred to as “freezing” (“hang-up”, “stall”, “runaway”, “harden”, etc.) due to various causes. “Freeze” and so on.), It may become unresponsive to external operations and normal operations may not be possible.

ここで、フリーズした電子機器をリセットして、フリーズ状態から解放し、正常な状態に戻すためには、例えば、電子機器の電源を切断したり、電池を外したりするなどして、強制的に当該電子機器を停止させた後、電源の接続、電池の再装着を行い、再起動させる方法がある。また、CPUのウォッチドッグタイマ(WDT)により、定期的にプログラムの動作状態の監視を行い、フリーズが発生した場合には、自動的にリセットを行わせる方法もある。   Here, in order to reset the frozen electronic device, release it from the frozen state, and return it to the normal state, for example, by turning off the power of the electronic device or removing the battery, There is a method in which the electronic device is stopped and then restarted by connecting the power source and reattaching the battery. There is also a method in which the operation state of the program is periodically monitored by a watchdog timer (WDT) of the CPU, and the reset is automatically performed when a freeze occurs.

さらに、電源キーや、リセットスイッチ等の特定の押しボタン式スイッチを、使用者が一定時間押下することで、リセットを行う方法がある(例えば、特許文献1〜3参照)。   Further, there is a method of resetting a user by pressing a specific push button type switch such as a power key or a reset switch for a predetermined time (see, for example, Patent Documents 1 to 3).

特開2010−267188号公報JP 2010-267188 A 特開2008−3768号公報JP 2008-3768 A 特開2004−140457号公報JP 2004-140457 A

ところで、上記の従来のリセット方法、例えば、電源の切断・接続による方法は、電源コンセントが外しにくい場所(例えば事務機器の裏など)にある場合には不便であり、電池の装脱着による方法は、作業中に電池を無くしたり、壊したりする危険性がある。また、後者は特に、防水機構搭載タイプの携帯端末の場合には、電池を脱着しにくい構造になっているため、さらに不便となり、使用者の作業効率を低下させる原因となっている。   By the way, the above conventional reset method, for example, the method of disconnecting and connecting the power source is inconvenient when the power outlet is in a place where it is difficult to remove (for example, the back of office equipment). There is a risk of losing or destroying the battery during work. In the latter case, in particular, in the case of a portable terminal equipped with a waterproof mechanism, the structure is such that the battery is difficult to be attached and detached, which further inconveniences and causes a reduction in the work efficiency of the user.

一方、WDTを使用したリセット方法については、ブラウザやメーラー、無線制御、ユーザーインターフェースなど、複数のタスクが同時に起動している状態において、WDTが監視できないタスクでフリーズが発生すると、WDTが正常に機能せず、フリーズ状態から脱することができない場合がある。   On the other hand, with regard to the reset method using WDT, if multiple tasks such as browser, mailer, wireless control, user interface, etc. are running at the same time and freeze occurs in a task that WDT cannot monitor, WDT will function normally. Without being able to get out of the frozen state.

さらに、特許文献1〜3に記載された先行技術は、上記のとおり、使用者が特定のキーを一定時間長押しすることで、リセットが行われるものであるが、押下する時間は使用者の感覚に左右されるため、誤動作の原因となる恐れがある。また、既存のキーではなく、専用のリセットキーによりリセットを行う場合、当該キーは、使用者が誤って押下することを防止するために、形状や設置場所を、不用意に押せないものにする必要があるため、使用者の利便性に欠ける上、そもそも当該キーの設置が構造上、実現困難な場合がある。   Furthermore, as described above, the prior arts described in Patent Documents 1 to 3 are reset by the user pressing and holding a specific key for a certain period of time. Because it depends on the senses, it may cause malfunction. In addition, when a reset is performed using a dedicated reset key instead of an existing key, the key prevents the user from accidentally pressing the shape or installation location. Since it is necessary, it is not convenient for the user, and the installation of the key may be difficult in the first place due to the structure.

そこで本発明は、簡便な操作により、容易・確実かつ安全にCPUのリセットと再起動ができる、リセット機能付き電子機器を提供することを目的とする。   SUMMARY OF THE INVENTION An object of the present invention is to provide an electronic device with a reset function that can easily and reliably and safely reset and restart a CPU by a simple operation.

上記課題を解決するために、請求項1の発明は、リセット機能付き電子機器であって、複数のキーが配列されたキーパネルと、前記キーパネルをスキャンして、前記キーパネルの操作状態に関するキースキャン情報を取得する外部回路と、前記外部回路と独立して動作し、前記外部回路と送受信可能に接続されたCPUと、を備え、前記外部回路は、前記キーが押下されると割込信号を前記CPUに送信し、前記CPUは、前記割込信号を受信すると前記キースキャン情報の取得を要求する要求信号を前記外部回路に送信し、前記外部回路は、所定のキーが押下されて前記割込信号を前記CPUに送信した後に、所定時間以内に前記要求信号を受信しない場合に、前記CPUをリセットするリセット手段を備える、ことを特徴とする。   In order to solve the above problems, the invention of claim 1 is an electronic device with a reset function, and relates to an operation state of the key panel by scanning the key panel in which a plurality of keys are arranged, and the key panel. An external circuit that obtains key scan information; and a CPU that operates independently of the external circuit and is connected to the external circuit so as to be able to transmit and receive, and the external circuit interrupts when the key is pressed When the CPU receives the interrupt signal, the CPU transmits a request signal for requesting acquisition of the key scan information to the external circuit, and the external circuit receives a predetermined key being pressed. A reset means is provided for resetting the CPU when the request signal is not received within a predetermined time after the interrupt signal is transmitted to the CPU.

この発明によれば、電子機器が正常に作動している状態では、外部回路とCPUは、キーが押下されることでキースキャン情報の送受信をする。一方、CPUと外部回路の通信が一定時間以上行われない場合、外部回路は、CPUがフリーズしていると判断する。CPUがフリーズしている場合において、押下されたキーが所定のキーであるときは、外部回路は、リセット手段により、CPUのリセットを行う。   According to the present invention, when the electronic device is operating normally, the external circuit and the CPU transmit / receive key scan information by pressing the key. On the other hand, when the communication between the CPU and the external circuit is not performed for a predetermined time or more, the external circuit determines that the CPU is frozen. When the CPU is frozen and the pressed key is a predetermined key, the external circuit resets the CPU by reset means.

請求項2記載の発明は、請求項1記載のリセット機能付き電子機器であり、任意の前記キーを前記所定のキーとして設定自在となっている、ことを特徴とする。   A second aspect of the invention is the electronic device with a reset function according to the first aspect, wherein any key can be set as the predetermined key.

この発明によれば、任意の既設のキーが、リセットキーとして予め設定される。   According to the present invention, any existing key is preset as the reset key.

請求項1記載の発明によれば、リセットキーである所定のキーが押された後、外部回路とCPUの通信が行われない場合、つまりCPUがフリーズしている場合にのみ、CPUがリセットされる。一方、正常に動作している状態ではCPUと外部回路はキースキャン情報の通信を開始し、CPUはリセットされないため、押し間違えや、押し時間の過不足等に伴う誤動作の心配がなく、安全にリセットを行うことが可能となる。   According to the first aspect of the present invention, the CPU is reset only when communication between the external circuit and the CPU is not performed after the predetermined key as the reset key is pressed, that is, when the CPU is frozen. The On the other hand, in the normal operation state, the CPU and external circuit start communicating key scan information and the CPU is not reset, so there is no risk of malfunction due to incorrect pressing or excessive or insufficient pressing time. A reset can be performed.

また、外部回路はCPUやその他のハードウェア、ソフトウェアとは、物理的にも機能的にも独立した構成となっているため、たとえCPUがフリーズしたとしても、外部回路は正常に動作を続けるので、確実にCPUのリセットを行うことができる。   In addition, since the external circuit is physically and functionally independent from the CPU and other hardware and software, the external circuit continues to operate normally even if the CPU freezes. The CPU can be surely reset.

さらに、WDTによらずにリセットを行うため、多数のタスクを同時に起動している場合に、WDTが監視していないタスクにおいてフリーズが発生した場合でも、確実にリセットを行うことが可能となる。   Furthermore, since resetting is performed regardless of WDT, even when a large number of tasks are activated at the same time, even if a freeze occurs in a task that is not monitored by WDT, it is possible to reliably reset.

さらには、電源の切断や電池の取り外しを行う必要がないため、電子機器の設置場所や構造的特徴に左右されることなく、簡便かつ安全にリセットを行うことが可能となる。   Furthermore, since it is not necessary to turn off the power supply or remove the battery, it is possible to easily and safely perform the reset without being influenced by the installation location or the structural features of the electronic device.

また、請求項2記載の発明によれば、正常動作中に予めCPUにて設定した既設のキーをリセットキーとして使用するため、専用のリセットキーを使用するときの課題であった構造上の困難や使用上の不便さは解消される。しかも、任意のキーを所定のキーとして設定自在なため、利便性が高まり、使用者が所定のキーを間違えて押下しないように設定したり、外部から偶然に所定のキーが押下されないように設定したりすることが可能となる。   According to the second aspect of the present invention, since an existing key set in advance by the CPU during normal operation is used as a reset key, structural difficulties that are problems when using a dedicated reset key are included. And inconvenience in use is eliminated. In addition, since any key can be set as a predetermined key, the convenience is enhanced, and the user is set not to accidentally press the predetermined key, or the predetermined key is not accidentally pressed from the outside. It becomes possible to do.

この発明の実施の形態に係る電子機器の、リセット用の外部回路周りの概略構成ブロック図である。It is a schematic block diagram of the periphery of the external circuit for reset of the electronic device according to the embodiment of the present invention. 図1の電子機器における、外部回路のタスクフロー図である。FIG. 2 is a task flow diagram of an external circuit in the electronic device of FIG. 1. CPUが正常に動作しているときの、外部回路とCPUの通信動作のフロー図である。It is a flowchart of communication operation between an external circuit and a CPU when the CPU is operating normally. CPUがフリーズしているときの、外部回路のリセット動作のフロー図である。It is a flowchart of the reset operation | movement of an external circuit when CPU is frozen.

以下、この発明を図示の実施の形態に基づいて説明する。   The present invention will be described below based on the illustrated embodiments.

図1は、リセット機能付き電子機器1の、リセット用の外部回路周りの概略構成ブロック図である。このリセット機能付き電子機器1は、複数のキーが配列されているキーパネル2と、外部回路としてのFPGA(Field Programmable Gate Array)3と、CPU4を備え、キーパネル2とFPGA3およびFPGA3とCPU4とが、送受信可能・データ伝送可能に接続されている。   FIG. 1 is a block diagram of a schematic configuration around an external circuit for reset of the electronic device 1 with a reset function. The electronic device 1 with a reset function includes a key panel 2 on which a plurality of keys are arranged, an FPGA (Field Programmable Gate Array) 3 as an external circuit, and a CPU 4. The key panel 2, FPGA 3, FPGA 3, CPU 4, Are connected so that transmission and reception and data transmission are possible.

キーパネル2は、複数のキー21が配列されたパネルであり、FPGA3によってキー21の押下状態がスキャンされるようになっている。   The key panel 2 is a panel in which a plurality of keys 21 are arranged, and the pressed state of the keys 21 is scanned by the FPGA 3.

FPGA3は、所定のプログラムを搭載した集積回路・デバイスであり、キースキャン回路31とリセット回路32とを備えている。キースキャン回路31は、キーパネル2をスキャンして、キー21の押下状態に関するキースキャン情報を取得する回路であり、既存のキースキャン回路と同等の構成となっている。すなわち、キーパネル2を列ごとにスキャンして、キー列データを順次取得することで、どのキー21が押下されているかを示すキースキャン情報を取得する。このようなキースキャン情報は、後述するキースキャン動作において、キー列データとして順次CPU4に送信される。   The FPGA 3 is an integrated circuit / device on which a predetermined program is mounted, and includes a key scan circuit 31 and a reset circuit 32. The key scan circuit 31 is a circuit that scans the key panel 2 and obtains key scan information related to the pressed state of the key 21, and has the same configuration as an existing key scan circuit. That is, by scanning the key panel 2 for each column and sequentially acquiring key column data, key scan information indicating which key 21 is pressed is acquired. Such key scan information is sequentially transmitted to the CPU 4 as key string data in a key scan operation described later.

リセット回路32は、リセット信号(リセット手段)を生成してCPU4に送信する回路であり、後述するように、フリーズ状態中に特定キー(所定のキー)21Aが押下された場合に、リセット信号の生成、送信を行う。   The reset circuit 32 is a circuit that generates a reset signal (reset means) and transmits it to the CPU 4. As will be described later, when the specific key (predetermined key) 21A is pressed during the freeze state, the reset signal 32 Generate and send.

また、FPGA3は、CPU4から送信された特定キー21Aを記憶するメモリ・回路を備えている。すなわち、CPU4から送られるリセット用の特定キー21Aの情報をメモリに記憶する。ここで、特定キー21Aとしては、任意のキー21を特定キー21Aとして設定自在となっている。すなわち、リセット機能付き電子機器1を操作して、任意のキー21をリセット用の特定キー21Aに選択、設定すると、このキー21が特定キー21AとしてCPU4からFPGA3に送信される。ここで、本実施形態では、特定キー21Aは複数のキーの組み合わせであり、リセット信号を発信するためには、これらを同時に押下するものとした。   The FPGA 3 includes a memory / circuit for storing the specific key 21A transmitted from the CPU 4. That is, the information of the reset specific key 21A sent from the CPU 4 is stored in the memory. Here, as the specific key 21A, any key 21 can be set as the specific key 21A. That is, when the electronic device with reset function 1 is operated to select and set an arbitrary key 21 as the specific key 21A for resetting, the key 21 is transmitted from the CPU 4 to the FPGA 3 as the specific key 21A. Here, in the present embodiment, the specific key 21A is a combination of a plurality of keys, and in order to transmit a reset signal, these keys are pressed simultaneously.

FPGA3は、自動スキャンモードと手動スキャンモードとを有し、通常は自動スキャンモードとなっている。そして、CPU4がフリーズしていない(通常スキャン動作)状態で、自動スキャンモード中にいずれかのキー21が押下されると、割込信号をCPU4に送信する。CPU4からFPGA3に手動スキャン設定信号が送信されると、FPGA3は手動スキャンモードに移行する。以降、要求信号(キーn列目設定、nは正の整数)が送信される度に、順次、FPGA3からCPU4にキースキャン情報をCPU4に送信する。   The FPGA 3 has an automatic scan mode and a manual scan mode, and is normally in an automatic scan mode. When any key 21 is pressed during the automatic scan mode in a state where the CPU 4 is not frozen (normal scan operation), an interrupt signal is transmitted to the CPU 4. When the manual scan setting signal is transmitted from the CPU 4 to the FPGA 3, the FPGA 3 shifts to the manual scan mode. Thereafter, each time a request signal (key n-th column setting, n is a positive integer) is transmitted, key scan information is sequentially transmitted from the FPGA 3 to the CPU 4 to the CPU 4.

一方、何らかのキー21が押されて、一定時間以内にCPU4からFPGA3に要求信号が送信されない場合、FPGA3はCPU4がフリーズ状態にあると判定する。この状態で特定キー21Aが同時に押下されると、FPGA3の内部のリセット回路32は、CPU4にリセット信号を送信し、CPU4をリセットする。   On the other hand, when any key 21 is pressed and a request signal is not transmitted from the CPU 4 to the FPGA 3 within a predetermined time, the FPGA 3 determines that the CPU 4 is in a frozen state. When the specific key 21A is pressed simultaneously in this state, the reset circuit 32 inside the FPGA 3 transmits a reset signal to the CPU 4 to reset the CPU 4.

FPGA3は、手動スキャンモードでキー21が操作されている間に、一定時間以上CPU4との間で通信が行われなくなった場合には、自動的に自動スキャンモードに移行し、リセット信号を送信するための特定キー21Aをスキャンする。   The FPGA 3 automatically shifts to the automatic scan mode and transmits a reset signal when communication with the CPU 4 is not performed for a certain period of time while the key 21 is operated in the manual scan mode. The specific key 21A for scanning is scanned.

CPU4は、FPGA3から受信したキースキャン情報に基づいて、つまり、どのキー21が押下されたかに基づいて、所定の処理を行ったりする回路であり、FPGA3とは別個独立して動作する回路である。従って、CPU4が起動していない状態でもFPGA3が起動している場合があり、逆に、FPGA3が起動していない状態でもCPU4が起動している場合がある。   The CPU 4 is a circuit that performs predetermined processing based on the key scan information received from the FPGA 3, that is, based on which key 21 is pressed, and is a circuit that operates independently of the FPGA 3. . Accordingly, the FPGA 3 may be activated even when the CPU 4 is not activated, and conversely, the CPU 4 may be activated even when the FPGA 3 is not activated.

また、CPU4は通常は、FPGA3から送られてくるキースキャン情報のみでなく、様々なタスクを同時に実行している。ただし、フリーズしている状態では、タスク処理ができないため、FPGA3から送られてくるハードリセット信号により再起動する手段しかフリーズから復旧する方法がない。   Further, the CPU 4 normally executes not only the key scan information sent from the FPGA 3 but also various tasks at the same time. However, since task processing cannot be performed in the frozen state, there is only a method for recovering from the freeze by means of restarting by a hard reset signal sent from the FPGA 3.

次に、本構成である、リセット機能付き電子機器1の作用について説明をする。   Next, the operation of the electronic device 1 with a reset function, which is this configuration, will be described.

図2は、FPGA3のリセットタスクフローである。   FIG. 2 is a reset task flow of the FPGA 3.

先ず、キーパネル2の何れかのキー21が押下されると(ステップS1)、FPGA3は、通常の状態では一定時間以内にCPU4からキースキャン情報の要求信号を受け取る。一方、通信を開始しない場合には、CPU4がフリーズしていると判定する(ステップS2)。   First, when any key 21 of the key panel 2 is pressed (step S1), the FPGA 3 receives a key scan information request signal from the CPU 4 within a predetermined time in a normal state. On the other hand, when communication is not started, it is determined that the CPU 4 is frozen (step S2).

次に、FPGA3は、ステップS1で押下されたキー21が特定キー21Aであるかどうかを判定する(ステップS3)。特定キー21Aである場合には、FPGA3は、CPU4にリセット信号を発して、CPU4をリセットさせる(ステップS4)。一方、押下されたキー21が特定キー21Aでない場合には、CPU4はリセットされない。   Next, the FPGA 3 determines whether or not the key 21 pressed in step S1 is the specific key 21A (step S3). If it is the specific key 21A, the FPGA 3 issues a reset signal to the CPU 4 to reset the CPU 4 (step S4). On the other hand, when the pressed key 21 is not the specific key 21A, the CPU 4 is not reset.

次に、図3に示すように、CPU4が正常に動作しているときは、キーパネル2のうち、何れのキー21も押下されていない状態では、FPGA3は、自動スキャンモードにあり、CPU4と通信を行わないが、何れかのキー21が押下されると、FPGA3は、CPU4に対し、その実行中の他のタスクへの割込(割込信号)を発生させる(ステップS5)。割込を受けたCPU4は、FPGA3を手動スキャン設定(ステップS6)する。FPGA3は、自動スキャンモードから手動スキャンモードに移行し、CPU4からのリードタイミングによりキースキャンを行い、キースキャン情報をCPU4に送信する。   Next, as shown in FIG. 3, when the CPU 4 is operating normally, the FPGA 3 is in the automatic scan mode when no key 21 of the key panel 2 is pressed, and the CPU 4 If no key 21 is pressed, the FPGA 3 causes the CPU 4 to generate an interrupt (interrupt signal) to another task being executed (step S5). The CPU 4 receiving the interrupt performs manual scan setting for the FPGA 3 (step S6). The FPGA 3 shifts from the automatic scan mode to the manual scan mode, performs key scan according to the read timing from the CPU 4, and transmits key scan information to the CPU 4.

この手動スキャンモードにおけるキースキャンでは、CPU4はまず、キーパネル2の配列の1列目を設定し、FPGA3に1列目のキースキャン情報の要求信号を送信する(ステップS7)。設定された1列目のキー21は、CPU4との間でそのデータを送受信し(ステップS8、ステップS9)、同様の通信を、順次キーパネル2のn列目(nは正の整数)まで繰り返す(ステップS10〜S12)。そして、キースキャン情報に基づく押下キー21の種類・識別に従って、CPU4において所定の処理(キー押下処理)が行われる。また、キーパネル2がリリースされ、FPGA3からキースキャン情報が送られなくなったら、CPU4はキースキャン情報の要求信号の送信を停止して、FPGA3に対して自動スキャンモードを設定する(ステップS13)。もしくはCPU4がキースキャン情報の要求信号の送信を停止してから一定時間が経過すると、FPGA3は、自動的に自動スキャンモードに復帰する。   In the key scan in the manual scan mode, the CPU 4 first sets the first column of the array of the key panel 2, and transmits a request signal for the key scan information of the first column to the FPGA 3 (step S7). The set key 21 in the first column transmits / receives data to / from the CPU 4 (steps S8 and S9), and the same communication is sequentially performed up to the nth column (n is a positive integer) on the key panel 2. Repeat (Steps S10 to S12). Then, in accordance with the type / identification of the pressed key 21 based on the key scan information, predetermined processing (key pressing processing) is performed in the CPU 4. When the key panel 2 is released and the key scan information is not sent from the FPGA 3, the CPU 4 stops transmitting the key scan information request signal and sets the automatic scan mode for the FPGA 3 (step S13). Alternatively, the FPGA 3 automatically returns to the automatic scan mode when a predetermined time elapses after the CPU 4 stops transmitting the key scan information request signal.

次に、図4に示すように、CPU4がフリーズしているときは、CPU4がキー21の操作に反応しないため、キー21を押下して割込(ステップS5)をしようとしても、CPU4からは要求信号は発せられない。一方、押下されたキー21が、特定キー21Aであるときには(ステップS14)、FPGA3は、リセット信号をCPU4に送信するという、リセット動作を行い(ステップS15)、CPU4をリセットする(ステップS4)。   Next, as shown in FIG. 4, when the CPU 4 is frozen, the CPU 4 does not respond to the operation of the key 21. Therefore, even if the CPU 21 presses the key 21 and tries to interrupt (step S5), the CPU 4 No request signal is issued. On the other hand, when the pressed key 21 is the specific key 21A (step S14), the FPGA 3 performs a reset operation of transmitting a reset signal to the CPU 4 (step S15), and resets the CPU 4 (step S4).

以上のように、このリセット機能付き電子機器1によれば、所定のキー21Aが押された後、FPGA3とCPU4の通信が行われない場合にのみ、CPU4はリセットされる。一方、正常に動作している状態では、FPGA3とCPU4はキースキャン情報の送受信を開始し、CPU4はリセットされないため、押し間違えや、押し時間の過不足等に伴う誤動作の心配がなく、安全にリセットを行うことが可能となる。   As described above, according to the electronic device 1 with a reset function, the CPU 4 is reset only when communication between the FPGA 3 and the CPU 4 is not performed after the predetermined key 21A is pressed. On the other hand, in the normal operation state, the FPGA 3 and the CPU 4 start transmitting / receiving the key scan information, and the CPU 4 is not reset. Therefore, there is no risk of malfunction due to wrong pressing or excessive or insufficient pressing time. A reset can be performed.

また、FPGA3はCPU4やその他のハードウェア、ソフトウェアとは、物理的にも機能的にも独立した構成となっているため、たとえCPU4がフリーズしたとしても、FPGA3は正常に動作を続けるので、確実にCPU4のリセットを行うことができる。   In addition, since the FPGA 3 is physically and functionally independent from the CPU 4 and other hardware and software, the FPGA 3 continues to operate normally even if the CPU 4 freezes. The CPU 4 can be reset.

さらに、WDTによらずにリセットを行うため、多数のタスクを同時に起動している場合に、WDTが監視していないタスクにおいてフリーズが発生した場合でも、確実にリセットを行うことが可能となる。   Furthermore, since resetting is performed regardless of WDT, even when a large number of tasks are activated at the same time, even if a freeze occurs in a task that is not monitored by WDT, it is possible to reliably reset.

さらには、電源の切断や電池の取り外しを行う必要がないため、電子機器の設置場所や構造的特徴に左右されることなく、簡便かつ安全にリセットを行うことが可能となる。   Furthermore, since it is not necessary to turn off the power supply or remove the battery, it is possible to easily and safely perform the reset without being influenced by the installation location or the structural features of the electronic device.

また、正常動作中に予めCPU4にて設定した既設のキー21を特定キー21Aとして使用するため、専用のリセットキーを使用するときの課題であった構造上の困難や使用上の不便さは解消される。しかも、任意のキー21を所定のキー21Aとして設定自在なため、利便性が高まり、使用者が所定のキー21Aを間違えて押下しないように設定したり、外部から偶然に所定のキー21Aが押下されないように設定したりすることが可能となる。   Also, since the existing key 21 set in advance by the CPU 4 during normal operation is used as the specific key 21A, the structural difficulties and inconveniences that were problems when using the dedicated reset key are eliminated. Is done. In addition, since the arbitrary key 21 can be set as the predetermined key 21A, the convenience is improved, and the user can set the predetermined key 21A so that the user does not press the wrong key 21A by mistake, or the predetermined key 21A is accidentally pressed from the outside. It is possible to set so as not to be performed.

以上、この発明の実施の形態について説明したが、具体的な構成は、上記の実施の形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計の変更等があっても、この発明に含まれる。例えば、本実施形態では、外部回路は、FPGA3としたが、これに限らずその他の集積回路、例えば、ASIC(Application Specific Integrated Circuit)やCSSP(Customer Specific Standard Products、登録商標)などで構成してもよい。   Although the embodiment of the present invention has been described above, the specific configuration is not limited to the above embodiment, and even if there is a design change or the like without departing from the gist of the present invention, Included in the invention. For example, in the present embodiment, the external circuit is FPGA 3, but the external circuit is not limited to this, and other integrated circuits such as ASIC (Application Specific Integrated Circuit) and CSSP (Customer Specific Products) are registered trademarks. Also good.

また、キーパネル2は、必ずしもパソコンのキーボードや、携帯電話の操作ボタン、電源ボタンのように、機械的に押下するタイプに限られず、タブレット型PCやスマートフォンのように、タッチパネル式のキーでもよく、勿論両者の組み合わせでもよい。   The key panel 2 is not necessarily limited to a mechanically pressed type such as a personal computer keyboard, a mobile phone operation button, or a power button, but may be a touch panel type key such as a tablet PC or smartphone. Of course, a combination of both may be used.

さらに、特定キー21Aを押下する時間は従来技術のように長くても良いし、通常キー操作をするときのように、短くとも良い。また、特定キー21Aは必ずしも複数のキー21の組み合わせに限られず、1個であっても良い。さらに、複数のキー21を特定キー21Aとした場合においても、リセット動作実行のための操作は全てを同時に押下する方法に限られず、例えばパスワードのように、順次に押下する方法であってもよい。   Furthermore, the time for pressing the specific key 21A may be long as in the prior art, or may be short as in the case of normal key operation. The specific key 21A is not necessarily limited to the combination of the plurality of keys 21, and may be one. Further, even when the plurality of keys 21 are the specific keys 21A, the operation for executing the reset operation is not limited to the method of pressing all at the same time, and may be a method of pressing sequentially such as a password, for example. .

さらには、本実施形態では、リセット手段としては、リセット信号によりCPU4をリセットさせる形態を採ったが、これに限られず、例えば、リセット機能付き電子機器1の電源を強制的にシャットダウンしたり、FPGA3からリセット信号を受け取った別のFPGAが、CPU4のリセットや、リセット機能付き電子機器1のシャットダウンを行ったりしてもよい。   Further, in the present embodiment, the reset means adopts a form in which the CPU 4 is reset by a reset signal. However, the present invention is not limited to this. For example, the power of the electronic device 1 with a reset function is forcibly shut down, or the FPGA 3 Another FPGA that has received the reset signal from may reset the CPU 4 or shut down the electronic device 1 with a reset function.

1 リセット機能付き電子機器
2 キーパネル
21 キー
21A 特定キー(所定のキー)
3 FPGA(外部回路)
4 CPU
S4 リセット
S5 割込発生(割込信号)
S6 手動スキャン設定
S7 キー1列目設定(要求信号)
S8 キーn列目設定(要求信号)
S15 特定キー押下(所定のキー押下)
1 Electronic device with reset function 2 Key panel 21 Key 21A Specific key (predetermined key)
3 FPGA (external circuit)
4 CPU
S4 Reset S5 Interrupt generation (interrupt signal)
S6 Manual scan setting S7 Key first row setting (request signal)
S8 Key nth column setting (request signal)
S15 Specific key pressed (predetermined key pressed)

Claims (2)

複数のキーが配列されたキーパネルと、
前記キーパネルをスキャンして、前記キーパネルの操作状態に関するキースキャン情報を取得する外部回路と、
前記外部回路と独立して動作し、前記外部回路と送受信可能に接続されたCPUと、を備え、
前記外部回路は、前記キーが押下されると割込信号を前記CPUに送信し、前記CPUは、前記割込信号を受信すると前記キースキャン情報の取得を要求する要求信号を前記外部回路に送信し、
前記外部回路は、所定のキーが押下されて前記割込信号を前記CPUに送信した後に、所定時間以内に前記要求信号を受信しない場合に、前記CPUをリセットするリセット手段を備える、
ことを特徴とするリセット機能付き電子機器。
A key panel in which multiple keys are arranged;
An external circuit that scans the key panel and obtains key scan information related to an operation state of the key panel;
A CPU that operates independently of the external circuit and is connected to the external circuit so as to be able to transmit and receive,
When the key is pressed, the external circuit transmits an interrupt signal to the CPU, and when the CPU receives the interrupt signal, the CPU transmits a request signal for requesting acquisition of the key scan information to the external circuit. And
The external circuit includes reset means for resetting the CPU when a predetermined key is pressed and the interrupt signal is transmitted to the CPU and the request signal is not received within a predetermined time.
An electronic device with a reset function.
任意の前記キーを前記所定のキーとして設定自在となっている、
ことを特徴とする請求項1記載のリセット機能付き電子機器。
Any key can be set as the predetermined key.
The electronic device with a reset function according to claim 1.
JP2014132783A 2014-06-27 2014-06-27 Electronic device with reset function Active JP6335682B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014132783A JP6335682B2 (en) 2014-06-27 2014-06-27 Electronic device with reset function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014132783A JP6335682B2 (en) 2014-06-27 2014-06-27 Electronic device with reset function

Publications (2)

Publication Number Publication Date
JP2016012199A true JP2016012199A (en) 2016-01-21
JP6335682B2 JP6335682B2 (en) 2018-05-30

Family

ID=55228889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014132783A Active JP6335682B2 (en) 2014-06-27 2014-06-27 Electronic device with reset function

Country Status (1)

Country Link
JP (1) JP6335682B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462509A (en) * 2018-12-03 2019-03-12 杭州迪普科技股份有限公司 A kind of method and apparatus of the batch backup of board
WO2020204451A1 (en) * 2019-03-29 2020-10-08 삼성전자 주식회사 Method for keyless reset, and electronic device therefor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58219633A (en) * 1982-06-14 1983-12-21 Alps Electric Co Ltd Keyboard with encoder using microcomputer
JPS6488815A (en) * 1987-09-30 1989-04-03 Toshiba Corp Reset system for cpu
JP2000207112A (en) * 1999-01-18 2000-07-28 Kokusai Electric Co Ltd Key depress detecting circuit and radio terminal
JP2002373035A (en) * 2001-06-18 2002-12-26 Matsushita Electric Ind Co Ltd Method and device for generating reset signal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58219633A (en) * 1982-06-14 1983-12-21 Alps Electric Co Ltd Keyboard with encoder using microcomputer
JPS6488815A (en) * 1987-09-30 1989-04-03 Toshiba Corp Reset system for cpu
JP2000207112A (en) * 1999-01-18 2000-07-28 Kokusai Electric Co Ltd Key depress detecting circuit and radio terminal
JP2002373035A (en) * 2001-06-18 2002-12-26 Matsushita Electric Ind Co Ltd Method and device for generating reset signal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462509A (en) * 2018-12-03 2019-03-12 杭州迪普科技股份有限公司 A kind of method and apparatus of the batch backup of board
WO2020204451A1 (en) * 2019-03-29 2020-10-08 삼성전자 주식회사 Method for keyless reset, and electronic device therefor
US11755086B2 (en) 2019-03-29 2023-09-12 Samsung Electronics Co., Ltd. Method for keyless reset, and electronic device therefor

Also Published As

Publication number Publication date
JP6335682B2 (en) 2018-05-30

Similar Documents

Publication Publication Date Title
US11886282B2 (en) Recovery method for terminal device startup failure and terminal device
JP6298585B2 (en) Electronic device, electronic device wake-up method and apparatus
CN102388371B (en) Detection method, apparatus and system for mainboard device
JP6115159B2 (en) Image forming apparatus and log management system
CN111324494B (en) Processor control method, device and storage medium
WO2015003648A1 (en) Terminal device and locking/unlocking method therefor
US10405282B2 (en) Information processing apparatus and information processing method
JP6335682B2 (en) Electronic device with reset function
US20170149990A1 (en) Image forming apparatus, computer readable recording medium stored with computer program for controlling image forming apparatus, and method for controlling image forming apparatus
US9582069B2 (en) Electronic apparatus and wake-up method thereof
US20130217434A1 (en) Method and system for transmitting data and electronic apparatus using the method
KR20110049274A (en) Apparatus and method for performing virus scan in portable terminal
TW201250448A (en) Computer system and system reset method thereof
TWI493458B (en) Computer apparatus and reboot method thereof
US11138062B2 (en) Terminal device troubleshooting method and terminal device
US11520545B2 (en) Printing system, printing system control method, non-transitory computer-readable storage medium storing program, electronic device system, and printing apparatus for performing initial setting of printing apparatus
JP6255918B2 (en) Information processing apparatus, communication control method, and communication control program
TWI461905B (en) Computing device capable of remote crash recovery, method for remote crash recovery of computing device, and computer readable medium
US20200228664A1 (en) Controlled device, communication control method, and program
JP6586832B2 (en) Information processing device
CN210348410U (en) Equipment line network state switching device
JP6859677B2 (en) Terminal equipment
JP5206481B2 (en) Power supply control device, battery pack, control processing device, and terminal device
US20220147157A1 (en) Key strike capture
JP6384828B2 (en) Electronic device with sleep function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170619

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180131

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180404

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180501

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180501

R150 Certificate of patent or registration of utility model

Ref document number: 6335682

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150