WO2012169038A1 - 電子機器、電源操作ログ記録方法および記録媒体 - Google Patents

電子機器、電源操作ログ記録方法および記録媒体 Download PDF

Info

Publication number
WO2012169038A1
WO2012169038A1 PCT/JP2011/063233 JP2011063233W WO2012169038A1 WO 2012169038 A1 WO2012169038 A1 WO 2012169038A1 JP 2011063233 W JP2011063233 W JP 2011063233W WO 2012169038 A1 WO2012169038 A1 WO 2012169038A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
sector
log
power supply
predetermined sector
Prior art date
Application number
PCT/JP2011/063233
Other languages
English (en)
French (fr)
Inventor
小林 正和
Original Assignee
Necディスプレイソリューションズ株式会社
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ディスプレイソリューションズ株式会社 filed Critical Necディスプレイソリューションズ株式会社
Priority to PCT/JP2011/063233 priority Critical patent/WO2012169038A1/ja
Priority to JP2013519284A priority patent/JP5679383B2/ja
Publication of WO2012169038A1 publication Critical patent/WO2012169038A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/10Programming or data input circuits
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/10Programming or data input circuits
    • G11C16/20Initialising; Data preset; Chip identification
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/22Safety or protection circuits preventing unauthorised or accidental access to memory cells

Definitions

  • 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.
  • Patent Document 1 discloses 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.
  • Patent Document 2 describes a broadcast receiving apparatus using a non-volatile memory as storage means for storing a power supply operation history.
  • a flash memory is generally known as a nonvolatile memory (see Patent Document 3).
  • 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.
  • Data writing in the flash memory can be performed in cell units, but in this writing, only one of data “1” and “0” (for example, “0” data) can be written.
  • 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.
  • 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 flash memory having a predetermined sector in which data is erased in an initial state, and a specific sector different from the predetermined sector; Each time it is connected to the external power source, the data representing the log is recorded in an area of the predetermined sector where the data has been erased without erasing the data in the predetermined sector, and the data in the predetermined sector is recorded. Recording means for erasing the data representing the log in the predetermined sector after recording the data representing the log in the specific sector.
  • the power operation log recording method of the present invention is a power operation log recording method in an electronic device including a flash memory having a predetermined sector in which data is erased in an initial state, Each time when connected to an external power supply, without erasing the data in the predetermined sector, the data representing the log relating to the connection with the external power supply is recorded in the area where the data has been erased in the predetermined sector, Data representing the log in the predetermined sector is recorded in the specific sector, and then the data representing the log in the predetermined sector is erased.
  • the recording medium of the present invention is connected to a computer connected to a flash memory having a predetermined sector from which data is erased in the initial state.
  • FIG. 1 It is a block diagram showing electronic equipment 1 of one embodiment of the present invention. It is a figure for demonstrating the sector structure of the NOR type flash memory 1a. 4 is a flowchart for explaining the operation of the electronic apparatus 1.
  • FIG. 1 is a block diagram showing an electronic apparatus 1 according to an embodiment of the present invention.
  • the electronic device 1 includes a NOR flash memory 1a, a recording unit 1b, and an operation unit 1c.
  • the NOR type flash memory 1a is an example of a flash memory.
  • FIG. 2 is a diagram for explaining the sector configuration of the NOR type flash memory 1a.
  • the NOR flash memory 1a has a plurality of sectors which are data erasing units.
  • the plurality of sectors includes a temporary area sector 11 and a main area sector 12.
  • the temporary area sector 11 can be generally called a predetermined sector. All the data in the temporary area sector 11 is erased in the initial state (for example, the initial state at the time of factory shipment) and is all set to “1”.
  • This area sector 12 can generally be called a specific sector.
  • the recording unit 1b can be generally called recording means.
  • log relating to connection with external power supply is simply referred to as “log”
  • data representing the log is simply referred to as “log data”.
  • the recording unit 1b records the log data in the temporary area sector 11 in the main area sector 12 when receiving a power-on instruction to turn on the electronic device 1 in a state connected to an external power source. Thereafter, the log data in the temporary area sector 11 is erased.
  • the recording unit 1b includes a power plug 1b1, an input unit 1b2, and a processing unit 1b3.
  • the power plug 1b1 is connected to an external power outlet (not shown).
  • 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.
  • the processing unit 1b3 When the power plug 1b1 is connected to the external power supply, the processing unit 1b3 receives the power supply voltage via the power plug 1b1. The processing unit 1b3 starts its operation when it receives the power supply voltage.
  • the processing unit 1b3 Each time the power plug 1b1 is connected to the external power supply, the processing unit 1b3 records log data in the temporary area sector 11 in the area where the data has been deleted without erasing the data in the temporary area sector 11.
  • the processing unit 1b3 records the log data in the temporary area sector 11 in the main area sector 12, and then the temporary area The log data in the sector 11 is erased. 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 supplies the power supply voltage to the operation unit 1c and activates the operation unit 1c.
  • the processing unit 1b3 includes an RTC (Real Time Clock) 1b3a and a control unit 1b3b.
  • RTC Real Time Clock
  • RTC 1b3a outputs time data representing the date and time.
  • Control unit 1b3b controls the operation of the entire recording unit 1b and controls the operation unit 1c.
  • the operation unit 1c is activated when a power supply voltage is received.
  • the operation unit 1 c performs an operation that characterizes the electronic device 1. For example, when the electronic device 1 is a projector, the operation unit 1c projects an image. When the electronic device 1 is a digital broadcast receiving device, the operation unit 1c receives a digital broadcast.
  • FIG. 3 is a flowchart for explaining the operation of the electronic device 1.
  • 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.
  • 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).
  • control unit 1b3b acquires time data from the RTC 1b3a (step S302).
  • 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).
  • controller 1b3b does not erase the data in the temporary area sector 11 (the operation to set all the data in the temporary area sector 11 to “1”) when writing log data to the temporary area sector 11, but is necessary. Data writing for changing the bit data of the correct cell from “1” to “0” is performed.
  • the format of the log data written in the temporary area sector 11 does not have to be the same as the format of the log data written in the main area sector 12.
  • the redundant part of the log data written in the main area sector 12 is partially
  • the removed format may be used as a format of log data written in the temporary area sector 11.
  • step S304 the state of the electronic device 1 is the state in which the power is not turned on. become.
  • steps S302 and S303 are executed.
  • 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 temporary area sector 11.
  • step S303 the control unit 1b3b additionally records new log data in the temporary area sector 11 in the area where the data has been deleted without deleting the log data in the temporary area sector 11.
  • the time required for writing data to the temporary area sector 11 is, for example, a short time on the order of microseconds.
  • 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.
  • control unit 1b3b supplies a power supply voltage to the operation unit 1c to change the state of the electronic device 1 to a power-on state.
  • the procedure (activation) to be started is started (step S306).
  • control unit 1b3b records all log data stored in the temporary area sector 11 in the main area sector 12 (step S307). S308).
  • step S308 the control unit 1b3b first reads the log data already stored in the main area sector 12 and the log data stored in the temporary area sector 11. Thereafter, the control unit 1b3b deletes the log data in the main area sector 12 (a process of setting all data in the main area sector 12 to “1”). Thereafter, the control unit 1b3b sorts the read log data based on the date and time indicated in the time stamp data, and writes the sorting result in the main sector 12.
  • control unit 1b3b deletes all data in the temporary area sector 11 (processing for setting all data in the temporary area sector 11 to “1”) (step S309).
  • step S310 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 operation unit 1c. A process of stopping the operation (shown as “PowerOff procedure” in FIG. 3) is executed.
  • step S311 When the process of stopping the operation of the operation unit 1c (step S311) is completed, the control unit 1b3b stops the power supply to the operation unit 1c, sets the state of the electronic device 1 to the standby state, and returns the process to step S304.
  • step S304 indicates that when the electronic device 1 is in the standby state, the user can cut off the power supply of the electronic device 1 at any time.
  • bit data“ 1 ” can be rewritten to“ 0 ”without erasing data in the sector (processing to set all data in the sector to“ 1 ”)”.
  • the power-on operation log can be written and stored in the NOR flash memory 1a at high speed in the electronic device 1 equipped with the NOR flash memory 1a.
  • the data in the temporary area sector 11 in the NOR flash memory 1a has been erased in the initial state, and the recording unit 1b has the data in the temporary area sector 11 each time it is connected to the external power supply.
  • Log data is recorded in an area of the temporary area sector 11 where the data has been erased.
  • the recording unit 1b records the log data in the temporary area sector 11 in the main area sector 12, and then deletes the log data in the temporary area sector 11.
  • the recording unit 1b Since the recording unit 1b does not perform an erasing process for erasing data in the temporary area sector 11 when recording log data, the recording unit 1b records log data as compared with the case of recording log data with an erasing process. The time required can be shortened.
  • 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 flash memory 1a is destroyed. It is possible to reduce the risk of The log data in the temporary area sector 11 is erased after being recorded in the main area sector 12. For this reason, it becomes possible to avoid a situation in which the temporary area sector 11 is filled with log data and log data cannot be recorded. This effect is also achieved by an electronic device including the NOR flash memory 1a and the recording unit 1b.
  • the recording unit 1b records the log data in the temporary area sector 11 in the main area sector 12 when receiving a power-on instruction while being connected to the external power supply, and then temporarily stores the temporary data.
  • the log data in the area sector 11 is erased.
  • the recording unit 1b records the log data in the temporary area sector 11 in the main area sector 12 at a time when the supply of the power supply voltage to the electronic device 1 is unlikely to be interrupted suddenly.
  • a series of time-consuming operations of erasing log data in the area sector 11 is performed. Therefore, it is possible to reduce the possibility that a series of time-consuming operations are interrupted when the supply of the power supply voltage to the electronic device 1 is suddenly interrupted.
  • 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.
  • the control unit 1b3b records the log data in the temporary area sector 11 where the data has been erased. To do.
  • the processing unit 1b3 may be realized by a computer.
  • 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.
  • 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.

Abstract

 外部電源との接続に関するログを記録する電子機器は、初期状態でデータが消去されている所定セクタを有するフラッシュメモリと、外部電源と接続するごとに所定セクタ内のデータを消去することなく所定セクタのうちデータが消去済みの領域に外部電源との接続に関するログを表すデータを記録し、また、前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録した後に、前記所定セクタ内の前記ログを表すデータを消去する記録手段と、を含む。

Description

電子機器、電源操作ログ記録方法および記録媒体
 本発明は、電子機器、電源操作ログ記録方法および記録媒体に関し、特には、フラッシュメモリに外部電源との接続に関するログを記録する電子機器、電源操作ログ記録方法および記録媒体に関する。
 利用者が電子機器に対して行った操作の履歴を記録し、その履歴に応じて電子機器を制御する技術が、特許文献1に記載されている。具体的には、特許文献1に記載の技術は、利用者にて電源投入操作が行われた時刻の履歴(以下「電源操作履歴」と称する)を記録し、電源操作履歴に基づいて次回の電源投入の予測時刻を算出し、次回の電源投入の予測時刻に電源を自動的に投入する技術である。
 特許文献2には、電源操作履歴を記憶する記憶手段として、不揮発性メモリを用いた放送受信装置が記載されている。
 また、不揮発性メモリとしては、フラッシュメモリが一般的に知られている(特許文献3参照)。
 フラッシュメモリでのデータ書込みシーケンスでは、まず、複数のセルからなるセクタ内のすべてのデータが消去され(例えば、セクタ内のデータがすべて“1”にされる)、その後、そのセクタ内のセルのうち、データ書き込みが必要なセルにデータ(例えばデータ“0”)が書き込まれる。
 なお、フラッシュメモリでのデータ書込みシーケンスで、最初に、セクタ内のすべてのデータが消去される理由は、以下のとおりである。
 フラッシュメモリでのデータの書込みは、セル単位で行うことができるが、この書込みでは、データ“1”と“0”のうちいずれか一方(例えば“0”のデータ)しか書き込めない。
 一方、フラッシュメモリ内のデータを消去する処理は、セルのデータを、書込みができないデータ(例えば“1”のデータ)に設定する処理であり、この処理は、セル単位で実行することはできず、セクタ単位で実行される。
 このため、データの書込みの前に、セクタ内のすべてのデータを、書込みができないデータ(例えば、“1”のデータ)に設定するデータ消去処理が行われる。
