Monitoring control device, log data storage method, and data storage program
The supervisory control device addresses data loss by periodically saving log data to alternate storage units, ensuring data integrity during storage unit failures or replacements.
Patent Information
- Application Number
- JP2023070553
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-24
- Publication Date
- 2024-11-06
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 2024156249000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a monitoring and control device, a log data storage method, and a data storage program that realize a wide-area monitoring and control system that remotely monitors and controls a facility. [Background technology]
[0002] Patent Document 1 discloses a processing system in which a plurality of control units having a redundant configuration and a plurality of cards capable of executing processing using data and backing up data of other cards are connected by a data transmission bus, and in which data can be backed up between the plurality of cards even when the control units are switched. Specifically, the communication units of each of the plurality of cards store the identifier of the card requesting the backup and the identifier of the card that is the backup source. The identifier of the card requesting the backup is the identifier of the card itself. The card that is the source of the backup data transmits a backup request message including the identifier of the card itself and the data to be backed up to all cards at once. The other cards that receive the backup request message determine whether the identifier of the card that is the source of the backup included in the backup request message, i.e., the identifier of the card requesting the backup, matches the identifier of the card that is the backup source that they hold. If they match, the other cards store the data to be backed up included in the backup request message in a specified area of their own cards. If they do not match, the other cards discard the backup request message. With this configuration, even if the amount of data to be backed up increases due to the processing system becoming larger or more complex, the backup process can be performed without putting a strain on communication for normal operation. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2014-182511 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the above conventional technology, when a destination card is replaced due to a malfunction of the destination card, a process occurs in which the identifier of the backup source card is registered in the replaced card. If the timing of a periodic backup operation occurs during this process, the replaced card cannot save the data to be backed up. Similarly, when the destination card is rebooted, the data to be backed up cannot be saved. In other words, the above conventional technology has a problem in that data loss occurs when a card is replaced, malfunctions, or rebooted.
[0005] The present disclosure has been made in consideration of the above, and aims to provide a monitoring and control device that, when periodically storing data in a storage unit incorporating a memory section, can prevent loss of data to be stored even when the storage unit is replaced, fails, or restarted. [Means for solving the problem]
[0006] In order to solve the above-mentioned problems and achieve the objective, the monitoring control device of the present disclosure is a monitoring control device in which a CPU unit having a built-in processor and a plurality of storage units having built-in memory units for storing data are connected via a serial communication cable, and which acquires log data from a monitored object and monitors the monitored object, and the CPU unit periodically transmits an instruction to save the log data in the storage unit based on setting information that defines the storage unit in which the log data of the monitored object is to be saved and the storage unit to switch to when the storage unit in which the log data is saved is unavailable. Effect of the Invention
[0007] According to the present disclosure, when data is periodically stored in a storage unit having a built-in memory section, it is possible to prevent loss of data to be stored even if the storage unit is replaced, fails, or restarted. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram illustrating an example of a configuration of a monitoring and control system including a monitoring and control device according to a first embodiment. [Diagram 2] FIG. 1 is a diagram illustrating an example of a configuration of a monitoring control device according to a first embodiment; [Diagram 3] FIG. 1 is a diagram showing another example of the configuration of a monitoring and control device according to the first embodiment; [Figure 4] FIG. 1 is a diagram showing another example of the configuration of a monitoring and control device according to the first embodiment; [Diagram 5] FIG. 1 is a diagram illustrating an example of a functional configuration of a monitoring control device according to a first embodiment; [Figure 6] FIG. 13 is a diagram showing an example of initial save destination setting information. [Figure 7] FIG. 11 is a diagram showing another example of the initial save destination information [Figure 8] FIG. 13 is a diagram showing an example of storage destination update information. [Figure 9] FIG. 13 is a diagram showing an example of storage destination switching information; [Figure 10] FIG. 1 is a diagram showing another example of the configuration of a monitoring and control device according to the first embodiment; [Figure 11] 1 is a flowchart showing an example of a procedure of a log data storage method according to the first embodiment. [Figure 12] 1 is a flowchart showing an example of a procedure of a log data storage method according to the first embodiment. [Figure 13] 1 is a flowchart showing an example of a procedure of a log data storage method according to the first embodiment. [Figure 14] FIG. 11 is a block diagram showing an example of a functional configuration of a monitoring control device according to a second embodiment. [Figure 15] 11 is a flowchart showing an example of a procedure of a log data storage method according to a second embodiment. [Figure 16] A block diagram showing an example of a dedicated processing circuit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A monitoring control device, a log data storage method, and a data storage program according to embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0010] Embodiment 1 FIG. 1 is a diagram showing a schematic example of a configuration of a monitoring control system including a monitoring control device according to a first embodiment. The monitoring control system 1 is a system that monitors a monitoring target using monitoring data obtained from a sensor (not shown) provided in the monitoring target for disaster prevention, facility management, and the like. The monitoring control system 1 includes a host monitoring control device 20A, a subordinate monitoring control device 20B, 20C, a monitoring control terminal 50, and a monitoring control data server 60. A plurality of the host monitoring control device 20A and the subordinate monitoring control device 20B, 20C are provided hierarchically. In the case of FIG. 1, a case where there are two hierarchies is shown, and the host monitoring control device 20A and the subordinate monitoring control device 20B, 20C are referred to as a monitoring control device 20 when they are not individually distinguished.
[0011] The lower level monitoring control devices 20B and 20C are connected to the upper level monitoring control device 20A via a network 70A which is a LAN (Local Area Network) line. The upper level monitoring control device 20A, the monitoring control terminal 50, and the monitoring control data server 60 are connected to each other via a network 70B which is a LAN line. An example of the networks 70A and 70B is an IP (Internet Protocol) network such as Ethernet (registered trademark).
[0012] The lower monitoring control devices 20B and 20C acquire monitoring data from sensors (not shown) that are geographically close to each other within a predetermined range and are installed in the monitored object. The lower monitoring control devices 20B and 20C aggregate the acquired monitoring data from the multiple sensors, perform a predetermined processing process, and transmit the processed data to the upper monitoring control device 20A. The sensors detect the state of the monitored object at the installation position at a predetermined collection period, and transmit the monitoring data, which is the result of the detection, to the lower monitoring control devices 20B and 20C. The sensors are connected to the lower monitoring control devices 20B and 20C via a wired or wireless network or signal line. Examples of the monitored object when the monitoring control system 1 is installed for disaster prevention are the flow rate of a river, the wind speed in a specific space, and the water level at a drainage pump station or a dam water gate. Examples of the monitored object when the monitoring control system 1 is installed for facility management are facilities such as tunnels and underground passages, power stations, radio relay stations, and power supply facilities at various sites such as buildings. The sensors are not installed at one location of the monitored objects, but at multiple locations throughout the monitored objects, and therefore sensors may be installed at multiple locations that are geographically separated.
[0013] The upper monitoring control device 20A is a device that monitors the monitoring target. The upper monitoring control device 20A acquires processed data from a plurality of lower monitoring control devices 20B, 20C connected via a network 70A. The upper monitoring control device 20A aggregates the processed data including the acquired monitoring data from the plurality of lower monitoring control devices 20B, 20C, processes it into a format that can be handled by the upper device, and transmits the new processed data, which has been processed into data in a communication format according to the communication protocol of the network 70B between the upper device, to the monitoring control terminal 50 and the monitoring control data server 60. In one example, when transmitting processed data to the monitoring control terminal 50, the upper monitoring control device 20A processes the data into information in a format that can be recognized by the user of the monitoring control terminal 50. In another example, when transmitting information to the monitoring control data server 60, the upper monitoring control device 20A processes the data into information in a format that can be managed by the monitoring control data server 60.
[0014] In addition, while Fig. 1 shows a case where the monitoring control device 20 is configured in two layers, it may be configured in three or more layers. Also, in Fig. 1, two lower-level monitoring control devices 20B and 20C are shown in the lower layer, but three or more monitoring control devices 20 may exist. Furthermore, the upper-level monitoring control device 20A may have a redundant configuration with other monitoring control devices 20.
[0015] The monitoring and control terminal 50 is a computer system that displays monitoring data acquired from end sensors in a format that can be recognized by the user. The monitoring and control terminal 50 also operates end process equipment in the monitored object according to instructions from the user or according to control based on the monitoring data. An example of end process equipment is a gate or a motor for opening the gate if the monitored object is a dam water gate, or a pump if the monitored object is a drainage pump station.
[0016] The monitoring and control data server 60 is a computer system that stores the processed data acquired from the upper level monitoring and control device 20A in a specified format. The processed data stored in the monitoring and control data server 60 is used for simulations, machine learning, and the like regarding the monitored object.
[0017] The monitoring control device 20 is realized by combining a plurality of hardware units each realizing one or a plurality of functions, and each of the plurality of hardware units operates in cooperation with each other. FIG. 2 is a diagram showing a schematic example of a configuration of the monitoring control device according to the first embodiment. The monitoring control device 20 includes a base unit 10, and a power supply card 11, a CPU (Central Processing Unit) card 12, a hub card 13, a communication control card 14, an IO (Input / Output) card 15, and a storage card 16, which correspond to the above-mentioned hardware units. Note that the numbers of the power supply cards 11, the CPU cards 12, the hub cards 13, the communication control cards 14, and the IO cards 15 shown in FIG. 2 are merely examples, and each of them can be any number. The number of the storage cards 16 is two or more.
[0018] The base unit 10 is a base member that supports and fixes the above-mentioned cards, and is a chassis having slots. The above-mentioned cards are mounted in the slots. The base unit 10 has built-in power supply lines for power supply, various signal lines, and cables for serial communication, and connectors are provided at the positions of the slots. In one example, a connector for power supply, a connector for signal lines, and a connector for serial communication are arranged for each slot. When the above-mentioned cards are mounted in the slots and the connectors of the cards are electrically connected to the connectors of the base unit 10, power supply, signal transmission and reception, and serial signal transmission and reception become possible.
[0019] The power supply card 11 supplies power to the other cards constituting the monitoring and controlling device 20, i.e., the CPU card 12, the hub card 13, the communication control card 14, the IO card 15, and the storage card 16, via a power supply line. In one example, the power supply card 11 has a power supply circuit and wiring built into a rectangular parallelepiped housing. The power supply card 11 is also called a power supply unit.
[0020] The CPU card 12 is a device control card that controls the operation of the entire monitoring and control device 20. The CPU card 12 has a built-in processor. In one example, the CPU card 12 has a built-in processor in a rectangular parallelepiped housing. The CPU card 12 has a LAN port 120. The LAN port 120 is connected to the hub card 13 via a LAN cable. The CPU card 12 also has a function of performing a prescribed data processing for monitoring data, which is data related to monitoring performed by the monitoring and control device 20. As described above, the prescribed data processing is a process of aggregating monitoring data from lower-level devices, processing the data, and transmitting the processed data to a higher-level device. In addition, the CPU card 12 has a function of storing the monitoring data that has passed through the monitoring and control device 20 in the storage card 16 via a cable for serial communication. The CPU card 12 corresponds to a CPU unit.
[0021] The hub card 13 constitutes a first internal network 81, which is an internal network in the monitoring and controlling device 20, and includes a plurality of LAN ports 130. The CPU card 12 or the communication control card 14 is connected to each of the plurality of LAN ports 130 included in the hub card 13 via a LAN cable. In one example, the hub card 13 has a LAN cable built into a rectangular parallelepiped housing, and the housing includes a plurality of LAN ports 130. The hub card 13 is also referred to as a hub unit.
[0022] The communication control card 14 functions as a network interface for connecting the monitoring and controlling device 20 to an external network. The communication control card 14 includes a LAN port 140A for connecting to the hub card 13 and an external interface 140B for connecting to the external network. The external interface 140B may be configured to connect to the external network by wire or wirelessly. The external network may be a digital network or an analog network. In the case of the monitoring and controlling device 20 shown in FIG. 1, one of the multiple communication control cards 14 is used to connect to the network 70A or the network 70B. In one example, the communication control card 14 has a circuit for communication control built in a rectangular parallelepiped housing, and the housing has a LAN port 140A and an external interface 140B. The communication control card 14 is also called a communication control unit.
[0023] The IO card 15 has a connection unit 150 for connecting devices, and various devices are directly connected to this connection unit 150. In one example, the IO card 15 has a circuit for connecting devices built into a rectangular parallelepiped housing, and the housing has the connection unit 150. The IO card 15 is also called an IO unit.
[0024] The storage card 16 is a data storage card that stores data. The storage card 16 has a built-in storage unit such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive) that stores data. In one example, the storage card 16 has a built-in storage unit in a rectangular parallelepiped housing. In the first embodiment, the storage card 16 stores monitoring data, which is data related to monitoring performed by the monitoring control device 20, that is, the monitoring data that has passed through the monitoring control device 20, as log data. The storage card 16 corresponds to a storage unit.
[0025] The CPU card 12 and the communication control card 14 are connected to the hub card 13. That is, the CPU card 12 and the communication control card 14 can communicate with each other via the first internal network 81. The CPU card 12 and the communication control card 14 can also communicate with each other via the second internal network 82 that supports serial communication within the monitoring and controlling device 20. Although not shown, serial ports are provided at positions where cables for serial communication of the CPU card 12, the hub card 13, the communication control card 14, the IO card 15, and the storage card 16 are connected. A cable for serial communication is used to connect between the serial port of each card and the connector for serial communication of the slot corresponding to each card of the base unit 10. The hub card 13, the IO card 15, and the storage card 16 are also connected to the second internal network 82. The communication methods supported by the first internal network 81 and the second internal network 82 are not limited to those shown in the figure. Any communication method may be used as long as it can realize a configuration in which the CPU card 12 and the communication control card 14 can communicate with each other via two internal networks.
[0026] With the above-mentioned configuration, the monitoring control device 20 is connected to other devices via communication lines, and is able to obtain log data from the monitoring target and monitor the monitoring target.
[0027] In the monitoring and control system 1, the monitoring data of each monitoring control device 20 is transmitted to the monitoring and control terminal 50 and the monitoring and control data server 60. However, during monitoring, due to a failure of the networks 70A, 70B, or a failure of a monitoring control device 20 installed between a certain monitoring control device 20 and the monitoring and control terminal 50 or the monitoring and control data server 60, the monitoring data stored in the monitoring and control data server 60 may be missing. Therefore, by backing up the monitoring data in each monitoring control device 20 as log data, it becomes possible to transmit the missing monitoring data to the monitoring and control terminal 50 and the monitoring and control data server 60 after the failure or the like is corrected. As a result, the monitoring and control terminal 50 and the monitoring and control data server 60 can perform processing related to monitoring using monitoring data without missing data. For these reasons, it is desirable for each monitoring control device 20 to store the data passing through each monitoring control device 20, and as shown in FIG. 2, each monitoring control device 20 is provided with a storage card 16, and the data passing through each monitoring control device 20 is stored in the storage card 16 in response to an instruction from the CPU card 12. At this time, the data is transmitted from the CPU card 12 to the storage card 16 via a cable for serial communication.
[0028] A configuration example of the monitoring control device 20 will be described. FIG. 3 is a diagram showing another example of the configuration of the monitoring control device according to the first embodiment. In the monitoring control device 20 shown in FIG. 3, a power supply card 11, a CPU card 12, a hub card 13, two communication control cards 14, a storage card 16a, an IO card 15, a storage card 16b, and a storage card 16c are mounted on a base unit 10. That is, in the example of FIG. 3, the monitoring control device 20 has three storage cards 16a, 16b, and 16c. In the monitoring control device 20, addresses are assigned to the IO card 15 and the storage cards 16a, 16b, and 16c located to the left of the communication control card 14.
[0029] In FIG. 3, the head address of the storage area of the storage card 16c is RT1, the head address of the storage area of the storage card 16b is RT2, the head address of the IO port provided in the IO card 15 is RT3, and the head address of the storage area of the storage card 16a is RT4. The CPU card 12 stores log data A in the storage cards 16c and 16a, and stores log data B in the storage card 16b. That is, the CPU card 12 has setting information set to store log data A in address RT1, log data B in address RT2, and log data A in address RT4. It is assumed that the log data B is data that does not have a large effect on the monitoring of the monitoring target, even if it is lost, compared to the log data A. Also, the log data A is data that is more important for the monitoring of the monitoring target than the log data B, and the data is stored in a duplicated form. That is, the storage card 16a has a function of backing up the log data A stored in the storage card 16c.
[0030] Fig. 4 is a diagram showing another example of the configuration of the monitoring control device according to the first embodiment. In the monitoring control device 20 shown in Fig. 4, a power supply card 11, a CPU card 12, a hub card 13, two communication control cards 14, a storage card 16a, a storage card 16b, a storage card 16c, and a storage card 16d are attached to a base unit 10. That is, in the example of Fig. 4, the monitoring control device 20 has four storage cards 16a, 16b, 16c, and 16d. Also, in Fig. 4, the start address of the storage area of the storage card 16d is RT1, the start address of the storage area of the storage card 16c is RT2, the start address of the storage area of the storage card 16b is RT3, and the start address of the storage area of the storage card 16a is RT4.
[0031] In the example of Figure 4, the CPU card 12 of the monitoring control device 20 sends an instruction to save the log data to the storage card 16a-16d as the destination, based on information that defines the storage cards 16c, 16d as the destination for saving the monitored log data to be saved, and the storage cards 16a, 16b to switch to when the destination storage cards 16c, 16d are not functioning, i.e., are unusable.
[0032] In one example, the CPU card 12 has setting information in which log data A is stored in address RT1, log data B is stored in address RT2, and addresses RT3 and RT4 are reserved. The CPU card 12 also has setting information in which, when the storage card 16c or the storage card 16d is in an unusable state due to replacement, failure, restart, or the like, the log data A that should be stored in the storage card 16d at address RT1 is stored in the storage card 16b at address RT3, and the log data B that should be stored in the storage card 16c at address RT2 is stored in the storage card 16a at address RT4.
[0033] As described above, the CPU card 12 holds setting information that defines in which storage card 16 the log data is to be saved, and saves the log data in the storage card 16 based on this setting information.
[0034] Next, the log data storage function of the monitoring control device 20 will be described. Fig. 5 is a diagram showing an example of a functional configuration of the monitoring control device according to the first embodiment. Note that Fig. 5 shows only the CPU card 12 and storage cards 16c and 16d, which are related to the storage of log data. In the following, the functional configuration of the CPU card 12 will be described first, followed by the functional configuration of the storage card 16. Furthermore, the storage cards 16a-16d will be referred to as storage card 16 when they are not individually distinguished.
[0035] The CPU card 12 periodically transmits an instruction to save the log data in the storage card 16 based on setting information that defines the storage card 16 as the storage destination for the log data to be saved and the storage unit to switch to when the storage card 16 as the storage destination is in an unusable state. The CPU card 12 has a storage destination initial setting information storage unit 121, a storage destination update information storage unit 122, a storage destination switching information storage unit 123, a card status management unit 124, and a serial communication unit 125.
[0036] The destination initial setting information storage unit 121 stores destination initial setting information including, as initial setting information, a card usable state and a storage target associated with each of the multiple storage cards 16a-16d when the monitoring control device 20 is configured. The destination initial setting information is set for each card to which an address is assigned. In the following, the time when a user, worker, etc. determines the card configuration of the monitoring control device 20, creates destination initial setting information indicating which storage card 16 the log data should be saved in this card configuration, and stores the information in the destination initial setting information storage unit 121 is defined as "initial". Note that the destination initial setting information does not have to include the card usable state.
[0037] Fig. 6 is a diagram showing an example of destination initial setting information. Fig. 6 shows an example of destination initial setting information of a monitoring control device 20 having the card configuration of Fig. 3. The destination initial setting information has items of address, card usable state, and storage target. One combination of address, card usable state, and storage target in the destination initial setting information is called a record. In this example, one record is generated on a card-by-card basis.
[0038] The address is the top address of each card assigned in the card configuration of the monitoring control device 20 in the initial state. The cards to which the addresses are assigned are the storage card 16 and the IO card 15. In the first embodiment, in order to make the storage card 16 to be the storage destination different for each storage target, the cards are identified using the top address of each card.
[0039] The card usable state is information indicating whether or not the card identified by the address can be used as the storage card 16. The card usable state corresponds to the unit state. Here, the card usable state is expressed as "enabled" or "not enabled". When the card usable state is "enabled", the CPU card 12 can access the storage card 16 and can save log data. Alternatively, when the card usable state is "enabled", the CPU card 12 can recognize the storage card 16, or the storage card 16 is functioning. When the card usable state is "not enabled", the CPU card 12 cannot access the storage card 16 and cannot save log data. Alternatively, when the card usable state is "not enabled", the CPU card 12 cannot recognize the storage card 16, or the storage card 16 is not functioning. When the card usable state is "not enabled", the storage card 16 is being replaced, is broken, is being rebooted, the card identified by the address is not the storage card 16, or the like.
[0040] The storage target is information indicating the type of log data to be stored in the storage card 16 when the card identified by the address is the storage card 16. The storage target may be a plurality of types of log data. When the monitoring control device 20 is a lower-level monitoring control device 20B, 20C connected to a sensor, the storage target may be classified for each sensor. In one example, data acquired from a certain sensor may be stored as log data A, and data acquired from another sensor may be stored as log data B, each in a different storage card 16. The storage target may also be classified according to the transmission source of the received data. In one example, data received from a lower-level device or a lower-level monitoring control device 20 may be stored as log data A, and data received from a higher-level monitoring control device 20 may be stored as log data B, each in a different storage card 16. When no content is set in the storage target, it indicates that no log data is stored in the card identified by the address and that the card is a spare storage card 16.
[0041] The storage destination initial setting information in FIG. 6 will be described with reference to FIG. 3. The first record in FIG. 6 indicates that the card with the address RT1 is the available storage card 16c, and that the log data A is to be stored in this storage card 16c. The second record in FIG. 6 indicates that the card with the address RT2 is the available storage card 16b, and that the log data B is to be stored in this storage card 16b. The third record in FIG. 6 indicates that the card with the address RT3 is the IO card 15, and that the log data is not to be stored in this IO card 15. Since the log data cannot be stored in the IO card 15, it is in the same state as the unusable storage card 16 from the viewpoint of the CPU card 12. The fourth record in FIG. 6 indicates that the card with the address RT4 is the available storage card 16a, and that the log data A is to be stored in this storage card 16a. In other words, it is set that the storage card 16a with the address RT4 functions as a backup for the log data A stored in the address RT1.
[0042] FIG. 7 is a diagram showing another example of the storage destination initial setting information. FIG. 7 shows an example of the storage destination initial setting information of the monitoring control device 20 having the card configuration of FIG. 4. The first record in FIG. 7 indicates that the card with the address RT1 is the available storage card 16d, and the log data A is stored in this storage card 16d. The second record in FIG. 7 indicates that the card with the address RT2 is the available storage card 16c, and the log data B is stored in this storage card 16c. The third and fourth records in FIG. 7 indicate that the cards with the addresses RT3 and RT4 are the available storage cards 16b and 16a, respectively, and the log data is not stored in these storage cards 16b and 16a. That is, in FIG. 7, the storage cards 16b and 16a with the addresses RT3 and RT4 are spare storage cards 16.
[0043] 5, the storage destination update information storage unit 122 stores storage destination update information that sets a card usable state, which is information indicating whether the storage card 16 is in a usable state or not, and log data to be saved, for each of the multiple storage cards 16. In the initial state, the storage destination update information is the same as the storage destination initial setting information, but when the operation of the monitoring and control device 20 starts and the storage card 16 becomes unusable due to replacement, failure, restart, etc., the storage destination update information is updated by the card status management unit 124. The storage destination update information is set for each card to which an address is assigned.
[0044] Fig. 8 is a diagram showing an example of the storage destination update information. As shown in Fig. 8, the storage destination update information has items such as address, card usable status, and storage target. These items are the same as the items in the storage destination initial setting information, so a description thereof will be omitted.
[0045] Returning to Fig. 5, the storage destination switching information storage unit 123 stores storage destination switching information that determines a storage unit to be switched to when the storage unit of the storage destination is in an unusable state. Specifically, the storage destination switching information is information that indicates the storage card 16 to which the log data to be saved in the unusable storage card 16 is switched when the storage card 16 changes from an usable state to an unusable state. In other words, the storage destination switching information is information that determines the storage card 16 to which the log data to be saved in the unusable storage card 16 is switched when the storage card 16 changes from an usable state to an unusable state. The storage destination switching information is set for each card to which an address is assigned.
[0046] Fig. 9 is a diagram showing an example of the storage destination switching information. Fig. 9 shows an example of the storage destination switching information of the monitoring control device 20 having the card configuration of Fig. 4 and the storage destination initial setting information of Fig. 7. The storage destination switching information is information that associates an initial setting address with a switching destination address. The initial setting address is a top address assigned to the storage card 16 of the monitoring control device 20 in an initial state. The switching destination address is an address of the storage card 16 that stores the log data to be saved that is set to the initial setting address when the storage card 16 corresponding to the initial setting address is in an unusable state.
[0047] 9, when the storage card 16d with the initial setting address RT1 is in an unusable state, the log data A is changed to the storage card 16b with the switching destination address RT3. Similarly, when the storage card 16c with the initial setting address RT2 is in an unusable state, the log data B is changed to the storage card 16a with the switching destination address RT4. Also, since the storage cards 16b and 16a with the initial setting addresses RT3 and RT4 are spare, the switching destination addresses are not set.
[0048] Returning to FIG. 5, the card status management unit 124 updates the contents of the storage destination update information using the storage destination initial setting information or the storage destination switching information according to the communication result with each storage card 16 by the serial communication unit 125, that is, when it is determined from the communication result with each storage card 16 that there has been a change in the storage card 16. When the storage card 16 whose card usable state in the storage destination update information is "available" changes to an unusable state due to replacement, failure, restart, or the like, the card status management unit 124 receives a card status change notification from the serial communication unit 125 indicating that the storage card 16 has changed to an unusable state. The card status change notification includes, for example, the address of the storage card 16 whose card usable state has changed and the contents of the change. The address of the storage card 16 whose card use state has changed is also referred to as a change target address. The card status management unit 124 acquires a change target address associated with the change target address included in the card status change notification from the storage destination switching information. The card status management unit 124 updates the storage target associated with the acquired switching destination address in the storage destination update information with the contents of the storage target associated with the change target address. Also, the card status management unit 124 sets the card usable state of the change target address to "unavailable" in the storage destination update information, and deletes the contents input to the storage target.
[0049] An example of the process of the card status management unit 124 in this case will be described below. In the initial state, the monitoring control device 20 has the configuration shown in Fig. 4, and the storage destination update information has the same contents as the storage destination initial setting information shown in Fig. 7. That is, the log data A is stored in the storage card 16d with the address RT1, and the log data B is stored in the storage card 16c with the address RT2.
[0050] FIG. 10 is a diagram showing another example of the configuration of the monitoring control device according to the first embodiment. In the state of FIG. 4, it is assumed that the storage card 16d becomes unusable as shown in FIG. 10 due to some cause. At this time, the card status management unit 124 receives a card status change notification indicating that the storage card 16d at the address RT1 becomes unusable from the serial communication unit 125. The card status management unit 124 refers to the storage destination switching information of FIG. 9 and acquires RT3 as a switching destination address when the initial setting address is RT1. Also, in the storage destination update information of FIG. 7, the card status management unit 124 sets "log data A" which is the storage target of the address RT1 included in the card status change notification to the storage target of the switching destination address RT3, sets the card usable state of the address RT1 to "unusable", and deletes the storage target. As a result, the storage destination update information is updated to the content shown in FIG. 8.
[0051] When the storage card 16, whose card usable state in the storage destination update information is "unavailable", changes to a usable state, the card status management unit 124 receives a card status change notification from the serial communication unit 125 indicating that the storage card 16 has changed to a usable state. In this case, the storage card 16 that has changed to a usable state needs to be restored to the setting of the storage destination initial setting information so that log data can be stored in the storage card 16 that has changed to a usable state. The card status management unit 124 acquires a switching destination address associated with the change target address in the storage destination switching information. Also, the card status management unit 124 acquires initial settings associated with the acquired switching destination address and the change target address included in the card status change notification from the storage destination initial setting information. The card status management unit 124 updates the contents associated with the switching destination address and the change target address in the storage destination update information with the contents of the initial setting. Also, the card status management unit 124 sets the card usable state associated with the change target address in the storage destination update information to "available".
[0052] An example of the process of the card status management unit 124 in this case will be described. In FIG. 10, the storage card 16d at the address RT1 is changed from an unusable state to an available state as shown in FIG. 4. The storage destination update information in the state of FIG. 10 has the contents shown in FIG. 8. The card status management unit 124 receives a card status change notification from the serial communication unit 125 indicating that the storage card 16d at the address RT1 has become available. The card status management unit 124 refers to the storage destination switching information in FIG. 9 and acquires RT3 as a switching destination address when the initial setting address is RT1. Also, the card status management unit 124 refers to the storage destination initial setting information in FIG. 7 and acquires "log data A" and "-", which are the contents of the initial settings of the storage target associated with the change target address RT1 and the switching destination address RT3, respectively, included in the card status change notification. In the storage destination update information in FIG. 8, the card status management unit 124 sets the storage target of the address RT1 to the initial setting "log data A" and sets the storage target of the address RT3 to the initial setting "-", that is, deletes the contents of the storage target.
[0053] The serial communication unit 125 periodically transmits a confirmation request message including an instruction to write log data or an instruction to monitor the card status to all cards registered in the storage destination update information via a serial communication cable by polling at a set time interval. That is, the serial communication unit 125 periodically transmits a confirmation request message to all storage cards 16 in the storage destination update information in order to confirm whether the storage card 16 matches the card usable status in the storage destination update information. The serial communication unit 125 also transmits a confirmation request message including the log data to be stored and an instruction to write the log data to the storage card 16 set as the storage target in the storage destination update information. The serial communication unit 125 corresponds to a first serial communication unit.
[0054] The log data communication method performed by serial communication unit 125 will be described in detail below. Serial communication unit 125 executes the log data storage process at a log write cycle, which is a set time interval. The log write cycle is desirably set to a length that allows changes in the presence or absence of storage card 16 to be grasped in real time, and is 10 msec as an example. During the log write cycle, log data is written or the card status is monitored for cards of all records registered in the storage destination update information.
[0055] The serial communication unit 125 sequentially polls the cards at the addresses registered in the storage destination update information, and writes log data or monitors the card status. Specifically, for cards registered in the storage destination update information with a card usable status of "OK", the serial communication unit 125 transmits a confirmation request message including log data set as the storage target and an instruction to write the log data. For cards registered in the storage destination update information with a card usable status of "NOT OK", the serial communication unit 125 transmits a confirmation request message including an instruction to monitor the card status, such as a health check. As an example, a High-Level Data Link Control (HDLC) frame is used for the confirmation request message.
[0056] If serial communication unit 125 receives an acknowledgement message from the destination card within a set time after sending the acknowledgement message including the write instruction, the serial communication unit 125 determines that there is no change in the presence or absence of the target card, and sends a acknowledgement message for the next card. The acknowledgement message includes information indicating that writing of the log data has been completed.
[0057] If the serial communication unit 125 does not receive an acknowledgement message from the destination card within a set time after sending a confirmation request message including an instruction to monitor the status, it determines that there is no change in the presence or absence of the target card, and sends a confirmation request message for the next card. Since a storage card 16 that is broken, being replaced, or rebooted cannot respond to a confirmation request message, if no acknowledgement message is returned, it is considered that the broken, replaced, or rebooted state continues.
[0058] If the serial communication unit 125 does not receive an acknowledgement message from the destination card within a set time after transmitting the confirmation request message including the write instruction, it determines that the target card has changed to an unusable state. The serial communication unit 125 notifies the card status management unit 124 of a card status change notification indicating that the card usable state of the target card has changed to "unusable". In addition, the serial communication unit 125 temporarily holds the log data that was the target of the write instruction included in the confirmation request message that could not be saved in the storage card 16, and transmits the log data together with the confirmation request message to the switching destination storage card 16 at the time of the next polling process. After that, the serial communication unit 125 transmits a confirmation request message for the next card.
[0059] If the serial communication unit 125 receives an acknowledgement message from the destination storage card 16 within a set time after transmitting the confirmation request message including an instruction to monitor the status, it determines that the target card has changed from an unusable state to a usable state. The serial communication unit 125 notifies the card status management unit 124 of a card status change notification indicating that the card usable state of the target card has changed to "enabled". Thereafter, the serial communication unit 125 transmits a confirmation request message for the next card. The acknowledgement message includes, for example, the result of the card status monitoring for the storage card 16.
[0060] Next, a description will be given of the functional configuration of the storage card 16. The storage card 16 has a serial communication unit 161, a data storage unit 162, and a data management unit 163.
[0061] The serial communication unit 161 communicates with the CPU card 12 via a cable for serial communication. Specifically, when receiving a confirmation request message from the serial communication unit 125 of the CPU card 12, the serial communication unit 161 transmits an acknowledgement message, which is a response to the confirmation request message, to the CPU card 12 via the cable for serial communication. When receiving a confirmation request message including a write instruction, the serial communication unit 161 passes log data included in the confirmation request message to the data management unit 163, and after the data management unit 163 finishes storing the log data in the data storage unit 162, generates an acknowledgement message including information indicating that writing has been completed, and transmits the message to the CPU card 12. When receiving a confirmation request message including an instruction for status monitoring, the serial communication unit 161 executes processing according to the instruction for status monitoring, generates an acknowledgement message including the execution result, and transmits the message to the CPU card 12. The serial communication unit 161 corresponds to a second serial communication unit.
[0062] The data storage unit 162 stores data including log data. As described above, the data storage unit 162 is configured by a non-volatile storage device such as an HDD or an SSD.
[0063] The data management unit 163 writes or reads data to the data storage unit 162, and manages data in the data storage unit 162. Here, when the data management unit 163 receives an instruction to write log data from the serial communication unit 161, the data management unit 163 performs a process of writing the log data received from the serial communication unit 161 to the data storage unit 162. That is, the data management unit 163 writes the log data of the confirmation request message to the data storage unit 162. The data management unit 163 is configured by a controller chip including a CPU that performs a process of writing data to the data storage unit 162 and reading data from the data storage unit 162. In the first embodiment, the data management unit 163 performs a process related to writing or reading data to the data storage unit 162, that is, performs data management of the data stored in the data storage unit 162, but does not have a function of performing an arithmetic process using the data stored in the data storage unit 162.
[0064] Next, a log data storage method in the thus configured monitoring control device 20 will be described. Fig. 11 to Fig. 13 are flowcharts showing an example of the procedure of the log data storage method according to the first embodiment. Note that this log data storage method includes a step in which, before the process shown in Fig. 11 is performed, the CPU card 12 stores storage destination initial setting information including a card usable state and a storage target associated with each of the multiple storage cards 16 when the monitoring control device 20 is configured, as initial setting information.
[0065] First, the serial communication unit 125 of the CPU card 12 determines whether it is the specified time to execute writing of log data by polling (step S11). When the log data save process is executed for the first time, the specified time can be any time. When the log data save process is executed for the second or subsequent time, the specified time is the time when a specified time has elapsed since the start of the log data save process by the previous polling. If it is not the specified time (No in step S11), the process goes into a waiting state.
[0066] When the specified time arrives (Yes in step S11), serial communication unit 125 acquires combinations of all addresses of the storage destination update information stored in storage destination update information storage unit 122 and card usable status (step S12).
[0067] Next, the serial communication unit 125 selects one combination from the acquired combinations (step S13). The serial communication unit 125 judges whether the card usable state of the selected combination is "OK" (step S14). If the card usable state is "OK" (Yes in step S14), the serial communication unit 125 refers to the storage destination update information, acquires the log data to be stored that is associated with the address of the selected combination (step S15), and generates a confirmation request message including the log data and an instruction to write the log data, with the address of the selected combination as the destination (step S16). Note that if the same log data to be stored that could not be stored in the data storage unit 162 during the previous process is temporarily stored, a confirmation request message including the temporarily stored log data is generated. Also, if there is no update of the log data to be stored within a set time, a confirmation request message is generated indicating that there is no log data to be stored.
[0068] After that, serial communication unit 125 determines whether a predetermined time has passed since transmitting the confirmation request message (step S17). If the predetermined time has not passed (No in step S17), serial communication unit 125 determines whether an acknowledgement message has been received (step S18). If an acknowledgement message has not been received (No in step S18), the process returns to step S17.
[0069] If an acknowledgement message is received (Yes in step S18), the state of the storage card 16 to which the acknowledgement message was sent has not changed. Therefore, the process for the address of the combination selected in step S13 ends. Thereafter, the serial communication unit 125 determines whether or not all the combinations acquired in step S13 have been processed (step S41). If not all the combinations have been processed (No in step S41), the process returns to step S12. If all the combinations have been processed (Yes in step S41), the process returns to step S11.
[0070] If the time determined in step S17 has elapsed (Yes in step S17), that is, if an acknowledgement message has not been received from the card that transmitted the confirmation request message, this means that the storage card 16 has changed from an available state to an unavailable state. In this case, the serial communication unit 125 sends a card status change notification to the card status management unit 124 indicating that the card available state of the card having the address combination selected in step S13 has become "unavailable" (step S21). The card status change notification includes a change target address, which is the address of the target storage card 16, and a card available state. In addition, the serial communication unit 125 temporarily stores the log data to be saved that could not be saved in the storage card 16, and transmits the message by including it in a confirmation request message when issuing an instruction to write the next log data to be saved.
[0071] When the card status management unit 124 receives the card status change notification, the card status management unit 124 refers to the storage destination update information and updates the storage destination update information so that the log data to be saved that was saved in the storage card 16 that has become unusable is saved in the storage card 16 of the switching destination address (step S22). Specifically, the card status management unit 124 acquires the switching destination address associated with the address of the storage card 16 that has become unusable from the storage destination switching information. The card status management unit 124 also updates the storage destination update information so that the log data to be saved that is associated with the address that has become unusable is saved in the switching destination address. That is, the card status management unit 124 sets the contents of the storage target of the acquired switching destination address in the storage destination update information to the contents of the storage target that was associated with the address of the storage card 16 that has become unusable, deletes the contents of the storage target that was associated with the address of the storage card 16 that has become unusable, and sets the card usable state to "unavailable". Thereafter, the process proceeds to step S41.
[0072] In step S14, if the card usage status is not "OK" (No in step S14), i.e., if the card usage status is "UNOK", serial communication unit 125 generates a confirmation request message addressed to the address of the selected combination and including an instruction to monitor the card status (step S31).
[0073] After that, serial communication unit 125 determines whether a predetermined time has passed since transmitting the confirmation request message (step S32). If the predetermined time has not passed (No in step S32), serial communication unit 125 determines whether an acknowledgement message has been received (step S33). If an acknowledgement message has not been received (No in step S33), the process returns to step S32.
[0074] If an acknowledgement message is received (Yes in step S33), this means that storage card 16 has switched from an unusable state to an usable state. In other words, this means that storage card 16 has become usable again as a storage destination for log data. In such a case, serial communication unit 125 sends a card status change notification to card status management unit 124 indicating that the card usable state of the card with the address combination selected in step S13 has become "enabled" (step S34).
[0075] Upon receiving the card status change notification, the card status management unit 124 refers to the storage destination update information and the storage destination initial setting information, and restores the switching destination storage card 16 associated with the storage card 16 that returned the response and the contents of the storage destination update information of the storage card 16 that returned the response to the initial setting information (step S35). Specifically, the card status management unit 124 acquires a switching destination address associated with the address of the storage card 16 that has become available from the storage destination switching information. Also, the card status management unit 124 acquires initial setting information of the switching destination address and the address of the storage card 16 that has become available from the storage destination initial setting information. Then, the card status management unit 124 updates the contents of the switching destination address and the address of the storage card 16 that has become available in the storage destination update information with the initial setting information. Thereafter, the process proceeds to step S41.
[0076] If the time determined in step S32 has elapsed (Yes in step S32), that is, if no confirmation response message has been received from the card that sent the confirmation request message, the state of the storage card 16 to which the confirmation request message was sent has not changed. Therefore, the processing for the address combination selected in step S13 ends. Then, the processing proceeds to step S41.
[0077] In the first embodiment, a CPU card 12 incorporating a processor and a plurality of storage cards 16 incorporating a storage unit for storing data are connected via a cable for serial communication, and the monitoring control device 20 acquires log data from the monitoring target and monitors the monitoring target. The CPU card 12 periodically transmits an instruction to store the log data to be stored in the storage card 16 based on setting information that defines the storage card 16 in which the log data of the monitoring target is stored and the storage card 16 to which the storage card 16 is switched when the storage card 16 is not functioning. This makes it possible to store the log data in the storage card 16 to which the storage card 16 is switched when the storage card 16 is broken, replaced, restarted, etc., and thus makes it possible to prevent loss of log data. In addition, even if the storage card 16 is broken, replaced, restarted, etc. and cannot be used, the monitoring control device 20 and the monitoring control system 1 having the monitoring control device 20 can be continuously operated.
[0078] Embodiment 2 The storage card 16 of the first embodiment includes a data management unit 163 for storing data in the data storage unit 162 and reading data from the data storage unit 162. Usually, the data management unit 163 is not used for processing purposes other than writing or reading data. On the other hand, as described above, the storage card 16 of the first embodiment stores the monitoring data designated as the storage target without missing any data. For this reason, there is a demand for performing data processing such as calculations using the local monitoring data stored in the storage card 16, rather than the monitoring control terminal 50 or the monitoring control data server 60. Therefore, in the second embodiment, a monitoring control device 20 that can perform a predetermined processing using the stored monitoring data will be described.
[0079] The physical configuration of the monitoring control device 20 according to the second embodiment is the same as that shown in Fig. 4. However, the function of the storage card 16 is different from that of the first embodiment. Fig. 14 is a block diagram showing an example of the functional configuration of the monitoring control device according to the second embodiment. Note that the same components as those in Fig. 5 are given the same reference numerals, and their explanation is omitted, and the parts different from Fig. 5 will be explained.
[0080] In the monitoring control device 20 according to the second embodiment, the storage card 16 further includes a data processing unit 164 in addition to the configuration shown in Fig. 5. The data processing unit 164 performs a predetermined process using data stored in the data storage unit 162. The data management unit 163 manages the data stored in the data storage unit 162, whereas the data processing unit 164 performs arithmetic processing using the data stored in the data storage unit 162. For this reason, the storage card 16 incorporates not only a controller chip corresponding to the data management unit 163, but also a processor for arithmetic processing corresponding to the data processing unit 164. Examples of the processor for arithmetic processing include a CPU, a GPU (Graphics Processing Unit), an FPGA (Field Programmable Gate Array), and an ASIC (Application Specific Integrated Circuit).
[0081] The data processing unit 164 executes a program, which is a computer program in which the procedure of arithmetic processing stored in the storage card 16 is described. At this time, the log data stored in the data storage unit 162 is used. In this configuration, the CPU card 12 does not execute a program in which the procedure of arithmetic processing using the log data stored in the storage card 16 is described, so that the processing in the data processing unit 164 is performed independently of the processing in the CPU card 12. In other words, by having the data processing unit 164 that performs arithmetic processing, the storage card 16 can execute a specified process without placing a load of data processing on the CPU card 12 of the monitoring control device 20. In addition, since all the log data that passes through the monitoring control device 20 is stored in the data storage unit 162, data analysis with high resolution is possible.
[0082] In one example, the data processing unit 164 can perform data processing on the monitoring target using log data stored in the monitoring control device 20 via the monitoring control device 20. In one example, among the data processing performed by the monitoring control terminal 50 or the monitoring control data server 60, the data processing performed using log data held by the monitoring control device 20 can be executed by the data processing unit 164 of the storage card 16. The data processing includes not only arithmetic processing and simulation processing, but also machine learning such as supervised learning, reinforcement learning, and unsupervised learning.
[0083] When the data storage unit 162 records the frequency of writing to the storage card 16, the frequency of memory errors occurring in the storage card 16, and the like, the data processing unit 164 can use these data to perform analysis and perform memory life diagnosis to determine the end of the life of the data storage unit 162, i.e., the storage card 16. In one example, the data processing unit 164 can also use these data to perform machine learning such as unsupervised learning and perform memory life diagnosis. The data management unit 163 may write the frequency of writing to the storage card 16, the frequency of memory errors occurring, and the like in the data storage unit 162.
[0084] Fig. 15 is a flowchart showing an example of the procedure of a log data storage method according to the second embodiment. Fig. 15 shows a log data storage method in the storage card 16 that has received a confirmation request message from the CPU card 12. First, the serial communication unit 161 receives the confirmation request message including log data from the CPU card 12 (step S71). Next, the data management unit 163 stores the log data included in the confirmation request message in the data storage unit 162 (step S72). Thereafter, the data processing unit 164 performs a predetermined process using the log data stored in the data storage unit 162, independent of the process of the CPU card 12 (step S73). This ends the process.
[0085] In the second embodiment, the storage card 16 further includes a data processing unit 164 that performs a predetermined process using the log data stored in the data storage unit 162. The process performed in the storage card 16 is executed by the data processing unit 164 independently of the CPU card 12, and therefore does not affect the process in the CPU card 12 of the monitoring control device 20. In addition, the data processing unit 164 performs the predetermined process using the log data that passes through the monitoring control device 20, i.e., log data without any missing data, and therefore, it is possible to perform data analysis with a higher resolution than the monitoring control terminal 50 and the monitoring control data server 60.
[0086] The storage target, which is the log data to be stored in each storage card 16, is determined in advance. Furthermore, by configuring the data processing unit 164 to have a GPU or a CPU with AI (Artificial Intelligence) functions, it becomes possible to expand the AI functions on a card-by-card or data-by-data basis.
[0087] Here, the hardware configuration of the CPU card 12 and storage card 16 constituting the monitoring control device 20 of the first and second embodiments will be described. The CPU card 12 and storage card 16 are realized by a dedicated processing circuit. FIG. 16 is a block diagram showing an example of the dedicated processing circuit. The dedicated processing circuit shown in FIG. 16 includes a processor 551, a memory 552, and a communication circuit 553.
[0088] The processor 551, which is an arithmetic device, is, for example, a CPU, a GPU, a microprocessor, a microcontroller, or a DSP (Digital Signal Processor). The memory 552, which is a storage unit, is, for example, a semiconductor memory such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable Read Only Memory), and an EEPROM (Electrically Erasable Programmable Read Only Memory), a magnetic disk, a flexible disk, etc. The communication circuit 553 is a transceiver capable of communication. Note that FIG. 16 is an example, and the configuration of a dedicated processing circuit is not limited to the example of FIG. 16.
[0089] When the dedicated processing circuit is the CPU card 12, the CPU card 12 is realized by executing a program, which is a computer program in which the processing to be executed by the CPU card 12 is described. Specifically, the program is installed in the memory 552. Then, when the program is executed, the program read from the memory 552 is stored in a primary storage area of the memory 552. In this state, the processor 551 executes the processing as the CPU card 12 of the monitoring control device 20 according to the first and second embodiments in accordance with the program stored in the memory 552. The above program may be provided by a recording medium, or may be provided by a transmission medium via the communication circuit 553.
[0090] The card status management unit 124 of the monitoring control device 20 shown in Fig. 5 is realized by executing a program stored in memory 552 shown in Fig. 16 by processor 551. The memory 552 is also used to realize the card status management unit 124. The serial communication unit 125 shown in Fig. 5 is realized by the communication circuit 553 shown in Fig. 16. The storage destination initial setting information storage unit 121, storage destination update information storage unit 122, and storage destination switching information storage unit 123 shown in Fig. 5 are realized by the memory 552.
[0091] When the dedicated processing circuit is storage card 16, storage card 16 is realized by executing a program, which is a computer program in which the processes to be executed by storage card 16 are described.
[0092] The data management unit 163 shown in Figures 5 and 14 and the data processing unit 164 shown in Figure 14 are realized by executing a program stored in the memory 552 shown in Figure 16 by the processor 551. The memory 552 is also used to realize the data management unit 163 and the data processing unit 164. The serial communication unit 161 shown in Figures 5 and 14 is realized by the communication circuit 553 shown in Figure 16. The data storage unit 162 shown in Figures 5 and 14 is realized by the memory 552.
[0093] A CPU, a microprocessor, a microcontroller, a DSP, or the like is used as the processor 551 that realizes the function of the data management unit 163 of the storage card 16 in the first and second embodiments. A CPU, a GPU, a microprocessor, or the like is used as the processor 551 that realizes the function of the data processing unit 164 in the second embodiment. Also, a flash memory, an EPROM, an EEPROM, a magnetic disk, or the like is used as the memory 552 that realizes the function of the data storage unit 162.
[0094] The configurations shown in the above embodiments are merely examples, and may be combined with other known technologies, or the embodiments may be combined with each other. Also, parts of the configurations may be omitted or modified without departing from the spirit of the invention. [Explanation of symbols]
[0095] 1 monitoring and control system, 10 base unit, 11 power card, 12 CPU card, 13 hub card, 14 communication control card, 15 IO card, 16, 16a, 16b, 16c, 16d storage card, 20 monitoring and control device, 20A upper monitoring and control device, 20B, 20C lower monitoring and control device, 50 monitoring and control terminal, 60 monitoring and control data server, 70A, 70B network, 81 first internal network, 82 second internal network, 120, 130, 140A LAN port, 121 storage destination initial setting information storage unit, 122 storage destination update information storage unit, 123 storage destination switching information storage unit, 124 card status management unit, 125, 161 serial communication unit, 140B external interface, 150 connection unit, 162 data storage unit, 163 data management unit, 164 data processing unit, 551 processor, 552 memory, 553 Communication circuit.
Claims
1. A monitoring control device in which a CPU unit having a built-in processor and a plurality of storage units having built-in memory units for storing data are connected via a cable for serial communication, and which acquires log data from a monitoring target and monitors the monitoring target, The monitoring and control device is characterized in that the CPU unit periodically sends an instruction to save the log data in the storage unit based on configuration information that defines the storage unit in which the log data of the monitored object is to be saved and the storage unit to which the monitored object is to be switched when the storage unit in which the log data is saved is unavailable.
2. The CPU unit includes: a storage destination update information storage unit that stores storage destination update information that sets a unit status, which is information indicating whether the storage unit is in a usable state, and log data to be stored, in each of the plurality of storage units; a first serial communication unit that periodically executes a process of sequentially transmitting a confirmation request message to all of the storage units in the storage destination update information to confirm whether the storage units match the unit states in the storage destination update information; Equipped with The monitoring and control device according to claim 1, characterized in that the first serial communication unit sends the confirmation request message to the storage unit in which the storage target is set in the storage destination update information, the confirmation request message including the log data of the storage target and an instruction to write the log data.
3. 3. The monitoring and control device according to claim 2, further comprising a unit status management section that updates the storage destination update information when it is determined that a change has occurred in the unit status based on the result of transmitting the confirmation request message.
4. the CPU unit further includes a storage destination switching information storage unit that stores storage destination switching information that defines the storage unit to be switched to when the storage unit to be the storage destination is in an unusable state; when a response to the confirmation request message including the log data is not returned, the unit status management unit changes the storage target associated with the storage unit from which the response is not returned in the storage destination update information to the storage unit of the switching destination, and changes the unit status of the storage unit from which the response is not returned to unusable, 4. The monitoring and control device according to claim 3, wherein the first serial communication unit transmits the log data contained in the confirmation request message for which no response is returned, by including the log data in a confirmation request message generated in the next cycle.
5. a storage destination initial setting information storage unit configured to store storage destination initial setting information including the unit status and the storage target associated with each of the plurality of storage units as initial setting information when the monitoring control device is configured; The monitoring and control device of claim 4, characterized in that when the unit status management unit receives a response to the confirmation request message that does not include the log data, it refers to the destination initial setting information and the destination switching information, and restores the contents of the destination update information of the destination storage unit associated with the storage unit that returned the response and the storage unit that returned the response to the initial setting information.
6. The storage unit comprises: a second serial communication unit that receives the confirmation request message from the CPU unit; A data storage unit that stores data; a data management unit that writes the log data included in the confirmation request message into the data storage unit; a data processing unit that performs a process determined by using the log data stored in the data storage unit, independently of the process performed by the CPU unit; 6. The monitoring and control device according to claim 2, further comprising:
7. A log data storage method for a monitoring control device in which a CPU unit and a plurality of storage units for storing data are connected via a serial communication cable, and which acquires log data from a monitoring target and monitors the monitoring target, comprising the steps of: a setting information storage step in which the CPU unit stores setting information that defines a storage unit that is a destination for saving the log data of the monitoring target and a storage unit that is a destination for switching to when the storage unit that is the destination for saving the log data is unavailable; a transmission step in which the CPU unit periodically transmits an instruction to store the log data in the storage unit as the storage destination based on the setting information; A log data storage method comprising:
8. In the setting information storage step, the CPU unit stores storage destination update information that sets a unit status, which is information indicating whether the storage unit is in a usable state or not, and log data to be stored, in each of the plurality of storage units; In the transmission step, the CPU unit periodically executes a process of sequentially transmitting a confirmation request message to all of the storage units in the storage destination update information, the confirmation request message confirming whether the storage units match the unit states in the storage destination update information; The log data storage method described in claim 7, characterized in that in the sending process, a confirmation request message including the log data of the storage target and an instruction to write the log data is sent to the storage unit for which the storage target is set in the storage destination update information.
9. The log data storage method according to claim 8, further comprising a unit status management step of updating the storage destination update information when the CPU unit determines that there has been a change in the unit status from the result of sending the confirmation request message.
10. The method further includes a storage destination switching information storage step of storing storage destination switching information that determines a storage unit to be switched to when the storage unit to be the storage destination is unavailable, In the unit status management step, when a response to the confirmation request message including the log data is not returned, the CPU unit changes the storage target associated with the storage unit from which the response is not returned in the storage destination update information to the storage unit of the switching destination, and changes the unit status of the storage unit from which the response is not returned to unusable, The log data storage method according to claim 9, characterized in that in the transmitting step, the CPU unit transmits the log data contained in the confirmation request message for which no response is returned by including it in a confirmation request message generated in the next cycle.
11. The CPU unit further includes a destination initial setting information storage step of storing destination initial setting information including the unit status and the storage target associated with each of the plurality of storage units as initial setting information when the monitoring control device is configured, The log data storage method described in claim 10, characterized in that in the unit status management process, when the CPU unit receives a response to the confirmation request message that does not include the log data, the CPU unit refers to the destination initial setting information and the destination switching information, and restores the contents of the destination update information of the destination storage unit associated with the storage unit that returned the response and the storage unit that returned the response to the initial setting information.
12. a receiving step of the storage unit receiving the confirmation request message from the CPU unit; a data storage step of storing log data included in the confirmation request message in a data storage unit of the storage unit; a data processing step in which the storage unit performs a predetermined process using the log data stored in the data storage unit, independently of the process performed by the CPU unit; 12. The log data storage method according to claim 8, further comprising:
13. A computer including a communication circuit that communicates with a plurality of storage units each having a built-in memory unit via a cable for serial communication, and a processor that acquires log data from a monitoring target, monitors the monitoring target, and writes the log data to the storage unit, a setting information storage step of storing setting information that defines a storage unit that is a destination for storing the log data of the monitoring target and a storage unit that is a destination for switching to when the storage unit that is the destination for storing the log data is unavailable; a transmission step of periodically transmitting an instruction to store the log data in the storage unit as the storage destination based on the setting information; A data storage program that causes a user to execute the steps described above.
Citation Information
Patent Citations
Processing system and backup method of data
JP2014182511A
