JP2009187423A - Data management device and data management method in electronic equipment - Google Patents

Data management device and data management method in electronic equipment Download PDF

Info

Publication number
JP2009187423A
JP2009187423A JP2008028493A JP2008028493A JP2009187423A JP 2009187423 A JP2009187423 A JP 2009187423A JP 2008028493 A JP2008028493 A JP 2008028493A JP 2008028493 A JP2008028493 A JP 2008028493A JP 2009187423 A JP2009187423 A JP 2009187423A
Authority
JP
Japan
Prior art keywords
data
writing
memory
power
management
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.)
Withdrawn
Application number
JP2008028493A
Other languages
Japanese (ja)
Inventor
Masayuki Ishida
真之 石田
Toshihiro Kumagai
利広 熊谷
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2008028493A priority Critical patent/JP2009187423A/en
Publication of JP2009187423A publication Critical patent/JP2009187423A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Power Sources (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data management device in electronic equipment, which can disconnect the power after completing the writing of data that is currently written even though a power disconnection processing means is started to interrupt data writing processing during a forced power disconnection such as a power failure, and to provide a data management method. <P>SOLUTION: During a forced power disconnection such as a power failure and pulling-out of a power plug from a socket, a power off module is started to perform a power off processing routine. Whether a write flag is "1" is determined (S210), and when the write flag is "1", write processing (update processing) of data whose writing is interrupted in a mirror memory is performed again in such a case (S220) because it is clear that the data are currently written during the forced power disconnection (namely, data writing is interrupted). Then, after finishing data writing in the mirror memory, update data are written to a nonvolatile memory from the mirror memory (S230). <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、プリンタ等の電子機器において第一メモリのデータを第二メモリに書き込む
書込み処理を管理するデータ管理装置及びデータ管理方法に関する。
The present invention relates to a data management apparatus and a data management method for managing a writing process for writing data in a first memory into a second memory in an electronic device such as a printer.

従来、この種の電子機器の一つであるプリンタでは、一台のサーバに複数のプリンタが
ネットワーク接続され、サーバが複数のプリンタを管理するシステムが知られている。例
えばサーバは、各プリンタのインク消費量等の記録材消費量や、用紙消費枚数などの情報
を管理する。
2. Description of the Related Art Conventionally, in a printer that is one of such electronic devices, a system is known in which a plurality of printers are connected to one server via a network, and the server manages the plurality of printers. For example, the server manages recording material consumption such as ink consumption of each printer and information such as the number of sheets consumed.

例えば特許文献1には、インクカートリッジに記憶素子が設けられ、記憶素子には第1
インク残量記録領域と第2インク残量記録領域とが設けられ、各記憶領域の終端領域には
、各記憶領域に対するインク残量データの書き込みが正常に完了したか否かを示す第1書
込完了フラグと第2書込完了フラグがそれぞれ備えられている。これら書込完了フラグの
初期値は反対の値(例えば「0」と「1」)に設定されている。第1インク残量データと
第2インク残量データとが不一致の場合は、書込完了フラグが一致するか否かを判定し、
判定の結果、フラグが同一の値を示す場合は、第1インク残量記憶領域に対する書込みが
完了していることを意味するので、第1インク残量データを現在インク残量データとして
用い、一方、フラグが同一の値を有しない場合は、書込みが完了していないことを意味す
るので、第2インク残量データを現在インク残量データとして用いる。
特開2000−218824号公報
For example, in Patent Document 1, a storage element is provided in an ink cartridge.
An ink remaining amount recording area and a second ink remaining amount recording area are provided, and a first document indicating whether or not the writing of ink remaining amount data to each storage area has been normally completed in the end area of each storage area. A write completion flag and a second write completion flag. The initial values of these write completion flags are set to opposite values (for example, “0” and “1”). If the first ink remaining amount data and the second ink remaining amount data do not match, it is determined whether or not the writing completion flags match;
As a result of the determination, if the flags indicate the same value, it means that the writing to the first ink remaining amount storage area is completed, so the first ink remaining amount data is used as the current ink remaining amount data. If the flags do not have the same value, it means that the writing has not been completed, so the second ink remaining amount data is used as the current ink remaining amount data.
JP 2000-218824 A

例えばプリンタ等の電子機器の場合、電源オフ操作したときにそれまでのデータを不揮
発性メモリに書き込む処理が行われる。しかし、停電や電源プラグがコンセントから抜か
れたことによる電子機器の電源強制遮断時には、そのとき実行中の各種処理は中断され、
優先順位の高い電源オフ処理が実行される。このため、電源強制遮断時に例えばデータの
更新のためメモリ(RAM)への書込み中であった場合には、その書込み中の更新データ
が反映されていない前回のデータがメモリから不揮発性メモリに書き替えられる。このた
め、次回電源オンされて不揮発性メモリから読み出されたデータは更新前の前回のデータ
となっていたため、当該読み出しデータに基づき行われる各種処理が適切に行われにくい
という問題があった。
For example, in the case of an electronic device such as a printer, when the power is turned off, a process of writing the data up to that time into a nonvolatile memory is performed. However, when the power of the electronic device is forcibly cut off due to a power failure or the power plug being removed from the outlet, the various processes being executed at that time are interrupted.
A power-off process with a high priority is executed. For this reason, if, for example, data is being written to memory (RAM) at the time of forced shutdown, the previous data that does not reflect the update data being written is written from the memory to the nonvolatile memory. Be replaced. For this reason, since the data read from the non-volatile memory when the power is turned on next time is the previous data before the update, there is a problem that various processes performed based on the read data are not appropriately performed.

例えば特許文献1の構成をプリンタ等の電子機器におけるデータの書込み管理装置に適
用した場合、フラグが同一の値を有しているか否かにより、書込みが完了しているか書込
み完了前であるかが分かるものの、電源強制遮断時に書込み中であった場合には前回のデ
ータが採用されるので、同様の問題が残る。
For example, when the configuration of Patent Document 1 is applied to a data writing management device in an electronic device such as a printer, whether writing is completed or before writing is completed depending on whether or not the flags have the same value. As can be seen, the same problem remains because the previous data is adopted when writing is in progress when the power is forcibly cut off.

本発明は、上記問題点を解決するためになされたものであって、その目的は、停電等の
電源強制遮断時に、電源遮断処理手段が起動されてデータの書込み処理が中断されても、
その書込み中のデータの書込みを完了させてから電源を遮断させることができる電子機器
におけるデータ管理装置及びデータ管理方法を提供することにある。
The present invention was made in order to solve the above-mentioned problems, and its purpose is that even when the power-off processing means is activated and the data writing process is interrupted at the time of forced power-off such as a power failure,
An object of the present invention is to provide a data management device and a data management method in an electronic device capable of shutting off the power after completing the writing of the data being written.

本発明は、第一メモリと、第二メモリと、前記第一メモリから前記第二メモリへのデー
タの書込みを行う書込手段とを備えた電子機器におけるデータ管理装置であって、前記第
一メモリから前記第二メモリへのデータの書込み中であるか否かを判定値で管理する書込
中管理手段と、停電等による電子機器の電源強制遮断時に前記書込手段に優先して起動さ
れ電源を遮断する電源遮断処理を実行する電源遮断処理手段と、前記電源遮断処理手段の
起動後、前記電源強制遮断時に前記書込手段がデータの書込中であったか否かを前記判定
値に基づいて判断する判断手段とを備え、前記電源遮断処理手段は、前記判断手段が前記
書込中でなかったと判断した場合は前記電源遮断処理を行い、一方、前記書込中であった
と判断した場合は前記第一メモリから前記第二メモリへの当該書込中の前記データの書込
みを実行し書込み終了後に前記電源遮断処理を行うことを要旨とする。
The present invention is a data management device in an electronic device comprising a first memory, a second memory, and a writing means for writing data from the first memory to the second memory. A writing management means for managing whether or not data is being written from the memory to the second memory with a judgment value, and is activated in preference to the writing means when the electronic device is forcibly shut down due to a power failure or the like. Based on the determination value, whether or not the writing means was writing data at the time of the forced power-off after the power-off processing means is started after the power-off processing means is started. The power shut-off processing means performs the power shut-off process when it is determined that the writing is not being performed, while the power shut-off processing means determines that the writing is being performed. Is the first memo And gist to carry out the power-off processing the later executed write completion to write data in the write to the second memory from.

この発明によれば、第一メモリから第二メモリへのデータの書込中であるか否かは書込
中管理手段により判定値で管理される。電子機器の停電等による電源強制遮断時には、書
込手段に優先して電源遮断処理手段が起動される。そして、電源遮断処理手段の起動後、
判断手段は、電源強制遮断時に書込手段がデータの書込中であったか否かを判定値に基づ
いて判断する。電源遮断処理手段は、判断手段が書込中でなかったと判断した場合は電源
遮断処理を行い、一方、書込中であったと判断した場合は第一メモリから第二メモリへの
書込中のデータの書込みを実行し書込み終了後に電源遮断処理を行う。よって、停電等の
電源強制遮断時に、電源遮断処理手段が起動されてデータの書込み処理が中断されても、
その書込み中のデータの書込みを完了させてから電源を遮断させることができる。
According to the present invention, whether or not data is being written from the first memory to the second memory is managed by the in-writing management means with the determination value. When the power supply is forcibly cut off due to a power failure or the like of the electronic device, the power cut-off processing means is activated in preference to the writing means. And after starting the power-off processing means,
The determining means determines whether or not the writing means was writing data at the time of forced power-off based on the determination value. The power-off processing means performs power-off processing when it is determined that the determination means is not writing, while when it is determined that writing is in progress, writing from the first memory to the second memory is in progress. Write data and perform power shutdown processing after writing. Therefore, at the time of forced power shutdown such as power failure, even if the power shutdown processing means is activated and the data writing process is interrupted,
The power supply can be shut off after the writing of the data being written is completed.

(第一の実施形態)
以下、本発明をプリンタに適用した第一の実施形態を、図1〜図6に従って説明する。
図1は、プリンタ監視システムを示す全体模式図である。プリンタ監視システム11は
、サーバ12と複数台の電子機器としてのプリンタ13とが例えばLANケーブル等の通
信ケーブル14(ネットワークケーブル)を介してネットワーク接続されることにより構
成されている。サーバ12はネットワークを介して各プリンタ13を管理している。図1
では複数台のプリンタ13のうち1台のみその構成を詳細に示しているが、他のプリンタ
13も記録方式(インクジェット記録方式、レーザー記録方式等)が異なるものであって
も基本構成は同様である。
(First embodiment)
Hereinafter, a first embodiment in which the present invention is applied to a printer will be described with reference to FIGS.
FIG. 1 is an overall schematic diagram showing a printer monitoring system. The printer monitoring system 11 is configured by connecting a server 12 and a plurality of printers 13 as electronic devices over a network via a communication cable 14 (network cable) such as a LAN cable. The server 12 manages each printer 13 via the network. FIG.
Shows the configuration of only one of the plurality of printers 13 in detail, but the basic configuration is the same even if other printers 13 have different recording systems (inkjet recording system, laser recording system, etc.). is there.

図1に詳細な構成を示すプリンタ13は、例えばインクジェット記録方式のシリアルプ
リンタである。プリンタ13の本体ケース15内に、ガイド軸16に沿って往復動自在に
設けられたキャリッジ17は、キャリッジモータ18の正逆転駆動力が一対のプーリ19
,20に巻き掛けられた無端帯状のタイミングベルト21を介して伝達されることで、主
走査方向Xに往復移動するようになっている。
The printer 13 whose detailed configuration is shown in FIG. 1 is, for example, an inkjet recording type serial printer. A carriage 17 provided in the main body case 15 of the printer 13 so as to reciprocate along the guide shaft 16 has a forward / reverse driving force of a carriage motor 18 as a pair of pulleys 19.
, 20 is transmitted through an endless belt-like timing belt 21 wound around the belt 20 so as to reciprocate in the main scanning direction X.

プリンタ13の背面側には給紙トレイ22を有する自動給紙装置(Auto Sheet Feed
er)23が設けられており、この自動給紙装置23が駆動されることにより本体ケース1
5内のプラテン24上へ記録紙Pが給紙される。キャリッジ17の上側にはブラック及び
カラー用の各インクカートリッジ25,26が着脱可能に装填されており、その下側(記
録紙Pと対向する箇所)には、各インクカートリッジ25,26から供給されたインクを
噴射可能な複数のノズル(図示せず)を有する記録ヘッド27が設けられている。キャリ
ッジ17の移動中に記録ヘッド27のノズルからインク滴を記録紙Pに対して噴射する印
刷動作と、紙送りモータ28の駆動により搬送ローラ等の搬送手段(図示せず)を介して
記録紙Pを副走査方向Yへ所定の紙送りピッチだけ搬送する紙送り動作とを交互に繰り返
すことで、記録紙Pへの印刷は進められる。
On the back side of the printer 13 is an automatic paper feeder (Auto Sheet Feed) having a paper feed tray 22.
er) 23 is provided, and when the automatic paper feeder 23 is driven, the main body case 1
The recording paper P is fed onto the platen 24 in the 5. Black and color ink cartridges 25 and 26 are detachably loaded on the upper side of the carriage 17, and are supplied from the ink cartridges 25 and 26 on the lower side (location facing the recording paper P). A recording head 27 having a plurality of nozzles (not shown) capable of ejecting ink is provided. A printing operation in which ink droplets are ejected from the nozzles of the recording head 27 onto the recording paper P while the carriage 17 is moving, and the recording paper is driven by a paper feeding motor 28 via a conveying means (not shown) such as a conveying roller. Printing on the recording paper P is advanced by alternately repeating the paper feeding operation for conveying P by a predetermined paper feeding pitch in the sub-scanning direction Y.

また、プリンタ13においてキャリッジ17の移動経路上における図1の右端位置がホ
ームポジションになっており、ホームポジションに配置された状態にあるキャリッジ17
の直下には、記録ヘッド27のノズル目詰まり等を予防・解消するためのクリーニングを
行うメンテナンス装置29が配設されている。
Further, the right end position of FIG. 1 on the movement path of the carriage 17 in the printer 13 is the home position, and the carriage 17 in the state of being arranged at the home position.
A maintenance device 29 that performs cleaning for preventing / resolving nozzle clogging and the like of the recording head 27 is disposed immediately below the head.

また、本実施形態のプリンタ13はコントローラ30を備える。コントローラ30は、
プリンタ13を統括的に制御するとともに、サーバ12との間で通信ケーブル14を介し
て行われる通信処理を司る。コントローラ30は、記録ヘッド27やメンテナンス装置2
9で消費された累積インク消費量、及び自動給紙装置23から給紙されて印刷のために消
費された記録紙Pの消費枚数(以下、「用紙消費枚数」という)、印刷時刻などの情報を
内部で管理している。これらの管理情報はサーバ12により監視されるべき情報であって
、コントローラ30は、サーバ12からの要求(リクエスト)に応じてその要求された管
理情報を通信ケーブル14を介してサーバ12に応答(リプライ)するように構成されて
いる。
Further, the printer 13 of this embodiment includes a controller 30. The controller 30
In addition to controlling the printer 13 in an integrated manner, it controls communication processing performed with the server 12 via the communication cable 14. The controller 30 includes a recording head 27 and a maintenance device 2.
9, information on the cumulative ink consumption consumed in 9, the number of sheets of recording paper P fed from the automatic paper feeder 23 and consumed for printing (hereinafter referred to as “paper consumption number”), and the printing time Are managed internally. These pieces of management information are information to be monitored by the server 12, and the controller 30 responds to the server 12 via the communication cable 14 with the requested management information in response to a request (request) from the server 12. It is configured to reply).

ここで、本実施形態のプリンタ監視システム11では、サーバ12が各プリンタ13の
状態をネットワーク経由で監視するためのプロトコルとしてSNMP(Simple Network Manag
ement Protocol)を採用している。SNMPによるネットワーク管理は、サーバ12に常駐す
るマネージャと、管理対象の電子機器であるプリンタ13に常駐するエージェントとの間
のUDP通信により実現される。本実施形態では、サーバ12に常駐するマネージャからの
リクエストに対して、プリンタ13に常駐するエージェントがリプライを返すことにより
、サーバ12は各プリンタ13の状態を管理する。また、SNMPに対応したネットワーク機
器であるプリンタ13は、管理情報データベースであるMIB(Management Information Ba
se)を備えている。マネージャであるサーバは、MIBに規定されている全ての情報を取得
することが可能である。本実施形態におけるプリンタ監視システム11は、プリンタの使
用に応じて課金する課金システムとして利用されたり、あるいはプリンタの消耗品の補給
や保全等のメンテナンスのために利用されたりする。各プリンタ13のMIBには、サー
バ12が監視すべき情報として、前述の累積インク消費量、用紙消費枚数、印刷時刻など
の各種管理情報が規定(定義)されている。
Here, in the printer monitoring system 11 of the present embodiment, SNMP (Simple Network Manag) is used as a protocol for the server 12 to monitor the status of each printer 13 via the network.
ement Protocol). Network management by SNMP is realized by UDP communication between a manager resident in the server 12 and an agent resident in the printer 13 as an electronic device to be managed. In this embodiment, the server 12 manages the status of each printer 13 by returning a reply from the agent resident in the printer 13 in response to a request from a manager resident in the server 12. In addition, the printer 13 which is a network device that supports SNMP has a management information database MIB (Management Information Ba).
se). A server that is a manager can acquire all information defined in the MIB. The printer monitoring system 11 according to the present embodiment is used as a charging system that charges according to the use of the printer, or is used for maintenance such as replenishment and maintenance of printer consumables. The MIB of each printer 13 defines (defines) various management information such as the cumulative ink consumption, the number of sheets consumed, and the printing time as information to be monitored by the server 12.

図2は、プリンタが各種管理情報を管理するデータ管理装置に係る電気的構成を示す。
図2に示すように、プリンタ13は、プリントエンジン31、プリントエンジンモジュー
ル32、電源オフモジュール33、MIB34A(管理情報データベース)を有する読出
専用モジュール34、第一メモリとしての更新管理用のメモリ35(RAM)、第二メモ
リとしてのミラーメモリ36(RAM)及び不揮発性メモリ37(本例ではEEPROM
)を備えている。各モジュール32〜34は、例えばデータ管理用プログラムを実行する
CPUによりソフトウェアとして構築されている。もちろん、各モジュール32〜34の
うち少なくとも一つが、ASIC(Application Specific Integrated Circuit)(特定
用途向け集積回路)等の集積回路によりハードウェアとして構成されてもよいし、さらに
はソフトウェアとハードウェアの協働により実現されてもよい。なお、各モジュール32
〜34及び各メモリ35〜37は、それぞれコントローラ30の一部を構成している。
FIG. 2 shows an electrical configuration of a data management apparatus in which the printer manages various management information.
As shown in FIG. 2, the printer 13 includes a print engine 31, a print engine module 32, a power-off module 33, a read-only module 34 having a MIB 34A (management information database), and an update management memory 35 (first memory). RAM), mirror memory 36 (RAM) as a second memory, and nonvolatile memory 37 (in this example, EEPROM)
). Each of the modules 32 to 34 is constructed as software by a CPU that executes a data management program, for example. Of course, at least one of the modules 32 to 34 may be configured as hardware by an integrated circuit such as an ASIC (Application Specific Integrated Circuit) (ASIC). It may be realized by working. Each module 32
To 34 and the memories 35 to 37 constitute a part of the controller 30, respectively.

プリントエンジンモジュール32は、キャリッジモータ18、紙送りモータ28、記録
ヘッド27などの印刷を実行するプリントメカニカル機構を構成するプリントエンジン3
1の制御及び状態管理を司る。プリントエンジン31は、プリントメカニカル機構の他、
各種駆動回路、管理情報(累積インク消費量、用紙消費枚数、印刷時刻など)を取得する
ために必要な検出・計測を行う手段であるインクカウンタ41及び用紙カウンタ42、電
源スイッチ43や電源回路、操作パネルなど、プリンタを機能させるためのハードウェア
部分を備える。インクカウンタ41は、各インク色別にインク消費量を計数する。本例で
は、記録ヘッド27のインク吐出回数をインク色別に計数したり、メンテナンス装置29
がクリーニング実施時に記録ヘッド27のノズルから強制吸引したインク消費量を計数し
たりする。用紙カウンタ42は、自動給紙装置23から給紙された給紙枚数を計数するか
、あるいはプリンタ13から排紙された排紙枚数を計数したりして、記録紙P(用紙)の
消費枚数を計数する。なお、電源スイッチ43は、プリンタ13の電源を投入するための
電源オン操作と、プリンタ13の電源を遮断するための電源オフ操作を行うためのスイッ
チである。
The print engine module 32 is a print engine 3 that constitutes a print mechanical mechanism that executes printing such as the carriage motor 18, the paper feed motor 28, and the recording head 27.
1 control and state management. The print engine 31 includes a print mechanical mechanism,
Various drive circuits, ink counter 41 and paper counter 42 which are means for performing detection and measurement necessary for acquiring management information (cumulative ink consumption, number of sheets consumed, printing time, etc.), power switch 43 and power circuit, A hardware part for operating the printer, such as an operation panel, is provided. The ink counter 41 counts ink consumption for each ink color. In this example, the number of ink ejections of the recording head 27 is counted for each ink color, or the maintenance device 29
However, the ink consumption forcibly sucked from the nozzles of the recording head 27 during cleaning is counted. The paper counter 42 counts the number of sheets fed from the automatic paper feeder 23, or counts the number of sheets ejected from the printer 13, so that the number of recording paper P (paper) consumed is counted. Count. The power switch 43 is a switch for performing a power-on operation for turning on the printer 13 and a power-off operation for shutting off the power of the printer 13.

プリントエンジンモジュール32は、プリントエンジン31からの各種動作信号や計数
信号に基づいてデータ更新すべき所定タイミングとなったときに起動されるデータ更新部
45を備える。データ更新部45は、累積インク消費量演算部46、用紙消費枚数演算部
47、印刷時刻管理部48などを備える。
The print engine module 32 includes a data update unit 45 that is activated when a predetermined timing for data update is reached based on various operation signals and count signals from the print engine 31. The data update unit 45 includes a cumulative ink consumption calculation unit 46, a paper consumption number calculation unit 47, a print time management unit 48, and the like.

累積インク消費量演算部46は、印刷中の所定タイミングでインクカウンタ41の計数
値を読み込んで、その計数値を前回の累積インク消費量に加算して、今回の累積インク消
費量を計算する。前回の累積インク消費量は、例えばミラーメモリ36からメモリ35に
読み込むことで取得される。また、所定のタイミングとしては、記録ヘッド27が主走査
方向Xに1回移動して1行印刷する1パスごとのタイミング、所定の複数行印刷するごと
のタイミング、あるいは1頁印刷終了ごとのタイミングなどが挙げられる。また、メンテ
ナンス装置29がクリーニングを終了したタイミングでも、今回の累積インク消費量を計
算する。
The cumulative ink consumption calculation unit 46 reads the count value of the ink counter 41 at a predetermined timing during printing, adds the count value to the previous cumulative ink consumption, and calculates the current cumulative ink consumption. The previous cumulative ink consumption is acquired by reading from the mirror memory 36 into the memory 35, for example. The predetermined timing includes a timing for each pass in which the recording head 27 moves once in the main scanning direction X and prints one line, a timing for printing a plurality of predetermined lines, or a timing for finishing one page printing. Etc. Also, the current cumulative ink consumption is calculated at the timing when the maintenance device 29 finishes cleaning.

用紙消費枚数演算部47は、記録紙Pが給紙された、あるいは記録紙Pが排紙されたタ
イミング(つまり用紙カウンタ42が「1」をインクリメントしたタイミング)で、用紙
カウンタ42の計数値を読み込んで、その読み込んだ今回の用紙消費枚数「1」を、前回
の用紙消費枚数に加算して、今回の用紙消費枚数を計算する。このとき前回の用紙消費枚
数は、例えばミラーメモリ36からメモリ35に読み込むことで取得される。
The paper consumption number calculation unit 47 calculates the count value of the paper counter 42 at the timing when the recording paper P is fed or the recording paper P is discharged (that is, when the paper counter 42 increments “1”). The current sheet consumption sheet number “1” is read and added to the previous sheet consumption sheet number to calculate the current sheet consumption sheet number. At this time, the previous paper consumption number is acquired by reading from the mirror memory 36 into the memory 35, for example.

印刷時刻管理部48は、印刷が行われる度にクロック(図示省略)の計時情報を読み込
んで、そのときの時刻(「年月日時分」)を印刷時刻として取得する。データ更新部45
は、累積インク消費量、用紙消費枚数、印刷時刻の他、監視対象としているその他の各種
管理情報の更新処理も行う。
The print time management unit 48 reads time information of a clock (not shown) every time printing is performed, and acquires the time (“year / month / day / hour / minute”) at that time as the print time. Data update unit 45
In addition to the cumulative ink consumption, the number of sheets consumed, and the printing time, other various management information to be monitored is also updated.

メモリ35は、プリントエンジンモジュール32がデータ更新処理を行う際の作業メモ
リとして用いられるとともに、更新処理で算出又は取得された更新データの記憶エリアと
して用いられる。メモリ35には、書込みフラグFを設定するためのフラグ領域35Aが
設けられている。また、メモリ35には、更新データのデータサイズDsizeを格納するた
めのデータサイズ格納領域35B、書込み先頭アドレスADintを格納するための書込み
先頭アドレス格納領域35C、書込みデータWD(更新データ)を格納するための書込み
データ格納領域35Dが設けられている。
The memory 35 is used as a working memory when the print engine module 32 performs data update processing, and is also used as a storage area for update data calculated or acquired by the update processing. The memory 35 is provided with a flag area 35A for setting the write flag F. The memory 35 also stores a data size storage area 35B for storing the data size Dsize of update data, a write head address storage area 35C for storing the write head address ADint, and write data WD (update data). A write data storage area 35D is provided.

プリントエンジンモジュール32は、データ更新部45がデータを更新すると、その更
新された書込みデータWDのデータサイズDsize、この書込みデータWDのミラーメモリ
36における書込み開始位置である書込み先頭アドレスADint、及び書込みデータWD
を、メモリ35の対応する各格納領域35A〜35Dにそれぞれ書き込む。そして、メモ
リ35にその書込みデータのミラーメモリ36への書込み処理、及びその書込み処理の状
況に応じて書込みフラグFの値を変更するフラグ管理処理を指示する。
When the data updating unit 45 updates the data, the print engine module 32 updates the data size Dsize of the updated write data WD, the write start address ADint that is the write start position in the mirror memory 36 of the write data WD, and the write data WD
Are written in the corresponding storage areas 35A to 35D of the memory 35, respectively. Then, the memory 35 is instructed to write the write data to the mirror memory 36 and to perform flag management processing for changing the value of the write flag F according to the state of the write processing.

メモリ35は、ミラーメモリ36への書込み開始に先立ち書込みフラグFを初期値「0
」から書込中である旨の値「1」に変更する。そして、書込みフラグFに「1」を立てた
後、メモリ35からミラーメモリ36への書込みデータWDの書込み処理を行い、この書
込み処理を終了すると、メモリ35は書込みフラグFを値「1」から初期値「0」に戻す
。このため、例えばミラーメモリ36への書込みデータWDの書込み中に、停電や電源プ
ラグがコンセントから抜けるなどの原因で、書込みデータWDの書込みが完了しないまま
電源が強制遮断された場合は、メモリ35の書込みフラグFは、書込み中である旨の値「
1」のままとなる。
The memory 35 sets the write flag F to an initial value “0” prior to the start of writing to the mirror memory 36.
To “1” indicating that writing is in progress. Then, after setting the write flag F to “1”, the write process of the write data WD from the memory 35 to the mirror memory 36 is performed. When this write process is completed, the memory 35 sets the write flag F from the value “1”. Return to the initial value “0”. For this reason, for example, when the power supply is forcibly shut down without completing the writing of the write data WD due to a power failure or disconnection of the power plug during writing of the write data WD to the mirror memory 36, the memory 35 The write flag F of the “
1 "remains.

ミラーメモリ36は、プリンタ13の電源オン中に更新データを書き込むためのメモリ
である。不揮発性メモリ37は、一般にRAMに比べ書込み回数に制限があるため、電源
オン中はRAMからなるミラーメモリ36にデータを書込み、電源スイッチ43がオフ操
作された電源遮断時にミラーメモリ36のデータを不揮発性メモリ37に書き替えるよう
にしている。不揮発性メモリ37は、プリンタ13の電源オフ操作時にミラーメモリ36
から書き替えられたデータをプリンタ13の電源オフ中も保持し、プリンタ13が次回電
源オンされたときに不揮発性メモリ37からミラーメモリ36へデータを読み込むことで
、プリンタ電源オフ前のデータを取得できるようになっている。
The mirror memory 36 is a memory for writing update data while the printer 13 is powered on. Since the nonvolatile memory 37 generally has a limited number of times of writing compared to the RAM, the data is written to the mirror memory 36 composed of the RAM while the power is on, and the data in the mirror memory 36 is saved when the power switch 43 is turned off and the power is shut off. The data is rewritten to the nonvolatile memory 37. The nonvolatile memory 37 is a mirror memory 36 when the printer 13 is turned off.
The data rewritten from the above is retained even when the printer 13 is turned off, and the data before the printer is turned off is obtained by reading the data from the nonvolatile memory 37 to the mirror memory 36 when the printer 13 is turned on next time. It can be done.

電源オフモジュール33は、電源スイッチ43からの操作信号及び電源回路50の電力
供給状態を監視しており、電源スイッチ43からの電源オフ操作信号入力時、あるいは停
電や電源プラグのコンセントからの抜けに起因する電源強制遮断時の強制遮断信号入力時
に起動される。但し、電源オフモジュール33は、電源オフ操作信号入力時と、強制遮断
信号入力時とで他のモジュール33,34に対する起動優先順位が異なる。すなわち、電
源オフモジュール33は、強制遮断信号入力時においては、他の各種モジュール32,3
4に比べ起動優先順位が高く、他のモジュール32,34が処理実行中であってもその処
理を中断させて起動される。一方、電源オフ操作信号入力時においては、他の各種モジュ
ール32,34に比べ起動優先順位が低く、他のモジュール32,34が処理実行中であ
ればその処理の終了を待って電源オフモジュール33は起動される。
The power-off module 33 monitors the operation signal from the power switch 43 and the power supply state of the power circuit 50. When the power-off operation signal is input from the power switch 43, or when a power failure occurs or the power plug is disconnected from the outlet. It is activated when a forced shutdown signal is input at the time of the forced power shutdown. However, the power-off module 33 has different activation priorities for the other modules 33 and 34 when the power-off operation signal is input and when the forced cutoff signal is input. That is, the power-off module 33 receives the various other modules 32 and 3 when the forced cutoff signal is input.
The activation priority is higher than that of 4, and even if the other modules 32 and 34 are executing the process, the process is interrupted and activated. On the other hand, when the power-off operation signal is input, the activation priority is lower than that of the other various modules 32 and 34. If the other modules 32 and 34 are executing processing, the power-off module 33 waits for the end of the processing. Is activated.

すなわち、電源スイッチ43がオフ操作された際の電源オフ操作信号入力時は、そのと
き書込みデータWDの書込み中であればその書込みデータのミラーメモリ36への書込み
を終了するまで待った後、ミラーメモリ36から不揮発性メモリ37へのデータ書き替え
処理を実行し、このデータ書き替え処理終了後に電源を遮断する電源遮断処理を行う。一
方、停電や電源プラグのコンセントからの抜け(以下、「停電等」という)に起因する強
制遮断信号入力時には、電源オフモジュール33は、電源強制遮断時用の割込み処理を実
行する。そして、この電源強制遮断用の割込み処理では、まずメモリ35から書込みフラ
グFを読み込んでそのフラグ値を確認し、そのフラグ値が書込み中の旨の値「1」であれ
ばメモリ35の書込みデータWDをミラーメモリ36に書き込むデータ書込み処理を行う
。そして、データ書込み処理終了後に更にミラーメモリ36から不揮発性メモリ37への
書込みデータの書き替え処理を行い、この書き替え処理終了後に電源遮断処理を行う。こ
こで、書込みフラグFを読み込んでそのフラグ値に基づいて書込み中であるか否かを判断
する判断処理は、電源オフモジュール33に備えられた判断手段としての判断部33Aが
行う。なお、この電源強制遮断時においてはプリンタ13の電力保持時間が例えば1秒以
下の所定時間に限られているが、本例で扱う書込みデータWDのうち比較的大きなデータ
サイズ(例えば5〜8バイト程度)である例えば累積インク消費量、用紙消費枚数、印刷
時刻などの書込みデータでも、この電力保持時間内にミラーメモリ36への書き替え及び
不揮発性メモリ37への書き替えは十分可能となっている。
That is, when the power-off operation signal is inputted when the power switch 43 is turned off, if the write data WD is being written at that time, the write data WD is waited until the write to the mirror memory 36 is finished, and then the mirror memory A data rewriting process from 36 to the nonvolatile memory 37 is executed, and after the data rewriting process is completed, a power shut-off process is performed to shut off the power. On the other hand, when a forced cutoff signal is input due to a power failure or disconnection of the power plug from the outlet (hereinafter referred to as “power failure or the like”), the power-off module 33 executes an interrupt process for forced power cutoff. In this interrupt processing for forced power shut-off, first the write flag F is read from the memory 35 and the flag value is confirmed. If the flag value is “1” indicating that writing is in progress, the write data in the memory 35 is read. Data writing processing for writing the WD into the mirror memory 36 is performed. Then, after the data write process is completed, a rewrite process of the write data from the mirror memory 36 to the non-volatile memory 37 is further performed, and after the rewrite process is completed, a power-off process is performed. Here, the determination process of reading the write flag F and determining whether writing is in progress based on the flag value is performed by the determination unit 33A as a determination unit provided in the power-off module 33. At the time of this forced power shutdown, the power holding time of the printer 13 is limited to a predetermined time of, for example, 1 second or less, but a relatively large data size (for example, 5 to 8 bytes) of the write data WD handled in this example. For example, write data such as accumulated ink consumption, number of sheets consumed, and printing time can be sufficiently rewritten to the mirror memory 36 and rewritten to the nonvolatile memory 37 within this power holding time. Yes.

読出専用モジュール34は、サーバ12に常駐するマネージャからリクエストがあると
、要求された管理情報をサーバ12のマネージャにリプライするためにプリンタ13に常
駐するエージェントに相当するもので、前述のMIB34Aを備えている。このMIB3
4Aは、データ格納部としてのリプライ用メモリ34Bを有し、リクエストを受け付ける
度に、ミラーメモリ36からリクエストされたデータの最新の更新情報を読み込む。そし
てその読み込んだ最新の更新データをサーバ12内のマネージャにリプライするとともに
その更新データをリプライ用メモリ34Bに格納するように構成されている。
The read-only module 34 corresponds to an agent resident in the printer 13 in order to reply the requested management information to the manager of the server 12 when there is a request from the manager resident in the server 12, and includes the above-described MIB 34A. ing. This MIB3
4A has a reply memory 34B as a data storage unit, and reads the latest update information of the requested data from the mirror memory 36 every time a request is received. The latest update data read is replied to the manager in the server 12, and the update data is stored in the reply memory 34B.

次に、図3〜図6に示すフローチャートに従ってデータ管理処理を説明する。図3は、
データ更新処理ルーチン、図4はミラーメモリ更新ルーチン、図5は電源OFF処理ルー
チン、図6はデータ読出し処理ルーチンのそれぞれフローチャートを示す。まずデータ更
新処理ルーチンを図3に基づいて説明する。このデータ更新処理ルーチンは、プリントエ
ンジンモジュール32がデータを更新する度に実行される。
Next, data management processing will be described with reference to the flowcharts shown in FIGS. FIG.
4 shows a flowchart of the data update process routine, FIG. 4 shows a mirror memory update routine, FIG. 5 shows a power-off process routine, and FIG. 6 shows a data read process routine. First, the data update processing routine will be described with reference to FIG. This data update processing routine is executed every time the print engine module 32 updates data.

ステップS10では、メモリ35のデータサイズ格納領域35Bに今回更新するデータ
のサイズ(データサイズDsize)を格納する。
ステップS20では、書込み先頭アドレス格納領域35Cに今回更新するデータの書込
み先頭アドレスADintを格納する。
In step S10, the data size (data size Dsize) to be updated this time is stored in the data size storage area 35B of the memory 35.
In step S20, the write start address ADint of the data to be updated this time is stored in the write start address storage area 35C.

ステップS30では、書込みデータ格納領域35Dに今回更新する書込みデータWD(
更新データ)を格納する。
ステップS40では、書込みフラグを「1」にする。
In step S30, write data WD (
Update data).
In step S40, the write flag is set to “1”.

ステップS50では、ミラーメモリ更新処理を実行する。すなわちメモリ35からミラ
ーメモリ36へ更新データを書き込む処理が行われる。
ステップS60では、書込みフラグを「0」に戻す。
In step S50, a mirror memory update process is executed. That is, a process for writing update data from the memory 35 to the mirror memory 36 is performed.
In step S60, the write flag is returned to “0”.

次にミラーメモリ更新ルーチンを図4に基づいて説明する。このルーチンは図3におけ
るステップS50の処理に相当する。
ステップS110では、カウント値Cnt=0とする。ここで、カウント値Cntとは
、データの書込み先アドレスを更新するために「1」ずつインクリメントされる変数であ
り、書込み先アドレスADwriteは、式 ADwrite=ADint+Cnt で指定される。
ここで、ADintは書込み先頭アドレスである。
Next, the mirror memory update routine will be described with reference to FIG. This routine corresponds to the process of step S50 in FIG.
In step S110, the count value Cnt = 0. Here, the count value Cnt is a variable that is incremented by “1” in order to update the data write destination address, and the write destination address ADwrite is specified by the expression ADwrite = ADint + Cnt.
Here, ADint is a write start address.

ステップS120では、Cnt<(Dsize(データサイズ)/N)であるか否かを判断
する。本例では書込み先アドレスを更新しつつNバイトずつ書込みを進める方式を採用し
ており、Cnt<(Dsize/N)が成立しているうちは書込みデータWDの書込みが完了
していないことを意味する。Cnt<(Dsize/N)が成立していればステップS130
に進む。なお、書込み単位「Nバイト」は、「1バイト」でもよいが、「2バイト」、「
3バイト」、あるいは「4バイト」以上でもよい。
In step S120, it is determined whether Cnt <(Dsize (data size) / N). In this example, a method is adopted in which writing is performed in increments of N bytes while updating the write destination address, meaning that writing of the write data WD is not completed while Cnt <(Dsize / N) is established. To do. If Cnt <(Dsize / N) holds, step S130
Proceed to The writing unit “N bytes” may be “1 byte”, but “2 bytes”, “
It may be “3 bytes” or “4 bytes” or more.