特開2005-191815号公報 特開2009-88737号公報 特開平11-353241号公報
 特許文献3に記載のように、フラッシュメモリでは、セクタ内のデータの消去に時間がかかることが知られている。このため、通常の書込みシーケンスにおいては、書込み対象となるセクタ(以下「対象セクタ」と称する)がたとえ1つでも、書込みシーケンス全体の処理時間が長くなる。
 一方、外部電源が接続されると、必要最低限のハードウェアおよびソフトウェアだけが動作するスタンバイ状態となる電子機器が知られている。この電子機器では、スタンバイ状態に遷移した直後に利用者が誤って外部電源を遮断する、あるいは、利用者が何らかの理由で故意に外部電源を遮断することが想定される。
 このため、外部電源が接続された直後のスタンバイ状態時に、通常の書込みシーケンスでフラッシュメモリに電源操作に関する履歴を書き込む処理が開始された状況下で、利用者が誤って外部電源を遮断する、あるいは、利用者が何らかの理由で故意に外部電源を遮断することも想定される。この場合、書込みシーケンスの途中で電源が遮断される。
 書込みシーケンスの途中で電源が遮断されると、フラッシュメモリへの電源操作に関する履歴の書込みが中断されて電源操作の履歴が不完全な状態となる、あるいは、フラッシュメモリ内の一部のデータが破壊される恐れがあるという課題がある。
 本発明の目的は、上記課題を解決可能な電子機器、電源操作ログ記録方法および記録媒体を提供することである。
 本発明の電子機器は、外部電源との接続に関するログを記録する電子機器であって、
 初期状態でデータが消去されている所定セクタと、前記所定セクタとは異なる特定セクタと、を有するフラッシュメモリと、
 前記外部電源と接続するごとに、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記ログを表すデータを記録し、また、前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録した後に、前記所定セクタ内の前記ログを表すデータを消去する記録手段と、を含む。
 本発明の電源操作ログ記録方法は、初期状態でデータが消去されている所定セクタを有するフラッシュメモリを含む電子機器での電源操作ログ記録方法であって、
 外部電源と接続するごとに、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記外部電源との接続に関するログを表すデータを記録し、
 前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録し、その後、前記所定セクタ内の前記ログを表すデータを消去する。
 本発明の記録媒体は、初期状態でデータが消去されている所定セクタを有するフラッシュメモリと接続されたコンピュータに、
 外部電源と接続するごとに、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記外部電源との接続に関するログを表すデータを記録する記録手順と、
 前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録した後に、前記所定セクタ内の前記ログを表すデータを消去する消去手順と、を実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体である。
 本発明によれば、電源操作ログの記録が正確に行われない確率を低くすることが可能になる。
