JP5679383B2 - Electronic device, power operation log recording method and program - Google Patents
Electronic device, power operation log recording method and program Download PDFInfo
- Publication number
- JP5679383B2 JP5679383B2 JP2013519284A JP2013519284A JP5679383B2 JP 5679383 B2 JP5679383 B2 JP 5679383B2 JP 2013519284 A JP2013519284 A JP 2013519284A JP 2013519284 A JP2013519284 A JP 2013519284A JP 5679383 B2 JP5679383 B2 JP 5679383B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- log
- sector
- external power
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
- G11C16/10—Programming or data input circuits
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
- G11C16/10—Programming or data input circuits
- G11C16/20—Initialising; Data preset; Chip identification
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
- G11C16/22—Safety or protection circuits preventing unauthorised or accidental access to memory cells
Description
本発明は、電子機器、電源操作ログ記録方法および記録媒体に関し、特には、フラッシュメモリに外部電源との接続に関するログを記録する電子機器、電源操作ログ記録方法および記録媒体に関する。 The present invention relates to an electronic device, a power operation log recording method, and a recording medium, and more particularly, to an electronic device, a power operation log recording method, and a recording medium that record a log relating to connection to an external power source in a flash memory.
利用者が電子機器に対して行った操作の履歴を記録し、その履歴に応じて電子機器を制御する技術が、特許文献1に記載されている。具体的には、特許文献1に記載の技術は、利用者にて電源投入操作が行われた時刻の履歴(以下「電源操作履歴」と称する)を記録し、電源操作履歴に基づいて次回の電源投入の予測時刻を算出し、次回の電源投入の予測時刻に電源を自動的に投入する技術である。 Patent Document 1 describes a technique for recording a history of operations performed on an electronic device by a user and controlling the electronic device according to the history. Specifically, the technology described in Patent Document 1 records a history of times when a user performs a power-on operation (hereinafter referred to as “power operation history”), and the next time based on the power operation history. This is a technique for calculating a predicted power-on time and automatically powering on at the next power-on predicted time.
特許文献2には、電源操作履歴を記憶する記憶手段として、不揮発性メモリを用いた放送受信装置が記載されている。 Patent Document 2 describes a broadcast receiving apparatus using a non-volatile memory as storage means for storing a power supply operation history.
また、不揮発性メモリとしては、フラッシュメモリが一般的に知られている(特許文献3参照)。 As a nonvolatile memory, a flash memory is generally known (see Patent Document 3).
フラッシュメモリでのデータ書込みシーケンスでは、まず、複数のセルからなるセクタ内のすべてのデータが消去され(例えば、セクタ内のデータがすべて“1”にされる)、その後、そのセクタ内のセルのうち、データ書き込みが必要なセルにデータ(例えばデータ“0”)が書き込まれる。 In the data write sequence in the flash memory, first, all the data in the sector composed of a plurality of cells is erased (for example, all the data in the sector is set to “1”). Of these, data (for example, data “0”) is written into a cell that requires data writing.
なお、フラッシュメモリでのデータ書込みシーケンスで、最初に、セクタ内のすべてのデータが消去される理由は、以下のとおりである。 The reason why all data in the sector is first erased in the data write sequence in the flash memory is as follows.
フラッシュメモリでのデータの書込みは、セル単位で行うことができるが、この書込みでは、データ“1”と“0”のうちいずれか一方(例えば“0”のデータ)しか書き込めない。 Data writing in the flash memory can be performed in units of cells, but in this writing, only one of data “1” and “0” (for example, “0” data) can be written.
一方、フラッシュメモリ内のデータを消去する処理は、セルのデータを、書込みができないデータ(例えば“1”のデータ)に設定する処理であり、この処理は、セル単位で実行することはできず、セクタ単位で実行される。 On the other hand, the process of erasing the data in the flash memory is a process of setting the cell data to data that cannot be written (for example, “1” data), and this process cannot be executed in units of cells. , Executed in units of sectors.
このため、データの書込みの前に、セクタ内のすべてのデータを、書込みができないデータ(例えば、“1”のデータ)に設定するデータ消去処理が行われる。 Therefore, before the data is written, a data erasing process is performed in which all data in the sector is set to data that cannot be written (for example, “1” data).
特許文献3に記載のように、フラッシュメモリでは、セクタ内のデータの消去に時間がかかることが知られている。このため、通常の書込みシーケンスにおいては、書込み対象となるセクタ(以下「対象セクタ」と称する)がたとえ1つでも、書込みシーケンス全体の処理時間が長くなる。 As described in Patent Document 3, it is known that in a flash memory, it takes time to erase data in a sector. For this reason, in the normal write sequence, the processing time of the entire write sequence becomes long even if there is only one sector to be written (hereinafter referred to as “target sector”).
一方、外部電源が接続されると、必要最低限のハードウェアおよびソフトウェアだけが動作するスタンバイ状態となる電子機器が知られている。この電子機器では、スタンバイ状態に遷移した直後に利用者が誤って外部電源を遮断する、あるいは、利用者が何らかの理由で故意に外部電源を遮断することが想定される。 On the other hand, electronic devices that are in a standby state in which only the minimum necessary hardware and software operate when an external power supply is connected are known. In this electronic device, it is assumed that the user accidentally cuts off the external power supply immediately after the transition to the standby state, or the user intentionally cuts off the external power supply for some reason.
このため、外部電源が接続された直後のスタンバイ状態時に、通常の書込みシーケンスでフラッシュメモリに電源操作に関する履歴を書き込む処理が開始された状況下で、利用者が誤って外部電源を遮断する、あるいは、利用者が何らかの理由で故意に外部電源を遮断することも想定される。この場合、書込みシーケンスの途中で電源が遮断される。 For this reason, in the standby state immediately after the external power supply is connected, the user accidentally shuts off the external power supply in a situation where the process of writing the history regarding the power supply operation to the flash memory is started in the normal write sequence, or It is also assumed that the user intentionally shuts off the external power supply for some reason. In this case, the power is shut off during the writing sequence.
書込みシーケンスの途中で電源が遮断されると、フラッシュメモリへの電源操作に関する履歴の書込みが中断されて電源操作の履歴が不完全な状態となる、あるいは、フラッシュメモリ内の一部のデータが破壊される恐れがあるという課題がある。 If the power supply is cut off during the write sequence, the history of power supply operations to the flash memory is interrupted and the power supply operation history is incomplete, or some data in the flash memory is destroyed. There is a problem that there is a risk of being.
本発明の目的は、上記課題を解決可能な電子機器、電源操作ログ記録方法および記録媒体を提供することである。 An object of the present invention is to provide an electronic device, a power operation log recording method, and a recording medium that can solve the above-described problems.
本発明の電子機器は、外部電源との接続に関するログを記録する電子機器であって、
初期状態でデータが消去されている所定セクタと、前記所定セクタとは異なる特定セクタと、を有するフラッシュメモリと、
画像を投射する動作またはデジタル放送を受信する動作を行う動作部と、
前記外部電源と接続されると、前記動作部の動作が停止しているスタンバイ状態に前記電子機器が遷移し、前記スタンバイ状態において前記動作部の動作が行われている電源オン状態にする旨の電源オン指示を受け付けると、前記電子機器を前記電源オン状態に遷移させ、前記外部電源と接続されると、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記ログを表すデータを記録し、前記電源オン指示を受け付ける前に前記外部電源と遮断された後、再び前記外部電源と接続された再接続状態の場合、前記所定セクタ内のデータを消去することなく、前記ログを表すデータを記録した前記所定のセクタと同じセクタのうちデータが消去済みの領域に新しい前記ログを表すデータを記録する記録手段と、を含む。
The electronic device of the present invention is an electronic device that records a log related to connection with an external power source,
A predetermined sector in which data is erased in the initial state, the flash memory that have a a different specific sector from the predetermined sector,
An operation unit for performing an operation of projecting an image or an operation of receiving a digital broadcast;
When connected to the external power supply, the electronic device transitions to a standby state where the operation of the operation unit is stopped, and enters a power-on state where the operation of the operation unit is performed in the standby state. When the power-on instruction is received, the electronic device is shifted to the power-on state, and when connected to the external power source, the data in the predetermined sector has been erased without erasing the data in the predetermined sector. after recording the data representing the log area was blocked with the external power source before accepting the previous SL power-on instruction, if reconnection state of being again connected to the external power source, data in the predetermined sector In the same sector as the predetermined sector in which the data representing the log is recorded, the data representing the new log is recorded in the area where the data has been erased. And means, the.
本発明の電源操作ログ記録方法は、初期状態でデータが消去されている所定セクタを有するフラッシュメモリと、画像を投射する動作またはデジタル放送を受信する動作を行う動作部と、を含む電子機器での電源操作ログ記録方法であって、
外部電源と接続されると、前記動作部の動作が停止しているスタンバイ状態に前記電子機器が遷移し、前記スタンバイ状態において前記動作部の動作が行われている電源オン状態にする旨の電源オン指示を受け付けると、前記電子機器を前記電源オン状態に遷移させ、前記外部電源と接続されると、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記外部電源との接続に関するログを表すデータを記録し、前記電源オン指示を受け付ける前に前記外部電源と遮断された後、再び前記外部電源と接続された再接続状態の場合、前記所定セクタ内のデータを消去することなく、前記ログを表すデータを記録した前記所定のセクタと同じセクタのうちデータが消去済みの領域に新しい前記ログを表すデータを記録する。
Power operation log recording method of the present invention includes a flash memory that have a predetermined sector data in the initial state is cleared, an operation section that performs operation of receiving an operation or digital broadcasting to project an image, the A method for recording power operation logs in electronic equipment,
When connected to an external power supply, the electronic device transitions to a standby state in which the operation of the operation unit is stopped, and a power supply that is in a power-on state in which the operation of the operation unit is performed in the standby state When an on instruction is received, the electronic device is shifted to the power-on state, and when connected to the external power source, the data in the predetermined sector is erased without erasing the data in the predetermined sector. the record data representing the log of connection to an external power source, after being cut off from the external power source before accepting the previous SL power-on instruction, if reconnection state of being again connected to the external power source, the Without deleting the data in the predetermined sector, the new log is displayed in the area where the data has been deleted in the same sector as the predetermined sector in which the data representing the log is recorded. To record the data.
本発明のプログラムは、初期状態でデータが消去されている所定セクタを有するフラッシュメモリと、画像を投射する動作またはデジタル放送を受信する動作を行う動作部と、に接続されたコンピュータに、
外部電源と接続されると、前記動作部の動作が停止しているスタンバイ状態に前記コンピュータが遷移し、前記スタンバイ状態において前記動作部の動作が行われている電源オン状態にする旨の電源オン指示を受け付けると、前記コンピュータを前記電源オン状態に遷移させ、前記外部電源と接続されると、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記外部電源との接続に関するログを表すデータを記録し、前記電源オン指示を受け付ける前に前記外部電源と遮断された後、再び前記外部電源と接続された再接続状態の場合、前記所定セクタ内のデータを消去することなく、前記ログを表すデータを記録した前記所定のセクタと同じセクタのうちデータが消去済みの領域に新しい前記ログを表すデータを記録する手順を実行させる。
Program of the present invention includes a flash memory that have a predetermined sector data in the initial state is cleared, an operation section that performs operation of receiving an operation or digital broadcasting to project an image, to a computer connected to the ,
When connected to an external power supply, the computer transitions to a standby state in which the operation of the operation unit is stopped, and a power-on state indicating that the operation unit is operating in the standby state. When the instruction is received, the computer is changed to the power-on state, and when connected to the external power source, the data in the predetermined sector is erased in the area where the data has been erased without erasing the data in the predetermined sector. recording the data representing the log of connection to an external power source, after being cut off from the external power source before accepting the previous SL power-on instruction, if reconnection state of being again connected to the external power supply, the predetermined sector Without erasing the data in the same sector as the predetermined sector in which the data representing the log is recorded, the data is erased in a new area. To execute the steps of recording data representing a grayed.
本発明によれば、電源操作ログの記録が正確に行われない確率を低くすることが可能になる。 According to the present invention, it is possible to reduce the probability that the power operation log is not accurately recorded.
以下、本発明の一実施形態の電子機器について説明する。 Hereinafter, an electronic apparatus according to an embodiment of the present invention will be described.
図1は、本発明の一実施形態の電子機器1を示したブロック図である。 FIG. 1 is a block diagram showing an electronic apparatus 1 according to an embodiment of the present invention.
図1において、電子機器1は、NOR型フラッシュメモリ1aと、記録部1bと、動作部1cと、を含む。
In FIG. 1, an electronic device 1 includes a
NOR型フラッシュメモリ1aは、フラッシュメモリの一例である。
The NOR
図2は、NOR型フラッシュメモリ1aのセクタ構成を説明するための図である。
FIG. 2 is a diagram for explaining the sector configuration of the
図2において、NOR型フラッシュメモリ1aは、データ消去単位であるセクタを複数有する。複数のセクタは、仮領域セクタ11と本領域セクタ12とを含む。
In FIG. 2, the NOR
仮領域セクタ11は、一般的に所定セクタと呼ぶことができる。仮領域セクタ11内のデータは、初期状態(例えば、工場出荷時の初期状態)ですべて消去されすべて“1”になっている。本領域セクタ12は、一般的に特定セクタと呼ぶことができる。
The
記録部1bは、一般的に記録手段と呼ぶことができる。
記録部1bは、商用電源等の外部電源と接続するごとに、仮領域セクタ11内のデータを消去することなく、仮領域セクタ11のうちデータが消去済みの領域に、外部電源との接続に関するログを表すデータを記録する。以下、「外部電源との接続に関するログ」を単に「ログ」と称し、「ログを表すデータ」を単に「ログデータ」と称する。
Each time the
また、記録部1bは、電子機器1を電源オン状態にする旨の電源オン指示を外部電源と接続した状態で受け付けた場合に、仮領域セクタ11内のログデータを本領域セクタ12に記録し、その後、仮領域セクタ11内のログデータを消去する。
Further, the
記録部1bは、電源プラグ1b1と、入力部1b2と、処理部1b3と、を含む。
The
電源プラグ1b1は、外部電源のコンセント(不図示)と接続する。入力部1b2は、例えば、電源オンボタンであり、利用者からの電源オン指示および電源オフ指示を受け付ける。 The power plug 1b1 is connected to an outlet (not shown) of an external power source. The input unit 1b2 is, for example, a power-on button, and receives a power-on instruction and a power-off instruction from the user.
処理部1b3は、電源プラグ1b1が外部電源と接続すると、電源プラグ1b1を介して電源電圧を受け付ける。処理部1b3は、電源電圧を受け付けると動作を開始する。 When the power plug 1b1 is connected to an external power supply, the processing unit 1b3 receives a power supply voltage via the power plug 1b1. The processing unit 1b3 starts its operation when it receives the power supply voltage.
処理部1b3は、電源プラグ1b1が外部電源と接続するごとに、仮領域セクタ11内のデータを消去することなく、仮領域セクタ11のうちデータが消去済みの領域に、ログデータを記録する。
Each time the power plug 1b1 is connected to the external power supply, the processing unit 1b3 records log data in the
また、処理部1b3は、電源電圧を受け付けている状況で、入力部1b2が電源オン指示を受け付けた場合に、仮領域セクタ11内のログデータを本領域セクタ12に記録し、その後、仮領域セクタ11内のログデータを消去する。また、処理部1b3は、電源電圧を受け付けている状況で、入力部1b2が電源オン指示を受け付けた場合に、動作部1cに電源電圧を供給して動作部1cを起動する。
Further, when the input unit 1b2 receives a power-on instruction in a situation where the power supply voltage is received, the processing unit 1b3 records the log data in the
処理部1b3は、RTC(Real Time Clock)1b3aと、制御部1b3bと、を含む。 The processing unit 1b3 includes an RTC (Real Time Clock) 1b3a and a control unit 1b3b.
RTC1b3aは、日時を表す時刻データを出力する。 The RTC 1b3a outputs time data representing the date and time.
制御部1b3bは、記録部1b全体の動作を制御し、また、動作部1cを制御する。
The control unit 1b3b controls the operation of the
動作部1cは、電源電圧を受け付けると起動する。動作部1cは、電子機器1を特徴づける動作を行う。例えば、電子機器1がプロジェクタである場合には、動作部1cは、画像を投写する。また、電子機器1がデジタル放送受信装置である場合には、動作部1cは、デジタル放送を受信する。
The
次に、電子機器1の動作を説明する。 Next, the operation of the electronic device 1 will be described.
図3は、電子機器1の動作を説明するためのフローチャートである。 FIG. 3 is a flowchart for explaining the operation of the electronic apparatus 1.
利用者が電源プラグ1b1を外部電源のコンセントに接続すると、処理部1b3に電源電圧が供給される。処理部1b3に電源電圧が供給されると、電子機器1の状態は、電源未投入の状態から、必要最低限のハードウェアおよびソフトウェアだけが動作するスタンバイ状態に遷移する。 When the user connects the power plug 1b1 to the outlet of the external power supply, the power supply voltage is supplied to the processing unit 1b3. When the power supply voltage is supplied to the processing unit 1b3, the state of the electronic device 1 is changed from a state in which the power is not turned on to a standby state in which only necessary minimum hardware and software operate.
スタンバイ状態になると、処理部1b3が動作を開始し、処理部1b3内の制御部1b3bは、外部電源と接続したと判断する(ステップS301)。 In the standby state, the processing unit 1b3 starts to operate, and the control unit 1b3b in the processing unit 1b3 determines that it is connected to an external power supply (step S301).
続いて、制御部1b3bは、RTC1b3aから時刻データを取得する(ステップS302)。 Subsequently, the control unit 1b3b acquires time data from the RTC 1b3a (step S302).
続いて、制御部1b3bは、RTC1b3aからの時刻データが表す日時を示したタイムスタンプデータを生成する。続いて、制御部1b3bは、タイムスタンプデータに、電源投入操作が行われたことを定義するメッセージ(例えば、「電源投入操作有り」というメッセージ)を加えて電源投入操作ログを表すデータを生成する。なお、電源投入操作ログを表すデータは、ログデータの一例である。以下では「電源投入操作ログを表すデータ」を「ログデータ」と称する。続いて、制御部1b3bは、ログデータを、仮領域セクタ11のうちデータが消去済みの領域に書込み保存する(ステップS303)。 Subsequently, the control unit 1b3b generates time stamp data indicating the date and time represented by the time data from the RTC 1b3a. Subsequently, the control unit 1b3b adds data to the time stamp data that defines that a power-on operation has been performed (for example, a message “There is a power-on operation”) to generate data representing a power-on operation log. . The data representing the power-on operation log is an example of log data. Hereinafter, “data representing the power-on operation log” is referred to as “log data”. Subsequently, the control unit 1b3b writes and saves the log data in the area where the data has been erased in the temporary area sector 11 (step S303).
なお、制御部1b3bは、仮領域セクタ11へのログデータの書込みでは、仮領域セクタ11内のデータの消去(仮領域セクタ11内のデータをすべて“1”にする動作)は行わず、必要なセルのビットデータを“1”から“0”にするデータ書込みを行う。
Note that the controller 1b3b does not erase the data in the temporary area sector 11 (the operation to set all the data in the
仮領域セクタ11に書き込まれるログデータのフォーマットは、本領域セクタ12に書き込まれるログデータのフォーマットと同じである必要はなく、例えば、本領域セクタ12に書き込まれるログデータの冗長部が部分的に除去されたフォーマットが、仮領域セクタ11に書き込まれるログデータのフォーマットとして用いられてもよい。
The format of the log data written in the
スタンバイ状態中に、利用者が電源プラグ1b1を一旦外部電源のコンセントから抜くと、処理部1b3への電源電圧の供給が遮断し(ステップS304)、電子機器1の状態は、電源未投入の状態になる。 When the user unplugs the power plug 1b1 from the outlet of the external power supply in the standby state, the supply of the power supply voltage to the processing unit 1b3 is cut off (step S304), and the state of the electronic device 1 is the state in which the power is not turned on. become.
その後、再び、利用者が電源プラグ1b1を外部電源のコンセントに接続すると(ステップS301)、ステップS302およびS303が実行される。 Thereafter, when the user again connects the power plug 1b1 to the outlet of the external power supply (step S301), steps S302 and S303 are executed.
なお、ステップS303では、制御部1b3bは、先に仮領域セクタ11に保存されているログデータに続けて新しいログデータを付け加えるように、新しいログデータを書き込む。
In step S303, the control unit 1b3b writes new log data so that new log data is added after the log data previously stored in the
ステップS303で、制御部1b3bが、仮領域セクタ11内のログデータを削除することなく、新しいログデータを、仮領域セクタ11のうちデータが消去済みの領域に追加記録する結果、ステップS303での仮領域セクタ11へのデータ書込みの所要時間は、例えば、マイクロ秒オーダーという短時間になる。
In step S303, the control unit 1b3b additionally records new log data in the
このため、利用者による故意または不注意のよる電源遮断行為に起因するデータ書込みの中断、あるいはNOR型フラッシュメモリでのデータ破壊といったリスクを小さくすることが可能になる。 For this reason, it is possible to reduce the risk of interruption of data writing due to intentional or careless power-off action by the user or data destruction in the NOR flash memory.
なお、スタンバイ状態は、外部電源との接続が維持されている状況では、利用者が入力部1b2を操作して電源オン指示(図3では「PowerOn要求」として示してある)を入力するまで維持される。 The standby state is maintained until the user operates the input unit 1b2 and inputs a power-on instruction (shown as “PowerOn request” in FIG. 3) in a situation where the connection with the external power source is maintained. Is done.
スタンバイ状態で入力部1b2が操作されて電源オン指示が受け付けられると(ステップS305)、制御部1b3bは、動作部1cに電源電圧を供給して、電子機器1の状態を電源オン(PowerOn)状態にする手続き(起動)を開始する(ステップS306)。
When the input unit 1b2 is operated in the standby state and a power-on instruction is received (step S305), the control unit 1b3b supplies a power supply voltage to the
起動が完了し電子機器1が電源オン状態に完全に遷移すると(ステップS307)、制御部1b3bは、仮領域セクタ11に保存されているすべてのログデータを、本領域セクタ12に記録する(ステップS308)。
When the start-up is completed and the electronic device 1 is completely switched to the power-on state (step S307), the control unit 1b3b records all log data stored in the
本実施形態では、ステップS308において、制御部1b3bは、まず、本領域セクタ12に既に保存されているログデータと、仮領域セクタ11に保存されているログデータと、を読み出す。その後、制御部1b3bは、本領域セクタ12内のログデータの消去(本領域セクタ12内のすべてのデータを“1”にする処理)を行う。その後、制御部1b3bは、読み出されたログデータを、タイムスタンプデータに示された日時をベースにソートし、そのソート結果を本領域セクタ12に書き込む。
In the present embodiment, in step S308, the control unit 1b3b first reads the log data already stored in the
続いて、制御部1b3bは、仮領域セクタ11内のすべてのデータの消去(仮領域セクタ11内のすべてのデータを“1”にする処理)を行う(ステップS309)。
Subsequently, the control unit 1b3b erases all data in the temporary area sector 11 (processing for setting all data in the
続いて、電源オン状態で入力部1b2が操作されることで電源オフ指示(図3では「PowerOff要求」として示してある)が受け付けられると(ステップS310)、制御部1b3bは、動作部1cの動作を停止する処理(図3では「PowerOff手続き」として示してある)を実行する。
Subsequently, when the input unit 1b2 is operated in the power-on state and a power-off instruction (shown as “PowerOff request” in FIG. 3) is received (step S310), the control unit 1b3b is connected to the
制御部1b3bは、動作部1cの動作を停止する処理(ステップS311)が完了すると、動作部1cへの電源供給を停止し、電子機器1の状態をスタンバイ状態にし、処理をステップS304に戻す。
When the process of stopping the operation of the
なお、ステップS304は、電子機器1がスタンバイ状態であるとき、利用者はいつでも電子機器1の電源を遮断できることを示している。 Note that step S304 indicates that when the electronic device 1 is in the standby state, the user can cut off the power of the electronic device 1 at any time.
本実施形態では、「セクタ内のデータを消去(セクタ内のすべてのデータを“1”にする処理)をしなくても、ビットデータ“1”を“0”に書換えることが可能である」というNOR型フラッシュメモリの特性を利用することで、NOR型フラッシュメモリ1aを搭載した電子機器1において、電源投入操作ログを高速でNOR型フラッシュメモリ1aに書込み保存することが可能になる。
In the present embodiment, “bit data“ 1 ”can be rewritten to“ 0 ”without erasing data in the sector (processing to set all data in the sector to“ 1 ”)”. By using the characteristics of the NOR flash memory, the power-on operation log can be written and stored in the NOR
本実施形態によれば、NOR型フラッシュメモリ1a内の仮領域セクタ11は、初期状態でデータが消去されており、記録部1bは、外部電源と接続するごとに、仮領域セクタ11内のデータを消去することなく、仮領域セクタ11のうちデータが消去済みの領域にログデータを記録する。そして、記録部1bは、仮領域セクタ11内のログデータを本領域セクタ12に記録した後に、仮領域セクタ11内のログデータを消去する。
According to the present embodiment, the data in the
記録部1bは、ログデータを記録する際に、仮領域セクタ11内のデータを消去する消去処理を行わないため、消去処理を伴ってログデータを記録する場合に比べて、ログデータの記録に要する時間を短くすることが可能になる。
Since the
よって、ログデータの記録中に、利用者の操作に応じて電子機器1への電源電圧の供給が遮断されて、ログデータの記録が中断する、あるいはNOR型フラッシュメモリ1a内のデータが破壊されるといったリスクを小さくすることが可能になる。また、仮領域セクタ11内のログデータは、本領域セクタ12に記録した後に消去される。このため、仮領域セクタ11がログデータで満たされてログデータを記録できなくなる状況を回避可能となる。この効果は、NOR型フラッシュメモリ1aと記録部1bからなる電子機器でも奏する。
Therefore, during the log data recording, the supply of the power supply voltage to the electronic device 1 is interrupted according to the user's operation, the log data recording is interrupted, or the data in the NOR
また、本実施形態によれば、記録部1bは、外部電源と接続した状態で電源オン指示を受け付けた場合に、仮領域セクタ11内のログデータを本領域セクタ12に記録し、その後、仮領域セクタ11内のログデータを消去する。
Further, according to the present embodiment, the
電源オン指示が受け付けられた状況では、利用者は、電子機器1を利用する可能性が高く、電子機器1への電源電圧の供給が急に遮断される可能性は低い。このため、記録部1bは、電子機器1への電源電圧の供給が急に遮断される可能性が低い時期に、仮領域セクタ11内のログデータを本領域セクタ12に記録し、その後、仮領域セクタ11内のログデータを消去するという、時間のかかる一連の動作を行うことになる。よって、時間のかかる一連の動作が、電子機器1への電源電圧の供給が急に遮断されることによって中断される可能性を低くできる。
In a situation where a power-on instruction is accepted, the user is highly likely to use the electronic device 1 and is unlikely to be suddenly cut off from the supply of power supply voltage to the electronic device 1. For this reason, the
なお、上記実施形態では、電子機器1として、スタンバイ状態を有する電子機器を用いたが、電子機器1は、スタンバイ状態を有さない電子機器でもよい。この場合、制御部1b3bは、電源プラグ1b1が外部電源のコンセントに接続されて電源プラグ1b1から電源電圧を受け付けたときに、仮領域セクタ11のうちデータが消去済みの領域に、ログデータを記録する。
In the above embodiment, an electronic device having a standby state is used as the electronic device 1, but the electronic device 1 may be an electronic device that does not have a standby state. In this case, when the power plug 1b1 is connected to the outlet of the external power supply and the power supply voltage is received from the power plug 1b1, the control unit 1b3b records the log data in the
また、処理部1b3は、コンピュータにて実現されてもよい。この場合、コンピュータは、コンピュータにて読み取り可能なCD−ROM(Compact Disk Read Only Memory)のような記録媒体に記録されたプログラムを読込み実行して、処理部1b3として機能する。記録媒体は、CD−ROMに限らず適宜変更可能である。 The processing unit 1b3 may be realized by a computer. In this case, the computer reads and executes a program recorded on a recording medium such as a CD-ROM (Compact Disk Read Only Memory) readable by the computer, and functions as the processing unit 1b3. The recording medium is not limited to the CD-ROM and can be changed as appropriate.
以上、実施形態を参照して本願発明を説明したが、本願発明は上記実施形態に限定されるものではない。本願発明の構成や詳細には、本願発明のスコープ内で当業者が理解し得る様々な変更をすることができる。 While the present invention has been described with reference to the embodiments, the present invention is not limited to the above embodiments. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.
1 電子機器
1a NOR型フラッシュメモリ
1b 記録部
1b1 電源プラグ
1b2 入力部
1b3 処理部
1b3a RTC
1b3b 制御部
1c 動作部
11 仮領域セクタ
12 本領域セクタDESCRIPTION OF SYMBOLS 1
Claims (5)
初期状態でデータが消去されている所定セクタと、前記所定セクタとは異なる特定セクタと、を有するフラッシュメモリと、
画像を投射する動作またはデジタル放送を受信する動作を行う動作部と、
前記外部電源と接続されると、前記動作部の動作が停止しているスタンバイ状態に前記電子機器が遷移し、前記スタンバイ状態において前記動作部の動作が行われている電源オン状態にする旨の電源オン指示を受け付けると、前記電子機器を前記電源オン状態に遷移させ、前記外部電源と接続されると、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記ログを表すデータを記録し、前記電源オン指示を受け付ける前に前記外部電源と遮断された後、再び前記外部電源と接続された再接続状態の場合、前記所定セクタ内のデータを消去することなく、前記ログを表すデータを記録した前記所定のセクタと同じセクタのうちデータが消去済みの領域に新しい前記ログを表すデータを記録する記録手段と、を含む、電子機器。 An electronic device that records a log related to connection to an external power source,
A predetermined sector in which data is erased in the initial state, the flash memory that have a a different specific sector from the predetermined sector,
An operation unit for performing an operation of projecting an image or an operation of receiving a digital broadcast;
When connected to the external power supply, the electronic device transitions to a standby state where the operation of the operation unit is stopped, and enters a power-on state where the operation of the operation unit is performed in the standby state. When the power-on instruction is received, the electronic device is shifted to the power-on state, and when connected to the external power source, the data in the predetermined sector has been erased without erasing the data in the predetermined sector. after recording the data representing the log area was blocked with the external power source before accepting the previous SL power-on instruction, if reconnection state of being again connected to the external power source, data in the predetermined sector In the same sector as the predetermined sector in which the data representing the log is recorded, the data representing the new log is recorded in the area where the data has been erased. And means, and electronic equipment.
前記記録手段は、前記電源オン状態において、前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録し、その後、前記所定セクタ内の前記ログを表すデータを消去する、電子機器。 The electronic device according to claim 1,
Said recording means, Oite before Symbol power ON state, to record data representative of the log in the predetermined sector to the specific sector, then erases the data representing the log in the predetermined sector, the electronic machine.
前記フラッシュメモリは、NOR型フラッシュメモリであり、The flash memory is a NOR flash memory,
前記記録手段は、前記再接続状態において、前記新しいログを表すデータを記録する際、前記所定セクタ内の、先に保存されている前記ログを表すデータに続けて前記新しいログを表すデータを記録する、電子機器。When recording data representing the new log in the reconnection state, the recording means records data representing the new log following the data representing the log previously stored in the predetermined sector. Electronic equipment.
外部電源と接続されると、前記動作部の動作が停止しているスタンバイ状態に前記電子機器が遷移し、前記スタンバイ状態において前記動作部の動作が行われている電源オン状態にする旨の電源オン指示を受け付けると、前記電子機器を前記電源オン状態に遷移させ、前記外部電源と接続されると、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記外部電源との接続に関するログを表すデータを記録し、前記電源オン指示を受け付ける前に前記外部電源と遮断された後、再び前記外部電源と接続された再接続状態の場合、前記所定セクタ内のデータを消去することなく、前記ログを表すデータを記録した前記所定のセクタと同じセクタのうちデータが消去済みの領域に新しい前記ログを表すデータを記録する、電源操作ログ記録方法。 A flash memory that have a predetermined sector data in the initial state is cleared, an operation section that performs operation of receiving an operation or digital broadcasting to project an image, the power operation log recording method of an electronic device comprising There,
When connected to an external power supply, the electronic device transitions to a standby state in which the operation of the operation unit is stopped, and a power supply that is in a power-on state in which the operation of the operation unit is performed in the standby state When an on instruction is received, the electronic device is shifted to the power-on state, and when connected to the external power source, the data in the predetermined sector is erased without erasing the data in the predetermined sector. the record data representing the log of connection to an external power source, after being cut off from the external power source before accepting the previous SL power-on instruction, if reconnection state of being again connected to the external power source, the Without deleting the data in the predetermined sector, the new log is displayed in the area where the data has been deleted in the same sector as the predetermined sector in which the data representing the log is recorded. To record the data, power operation log recording method.
外部電源と接続されると、前記動作部の動作が停止しているスタンバイ状態に前記コンピュータが遷移し、前記スタンバイ状態において前記動作部の動作が行われている電源オン状態にする旨の電源オン指示を受け付けると、前記コンピュータを前記電源オン状態に遷移させ、前記外部電源と接続されると、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記外部電源との接続に関するログを表すデータを記録し、前記電源オン指示を受け付ける前に前記外部電源と遮断された後、再び前記外部電源と接続された再接続状態の場合、前記所定セクタ内のデータを消去することなく、前記ログを表すデータを記録した前記所定のセクタと同じセクタのうちデータが消去済みの領域に新しい前記ログを表すデータを記録する手順を実行させるためのプログラム。 A flash memory that have a predetermined sector data in the initial state is erased, the image on a computer that is connected to the operation unit, the performing the operation of receiving an operation or digital broadcast for projecting,
When connected to an external power supply, the computer transitions to a standby state in which the operation of the operation unit is stopped, and a power-on state indicating that the operation unit is operating in the standby state. When the instruction is received, the computer is changed to the power-on state, and when connected to the external power source, the data in the predetermined sector is erased in the area where the data has been erased without erasing the data in the predetermined sector. recording the data representing the log of connection to an external power source, after being cut off from the external power source before accepting the previous SL power-on instruction, if reconnection state of being again connected to the external power supply, the predetermined sector Without erasing the data in the same sector as the predetermined sector in which the data representing the log is recorded, the data is erased in a new area. Program for executing the steps of recording data representing a grayed.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2011/063233 WO2012169038A1 (en) | 2011-06-09 | 2011-06-09 | Electronic apparatus, power supply operation log recording method, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JPWO2012169038A1 JPWO2012169038A1 (en) | 2015-02-23 |
JP5679383B2 true JP5679383B2 (en) | 2015-03-04 |
Family
ID=47295641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013519284A Active JP5679383B2 (en) | 2011-06-09 | 2011-06-09 | Electronic device, power operation log recording method and program |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5679383B2 (en) |
WO (1) | WO2012169038A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6233134B2 (en) * | 2014-03-28 | 2017-11-22 | 大日本印刷株式会社 | Electronic information storage medium, information processing method, and information processing program |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH096688A (en) * | 1995-06-19 | 1997-01-10 | Fuji Photo Film Co Ltd | Recording method for nonvolatile memory |
JP2001051894A (en) * | 1999-08-09 | 2001-02-23 | Murata Mfg Co Ltd | Data communication device |
JP2002366423A (en) * | 2001-06-04 | 2002-12-20 | Samsung Electronics Co Ltd | Method for managing flash memory |
JP2003085511A (en) * | 2001-09-14 | 2003-03-20 | Dainippon Printing Co Ltd | Ic card, and method for writing data in ic card |
JP2006011818A (en) * | 2004-06-25 | 2006-01-12 | Toshiba Corp | Portable electronic device and method for controlling portable electronic device |
JP2007280108A (en) * | 2006-04-07 | 2007-10-25 | Sony Corp | Storage medium controller, storage medium control method, and program |
WO2007122937A1 (en) * | 2006-03-23 | 2007-11-01 | Heiwa Corporation | Game machine |
WO2008018258A1 (en) * | 2006-08-09 | 2008-02-14 | Hitachi Ulsi Systems Co., Ltd. | Storage device |
JP2008146253A (en) * | 2006-12-07 | 2008-06-26 | Sony Corp | Storage device, computer system, and data processing method for storage device |
JP2009169583A (en) * | 2008-01-15 | 2009-07-30 | Panasonic Electric Works Co Ltd | Data communication device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005191815A (en) * | 2003-12-25 | 2005-07-14 | Victor Co Of Japan Ltd | Television broadcast receiving device |
JP2007122419A (en) * | 2005-10-28 | 2007-05-17 | Seiko Epson Corp | Non-volatile data update system, non-volatile data update method and program |
JP2009088737A (en) * | 2007-09-28 | 2009-04-23 | Hitachi Ltd | Broadcast receiver |
WO2010134300A1 (en) * | 2009-05-21 | 2010-11-25 | パナソニック株式会社 | Memory controller, nonvolatile storage device, accessing device, nonvolatile storage system, and method and program for writing data |
-
2011
- 2011-06-09 WO PCT/JP2011/063233 patent/WO2012169038A1/en active Application Filing
- 2011-06-09 JP JP2013519284A patent/JP5679383B2/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH096688A (en) * | 1995-06-19 | 1997-01-10 | Fuji Photo Film Co Ltd | Recording method for nonvolatile memory |
JP2001051894A (en) * | 1999-08-09 | 2001-02-23 | Murata Mfg Co Ltd | Data communication device |
JP2002366423A (en) * | 2001-06-04 | 2002-12-20 | Samsung Electronics Co Ltd | Method for managing flash memory |
JP2003085511A (en) * | 2001-09-14 | 2003-03-20 | Dainippon Printing Co Ltd | Ic card, and method for writing data in ic card |
JP2006011818A (en) * | 2004-06-25 | 2006-01-12 | Toshiba Corp | Portable electronic device and method for controlling portable electronic device |
WO2007122937A1 (en) * | 2006-03-23 | 2007-11-01 | Heiwa Corporation | Game machine |
JP2007280108A (en) * | 2006-04-07 | 2007-10-25 | Sony Corp | Storage medium controller, storage medium control method, and program |
WO2008018258A1 (en) * | 2006-08-09 | 2008-02-14 | Hitachi Ulsi Systems Co., Ltd. | Storage device |
JP2008146253A (en) * | 2006-12-07 | 2008-06-26 | Sony Corp | Storage device, computer system, and data processing method for storage device |
JP2009169583A (en) * | 2008-01-15 | 2009-07-30 | Panasonic Electric Works Co Ltd | Data communication device |
Also Published As
Publication number | Publication date |
---|---|
WO2012169038A1 (en) | 2012-12-13 |
JPWO2012169038A1 (en) | 2015-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4965824B2 (en) | Information processing apparatus and data relief method | |
KR101636870B1 (en) | Method and apparatus for generating minimal boot image | |
TWI382346B (en) | Computer system with dual bios protection mechanism and control method of the same | |
US7664982B2 (en) | Method and system for storing recovery related information on a computer memory | |
CN102023908A (en) | Method and device for backing up boot program | |
JP2008504628A (en) | Safe flushing | |
JP2002358248A (en) | Data recording device and data erasing device | |
JP4966422B1 (en) | Information processing apparatus and data protection method | |
JP2007122772A (en) | Information processor and method and program for storing data | |
JP5679383B2 (en) | Electronic device, power operation log recording method and program | |
JP2008225672A (en) | Semiconductor memory device | |
JP2012079069A (en) | Non-volatile memory unit | |
JP2009009323A (en) | Setting device, electronic equipment, and setting program | |
JP2010009553A (en) | Information processor, information processing method, and information processing program | |
JP4930684B2 (en) | TV and TV data transfer control method | |
JP2005313568A (en) | Printer, erasing method of data in printer, program and recording medium | |
JPWO2014147707A1 (en) | Information processing apparatus, information processing method, and information processing program | |
JP2007133602A (en) | Information processing system and onboard equipment | |
JP4687117B2 (en) | IC tester | |
JP2008112315A (en) | Electronic apparatus and method for rewriting program | |
JP5552930B2 (en) | Information processing apparatus and rewriting method | |
JP2007316687A (en) | Electronic equipment, program rewriting method, and program | |
JP2008083948A (en) | Hard disk information erasure method and program | |
JP2006011751A (en) | Information storage apparatus, control method thereof, and computer program | |
JP5484641B1 (en) | Programmable display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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: 20141209 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20141225 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5679383 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |