JP2019204229A - Electronic apparatus and memory management system and program - Google Patents

Electronic apparatus and memory management system and program Download PDF

Info

Publication number
JP2019204229A
JP2019204229A JP2018098115A JP2018098115A JP2019204229A JP 2019204229 A JP2019204229 A JP 2019204229A JP 2018098115 A JP2018098115 A JP 2018098115A JP 2018098115 A JP2018098115 A JP 2018098115A JP 2019204229 A JP2019204229 A JP 2019204229A
Authority
JP
Japan
Prior art keywords
refresh
nonvolatile memory
temperature
acquisition unit
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2018098115A
Other languages
Japanese (ja)
Inventor
裕輔 中橋
Hirosuke Nakabashi
裕輔 中橋
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2018098115A priority Critical patent/JP2019204229A/en
Publication of JP2019204229A publication Critical patent/JP2019204229A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Read Only Memory (AREA)
  • Memory System (AREA)

Abstract

To provide an electronic apparatus capable of realizing long-term data retention while suppressing reduction in a life time of data rewriting of a nonvolatile memory.SOLUTION: An electronic apparatus 1 determines execution propriety of refreshing of a nonvolatile memory 2 based on a refresh execution interval Dx corresponding to a data rewriting execution frequency N of the nonvolatile memory 2 in a temperature range including a mean air temperature Ta at a region corresponding to location information P and a lapse time from the previous refresh execution date Da of the nonvolatile memory 2.SELECTED DRAWING: Figure 1

Description

この発明は、不揮発性メモリを有した電子機器に関する。   The present invention relates to an electronic device having a nonvolatile memory.

一般に、不揮発性メモリのデータ保持特性(以下、リテンション特性と記載する)は、使用温度または保管温度に応じて大きく変動する。例えば、不揮発性メモリが高温環境下におかれると、リテンション特性は低下する。不揮発性メモリにデータを長期間保持するために、例えば、特許文献1に記載された電子機器では、不揮発性メモリが所定温度以上の高温環境下におかれた時間が閾値を超える度に、不揮発性メモリのリフレッシュを実行している。なお、リフレッシュは、不揮発性メモリに保持されたデータを再書き込みする処理である。   In general, the data retention characteristics (hereinafter referred to as retention characteristics) of a nonvolatile memory greatly vary depending on the use temperature or storage temperature. For example, when the nonvolatile memory is placed in a high temperature environment, the retention characteristics are degraded. In order to retain data in the nonvolatile memory for a long period of time, for example, in the electronic device described in Patent Document 1, the nonvolatile memory is nonvolatile each time the time when the nonvolatile memory is placed in a high temperature environment equal to or higher than a predetermined temperature exceeds a threshold value. Refreshing the memory. The refresh is a process of rewriting data held in the nonvolatile memory.

特開2010−27021号公報JP 2010-27021 A

特許文献1に記載された電子機器は、温度センサを用いて動作中の電子機器の温度情報を定期的に取得し、取得した温度が一定温度を超えた時間を計測している。
一般に、電子機器がカーナビゲーション装置といった車載機器である場合、車載機器が動作している時間は、1日のうち、車両が使用されている数時間程度であり、それ以外の時間は動作していないことが多い。
さらに、不揮発性メモリのリテンション特性は、不揮発性メモリがおかれた温度が一定温度を超えた場合にのみ低下するのではなく、電子機器の動作によらず、不揮発性メモリがおかれた平均的な温度に応じて変動する。
このため、特許文献1に記載された電子機器では、温度環境の変化がリテンション特性に与える影響をリフレッシュ実行間隔に適切に反映することができず、必要以上の回数でリフレッシュが実行されて不揮発性メモリのデータ書換え寿命が低下する可能性がある。
The electronic device described in Patent Literature 1 periodically acquires temperature information of the electronic device in operation using a temperature sensor, and measures the time when the acquired temperature exceeds a certain temperature.
In general, when the electronic device is an in-vehicle device such as a car navigation device, the time during which the in-vehicle device is operating is about several hours during which the vehicle is used in one day, and the other time is in operation. Often not.
Furthermore, the retention characteristics of the non-volatile memory are not reduced only when the temperature at which the non-volatile memory is placed exceeds a certain temperature, but the average of the retention of the non-volatile memory regardless of the operation of the electronic device. Fluctuates depending on the temperature.
For this reason, in the electronic device described in Patent Document 1, the influence of the change in the temperature environment on the retention characteristics cannot be appropriately reflected in the refresh execution interval, and the refresh is executed more times than necessary and is nonvolatile. The data rewrite life of the memory may be reduced.

この発明は上記課題を解決するものであり、不揮発性メモリのデータ書換え寿命の低下を抑制しながら、長期間のデータ保持を実現することができる電子機器を得ることを目的とする。   SUMMARY OF THE INVENTION An object of the present invention is to solve the above-described problems, and to obtain an electronic device that can realize long-term data retention while suppressing a decrease in the data rewrite life of a nonvolatile memory.

この発明に係る電子機器は、不揮発性メモリを有した電子機器であって、位置情報取得部、リフレッシュ間隔取得部、判定部およびリフレッシュ実行部を備える。位置情報取得部は、電子機器の位置情報を取得する。リフレッシュ間隔取得部は、複数の温度範囲における不揮発性メモリのデータ書換え実行回数の範囲に対応したリフレッシュ実行間隔の中から、位置情報取得部によって取得された位置情報に対応する地域の平均気温が含まれる温度範囲における不揮発性メモリのデータ書換え実行回数に対応したリフレッシュ実行間隔を取得する。判定部は、リフレッシュ間隔取得部によって取得されたリフレッシュ実行間隔および不揮発性メモリの前回のリフレッシュ実行からの経過時間に基づいて、不揮発性メモリのリフレッシュの実行可否を判定する。リフレッシュ実行部は、判定部によってリフレッシュの実行可と判定された場合に、不揮発性メモリのリフレッシュを実行する。   An electronic device according to the present invention is an electronic device having a nonvolatile memory, and includes a position information acquisition unit, a refresh interval acquisition unit, a determination unit, and a refresh execution unit. The position information acquisition unit acquires position information of the electronic device. The refresh interval acquisition unit includes the average temperature in the region corresponding to the location information acquired by the location information acquisition unit from the refresh execution interval corresponding to the range of the number of times data is rewritten in the nonvolatile memory in a plurality of temperature ranges. The refresh execution interval corresponding to the number of data rewrite executions of the nonvolatile memory in the temperature range to be acquired is acquired. The determination unit determines whether or not the nonvolatile memory can be refreshed based on the refresh execution interval acquired by the refresh interval acquisition unit and the elapsed time from the previous refresh execution of the nonvolatile memory. The refresh execution unit executes refresh of the nonvolatile memory when the determination unit determines that the refresh can be performed.

この発明によれば、電子機器が、電子機器の位置情報に対応する地域の平均気温が含まれる温度範囲における不揮発性メモリのデータ書換え実行回数に対応したリフレッシュ実行間隔および不揮発性メモリの前回のリフレッシュ実行からの経過時間に基づいて、不揮発性メモリのリフレッシュの実行可否を判定する。これによって、不揮発性メモリがおかれた温度環境およびデータ書換え実行回数に対応した適切なリフレッシュ実行間隔が取得されるので、電子機器は、不揮発性メモリのデータ書換え寿命の低下を抑制しながら、長期間のデータ保持を実現することができる。   According to the present invention, the electronic device performs the refresh execution interval corresponding to the data rewrite execution count of the nonvolatile memory in the temperature range including the average temperature in the region corresponding to the position information of the electronic device, and the previous refresh of the nonvolatile memory. Based on the elapsed time from the execution, it is determined whether or not the nonvolatile memory can be refreshed. As a result, an appropriate refresh execution interval corresponding to the temperature environment in which the nonvolatile memory is placed and the number of data rewrites is acquired. Thus, the electronic device can suppress the deterioration of the data rewrite life of the nonvolatile memory and Data retention for a period can be realized.

この発明の実施の形態1に係る電子機器の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic device which concerns on Embodiment 1 of this invention. 実施の形態1におけるリフレッシュ実行間隔データベース(以下、DBと記載する)を構成する第1のDBの例を示す図である。3 is a diagram showing an example of a first DB constituting a refresh execution interval database (hereinafter referred to as DB) in Embodiment 1. FIG. 実施の形態1におけるリフレッシュ実行間隔DBを構成する第2のDBの例を示す図である。6 is a diagram illustrating an example of a second DB constituting the refresh execution interval DB in the first embodiment. FIG. 実施の形態1に係る電子機器の動作を示すフローチャートである。3 is a flowchart showing an operation of the electronic device according to the first embodiment. 温度に対する、フラッシュメモリのデータ書換え回数とリテンション時間との関係を示すグラフである。It is a graph which shows the relationship between the data rewrite frequency of flash memory, and retention time with respect to temperature. 図6Aは、実施の形態1に係る電子機器の機能を実現するハードウェア構成を示すブロック図である。図6Bは、実施の形態1に係る電子機器の機能を実現するソフトウェアを実行するハードウェア構成を示すブロック図である。FIG. 6A is a block diagram illustrating a hardware configuration for realizing the functions of the electronic device according to the first embodiment. FIG. 6B is a block diagram illustrating a hardware configuration that executes software that implements the functions of the electronic apparatus according to the first embodiment. 実施の形態1に係るメモリ管理システムの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a memory management system according to a first embodiment. この発明の実施の形態2に係る電子機器の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic device which concerns on Embodiment 2 of this invention. 実施の形態2に係る電子機器の動作を示すフローチャートである。10 is a flowchart illustrating an operation of the electronic device according to the second embodiment. この発明の実施の形態3に係る電子機器の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic device which concerns on Embodiment 3 of this invention. 実施の形態3におけるリフレッシュ実行間隔DBを構成する第2のDBの例を示す図である。FIG. 20 is a diagram illustrating an example of a second DB constituting the refresh execution interval DB in the third embodiment. 実施の形態3に係る電子機器の動作を示すフローチャートである。14 is a flowchart illustrating an operation of the electronic device according to the third embodiment.

実施の形態1.
図1は、この発明の実施の形態1に係る電子機器1の構成を示すブロック図である。
電子機器1は、不揮発性メモリ2を有しており、カーナビゲーション装置のような車両に搭載された車載機器であってもよい。不揮発性メモリ2は、例えば、電子機器1に搭載されたフラッシュメモリであって、ソリッドステートドライブ(SSD)、エンベデッドマルチメディアカード(eMMC)またはSD(セキュアデジタル)カードによって実現される。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of an electronic apparatus 1 according to Embodiment 1 of the present invention.
The electronic device 1 includes a non-volatile memory 2 and may be an in-vehicle device mounted on a vehicle such as a car navigation device. The nonvolatile memory 2 is, for example, a flash memory mounted on the electronic device 1 and is realized by a solid state drive (SSD), an embedded multimedia card (eMMC), or an SD (secure digital) card.

電子機器1は、位置情報取得部10、リフレッシュ間隔取得部11、判定部12およびリフレッシュ実行部13を備えて構成される。位置情報取得部10は、電子機器1の位置情報Pを取得する。位置情報Pは、例えば電子機器1の位置の緯度経度であってもよい。   The electronic device 1 includes a position information acquisition unit 10, a refresh interval acquisition unit 11, a determination unit 12, and a refresh execution unit 13. The position information acquisition unit 10 acquires position information P of the electronic device 1. The position information P may be, for example, the latitude and longitude of the position of the electronic device 1.

リフレッシュ間隔取得部11は、位置情報取得部10によって取得された位置情報Pに対応する地域の平均気温Taが含まれる温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxを、リフレッシュ実行間隔DB20から取得する。リフレッシュ実行間隔DB20は、位置情報Pに対応する地域の平均気温Taと、複数の温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nの範囲に対応したリフレッシュ実行間隔Dxとが登録されたデータベースである。   The refresh interval acquisition unit 11 is a refresh execution interval corresponding to the data rewrite execution count N of the nonvolatile memory 2 in a temperature range including the average temperature Ta of the region corresponding to the location information P acquired by the location information acquisition unit 10. Dx is acquired from the refresh execution interval DB 20. The refresh execution interval DB 20 is a database in which the average temperature Ta of the region corresponding to the position information P and the refresh execution interval Dx corresponding to the range of the data rewrite execution count N of the nonvolatile memory 2 in a plurality of temperature ranges are registered. It is.

判定部12は、リフレッシュ間隔取得部11によって取得されたリフレッシュ実行間隔Dxと前回のリフレッシュ実行日時Daから現在日時Dbまでの経過時間とに基づいて、不揮発性メモリ2のリフレッシュの実行可否を判定する。例えば、DaからDbを引いた時間がDxよりも長ければ、判定部12は、不揮発性メモリ2のリフレッシュが実行可であると判定する。また、DaからDbを引いた時間がDx以下であれば、判定部12は、不揮発性メモリ2のリフレッシュを実行不可と判定する。   The determination unit 12 determines whether or not the nonvolatile memory 2 can be refreshed based on the refresh execution interval Dx acquired by the refresh interval acquisition unit 11 and the elapsed time from the previous refresh execution date and time Da to the current date and time Db. . For example, if the time obtained by subtracting Db from Da is longer than Dx, the determination unit 12 determines that the nonvolatile memory 2 can be refreshed. If the time obtained by subtracting Db from Da is equal to or less than Dx, the determination unit 12 determines that the nonvolatile memory 2 cannot be refreshed.

リフレッシュ実行部13は、判定部12によってリフレッシュ実行可と判定された場合に、不揮発性メモリ2のリフレッシュを実行する。例えば、リフレッシュ実行部13は、不揮発性メモリ2からデータを読み出し、不揮発性メモリ2における通算のデータ書換え回数が少ない記憶領域を優先的に選択して、読み出したデータを再書き込みする。なお、リフレッシュ実行部13は、リフレッシュを実行すると、データ書換え実行回数Nおよび前回のリフレッシュ実行日時Daを更新する。   The refresh execution unit 13 performs the refresh of the nonvolatile memory 2 when the determination unit 12 determines that the refresh can be performed. For example, the refresh execution unit 13 reads data from the nonvolatile memory 2, preferentially selects a storage area with a small total number of data rewrites in the nonvolatile memory 2, and rewrites the read data. When the refresh is executed, the refresh execution unit 13 updates the data rewrite execution count N and the previous refresh execution date / time Da.

不揮発性メモリ2には、リフレッシュ実行間隔DB20、データ書換え実行回数N、前回のリフレッシュ実行日時Daおよび保存データが記憶されている。保存データは、例えば、リフレッシュ対象のデータである。データ書換え実行回数Nは、リフレッシュに限らず、不揮発性メモリ2のデータ書換えが実行されるたびに値が更新される。データ書換え実行回数Nと前回のリフレッシュ実行日時Daとは、不揮発性メモリ2の特定のレジスタに保存されてもよい。   The nonvolatile memory 2 stores a refresh execution interval DB 20, a data rewrite execution count N, a previous refresh execution date / time Da, and saved data. The stored data is, for example, data to be refreshed. The value of the data rewrite execution count N is not limited to refresh, and is updated each time data rewrite of the nonvolatile memory 2 is executed. The data rewrite execution count N and the previous refresh execution date / time Da may be stored in a specific register of the nonvolatile memory 2.

図2は、リフレッシュ実行間隔DB20を構成する第1のDB20aの例を示す図である。図3は、リフレッシュ実行間隔DB20を構成する第2のDB20bの例を示す図である。リフレッシュ実行間隔DB20は、第1のDB20aおよび第2のDB20bから構成される。第1のDB20aは、地域とその地域における平均気温Taとが登録されている。また、第2のDB20bには、複数の温度範囲における不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxが登録されている。   FIG. 2 is a diagram illustrating an example of the first DB 20a constituting the refresh execution interval DB 20. FIG. 3 is a diagram illustrating an example of the second DB 20b configuring the refresh execution interval DB 20. The refresh execution interval DB 20 includes a first DB 20a and a second DB 20b. In the first DB 20a, an area and an average temperature Ta in the area are registered. In addition, a refresh execution interval Dx corresponding to the number N of data rewrite executions of the nonvolatile memory 2 in a plurality of temperature ranges is registered in the second DB 20b.

リフレッシュ実行間隔Dxは、不揮発性メモリ2のデータ書換え寿命が低下することが抑制される適切なリフレッシュの実行間隔であって、複数の温度範囲およびデータ書換え実行回数Nに応じて事前に決定される。温度範囲は、平均気温Taの温度範囲である。
なお、第1のDB20aおよび第2のDB20bから構成されるリフレッシュ実行間隔DB20を示したが、リフレッシュ実行間隔DB20は、第1のDB20aと第2のDB20bの両方の内容が1つに登録されたDBであってもよい。
The refresh execution interval Dx is an appropriate refresh execution interval that suppresses a decrease in the data rewrite life of the nonvolatile memory 2 and is determined in advance according to a plurality of temperature ranges and the number of data rewrite executions N. . The temperature range is a temperature range of the average temperature Ta.
In addition, although the refresh execution interval DB20 composed of the first DB 20a and the second DB 20b is shown, the contents of both the first DB 20a and the second DB 20b are registered as one in the refresh execution interval DB20. DB may be sufficient.

次に動作について説明する。
図4は、電子機器1の動作を示すフローチャートであり、不揮発性メモリ2のリフレッシュの実行可否を判定する一連の処理を示している。
位置情報取得部10は、システムが起動すると、電子機器1の位置情報Pを取得する(ステップST1)。位置情報取得部10によって取得された位置情報Pはリフレッシュ間隔取得部11に出力される。次に、リフレッシュ間隔取得部11は、不揮発性メモリ2からデータ書換え実行回数Nを取得し(ステップST2)、不揮発性メモリ2から前回のリフレッシュ実行日時Daを取得する(ステップST3)。
Next, the operation will be described.
FIG. 4 is a flowchart showing the operation of the electronic apparatus 1 and shows a series of processes for determining whether or not the nonvolatile memory 2 can be refreshed.
When the system is activated, the position information acquisition unit 10 acquires the position information P of the electronic device 1 (step ST1). The position information P acquired by the position information acquisition unit 10 is output to the refresh interval acquisition unit 11. Next, the refresh interval acquisition unit 11 acquires the data rewrite execution count N from the nonvolatile memory 2 (step ST2), and acquires the previous refresh execution date Da from the nonvolatile memory 2 (step ST3).

判定部12が、現在日時Dbを取得する(ステップST4)。現在日時Dbの取得方法は、例えば、電子機器1の内部時計を用いてもよく、GNSS(全地球測位衛星システム)衛星から受信されたGNSS信号に含まれる時刻情報を用いてもよい。   The determination unit 12 acquires the current date and time Db (step ST4). As a method for obtaining the current date and time Db, for example, an internal clock of the electronic device 1 may be used, or time information included in a GNSS signal received from a GNSS (Global Positioning Satellite System) satellite may be used.

次に、リフレッシュ間隔取得部11は、位置情報取得部10によって取得された位置情報Pに対応する地域の平均気温Taをリフレッシュ実行間隔DB20の第1のDB20aから取得する(ステップST5)。例えば、位置情報Pが示す位置が地域Aに含まれる場合、リフレッシュ間隔取得部11は、図2に示した第1のDB20aから、平均気温Taとして15℃を取得する。   Next, the refresh interval acquisition unit 11 acquires the average temperature Ta in the region corresponding to the position information P acquired by the position information acquisition unit 10 from the first DB 20a of the refresh execution interval DB 20 (step ST5). For example, when the position indicated by the position information P is included in the area A, the refresh interval acquisition unit 11 acquires 15 ° C. as the average temperature Ta from the first DB 20a illustrated in FIG.

続いて、リフレッシュ間隔取得部11は、平均気温Taが含まれる温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxを、リフレッシュ実行間隔DB20の第2のDB20bから取得する(ステップST6)。
例えば、第1のDB20aから取得された平均気温Taが15℃で、不揮発性メモリ2から取得されたデータ書換え実行回数Nが3500回であった場合、リフレッシュ間隔取得部11は、図3に示した第2のDB20bから、リフレッシュ実行間隔Dx(5年)を取得する。リフレッシュ間隔取得部11によって取得されたリフレッシュ実行間隔Dxは、判定部12に出力される。
Subsequently, the refresh interval acquisition unit 11 acquires, from the second DB 20b of the refresh execution interval DB 20, the refresh execution interval Dx corresponding to the data rewrite execution count N of the nonvolatile memory 2 in the temperature range including the average temperature Ta. (Step ST6).
For example, when the average temperature Ta acquired from the first DB 20a is 15 ° C. and the data rewrite execution count N acquired from the nonvolatile memory 2 is 3500, the refresh interval acquisition unit 11 is shown in FIG. The refresh execution interval Dx (5 years) is acquired from the second DB 20b. The refresh execution interval Dx acquired by the refresh interval acquisition unit 11 is output to the determination unit 12.

判定部12は、前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間(Db−Da)がリフレッシュ実行間隔Dxよりも長いか否かを確認する(ステップST7)。ここで、前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間の長さがリフレッシュ実行間隔Dx以下である場合(ステップST7;NO)、判定部12は、不揮発性メモリ2のリフレッシュが実行不可と判定して、図4の処理を終了する。   The determination unit 12 checks whether or not the time (Db−Da) elapsed from the previous refresh execution date / time Da to the current date / time Db is longer than the refresh execution interval Dx (step ST7). Here, when the length of time elapsed from the previous refresh execution date / time Da to the current date / time Db is equal to or shorter than the refresh execution interval Dx (step ST7; NO), the determination unit 12 executes the refresh of the nonvolatile memory 2 The process of FIG. 4 is complete | finished by determining with improper.

一方、前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間の長さがリフレッシュ実行間隔Dxよりも長い場合(ステップST7;YES)、判定部12は、不揮発性メモリ2のリフレッシュの実行可と判定し、この判定結果をリフレッシュ実行部13に通知する。リフレッシュ実行部13は、上記通知を受けると、不揮発性メモリ2のリフレッシュを実行する(ステップST8)。   On the other hand, when the length of time elapsed from the previous refresh execution date / time Da to the current date / time Db is longer than the refresh execution interval Dx (step ST7; YES), the determination unit 12 can execute the refresh of the nonvolatile memory 2. And the refresh result is notified to the refresh execution unit 13. Upon receiving the notification, the refresh execution unit 13 performs the refresh of the nonvolatile memory 2 (step ST8).

リフレッシュ実行部13は、不揮発性メモリ2のリフレッシュを完了すると、前回のリフレッシュ実行日時Daを現在日時Dbで更新する(ステップST9)。さらに、リフレッシュ実行部13は、リフレッシュ処理でデータを再書き込みした記憶領域のデータ書換え実行回数Nを更新する。この後、図4の処理が終了される。
なお、図4のフローチャートの一連の処理は、不揮発性メモリ2のリフレッシュの実行可否を判定する処理の一例を示しており、各種情報を取得する順番は入れ替えてもよい。
When the refresh execution unit 13 completes the refresh of the nonvolatile memory 2, it updates the previous refresh execution date / time Da with the current date / time Db (step ST9). Further, the refresh execution unit 13 updates the data rewrite execution count N of the storage area to which data has been rewritten by the refresh process. Thereafter, the process of FIG. 4 is terminated.
Note that the series of processes in the flowchart of FIG. 4 shows an example of a process for determining whether or not the nonvolatile memory 2 can be refreshed, and the order of acquiring various types of information may be changed.

図5は、温度に対する、フラッシュメモリのデータ書換え回数とリテンション時間との関係を示すグラフである。図5に示すように、フラッシュメモリのリテンション特性は、フラッシュメモリがおかれた温度が一定温度を超えたときに低下するわけではなく、温度に応じて変動する。このため、特許文献1に記載された電子機器では、温度環境の変化がリテンション特性に与える影響をリフレッシュ実行間隔に適切に反映できない。
これに対して、実施の形態1に係る電子機器1では、電子機器1が存在する地域の平均気温Taとデータ書換え実行回数Nとに応じた最適なリフレッシュ実行間隔Dxが取得されるので、不揮発性メモリ2のデータ書換え寿命を低下させずに、長期間のデータ保持が可能となる。
FIG. 5 is a graph showing the relationship between the number of times data is rewritten in the flash memory and the retention time with respect to temperature. As shown in FIG. 5, the retention characteristic of the flash memory does not decrease when the temperature at which the flash memory is placed exceeds a certain temperature, but varies according to the temperature. For this reason, in the electronic device described in Patent Document 1, the influence of changes in the temperature environment on the retention characteristics cannot be appropriately reflected in the refresh execution interval.
On the other hand, in the electronic device 1 according to the first embodiment, since the optimum refresh execution interval Dx according to the average temperature Ta and the data rewrite execution count N in the area where the electronic device 1 exists is acquired, it is non-volatile. The data can be retained for a long time without reducing the data rewriting life of the volatile memory 2.

電子機器1における、位置情報取得部10、リフレッシュ間隔取得部11、判定部12およびリフレッシュ実行部13の機能は、処理回路によって実現される。すなわち、電子機器1は、図4におけるステップST1からステップST9までの処理を実行するための処理回路を備えている。この処理回路は、専用のハードウェアであってもよいが、メモリに記憶されたプログラムを実行するCPU(Central Processing Unit)であってもよい。   The functions of the position information acquisition unit 10, the refresh interval acquisition unit 11, the determination unit 12, and the refresh execution unit 13 in the electronic device 1 are realized by a processing circuit. That is, the electronic device 1 includes a processing circuit for executing the processing from step ST1 to step ST9 in FIG. This processing circuit may be dedicated hardware, or may be a CPU (Central Processing Unit) that executes a program stored in a memory.

図6Aは、電子機器1の機能を実現するハードウェア構成を示すブロック図である。図6Bは、電子機器1の機能を実現するソフトウェアを実行するハードウェア構成を示すブロック図である。図6Aおよび図6Bにおいて、GNSS受信機100は、GNSS衛星からGNSS信号を受信する。位置情報取得部10は、GNSS受信機100により受信されたGNSS信号から電子機器1の位置情報Pを取得する。また、判定部12は、GNSS信号に含まれる時刻情報を用いて現在日時Dbを取得してもよい。不揮発性メモリ101は、図1に示した不揮発性メモリ2である。   FIG. 6A is a block diagram illustrating a hardware configuration that implements the functions of the electronic device 1. FIG. 6B is a block diagram illustrating a hardware configuration that executes software that implements the functions of the electronic device 1. 6A and 6B, the GNSS receiver 100 receives a GNSS signal from a GNSS satellite. The position information acquisition unit 10 acquires the position information P of the electronic device 1 from the GNSS signal received by the GNSS receiver 100. Further, the determination unit 12 may acquire the current date and time Db using time information included in the GNSS signal. The non-volatile memory 101 is the non-volatile memory 2 shown in FIG.

処理回路が図6Aに示す専用のハードウェアの処理回路102である場合、処理回路102は、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ASIC(Application Specific Integrated Circuit)、FPGA(Field−Programmable Gate Array)またはこれらを組み合わせたものが該当する。電子機器1における、位置情報取得部10、リフレッシュ間隔取得部11、判定部12およびリフレッシュ実行部13の機能を別々の処理回路で実現してもよく、これらの機能をまとめて1つの処理回路で実現してもよい。   When the processing circuit is the dedicated hardware processing circuit 102 shown in FIG. 6A, the processing circuit 102 may be, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, or an ASIC (Application Specific Integrated Circuit). ), FPGA (Field-Programmable Gate Array), or a combination thereof. The functions of the position information acquisition unit 10, the refresh interval acquisition unit 11, the determination unit 12, and the refresh execution unit 13 in the electronic device 1 may be realized by separate processing circuits, and these functions are combined into one processing circuit. It may be realized.

処理回路が図6Bに示すプロセッサ103である場合、電子機器1における、位置情報取得部10、リフレッシュ間隔取得部11、判定部12およびリフレッシュ実行部13の機能は、ソフトウェア、ファームウェアまたはソフトウェアとファームウェアとの組み合わせによって実現される。なお、ソフトウェアまたはファームウェアは、プログラムとして記述されて不揮発性メモリ101に記憶される。   When the processing circuit is the processor 103 shown in FIG. 6B, the functions of the position information acquisition unit 10, the refresh interval acquisition unit 11, the determination unit 12, and the refresh execution unit 13 in the electronic device 1 are software, firmware, or software and firmware. Realized by a combination of The software or firmware is described as a program and stored in the nonvolatile memory 101.

プロセッサ103は、不揮発性メモリ101に記憶されたプログラムを読み出して実行することにより、電子機器1における、位置情報取得部10、リフレッシュ間隔取得部11、判定部12およびリフレッシュ実行部13の機能を実現する。すなわち、電子機器1は、プロセッサ103によって実行されるときに、図4に示したステップST1からステップST9までの処理が結果的に実行されるプログラムを記憶するための不揮発性メモリ101を備える。これらのプログラムは、位置情報取得部10、リフレッシュ間隔取得部11、判定部12およびリフレッシュ実行部13の手順または方法をコンピュータに実行させる。不揮発性メモリ101は、コンピュータを、位置情報取得部10、リフレッシュ間隔取得部11、判定部12およびリフレッシュ実行部13として機能させるためのプログラムを記憶している。なお、上記プログラムは、プロセッサ103からデータの読み出し可能な記憶装置であれば、不揮発性メモリ101とは別に設けられた記憶装置に記憶されていてもよい。   The processor 103 reads out and executes the program stored in the nonvolatile memory 101, thereby realizing the functions of the position information acquisition unit 10, the refresh interval acquisition unit 11, the determination unit 12, and the refresh execution unit 13 in the electronic device 1. To do. That is, the electronic device 1 includes a nonvolatile memory 101 for storing a program that, when executed by the processor 103, results from the processing from step ST1 to step ST9 shown in FIG. These programs cause the computer to execute the procedures or methods of the position information acquisition unit 10, the refresh interval acquisition unit 11, the determination unit 12, and the refresh execution unit 13. The nonvolatile memory 101 stores a program for causing a computer to function as the position information acquisition unit 10, the refresh interval acquisition unit 11, the determination unit 12, and the refresh execution unit 13. Note that the above program may be stored in a storage device provided separately from the nonvolatile memory 101 as long as the program can read data from the processor 103.

位置情報取得部10、リフレッシュ間隔取得部11、判定部12、およびリフレッシュ実行部13の機能は、一部を専用のハードウェアで実現し、一部をソフトウェアまたはファームウェアで実現してもよい。例えば、位置情報取得部10は、専用のハードウェアである処理回路で機能を実現し、リフレッシュ間隔取得部11、判定部12およびリフレッシュ実行部13は、プロセッサ103が不揮発性メモリ101に記憶されたプログラムを読み出して実行することによって機能を実現する。このように、処理回路は、ハードウェア、ソフトウェア、ファームウェアまたはこれらの組み合わせにより上記機能を実現することができる。   The functions of the position information acquisition unit 10, the refresh interval acquisition unit 11, the determination unit 12, and the refresh execution unit 13 may be partially realized by dedicated hardware and partially realized by software or firmware. For example, the position information acquisition unit 10 realizes the function with a processing circuit that is dedicated hardware, and the refresh interval acquisition unit 11, the determination unit 12, and the refresh execution unit 13 have the processor 103 stored in the nonvolatile memory 101. Functions are realized by reading and executing programs. As described above, the processing circuit can realize the above functions by hardware, software, firmware, or a combination thereof.

リフレッシュ実行間隔DB20、データ書換え実行回数Nおよび前回のリフレッシュ実行日時Daを不揮発性メモリ2に保存した場合を示したが、実施の形態1は、これに限定されるものではない。例えば、これらの情報を外部のサーバ装置が保存してもよい。
図7は、実施の形態1に係るメモリ管理システム3の構成を示すブロック図である。
メモリ管理システム3において、不揮発性メモリ2を有した電子機器1は、ネットワーク4を介して、サーバ装置5と通信接続することができる。不揮発性メモリ2についてのリフレッシュ実行間隔DB20、不揮発性メモリ2のデータ書換え実行回数N、および前回のリフレッシュ実行日時Daは、サーバ装置5に保存される。
Although the case where the refresh execution interval DB 20, the data rewrite execution count N, and the previous refresh execution date / time Da are stored in the nonvolatile memory 2 is shown, the first embodiment is not limited to this. For example, these pieces of information may be stored by an external server device.
FIG. 7 is a block diagram showing a configuration of the memory management system 3 according to the first embodiment.
In the memory management system 3, the electronic device 1 having the nonvolatile memory 2 can be connected to the server device 5 via the network 4. The refresh execution interval DB 20 for the nonvolatile memory 2, the data rewrite execution count N of the nonvolatile memory 2, and the previous refresh execution date / time Da are stored in the server device 5.

電子機器1が備えるリフレッシュ間隔取得部11は、ネットワーク4を介して、サーバ装置5からリフレッシュ実行間隔Dxおよびデータ書換え実行回数Nを取得する。判定部12も、ネットワーク4を介して、サーバ装置5から前回のリフレッシュ実行日時Daを取得する。リフレッシュ実行部13は、不揮発性メモリ2のリフレッシュを実行した場合に、ネットワーク4を介して、サーバ装置5に保存されているデータ書換え実行回数Nおよび前回のリフレッシュ実行日時Daを更新する。これによって、メモリ管理システム3が備える電子機器1は、不揮発性メモリ2のデータ書換え寿命の低下を抑制しながら、長期間のデータ保持を実現することができる。   The refresh interval acquisition unit 11 included in the electronic device 1 acquires the refresh execution interval Dx and the data rewrite execution count N from the server device 5 via the network 4. The determination unit 12 also acquires the previous refresh execution date / time Da from the server device 5 via the network 4. When refreshing the nonvolatile memory 2, the refresh execution unit 13 updates the data rewrite execution count N and the previous refresh execution date / time Da stored in the server device 5 via the network 4. As a result, the electronic device 1 provided in the memory management system 3 can realize long-term data retention while suppressing a decrease in the data rewriting life of the nonvolatile memory 2.

なお、リフレッシュ実行間隔DB20、データ書換え実行回数Nおよび前回のリフレッシュ実行日時Daのうちの少なくとも一つをサーバ装置5が保存してもよく、電子機器1からデータ読み出し可能な装置であれば、これらの情報を別々の装置が保存してもよい。   Note that the server apparatus 5 may store at least one of the refresh execution interval DB 20, the data rewrite execution count N, and the previous refresh execution date / time Da, as long as the apparatus can read data from the electronic device 1. This information may be stored by a separate device.

以上のように、実施の形態1に係る電子機器1は、位置情報Pに対応する地域の平均気温Taが含まれる温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxおよび前回のリフレッシュ実行日時Daからの経過時間に基づいて、不揮発性メモリ2のリフレッシュの実行可否を判定する。これにより、不揮発性メモリ2がおかれた温度環境とデータ書換え実行回数Nに対応した適切なリフレッシュ実行間隔Dxが取得されるので、電子機器1は、不揮発性メモリ2のデータ書換え寿命の低下を抑制しながら、長期間のデータ保持を実現することができる。
特に、電子機器1がおかれた地域の平均気温Taを用いるので、電子機器1が車載機器であっても、電子機器1の動作に関係なく、不揮発性メモリ2の保管温度を推定することができ、推定した温度をリフレッシュ実行間隔Dxの判定に反映させることができる。
As described above, the electronic apparatus 1 according to the first embodiment has the refresh execution interval corresponding to the data rewrite execution count N of the nonvolatile memory 2 in the temperature range including the average temperature Ta of the area corresponding to the position information P. Whether or not the nonvolatile memory 2 can be refreshed is determined based on Dx and the time elapsed since the previous refresh execution date and time Da. As a result, an appropriate refresh execution interval Dx corresponding to the temperature environment in which the nonvolatile memory 2 is placed and the number N of data rewrites is acquired, and the electronic device 1 reduces the data rewrite life of the nonvolatile memory 2. Long-term data retention can be realized while suppressing.
In particular, since the average temperature Ta in the area where the electronic device 1 is placed is used, even if the electronic device 1 is an in-vehicle device, the storage temperature of the nonvolatile memory 2 can be estimated regardless of the operation of the electronic device 1. The estimated temperature can be reflected in the determination of the refresh execution interval Dx.

実施の形態2.
図8は、この発明の実施の形態2に係る電子機器1Aの構成を示すブロック図である。図8において、図1と同一構成要素には同一符号を付して説明を省略する。電子機器1Aは、不揮発性メモリ2を有しており、カーナビゲーション装置のような車両に搭載された車載機器であってもよい。電子機器1Aは、図8に示すように、位置情報取得部10、リフレッシュ間隔取得部11A、判定部12、リフレッシュ実行部13および保管温度算出部14を備えて構成される。
Embodiment 2. FIG.
FIG. 8 is a block diagram showing a configuration of an electronic apparatus 1A according to Embodiment 2 of the present invention. In FIG. 8, the same components as those of FIG. The electronic device 1 </ b> A includes a nonvolatile memory 2 and may be an in-vehicle device mounted on a vehicle such as a car navigation device. As shown in FIG. 8, the electronic device 1 </ b> A includes a position information acquisition unit 10, a refresh interval acquisition unit 11 </ b> A, a determination unit 12, a refresh execution unit 13, and a storage temperature calculation unit 14.

不揮発性メモリ2に対する前回のリフレッシュ実行日時Daから、電子機器1Aが移動して地域が変更されると、電子機器1Aがおかれた地域の平均気温Taも変化する可能性がある。これは、電子機器1Aが車載機器である場合に十分に起こり得る事態である。
そこで、実施の形態2に係る電子機器1Aでは、前回のリフレッシュ実行日時Daからの不揮発性メモリ2の平均保管温度Tcをリフレッシュ実行間隔Dxの判定に反映させている。平均保管温度Tcは、不揮発性メモリ2に対する前回のリフレッシュ実行日時Daから現在日時Dbまでの不揮発性メモリ2の平均的な保管温度である。この平均保管温度Tcを用いることで、電子機器1Aが地域間を移動したときの温度変化の影響が緩和されるので、電子機器1Aは、不揮発性メモリ2のデータ書換え寿命の低下を抑制しながら、長期間のデータ保持を実現することができる。
When the electronic device 1A moves and the area is changed from the previous refresh execution date Da for the nonvolatile memory 2, the average temperature Ta of the area where the electronic device 1A is placed may also change. This is a situation that can occur sufficiently when the electronic device 1A is an in-vehicle device.
Therefore, in the electronic apparatus 1A according to the second embodiment, the average storage temperature Tc of the nonvolatile memory 2 from the previous refresh execution date / time Da is reflected in the determination of the refresh execution interval Dx. The average storage temperature Tc is an average storage temperature of the nonvolatile memory 2 from the previous refresh execution date Da to the current date Db with respect to the nonvolatile memory 2. By using this average storage temperature Tc, the influence of the temperature change when the electronic device 1A moves between regions is mitigated, so that the electronic device 1A suppresses a decrease in the data rewrite life of the nonvolatile memory 2. Long-term data retention can be realized.

保管温度算出部14は、不揮発性メモリ2に対する前回のリフレッシュ実行日時Daからの不揮発性メモリ2の平均保管温度Tcを算出する。
リフレッシュ間隔取得部11Aは、リフレッシュ実行間隔DB20から、保管温度算出部14によって算出された平均保管温度Tcが含まれる温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxを取得する。
The storage temperature calculation unit 14 calculates the average storage temperature Tc of the nonvolatile memory 2 from the previous refresh execution date Da for the nonvolatile memory 2.
The refresh interval acquisition unit 11A updates the refresh execution interval Dx corresponding to the data rewrite execution count N of the nonvolatile memory 2 in the temperature range including the average storage temperature Tc calculated by the storage temperature calculation unit 14 from the refresh execution interval DB20. To get.

位置情報取得部10、リフレッシュ間隔取得部11A、判定部12、リフレッシュ実行部13および保管温度算出部14の機能を実現する処理回路は、図6Aに示した専用のハードウェアである処理回路102であってもよい。また、位置情報取得部10、リフレッシュ間隔取得部11A、判定部12、リフレッシュ実行部13および保管温度算出部14の機能を実現する処理回路は、図6Bに示した不揮発性メモリ101に記憶されたプログラムを実行するプロセッサ103であってもよい。さらに、位置情報取得部10、リフレッシュ間隔取得部11A、判定部12、リフレッシュ実行部13および保管温度算出部14の機能について一部を専用のハードウェアで実現し、一部をソフトウェアまたはファームウェアで実現してもよい。   The processing circuit that realizes the functions of the position information acquisition unit 10, the refresh interval acquisition unit 11A, the determination unit 12, the refresh execution unit 13, and the storage temperature calculation unit 14 is the processing circuit 102 that is dedicated hardware illustrated in FIG. 6A. There may be. In addition, processing circuits that realize the functions of the position information acquisition unit 10, the refresh interval acquisition unit 11A, the determination unit 12, the refresh execution unit 13, and the storage temperature calculation unit 14 are stored in the nonvolatile memory 101 illustrated in FIG. 6B. The processor 103 that executes the program may be used. Further, part of the functions of the position information acquisition unit 10, the refresh interval acquisition unit 11A, the determination unit 12, the refresh execution unit 13, and the storage temperature calculation unit 14 are realized by dedicated hardware, and part is realized by software or firmware. May be.

次に動作について説明する。
図9は、電子機器1Aの動作を示すフローチャートであり、不揮発性メモリ2のリフレッシュの実行可否を判定する一連の処理を示している。
位置情報取得部10は、システムが起動すると、電子機器1Aの位置情報Pを取得する(ステップST1a)。位置情報取得部10によって取得された位置情報Pは、保管温度算出部14に出力される。次に、リフレッシュ間隔取得部11Aは、データ書換え実行回数Nを不揮発性メモリ2から取得する(ステップST2a)。
Next, the operation will be described.
FIG. 9 is a flowchart showing the operation of the electronic apparatus 1A, and shows a series of processes for determining whether or not the nonvolatile memory 2 can be refreshed.
When the system is activated, the position information acquisition unit 10 acquires the position information P of the electronic device 1A (step ST1a). The position information P acquired by the position information acquisition unit 10 is output to the storage temperature calculation unit 14. Next, the refresh interval acquisition unit 11A acquires the data rewrite execution count N from the nonvolatile memory 2 (step ST2a).

判定部12および保管温度算出部14は、前回のリフレッシュ実行日時Daを不揮発性メモリ2から取得し(ステップST3a)、現在日時Dbを不揮発性メモリ2から取得する(ステップST4a)。なお、現在日時Dbの取得方法は、実施の形態1と同様に、電子機器1Aの内部時計を用いてもよく、GNSS衛星から受信されたGNSS信号に含まれる時刻情報を用いてもよい。   The determination unit 12 and the storage temperature calculation unit 14 obtain the previous refresh execution date / time Da from the nonvolatile memory 2 (step ST3a), and obtain the current date / time Db from the nonvolatile memory 2 (step ST4a). As in the first embodiment, the current date and time Db may be acquired using the internal clock of the electronic apparatus 1A or using time information included in the GNSS signal received from the GNSS satellite.

保管温度算出部14は、電子機器1Aの位置情報Pに対応する地域の平均気温Taを、リフレッシュ実行間隔DB20から取得する(ステップST5a)。さらに、保管温度算出部14は、不揮発性メモリ2に対する前回のリフレッシュ実行日時Daまでの平均保管温度Tbを、不揮発性メモリ2から取得する(ステップST6a)。   The storage temperature calculation unit 14 acquires the average temperature Ta of the area corresponding to the position information P of the electronic device 1A from the refresh execution interval DB 20 (step ST5a). Furthermore, the storage temperature calculation unit 14 acquires the average storage temperature Tb from the nonvolatile memory 2 up to the previous refresh execution date Da for the nonvolatile memory 2 (step ST6a).

保管温度算出部14は、システムが起動された日時、すなわち、電子機器1Aの前回の起動日時を特定し、前回のリフレッシュ実行日時Daから電子機器1Aの前回の起動までの経過時間Dnを算出する。保管温度算出部14は、現在日時Dbを使用して、電子機器1Aの前回の起動から現在までの経過時間Dmを算出する。保管温度算出部14は、経過時間Dn、経過時間Dm、位置情報Pに対応する地域の平均気温Taおよび平均保管温度Tbを用いて、下記式(1)に従い、不揮発性メモリ2の平均保管温度Tcを算出する(ステップST7a)。
Tc=(Dn×Tb+Dm×Ta)/(Dn+Dm) ・・・(1)
The storage temperature calculation unit 14 specifies the date and time when the system was activated, that is, the previous activation date and time of the electronic device 1A, and calculates the elapsed time Dn from the previous refresh execution date and time Da to the previous activation of the electronic device 1A. . The storage temperature calculation unit 14 calculates the elapsed time Dm from the previous activation of the electronic device 1A to the present using the current date and time Db. The storage temperature calculation unit 14 uses the average temperature Ta and the average storage temperature Tb of the area corresponding to the elapsed time Dn, the elapsed time Dm, and the position information P, and the average storage temperature of the nonvolatile memory 2 according to the following formula (1). Tc is calculated (step ST7a).
Tc = (Dn × Tb + Dm × Ta) / (Dn + Dm) (1)

保管温度算出部14によって算出された平均保管温度Tcは、リフレッシュ間隔取得部11Aに出力される。また、保管温度算出部14は、不揮発性メモリ2に保存されている現在の平均保管温度Tbを、算出した平均保管温度Tcで更新する。   The average storage temperature Tc calculated by the storage temperature calculation unit 14 is output to the refresh interval acquisition unit 11A. Moreover, the storage temperature calculation unit 14 updates the current average storage temperature Tb stored in the nonvolatile memory 2 with the calculated average storage temperature Tc.

リフレッシュ間隔取得部11Aは、保管温度算出部14によって算出された平均保管温度Tcが含まれる温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxを、リフレッシュ実行間隔DB20から取得する(ステップST8a)。リフレッシュ間隔取得部11Aによって取得されたリフレッシュ実行間隔Dxは、判定部12に出力される。   The refresh interval acquisition unit 11A sets the refresh execution interval Dx corresponding to the data rewrite execution count N of the nonvolatile memory 2 in the temperature range including the average storage temperature Tc calculated by the storage temperature calculation unit 14 as the refresh execution interval DB20. (Step ST8a). The refresh execution interval Dx acquired by the refresh interval acquisition unit 11A is output to the determination unit 12.

判定部12は、前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間(Db−Da)がリフレッシュ実行間隔Dxよりも長いか否かを確認する(ステップST9a)。前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間の長さがリフレッシュ実行間隔Dx以下である場合(ステップST9a;NO)、判定部12は、不揮発性メモリ2のリフレッシュが実行不可と判定して、図9の処理を終了する。   The determination unit 12 confirms whether the time (Db−Da) elapsed from the previous refresh execution date / time Da to the current date / time Db is longer than the refresh execution interval Dx (step ST9a). When the length of time elapsed from the previous refresh execution date / time Da to the current date / time Db is equal to or shorter than the refresh execution interval Dx (step ST9a; NO), the determination unit 12 determines that the refresh of the nonvolatile memory 2 cannot be performed. Then, the process of FIG.

前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間の長さがリフレッシュ実行間隔Dxよりも長い場合(ステップST9a;YES)、判定部12は、不揮発性メモリ2のリフレッシュの実行可と判定し、この判定結果をリフレッシュ実行部13に通知する。リフレッシュ実行部13は、上記通知を受けると、不揮発性メモリ2のリフレッシュを実行する(ステップST10a)。   When the length of time elapsed from the previous refresh execution date / time Da to the current date / time Db is longer than the refresh execution interval Dx (step ST9a; YES), the determination unit 12 determines that refresh of the nonvolatile memory 2 can be performed. Then, this determination result is notified to the refresh execution unit 13. Upon receiving the notification, the refresh execution unit 13 performs the refresh of the nonvolatile memory 2 (step ST10a).

リフレッシュ実行部13は、不揮発性メモリ2のリフレッシュを完了すると、前回のリフレッシュ実行日時Daを現在日時Dbで更新する(ステップST11a)。
さらに、リフレッシュ実行部13は、リフレッシュ処理でデータを再書き込みした記憶領域のデータ書換え実行回数Nを更新する。この後、図9の処理が終了される。
なお、図9のフローチャートの一連の処理は、不揮発性メモリ2のリフレッシュの実行可否を判定する処理の一例を示しており、各種情報を取得する順番は入れ替えてもよい。
When the refresh execution unit 13 completes the refresh of the nonvolatile memory 2, it updates the previous refresh execution date / time Da with the current date / time Db (step ST11a).
Further, the refresh execution unit 13 updates the data rewrite execution count N of the storage area to which data has been rewritten by the refresh process. Thereafter, the process of FIG. 9 is terminated.
Note that the series of processing in the flowchart of FIG. 9 shows an example of processing for determining whether or not the refresh of the nonvolatile memory 2 can be performed, and the order of acquiring various types of information may be changed.

なお、リフレッシュ実行間隔DB20、平均保管温度Tb、データ書換え実行回数Nおよび前回のリフレッシュ実行日時Daのうちの少なくとも一つの情報が、電子機器1Aと通信可能なサーバ装置に保存されてもよい。電子機器1Aからデータ読み出し可能な装置であれば、これらの情報を別々の装置が保存してもよい。   Note that at least one of the refresh execution interval DB 20, the average storage temperature Tb, the data rewrite execution count N, and the previous refresh execution date / time Da may be stored in a server device that can communicate with the electronic apparatus 1A. As long as the data can be read from the electronic device 1A, these pieces of information may be stored in different devices.

以上のように、実施の形態2に係る電子機器1Aは、前回のリフレッシュ実行日時Daからの不揮発性メモリ2の平均保管温度Tcが含まれる温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxおよび前回のリフレッシュ実行日時Daからの経過時間に基づいて、不揮発性メモリ2のリフレッシュの実行可否を判定する。これによって、電子機器1Aが地域間を移動したときの温度変化の影響が緩和されるので、電子機器1Aは、不揮発性メモリ2のデータ書換え寿命の低下を抑制しながら、長期間のデータ保持を実現することができる。   As described above, the electronic device 1A according to the second embodiment has the data rewrite execution count N of the nonvolatile memory 2 in the temperature range including the average storage temperature Tc of the nonvolatile memory 2 from the previous refresh execution date / time Da. Whether or not the nonvolatile memory 2 can be refreshed is determined based on the refresh execution interval Dx corresponding to the above and the elapsed time from the previous refresh execution date and time Da. As a result, the influence of the temperature change when the electronic device 1A moves between the regions is mitigated, so that the electronic device 1A can hold data for a long time while suppressing a decrease in the data rewriting life of the nonvolatile memory 2. Can be realized.

実施の形態3.
図10は、この発明の実施の形態3に係る電子機器1Bの構成を示すブロック図である。図10において、図1と同一構成要素には同一符号を付して説明を省略する。
電子機器1Bは、不揮発性メモリ2を有しており、カーナビゲーション装置のような車両に搭載された車載機器であってもよい。電子機器1Bは、図10に示すように、位置情報取得部10、リフレッシュ間隔取得部11B、判定部12、リフレッシュ実行部13、機器内温度取得部15、外気温取得部16および温度補正部17を備えて構成される。
Embodiment 3 FIG.
FIG. 10 is a block diagram showing a configuration of an electronic apparatus 1B according to Embodiment 3 of the present invention. In FIG. 10, the same components as those in FIG.
The electronic device 1B includes a nonvolatile memory 2 and may be a vehicle-mounted device mounted on a vehicle such as a car navigation device. As shown in FIG. 10, the electronic device 1 </ b> B includes a position information acquisition unit 10, a refresh interval acquisition unit 11 </ b> B, a determination unit 12, a refresh execution unit 13, a device internal temperature acquisition unit 15, an outside air temperature acquisition unit 16, and a temperature correction unit 17. It is configured with.

機器内温度取得部15は、電子機器1Bの内部の温度Tiを示す温度情報を取得する。例えば、機器内温度取得部15は、電子機器1Bに搭載された温度センサによって検出された機器内の温度Tiを取得してもよい。   The device internal temperature acquisition unit 15 acquires temperature information indicating the temperature Ti inside the electronic device 1B. For example, the in-device temperature acquisition unit 15 may acquire the temperature Ti in the device detected by a temperature sensor mounted on the electronic device 1B.

外気温取得部16は、電子機器1Bの外部の外気温度Toを示す温度情報を取得する。例えば、外気温取得部16は、車両に搭載された外気温時計によって検出された外気温度Toを取得してもよい。また、外気温取得部16は、外部のサーバ装置または携帯情報端末から取得した電子機器1Bが存在する地域の気温情報を、外気温度Toとしてもよい。   The outside air temperature acquisition unit 16 acquires temperature information indicating the outside air temperature To outside the electronic device 1B. For example, the outside air temperature acquisition unit 16 may acquire the outside air temperature To detected by an outside air temperature clock mounted on the vehicle. Moreover, the outside air temperature acquisition part 16 is good also considering the temperature information of the area | region where the electronic device 1B acquired from the external server apparatus or the portable information terminal exists as the outside temperature To.

温度補正部17は、機器内温度取得部15によって取得された機器内の温度Tiと外気温取得部16によって取得された外気温度Toとに基づいて、電子機器1Bの位置情報Pに対応する地域の平均気温Taを補正した推定保管温度Txを算出する。温度補正部17によって算出された推定保管温度Txは、リフレッシュ間隔取得部11Bに出力される。   The temperature correction unit 17 is a region corresponding to the position information P of the electronic device 1B based on the internal temperature Ti acquired by the internal temperature acquisition unit 15 and the external air temperature To acquired by the external air temperature acquisition unit 16. An estimated storage temperature Tx obtained by correcting the average temperature Ta is calculated. The estimated storage temperature Tx calculated by the temperature correction unit 17 is output to the refresh interval acquisition unit 11B.

リフレッシュ間隔取得部11Bは、平均気温Taを補正して得られた推定保管温度Txが含まれる温度範囲における、データ書換え実行回数Nに対応したリフレッシュ実行間隔Dxを、リフレッシュ実行間隔DB20から取得する。   The refresh interval acquisition unit 11B acquires from the refresh execution interval DB 20 the refresh execution interval Dx corresponding to the data rewrite execution count N in the temperature range including the estimated storage temperature Tx obtained by correcting the average temperature Ta.

図11は、実施の形態3におけるリフレッシュ実行間隔DB20を構成する第2のDB20cの例を示す図である。リフレッシュ実行間隔DB20は、図2に示した第1のDB20aと、第2のDB20cとから構成される。第1のDB20aは、地域とその地域における平均気温Taとが登録されている。   FIG. 11 is a diagram illustrating an example of the second DB 20c configuring the refresh execution interval DB 20 according to the third embodiment. The refresh execution interval DB 20 is composed of the first DB 20a and the second DB 20c shown in FIG. In the first DB 20a, an area and an average temperature Ta in the area are registered.

第2のDB20cには、複数の温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxが登録されている。ここで、温度範囲は、推定保管温度Txの温度範囲である。なお、リフレッシュ実行間隔DB20は、第1のDB20aと第2のDB20cの両方の内容が1つに登録されたDBであってもよい。   In the second DB 20c, refresh execution intervals Dx corresponding to the data rewrite execution count N of the nonvolatile memory 2 in a plurality of temperature ranges are registered. Here, the temperature range is a temperature range of the estimated storage temperature Tx. Note that the refresh execution interval DB 20 may be a DB in which the contents of both the first DB 20a and the second DB 20c are registered as one.

位置情報取得部10、リフレッシュ間隔取得部11B、判定部12、リフレッシュ実行部13、機器内温度取得部15、外気温取得部16、および温度補正部17の機能を実現する処理回路は、図6Aに示した専用のハードウェアである処理回路102であってもよい。また、位置情報取得部10、リフレッシュ間隔取得部11B、判定部12、リフレッシュ実行部13、機器内温度取得部15、外気温取得部16および温度補正部17の機能を実現する処理回路は、図6Bに示した不揮発性メモリ101に記憶されたプログラムを実行するプロセッサ103であってもよい。
さらに、位置情報取得部10、リフレッシュ間隔取得部11B、判定部12、リフレッシュ実行部13、機器内温度取得部15、外気温取得部16および温度補正部17の機能について一部を専用のハードウェアで実現し、一部をソフトウェアまたはファームウェアで実現してもよい。
A processing circuit for realizing the functions of the position information acquisition unit 10, the refresh interval acquisition unit 11B, the determination unit 12, the refresh execution unit 13, the in-apparatus temperature acquisition unit 15, the outside air temperature acquisition unit 16, and the temperature correction unit 17 is illustrated in FIG. The processing circuit 102 which is the dedicated hardware shown in FIG. The processing circuit for realizing the functions of the position information acquisition unit 10, the refresh interval acquisition unit 11B, the determination unit 12, the refresh execution unit 13, the in-apparatus temperature acquisition unit 15, the outside air temperature acquisition unit 16, and the temperature correction unit 17 is illustrated in FIG. The processor 103 that executes the program stored in the nonvolatile memory 101 shown in 6B may be used.
Furthermore, some of the functions of the position information acquisition unit 10, the refresh interval acquisition unit 11B, the determination unit 12, the refresh execution unit 13, the device internal temperature acquisition unit 15, the outside air temperature acquisition unit 16, and the temperature correction unit 17 are dedicated hardware. May be realized by software or firmware.

次に動作について説明する。
図12は、電子機器1Bの動作を示すフローチャートであり、不揮発性メモリ2のリフレッシュの実行可否を判定する一連の処理を示している。
機器内温度取得部15は、システムが起動した直後に、機器内の温度Tiを取得する(ステップST1b)。続いて、外気温取得部16は、外気温度Toを取得する(ステップST2b)。位置情報取得部10は、電子機器1Bの位置情報Pを取得する(ステップST3b)。機器内の温度Tiを示す温度情報、外気温度Toを示す温度情報、および位置情報Pは、温度補正部17に出力される。
Next, the operation will be described.
FIG. 12 is a flowchart showing the operation of the electronic apparatus 1B, and shows a series of processes for determining whether or not the nonvolatile memory 2 can be refreshed.
The device internal temperature acquisition unit 15 acquires the temperature Ti in the device immediately after the system is started (step ST1b). Subsequently, the outside air temperature acquisition unit 16 acquires the outside air temperature To (step ST2b). The position information acquisition unit 10 acquires the position information P of the electronic device 1B (step ST3b). The temperature information indicating the temperature Ti in the device, the temperature information indicating the outside air temperature To, and the position information P are output to the temperature correction unit 17.

リフレッシュ間隔取得部11Bは、データ書換え実行回数Nを、不揮発性メモリ2から取得する(ステップST4b)。判定部12は、前回のリフレッシュ実行日時Daを不揮発性メモリ2から取得し(ステップST5b)、現在日時Dbを不揮発性メモリ2から取得する(ステップST6b)。温度補正部17は、電子機器1Bの位置情報Pに対応する地域の平均気温Taを、リフレッシュ実行間隔DB20の第1のDB20aから取得する(ステップST7b)。   The refresh interval acquisition unit 11B acquires the data rewrite execution count N from the nonvolatile memory 2 (step ST4b). The determination unit 12 acquires the previous refresh execution date / time Da from the nonvolatile memory 2 (step ST5b), and acquires the current date / time Db from the nonvolatile memory 2 (step ST6b). The temperature correction unit 17 acquires the average temperature Ta of the area corresponding to the position information P of the electronic device 1B from the first DB 20a of the refresh execution interval DB 20 (step ST7b).

次に、温度補正部17は、平均気温Ta、機器内の温度Tiおよび外気温度Toを用いて、下記式(2)に従い、平均気温Taを補正した不揮発性メモリ2の推定保管温度Txを算出する(ステップST8b)。温度補正部17によって算出された推定保管温度Txは、リフレッシュ間隔取得部11Bに出力される。
Tx=Ta+(Ti−To) ・・・(2)
Next, the temperature correction unit 17 calculates the estimated storage temperature Tx of the nonvolatile memory 2 in which the average temperature Ta is corrected using the average temperature Ta, the temperature Ti inside the device, and the outside air temperature To according to the following formula (2). (Step ST8b). The estimated storage temperature Tx calculated by the temperature correction unit 17 is output to the refresh interval acquisition unit 11B.
Tx = Ta + (Ti−To) (2)

続いて、リフレッシュ間隔取得部11Bは、温度補正部17によって算出された推定保管温度Txが含まれる温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxをリフレッシュ実行間隔DB20の第2のDB20cから取得する(ステップST9b)。リフレッシュ間隔取得部11Bによって取得されたリフレッシュ実行間隔Dxは、判定部12に出力される。   Subsequently, the refresh interval acquisition unit 11B sets the refresh execution interval Dx corresponding to the data rewrite execution count N of the nonvolatile memory 2 in the temperature range including the estimated storage temperature Tx calculated by the temperature correction unit 17 as the refresh execution interval. Obtained from the second DB 20c of the DB 20 (step ST9b). The refresh execution interval Dx acquired by the refresh interval acquisition unit 11B is output to the determination unit 12.

判定部12は、前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間(Db−Da)がリフレッシュ実行間隔Dxよりも長いか否かを確認する(ステップST10b)。前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間の長さがリフレッシュ実行間隔Dx以下である場合(ステップST10b;NO)、判定部12は、不揮発性メモリ2のリフレッシュが実行不可と判定して、図12の処理を終了する。   The determination unit 12 checks whether the time (Db−Da) elapsed from the previous refresh execution date / time Da to the current date / time Db is longer than the refresh execution interval Dx (step ST10b). When the length of time elapsed from the previous refresh execution date / time Da to the current date / time Db is equal to or shorter than the refresh execution interval Dx (step ST10b; NO), the determination unit 12 determines that the refresh of the nonvolatile memory 2 cannot be performed. Then, the process of FIG.

一方、前回のリフレッシュ実行日時Daから現在日時Dbまでに経過した時間の長さがリフレッシュ実行間隔Dxよりも長い場合(ステップST10b;YES)、判定部12は、不揮発性メモリ2のリフレッシュの実行可と判定し、この判定結果を、リフレッシュ実行部13に通知する。リフレッシュ実行部13は、上記通知を受けると、不揮発性メモリ2のリフレッシュを実行する(ステップST11b)。   On the other hand, when the length of time elapsed from the previous refresh execution date / time Da to the current date / time Db is longer than the refresh execution interval Dx (step ST10b; YES), the determination unit 12 can execute the refresh of the nonvolatile memory 2 And the refresh execution unit 13 is notified of the determination result. Upon receiving the notification, the refresh execution unit 13 performs the refresh of the nonvolatile memory 2 (step ST11b).

リフレッシュ実行部13は、不揮発性メモリ2のリフレッシュを完了すると、前回のリフレッシュ実行日時Daを現在日時Dbで更新する(ステップST12b)。
さらに、リフレッシュ実行部13は、リフレッシュ処理でデータを再書き込みした記憶領域のデータ書換え実行回数Nを更新する。この後、図12の処理が終了される。
なお、図12に示したフローチャートの一連の処理は、不揮発性メモリ2のリフレッシュの実行可否を判定する処理の一例を示しており、各種情報を取得する順番は入れ替えてもよい。
When the refresh execution unit 13 completes the refresh of the nonvolatile memory 2, it updates the previous refresh execution date / time Da with the current date / time Db (step ST12b).
Further, the refresh execution unit 13 updates the data rewrite execution count N of the storage area to which data has been rewritten by the refresh process. Thereafter, the process of FIG. 12 is terminated.
Note that the series of processes in the flowchart shown in FIG. 12 shows an example of a process for determining whether or not the refresh of the nonvolatile memory 2 can be performed, and the order of acquiring various types of information may be changed.

なお、リフレッシュ実行間隔DB20、平均保管温度Tb、データ書換え実行回数Nおよび前回のリフレッシュ実行日時Daのうちの少なくとも一つの情報が、電子機器1Bと通信可能なサーバ装置に保存されてもよい。電子機器1Bからデータ読み出し可能な装置であれば、これらの情報を別々の装置が保存してもよい。   Note that at least one of the refresh execution interval DB 20, the average storage temperature Tb, the data rewrite execution count N, and the previous refresh execution date / time Da may be stored in a server device that can communicate with the electronic device 1B. As long as the device can read data from the electronic device 1B, these pieces of information may be stored in different devices.

推定保管温度Txは、電子機器1Bの内部の温度Tiと外気温度Toの差に基づいて、電子機器1Bがおかれた地域の平均気温Taと、実際の不揮発性メモリ2の保管温度との誤差を補正したものである。これにより、推定保管温度Txは、平均気温Taよりも実際の不揮発性メモリ2の保管温度に近い値になっている。   The estimated storage temperature Tx is an error between the average temperature Ta in the area where the electronic device 1B is placed and the actual storage temperature of the nonvolatile memory 2 based on the difference between the temperature Ti inside the electronic device 1B and the outside air temperature To. Is corrected. Thereby, the estimated storage temperature Tx is closer to the actual storage temperature of the nonvolatile memory 2 than the average temperature Ta.

例えば、電子機器1Bが車載機器であり、電子機器1Bを搭載した車両が、非常に暑い地域で室内に保管された場合、実際の不揮発性メモリ2の保管温度は、その地域の平均気温よりも低くなる可能性がある。このような場合であっても、平均気温Taを推定保管温度Txに補正することで、地域の平均気温Taと実際の不揮発性メモリ2の保管温度との誤差が低減される。   For example, when the electronic device 1B is a vehicle-mounted device and a vehicle equipped with the electronic device 1B is stored indoors in a very hot area, the actual storage temperature of the nonvolatile memory 2 is higher than the average temperature in the area. May be lower. Even in such a case, by correcting the average temperature Ta to the estimated storage temperature Tx, an error between the local average temperature Ta and the actual storage temperature of the nonvolatile memory 2 is reduced.

以上のように、実施の形態3に係る電子機器1Bは、機器内温度取得部15、外気温取得部16および温度補正部17を備える。リフレッシュ間隔取得部11Bは、リフレッシュ実行間隔DB20から、温度補正部17によって平均気温Taから補正された推定保管温度Txが含まれる温度範囲における、不揮発性メモリ2のデータ書換え実行回数Nに対応したリフレッシュ実行間隔Dxを取得する。推定保管温度Txをリフレッシュ実行間隔Dxの判定に反映させることで、電子機器1Bは、不揮発性メモリ2のデータ書換え寿命の低下を抑制しながら、長期間のデータ保持を実現することができる。   As described above, the electronic device 1B according to Embodiment 3 includes the in-device temperature acquisition unit 15, the outside air temperature acquisition unit 16, and the temperature correction unit 17. The refresh interval acquisition unit 11B performs refresh corresponding to the number N of data rewrite executions of the nonvolatile memory 2 in the temperature range including the estimated storage temperature Tx corrected from the average temperature Ta by the temperature correction unit 17 from the refresh execution interval DB20. The execution interval Dx is acquired. By reflecting the estimated storage temperature Tx in the determination of the refresh execution interval Dx, the electronic device 1B can realize long-term data retention while suppressing a decrease in the data rewriting life of the nonvolatile memory 2.

実施の形態3に係る電子機器1Bにおいて、機器内温度取得部15は、電子機器1Bが起動したタイミングで電子機器1Bの内部の温度Tiを取得する。一般に、カーナビゲーション装置といった高機能の電子機器では、動作モードまたは使用条件によって機器内のデバイスの処理負荷および動作条件が変動して温度Tiが大幅に変動する。そこで、機器内温度取得部15が、電子機器1Bが起動したタイミングで温度を取得することにより、機器内のデバイスの処理負荷および動作条件の変動による影響を受ける前の安定した温度を取得することができる。   In the electronic device 1B according to Embodiment 3, the device internal temperature acquisition unit 15 acquires the temperature Ti inside the electronic device 1B at the timing when the electronic device 1B is activated. In general, in a high-functional electronic device such as a car navigation apparatus, the processing load of the device in the device and the operation condition vary depending on the operation mode or use condition, and the temperature Ti greatly varies. Therefore, the device internal temperature acquisition unit 15 acquires the temperature at the timing when the electronic device 1B is activated, thereby acquiring a stable temperature before being affected by variations in the processing load and operating conditions of the device in the device. Can do.

なお、本発明は上記実施の形態に限定されるものではなく、本発明の範囲内において、実施の形態のそれぞれの自由な組み合わせまたは実施の形態のそれぞれの任意の構成要素の変形もしくは実施の形態のそれぞれにおいて任意の構成要素の省略が可能である。   It should be noted that the present invention is not limited to the above-described embodiment, and within the scope of the present invention, each free combination of the embodiments or any component modification or embodiment of the embodiment. It is possible to omit arbitrary components in each of the above.

1,1A,1B 電子機器、2 不揮発性メモリ、3 メモリ管理システム、4 ネットワーク、5 サーバ装置、10 位置情報取得部、11,11A,11B リフレッシュ間隔取得部、12 判定部、13 リフレッシュ実行部、14 保管温度算出部、15 機器内温度取得部、16 外気温取得部、17 温度補正部、20 リフレッシュ実行間隔DB、20a 第1のDB、20b,20c 第2のDB、100 GNSS受信機、101 不揮発性メモリ、102 処理回路、103 プロセッサ。   1, 1A, 1B electronic device, 2 nonvolatile memory, 3 memory management system, 4 network, 5 server device, 10 position information acquisition unit, 11, 11A, 11B refresh interval acquisition unit, 12 determination unit, 13 refresh execution unit, 14 storage temperature calculation unit, 15 device internal temperature acquisition unit, 16 outside air temperature acquisition unit, 17 temperature correction unit, 20 refresh execution interval DB, 20a first DB, 20b, 20c second DB, 100 GNSS receiver, 101 Nonvolatile memory, 102 processing circuit, 103 processor.

Claims (7)