本発明の一実施形態の電子機器1を示したブロック図である。 NOR型フラッシュメモリ1aのセクタ構成を説明するための図である。 電子機器1の動作を説明するためのフローチャートである。
 以下、本発明の一実施形態の電子機器について説明する。
 図1は、本発明の一実施形態の電子機器1を示したブロック図である。
 図1において、電子機器1は、NOR型フラッシュメモリ1aと、記録部1bと、動作部1cと、を含む。
 NOR型フラッシュメモリ1aは、フラッシュメモリの一例である。
 図2は、NOR型フラッシュメモリ1aのセクタ構成を説明するための図である。
 図2において、NOR型フラッシュメモリ1aは、データ消去単位であるセクタを複数有する。複数のセクタは、仮領域セクタ11と本領域セクタ12とを含む。
 仮領域セクタ11は、一般的に所定セクタと呼ぶことができる。仮領域セクタ11内のデータは、初期状態(例えば、工場出荷時の初期状態)ですべて消去されすべて“1”になっている。本領域セクタ12は、一般的に特定セクタと呼ぶことができる。
 記録部1bは、一般的に記録手段と呼ぶことができる。
 記録部1bは、商用電源等の外部電源と接続するごとに、仮領域セクタ11内のデータを消去することなく、仮領域セクタ11のうちデータが消去済みの領域に、外部電源との接続に関するログを表すデータを記録する。以下、「外部電源との接続に関するログ」を単に「ログ」と称し、「ログを表すデータ」を単に「ログデータ」と称する。
 また、記録部1bは、電子機器1を電源オン状態にする旨の電源オン指示を外部電源と接続した状態で受け付けた場合に、仮領域セクタ11内のログデータを本領域セクタ12に記録し、その後、仮領域セクタ11内のログデータを消去する。
 記録部1bは、電源プラグ1b1と、入力部1b2と、処理部1b3と、を含む。
 電源プラグ1b1は、外部電源のコンセント(不図示)と接続する。入力部1b2は、例えば、電源オンボタンであり、利用者からの電源オン指示および電源オフ指示を受け付ける。
 処理部1b3は、電源プラグ1b1が外部電源と接続すると、電源プラグ1b1を介して電源電圧を受け付ける。処理部1b3は、電源電圧を受け付けると動作を開始する。
 処理部1b3は、電源プラグ1b1が外部電源と接続するごとに、仮領域セクタ11内のデータを消去することなく、仮領域セクタ11のうちデータが消去済みの領域に、ログデータを記録する。
 また、処理部1b3は、電源電圧を受け付けている状況で、入力部1b2が電源オン指示を受け付けた場合に、仮領域セクタ11内のログデータを本領域セクタ12に記録し、その後、仮領域セクタ11内のログデータを消去する。また、処理部1b3は、電源電圧を受け付けている状況で、入力部1b2が電源オン指示を受け付けた場合に、動作部1cに電源電圧を供給して動作部1cを起動する。
 処理部1b3は、RTC(Real Time Clock)1b3aと、制御部1b3bと、を含む。
 RTC1b3aは、日時を表す時刻データを出力する。
 制御部1b3bは、記録部1b全体の動作を制御し、また、動作部1cを制御する。
 動作部1cは、電源電圧を受け付けると起動する。動作部1cは、電子機器1を特徴づける動作を行う。例えば、電子機器1がプロジェクタである場合には、動作部1cは、画像を投写する。また、電子機器1がデジタル放送受信装置である場合には、動作部1cは、デジタル放送を受信する。
 次に、電子機器1の動作を説明する。
 図3は、電子機器1の動作を説明するためのフローチャートである。
 利用者が電源プラグ1b1を外部電源のコンセントに接続すると、処理部1b3に電源電圧が供給される。処理部1b3に電源電圧が供給されると、電子機器1の状態は、電源未投入の状態から、必要最低限のハードウェアおよびソフトウェアだけが動作するスタンバイ状態に遷移する。
 スタンバイ状態になると、処理部1b3が動作を開始し、処理部1b3内の制御部1b3bは、外部電源と接続したと判断する(ステップS301)。
 続いて、制御部1b3bは、RTC1b3aから時刻データを取得する(ステップS302)。
 続いて、制御部1b3bは、RTC1b3aからの時刻データが表す日時を示したタイムスタンプデータを生成する。続いて、制御部1b3bは、タイムスタンプデータに、電源投入操作が行われたことを定義するメッセージ(例えば、「電源投入操作有り」というメッセージ)を加えて電源投入操作ログを表すデータを生成する。なお、電源投入操作ログを表すデータは、ログデータの一例である。以下では「電源投入操作ログを表すデータ」を「ログデータ」と称する。続いて、制御部1b3bは、ログデータを、仮領域セクタ11のうちデータが消去済みの領域に書込み保存する(ステップS303)。
 なお、制御部1b3bは、仮領域セクタ11へのログデータの書込みでは、仮領域セクタ11内のデータの消去(仮領域セクタ11内のデータをすべて“1”にする動作)は行わず、必要なセルのビットデータを“1”から“0”にするデータ書込みを行う。
 仮領域セクタ11に書き込まれるログデータのフォーマットは、本領域セクタ12に書き込まれるログデータのフォーマットと同じである必要はなく、例えば、本領域セクタ12に書き込まれるログデータの冗長部が部分的に除去されたフォーマットが、仮領域セクタ11に書き込まれるログデータのフォーマットとして用いられてもよい。
 スタンバイ状態中に、利用者が電源プラグ1b1を一旦外部電源のコンセントから抜くと、処理部1b3への電源電圧の供給が遮断し(ステップS304)、電子機器1の状態は、電源未投入の状態になる。
 その後、再び、利用者が電源プラグ1b1を外部電源のコンセントに接続すると(ステップS301)、ステップS302およびS303が実行される。
 なお、ステップS303では、制御部1b3bは、先に仮領域セクタ11に保存されているログデータに続けて新しいログデータを付け加えるように、新しいログデータを書き込む。
 ステップS303で、制御部1b3bが、仮領域セクタ11内のログデータを削除することなく、新しいログデータを、仮領域セクタ11のうちデータが消去済みの領域に追加記録する結果、ステップS303での仮領域セクタ11へのデータ書込みの所要時間は、例えば、マイクロ秒オーダーという短時間になる。
 このため、利用者による故意または不注意のよる電源遮断行為に起因するデータ書込みの中断、あるいはNOR型フラッシュメモリでのデータ破壊といったリスクを小さくすることが可能になる。
 なお、スタンバイ状態は、外部電源との接続が維持されている状況では、利用者が入力部1b2を操作して電源オン指示(図3では「PowerOn要求」として示してある)を入力するまで維持される。
 スタンバイ状態で入力部1b2が操作されて電源オン指示が受け付けられると(ステップS305)、制御部1b3bは、動作部1cに電源電圧を供給して、電子機器1の状態を電源オン(PowerOn)状態にする手続き(起動)を開始する(ステップS306)。
 起動が完了し電子機器1が電源オン状態に完全に遷移すると(ステップS307)、制御部1b3bは、仮領域セクタ11に保存されているすべてのログデータを、本領域セクタ12に記録する(ステップS308)。
 本実施形態では、ステップS308において、制御部1b3bは、まず、本領域セクタ12に既に保存されているログデータと、仮領域セクタ11に保存されているログデータと、を読み出す。その後、制御部1b3bは、本領域セクタ12内のログデータの消去(本領域セクタ12内のすべてのデータを“1”にする処理)を行う。その後、制御部1b3bは、読み出されたログデータを、タイムスタンプデータに示された日時をベースにソートし、そのソート結果を本領域セクタ12に書き込む。
 続いて、制御部1b3bは、仮領域セクタ11内のすべてのデータの消去(仮領域セクタ11内のすべてのデータを“1”にする処理)を行う(ステップS309)。
 続いて、電源オン状態で入力部1b2が操作されることで電源オフ指示(図3では「PowerOff要求」として示してある)が受け付けられると(ステップS310)、制御部1b3bは、動作部1cの動作を停止する処理(図3では「PowerOff手続き」として示してある)を実行する。
 制御部1b3bは、動作部1cの動作を停止する処理(ステップS311)が完了すると、動作部1cへの電源供給を停止し、電子機器1の状態をスタンバイ状態にし、処理をステップS304に戻す。
 なお、ステップS304は、電子機器1がスタンバイ状態であるとき、利用者はいつでも電子機器1の電源を遮断できることを示している。
 本実施形態では、「セクタ内のデータを消去(セクタ内のすべてのデータを“1”にする処理)をしなくても、ビットデータ“1”を“0”に書換えることが可能である」というNOR型フラッシュメモリの特性を利用することで、NOR型フラッシュメモリ1aを搭載した電子機器1において、電源投入操作ログを高速でNOR型フラッシュメモリ1aに書込み保存することが可能になる。
 本実施形態によれば、NOR型フラッシュメモリ1a内の仮領域セクタ11は、初期状態でデータが消去されており、記録部1bは、外部電源と接続するごとに、仮領域セクタ11内のデータを消去することなく、仮領域セクタ11のうちデータが消去済みの領域にログデータを記録する。そして、記録部1bは、仮領域セクタ11内のログデータを本領域セクタ12に記録した後に、仮領域セクタ11内のログデータを消去する。
 記録部1bは、ログデータを記録する際に、仮領域セクタ11内のデータを消去する消去処理を行わないため、消去処理を伴ってログデータを記録する場合に比べて、ログデータの記録に要する時間を短くすることが可能になる。
 よって、ログデータの記録中に、利用者の操作に応じて電子機器1への電源電圧の供給が遮断されて、ログデータの記録が中断する、あるいはNOR型フラッシュメモリ1a内のデータが破壊されるといったリスクを小さくすることが可能になる。また、仮領域セクタ11内のログデータは、本領域セクタ12に記録した後に消去される。このため、仮領域セクタ11がログデータで満たされてログデータを記録できなくなる状況を回避可能となる。この効果は、NOR型フラッシュメモリ1aと記録部1bからなる電子機器でも奏する。
 また、本実施形態によれば、記録部1bは、外部電源と接続した状態で電源オン指示を受け付けた場合に、仮領域セクタ11内のログデータを本領域セクタ12に記録し、その後、仮領域セクタ11内のログデータを消去する。
 電源オン指示が受け付けられた状況では、利用者は、電子機器1を利用する可能性が高く、電子機器1への電源電圧の供給が急に遮断される可能性は低い。このため、記録部1bは、電子機器1への電源電圧の供給が急に遮断される可能性が低い時期に、仮領域セクタ11内のログデータを本領域セクタ12に記録し、その後、仮領域セクタ11内のログデータを消去するという、時間のかかる一連の動作を行うことになる。よって、時間のかかる一連の動作が、電子機器1への電源電圧の供給が急に遮断されることによって中断される可能性を低くできる。
 なお、上記実施形態では、電子機器1として、スタンバイ状態を有する電子機器を用いたが、電子機器1は、スタンバイ状態を有さない電子機器でもよい。この場合、制御部1b3bは、電源プラグ1b1が外部電源のコンセントに接続されて電源プラグ1b1から電源電圧を受け付けたときに、仮領域セクタ11のうちデータが消去済みの領域に、ログデータを記録する。
 また、処理部1b3は、コンピュータにて実現されてもよい。この場合、コンピュータは、コンピュータにて読み取り可能なCD-ROM(Compact Disk Read Only Memory)のような記録媒体に記録されたプログラムを読込み実行して、処理部1b3として機能する。記録媒体は、CD-ROMに限らず適宜変更可能である。
 以上、実施形態を参照して本願発明を説明したが、本願発明は上記実施形態に限定されるものではない。本願発明の構成や詳細には、本願発明のスコープ内で当業者が理解し得る様々な変更をすることができる。
   1    電子機器
   1a   NOR型フラッシュメモリ
   1b   記録部
   1b1  電源プラグ
   1b2  入力部
   1b3  処理部
   1b3a RTC
   1b3b 制御部
   1c   動作部
   11   仮領域セクタ
   12   本領域セクタ

