JPH0916449A - Data file management device - Google Patents

Data file management device

Info

Publication number
JPH0916449A
JPH0916449A JP7161934A JP16193495A JPH0916449A JP H0916449 A JPH0916449 A JP H0916449A JP 7161934 A JP7161934 A JP 7161934A JP 16193495 A JP16193495 A JP 16193495A JP H0916449 A JPH0916449 A JP H0916449A
Authority
JP
Japan
Prior art keywords
date
time
data
file
clock
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
JP7161934A
Other languages
Japanese (ja)
Inventor
Hisato Torii
久人 鳥居
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP7161934A priority Critical patent/JPH0916449A/en
Publication of JPH0916449A publication Critical patent/JPH0916449A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE: To provide a data file management device capable of rewriting date- and-time data at the time of writing file data while the date and the time of a built-in clock are not set to accurate date-and-time data at the point of time when the date and the time are set. CONSTITUTION: This device is provided with an operation SW 6 for setting the date and the time of an RTC 5c or the like by an external operation and a CPU 5a for judging whether or not the date and the time are set, managing the file data based on the date-and-time data obtained from the RTC 5c, managing the file relating to data written while the date and the time are not set separately from the other files and rewriting the date-and-time data of the file relating to the data written while the date and the time are not set to the date-and-time data based on the date and the time of the RTC 5c after setting the date and the time when the date and the time of the RTC 5c are set by the operation SW 6.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はデータファイル管理装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data file management device.

【0002】[0002]

【従来の技術】例えばパーソナルコンピュータや携帯情
報端末(PDA)においては、データファイルの管理を
行なうにあたって、ファイルの書き込みや更新を行った
日時に関するデータを使用している。そして、この場合
に使用されるファイル書き込みあるいは更新の日時に関
するデータは装置の内蔵時計により得ている。
2. Description of the Related Art For example, in a personal computer or a personal digital assistant (PDA), when managing a data file, data relating to the date and time when the file is written or updated is used. The data relating to the date and time of writing or updating the file used in this case is obtained by the internal clock of the device.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記し
たデータファイルの管理方法においては、データファイ
ルの管理を正確に行なうために、電源の投入後、実際に
ファイルの書き込みあるいは更新を行なう前に内蔵時計
の設定を行なう必要があった。
However, in the above-mentioned data file management method, in order to manage the data file accurately, the built-in clock is turned on after the power is turned on and before the file is actually written or updated. Had to be set.

【0004】また、内蔵時計を動作させるための補助電
池を備えている装置であれば電源を投入するたびに内蔵
時計の設定を行なう必要がないが、補助電池が切れた状
態で電源を投入したときは同様に内蔵時計の設定を行な
う必要があった。
If the device has an auxiliary battery for operating the built-in clock, it is not necessary to set the built-in clock every time the power is turned on, but the power is turned on when the auxiliary battery is dead. At that time, it was necessary to set the internal clock as well.

【0005】本発明のデータファイル管理装置はこのよ
うな課題に着目してなされたものであり、その目的とす
るところは、内蔵時計の日時設定がなされていない状態
でファイルデータを書き込んだときの日時データを、日
時設定がなされた時点で正確な日時データに書き換える
ことができるデータファイル管理装置を提供することに
ある。
The data file management apparatus of the present invention has been made in view of such a problem, and its purpose is to write the file data when the date and time of the built-in clock is not set. An object of the present invention is to provide a data file management device capable of rewriting date / time data to correct date / time data when the date / time is set.

【0006】[0006]

【課題を解決するための手段】上記した目的を達成する
ために、第1の発明に係るデータファイル管理装置は、
内蔵時計の日時等の設定を外部操作により行う日時設定
手段と、日時設定が行われたか否かを判断する日時設定
判断手段と、ファイルデータを内蔵時計から得られる日
時データに基づいて管理するとともに、日時設定がなさ
れていない状態で書き込まれたデータに係るファイルを
その他のファイルと区別して管理するデータ管理手段
と、日時設定手段により内蔵時計の日時設定がされたと
きに、日時設定が行われていない状態で書き込まれたデ
ータに係るファイルの日時データを日時設定後の内蔵時
計の日時を基準とした日時データに書き換える日時デー
タ変更手段とを具備する。
In order to achieve the above object, a data file management apparatus according to the first invention is
The date and time setting means for setting the date and time of the built-in clock by an external operation, the date and time setting determining means for determining whether the date and time is set, and the file data are managed based on the date and time data obtained from the built-in clock. , The data management means that manages the file related to the data written in the state where the date and time is not set separately from other files, and the date and time is set when the date and time of the built-in clock is set by the date and time setting means. Date and time data changing means for rewriting the date and time data of the file relating to the data written in the unwritten state to the date and time data based on the date and time of the built-in clock after the date and time is set.

【0007】また、第2の発明に係るデータファイル管
理装置は、第1の発明に係るデータファイル管理装置に
おいて、内蔵時計の日時設定がされていない状態でデー
タが書き込まれてから日時設定手段により内蔵時計の日
時設定がされるまでの所定の時間を計測する時間計測手
段を有する。
A data file management device according to a second aspect of the present invention is the data file management device according to the first aspect of the present invention, in which the date and time setting means operates after the data is written in a state where the date and time of the internal clock is not set. It has a time measuring means for measuring a predetermined time until the date and time of the built-in clock is set.

【0008】[0008]

【作用】すなわち、第1の発明に係るデータファイル管
理装置においては、ファイルデータを内蔵時計から得ら
れる日時データに基づいて管理するとともに、日時設定
がなされていない状態で書き込まれたデータに係るファ
イルをその他のファイルと区別して管理し、日時設定手
段による内蔵時計の日時設定が外部操作によりされたと
きに、日時設定が行われていない状態で書き込まれたデ
ータに係るファイルの日時データを日時設定後の内蔵時
計の日時を基準とした日時データに書き換えるようにす
る。
That is, in the data file management device according to the first aspect of the present invention, the file data is managed based on the date and time data obtained from the built-in clock, and the file related to the data written without the date and time set. Is managed separately from other files, and when the date and time setting of the built-in clock by the date and time setting means is performed by an external operation, the date and time data of the file related to the data written without the date and time setting is set. The date and time of the later built-in clock should be rewritten as the date and time data.

【0009】また、第2の発明に係るデータファイル管
理装置は、第1の発明に係るデータファイル管理装置に
おいて、内蔵時計の日時設定がされていない状態でデー
タが書き込まれてから日時設定手段により内蔵時計の日
時設定がされるまでの所定の時間が時間計測手段によっ
て計測される。
A data file management apparatus according to a second aspect of the present invention is the data file management apparatus according to the first aspect of the present invention, in which the date and time is set by the date and time setting means after the data is written in the state where the date and time of the internal clock is not set. A predetermined time until the date and time of the built-in clock is set is measured by the time measuring means.

【0010】[0010]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。図1は本発明が適用されるデータファイル
管理装置のブロック図である。図1において、システム
制御部5には、操作SW6と、外部メモリ7と、外部メ
モリカートリッジインターフェイス8と、表示装置9と
が接続されるとともに、電源制御部3を介して主電源1
と補助電池2とが各々接続されている。さらに、リセッ
ト回路4が電源制御部3とシステム制御部5とに接続さ
れている。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram of a data file management device to which the present invention is applied. In FIG. 1, an operation SW 6, an external memory 7, an external memory cartridge interface 8 and a display device 9 are connected to the system control unit 5, and a main power source 1 is connected via a power source control unit 3.
And the auxiliary battery 2 are connected to each other. Further, the reset circuit 4 is connected to the power supply controller 3 and the system controller 5.

【0011】上記した構成において、システム制御部5
はCPU5aと主メモリ5bと、内蔵時計(リアルタイ
ムクロック、以下RTCと呼ぶ)5c等から構成され、
プログラムの実行など装置全体の制御を行う。主電源1
は電源制御部3を介して他の全てのブロックに電力を供
給している。補助電池2は電源制御部3を介してRTC
5cに電力を供給しており、主電源1の供給が無い時で
もRTC5cだけは動作出来るようにしている。リセッ
ト回路4は主電源1の状態を監視してシステム制御部5
にリセット信号を与える。外部メモリ7は電力が供給さ
れていないときでもデータの内容を保持できるように不
揮発性メモリからなり、主にデータファイルやプログラ
ムファイルなどが記録されている。外部メモリカートリ
ッジインターフェイス8はフロッピーディスク、ICカ
ードメモリなどの取り外し可能な外部メモリとのインタ
ーフェイスを行う。操作SW6は外部からシステム制御
部5に対して所定の指示を与えるためのものであり、表
示装置9はシステム制御部5からの出力結果を表示する
ためのものである。
In the above structure, the system control unit 5
Is composed of a CPU 5a, a main memory 5b, a built-in clock (real time clock, hereinafter referred to as RTC) 5c, etc.,
Controls the entire device, such as executing programs. Main power supply 1
Supplies power to all other blocks via the power supply control unit 3. The auxiliary battery 2 is connected to the RTC via the power control unit 3.
Power is supplied to 5c and only the RTC 5c can operate even when the main power supply 1 is not supplied. The reset circuit 4 monitors the state of the main power supply 1 and monitors the system controller 5
Reset signal to. The external memory 7 is composed of a non-volatile memory so as to retain the contents of data even when power is not supplied, and mainly stores a data file, a program file, and the like. The external memory cartridge interface 8 interfaces with a removable external memory such as a floppy disk or an IC card memory. The operation SW 6 is for externally giving a predetermined instruction to the system control unit 5, and the display device 9 is for displaying the output result from the system control unit 5.

【0012】図2(A)は本実施例のデータファイル管
理装置によって管理されるファイルの構造を示す図であ
る。同図はMS−DOS(Microsoft Disk OperatingSy
stem)におけるファイルの構造を示しており、FAT
(File AllocationTable )10と、ディレクトリエン
トリ11と、データ領域12とから構成されている。こ
のうち、ディレクトリエントリ11は本実施例に関連す
る日時データを管理しており、図2(B)に示すよう
に、ファイル名領域13、フラグA領域14a、フラグ
B領域14b、書き込み機器識別番号領域15、ファイ
ルの書き込みや更新を行ったときの日時を記録するため
の更新日時領域16、FATエントリ番号領域17とか
ら構成される。
FIG. 2A is a diagram showing the structure of a file managed by the data file management device of this embodiment. This figure shows MS-DOS (Microsoft Disk Operating System).
stem) and the structure of the file in the
It is composed of a (File Allocation Table) 10, a directory entry 11, and a data area 12. Of these, the directory entry 11 manages date and time data related to the present embodiment, and as shown in FIG. 2B, the file name area 13, the flag A area 14a, the flag B area 14b, and the writing device identification number. An area 15, an update date / time area 16 for recording the date and time when the file is written or updated, and a FAT entry number area 17 are included.

【0013】フラグA領域14a、フラグB領域14b
は各々フラグA、BのON、OFF状態を記憶してお
り、このON、OFF状態によって更新日時のデータが
RTC5cの仮の日時データにより記憶されたものであ
るか否かを判定する。また、フラグA、フラグB、書き
込み機器識別番号はMS−DOSのファイル構造に本来
存在しないが、ここでは仮にディレクトリエントリ11
のリザーブ領域に記憶されているものとする。さらに、
書き込み機器識別番号領域15に書き込まれる値は、製
造シリアルナンバーのような装置固有の番号である。
Flag A area 14a and flag B area 14b
Respectively stores the ON and OFF states of the flags A and B, and determines whether the update date and time data is stored by the provisional date and time data of the RTC 5c according to the ON and OFF states. Further, although the flag A, the flag B, and the writing device identification number do not originally exist in the file structure of MS-DOS, here, the directory entry 11 is assumed.
It is assumed to be stored in the reserved area of. further,
The value written in the writing device identification number area 15 is a device-specific number such as a manufacturing serial number.

【0014】以下に、本実施例に係るデータファイル管
理装置の動作を図3のフローチャートを参照して説明す
る。まず、装置の電源が投入されたとき、リセット回路
4はこれを検出して装置全体のハード的なリセットをか
ける(ステップS1)。次に、システム制御部5内のR
TC5cが動作中か否かを判断し(ステップS2)、R
TC5cの動作中である場合はステップS4に進む。
The operation of the data file management apparatus according to this embodiment will be described below with reference to the flowchart of FIG. First, when the power of the device is turned on, the reset circuit 4 detects this and resets the hardware of the entire device (step S1). Next, R in the system control unit 5
It is determined whether the TC5c is in operation (step S2), and R
If the TC 5c is in operation, the process proceeds to step S4.

【0015】ステップS2でRTC5cの動作中でない
場合はフラグAをONにして、RTC5cの初期設定を
行いRTC5cの動作をスタートさせ(ステップS
3)、その後ステップS4に進む。この初期設定動作で
はファイルの書き込みあるいは更新があった日時として
任意の日時が自動的に設定される。本実施例では装置に
初めて電源が供給された後、RTC5cが動作していな
い場合はフラグAは必ずONになる。又、初期設定され
た日時からの経過時間が管理されるが、この場合の日時
データを仮の日時データと呼び、使用者が操作SW6を
操作して設定したRTC5cの日時データと区別され
る。
If the RTC 5c is not in operation in step S2, the flag A is turned on, the RTC 5c is initialized, and the operation of the RTC 5c is started (step S
3) After that, it progresses to step S4. In this initial setting operation, an arbitrary date and time is automatically set as the date and time when the file was written or updated. In this embodiment, the flag A is always ON when the RTC 5c is not operating after power is first supplied to the device. Although the time elapsed from the initially set date and time is managed, the date and time data in this case is called temporary date and time data, and is distinguished from the date and time data of the RTC 5c set by the user operating the operation SW6.

【0016】次のステップS4では特定の書き込み機器
のファイルの書き込みあるいは更新を行うか否かを判断
する。ここで書き込みまたは更新を行わない場合はステ
ップS9に進むが、ファイルの書き込みまたは更新を行
う場合はファイルのフラグAのON、OFF状態を判断
する(ステップS5)。ここで、フラグAがOFFの場
合はフラグBをOFFにして(ステップS6)、ファイ
ルの更新日時領域16のデータ(更新日時データ)をR
TC5cの現在の日時データに書き換えて、ファイルを
書き換えた機器の機器番号を書き込み機器識別番号領域
15に書き込む(ステップS8)。
In the next step S4, it is determined whether to write or update the file of the specific writing device. If writing or updating is not performed here, the process proceeds to step S9, but if writing or updating of the file is performed, it is determined whether the flag A of the file is ON or OFF (step S5). If the flag A is OFF, the flag B is turned OFF (step S6), and the data (update date / time data) in the file update date / time area 16 is set to R.
The current date and time data of TC5c is rewritten, and the device number of the device for which the file is rewritten is written in the write device identification number area 15 (step S8).

【0017】一方、ステップS5でフラグAがONの場
合はファイルのフラグBをONにして(ステップS
7)、ステップS8に進む。この場合はフラグAがON
になっているので、ここで書き込まれるファイルの更新
日時データは初期設定された仮の日時から起算された日
時データである。このように、フラグA、BのON、O
FF状態に応じて、ファイルの更新日時データとして現
在の日時データを書き込むのかあるいは仮の日時データ
を書き込むのかが判別され、かつ更新日時データがどの
機器から得られたものであるかが管理される。
On the other hand, if the flag A is ON in step S5, the file flag B is turned ON (step S5).
7) and proceeds to step S8. In this case, flag A is ON
Therefore, the update date / time data of the file written here is the date / time data calculated from the temporarily set initial date / time. In this way, the flags A and B are turned ON and O
Depending on the FF state, it is determined whether to write the current date / time data or the temporary date / time data as the update date / time data of the file, and to manage from which device the update date / time data is obtained. .

【0018】次に、RTC5cの日時の設定を行うかど
うかを判断する(ステップS9)。ここでRTC5cの
日時の設定を行わない場合はステップ15に進むが、設
定を行う場合は操作SW6を操作してRTC5cの現在
の日時の設定を行い(ステップS10)、フラグAをO
FFにした後(ステップS11)、フラグBがONの状
態になっているファイルが有るか否かを判断する(ステ
ップS12)。このようなファイルが存在しない場合は
ステップS15に進むが、ファイルが存在する場合はそ
のファイル自身の書き込み機器識別番号と仮の日時デー
タが書き込まれたファイルの書き込み機器識別番号とを
比較して2つの番号が一致するか否かを判断し(ステッ
プS13)。ここで2つの番号が一致しない場合はステ
ップS15に進む。また、2つの番号が一致する場合
は、フラグBがONになっているすべてのファイルの更
新日時データを書き換えるとともに、フラグBをOFF
にする(ステップS14)。
Next, it is judged whether or not the date and time of the RTC 5c is set (step S9). If the date and time of the RTC 5c is not set here, the process proceeds to step 15. If the date and time of the RTC 5c are set, the operation SW6 is operated to set the current date and time of the RTC 5c (step S10), and the flag A is set to O.
After setting to FF (step S11), it is determined whether or not there is a file in which the flag B is ON (step S12). If such a file does not exist, the process proceeds to step S15. However, if the file exists, the writing device identification number of the file itself is compared with the writing device identification number of the file in which the provisional date / time data is written, and 2 It is determined whether or not the two numbers match (step S13). If the two numbers do not match, the process proceeds to step S15. If the two numbers match, the update date / time data of all files for which the flag B is ON is rewritten and the flag B is turned OFF.
(Step S14).

【0019】次に外部メモリカートリッジが外部メモリ
カートリッジインターフェイス8を介して挿入されたか
否かを判断し(ステップS15)、挿入されない場合は
ステップS4に戻るが、挿入された場合は挿入された外
部メモリカートリッジ内にフラグBがONになっている
ファイルが存在するか否かを判断する(ステップS1
6)。ここでファイルが存在しない場合はステップS4
に戻るが、ファイルが存在する場合はステップS5に戻
って上記した処理を行う。
Next, it is judged whether or not the external memory cartridge is inserted through the external memory cartridge interface 8 (step S15), and if it is not inserted, the process returns to step S4, but if it is inserted, the inserted external memory cartridge is inserted. It is determined whether or not there is a file whose flag B is ON in the cartridge (step S1).
6). If the file does not exist here, step S4
However, if the file exists, the process returns to step S5 and the above-described processing is performed.

【0020】これによって、あるファイルの更新日時領
域16に仮の日時データが記憶された後イジェクトされ
た場合であっても、その外部メモリカートリッジが同じ
装置に再度挿入されれば前記した方法で日時データを書
き換えることができる。
As a result, even if the temporary date / time data is stored in the update date / time area 16 of a certain file and then ejected, if the external memory cartridge is re-inserted into the same device, the date / time is determined by the above-described method. The data can be rewritten.

【0021】次に、図4を参照してファイルの日時デー
タの書き換え動作を時間の経過に沿って説明する。 (1)まず、電源ONの操作がなされた場合、この操作
が1回目であればRTC5cは停止しているので、
(2)に移行する。
Next, referring to FIG. 4, the rewriting operation of the date and time data of the file will be described with the passage of time. (1) First, when the power is turned on, the RTC 5c is stopped if this operation is the first time.
Move to (2).

【0022】(2)ファイルのフラグAをONにし、R
TC5cの日時データを1995年1月1日、AM0:
00に初期設定することで動作をスタートさせる。 (3)ファイルの更新又は書き込みを行う。
(2) The flag A of the file is turned ON and R
Date and time data of TC5c, January 1, 1995, AM0:
The operation is started by initializing to 00. (3) Update or write the file.

【0023】(4)RTC5cの日時データは、(2)
でフラグAをONに設定しているので、初期設定された
時間から所定時間経過した仮の日時データ(ここでは、
1995年1月1日、AM2:00)である。
(4) The date and time data of the RTC 5c is (2)
Since the flag A is set to ON in, the temporary date and time data (here,
January 1, 1995, 2:00).

【0024】(5)フラグAがONになっているのでフ
ラグBをONにして、更新日時領域16に上記仮の日時
データ(1995年1月1日、AM2:00)を記憶す
るとともに、書き込み機器識別番号領域15に書き込み
機器番号(001)を記憶する。
(5) Since the flag A is on, the flag B is turned on to store the temporary date and time data (January 1, 1995, 2:00 AM) in the update date and time area 16 and write the data. The writing device number (001) is stored in the device identification number area 15.

【0025】(6)RTC5cの日時設定を行う。 (7)RTC5cの日時設定を行うことにより、RTC
5cの日時データは現在の日時データ(ここでは、19
95年1月2日 AM8:00)に設定される。同時に
この時点におけるRTC5cの仮の日時データ(ここで
は、1995年1月1日 AM5:00)と、設定され
た現在の日時データとの差である1日と3時間が記憶さ
れる。
(6) The date and time of the RTC 5c is set. (7) By setting the date and time of RTC5c, RTC
The date and time data of 5c is the current date and time data (here, 19
It will be set at 8:00 am, January 2, 1995). At the same time, one day and three hours, which is the difference between the provisional date and time data of the RTC 5c at this time (here, 1:00 AM January 1, 1995) and the set current date and time data are stored.

【0026】(8)フラグBがONのときのファイル更
新時の仮の日時データ(1995年1月1日 2:0
0)に前記日時データの差(1日と3時間)を加算し、
フラグBをOFFにする。この処理により更新日時デー
タが、仮の日時データである1995年1月1日 AM
2:00から、更新時の正確な日時データである199
5年1月2日 AM5:00に書き換えられる。
(8) Temporary date and time data at the time of updating the file when the flag B is ON (January 1, 1995 2: 0
Add the difference of the date and time data (1 day and 3 hours) to 0),
The flag B is turned off. By this processing, the update date / time data is provisional date / time data January 1, 1995 AM
Accurate date and time data when updating from 2:00, 199
January 2, 5 AM It will be rewritten to 5:00.

【0027】以下はファイルが記憶されている外部メモ
リカートリッジ等が本体から脱着可能な場合の書き換え
動作である。ここでは、ファイルデータを書き込んだと
きの外部メモリカートリッジと、ファイルデータを読み
込んだときの外部メモリカートリッジとの同一性を判断
して、同一である場合のみにファイルの更新日時を書き
換える。
The following is a rewriting operation when an external memory cartridge or the like in which a file is stored is removable from the main body. Here, the sameness between the external memory cartridge when the file data is written and the external memory cartridge when the file data is read is determined, and only when they are the same, the file update date and time is rewritten.

【0028】(9)まず、外部メモリカートリッジイン
ターフェイス8から外部メモリカートリッジをイジェク
トする。ここで、外部メモリカートリッジに記憶された
ファイル内容は(5)と同じものとする。
(9) First, the external memory cartridge is ejected from the external memory cartridge interface 8. Here, the file contents stored in the external memory cartridge are the same as those in (5).

【0029】(10)外部メモリカートリッジを外部メ
モリカートリッジインターフェイス8を介して挿入す
る。 (11)挿入された外部メモリカートリッジが(9)で
イジェクトされたものと同一か否かを確認した後で、フ
ァイルの更新日時データを書き換える。ファイルの更新
日時データの書き換えは、(7)で得られた差分データ
に基づいて行い、結果的に1995年1月2日 AM
5:00に書き換えられる。
(10) Insert the external memory cartridge through the external memory cartridge interface 8. (11) After checking whether the inserted external memory cartridge is the same as the one ejected in (9), the update date / time data of the file is rewritten. The update date and time data of the file is rewritten based on the difference data obtained in (7), and as a result, January 2, 1995 AM
It is rewritten at 5:00.

【0030】以上、上記したように本実施例では、現在
のRTC5cの状態が操作SW6によって外部から日時
設定された状態かどうかを判断して、日時設定が行われ
ていない状態のRTC5cでファイルの書き込み更新を
行うときは、他のファイルと区別して管理する。そして
このときに更新日時領域16に記録される日時データ
は、リセット後にRTC5cが動作をスタートしたとき
に自動的に初期設定される仮の日時データであり、この
仮の日時データは時間の経過に従って逐次更新される。
As described above, in this embodiment, it is judged whether the current state of the RTC 5c is the date and time set externally by the operation SW 6, and the RTC 5c in the state in which the date and time is not set stores the file. When writing / updating, manage it separately from other files. The date / time data recorded in the update date / time area 16 at this time is provisional date / time data that is automatically initialized when the RTC 5c starts operating after reset, and the provisional date / time data changes as time passes. It is updated sequentially.

【0031】そして、RTC5cの日時設定操作時にお
いて、ファイルの区分に従ってファイルの変更日時デー
タを書き換えるようにする。すなわち、RTC5cの日
時設定を操作SW6によって外部から行うと、仮の日時
データを有するデータファイルが存在するかどうかを判
断して、存在すればそのファイルの日時データを日時設
定時におけるRTC5cの仮の日時データと、設定され
たRTC5cの日時データの差に基づいて書き換えるよ
うにする。
Then, at the time of the date and time setting operation of the RTC 5c, the modified date and time data of the file is rewritten according to the file classification. That is, when the date and time of the RTC 5c is set from the outside by the operation SW 6, it is determined whether or not a data file having temporary date and time data exists, and if there is, the date and time data of the file is temporarily stored in the RTC 5c at the time of setting the date and time. The rewriting is performed based on the difference between the date / time data and the set date / time data of the RTC 5c.

【0032】上記した実施例によれば、内蔵時計の日時
設定がなされていない状態でファイルデータを書き込ん
でも、このときの正確な日時データを日時設定を行った
内蔵時計の日時データに基づいて自動的に知ることがで
きる。したがって、内蔵時計の日時設定がなされていな
い状態で書き込まれた日時データが不正確なものであっ
ても、日時設定を行った時点で一括して正確な日時デー
タに書き換えることが可能となる。
According to the above-mentioned embodiment, even if the file data is written in the state where the date and time of the built-in clock is not set, the accurate date and time data at this time is automatically calculated based on the date and time data of the built-in clock for which the date and time are set. You can know it. Therefore, even if the date and time data written in the state where the date and time of the built-in clock is not set are incorrect, it is possible to collectively rewrite the date and time data to the correct date and time when the date and time are set.