ステップS130では、ミラーメモリ36のアドレス「書込み先頭アドレスADint+
Cnt」に、メモリ35における書込みデータ格納領域35Dの「先頭アドレス+Cnt
」に格納されている値(データ)をコピーする。ここでは、書込みデータ格納領域35D
の先頭アドレスから「Nバイト」分のデータがミラーメモリ36にコピーされる。
In step S130, the address “write head address ADint +
In “Cnt”, “start address + Cnt of the write data storage area 35D in the memory 35”
The value (data) stored in "is copied. Here, the write data storage area 35D
The data for “N bytes” from the top address of is copied to the mirror memory 36.

ステップS140では、Cnt=Cnt+1とし、ステップS120に戻る。
以後、S120〜S140の処理が、S120でCnt<Dsize/Nが成立するまで繰
り返される。この結果、メモリ35の書込みデータWDが、ミラーメモリ36の書込み先
頭アドレスADintから順にNバイトずつコピーされる。
In step S140, Cnt = Cnt + 1 is set, and the process returns to step S120.
Thereafter, the processing of S120 to S140 is repeated until Cnt <Dsize / N is established in S120. As a result, the write data WD in the memory 35 is copied N bytes at a time from the write head address ADint in the mirror memory 36.

次に電源OFF処理ルーチンを図5に基づいて説明する。この電源OFF処理ルーチン
は、電源強制遮断時に電源オフモジュール33が割込み処理で実行する。
ステップS210では、書込みフラグが「1」であるか否かを判断する。書込みフラグ
が「1」であればステップS220に進み、「1」でなければ(つまり「0」であれば)
ステップS230に進む。
Next, the power OFF processing routine will be described with reference to FIG. This power-off process routine is executed by the power-off module 33 as an interrupt process when the power is forcibly cut off.
In step S210, it is determined whether or not the write flag is “1”. If the write flag is “1”, the process proceeds to step S220, and if it is not “1” (that is, if it is “0”).
Proceed to step S230.

ステップS220では、ミラーメモリ更新処理を行う。このミラーメモリ更新処理は図
4に示した処理と同様である。
ステップS230では、ミラーメモリ36から不揮発性メモリ37にデータを格納する
In step S220, mirror memory update processing is performed. This mirror memory update process is the same as the process shown in FIG.
In step S230, data is stored from the mirror memory 36 into the nonvolatile memory 37.

こうして電源強制遮断時に更新データの書込み処理が中断されても、電源強制遮断時に
起動された電源オフモジュール33が実行する割込み処理で書込みフラグFの値から書込
み中であったことが分かればその割込み処理で更新データの書込み処理を再実行する。こ
のため、停電等の電源強制遮断時にも更新データの書込み処理を完了した後に、ミラーメ
モリ36から不揮発性メモリ37へのデータのコピーを行うことができる。よって、電源
オフ操作による電源通常遮断時だけでなく停電等の電源強制遮断時にも、不揮発性メモリ
37に最新の更新データが書き込まれる。
Even if the update data writing process is interrupted when the power supply is forcibly cut off, the interruption process executed by the power-off module 33 that is activated when the power supply is forcibly interrupted indicates that the write flag F is being written and the interrupt is executed. Re-execute the update data writing process. For this reason, data can be copied from the mirror memory 36 to the non-volatile memory 37 after the update data writing process is completed even when the power supply is forcibly cut off, such as a power failure. Therefore, the latest update data is written in the non-volatile memory 37 not only when the power supply is normally shut down by the power-off operation but also when the power supply is forcibly shut down such as a power failure.

次に、読出専用モジュール34が実行するデータ読出し処理ルーチンを図6に基づいて
説明する。読出専用モジュール34はサーバ12のマネージャからのリクエストを受け付
けると、このデータ読出し処理ルーチンを実行する。
Next, a data read processing routine executed by the read only module 34 will be described with reference to FIG. When the read-only module 34 receives a request from the manager of the server 12, the read-only module 34 executes this data read processing routine.

読出専用モジュール34はリクエストを受け付けると、まず書込みフラグFが「1」で
あるか否かを判断し(ステップS310)、「1」でなければ(つまり「0」であれば)
ミラーメモリ36からデータを読み出して(ステップS320)、リプライ用メモリ34
Bに格納されている前回読み出した値(データ)を更新する(ステップS330)。そし
て、リプライ用メモリ34Bの更新したデータをリプライする。
When the read-only module 34 accepts the request, it first determines whether or not the write flag F is “1” (step S310). If it is not “1” (that is, “0”).
Data is read from the mirror memory 36 (step S320), and the reply memory 34 is read.
The previously read value (data) stored in B is updated (step S330). Then, the updated data in the reply memory 34B is replied.

一方、リクエストを受け付けたときに書込みフラグが「1」であるときには(S310
で肯定判定)、ミラーメモリ36はデータ更新中にあってミラーメモリ36からのデータ
の読み出しができないので、リプライ用メモリ34Bに格納された前回の値(データ)を
リプライする(S340)。
On the other hand, if the write flag is “1” when the request is received (S310).
Since the mirror memory 36 is updating data and cannot read data from the mirror memory 36, the previous value (data) stored in the reply memory 34B is replied (S340).

以上、詳述したように本実施形態によれば、次の効果が得られる。
(1)第一メモリとしてのメモリ35から第二メモリとしてミラーメモリ36へのデー
タ(更新データ)の書込み中であるか否かを判定値としての書込みフラグFで管理した。
そして、停電等の電源強制遮断時に電源オフモジュール33が起動されて更新データの書
込処理が中断されても、電源オフモジュール33による割込処理において書込みフラグF
を調べ、それが書込み中を示す値であればメモリ35からミラーメモリ36への更新デー
タの書き込みを実行する。そして、書き込み完了後、さらにミラーメモリ36から不揮発
性メモリ37へのデータ書き込み完了後に電源遮断処理を行って電源を遮断する。よって
、停電等の電源強制遮断時に更新データの書込み処理が中断されても、その書込み中のデ
ータの書込みを完了させてから電源を遮断させることができる。従って、停電等の電源強
制遮断時にも、次回電源オン時に不揮発性メモリ37から読み出した更新データを保証す
ることができる。
As described above in detail, according to the present embodiment, the following effects can be obtained.
(1) Whether or not data (update data) is being written from the memory 35 as the first memory to the mirror memory 36 as the second memory is managed by the write flag F as the determination value.
Even when the power-off module 33 is activated at the time of forced power-off such as a power failure and the update data writing process is interrupted, the write flag F in the interrupt process by the power-off module 33 is interrupted.
If it is a value indicating that writing is in progress, the update data is written from the memory 35 to the mirror memory 36. Then, after the writing is completed, and further after the data writing from the mirror memory 36 to the nonvolatile memory 37 is completed, the power is shut down to cut off the power. Therefore, even if the update data writing process is interrupted when the power supply is forcibly cut off, such as a power failure, the power supply can be shut down after the writing of the data being written is completed. Therefore, even when the power is forcibly cut off such as a power failure, the update data read from the nonvolatile memory 37 at the next power-on can be guaranteed.

(2)読出専用モジュール34がリクエストを受け付けたときには、メモリ35の書込
みフラグFを調べ、それが書込み中を示す値「1」でなければ(つまり「0」であれば)
、ミラーメモリ36から更新データを読み出してこれをリプライし、一方、書込みフラグ
Fが書込み中を示す値「1」であれば、リプライ用メモリ34Bに格納された前回のデー
タをリプライする。
(2) When the read-only module 34 accepts the request, the write flag F of the memory 35 is checked, and if it is not “1” indicating that writing is in progress (that is, “0”).
The update data is read out from the mirror memory 36 and replied. On the other hand, if the write flag F is “1” indicating that writing is in progress, the previous data stored in the reply memory 34B is replied.

(3)書込みフラグの格納領域をメモリ35に備えたので、書込みフラグFの格納領域
を確保するためにメモリやレジスタ等を別途用意する必要がない。
(4)電源強制遮断時に保証すべき更新データを、累積インク消費量や用紙消費枚数、
印刷時刻のデータとしたので、例えばプリンタ監視システム11を課金システムやメンテ
ナンスシステムに適用した場合は、信頼性の高い課金システムやメンテナンスシステムを
構築できる。
(3) Since the storage area for the write flag is provided in the memory 35, it is not necessary to separately prepare a memory, a register or the like in order to secure the storage area for the write flag F.
(4) Update data that should be guaranteed when the power is forcibly shut down, including cumulative ink consumption, number of sheets consumed,
Since the printing time data is used, for example, when the printer monitoring system 11 is applied to a charging system or a maintenance system, a highly reliable charging system or maintenance system can be constructed.

(第二の実施形態)
次に第二の実施形態を説明する。本実施形態では、書込みフラグに替えて、2ビット以
上の管理データで書込み状況を管理する構成を採用している。図2に示すメモリ35には
、書込みフラグFに替えて、Mビット(但しM≧2)の書込み管理データを格納可能な書
込み管理部(書込み管理領域)が設けられている。もちろん、Mビットの管理データをメ
モリとは別体のレジスタで管理する構成も採用できる。
(Second embodiment)
Next, a second embodiment will be described. In this embodiment, a configuration is adopted in which the write status is managed by management data of 2 bits or more instead of the write flag. The memory 35 shown in FIG. 2 is provided with a write management unit (write management area) capable of storing M-bit (where M ≧ 2) write management data instead of the write flag F. Of course, a configuration in which M-bit management data is managed by a register separate from the memory can also be employed.