Claims (5)

  1.  外部電源との接続に関するログを記録する電子機器であって、
     初期状態でデータが消去されている所定セクタと、前記所定セクタとは異なる特定セクタと、を有するフラッシュメモリと、
     前記外部電源と接続するごとに、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記ログを表すデータを記録し、また、前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録した後に、前記所定セクタ内の前記ログを表すデータを消去する記録手段と、を含む電子機器。
  2.  請求項1に記載の電子機器において、
     前記記録手段は、前記電子機器を電源オン状態にする旨の電源オン指示を前記外部電源と接続した状態で受け付けた場合に、前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録し、その後、前記所定セクタ内の前記ログを表すデータを消去する、電子機器。
  3.  請求項1または2に記載の電子機器において、
     前記フラッシュメモリは、NOR型フラッシュメモリである、電子機器。
  4.  初期状態でデータが消去されている所定セクタを有するフラッシュメモリを含む電子機器での電源操作ログ記録方法であって、
     外部電源と接続するごとに、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記外部電源との接続に関するログを表すデータを記録し、
     前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録し、その後、前記所定セクタ内の前記ログを表すデータを消去する、電源操作ログ記録方法。
  5.  初期状態でデータが消去されている所定セクタを有するフラッシュメモリと接続されたコンピュータに、
     外部電源と接続するごとに、前記所定セクタ内のデータを消去することなく、前記所定セクタのうちデータが消去済みの領域に前記外部電源との接続に関するログを表すデータを記録する記録手順と、
     前記所定セクタ内の前記ログを表すデータを前記特定セクタに記録した後に、前記所定セクタ内の前記ログを表すデータを消去する消去手順と、を実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体。
