JP6294021B2 - Signal control apparatus and history data storage method - Google Patents

Signal control apparatus and history data storage method Download PDF

Info

Publication number
JP6294021B2
JP6294021B2 JP2013152602A JP2013152602A JP6294021B2 JP 6294021 B2 JP6294021 B2 JP 6294021B2 JP 2013152602 A JP2013152602 A JP 2013152602A JP 2013152602 A JP2013152602 A JP 2013152602A JP 6294021 B2 JP6294021 B2 JP 6294021B2
Authority
JP
Japan
Prior art keywords
history data
file
management information
end position
storage medium
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013152602A
Other languages
Japanese (ja)
Other versions
JP2015022691A (en
Inventor
匡秀 白畑
匡秀 白畑
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.)
Koito Electric IndustriesLtd
Original Assignee
Koito Electric IndustriesLtd
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 Koito Electric IndustriesLtd filed Critical Koito Electric IndustriesLtd
Priority to JP2013152602A priority Critical patent/JP6294021B2/en
Publication of JP2015022691A publication Critical patent/JP2015022691A/en
Application granted granted Critical
Publication of JP6294021B2 publication Critical patent/JP6294021B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、交通信号制御システムに用いられる信号制御装置および履歴データ保存方法に関する。   The present invention relates to a signal control device and a history data storage method used in a traffic signal control system.

信号機を制御する信号制御装置には、事故発生時の信号機の制御状態などを把握できるようにするために、信号機の制御履歴などの履歴データを装置内部に蓄積する履歴機能が設けられる。   The signal control device for controlling the traffic signal is provided with a history function for accumulating history data such as a traffic signal control history in the device so that the control state of the traffic signal at the time of the accident can be grasped.

履歴データを装置内部に蓄積する信号制御機としては、例えば、時間帯ごとの青、黄、赤の表示時間等の制御パラメータと発生した異常の種類、発生時刻などの異常履歴情報を記憶部に記憶するものなどがある(特許文献1参照)。   As a signal controller that accumulates history data inside the device, for example, control parameters such as blue, yellow, and red display times for each time zone and the type of abnormality that has occurred, abnormality history information such as the occurrence time, etc. are stored in the storage unit. There is something to memorize (see Patent Document 1).

また、特許文献2には、オフライン信号制御機において、信号灯の制御の実行履歴情報を装置内部の記憶装置に保存し、その装置内部の記憶装置からノート型パーソナルコンピュータなどに実行履歴情報を吸い上げて、動作状態の確認を行うことなどが記載されている。   Further, in Patent Document 2, in an offline signal controller, the execution history information of signal lamp control is stored in a storage device inside the apparatus, and the execution history information is sucked up from the storage device inside the apparatus to a notebook personal computer or the like. It is described that the operation state is confirmed.

特開2001−297398号公報JP 2001-297398 A 特開2006−171983号公報(段落0005)JP 2006-171983 (paragraph 0005)