不揮発性メモリを有した電子機器であって、
電子機器の位置情報を取得する位置情報取得部と、
複数の温度範囲における前記不揮発性メモリのデータ書換え実行回数の範囲に対応したリフレッシュ実行間隔の中から、前記位置情報取得部によって取得された位置情報に対応する地域の平均気温が含まれる温度範囲における前記不揮発性メモリのデータ書換え実行回数に対応したリフレッシュ実行間隔を取得するリフレッシュ間隔取得部と、
前記リフレッシュ間隔取得部によって取得されたリフレッシュ実行間隔および前記不揮発性メモリの前回のリフレッシュ実行からの経過時間に基づいて、前記不揮発性メモリのリフレッシュの実行可否を判定する判定部と、
前記判定部によってリフレッシュの実行可と判定された場合に、前記不揮発性メモリのリフレッシュを実行するリフレッシュ実行部とを備えたこと
を特徴とする電子機器。
An electronic device having a non-volatile memory,
A position information acquisition unit for acquiring position information of the electronic device;
Among the refresh execution intervals corresponding to the range of the data rewrite execution number of the nonvolatile memory in a plurality of temperature ranges, the temperature range includes the average temperature of the region corresponding to the position information acquired by the position information acquisition unit. A refresh interval acquisition unit for acquiring a refresh execution interval corresponding to the number of data rewrite execution times of the nonvolatile memory;
A determination unit that determines whether or not to perform refresh of the nonvolatile memory based on a refresh execution interval acquired by the refresh interval acquisition unit and an elapsed time from a previous refresh execution of the nonvolatile memory;
An electronic apparatus comprising: a refresh execution unit configured to perform refresh of the nonvolatile memory when the determination unit determines that refresh can be performed.
不揮発性メモリを有した電子機器であって、
電子機器の位置情報を取得する位置情報取得部と、
前記不揮発性メモリの前回のリフレッシュ実行から電子機器の前回の起動までの時間、電子機器の前回の起動からの経過時間、前記位置情報取得部によって取得された位置情報に対応する地域の平均気温、および前記不揮発性メモリの前回のリフレッシュ実行までの前記不揮発性メモリの平均保管温度を用いて、前記不揮発性メモリの前回のリフレッシュ実行からの前記不揮発性メモリの平均保管温度を算出する保管温度算出部と、
複数の温度範囲における前記不揮発性メモリのデータ書換え実行回数の範囲に対応したリフレッシュ実行間隔の中から、前記保管温度算出部によって算出された平均保管温度が含まれる温度範囲における前記不揮発性メモリのデータ書換え実行回数に対応したリフレッシュ実行間隔を取得するリフレッシュ間隔取得部と、
前記リフレッシュ間隔取得部によって取得されたリフレッシュ実行間隔および前記不揮発性メモリの前回のリフレッシュ実行からの経過時間に基づいて、前記不揮発性メモリのリフレッシュの実行可否を判定する判定部と、
前記判定部によってリフレッシュの実行可と判定された場合に、前記不揮発性メモリのリフレッシュを実行するリフレッシュ実行部とを備えたこと
を特徴とする電子機器。
An electronic device having a non-volatile memory,
A position information acquisition unit for acquiring position information of the electronic device;
The time from the previous refresh execution of the nonvolatile memory to the last activation of the electronic device, the elapsed time from the previous activation of the electronic device, the average temperature in the region corresponding to the location information acquired by the location information acquisition unit, And a storage temperature calculation unit that calculates an average storage temperature of the nonvolatile memory from the previous refresh execution of the nonvolatile memory using an average storage temperature of the nonvolatile memory until the previous refresh execution of the nonvolatile memory When,
The data in the nonvolatile memory in the temperature range including the average storage temperature calculated by the storage temperature calculation unit from the refresh execution interval corresponding to the range of the number of data rewrite execution times in the nonvolatile memory in a plurality of temperature ranges A refresh interval acquisition unit for acquiring a refresh execution interval corresponding to the number of rewrite executions;
A determination unit that determines whether or not to perform refresh of the nonvolatile memory based on a refresh execution interval acquired by the refresh interval acquisition unit and an elapsed time from a previous refresh execution of the nonvolatile memory;
An electronic apparatus comprising: a refresh execution unit configured to perform refresh of the nonvolatile memory when the determination unit determines that refresh can be performed.
電子機器の内部の温度情報を取得する機器内温度取得部と、
電子機器の外部の温度情報を取得する外気温取得部と、
前記機器内温度取得部および前記外気温取得部によって取得された温度情報に基づいて前記平均気温を補正する温度補正部とを備え、
前記リフレッシュ間隔取得部は、複数の温度範囲における前記不揮発性メモリのデータ書換え実行回数の範囲に対応したリフレッシュ実行間隔の中から、前記温度補正部によって補正された前記平均気温が含まれる温度範囲における前記不揮発性メモリのデータ書換え実行回数に対応したリフレッシュ実行間隔を取得すること
を特徴とする請求項1記載の電子機器。
A device internal temperature acquisition unit for acquiring temperature information inside the electronic device;
An outside air temperature acquisition unit for acquiring temperature information outside the electronic device;
A temperature correction unit that corrects the average temperature based on temperature information acquired by the internal temperature acquisition unit and the outside air temperature acquisition unit;
The refresh interval acquisition unit is a refresh execution interval corresponding to a range of the number of data rewrite execution times of the nonvolatile memory in a plurality of temperature ranges, in a temperature range including the average temperature corrected by the temperature correction unit. The electronic apparatus according to claim 1, wherein a refresh execution interval corresponding to the number of data rewrite execution times of the nonvolatile memory is acquired.
前記機器内温度取得部は、電子機器が起動したタイミングで電子機器の内部の温度情報を取得すること
を特徴とする請求項3記載の電子機器。
The electronic device according to claim 3, wherein the device internal temperature acquisition unit acquires temperature information inside the electronic device at a timing when the electronic device is activated.
車両に搭載されていること
を特徴とする請求項1記載の電子機器。
The electronic device according to claim 1, wherein the electronic device is mounted on a vehicle.
請求項1から請求項5のいずれか1項記載の電子機器と、
地域ごとの前記平均気温、および複数の温度範囲における前記不揮発性メモリのデータ書換え実行回数の範囲に対応したリフレッシュ実行間隔が登録されたデータベースとを備えたこと
を特徴とするメモリ管理システム。
An electronic device according to any one of claims 1 to 5,
A memory management system comprising: a database in which a refresh execution interval corresponding to the range of the average temperature for each region and the number of data rewrite execution times of the nonvolatile memory in a plurality of temperature ranges is registered.
コンピュータを、
不揮発性メモリを有した電子機器の位置情報を取得する位置情報取得部と、
複数の温度範囲における前記不揮発性メモリのデータ書換え実行回数の範囲に対応したリフレッシュ実行間隔の中から、前記位置情報取得部によって取得された位置情報に対応する地域の平均気温が含まれる温度範囲における前記不揮発性メモリのデータ書換え実行回数に対応したリフレッシュ実行間隔を取得するリフレッシュ間隔取得部と、
前記リフレッシュ間隔取得部によって取得されたリフレッシュ実行間隔および前記不揮発性メモリの前回のリフレッシュ実行からの経過時間に基づいて、前記不揮発性メモリのリフレッシュの実行可否を判定する判定部と、
前記判定部によってリフレッシュの実行可と判定された場合に、前記不揮発性メモリのリフレッシュを実行するリフレッシュ実行部として機能させるためのプログラム。
Computer
A position information acquisition unit that acquires position information of an electronic device having a nonvolatile memory;
Among the refresh execution intervals corresponding to the range of the data rewrite execution number of the nonvolatile memory in a plurality of temperature ranges, the temperature range includes the average temperature of the region corresponding to the position information acquired by the position information acquisition unit. A refresh interval acquisition unit for acquiring a refresh execution interval corresponding to the number of data rewrite execution times of the nonvolatile memory;
A determination unit that determines whether or not to perform refresh of the nonvolatile memory based on a refresh execution interval acquired by the refresh interval acquisition unit and an elapsed time from a previous refresh execution of the nonvolatile memory;
A program for causing a function to function as a refresh execution unit that performs refresh of the nonvolatile memory when the determination unit determines that refresh can be performed.
JP2018098115A 2018-05-22 2018-05-22 Electronic apparatus and memory management system and program Pending JP2019204229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018098115A JP2019204229A (en) 2018-05-22 2018-05-22 Electronic apparatus and memory management system and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018098115A JP2019204229A (en) 2018-05-22 2018-05-22 Electronic apparatus and memory management system and program

Publications (1)

Publication Number Publication Date
JP2019204229A true JP2019204229A (en) 2019-11-28

Family

ID=68726963

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018098115A Pending JP2019204229A (en) 2018-05-22 2018-05-22 Electronic apparatus and memory management system and program

Country Status (1)

Country Link
JP (1) JP2019204229A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11803436B2 (en) 2020-12-15 2023-10-31 Samsung Electronics Co., Ltd. Storage device and storage system including the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11803436B2 (en) 2020-12-15 2023-10-31 Samsung Electronics Co., Ltd. Storage device and storage system including the same

Similar Documents

Publication Publication Date Title
CN110703586B (en) Time synchronization method, data synchronization method, device, system, equipment and medium
US10261773B2 (en) Information processing device, information processing method, and computer readable medium
US11016511B2 (en) Tracking and identification method and system and aircraft
US10353696B2 (en) Program release packages including program updates
US9383450B2 (en) Apparatus and method for generating satellite navigation signal based on software
US9015378B2 (en) Determining sensor information in the background on a mobile device
US9297902B2 (en) Assistance data management
JP2019204229A (en) Electronic apparatus and memory management system and program
WO2016085813A1 (en) Method and apparatus for preventing and managing corruption and flash memory contents
CN115371689A (en) Fusion positioning method and device for automatic driving vehicle and electronic equipment
EP3323048B1 (en) Method and apparatus for managing corruption of flash memory contents
US11726434B2 (en) Satellite radiowave receiving device, electronic timepiece, positioning control method, and recording device
CN108693544B (en) Vehicle positioning method and device and storage medium
US20100052985A1 (en) Electronic device having gnss receiver and activating and positioning method thereof
US20210116577A1 (en) Positioning system, positioning device, and center device
JP2011257300A (en) In-vehicle recording apparatus and time correction method for in-vehicle recording apparatus
US8665150B1 (en) Sync feedback for time to first fix
JP2009217701A (en) Memory storage device and system
CN109189442B (en) Updating method, system and electronic equipment
CN113127082A (en) Data processing method, server, service node, system and storage medium
CN110674156A (en) Multi-machine room data synchronization method, computing equipment and computer storage medium
CN108241164B (en) Method and device for recording track in positioning empty window period of satellite positioning system
US11985450B2 (en) Vehicle electronic device, control method and program
CN116431169A (en) OTA upgrading method and device, electronic equipment and storage medium
JP7477008B2 (en) Wearable device, positioning control method, and positioning control program