PCT/JP2011/063233 2011-06-09 2011-06-09 電子機器、電源操作ログ記録方法および記録媒体 WO2012169038A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2011/063233 WO2012169038A1 (ja) 2011-06-09 2011-06-09 電子機器、電源操作ログ記録方法および記録媒体
JP2013519284A JP5679383B2 (ja) 2011-06-09 2011-06-09 電子機器、電源操作ログ記録方法およびプログラム

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2011/063233 WO2012169038A1 (ja) 2011-06-09 2011-06-09 電子機器、電源操作ログ記録方法および記録媒体

Publications (1)

Publication Number Publication Date
WO2012169038A1 true WO2012169038A1 (ja) 2012-12-13

Family

ID=47295641

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2011/063233 WO2012169038A1 (ja) 2011-06-09 2011-06-09 電子機器、電源操作ログ記録方法および記録媒体

Country Status (2)

Country Link
JP (1) JP5679383B2 (ja)
WO (1) WO2012169038A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015191395A (ja) * 2014-03-28 2015-11-02 大日本印刷株式会社 電子情報記憶媒体、情報処理方法、及び情報処理プログラム

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005191815A (ja) * 2003-12-25 2005-07-14 Victor Co Of Japan Ltd テレビジョン放送受信装置
JP2007122419A (ja) * 2005-10-28 2007-05-17 Seiko Epson Corp 不揮発性データ更新システム、不揮発性データ更新方法及びプログラム
JP2009088737A (ja) * 2007-09-28 2009-04-23 Hitachi Ltd 放送受信装置
WO2010134300A1 (ja) * 2009-05-21 2010-11-25 パナソニック株式会社 メモリコントローラ、不揮発性記憶装置、アクセス装置、不揮発性記憶システム、データ書き込み方法、および、プログラム

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096688A (ja) * 1995-06-19 1997-01-10 Fuji Photo Film Co Ltd 不揮発性メモリへの記録方法
JP3351398B2 (ja) * 1999-08-09 2002-11-25 株式会社村田製作所 データ通信装置
KR100389867B1 (ko) * 2001-06-04 2003-07-04 삼성전자주식회사 플래시 메모리 관리방법
JP2003085511A (ja) * 2001-09-14 2003-03-20 Dainippon Printing Co Ltd Icカード及びicカードへのデータ書き込み方法
JP4768237B2 (ja) * 2004-06-25 2011-09-07 株式会社東芝 携帯可能電子装置及び携帯可能電子装置の制御方法
JPWO2007122937A1 (ja) * 2006-03-23 2009-09-17 株式会社平和 遊技機
JP2007280108A (ja) * 2006-04-07 2007-10-25 Sony Corp 記憶媒体制御装置、記憶媒体制御方法、プログラム
US8205034B2 (en) * 2006-08-09 2012-06-19 Hitachi Ulsi Systems Co., Ltd. Flash memory drive having data interface
JP2008146253A (ja) * 2006-12-07 2008-06-26 Sony Corp 記憶装置およびコンピュータシステム、並びに記憶装置のデータ処理方法
JP2009169583A (ja) * 2008-01-15 2009-07-30 Panasonic Electric Works Co Ltd データ通信装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005191815A (ja) * 2003-12-25 2005-07-14 Victor Co Of Japan Ltd テレビジョン放送受信装置
JP2007122419A (ja) * 2005-10-28 2007-05-17 Seiko Epson Corp 不揮発性データ更新システム、不揮発性データ更新方法及びプログラム
JP2009088737A (ja) * 2007-09-28 2009-04-23 Hitachi Ltd 放送受信装置
WO2010134300A1 (ja) * 2009-05-21 2010-11-25 パナソニック株式会社 メモリコントローラ、不揮発性記憶装置、アクセス装置、不揮発性記憶システム、データ書き込み方法、および、プログラム

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015191395A (ja) * 2014-03-28 2015-11-02 大日本印刷株式会社 電子情報記憶媒体、情報処理方法、及び情報処理プログラム