書込み管理部は、メモリ35からミラーメモリ36へNビットずつコピーされるデータ
の書込み進捗状況をMビットの管理データで管理している。例えばMビットが4ビットで
あれば、その値が「0000」のときは書込み中ではなく、「0000」以外の値のとき
に書込み中となる。そして、ミラーメモリ更新処理においてデータがNビット分コピーさ
れる度に管理データは「1」ずつインクリメントされる。そして、管理データが書込みデ
ータの書込み完了の旨の値に達してミラーメモリ更新処理が完了すると、管理データは「
0000」にリセットされる。このため、停電等の電源強制遮断が原因でミラーメモリ更
新処理が中断された場合、電源オフモジュール33はメモリ35から読み込んだ管理デー
タの値から書込みデータのどのアドレスまでミラーメモリ36への更新(書込み)が完了
したかを把握できる。管理データが「0000」以外の値であれば、書込み中であること
を意味し、そのときの値が、書込みが完了されたアドレスに応じた値になっている。例え
ば管理データが「0011」であれば、書込み先頭アドレスADint+「0011」のア
ドレスまで書込みが完了していることを意味する。よって、電源オフモジュール33は、
割込み処理において、管理データの値に対応する書込み中断位置の続き(例えばアドレス
ADint+「0100」)から書込みデータの更新処理(書込み処理)を行えばよい。こ
の結果、電源強制遮断時の割込み処理で更新すべきデータ量が少なく済み、例えば割込処
理における更新処理時間の不足に起因するデータ更新ミスの発生を一層減らし、更新デー
タの書込み完了をより確実なものとすることができる。なお、本実施形態では、書込み管
理部に管理される管理データが、判定値であるとともに1ビットを超える管理値も兼ねる
。ここで1ビットを超える管理値とは、2ビットの格納領域を使用して、管理値「00」
「01」「10」の3種類のみで管理する構成を含み、管理値が取りうる値が2の1乗個
(2個)を超えていれば足り必ずしも2の2乗個(4個)以上であることに限定されない
意味である。
The write management unit manages the progress of writing of data copied N bits at a time from the memory 35 to the mirror memory 36 using M-bit management data. For example, if the M bit is 4 bits, writing is not being performed when the value is “0000”, and writing is being performed when the value is other than “0000”. The management data is incremented by “1” every time N bits of data are copied in the mirror memory update process. When the management data reaches the value indicating that writing of the write data is completed and the mirror memory update process is completed, the management data is “
It is reset to “0000”. For this reason, when the mirror memory update process is interrupted due to a power shutdown such as a power failure, the power-off module 33 updates the mirror memory 36 from the management data value read from the memory 35 to any address of the write data ( You can see if (write) is completed. If the management data is a value other than “0000”, this means that writing is in progress, and the value at that time is a value corresponding to the address at which writing has been completed. For example, if the management data is “0011”, it means that the writing has been completed up to the address of the write head address ADint + “0011”. Therefore, the power-off module 33 is
In the interrupt process, the write data update process (write process) may be performed from the continuation of the write interruption position corresponding to the management data value (for example, address ADint + “0100”). As a result, the amount of data to be updated in the interrupt processing at the time of forced power shutdown is reduced. For example, the occurrence of data update mistakes due to insufficient update processing time in interrupt processing is further reduced, and update data writing is more reliably completed. Can be. In the present embodiment, the management data managed by the write management unit is a determination value and also serves as a management value exceeding 1 bit. Here, the management value exceeding 1 bit means a management value “00” using a 2-bit storage area.
Including the configuration managed by only three types of “01” and “10”, the management value can be more than the first power of 2 (2), and it is sufficient that it is 2 2 (4) or more The meaning is not limited to.

なお、実施の形態は、上記に限定されるものではなく、以下のように変更してもよい。
(変形例1)データは消耗品のデータや印刷時刻データに限定されない。例えば記録ヘ
ッドやモータ等の駆動手段の発熱量を計算してその温度を演算し、その演算した温度が所
定の閾値を超えた場合に駆動手段の駆動を制限(例えば駆動速度低減や間欠駆動、駆動停
止などを実施)する発熱制限制御を行う構成における、記録ヘッド温度やモータ温度のデ
ータであってもよい。この場合、これらのデータは電源オフ操作時に不揮発性メモリに格
納され、その後電源がオンされた際に前回の電源オフ時から今回の電源オン時までの経過
時間を考慮して当該電源オン時の温度を計算し、その計算した温度に応じて駆動手段の駆
動制御を行う。この構成の場合、停電等の電源強制遮断時でも不揮発性メモリに更新温度
データが格納されるので、次回電源がオンされた際に、適切な制御を行うことができる。
In addition, embodiment is not limited above, You may change as follows.
(Modification 1) The data is not limited to consumable data or printing time data. For example, the calorific value of a driving unit such as a recording head or a motor is calculated and the temperature is calculated. When the calculated temperature exceeds a predetermined threshold, driving of the driving unit is limited (for example, driving speed reduction or intermittent driving, The print head temperature and motor temperature data may be used in the configuration in which the heat generation restriction control is performed (for example, the drive is stopped). In this case, these data are stored in the non-volatile memory when the power is turned off, and when the power is turned on, the elapsed time from the previous power-off to the current power-on is taken into account when the power is turned on. The temperature is calculated, and drive control of the driving means is performed according to the calculated temperature. In the case of this configuration, the update temperature data is stored in the nonvolatile memory even when the power is forcibly cut off, such as a power failure, so that appropriate control can be performed the next time the power is turned on.

(変形例2)読出専用モジュール34によるデータ読み出し処理は、前記実施形態に限
定されない。例えば、書込みフラグFが書込み中を示す値「1」であるときは、その値が
「0」になるまで待った後(但し、待ち時間は所定上限時間内とする)に、ミラーメモリ
36から更新データを読み出し、その読み出した更新データをリプライする構成も採用で
きる。
(Modification 2) Data read processing by the read-only module 34 is not limited to the above embodiment. For example, when the write flag F is a value “1” indicating that writing is in progress, the value is updated from the mirror memory 36 after waiting until the value becomes “0” (however, the waiting time is within a predetermined upper limit time). A configuration in which data is read and the read update data is replied can also be employed.

(変形例3)書込みフラグFの格納領域をミラーメモリ36に設けてもよい。この構成
であっても、電源オフモジュール33がミラーメモリ36の書込みフラグFの値を読み込
むことで、電源強制遮断時に書込み中であったか否かを判断でき、書込み中であった場合
には、割込処理において更新データの書込み処理を実行することができる。また、電源オ
フモジュール33がアクセスできる限りにおいて、その他のメモリやレジスタに書込みフ
ラグFを格納する構成も採用できる。
(Modification 3) A storage area for the write flag F may be provided in the mirror memory 36. Even in this configuration, the power-off module 33 reads the value of the write flag F in the mirror memory 36, so that it can be determined whether or not the data is being written when the power is forcibly cut off. The update data writing process can be executed in the loading process. In addition, as long as the power-off module 33 can be accessed, a configuration in which the write flag F is stored in another memory or register can be employed.

(変形例4)判断部33Aは電源オフモジュール33以外の他のモジュール又は判断部
として備えられてもよい。例えば電源強制遮断時に判定値又は管理値に基づいて書込中で
あるか否かを判断する判断モジュールを電源オフモジュール33とは別に用意し、かつ電
源強制遮断時におけるこの判断モジュールの起動優先順位を電源オフモジュール33のそ
れより高くする。電源強制遮断時にはまず判断モジュールが優先的に起動され、判定値又
は管理値に基づいて書込み中であるか否かを判断し、書込み中でなかった場合は、この判
断処理完了後に電源オフモジュール33が起動されて電源遮断処理を行う。一方、書込み
中と判断された場合は、その後起動される電源オフモジュール33にその旨が通知され、
電源オフモジュール33が割込処理において書込みデータの書込み処理を実行する。
(Modification 4) The determination unit 33A may be provided as a module other than the power-off module 33 or a determination unit. For example, a determination module that determines whether or not writing is being performed based on a determination value or a management value when the power is forcibly cut off is prepared separately from the power-off module 33, and the activation priority of the determination module when the power is forcibly cut off Is higher than that of the power-off module 33. When the power supply is forcibly shut down, first, the determination module is preferentially activated, and it is determined whether or not the writing is in progress based on the determination value or the management value. Is activated to perform power shutdown processing. On the other hand, when it is determined that writing is in progress, the power-off module 33 that is activated thereafter is notified of this,
The power-off module 33 executes write data write processing in the interrupt processing.

(変形例5)消耗品のデータは、ある時期からの累積インク消費量や用紙消費枚数に限
らず、インク残量や用紙残量でもよい。例えばインクカートリッジ毎のインク消費量又は
インク残量でもよい。また、用紙カセットに用紙をセットした時又はセットした用紙枚数
をセンサで検出し、その用紙セット時からの用紙カセットにおける用紙消費枚数又は用紙
残量でもよい。
(Variation 5) The consumable data is not limited to the cumulative ink consumption and the number of sheets consumed from a certain period, but may be the remaining amount of ink and the remaining amount of paper. For example, the ink consumption amount or the remaining ink amount for each ink cartridge may be used. Alternatively, the number of sheets consumed or the remaining amount of paper in the paper cassette from the time of setting the paper may be detected by detecting the number of sheets set in the paper cassette or the number of sheets set.

(変形例6)サーバ12と電子機器との間で構築されるネットワークは、LAN(Loca
l Area Network)に限定されない。VAN(Value Added Network)やWAN(Wide Area N
etwork)でもよい。さらにLAN、VAN、WANのうちから選択される複数を結合した
ネットワークでもよい。
(Modification 6) The network constructed between the server 12 and the electronic device is a LAN (Loca
l It is not limited to Area Network. VAN (Value Added Network) and WAN (Wide Area N)
etwork). Further, it may be a network in which a plurality selected from LAN, VAN, and WAN are combined.

(変形例7)プリンタ監視システム11における電子機器に適用したが、ネットワーク
接続されていない電子機器に適用することもできる。この場合も、停電等の電源強制遮断
後における電源オン時に読み出される管理情報(更新データ)を保証することができる。
(Modification 7) Although applied to the electronic device in the printer monitoring system 11, it can also be applied to an electronic device not connected to the network. Also in this case, it is possible to guarantee the management information (update data) that is read when the power is turned on after the forced power interruption such as a power failure.

(変形例8)電子機器はプリンタに限定されない。電源オン中は電源遮断によりデータ
が消滅しうる揮発性メモリにデータを書込み、電源遮断時にデータを不揮発性メモリに書
き込むとともに次回電源オン時にその不揮発性メモリからデータを読み出して利用する構
成の電子機器に広く適用できる。例えば、スキャナ、プロジェクタ、プロジェクションテ
レビ等の電子機器に適用してもよい。
(Modification 8) The electronic device is not limited to a printer. An electronic device configured to write data to a volatile memory that can lose data when the power is turned off, write data to the nonvolatile memory when the power is turned off, and read and use the data from the nonvolatile memory when the power is turned on next time Widely applicable to. For example, you may apply to electronic devices, such as a scanner, a projector, and a projection television.

(変形例9)前記実施形態では、電子機器の一例としてインクジェット式プリンタに具
体化して累積インク消費量を更新データとして扱ったが、例えばプリンタ以外のインクジ
ェット方式の記録ヘッドを備えた流体噴射装置にも適用できる。例えばインク以外の他の
流体(液体や、機能材料の粒子が液体に分散又は混合されてなる液状体、ゲルのような流
状体、流体として流して噴射できる固体を含む)を噴射する流体噴射装置に具体化するこ
ともできる。例えば、液晶ディスプレイ、EL(エレクトロルミネッセンス)ディスプレ
イ及び面発光ディスプレイの製造などに用いられる電極材や色材(画素材料)などの材料
を分散または溶解のかたちで含む液状体を噴射する液状体噴射装置、バイオチップ製造に
用いられる生体有機物を噴射する液体噴射装置、精密ピペットとして用いられ試料となる
液体を噴射する液体噴射装置であってもよい。さらに、時計やカメラ等の精密機械にピン
ポイントで潤滑油を噴射する液体噴射装置、光通信素子等に用いられる微小半球レンズ(
光学レンズ)などを形成するために紫外線硬化樹脂等の透明樹脂液を基板上に噴射する液
体噴射装置、基板などをエッチングするために酸又はアルカリ等のエッチング液を噴射す
る液体噴射装置、ゲル(例えば物理ゲル)などの流状体を噴射する流状体噴射装置、トナ
ーなどの粉体(粉粒体)を例とする固体を噴射する粉粒体噴射装置(例えばトナージェッ
ト式記録装置)であってもよい。そして、これらのうちいずれか一種の流体噴射装置に本
発明を適用し、データの一つとして例えば累積流体消費量又は流体残量を扱うこともでき
る。また、基板等の記録媒体をスタッカに積層状態に収容し自動給送装置により給送する
構成の場合、記録媒体消費枚数や記録媒体残量を更新データとして扱うこともできる。な
お、本明細書において「流体」とは、気体のみからなる流体を含まない概念であり、流体
には、例えば液体(無機溶剤、有機溶剤、溶液、液状樹脂、液状金属(金属融液)等を含
む)、液状体、流状体、粉粒体(粒体、粉体を含む)などが含まれる。
(Modification 9) In the above-described embodiment, the accumulated ink consumption is handled as update data by embodying an ink jet printer as an example of an electronic device. However, for example, a fluid ejecting apparatus including an ink jet recording head other than a printer is used. Is also applicable. For example, fluid ejection that ejects fluids other than ink (including liquids, liquids in which particles of functional materials are dispersed or mixed in liquids, fluids such as gels, and solids that can be ejected as fluids) It can also be embodied in a device. For example, a liquid material ejecting apparatus that ejects a liquid material in the form of dispersed or dissolved materials such as electrode materials and color materials (pixel materials) used for manufacturing liquid crystal displays, EL (electroluminescence) displays, and surface-emitting displays. Further, a liquid ejecting apparatus that ejects a bio-organic matter used for biochip manufacturing, or a liquid ejecting apparatus that ejects a liquid that is used as a precision pipette and serves as a sample may be used. In addition, micro hemispherical lenses (used in liquid ejectors, optical communication elements, etc., which inject lubricating oil pinpoint to precision machines such as watches and cameras.
A liquid injection device that injects a transparent resin liquid such as an ultraviolet curable resin onto a substrate to form an optical lens), a liquid injection device that injects an etching solution such as acid or alkali to etch the substrate, etc. For example, a fluid ejecting device that ejects a fluid (e.g., physical gel) or a powder ejecting device (e.g., a toner jet recording device) that ejects a solid such as powder (powder) such as toner. There may be. Then, the present invention can be applied to any one of these types of fluid ejecting apparatuses, and for example, the accumulated fluid consumption or the remaining amount of fluid can be handled as one of the data. Further, in the case of a configuration in which recording media such as substrates are accommodated in a stack in a stacker and fed by an automatic feeding device, the number of recording media consumed and the remaining amount of recording media can be handled as update data. In the present specification, the term “fluid” is a concept that does not include a fluid consisting only of gas. Examples of the fluid include liquid (inorganic solvent, organic solvent, solution, liquid resin, liquid metal (metal melt), etc. ), Liquids, fluids, powders (including granules and powders), and the like.

以下、前記実施形態および各変形例から把握される技術的思想を記載する。
(1)請求項1乃至7のいずれか一項において、前記書込中管理手段は、前記第一メモ
リの一記憶領域に前記判定値を記憶することにより構成されていることを特徴とする電子
機器におけるデータ管理装置。
Hereinafter, the technical idea grasped | ascertained from the said embodiment and each modification is described.
(1) The electronic device according to any one of claims 1 to 7, wherein the in-writing management unit is configured to store the determination value in a storage area of the first memory. Data management device in equipment.

(2)サーバ(12)と、電子機器(13)と、前記サーバと前記電子機器とをネット
ワークで接続するネットワーク手段(14)とを備えたシステム(11)であって、前記
電子機器は、請求項1乃至7のいずれか一項に記載のデータ管理装置を備えたことを特徴
とするシステム。
(2) A system (11) comprising a server (12), an electronic device (13), and network means (14) for connecting the server and the electronic device via a network, the electronic device comprising: A system comprising the data management device according to any one of claims 1 to 7.

第一の実施形態におけるプリンタ監視システムを示す模式図。1 is a schematic diagram showing a printer monitoring system in a first embodiment. FIG. プリンタの電気的構成を示すブロック図。FIG. 2 is a block diagram illustrating an electrical configuration of the printer. データ更新処理ルーチンを示すフローチャート。The flowchart which shows a data update process routine. ミラーメモリ更新ルーチンを示すフローチャート。The flowchart which shows a mirror memory update routine. 電源OFF処理ルーチンを示すフローチャート。The flowchart which shows a power-OFF process routine. データ読出し処理ルーチンを示すフローチャート。The flowchart which shows a data reading process routine.

符号の説明Explanation of symbols

11…プリンタ監視システム、12…サーバ、13…電子機器としてのプリンタ、18
…キャリッジモータ、27…噴射手段としての記録ヘッド、28…紙送りモータ、31…
プリントエンジン、32…書込中管理手段を構成するとともに書込手段としてのプリント
エンジンモジュール、33…電源遮断処理手段としての電源オフモジュール、33A…判
断手段としての判断部、34…データ読出手段としての読出専用モジュール、34A…M
IB、34B…データ格納部としてのリプライ用メモリ、35…第一メモリとしてのメモ
リ、36…書込中管理手段を構成するとともに第二メモリとしてのミラーメモリ、37…
不揮発性メモリ、41…インクカウンタ、42…用紙カウンタ、43…電源スイッチ、4
5…データ更新手段としてのデータ更新部、46…データ更新手段を構成する累積インク
消費量演算部、47…データ更新手段を構成する用紙消費枚数演算部、48…データ更新
手段を構成する印刷時刻管理部、F…判定値としての書込みフラグ、P…記録紙。
DESCRIPTION OF SYMBOLS 11 ... Printer monitoring system, 12 ... Server, 13 ... Printer as electronic equipment, 18
... Carriage motor 27. Recording head as ejection means 28. Paper feed motor 31.
Print engine, 32... Constituting print-in-progress management means and print engine module as writing means, 33... Power-off module as power-off processing means, 33 A... Judging section as judging means, 34. Read-only module, 34A ... M
IB, 34B... Reply memory as a data storage unit, 35... Memory as a first memory, 36...
Non-volatile memory, 41 ... ink counter, 42 ... paper counter, 43 ... power switch, 4
5... Data update unit as data update unit 46. Cumulative ink consumption calculation unit constituting data update unit 47. Sheet consumption number calculation unit constituting data update unit 48. Print time constituting data update unit Management unit, F: Write flag as a judgment value, P: Recording paper.

Claims (8)

第一メモリと、第二メモリと、前記第一メモリから前記第二メモリへのデータの書込み
を行う書込手段とを備えた電子機器におけるデータ管理装置であって、
前記第一メモリから前記第二メモリへのデータの書込み中であるか否かを判定値で管理
する書込中管理手段と、
電子機器の電源強制遮断時に前記書込手段に優先して起動され電源を遮断する電源遮断
処理を実行する電源遮断処理手段と、
前記電源遮断処理手段の起動後、前記電源強制遮断時に前記書込手段がデータの書込中
であったか否かを前記判定値に基づいて判断する判断手段とを備え、
前記電源遮断処理手段は、前記判断手段が前記書込中でなかったと判断した場合は前記
電源遮断処理を行い、一方、前記書込中であったと判断した場合は前記第一メモリから前
記第二メモリへの当該書込中の前記データの書込みを実行し書込み終了後に前記電源遮断
処理を行うことを特徴とする電子機器におけるデータ管理装置。
A data management device in an electronic device comprising a first memory, a second memory, and a writing means for writing data from the first memory to the second memory,
In-writing management means for managing with a determination value whether data is being written from the first memory to the second memory;
Power shutdown processing means for executing power shutdown processing that is activated in preference to the writing means at the time of forced power shutdown of the electronic device and shuts off the power; and
Determination means for determining, based on the determination value, whether or not the writing means was writing data at the time of forced power interruption after the power-off processing means was activated;
The power-off processing means performs the power-off processing when the determination means determines that the writing is not being performed, and on the other hand, when the determination means determines that the writing is being performed, A data management apparatus in an electronic device, wherein the data being written to the memory is written and the power-off process is performed after the writing is completed.
前記書込中管理手段が管理する前記判定値はフラグであり、
前記判断手段は前記フラグの値に基づいて書込中であるか否かを判断し、
前記電源遮断処理手段は、前記電源強制遮断時は前記判断手段が前記フラグの値に基づ
いて書込中と判断した場合は、前記データの書込みをやり直すことを特徴とする請求項1
に記載の電子機器におけるデータ管理装置。
The determination value managed by the writing-in-management means is a flag,
The determining means determines whether writing is in progress based on the value of the flag,
The power-off processing means rewrites the data when the judgment means judges that writing is in progress based on the value of the flag at the time of forced power-off.
The data management apparatus in the electronic device as described in 2.
前記書込中管理手段が管理する前記判定値は1ビットを超える管理値であり、
前記判断手段は前記管理値に基づいて書込中であるか否かの判断と、書込中であった場
合における書込中断位置の判断とを行うことを特徴とする請求項1に記載の電子機器にお
けるデータ管理装置。
The determination value managed by the writing management means is a management value exceeding 1 bit,
2. The determination unit according to claim 1, wherein the determination unit determines whether or not writing is being performed based on the management value, and determines a writing interruption position when writing is being performed. Data management device in electronic equipment.
前記電源遮断処理手段は、前記電源強制遮断時は前記判断手段が前記管理値に基づいて
書込中と判断した場合は、当該管理値から判断される書込中断位置の続きからデータの書
込みを再開することを特徴とする請求項3に記載の電子機器におけるデータ管理装置。
The power shut-off processing means writes data from the continuation position of the write interruption determined from the management value when the determination means determines that writing is in progress based on the management value at the time of forced power-off. The data management apparatus for an electronic apparatus according to claim 3, wherein the data management apparatus is resumed.
前記電子機器は不揮発性メモリを更に備え、
前記電源遮断処理手段は、前記電源遮断処理の実行前に前記第二メモリのデータを不揮
発性メモリに書き込むように構成され、前記書込中であった場合は、前記第二メモリへの
前記データの書込み終了後、当該第二メモリのデータを前記不揮発性メモリへ書き込むこ
とを特徴とする請求項1乃至4のいずれか一項に記載の電子機器におけるデータ管理装置
The electronic device further includes a nonvolatile memory,
The power shut-off processing means is configured to write the data in the second memory to a nonvolatile memory before the power shut-off process is executed, and when the data is being written, the data to the second memory 5. The data management device in the electronic device according to claim 1, wherein after the writing of data is completed, the data in the second memory is written into the nonvolatile memory. 6.
前記電子機器はプリンタであって、
印刷のために消費される消耗品の消費量又は残量に係るデータを印刷動作中又は印刷動
作終了時の所定タイミングで更新するデータ更新手段を更に備え、
前記データ更新手段は更新したデータを前記第一メモリに書き込み、
前記データ更新手段により更新されたデータを前記第一メモリから前記第二メモリへ書
き込むことを特徴とする請求項請求項1乃至5のいずれか一項に記載の電子機器における
データ管理装置。
The electronic device is a printer,
Data update means for updating data relating to the consumption or remaining amount of consumables consumed for printing at a predetermined timing during the printing operation or at the end of the printing operation;
The data update means writes updated data to the first memory,
6. The data management apparatus in an electronic device according to claim 1, wherein the data updated by the data updating unit is written from the first memory to the second memory.
電子機器の電源オン中にデータ要求を受け付けるとその要求されたデータを応答として
返すとともに前記第二メモリのデータを読み出し可能に構成されて当該読み出したデータ
を格納するデータ格納部を有するデータ読出手段を更に備え、
前記データ読出手段は、データ要求を受け付けたときには、前記書込中管理手段の前記
判定値に基づいて書込中であるか否かを判定し、書込中でなければ前記第二メモリからデ
ータを読み込んで該データをその応答として返し、一方、前記書込中であれば前記データ
格納部に格納された前回のデータをその応答として返すことを特徴とする請求項1乃至6
のいずれか一項に記載の電子機器におけるデータ管理装置。
Data reading means configured to receive a data request while the electronic device is powered on and return the requested data as a response and to read the data in the second memory, and to have a data storage unit for storing the read data Further comprising
When the data reading unit receives a data request, the data reading unit determines whether or not writing is in progress based on the determination value of the in-writing management unit. 7. The data is returned as the response, and the previous data stored in the data storage unit is returned as the response if the data is being written.
The data management apparatus in the electronic device as described in any one of.
第一メモリと、第二メモリと、前記第一メモリから前記第二メモリへのデータの書込み
を行う書込手段とを備えた電子機器におけるデータ管理方法であって、
前記第一メモリから前記第二メモリへのデータの書込み中であるか否かを判定値で管理
する書込中管理手段と、電子機器の電源強制遮断時には前記書込手段に優先して起動され
電源を遮断する電源遮断処理を行う電源遮断処理手段とを設け、
前記電源遮断処理手段が起動された際に、前記電源強制遮断時に前記書込手段によるデ
ータの書込中であったか否かを前記判定値に基づいて判断する判断ステップと、
前記電源遮断処理手段は、前記書込中でなかったならば前記電源遮断処理を行い、一方
、前記書込中であったならば当該書込中であった前記データを前記第一メモリから前記第
二メモリに書込み、書込み終了後に前記電源遮断処理を行うステップと、
を備えたことを特徴とする電子機器におけるデータ管理方法。
A data management method in an electronic device comprising a first memory, a second memory, and a writing means for writing data from the first memory to the second memory,
In-writing management means for managing whether or not data is being written from the first memory to the second memory with a judgment value, and activated when the electronic device is forcibly shut off, the writing means is prioritized. A power shutdown processing means for performing a power shutdown process to shut off the power supply,
A determination step of determining, based on the determination value, whether data is being written by the writing unit when the power-off processing unit is activated;
The power shut-off processing means performs the power shut-off processing if the writing is not being performed, while if the data is being written, the data being written is read from the first memory. Writing to the second memory, performing the power-off process after the writing is completed;
A data management method for an electronic device, comprising:
JP2008028493A 2008-02-08 2008-02-08 Data management device and data management method in electronic equipment Withdrawn JP2009187423A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008028493A JP2009187423A (en) 2008-02-08 2008-02-08 Data management device and data management method in electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008028493A JP2009187423A (en) 2008-02-08 2008-02-08 Data management device and data management method in electronic equipment

Publications (1)

Publication Number Publication Date
JP2009187423A true JP2009187423A (en) 2009-08-20

Family

ID=41070570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008028493A Withdrawn JP2009187423A (en) 2008-02-08 2008-02-08 Data management device and data management method in electronic equipment

Country Status (1)

Country Link
JP (1) JP2009187423A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011188331A (en) * 2010-03-10 2011-09-22 Ricoh Co Ltd Image processing apparatus
JP2012045874A (en) * 2010-08-30 2012-03-08 Seiko Epson Corp Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method
JP2012206425A (en) * 2011-03-30 2012-10-25 Seiko Epson Corp Control device, information processing device, control system, control method of control device, and program
JP2016134642A (en) * 2015-01-15 2016-07-25 ブラザー工業株式会社 Electrical apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011188331A (en) * 2010-03-10 2011-09-22 Ricoh Co Ltd Image processing apparatus
JP2012045874A (en) * 2010-08-30 2012-03-08 Seiko Epson Corp Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method
JP2012206425A (en) * 2011-03-30 2012-10-25 Seiko Epson Corp Control device, information processing device, control system, control method of control device, and program
JP2016134642A (en) * 2015-01-15 2016-07-25 ブラザー工業株式会社 Electrical apparatus
US10263562B2 (en) 2015-01-15 2019-04-16 Brother Kogyo Kabushiki Kaisha Electrical apparatus

Similar Documents

Publication Publication Date Title
JP5609436B2 (en) Data storage processing apparatus, printing apparatus and data storage processing method in printing apparatus
US8782326B2 (en) Memory device and system including a memory device electronically connectable to a host circuit
EP2237163B1 (en) System having a plurality of memory devices and data transfer method for the same
EP2237161B1 (en) Memory device, circuit board, liquid receptacle, method of accepting from a host circuit data for writing to a data memory section, and system including a memory device electrically connectable to a host circuit
US8215734B2 (en) Liquid consuming system, liquid consuming apparatus, liquid supply unit, and method of supervising a remaining amount of liquid contained in a liquid supply unit
KR102139622B1 (en) Liquid ejecting apparatus
CN115279596A (en) Image forming apparatus and method for controlling the same
JP2009187423A (en) Data management device and data management method in electronic equipment
US8230163B2 (en) Memory device, host circuit, circuit board, liquid receptacle, method of transmitting data stored in a nonvolatile data memory section to a host circuit, and system including a host circuit and a memory device detachably attachable to the host circuit
JP5728855B2 (en) Data storage processing apparatus, printing apparatus and data storage processing method in printing apparatus
US8544980B2 (en) Liquid ejecting apparatus and liquid ejecting apparatus control method
US8627190B2 (en) Memory device, circuit board, liquid receptacle, method of controlling a nonvolatile data memory section, and system including a memory device detachably connectable to a host circuit
JP6263891B2 (en) Control method for liquid ejection system and liquid ejection system
JP2004358734A (en) Image forming apparatus, program and recording medium
JP2015020315A (en) Printing device
JP3539487B2 (en) Ink jet recording device
JP5720263B2 (en) Storage device for storing liquid consumption, liquid container, and liquid consumption system
JP2002046293A (en) Ink jet printer system
US11897266B2 (en) Memory, liquid storage container, and printing system
JP6031848B2 (en) Liquid consumption apparatus, program, and printing apparatus
US20230053200A1 (en) Memory, cartridge, and printing system
JP2012045873A (en) Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method
JP2023027442A (en) memory and cartridge
JP2012045715A (en) Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method
JP2020146875A (en) Liquid consuming device and control method for liquid consuming device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110510