【0033】なお、上記した実施例ではMS−DOSの
ファイル構造について述べたが、これに限定されず、デ
ータと、データを管理する更新日時と、更新日時の属性
を表すフラグ(フラグA、B)と、ファイルを書き込ん
だ機器の識別番号を書き込むための領域とを有していれ
ばどのようなファイル構造であってもよい。
In the above embodiment, the file structure of MS-DOS was described, but the present invention is not limited to this, and data, update date and time for managing data, and flags (flags A and B) representing attributes of update date and time. ) And an area for writing the identification number of the device that has written the file, any file structure may be used.

【0034】上記したように、本実施例のデータファイ
ル管理装置は、内蔵時計(RTC5c)と、内蔵時計の
日時等の設定を外部操作により行う日時設定手段(操作
SW6)と、日時設定が行われたか否かを判断する日時
設定判断手段(CPU5a)と、ファイルデータを内蔵
時計から得られる日時データに基づいて管理するととも
に、日時設定がなされていない状態で書き込まれた(こ
こではファイル作成時のデータ書き込み動作とファイル
更新時のデータ書き込み動作を含む)データに係るファ
イルをその他のファイルと区別して管理するデータ管理
手段(CPU5a)と、日時設定手段による内蔵時計の
日時設定がされたときに、日時設定が行われていない状
態で書き込まれたデータに係るファイルの日時データを
日時設定後の内蔵時計の日時を基準とした日時データに
書き換える日時データ変更手段(CPU5a)とを具備
している。
As described above, the data file management apparatus of this embodiment has a built-in clock (RTC 5c), a date and time setting means (operation SW6) for setting the date and time of the built-in clock by an external operation, and date and time setting. The date and time setting determining means (CPU 5a) for determining whether or not the file is managed, and the file data is managed based on the date and time data obtained from the built-in clock, and is written in the state where the date and time is not set (here, when the file is created). (Including the data writing operation of (3) and the data writing operation at the time of updating the file) When the date and time of the built-in clock is set by the data managing means (CPU 5a) for managing the file related to the data separately from other files, and the date and time setting means. , Built-in date and time data of the file related to the data written without setting the date and time It is and a date data change means for rewriting the date and time of the total of the date data on the basis (CPU 5a).

【0035】また、内蔵時計の日時設定がされていない
状態でデータが書き込まれてから、例えば、日時設定前
の内蔵時計の日時データが書き込まれてから、日時設定
手段により内蔵時計の日時設定がされるまでの所定の時
間は時間計測手段(CPU5a)によって行う。
Further, after the data is written in the state where the date and time of the built-in clock is not set, for example, the date and time data of the built-in clock before the date and time is set is set, and then the date and time of the built-in clock is set by the date and time setting means. The predetermined time until it is performed is performed by the time measuring means (CPU 5a).

【0036】[0036]

【発明の効果】本発明によれば、内蔵時計の日時設定が
なされていない状態でファイルデータを書き込んだとき
の日時データを、日時設定がなされた時点で正確な日時
データに書き換えることができる効果を奏する。
According to the present invention, the date and time data when the file data is written in the state where the date and time of the built-in clock is not set can be rewritten to the correct date and time data when the date and time is set. Play.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明が適用されるデータファイル管理装置の
ブロック図である。
FIG. 1 is a block diagram of a data file management device to which the present invention is applied.

【図2】(A)はデータファイル管理装置によって管理
されるファイルの構造を示す図であり、(B)はディレ
クトリエントリの構造を示す図である。
FIG. 2A is a diagram showing a structure of a file managed by a data file management device, and FIG. 2B is a diagram showing a structure of a directory entry.

【図3】本実施例に係るデータファイル管理装置の動作
を示すフローチャートである。
FIG. 3 is a flowchart showing an operation of the data file management device according to the present embodiment.

【図4】ファイルの日時データの書き換え動作を時間の
経過に沿って説明するための図である。
FIG. 4 is a diagram for explaining a rewriting operation of date and time data of a file as time passes.

【符号の説明】[Explanation of symbols]