Also Published As

Publication number Publication date
JP5679383B2 (ja) 2015-03-04
JPWO2012169038A1 (ja) 2015-02-23

Similar Documents

Publication Publication Date Title
KR101822485B1 (ko) 차량용 소프트웨어 원격 업데이트시 전원 차단 후 복구 방법
JP2007004599A (ja) 情報処理装置、記憶媒体、およびデータ救済方法
JP2008198310A (ja) ビットエラーの修復方法および情報処理装置
JP2008504628A (ja) 安全なフラッシング
JP2002358248A (ja) データ記録装置およびデータ消去装置
JP4966422B1 (ja) 情報処理装置及びデータ保護方法
JP2007122772A (ja) 情報処理装置、データ記憶方法、およびデータ記憶プログラム
JP2003317387A (ja) 情報記録装置および記録媒体への情報記録方法
JP2008225672A (ja) 半導体メモリ装置
JP5679383B2 (ja) 電子機器、電源操作ログ記録方法およびプログラム
JP2006343923A (ja) ディスク記録装置
JP2009009323A (ja) 設定装置、電子機器、及び設定プログラム
JP2010009553A (ja) 情報処理装置、情報処理方法、及び情報処理プログラム
JP4930684B2 (ja) Tvおよびtv用データ転送制御方法
KR101320917B1 (ko) 파일의 특성에 따라 각기 다른 기록방식을 적용하는 파일기록방법 및 이를 적용한 전자기기
JP2005313568A (ja) 印刷装置、印刷装置におけるデータの消去方法およびプログラムならびに記録媒体
JP2005128613A (ja) 画像形成装置
JP2002268955A (ja) メモリバックアップ方法および装置
JP4170133B2 (ja) 情報処理装置
JP2007133602A (ja) 情報処理システムおよび車載装置
JP5552930B2 (ja) 情報処理装置及び書換方法
JP2008112315A (ja) 電子機器およびプログラム書換え方法
JP2000295651A (ja) 無線通信装置
JP2006011751A (ja) 情報記憶装置及びその制御方法、並びにコンピュータ・プログラム
JPH11184683A (ja) 電子機器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11867308

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2013519284

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17/02/14)

122 Ep: pct application non-entry in european phase

Ref document number: 11867308

Country of ref document: EP

Kind code of ref document: A1