信号制御装置の記憶装置から履歴データをパーソナルコンピュータに移動させる方法として、例えばCF(コンパクトフラッシュ(登録商標)カードなどの着脱自在な記憶媒体を用いることが検討されている。この場合、パーソナルコンピュータのオペレーティングシステムとの親和性の点から、記憶媒体はファイルシステムによって履歴データのファイルが管理される仕組みが想定される。   As a method of moving history data from the storage device of the signal control device to the personal computer, for example, the use of a removable storage medium such as a CF (Compact Flash (registered trademark) card has been studied. From the viewpoint of compatibility with the operating system, it is assumed that the history data file is managed by the file system on the storage medium.

しかしながら、汎用的なオペレーティングシステムに採用されるファイルシステムは管理領域の破壊によってファイルのアクセスができなくなる可能性がある。特に、商用電源と接続して動作する信号制御装置を想定した場合、管理領域のアクセス中に停電事故などによって管理領域が破壊され、履歴データが読み出せなくなることがある。   However, a file system employed in a general-purpose operating system may not be able to access files due to destruction of the management area. In particular, assuming a signal control device that operates in connection with a commercial power supply, the management area may be destroyed due to a power failure or the like during access to the management area, and history data may not be read.

以上のような事情に鑑み、本発明の目的は、記憶媒体に保存された履歴データを読み出せなくなることを可及的に防止することのできる信号制御装置および履歴データ保存方法を提供することにある。   In view of the circumstances as described above, an object of the present invention is to provide a signal control device and a history data storage method capable of preventing the history data stored in the storage medium from being unable to be read as much as possible. is there.

上記目的を達成するため、本発明の一形態に係る信号制御装置は、信号灯器の制御を行う信号制御装置において、全体の記憶領域が所定のファイルシステムに対応する管理領域とデータ領域とに区分され、前記データ領域に、前記信号灯器の制御に関する履歴データが書き込まれる履歴データファイルと、前記履歴データファイルのファイル名、ファイル先頭位置、ファイル最終位置、および書き込み終了位置の各情報を少なくとも含む管理情報が書き込まれる管理情報ファイルとが設定される記憶媒体の着脱が可能な記憶媒体接続部と、前記履歴データを生成し、前記管理情報をもとに当該生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出し、前記履歴データファイルに前記履歴データを書き込み、前記算出された書き込み終了位置の情報で前記管理情報ファイルを更新する処理部とを具備する。   In order to achieve the above object, a signal control device according to an aspect of the present invention is a signal control device that controls a signal lamp, and the entire storage area is divided into a management area and a data area corresponding to a predetermined file system. And a history data file in which history data relating to the control of the signal lamp is written in the data area, and a management including at least each information of a file name, a file head position, a file end position, and a writing end position of the history data file A storage medium connection unit capable of attaching and detaching a storage medium in which a management information file to which information is written is set, and generating the history data, and on the storage medium of the generated history data based on the management information The write start position and write end position are calculated, and the history data is written to the history data file. Comprising a processing unit for updating the management information file with the information of the writing end position the calculated.

本発明によれば、記憶媒体接続部に接続された記憶媒体のデータ領域に設けられた管理情報ファイルの管理情報を用いて履歴データファイルにアクセスすることができる。ファイルシステムに対応する管理領域をアクセスすることがないので、管理領域の破壊によって履歴データファイルのアクセスが不可となるのを防止できる。   According to the present invention, the history data file can be accessed using the management information of the management information file provided in the data area of the storage medium connected to the storage medium connection unit. Since the management area corresponding to the file system is not accessed, it is possible to prevent the history data file from being disabled due to destruction of the management area.

本発明は、最新の前記管理情報ファイルを保持することが可能なバックアップ電源付きのメモリをさらに具備し、前記処理部は、前記履歴データを生成し、前記管理情報をもとに当該生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出した後、前記履歴データファイルに前記履歴データを書き込みかつ前記データ領域の前記管理情報ファイルを更新する前に、前記算出された書き込み終了位置の情報で前記メモリの前記管理情報ファイルを更新することとしてよい。   The present invention further includes a memory with a backup power supply capable of holding the latest management information file, and the processing unit generates the history data and the generated management data is generated based on the management information. After calculating the writing start position and writing end position of the history data on the storage medium, the calculated writing is performed before writing the history data to the history data file and updating the management information file in the data area. The management information file in the memory may be updated with end position information.

これにより、データ領域の管理情報ファイルが破壊されても、メモリの管理情報ファイルでデータ領域の管理情報ファイルを復元することができ、記憶媒体に保存された履歴データを読み出せなくなることを可及的に防止することができる。   As a result, even if the management information file of the data area is destroyed, the management information file of the data area can be restored with the management information file of the memory, and it is possible to make it impossible to read the history data stored in the storage medium. Can be prevented.

本発明において、前記処理部は、前記メモリの前記管理情報ファイルに記述された前記書き込み終了位置の情報と前記データ領域の前記管理情報ファイルに記述された前記書き込み終了位置の情報とを比較し、一致しない場合、前記メモリの前記管理情報ファイルに記述された前記書き込み終了位置の情報をもとに、前記生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出し、前記履歴データファイルに前記履歴データを書き込み、前記算出された書き込み終了位置の情報で前記データ領域の前記管理情報ファイルを更新するにようにしてもよい。   In the present invention, the processing unit compares the write end position information described in the management information file of the memory with the write end position information described in the management information file of the data area, If they do not match, based on the information on the write end position described in the management information file of the memory, calculate the write start position and the write end position on the storage medium of the generated history data, The history data may be written into a history data file, and the management information file in the data area may be updated with the calculated write end position information.

これにより、データ領域の管理情報ファイルが破壊されても、メモリの管理情報ファイルを用いて、データ領域の履歴データファイルに履歴データを書き込むことができ、かつメモリの管理情報でデータ領域の管理情報ファイルを復元することができる。   As a result, even if the management information file of the data area is destroyed, the history data can be written to the history data file of the data area using the management information file of the memory area, and the management information of the data area can be written with the management information of the memory area. The file can be restored.

本発明の別の形態の信号制御装置の履歴データ保存方法は、信号灯器の制御を行う信号制御装置の履歴データ保存方法において、着脱自在な記憶媒体の記憶領域を所定のファイルシステムに対応する管理領域とデータ領域とに区分し、前記データ領域に、前記信号灯器の制御に関する履歴データが書き込まれる履歴データファイルと、前記履歴データファイルのファイル名、ファイル先頭位置、ファイル最終位置、および書き込み終了位置の各情報を少なくとも含む管理情報が書き込まれる管理情報ファイルとを設定し、前記履歴データを生成し、前記管理情報をもとに当該生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出し、前記履歴データファイルに前記履歴データを書き込み、前記算出された書き込み終了位置の情報で前記管理情報ファイルを更新するというものである。   According to another aspect of the present invention, there is provided a history data storage method for a signal control apparatus, wherein the storage area of a removable storage medium is managed corresponding to a predetermined file system. A history data file into which history data relating to the control of the signal lamp is written, a file name of the history data file, a file start position, a file end position, and a write end position. A management information file to which management information including at least each of the information is written is generated, the history data is generated, and the writing start position and writing of the generated history data on the storage medium based on the management information An end position is calculated, the history data is written to the history data file, and the calculated The information of the end position write attempts is that updating the management information file.

本発明によれば、記憶媒体に保存された履歴データを読み出せなくなることを可及的に防止することができる。   ADVANTAGE OF THE INVENTION According to this invention, it can prevent as much as possible that it becomes impossible to read the historical data preserve | saved at the storage medium.

本発明の一実施形態に係る交通信号制御システムの構成を示す図である。It is a figure which shows the structure of the traffic signal control system which concerns on one Embodiment of this invention. 図1の信号制御装置のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the signal control apparatus of FIG. 現示データの説明図である。It is explanatory drawing of present data. リムーバブル記憶媒体の記録領域の構成を示す図である。It is a figure which shows the structure of the recording area of a removable storage medium. 管理情報ファイルの構成を示す図である。It is a figure which shows the structure of a management information file. RAMおよびリムーバブル記憶媒体に書き込まれる管理情報ファイルおよび履歴データファイルの関係を示す図である。It is a figure which shows the relationship between the management information file and history data file which are written in RAM and a removable storage medium. 履歴データをリムーバブル記憶媒体に書き込むときの動作を示すフローチャートである。It is a flowchart which shows operation | movement at the time of writing log | history data in a removable storage medium.

以下、図面を参照しながら、本発明の実施形態を説明する。
図1は、本発明の一実施形態に係る交通信号制御システムの構成を示す図である。
この交通信号制御システム100は、交差点10で単独で交通信号を制御するシステムである。この交通信号制御システム100は、車両用信号機1、2と、歩行者用信号機1P、2Pと、信号制御装置3とを備える。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing a configuration of a traffic signal control system according to an embodiment of the present invention.
The traffic signal control system 100 is a system that controls traffic signals independently at the intersection 10. The traffic signal control system 100 includes vehicle traffic signals 1 and 2, pedestrian traffic signals 1 </ b> P and 2 </ b> P, and a signal control device 3.

車両用信号機1、2は、車両に対する通行権の有無や切り替わりの過渡状態を、例えば、青色、黄色及び赤色の3つの灯器などを用いて表示する。   The traffic signals 1 and 2 for the vehicle display the presence / absence of the right of traffic to the vehicle and the transitional state of switching using, for example, three lamps of blue, yellow and red.

歩行者用信号機1P、2Pは、歩行者に対する通行権の有無や切り替わりの過渡状態を、例えば、青色及び赤色の2つの灯器などを用いて表示する。   The pedestrian traffic lights 1P, 2P display the presence / absence of the right of passage for pedestrians and the transitional state of switching using, for example, two blue and red lamps.

信号制御装置3は、交差点10毎の交通信号制御システム100の全体的な制御を行う。   The signal control device 3 performs overall control of the traffic signal control system 100 for each intersection 10.

図2は図1の信号制御装置3のハードウェア構成を示す図である。
同図に示すように、この信号制御装置3は、制御部30と、SSU(ソリッド・ステート・リレー・ユニット:灯器開閉部)31とを備える。
FIG. 2 is a diagram showing a hardware configuration of the signal control device 3 of FIG.
As shown in the figure, the signal control device 3 includes a control unit 30 and an SSU (solid state relay unit: lamp opening / closing unit) 31.

制御部30は、CPU301、RAM302、ROM303、現示データROM304、フラッシュROM305、外部IF(インタフェース)部306、灯器制御信号生成部307、リムーバブル記憶媒体接続部308、バス309、および電源部310を備える。制御部30は、汎用的なオペレーティングシステムによって動作するPCのハードウェア構成を備える。   The control unit 30 includes a CPU 301, a RAM 302, a ROM 303, a display data ROM 304, a flash ROM 305, an external IF (interface) unit 306, a lamp control signal generation unit 307, a removable storage medium connection unit 308, a bus 309, and a power supply unit 310. Prepare. The control unit 30 includes a hardware configuration of a PC that is operated by a general-purpose operating system.

CPU301(Central Processing Unit)は、制御部30において各種の演算及び制御の処理を行うデバイスである。これは特許請求の範囲の「処理部」に相当するものである。   A CPU 301 (Central Processing Unit) is a device that performs various calculations and control processes in the control unit 30. This corresponds to the “processing unit” in the claims.

RAM302(Random Access Memory)は、CPU301のための作業領域および履歴データの一時保存空間などとして用いられる、SRAM(Static Random Access Memory)などのメモリ素子である。RAM302は、その記憶内容がバッテリ302aによって保持されるものであり、信号制御装置3の電源部310への電源の供給が断たれから例えば約12時間程度は記憶内容を保持することができる。これは特許請求の範囲の「メモリ」に相当するものである。   A RAM 302 (Random Access Memory) is a memory element such as an SRAM (Static Random Access Memory) used as a work area for the CPU 301 and a temporary storage space for history data. The stored contents of the RAM 302 are held by the battery 302a, and the stored contents can be held for, for example, about 12 hours after the power supply to the power supply unit 310 of the signal control device 3 is cut off. This corresponds to the “memory” in the claims.

ROM(Read Only Memory)は、制御部30において用いられる各種のデータやプログラムなどが固定的に格納されたメモリデバイスである。   A ROM (Read Only Memory) is a memory device in which various data and programs used in the control unit 30 are fixedly stored.

現示データROM304は、現示データが格納されたROMである。現示データROM304は電気的にデータの書き換えや消去が可能なフラッシュROMなどの不揮発性メモリで構成される。
図3は現示データの説明図である。同図に示すように、現示データは、交通信号制御システム100が設置された交差点10において同時に通行権が与えられた車と歩行者の交通の流れを、信号表示の単位であるステップ毎の各灯の状態(点灯、消灯、点滅)と表示させる時間(設定秒数)で定量的に表現した信号パラメータである。
The display data ROM 304 is a ROM in which display data is stored. The display data ROM 304 is composed of a nonvolatile memory such as a flash ROM capable of electrically rewriting and erasing data.
FIG. 3 is an explanatory diagram of the present data. As shown in the figure, the present data shows the traffic flow of vehicles and pedestrians that are given the right of traffic at the intersection 10 where the traffic signal control system 100 is installed at each step which is a unit of signal display. It is a signal parameter expressed quantitatively by the state of each lamp (lighted, turned off, blinking) and the time (set seconds) to be displayed.

現示データには、さらに、信号現示が一巡するのに必要とされる時間(秒)を示すサイクル、この信号の1サイクル中に占める各現示の時間的比率を示すスプリット、および同じサイクルを有する信号機群の間での信号の位相のずれを表わすオフセットなども含まれる。現示データROM304には、複数の種類の現示データが格納されており、CPU301は、日種(平日、土曜日、日曜日など)および時間帯に応じて参照する現示データを切り替える。   The indication data further includes a cycle indicating the time (in seconds) required for the signal indication to make a round, a split indicating the time ratio of each indication in one cycle of the signal, and the same cycle. An offset indicating a phase shift of the signal between the traffic signal groups having the same is also included. The display data ROM 304 stores a plurality of types of display data, and the CPU 301 switches display data to be referred to according to the day type (weekdays, Saturday, Sunday, etc.) and the time zone.

図2に示す信号制御装置3の構成の説明に戻る。
外部IF部306は、走行車両量を感知する車両感知器4などからの信号の入力、押ボタン式交通信号機に設けられた押ボタン箱5が押下されたか否かを示す信号の入力、さらには押ボタン箱5からの入力の状態に従って押ボタン箱5に対し、押ボタン押下確認などの信号を出力したりする。また、外部IF部306は、他の信号制御装置3´との間での信号の入出力も行う。
Returning to the description of the configuration of the signal control device 3 shown in FIG.
The external IF unit 306 inputs a signal from the vehicle detector 4 that senses the amount of the traveling vehicle, inputs a signal indicating whether or not the pushbutton box 5 provided in the pushbutton traffic signal is pressed, In accordance with the state of input from the push button box 5, a signal such as a push button confirmation is output to the push button box 5. The external IF unit 306 also inputs / outputs signals with the other signal control device 3 ′.

CPU301は、RAM302に格納された制御プログラムに従って、現示データROM304から参照した現示データをもとに、車両用信号機1、2および歩行者用信号機1P、2Pの各々の灯器に対する灯器制御信号の生成を灯器制御信号生成部307に指示する。また、CPU301は、外部IF部306を介して接続された車両感知器4や押しボタン箱5からのセンサ入力などをもとに、各灯器の点滅状態の切替タイミングを制御する。さらにCPU301は、日種(平日、土曜日、日曜日など)および時間帯に応じて予め用意された複数の制御パターンの中から現在の日時に応じた制御パターンを選択して、各ステップの各灯器の状態の表示秒数を設定する。   The CPU 301 controls the lamps for the lamps of the vehicle traffic lights 1 and 2 and the pedestrian traffic lights 1P and 2P based on the display data referenced from the display data ROM 304 in accordance with a control program stored in the RAM 302. Instructs the lamp control signal generation unit 307 to generate a signal. Further, the CPU 301 controls the switching timing of the blinking state of each lamp based on sensor inputs from the vehicle detector 4 and the push button box 5 connected via the external IF unit 306. Further, the CPU 301 selects a control pattern according to the current date and time from among a plurality of control patterns prepared in advance according to the day type (weekday, Saturday, Sunday, etc.) and the time zone, and each lamp of each step Sets the number of seconds to display the status.

灯器制御信号生成部307は、CPU301からの指令をもとに、SSU31に対して各々の灯器の状態を切り替えるための灯器制御信号を供給する集積回路である。   The lamp control signal generator 307 is an integrated circuit that supplies a lamp control signal for switching the state of each lamp to the SSU 31 based on a command from the CPU 301.

フラッシュROM305は、信号制御装置3内で検出された各種の履歴データを例えば1週間分保存するための書き換えおよび消去が可能な不揮発性のメモリデバイスである。   The flash ROM 305 is a non-volatile memory device that can be rewritten and erased to store various history data detected in the signal control device 3 for, for example, one week.

リムーバブル記憶媒体接続部308は、リムーバブル記憶媒体40の接続が可能とされ、リムーバブル記憶媒体40に対してデータの書き込みおよび読み出しを行う。   The removable storage medium connection unit 308 can be connected to the removable storage medium 40, and writes and reads data to and from the removable storage medium 40.

リムーバブル記憶媒体40は、例えばCF(コンパクトフラッシュ(登録商標)カード、SD(登録商標)メモリカード、その他の不揮発性のメモリを記憶媒体として用いたメモリカード、あるいはハードディスクドライブなど、書き換えおよび消去が可能な着脱自在な記憶媒体である。リムーバブル記憶媒体40は、信号制御装置3内で検出された各種の履歴データを、フラッシュROM305のそれよりも長い期間(例えば1年分)保存できる記憶容量を有する。   The removable storage medium 40 can be rewritten and erased, for example, a CF (compact flash (registered trademark) card, SD (registered trademark) memory card, a memory card using other nonvolatile memory as a storage medium, or a hard disk drive. The removable storage medium 40 has a storage capacity capable of storing various history data detected in the signal control device 3 for a longer period (for example, one year) than that of the flash ROM 305. .

バス309は、信号制御装置3の各部の間で各種の信号を入出力するための信号伝送路である。上記のCPU301、RAM302、ROM303、現示データROM304、フラッシュROM305、外部IF部306、灯器制御信号生成部307、リムーバブル記憶媒体接続部308は相互にバス309を通じて互いに接続される。   The bus 309 is a signal transmission path for inputting / outputting various signals between the components of the signal control device 3. The CPU 301, RAM 302, ROM 303, display data ROM 304, flash ROM 305, external IF unit 306, lamp control signal generation unit 307, and removable storage medium connection unit 308 are mutually connected through a bus 309.

以上が信号制御装置3の制御部30の構成の説明である。
そして制御部30内の灯器制御信号生成部307にはSSU31が接続される。SSU31は、灯器制御信号生成部307より供給された灯器制御信号に従って、車両用信号機1、2および歩行者用信号機1P、2Pの各々の灯器の開閉を制御するための駆動出力を出力する。これにより各灯器の状態(点灯、消灯、点滅)の制御が行われる。
The above is the description of the configuration of the control unit 30 of the signal control device 3.
The SSU 31 is connected to the lamp control signal generation unit 307 in the control unit 30. The SSU 31 outputs a drive output for controlling the opening and closing of each of the vehicle traffic lights 1 and 2 and the pedestrian traffic lights 1P and 2P according to the lamp control signal supplied from the lamp control signal generator 307. To do. Thereby, the state (lighting, extinguishing, blinking) of each lamp is controlled.

[履歴保管機能について]
次に、本実施形態の信号制御装置3の履歴保管機能について説明する。
[History storage function]
Next, the history storage function of the signal control device 3 of the present embodiment will be described.

交差点での事故が発生した場合、事故発生時から前後数十分間の制御状態を把握したいと言う要望に応じるために、この信号制御装置3では、1週間分の履歴データをフラッシュROM305に記録する機能に加えて、1年分以上の履歴データをリムーバブル記憶媒体接続部308に接続されたリムーバブル記憶媒体40に保存する機能が設けられている。これらを総称して「履歴保管機能」と呼ぶこととする。   In the event of an accident at an intersection, this signal control device 3 records one week of history data in the flash ROM 305 in order to respond to the desire to grasp the control state several tens of minutes before and after the accident. In addition to this function, there is provided a function of storing history data for one year or more in the removable storage medium 40 connected to the removable storage medium connection unit 308. These are collectively referred to as “history storage function”.

履歴保管機能では、リムーバブル記憶媒体接続部308へのリムーバブル記憶媒体40の接続の有無をCPU301が判断し、リムーバブル記憶媒体40が接続されていなければフラッシュROM305だけに履歴データを保存し、リムーバブル記憶媒体40が接続されている場合には、少なくともリムーバブル記憶媒体40に履歴データを保存する。このときフラッシュROM305にも履歴データを同時に記録してもよい。   In the history storage function, the CPU 301 determines whether the removable storage medium 40 is connected to the removable storage medium connection unit 308. If the removable storage medium 40 is not connected, the history data is stored only in the flash ROM 305, and the removable storage medium is stored. When 40 is connected, at least history data is stored in the removable storage medium 40. At this time, history data may be simultaneously recorded in the flash ROM 305.

フラッシュROM305およびリムーバブル記憶媒体40に保存される履歴データとしては、例えば、
1.信号制御履歴
2.現示データの切替履歴
3.現示データROMの内容
4.制御実行履歴
5.異常履歴
6.運用メッセージ
などがある。
As history data stored in the flash ROM 305 and the removable storage medium 40, for example,
1. 1. Signal control history 2. Current data switching history 3. Contents of display data ROM 4. Control execution history Abnormality history There are operational messages.

信号制御履歴は、サイクル毎の階梯実行秒数、階梯実行現示データ番号、階梯実行灯色出力情報などである。   The signal control history includes the number of seconds of execution of the floor for each cycle, the data number of the floor execution display data, and the information on the output of the floor execution lamp color.

現示データの切替履歴は、運用中に発生した実行現示データの切替発生日時、切替発生時の階梯番号、切替前後の実行現示データ番号などである。   The switching history of the current data includes the switching occurrence date and time of the execution current data generated during the operation, the floor number at the time of the switching, the execution current data number before and after the switching, and the like.

現示データROMの内容は、運用中に変更された現示データROM304の内容である。   The content of the display data ROM is the content of the display data ROM 304 changed during operation.

制御実行履歴は、サイクル毎の階梯実行秒数、動作ステータス、動作レベル、実行中付加機能などである。   The control execution history includes the number of steps executed for each cycle, the operation status, the operation level, the additional function being executed, and the like.

異常履歴は、動作中に発生した異常内容、発生日時、発生時の階梯・経過秒数、動作ステータス、動作レベル、実行中付加機能、異常発生回数などである。   The abnormality history includes the details of the abnormality that occurred during the operation, the date and time of occurrence, the number of steps / elapsed seconds at the time of occurrence, the operation status, the operation level, the additional function being executed, and the number of occurrences of the abnormality.

運用メッセージは、運用中に発生した指定イベントの発生日時、内容などである。   The operation message includes the date and time of occurrence of the specified event that occurred during operation, the content, and the like.

以上の履歴データは、フラッシュROM305には例えば1週間分保存され、リムーバブル記憶媒体40には例えば1年分以上保存される。なお、フラッシュROM305およびリムーバブル記憶媒体40の記憶容量に空きがなくなった場合には、最も古いデータに対して最新のデータが上書きされる。   The above history data is stored in the flash ROM 305 for one week, for example, and is stored in the removable storage medium 40 for, for example, one year or more. When there is no more free space in the storage capacity of the flash ROM 305 and the removable storage medium 40, the latest data is overwritten on the oldest data.

[リムーバブル記憶媒体40への履歴データの記録方法]
次に、リムーバブル記憶媒体40への履歴データの記録方法について説明する。
リムーバブル記憶媒体40の記憶空間は、PCに用いられる汎用のオペレーティングシステムの基本機能であるファイルシステムでフォーマットされている必要がある。
[Recording method of history data to the removable storage medium 40]
Next, a method for recording history data in the removable storage medium 40 will be described.
The storage space of the removable storage medium 40 needs to be formatted with a file system that is a basic function of a general-purpose operating system used in a PC.

ファイルシステムは、記憶媒体にPCから利用可能な記憶空間として設定されたパーティションを管理領域とデータ領域とに分けて管理する。データ領域はファイルを構成するデータが記録される領域である。管理領域は、データ領域のどこにファイルのデータが記録されているかを管理するための情報が記録される領域である。一般的な運用においては、ファイルが新規に作成されると、そのファイルを管理するための情報が管理領域に構造化されて記録され、ファイルが削除されると、そのファイルを管理するための情報が管理領域から削除される。なお、PCに用いられる汎用のファイルシステムとしては、例えば、FAT(File Allocation Table)などが知られている。本発明は、FATを利用することに限定されるものではないが、本実施形態ではFATを利用することを想定している。   The file system manages a partition set as a storage space that can be used from a PC as a storage medium by dividing it into a management area and a data area. The data area is an area in which data constituting the file is recorded. The management area is an area in which information for managing where in the data area the file data is recorded is recorded. In general operation, when a file is newly created, information for managing the file is structured and recorded in the management area, and when the file is deleted, information for managing the file is recorded. Is deleted from the management area. As a general-purpose file system used for a PC, for example, FAT (File Allocation Table) is known. Although the present invention is not limited to using FAT, the present embodiment assumes that FAT is used.

この種のファイルシステムでは、FAT領域が何らかの原因で破壊されると、ファイルをアクセスできなくなることが知られている。FAT領域が破壊される限定の一つとして、FAT領域の更新中に停電等による電源断が発生した場合などが挙げられる。本実施形態のように商用電源を用いて動作する信号制御装置3を想定した場合、やはりFAT領域の更新中の電源断によるFAT領域の破壊が懸念される。特に1年分以上の履歴データを保存するリムーバブル記憶媒体40がFAT領域の破壊によりアクセス不能に陥った場合の弊害は大きい。   In this type of file system, it is known that if the FAT area is destroyed for some reason, the file cannot be accessed. As one of the limitations that the FAT area is destroyed, there is a case where a power interruption due to a power failure or the like occurs during the update of the FAT area. Assuming the signal control device 3 that operates using a commercial power supply as in the present embodiment, there is a concern that the FAT area may be destroyed due to a power interruption while the FAT area is being updated. In particular, there is a great adverse effect when the removable storage medium 40 that stores history data for one year or more becomes inaccessible due to destruction of the FAT area.

本実施形態の信号制御装置3では、このように問題を解決するために、リムーバブル記憶媒体40に保存されるファイルの管理について次のような仕組みを採用した。   In order to solve the problem as described above, the signal control apparatus 3 according to the present embodiment employs the following mechanism for managing files stored in the removable storage medium 40.

[本実施形態のファイル管理の仕組みについて]
図4は、リムーバブル記憶媒体40の記録領域の構成を示す図である。
まず、係員はPCを用いてリムーバブル記憶媒体40に対してFATフォーマットを行う。このFATフォーマットは、リムーバブル記憶媒体40の記録領域をクラスタと呼ばれる所定ブロックサイズの単位に論理的に分割し、さらに記録領域をFAT領域11とデータ領域21とに設ける処理を言う。例えばFAT16でフォーマットが行われた場合、リムーバブル記憶媒体40の記録領域は2の16乗(=65536)個のクラスタに分割される。
[File management mechanism of this embodiment]
FIG. 4 is a diagram showing the configuration of the recording area of the removable storage medium 40.
First, the clerk performs FAT formatting on the removable storage medium 40 using a PC. This FAT format refers to a process of logically dividing the recording area of the removable storage medium 40 into units of a predetermined block size called a cluster, and further providing the recording area in the FAT area 11 and the data area 21. For example, when formatting is performed with the FAT 16, the recording area of the removable storage medium 40 is divided into 2 16 (= 65536) clusters.

FAT領域11は、一般的には、データ領域21においてファイルの実データが記録されたクラスタのポインタのつながりをFAT番号によって管理する領域である。但し、本実施形態の信号制御装置3では、ファイルシステムを使ってデータ領域にアクセスすることは想定されていないため、交通信号制御システム100の運用中も、FAT領域11はフォーマット後の状態のままである。   The FAT area 11 is an area for managing the connection of the pointers of the clusters in which the actual data of the file is recorded in the data area 21 using the FAT number. However, in the signal control device 3 of the present embodiment, since it is not assumed that the data area is accessed using the file system, the FAT area 11 remains in the state after formatting even during operation of the traffic signal control system 100. It is.

FATフォーマットによってリムーバブル記憶媒体40の記録領域にFAT領域11およびデータ領域21が作成された後、係員はPC上で専用フォーマットプログラムを起動させる。この専用フォーマットプログラムは、データ領域21に、管理情報ファイル211と、履歴データ種別毎の履歴データファイル212,213,214,215,216,217を作成するためのプログラムである。なお、図4において、データ領域21における各ファイル211−217の存在のみを表し、実際の記録位置を示すものではない。   After the FAT area 11 and the data area 21 are created in the recording area of the removable storage medium 40 by the FAT format, the staff starts the dedicated format program on the PC. This dedicated format program is a program for creating a management information file 211 and history data files 212, 213, 214, 215, 216, and 217 for each history data type in the data area 21. In FIG. 4, only the existence of each file 211-217 in the data area 21 is shown, and the actual recording position is not shown.

ここで、管理情報ファイル211と履歴データファイル212−217について説明する。
管理情報ファイル211は、各々の履歴データファイル212−217を管理するための情報が書き込まれるファイルである。管理情報ファイルには、図5に示すように、履歴データファイル毎の管理情報として、例えば、ファイル名、作成日、ファイル先頭位置、ファイル終り位置(またはファイルサイズ)、最終書き込み日時、書き込み終了位置などが格納される。
Here, the management information file 211 and the history data files 212-217 will be described.
The management information file 211 is a file in which information for managing each history data file 212-217 is written. As shown in FIG. 5, in the management information file, as management information for each history data file, for example, file name, creation date, file start position, file end position (or file size), last write date and time, write end position Etc. are stored.

専用フォーマットプログラムにおいては、種別毎の履歴データファイル212−217について、ファイル名、ファイル先頭位置、ファイル最終位置(またはファイルサイズ)などが予め設定されている。この専用フォーマットプログラムによって、上記の管理情報ファイル211は、履歴データファイル212−217の作成と同時に作成され、データ領域21に書き込まれる。また、最終書き込み日時および書き込み終了位置の各管理情報は、履歴データファイル212−217への履歴データの書き込みや追加書き込みが発生する度に更新される。   In the dedicated format program, the file name, the file start position, the file end position (or file size), etc. are set in advance for the history data file 212-217 for each type. With the dedicated format program, the management information file 211 is created simultaneously with the creation of the history data files 212-217 and written into the data area 21. Further, the management information of the last writing date and time and the writing end position is updated each time history data is written to the history data file 212-217 or additional writing occurs.

履歴データファイル212−217は、履歴データが格納されるファイルである。履歴データファイル212−217は、履歴保管機能によってリムーバブル記憶媒体40に記録される履歴データの種別毎に専用フォーマットプログラムによって作成される。なお、作成直後の履歴データファイル212−217には、まだ履歴データとして有意なデータは何も書き込まれていない状態である。交通信号制御システム100の運用時、履歴データファイル212−217の先頭位置から履歴データが順次に書き込まれて行き、履歴データファイル212−217の最後まで履歴データが書き込まれたなら、再び履歴データファイル212−217の先頭位置に戻って古い履歴データが新しい履歴データによって上書きされる。   History data files 212-217 are files in which history data is stored. The history data files 212-217 are created by a dedicated format program for each type of history data recorded in the removable storage medium 40 by the history storage function. In the history data file 212-217 immediately after creation, no significant data has been written yet as history data. When the traffic signal control system 100 is operated, history data is sequentially written from the head position of the history data file 212-217. If history data is written to the end of the history data file 212-217, the history data file is again written. The old history data is overwritten with the new history data by returning to the head position at 212-217.

以上のようにしてPC上でFATフォーマットとされ、かつそのデータ領域21に管理情報ファイル211と履歴データファイル212−217が設定されたリムーバブル記憶媒体40は、PCから取り外されて、本実施形態の信号制御装置3のリムーバブル記憶媒体接続部308に接続される。   As described above, the removable storage medium 40 in which the FAT format is set on the PC and the management information file 211 and the history data files 212 to 217 are set in the data area 21 is removed from the PC and It is connected to the removable storage medium connection unit 308 of the signal control device 3.

ここまでの説明から理解されるように、この信号制御装置3では、FAT領域が使用されないため、FATファイルシステムによるファイル管理は行われることはない。FATファイルシステムに代えて、データ領域21に記録された管理情報ファイル211が各々の履歴データファイル212−217の管理を担うことになる。   As can be understood from the above description, in the signal control device 3, since the FAT area is not used, file management by the FAT file system is not performed. Instead of the FAT file system, the management information file 211 recorded in the data area 21 is responsible for managing the respective history data files 212-217.

また、図6に示すように、管理情報ファイル211の管理情報はRAM302にも管理情報ファイル221として保存される。これによりリムーバブル記憶媒体40の管理情報ファイル211がもし壊れたとしても、RAM302に保持された管理情報ファイル221を用いてリムーバブル記憶媒体40の管理情報ファイル211を修復することができる。また、RAM302には、リムーバブル記憶媒体40に保存された履歴データファイル212−217の修復等に備え、約12時間分の履歴データファイル222−227も保持されている。   As shown in FIG. 6, the management information in the management information file 211 is also stored in the RAM 302 as the management information file 221. Thus, even if the management information file 211 of the removable storage medium 40 is broken, the management information file 211 of the removable storage medium 40 can be restored using the management information file 221 held in the RAM 302. The RAM 302 also holds about 12 hours of history data files 222-227 in preparation for the restoration of the history data files 212-217 stored in the removable storage medium 40.

次に、図7のフローチャートを参照して、履歴データをリムーバブル記憶媒体40の各履歴データファイル212−217に書き込むときの動作を説明する。
なお、履歴データは種別毎に存在し、各種別の履歴データの書き込みは本来、対応する履歴データファイル212−217に対して各々行われるが、ここでは説明の簡単のため、1つの履歴データファイル212への履歴データの書き込みについてのみ説明することとする。
Next, with reference to the flowchart of FIG. 7, an operation when writing history data to each history data file 212-217 of the removable storage medium 40 will be described.
Note that history data exists for each type, and each type of history data is originally written to the corresponding history data file 212-217. Here, for the sake of simplicity, one history data file is written. Only the writing of history data to 212 will be described.

信号制御装置3の制御部30において、CPU301は、履歴保管機能のプログラムからの履歴データ書き込みリクエストを受けると、以下の履歴データの保存のための動作を開始する。なお、履歴データ書き込みリクエストは、例えば、所定の時間周期で発生する。   In the control unit 30 of the signal control device 3, when receiving a history data write request from the history storage function program, the CPU 301 starts the following operation for storing history data. The history data write request is generated at a predetermined time period, for example.

まず、CPU301は、RAM302に収集された生の履歴データから、保存用の履歴データを作成する(ステップS101)。保存用の履歴データの作成が完了すると、CPU301は、リムーバブル記憶媒体40のデータ領域21において今回の履歴データを書き込む先頭位置を判定するために、RAM302に保持されている管理情報ファイル221に記述された履歴データファイル212の書き込み終了位置とリムーバブル記憶媒体40の管理情報ファイル211に記述された履歴データファイル212の書き込み終了位置とを比較する(ステップS102)。   First, the CPU 301 creates saving history data from the raw history data collected in the RAM 302 (step S101). When the creation of history data for storage is completed, the CPU 301 is described in the management information file 221 held in the RAM 302 in order to determine the start position for writing the current history data in the data area 21 of the removable storage medium 40. The writing end position of the history data file 212 is compared with the writing end position of the history data file 212 described in the management information file 211 of the removable storage medium 40 (step S102).

各々の管理情報ファイル211、221の履歴データファイル212の書き込み終了位置どうしが同一である場合には(ステップS102のYES)、CPU301はリムーバブル記憶媒体40のデータ領域21における上記の書き込み終了位置の次の位置を今回の履歴データの書き込み開始位置として計算するとともに、今回書き込む履歴データのサイズと書き込み開始位置とから書き込み終了位置を計算する(ステップS103)。   When the write end positions of the history data files 212 of the management information files 211 and 221 are the same (YES in step S102), the CPU 301 follows the write end position in the data area 21 of the removable storage medium 40. Is calculated as the writing start position of the current history data, and the writing end position is calculated from the size of the history data to be written this time and the writing start position (step S103).

そしてCPU301は、RAM302の管理情報ファイル221における書き込み終了位置および最終書き込み日時の情報を各々最新の情報に更新する(ステップS104)。ここで、書き込み終了位置の次の位置とは、例えば、書き込み終了位置を含むレコードの次のレコードの先頭位置などである。   Then, the CPU 301 updates the write end position and the last write date / time information in the management information file 221 of the RAM 302 to the latest information (step S104). Here, the position next to the write end position is, for example, the head position of the record next to the record including the write end position.

RAM302の管理情報ファイル221の更新後、CPU301は、リムーバブル記憶媒体40の履歴データファイルの上記計算された書き込み開始位置から履歴データを書き込む(ステップS105)。履歴データファイルへの履歴データの書き込み完了後、CPU301は、リムーバブル記憶媒体40の管理情報ファイル221の書き込み終了位置および最終書き込み日時を各々最新の情報に更新する(ステップS106)。   After updating the management information file 221 in the RAM 302, the CPU 301 writes history data from the calculated write start position of the history data file in the removable storage medium 40 (step S105). After completing the writing of the history data to the history data file, the CPU 301 updates the writing end position and the last writing date / time of the management information file 221 of the removable storage medium 40 to the latest information (step S106).

また、ステップS102での比較で、各々の管理情報ファイル211、221の書き込み終了位置どうしが不一致である場合には(ステップS102のNO)、CPU301はRAM302に保持されている管理情報ファイル221に記述された書き込み終了位置の次の位置を今回の履歴データの書き込み開始位置として計算するとともに、今回書き込む履歴データのサイズと書き込み開始位置とから書き込み終了位置を計算する(ステップS107)。そしてCPU301は、計算によって得た書き込み終了位置の情報でRAM302の管理情報ファイル221を更新する(ステップS108)。   If the write end positions of the management information files 211 and 221 do not match in the comparison in step S102 (NO in step S102), the CPU 301 describes in the management information file 221 held in the RAM 302. The next position of the written end position is calculated as the write start position of the current history data, and the write end position is calculated from the size of the history data to be written this time and the write start position (step S107). Then, the CPU 301 updates the management information file 221 in the RAM 302 with the write end position information obtained by the calculation (step S108).

以後の動作は同様である。
すなわち、RAM302の管理情報ファイル221の更新後、CPU301は、リムーバブル記憶媒体40の履歴データファイル212の上記計算された書き込み開始位置から履歴データを書き込む(ステップS105)。履歴データファイル212への履歴データの書き込み完了後、CPU301は、リムーバブル記憶媒体40の管理情報ファイル221の書き込み終了位置および最終書き込み日時を各々最新の情報に更新する(ステップS106)。
以上で、リムーバブル記憶媒体40に履歴データを書き込む動作が終了となる。
その他の履歴データファイル213−217への履歴データの書き込みも同様に行われる。
The subsequent operation is the same.
That is, after updating the management information file 221 in the RAM 302, the CPU 301 writes history data from the calculated write start position of the history data file 212 in the removable storage medium 40 (step S105). After completing the writing of the history data to the history data file 212, the CPU 301 updates the writing end position and the last writing date / time of the management information file 221 of the removable storage medium 40 to the latest information (step S106).
Thus, the operation of writing history data to the removable storage medium 40 is completed.
The history data is written to the other history data files 213 to 217 in the same manner.

以上の動作において、信号制御装置3の制御部30のCPU301は、RAM302とリムーバブル記憶媒体40の各々の管理情報ファイル221、211の書き込み終了位置どうしが不一致である場合には、RAM302に保持されている管理情報ファイル221に記述された書き込み終了位置を参照して次の書き込み開始位置を決定することとした。これは次のような理由による。   In the above operation, the CPU 301 of the control unit 30 of the signal control device 3 stores the RAM 302 and the management information files 221 and 211 of the removable storage medium 40 in the RAM 302 when the write end positions do not match. The next write start position is determined with reference to the write end position described in the management information file 221. This is due to the following reason.

例えば、リムーバブル記憶媒体40の履歴データファイル212−217の更新中など、RAM302の管理情報ファイル221が更新されてからリムーバブル記憶媒体40の管理情報ファイル211の更新が完了するまでの間に信号制御装置3への電源断が発生した場合、リムーバブル記憶媒体40の管理情報ファイル211における書き込み終了位置とRAM302の管理情報ファイル221における書き込み終了位置とが不一致の状態となる。このときRAM302の管理情報ファイル221の内容はバッテリバックアップによって信号制御装置3への電源断が発生する直前の更新状態に保持されているため、仮にリムーバブル記憶媒体40の履歴データファイル212−217への今回の履歴データの書き込みに成功していれば、リムーバブル記憶媒体40の管理情報ファイル211の書き込み終了位置の情報をRAM302の管理情報ファイル221の情報で更新するだけで、リムーバブル記憶媒体40に記録される履歴データのロスをゼロにすることができる。   For example, the signal control device between the update of the management information file 221 of the RAM 302 and the completion of the update of the management information file 211 of the removable storage medium 40, such as during the update of the history data file 212-217 of the removable storage medium 40 When the power to 3 is interrupted, the write end position in the management information file 211 of the removable storage medium 40 and the write end position in the management information file 221 of the RAM 302 are inconsistent. At this time, since the contents of the management information file 221 in the RAM 302 are held in the updated state immediately before the power interruption to the signal control device 3 occurs due to battery backup, the history data file 212-217 in the removable storage medium 40 is temporarily stored. If the current history data has been successfully written, the write end position information in the management information file 211 of the removable storage medium 40 is updated with the information in the management information file 221 of the RAM 302, and is recorded in the removable storage medium 40. History data loss can be reduced to zero.

また、リムーバブル記憶媒体40の履歴データファイル212−217への今回の履歴データの書き込みに失敗していたとしても、次回の履歴データから、正しくリムーバブル記憶媒体40の履歴データファイル212−217に書き込むことができる。また、履歴データのロス分は、RAM302に保存されている履歴データをリムーバブル記憶媒体40の履歴データファイル212−217に上書きすることによって補うことができ、結果的には履歴データのロス分をゼロにできる。   Even if the writing of the current history data to the history data file 212-217 of the removable storage medium 40 has failed, the next history data is correctly written to the history data file 212-217 of the removable storage medium 40. Can do. The history data loss can be compensated by overwriting the history data stored in the RAM 302 on the history data file 212-217 of the removable storage medium 40. As a result, the history data loss is reduced to zero. Can be.

以上の動作では、書き込み終了位置の情報だけを比較に用いたが、書き込み終了位置と最終書き込み日時の各情報を比較に用いるようにしてもよい。   In the above operation, only the information on the write end position is used for the comparison, but each information on the write end position and the last write date and time may be used for the comparison.

なお、本実施形態では、リムーバブル記憶媒体40のアクセスにおいてファイルシステムを用いないため、リムーバブル記憶媒体40へのアクセスはリムーバブル記憶媒体40の記録位置を直接指定して行われる必要がある。そのためリムーバブル記憶媒体40としては、記録位置を直接指定してアクセス可能なものである必要がある。例えば、CFメディアにおいて記録位置を直接指定してアクセス可能なインタフェース方式として「メモリモード」がある。   In the present embodiment, since the file system is not used for accessing the removable storage medium 40, the access to the removable storage medium 40 needs to be performed by directly specifying the recording position of the removable storage medium 40. Therefore, the removable storage medium 40 needs to be accessible by directly specifying the recording position. For example, there is a “memory mode” as an interface method that can be accessed by directly specifying a recording position on a CF medium.

[FAT領域の意義等]
本実施形態の信号制御装置3では、リムーバブル記憶媒体40に記録された履歴データファイル212−217の管理にファイルシステムを利用しないのに拘わらずリムーバブル記憶媒体40の記録領域にFAT領域11を設けた。これは、次の理由による。
[Significance of FAT area, etc.]
In the signal control device 3 of the present embodiment, the FAT area 11 is provided in the recording area of the removable storage medium 40 regardless of the fact that the file system is not used to manage the history data files 212-217 recorded in the removable storage medium 40. . This is due to the following reason.

一般的にファイルシステムはオペレーティングシステムが提供する基本的な機能の一つである。例えば、ファイルシステムがFATである場合には、FAT領域が壊れていたりするとオペレーティングシステムが異常を判定し、正常に動作しなくなるおそれがある。本実施形態の信号制御装置3では、リムーバブル記憶媒体40の記録領域にFAT領域11を形式的に設けることによって、オペレーティングシステムがFAT領域の異常を判定して正しく動作しなくなることを防止することができる。また、FAT領域11は更新されることがないため、電源断などによってFAT領域11が破壊される可能性はほぼ無くなり、FAT領域の異常によってオペレーティングシステムの動作が不安定になることを、より確実に抑えることができる。   In general, the file system is one of basic functions provided by the operating system. For example, in the case where the file system is FAT, if the FAT area is broken, the operating system may determine an abnormality and may not operate normally. In the signal control device 3 of the present embodiment, the FAT area 11 is formally provided in the recording area of the removable storage medium 40, thereby preventing the operating system from determining that the FAT area is abnormal and not operating correctly. it can. In addition, since the FAT area 11 is not updated, there is almost no possibility that the FAT area 11 is destroyed due to power failure or the like, and it is more reliable that the operation of the operating system becomes unstable due to an abnormality in the FAT area. Can be suppressed.

[本実施形態の効果等]
本実施形態の信号制御装置3では、FATファイルシステムによるファイル管理に代えて、データ領域21に保存された管理情報ファイル211によって履歴データファイル212−217の管理が行われる。この管理情報ファイル211は、リムーバブル記憶媒体40のデータ領域21のみならず、バッテリバックアップ機能を有するRAM302にも管理情報ファイル221として記憶されている。このため、もしリムーバブル記憶媒体40の管理情報ファイル211が壊れても、RAM302に保持されている管理情報ファイル221をリムーバブル記憶媒体40にコピーするだけで容易に正常な状態に戻すことができる。これにより信頼性をよりいっそう向上させることができる。
[Effects of this embodiment]
In the signal control device 3 of the present embodiment, the history data files 212 to 217 are managed by the management information file 211 stored in the data area 21 instead of the file management by the FAT file system. The management information file 211 is stored as the management information file 221 not only in the data area 21 of the removable storage medium 40 but also in the RAM 302 having a battery backup function. For this reason, even if the management information file 211 of the removable storage medium 40 is broken, the management information file 221 held in the RAM 302 can be easily restored to a normal state simply by copying it to the removable storage medium 40. Thereby, reliability can be further improved.

また、バッテリバックアップ機能を有するRAM302には直近約12時間分の履歴データが保持されているので、もしリムーバブル記憶媒体40のデータ領域21の履歴データファイル212−217の更新部分が電源断により壊れても、RAM302に保持されている履歴データファイル222−227の履歴データで履歴データファイル212−217の破壊部分を修復することができる。   Further, since the RAM 302 having the battery backup function holds the history data for the last approximately 12 hours, the update portion of the history data file 212-217 in the data area 21 of the removable storage medium 40 is broken due to power failure. In addition, it is possible to repair the destroyed portion of the history data file 212-217 with the history data of the history data file 222-227 held in the RAM 302.

信号制御装置3に接続されたリムーバブル記憶媒体40は、例えば、定期的に係員によってマニュアルで信号制御装置3のリムーバブル記憶媒体接続部308から抜き取られて、係員のPCに接続される。係員のPCは、例えば、履歴データ管理用のアプリケーションによって、管理情報ファイル211に記述された情報をもとにリムーバブル記憶媒体40から履歴データファイル212−217を読み出し、ハードディスクドライブなどのストレージデバイスにコピーする。   The removable storage medium 40 connected to the signal control device 3 is, for example, manually removed from the removable storage medium connection unit 308 of the signal control device 3 manually by an attendant and connected to the attendant's PC. The clerk's PC reads the history data file 212-217 from the removable storage medium 40 based on the information described in the management information file 211 by a history data management application, for example, and copies it to a storage device such as a hard disk drive To do.

その後、リムーバブル記憶媒体40は、係員のPCから抜き取られて信号制御装置3のリムーバブル記憶媒体接続部308に再び接続される。ここで、リムーバブル記憶媒体40のデータ領域21には履歴データファイル212−217および管理情報ファイル211が残っているので、信号制御装置3による履歴データの書き込みはこれまで通り継続される。   Thereafter, the removable storage medium 40 is removed from the attendant's PC and reconnected to the removable storage medium connection unit 308 of the signal control device 3. Here, since the history data file 212-217 and the management information file 211 remain in the data area 21 of the removable storage medium 40, the history data writing by the signal control device 3 is continued as before.

[変形例等]
以上、交通信号制御システムの信号制御装置の実施形態を説明したが、本発明は、電子広告塔の制御に関する履歴データを保存する技術にも応用することが可能である。
その他、大量の履歴データを保存する必要があり、その履歴データを装置から取り出して精査する必要のある分野にも本発明は応用可能である。
[Modifications, etc.]
As mentioned above, although embodiment of the signal control apparatus of the traffic signal control system was described, this invention can be applied also to the technique which preserve | saves the historical data regarding control of an electronic advertising tower.
In addition, the present invention can be applied to fields where it is necessary to store a large amount of history data, and the history data needs to be taken out from the apparatus and examined.

また、上記の実施形態では、ファイルシステムとしてFATを採用した場合を説明したが、本発明はファイルシステムの種類に依存しないことは言うまでもない。
また、履歴データについても上記の実施形態で挙げたものに本発明は限定されない。
さらに、上記の実施形態では、フラッシュROMを搭載した信号制御装置を例示したが、本発明においてフラッシュROMは必須ではない。
In the above embodiment, the case where the FAT is adopted as the file system has been described, but it goes without saying that the present invention does not depend on the type of the file system.
Further, the present invention is not limited to the history data described in the above embodiment.
Furthermore, in the above embodiment, the signal control device equipped with the flash ROM is exemplified, but the flash ROM is not essential in the present invention.

3…信号制御装置
11…FAT領域
21…データ領域
30…制御部
31…SSU(灯器開閉部)
40…リムーバブル記憶媒体
100…交通信号制御システム
211、221…管理情報ファイル
212−217、222−227…履歴データファイル
301…CPU
302…RAM
302a…バッテリ
303…ROM
304…現示データROM
307…灯器制御信号生成部
308…リムーバブル記憶媒体接続部
DESCRIPTION OF SYMBOLS 3 ... Signal control apparatus 11 ... FAT area | region 21 ... Data area 30 ... Control part 31 ... SSU (lamp opening / closing part)
DESCRIPTION OF SYMBOLS 40 ... Removable storage medium 100 ... Traffic signal control system 211, 221 ... Management information file 212-217, 222-227 ... History data file 301 ... CPU
302 ... RAM
302a ... battery 303 ... ROM
304 ... Present data ROM
307: Lamp control signal generation unit 308: Removable storage medium connection unit

Claims (6)

信号灯器の制御を行う信号制御装置において、
全体の記憶領域が所定のファイルシステムに対応する管理領域とデータ領域とに区分され、前記データ領域に、前記信号灯器の制御に関する履歴データが書き込まれる履歴データファイルと、前記履歴データファイルのファイル名、ファイル先頭位置、ファイル最終位置、および書き込み終了位置の各情報を少なくとも含む管理情報が書き込まれる管理情報ファイルとが設定される記憶媒体の着脱が可能な記憶媒体接続部と、
前記履歴データを生成し、前記管理情報をもとに当該生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出し、前記履歴データファイルに前記履歴データを書き込み、前記算出された書き込み終了位置の情報で前記管理情報ファイルを更新する処理部と
を具備する信号制御装置。
In a signal control device that controls a signal lamp,
The entire storage area is divided into a management area and a data area corresponding to a predetermined file system, and a history data file in which history data related to the control of the signal lamp is written in the data area, and a file name of the history data file A storage medium connecting unit capable of attaching and detaching a storage medium in which a management information file to which management information including at least information on each of a file start position, a file end position, and a write end position is written is set;
Generating the history data, calculating a write start position and a write end position of the generated history data on the storage medium based on the management information, writing the history data to the history data file, and calculating And a processing unit that updates the management information file with the information of the written end position.
請求項1に記載の信号制御装置であって、
最新の前記管理情報ファイルを保持することが可能なバックアップ電源付きのメモリをさらに具備し、
前記処理部は、前記履歴データを生成し、前記管理情報をもとに当該生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出した後、前記履歴データファイルに前記履歴データを書き込みかつ前記データ領域の前記管理情報ファイルを更新する前に、前記算出された書き込み終了位置の情報で前記メモリに前記管理情報ファイルとして保存された管理情報ファイルを更新する
信号制御装置。
The signal control device according to claim 1,
A memory with a backup power source capable of holding the latest management information file;
The processing unit generates the history data, calculates a writing start position and a writing end position of the generated history data on the storage medium based on the management information, and then stores the history data in the history data file. before updating the management information file writing and the data area data, the the information of the calculated write end position, the signal control unit for updating the management information file stored as the management information file to the memory.
請求項2に記載の信号制御装置であって、
前記処理部は、前記メモリの前記管理情報ファイルに記述された前記書き込み終了位置の情報と前記データ領域の前記管理情報ファイルに記述された前記書き込み終了位置の情報とを比較し、一致しない場合、前記メモリの前記管理情報ファイルに記述された前記書き込み終了位置の情報をもとに、前記生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出し、前記履歴データファイルに前記履歴データを書き込み、前記算出された書き込み終了位置の情報で前記データ領域の前記管理情報ファイルを更新する
信号制御装置。
The signal control device according to claim 2,
The processing unit compares the information of the write end position described in the management information file of the memory with the information of the write end position described in the management information file of the data area. Based on the write end position information described in the management information file of the memory, a write start position and a write end position of the generated history data on the storage medium are calculated, and the history data file is stored in the history data file. A signal control device that writes the history data and updates the management information file in the data area with the calculated write end position information.
信号灯器の制御を行う信号制御装置の履歴データ保存方法において、
着脱自在な記憶媒体の記憶領域を所定のファイルシステムに対応する管理領域とデータ領域とに区分し、
前記データ領域に、前記信号灯器の制御に関する履歴データが書き込まれる履歴データファイルと、前記履歴データファイルのファイル名、ファイル先頭位置、ファイル最終位置、および書き込み終了位置の各情報を少なくとも含む管理情報が書き込まれる管理情報ファイルとを設定し、
前記履歴データを生成し、
前記管理情報をもとに当該生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出し、前記履歴データファイルに前記履歴データを書き込み、前記算出された書き込み終了位置の情報で前記管理情報ファイルを更新する
信号制御装置の履歴データ保存方法。
In the history data storage method of the signal control device that controls the signal lamp,
The storage area of the removable storage medium is divided into a management area and a data area corresponding to a predetermined file system,
A history data file in which history data related to the control of the signal lamp is written in the data area, and management information including at least information on the file name, the file start position, the file end position, and the write end position of the history data file. Set the management information file to be written,
Generating the historical data;
Based on the management information, a write start position and a write end position on the storage medium of the generated history data are calculated, the history data is written to the history data file, and the calculated write end position information The history information storage method of the signal control device, wherein the management information file is updated by the method.
請求項4に記載の信号制御装置の履歴データ保存方法であって、
前記履歴データを生成し、前記管理情報をもとに当該生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出した後、前記履歴データファイルに前記履歴データを書き込みかつ前記データ領域の前記管理情報ファイルを更新する前に、前記算出された書き込み終了位置の情報で、最新の前記管理情報ファイルを保持することが可能なバックアップ電源付きのメモリに前記管理情報ファイルとして保存された管理情報ファイルを更新する
信号制御装置の履歴データ保存方法。
A method for storing history data of a signal control device according to claim 4,
Generating the history data, calculating a write start position and a write end position of the generated history data on the storage medium based on the management information, writing the history data to the history data file, and Before updating the management information file in the data area, the calculated write end position information is saved as the management information file in a memory with a backup power source capable of holding the latest management information file. A history data storage method for a signal control device that updates a management information file.
請求項5に記載の信号制御装置の履歴データ保存方法であって、
前記メモリの前記管理情報ファイルに記述された前記書き込み終了位置の情報と前記データ領域の前記管理情報ファイルに記述された前記書き込み終了位置の情報とを比較し、一致しない場合、前記メモリの前記管理情報ファイルに記述された前記書き込み終了位置の情報をもとに、前記生成された履歴データの前記記憶媒体上の書き込み開始位置および書き込み終了位置を算出し、前記履歴データファイルに前記履歴データを書き込み、前記算出された書き込み終了位置の情報で前記データ領域の前記管理情報ファイルを更新する
信号制御装置の履歴データ保存方法。
A history data storage method for a signal control device according to claim 5,
The write end position information described in the management information file of the memory is compared with the write end position information described in the management information file of the data area. Based on the write end position information described in the information file, the write start position and write end position of the generated history data on the storage medium are calculated, and the history data is written to the history data file. The history data storage method of the signal control device, wherein the management information file in the data area is updated with the calculated write end position information.
JP2013152602A 2013-07-23 2013-07-23 Signal control apparatus and history data storage method Active JP6294021B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013152602A JP6294021B2 (en) 2013-07-23 2013-07-23 Signal control apparatus and history data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013152602A JP6294021B2 (en) 2013-07-23 2013-07-23 Signal control apparatus and history data storage method

Publications (2)

Publication Number Publication Date
JP2015022691A JP2015022691A (en) 2015-02-02
JP6294021B2 true JP6294021B2 (en) 2018-03-14

Family

ID=52487041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013152602A Active JP6294021B2 (en) 2013-07-23 2013-07-23 Signal control apparatus and history data storage method

Country Status (1)

Country Link
JP (1) JP6294021B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110491144B (en) * 2019-07-23 2021-08-31 平安国际智慧城市科技股份有限公司 Traffic light duration adjusting method based on road condition prediction and related equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003208344A (en) * 2002-01-15 2003-07-25 Matsushita Electric Ind Co Ltd Device and method for recording and reproducing information
JP4222131B2 (en) * 2003-07-10 2009-02-12 住友電気工業株式会社 Signal control device
JP2005149291A (en) * 2003-11-18 2005-06-09 Hitachi High-Technologies Corp Filesystem, program therefor, and information processing system
JP4213628B2 (en) * 2004-05-28 2009-01-21 株式会社東芝 Information terminal equipment

Also Published As

Publication number Publication date
JP2015022691A (en) 2015-02-02

Similar Documents

Publication Publication Date Title
JP3511576B2 (en) Disc recording / reproducing method and apparatus
US7904637B2 (en) Information processing apparatus, lifetime monitoring method and program for monitoring lifetime of storage device including flash memory
JP2002278819A (en) Generation management method for snap shot image, storage medium and generation management system
JPH11146572A (en) Uninterrupted power supply system, backup object device used for the system and record medium in which program for making computer operate as the backup object device are recorded
JP6294021B2 (en) Signal control apparatus and history data storage method
CN105247490A (en) Method for optimizing the use of a non-volatile memory in a motor vehicle computer for monitoring a functional member
JP4931213B2 (en) History recording device
JP2016081301A (en) Programmable logic controller, system, control method, and program
GB2286916A (en) A fault tolerant disk system and factory automation controller
US20070271311A1 (en) Disk array device and data management method for managing master data and replication data replicated from master data
JP2006338688A (en) Process control system
JP2001249852A (en) Electronic equipment
JP2010198314A (en) Information management device
JP2010176201A (en) Data loss prevention device for flash memory, and data loss prevention method for flash memory
JP2007156744A (en) Distributed monitoring control system
JP6966361B2 (en) Voltage drop detection system
JP2005128613A (en) Image forming device
JPH05265881A (en) Write protecting circuit of and write protecting method for non-volatile memory
JP2002169701A (en) Device and method for monitoring fpga version
JP4117111B2 (en) Process control system
JP3567216B2 (en) Air conditioner remote monitoring system
JP4115687B2 (en) Train operation management device and software renovation method thereof
JPH0365597B2 (en)
JPH0660023A (en) System switching method
JP6311525B2 (en) Storage medium management device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160725

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160727

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170627

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170821

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180116

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180215

R150 Certificate of patent or registration of utility model

Ref document number: 6294021

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250