1…主電源、2…補助電池、3…電源制御部、4…リセ
ット回路、5…システム制御部、5a…CPU、5b…
主メモリ、5c…RTC(内蔵時計)、6…操作SW、
7…外部メモリ、8…外部メモリカートリッジインター
フェイス、9…表示装置。
1 ... Main power supply, 2 ... Auxiliary battery, 3 ... Power supply control unit, 4 ... Reset circuit, 5 ... System control unit, 5a ... CPU, 5b ...
Main memory, 5c ... RTC (built-in clock), 6 ... Operation SW,
7 ... External memory, 8 ... External memory cartridge interface, 9 ... Display device.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 内蔵時計と、 内蔵時計の日時等の設定を外部操作により行う日時設定
手段と、 日時設定が行われたか否かを判断する日時設定判断手段
と、 ファイルデータを内蔵時計から得られる日時データに基
づいて管理するとともに、日時設定がなされていない状
態で書き込まれたデータに係るファイルをその他のファ
イルと区別して管理するデータ管理手段と、 日時設定手段により内蔵時計の日時設定がされたとき
に、日時設定が行われていない状態で書き込まれたデー
タに係るファイルの日時データを日時設定後の内蔵時計
の日時を基準とした日時データに書き換える日時データ
変更手段と、 を具備したことを特徴とするデータファイル管理装置。
1. A built-in clock, a date-and-time setting means for setting the date and time of the built-in clock by an external operation, a date-and-time setting judgment means for determining whether the date and time has been set, and file data obtained from the built-in clock. The date and time data of the built-in clock is set by the data management means that manages the files related to the data written in the state where the date and time is not set and the other files. And a date / time data changing means for rewriting the date / time data of the file relating to the data written in the state in which the date / time is not set to the date / time data based on the date / time of the built-in clock after the date / time is set. A data file management device characterized by:
【請求項2】 内蔵時計の日時設定がされていない状態
でデータが書き込まれてから日時設定手段により内蔵時
計の日時設定がされるまでの所定の時間を計測する時間
計測手段を有することを特徴とする請求項1記載のデー
タファイル管理装置。
2. A time measuring unit for measuring a predetermined time from when data is written in a state where the date and time of the built-in clock is not set to when the date and time of the built-in clock is set by the date and time setting unit. The data file management device according to claim 1.
JP7161934A 1995-06-28 1995-06-28 Data file management device Withdrawn JPH0916449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7161934A JPH0916449A (en) 1995-06-28 1995-06-28 Data file management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7161934A JPH0916449A (en) 1995-06-28 1995-06-28 Data file management device

Publications (1)

Publication Number Publication Date
JPH0916449A true JPH0916449A (en) 1997-01-17

Family

ID=15744821

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7161934A Withdrawn JPH0916449A (en) 1995-06-28 1995-06-28 Data file management device

Country Status (1)

Country Link
JP (1) JPH0916449A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7269335B2 (en) 2001-05-18 2007-09-11 Sanyo Electric Co., Ltd. Image signal processing apparatus
JP2011081703A (en) * 2009-10-09 2011-04-21 Mitsubishi Electric Corp Data processor, data processing method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7269335B2 (en) 2001-05-18 2007-09-11 Sanyo Electric Co., Ltd. Image signal processing apparatus
JP2011081703A (en) * 2009-10-09 2011-04-21 Mitsubishi Electric Corp Data processor, data processing method, and program

Similar Documents

Publication Publication Date Title
TW583586B (en) Method for atomically updating a plurality of files
US6175919B1 (en) Method and apparatus for upgrading BIOS using a serial communication
US6745278B2 (en) Computer capable of rewriting an area of a non-volatile memory with a boot program during self mode operation of the computer
JPH10133939A (en) Memory managing method for portable terminal device
US5537531A (en) Portable computer with a bank switch for switching between a ROM and a memory, both allocated to the same address space, by changing a port address of a keyboard controller
JPH02148235A (en) Data drawback system
JP2000163268A (en) Computer
JPH0916449A (en) Data file management device
JP2002063042A (en) Program module management system, management method therefor and recording medium with its management program recorded on the same
KR100719200B1 (en) Information processing apparatus, recording medium for memory managing program, and memory managing method
JP2001154838A (en) Software editing device and storage medium
JP2003288213A (en) Boot program storage device and method of storing boot program of electronic appliance
JP2004005343A (en) Information processing system, information processing device, its method, storage medium, and program
JPH0454529A (en) Available period limit system for evaluating software
JP2005234957A (en) Method and program for controlling data access for flash memory
JPH08328845A (en) Control program rewriting method for rom
JPH0844571A (en) Program rewrite method for system rom and computer system using this method
CN117806924B (en) Control method and device of indicating device, server and medium
JPH1139010A (en) Device and method for supporting program generation for programmable controller
JP2002351749A (en) Check sum adjusting method
JPH03105358A (en) Copying device control system
JP2002116942A (en) Memory unit
JPH0261897A (en) Prom writer
JP2738611B2 (en) Electronic equipment
JPH06139064A (en) Countermeasure device against bug for electronic equipment

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020903