Communication relay device
The communication relay device facilitates secure communication by controlling command relays based on authentication, addressing the challenges of integrating security functions in host and control devices without device replacement or screen modifications, ensuring efficient and reliable system operation.
Patent Information
- Application Number
- JP2019218120
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2019-12-02
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2039-12-02
AI Technical Summary
The integration of a security function in communication systems involving host and control devices often requires replacing non-security-compatible host devices or linking them with security authentication devices, leading to significant verification efforts, time, and cost, as well as potential modifications to the host device's screen and system operations.
A communication relay device that relays commands between host and control devices, controlling the relay based on authentication by a security authentication device, allowing secure operation without replacing or modifying the host device, and enabling secure communication with data management devices.
Enables easy addition of security functions to communication systems, reducing verification efforts and costs, while maintaining system operation integrity and avoiding screen modifications.
Smart Images

Figure 0007549959000004 
Figure 0007549959000005 
Figure 0007549959000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a communication relay device that relays communication between two devices that transmit and receive data. [Background technology]
[0002] An HMI (Human Machine Interface) device such as a programmable display is connected to a control device such as a PLC (Programmable Logic Controller) and communicates with the control device to send and receive data. For example, Patent Document 1 discloses a programmable display that performs serial communication with a PLC.
[0003] Not only HMI devices but also computer devices that manage the control devices are connected to the control devices. Here, such devices connected to the control devices are collectively called host devices. Depending on the operation performed by the user on the host device, commands are sent from the host device to the control device to write data to the control device or read data from the control device. The control device receives such commands and writes or reads data. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2016-126487 A (Published on July 11, 2016) Summary of the Invention [Problem to be solved by the invention]
[0005] However, when introducing a security function into a communication system including the host device and control device as described above, the following measures are considered.
[0006] For example, if the host device is a model that does not support security, such as one that does not have a security function or is incapable of cooperating with a security authentication device, the host device is replaced with a model that supports security.
[0007] In this case, it is necessary to check the differences in performance and functions between the models before and after the replacement. Because of these differences, it is necessary not only to modify the screen displayed by the host device, but also to verify that there are no operational problems with the devices controlled by the control device and the entire system. This type of verification is carried out by the equipment manufacturer or system builder, and requires a great deal of man-hours, money, and time.
[0008] Also, if the host device is a model that supports security, the screen displayed by the host device can be modified to support security, such as by enabling password entry, or the host device can be linked to a security authentication device. In this case, the above-mentioned verification is not required.
[0009] However, parts that will be affected by screen corrections may need to be checked by the device manufacturer or system builder.
[0010] An object of one aspect of the present invention is to easily add a security function to a communication system including a host device and a control device. [Means for solving the problem]
[0011] In order to solve the above problems, a communication relay device according to one embodiment of the present invention includes a communication relay unit that relays communications between a host device and a control device that operates in response to commands from the host device, and a relay control unit that controls the relaying of commands from the host device to the control device depending on whether or not authentication is successful by a security authentication device provided inside or outside the communication relay device.
[0012] According to the above configuration, in a communication system including a host device and a control device, by adding a communication relay device, it is possible to restrict the operation of the control device from the host device. Therefore, in order to provide a communication system with a security function, it is not necessary to replace the host device with a model that supports security or to link the host device with a security authentication device. Furthermore, it is possible to avoid screen corrections that would occur as a result of taking such measures.
[0013] In the communication relay device, the relay control unit controls the communication relay unit not to relay the command when authentication by the security authentication device is not obtained, and to relay the command when authentication by the security authentication device is obtained.
[0014] According to the above configuration, a command from the host device is transmitted to the control device only when authentication by the security authentication device is obtained. This makes it possible for the host device to operate the control device only when authentication is obtained.
[0015] The communication relay device further includes a command extraction unit that extracts write commands that instruct the writing of data from the commands from the host device, and the relay control unit controls the communication relay unit to relay, from the extracted write commands, write commands selected to be sent to the control device when authentication by the security authentication device is not obtained, while not relaying write commands selected not to be sent to the control device.
[0016] In system operation, in addition to write commands resulting from operations, write commands not involving operations are also exchanged between the host device and the control device. According to the above configuration, by selecting such write commands as the commands to be transmitted from among the write commands, it is possible to transmit only the write commands to the control device even in a state where authentication has not been obtained. This allows security management to be performed without interfering with system operation.
[0017] The host device displays a screen that generates a plurality of the commands, and when switching the screen to display another screen, transmits a registration command to the control device to register an address of the memory for centralized access to the memory of the control device by the commands generated by the switched screen, and the relay control unit controls the communication relay unit so as not to relay the registration command when the command from the host device is the registration command when authentication by the security authentication device has not been obtained.
[0018] According to the above configuration, in a state where authentication is not obtained, even if a registration command is sent from the host device when the screen is switched, the registration command is not sent to the control device. As a result, an address for collectively accessing the control device cannot be registered in the control device. Therefore, the host device cannot read data for displaying the screen to be switched from the control device. Therefore, it is possible to restrict screen switching using the function of collectively acquiring data in the host device.
[0019] The host device displays a screen that generates a plurality of the commands, and when switching the screen to display another screen, sends to the control device a registration command that registers the address of the memory for collectively accessing the memory of the control device by the commands generated by the switched screen, and sends to the control device a write command that instructs the writing of data, and the security authentication device is provided outside the communication relay device so as to be connectable to the communication relay device, and the relay control unit controls the communication relay unit when the security authentication device is not connected to the communication relay device to alternatively not relay the write command when the command is the write command, not relay the registration command when the command is the registration command, not relay the write command or the registration command when the command is the write command or the registration command, and not relay all the commands.
[0020] According to the above configuration, when the security authentication device is not connected to the communication relay device, authentication by the security authentication device cannot be performed, but the commands that are restricted from being relayed can be varied. Therefore, the operations of the host device that are restricted can also be varied. Therefore, by not connecting the security authentication device to the communication relay device, it is possible to change the operations that the host device cannot perform and the operations that it can perform without requiring any special operation.
[0021] When a prohibited state is reached in which operation by the host device is prohibited for a device controlled by the control device, the control device sets operation information stored in a memory provided in the control device to a prohibited state, and when an operation information read command to read the operation information is received from the host device, the control device returns the operation information to the host device and does not accept operation from the host device for the device in the prohibited state, and when authentication by the security authentication device is not obtained and the command from the host device is the operation information read command, the relay control unit sets the operation information that is also set in the communication relay device to a prohibited state and sends the operation information to the host device on behalf of the control device, while controlling the communication relay unit to relay the operation information read command when authentication by the security authentication device is obtained.
[0022] According to the above configuration, when an operation information read command is sent from the host device in a state where authentication has not been obtained, the operation information set to the prohibited state by the relay control unit is sent to the host device, thereby making it possible to prohibit the operation of the device in a state where authentication has not been obtained.
[0023] The communication relay device further includes a direct route that directly connects the host device and the control device without going through the communication relay unit, and the relay control unit disables the direct route when authentication by a security authentication device is not obtained, and enables the direct route when authentication is obtained.
[0024] According to the above configuration, when authentication is successful, communication between the host device and the control device is performed via a direct path, which reduces the load on the communication relay unit realized by the CPU or the like.
[0025] The control device operates in response to commands from a data management device that manages data, the communication relay unit relays communications between the data management device and the control device, and the relay control unit controls the relay of commands from the data management device to the control device depending on whether or not authentication is successful by the security authentication device.
[0026] According to the above configuration, by adding a security authentication device, it is possible to provide a security function not only for communication between the host device and the control device, but also for communication between the data management device and the control device, thereby making it possible to easily build a highly reliable communication system.
[0027] In addition, since the above configuration assumes that the connection between the communication relay device and the data management device is made via a LAN (Local Area Network), communication between the data management device and the control device is not made via the above-mentioned direct path. Effect of the Invention
[0028] According to one aspect of the present invention, a security function can be easily added to a communication system including a host device and a control device. [Brief description of the drawings]
[0029] [Figure 1] 1 is a block diagram showing a configuration of a control system according to a first embodiment of the present invention. [Diagram 2] 2 is a block diagram showing a configuration of a main part of a communication relay device in the control system. FIG. [Diagram 3] 6 is a flowchart showing a procedure in which the communication relay device controls a write command from a host device. [Figure 4] 10 is a flowchart showing a procedure for the security authentication device of the communication relay device to perform security control by face authentication. [Diagram 5] 10 is a flowchart showing a procedure for the communication relay device to control a monitor registration command. [Figure 6]6 is a flowchart showing a procedure in which the communication relay device controls the operation of a host device by using a control bit set in the control device. [Figure 7] FIG. 11 is a block diagram showing a configuration of a control system according to a second embodiment of the present invention. [Figure 8] 8 is a block diagram showing a configuration of a main part of a communication relay device in the control system shown in FIG. 7. [Figure 9] 8 is a flowchart showing a procedure in which the communication relay device shown in FIG. 7 directly connects a communication line between a host device and a control device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0030] [Embodiment 1] The first embodiment of the present invention will be described below with reference to FIGS. 1 to 6.
[0031] Fig. 1 is a block diagram showing a configuration of a control system 100 according to embodiment 1. Fig. 2 is a block diagram showing a configuration of a main part of a communication relay device 20 in the control system 100 according to embodiment 1.
[0032] First, an overview of the control system 100 will be described.
[0033] As shown in FIG. 1, the control system 100 includes a communication relay device 20, a host device 30, a control device 40, a device 50, a LAN (Local Area Network) 60, a security authentication device 70, a data management device 80, and an apparatus 90.
[0034] The communication relay device 20 and the host device 30 are connected to each other via a serial communication cable so as to be able to perform serial communication. Similarly, the communication relay device 20 and the control device 40 are connected to each other via a serial communication cable so as to be able to perform serial communication. The communication relay device 20 has a serial port COM1 as a communication port for communication with the control device 40. The communication relay device 20 also has a serial port COM2 as a communication port for communication with the host device 30.
[0035] The communication relay device 20 and the data management device 80 are connected to each other via a LAN cable, a router, etc. so as to be able to communicate via a LAN (Local Area Network) 60. Although not shown, a personal computer serving as another data management device may be connected to the LAN 60.
[0036] The control device 40 is a device having a control function, and is configured, for example, by a PLC (Programmable Logic Controller) so as to operate in response to commands transmitted from the host device 30. The control device 40 transmits and receives data to and from the device 50. As the device 50, input devices such as sensors and switches, and output devices such as actuators, relays, solenoid valves, and displays are used. The control device 40 may also be configured by devices such as a temperature regulator and an inverter. The control device 40 has a device memory 40a (memory) for storing the above data and the like. The device memory 40a has an area for storing word data such as numerical values, and an area for storing bit data represented by bits.
[0037] The bits set in the device memory 40a include a control bit. The control bit is a bit (operation information) that indicates a prohibited state in which the operation of the device 90 controlled by the control device 40 is prohibited by the host device 30 for maintenance or the like, and an allowed state in which the operation is allowed. In the prohibited state, the control device 40 sets the prohibited information by turning the control bit ON, and in the allowed state, sets the allowed information by turning the control bit OFF. For example, in the case where the control device 40 is monitoring the open / closed state of the door of the device 90 by a sensor provided on the door, when the sensor detects that the door has been opened, the control device 40 sets the control bit to the prohibited state.
[0038] When the control device 40 receives a control bit read command (operation information read command), which is a read command for reading out the control bits from the host device 30, the control device 40 returns the operation information set in the control bits to the host device 30. Specifically, when the control device 40 returns the prohibition information set in the control bits to the host device 30, it does not accept any operation from the host device 30. In addition, when the control device 40 returns the permission information set in the control bits to the host device 30, it accepts any operation from the host device 30.
[0039] The host device 30 is an HMI device such as a programmable display device, and has a display device and a touch panel. The host device 30 transmits data such as control instructions to the control device 40 by inputting operations using the touch panel on the screen displayed on the display device, and receives data such as data related to the device 50 held by the control device 40. Various components are appropriately provided on the screen displayed by the host device 30, such as operation components such as buttons, input components such as numeric input components, and display components such as lamps and numeric displays.
[0040] The host device 30 issues various commands to transmit and receive such data. For example, the host device 30 issues various commands such as a write command and a read command. The write command is a command that requests (commands) the control device 40 to write data to the device memory 40a. The read command is a command that requests (commands) the control device 40 to read data from the device memory 40a. The command includes an address that indicates the storage area of the data, and is transmitted in the form of a command packet.
[0041] The security authentication device 70 is a device that performs security authentication by a user. Examples of the security authentication device 70 include devices that perform biometric authentication such as face authentication, fingerprint authentication, voiceprint authentication, iris authentication, and finger vein authentication, and authentication using an ID card. The security authentication device 70 is generally provided as a USB device, but may also be a device that performs serial communication.
[0042] 1, the security authentication device 70 is preferably provided outside the communication relay device 20, connectable to the communication relay device 20, and a small device that can be carried by the user. This makes it possible to receive authentication by the security authentication device 70 and control the host device 30 only when the operator of the host device 30 connects the security authentication device 70 to the communication relay device 20. Therefore, when the security authentication device 70 is not connected to the communication relay device 20, the communication relay device 20 does not relay commands from the host device 30 to the control device 40.
[0043] The security authentication device 70 may be provided inside the communication relay device 20.
[0044] The data management device 80 is a device that performs processes for managing various types of data, such as data collection, data analysis, and data writing. The data management device 80 is composed of a personal computer, a dedicated device such as a data logger, etc. The data management device 80 issues the above-mentioned write command and data read command to make requests to the control device 40.
[0045] Next, the hardware configuration of the communication relay device 20 will be described.
[0046] 1, the communication relay device 20 includes a CPU (Central Processing Unit) 1, a memory unit 2, a first driver / receiver 3, a second driver / receiver 4, a first UART (Universal Asynchronous Receiver Transmitter) 5, a second UART 6, a LAN interface unit 7, and a USB interface unit 8. The communication relay device 20 also includes a power supply circuit 11 and a data bus 120.
[0047] The CPU 1 is a processing device that executes a system program for operating the communication relay device 20. Specifically, when executing the system program, the CPU 1 receives data from the main memory 2a, the first driver / receiver 3, the second driver / receiver 4, the LAN interface unit 7, etc., which will be described later, and performs calculations or processing on the data. Then, the CPU 1 outputs the results of the calculations or processing to the main memory 2a, the first driver / receiver 3, the second driver / receiver 4, the LAN interface unit 7, etc.
[0048] The memory unit 2 includes a main memory 2a, a ROM (Read Only Memory) 2b, and a flash memory 2c.
[0049] The main memory 2a is a memory constituting a primary storage device in the communication relay device 20, and is constituted by a dynamic random access memory (DRAM).
[0050] The ROM 2b stores programs (including the above-mentioned system programs) essential for the operation of the communication relay device 20, such as a basic input output system (BIOS) that is executed when the communication relay device 20 is started or reset.
[0051] The flash memory 2c is a rewritable non-volatile memory such as an EEPROM (Electronically Erasable and Programmable Read Only Memory: registered trademark). The flash memory 2c stores information necessary for managing communication between the host device 30 and the control device 40.
[0052] The first driver / receiver 3 is a receiving circuit that receives reception data from the host device 30 and is a transmitting circuit that transmits transmission data to the host device 30.
[0053] The second driver / receiver 4 is a receiving circuit that receives reception data from the control device 40 and is a transmitting circuit that transmits transmission data to the control device 40.
[0054] The first driver / receiver 3 and the second driver / receiver 4 are compatible with general serial communication standards (RS-232C, RS-422, RS-485, etc.).
[0055] The first UART 5 is a circuit that converts an asynchronous serial signal output from the first driver / receiver 3 into a parallel signal and outputs it to the data bus 120. The first UART 5 is also a circuit that converts a parallel signal input from the data bus 120 to the first driver / receiver 3 into an asynchronous serial signal. The first UART 5 also includes a transmission buffer and a reception buffer.
[0056] The second UART 6 is a circuit that converts an asynchronous serial signal output from the second driver / receiver 4 into a parallel signal and outputs it to the data bus 120. The second UART 6 is also a circuit that converts a parallel signal input from the data bus 120 to the second driver / receiver 4 into an asynchronous serial signal. The second UART 6 also has a built-in transmission buffer and a reception buffer.
[0057] The LAN interface unit 7 is an interface for connecting an external device such as a data management device 80 so as to enable LAN communication with the communication relay device 20. The LAN interface unit 7 is connected to a LAN 60.
[0058] The USB interface unit 8 is an interface for connecting a USB device such as the security authentication device 70 to the communication relay device 20 so as to enable communication therebetween.
[0059] The power supply circuit 11 is a circuit that supplies power to each unit (such as the memory unit 2, the first driver / receiver 3, the second driver / receiver 4, the first UART 5, the second UART 6, and the LAN interface unit 7) of the communication relay device 20. The power supply circuit 11 is turned on when the communication relay device 20 is started up, and is turned off when the communication relay device 20 is stopped.
[0060] Next, a system configuration of the communication relay device 20 will be described with reference to Fig. 2. Note that in Fig. 2, the first driver / receiver 3, the second driver / receiver 4, the first UART 5, and the second UART 6 are omitted for the sake of convenience.
[0061] As shown in FIG. 2, the communication relay device 20 has a start / stop control unit 12, a command monitoring unit 13, a command analysis unit 15, a command list creation unit 14 (command extraction unit), a command analysis unit 15, a communication relay unit 16, and a relay control unit 17.
[0062] The start / stop control section 12 initializes each section (for example, the security authentication device 70 and the communication driver) from when the power supply circuit 11 is turned on until the relay control section 17 becomes operable.
[0063] The command monitoring unit 13 monitors the state of command packets included in the received data sent from the host device 30, and recognizes the communication interval based on the interval between the command packets sent. The command monitoring unit 13 not only distinguishes the above-mentioned write commands and read commands, but also distinguishes various commands, which will be described later. The command monitoring unit 13 also extracts only write commands and provides them to the command list creation unit 14.
[0064] The write command is a command for instructing to write data to one or multiple consecutive areas in the device memory 40a of the control device 40. The host device 30 issues a write command when an operation is performed on the above-mentioned operation system components provided on the displayed screen, and when an input is made to the input system components.
[0065] The read command is a command to instruct reading data from one or multiple consecutive areas in the device memory 40a of the control device 40. The host device 30 issues a read command when updating the display of the above-mentioned display system components provided on the screen to be displayed.
[0066] Other commands that the command monitoring unit 13 discriminates include a monitor registration command (registration command) used in the monitor registration function, a monitor read command, and the above-mentioned control bit read command.
[0067] The monitor registration function includes a registration function and a read function, and is a function that is provided in general programmable displays. The registration function is a function for registering a plurality of addresses set on one screen displayed on the host device 30 in advance in the control device 40 by providing the addresses to the control device 40 by a monitor registration command.
[0068] The read function is a function for collectively accessing a plurality of storage areas in the device memory 40a designated by registered addresses in response to a monitor read command from the host device 30, and reading out data.
[0069] To read data collectively from the control device 40 using the read function, the host device 30 first registers in advance in the control device 40 an address specified by a monitor registration command in the control device 40. When switching the screen displayed by the host device 30 to another screen, the host device 30 transmits a monitor read command to the control device 40 in order to display information obtained from the control device 40 on the screen. When the control device 40 receives the monitor read command from the host device 30, it reads data from the storage area specified by the registered address and transmits the data collectively to the host device 30.
[0070] As described above, the control bit read command corresponds to a read command because it reads the state of the control bit set in the device memory 40a of the control device 40. The control bit read command includes the address (bit address) of the area where the control bit is stored.
[0071] The command analysis unit 15 analyzes the control bit read command determined by the command monitoring unit 13 by referring to the bit address and operation condition included in the control bit information preset in the flash memory 2c. For example, the operation condition is a condition in which the control bit ON indicates a prohibited state and the control bit OFF indicates a permitted state. The command analysis unit 15 provides the result of the analysis to the relay control unit 17.
[0072] The command list creation unit 14 creates a command list by collecting commands that have been determined to be write commands by the command monitoring unit 13. The command list includes addresses to which the write commands write into the device memory 40a, data to be written, and the like. The command list creation unit 14 displays the command list to allow the user to specify (select) a write command to be transmitted to the control device 40. The command list creation unit 14 saves the created command list in the form of a database in the flash memory 2c as a command list database.
[0073] The communication relay unit 16 relays communication with the control device 40 which reads or writes data in response to commands from the host device 30. The communication relay unit 16 is a communication path which connects the host device 30 and the control device 40 by software via a data bus 120. Specifically, the communication relay unit 16 outputs received data from the host device 30 which is input to the serial port COM2 to the control device 40 from the serial port COM1 via the data bus 120. The communication relay unit 16 also outputs received data from the control device 40 which is input to the serial port COM1 to the host device 30 from the serial port COM2 via the data bus 120.
[0074] The relay control unit 17 controls the relay of commands from the host device to the control device depending on whether or not authentication by the security authentication device has been successful.
[0075] The communication relay process by the communication relay device 20 configured as above will be described below.
[0076] First, the control of the communication relay unit 16 in cooperation with the security authentication device 70 by the relay control unit 17 will be described.
[0077] Here, an example will be described in which the security authentication device 70 is a device that uses a face authentication system.
[0078] 3, when the communication relay device 20 is started, the start / stop control unit 12 initializes the face authentication system (step S1), and when the initialization of the face authentication system is completed (step S2: YES), the start / stop control unit 12 initializes the communication driver (step S3). When the initialization of the communication driver by the start / stop control unit 12 is completed (step S4: YES), the communication relay device 20 becomes ready to accept transmission data from the host device 30.
[0079] Next, the command monitor 13 monitors the command (command packet) (step S5) and judges whether the command included in the communication data is a write command (step S6). If the command monitor 13 judges that the command is a write command (YES in step S6), the relay control unit 17 judges whether the security control by the face authentication system is released (step S7).
[0080] If relay control unit 17 determines in step S7 that security control has been released (YES in step S7), it transmits a command packet to control device 40 (step S8). Then, relay control unit 17 transmits to host device 30 response data returned from control device 40 as a response to the command packet from host device 30 (step S9), and returns the process to step S5.
[0081] Moreover, if the command monitor 13 determines in step S6 that the command is not a write command (NO in step S6), the process proceeds to step S8.
[0082] In this way, by adding the security authentication device 70 to the control system 100, a write command from the host device 30 is transmitted to the control device 40 only when authentication by the security authentication device 70 is obtained. This makes it possible to restrict the operation of the control device 40 from the host device 30. Therefore, in order to provide the control system 100 with a security function, it is no longer necessary to replace the host device 30 with a model that supports security or to link the host device 30 with a security authentication device. This makes it possible to avoid modification of the screen of the host device 30 that would result from taking such measures.
[0083] In the above example, a write command is transmitted to control device 40 only when authentication is successful, but a read command may also be transmitted in the same manner.
[0084] Furthermore, relay control unit 17 may control the relay of commands from data management device 80 to control device 40 depending on whether or not authentication by security authentication device 70 has been successful.
[0085] This controls not only the relay of commands from host device 30 to control device 40, but also the relay of commands from data management device 80 to control device 40. Therefore, by adding security authentication device 70, it is possible to impart security functions to both the communication between host device 30 and control device 40 and the communication between data management device 80 and control device 40. Therefore, in control system 100, a highly reliable communication system can be easily constructed.
[0086] Note that communication between host device 30 and control device 40 and communication between data management device 80 and control device 40 cannot be performed simultaneously. Therefore, relay control unit 17 may control communication relay unit 16 to prioritize communication between host device 30 and control device 40 and perform communication between data management device 80 and control device 40 in between.
[0087] Furthermore, the relay control unit 17 may be able to change the priority of which communication is to be given priority depending on the circumstances of the control system 100. However, it is desirable that the writing of data from the host device 30 to the control device 40 is given the highest priority. Therefore, when a read command from the data management device 80 and a write command from the host device 30 conflict with each other, the relay of the write command is given priority.
[0088] For example, when the type of product is changed on a production line, recipe data may be transmitted all at once from the host device 30 to the control device 40 during a lunch break or other time. In such a case, even if it is preset that an interrupt by the data management device 80 is given priority, the writing process from the host device 30 takes priority.
[0089] Next, security control by security authentication device 70 will be described.
[0090] FIG. 4 is a flowchart showing a procedure in which the security authentication device 70 performs security control by face authentication.
[0091] 4, first, the security authentication device 70 monitors an image using a camera (step S11), and judges whether or not the face in the monitored face image is a face of registered face data (step S12). If the security authentication device 70 judges that the monitored face is a registered face, it releases the security control (step S13) and accepts the user's login.
[0092] Next, the security authentication device 70 monitors the time that the login continues from the start of the login (login time) (step S14). The security authentication device 70 judges whether the login time exceeds a specified time or not (step S15). When the security authentication device 70 judges in step S15 that the login time exceeds the specified time (YES), it locks the security control (step S16) and returns the process to step S11.
[0093] If the security authentication device 70 determines in step S15 that the login time has not exceeded the specified time (NO), it returns the process to step S14 and continues monitoring the login time. If the security authentication device 70 determines in step S12 that the face being monitored is not a registered face, it displays an error (step S17) and returns the process to step S11.
[0094] In this way, the security authentication device 70 can control security by setting a specified time as an upper limit on the login time when security control is released. This makes it possible to manage security so that login is not permitted without limit. Note that the communication relay device 20 can also monitor the login time in the same way as the security authentication device 70.
[0095] Furthermore, the relay control unit 17 may control commands based on the no-operation time of the host device 30. Specifically, when authentication by the security authentication device 70 has been obtained and a predetermined time has elapsed since a command from the host device 30 was determined to be a write command, but transmission of another write command has not been determined, the relay control unit 17 controls the communication relay unit 16 not to relay the command.
[0096] For example, when authentication is performed using an ID card-type security authentication device 70, once authentication is obtained and operation by the host device is enabled, the operable state is maintained even if the operator leaves the host device 30 and no operation is performed. This makes it possible for an unauthorized person to operate the host device.
[0097] In response to this, by controlling the communication relay unit 16 as described above, when no other write command is identified even after a predetermined time has elapsed since the identification of a write command, relaying of the command is stopped. This makes it possible to regard the predetermined time during which no write command is identified as a no-operation period, and to prohibit operations by the host device 30 after the no-operation period. Therefore, even if the authentication state is maintained, operations by unauthorized persons can be prevented.
[0098] In addition to monitoring the login time, the security authentication device 70 or the communication relay device 20 can be operated to log out (to invalidate the login).
[0099] As described above, the security authentication device 70 is provided as an external device of the communication relay device 20. When the security authentication device 70 is not connected to the USB interface unit 8, that is, when the security authentication device 70 is not connected to the communication relay device 20, the relay control unit 17 controls the communication relay unit 16 not to specify the type of command from the host device 30 and not to relay the command. Specifically, the communication relay unit 16 operates in a first mode in which only the write command is not relayed, a second mode in which only the monitor registration command is not relayed, a third mode in which neither the write command nor the monitor registration command is relayed, and a fourth mode in which all commands are not relayed. The first to fourth modes are preset in the flash memory 2c, and one of them is designated by the user.
[0100] In the first mode, when the command monitor 13 determines that the command from the host device 30 is a write command, the relay control unit 17 controls the communication relay unit 16 so as not to relay the write command. In the second mode, when the command monitor 13 determines that the command from the host device 30 is a monitor registration command, the relay control unit 17 controls the communication relay unit 16 so as not to relay the monitor registration command. In the third mode, when the command monitor 13 determines that the command from the host device 30 is a write command or a monitor registration command, the relay control unit 17 controls the communication relay unit 16 so as not to relay the write command or the monitor registration command. In the fourth mode, the relay control unit 17 controls the communication relay unit 16 so as not to relay all commands including a write command, a read command, a monitor registration command, a monitor read command, etc. The relay control unit 17 selectively performs control of the first to fourth modes.
[0101] As a result, when the security authentication device 70 is not connected to the communication relay device 20, authentication by the security authentication device 70 is not possible, but the command for which relaying is restricted can be varied according to the control of any one of the first to fourth modes. Therefore, the operation of the host device 30 to be restricted can also be varied according to the mode.
[0102] In the first mode, only write commands are not relayed. This means that data cannot be written from the host device 30 to the device memory 40a of the control device 40. This means that the host device 30 can be made unable to operate operation components such as buttons provided on the screen, and unable to input data into input components such as numeric input components provided on the screen.
[0103] In the first mode, commands other than the write command are relayed. This allows the host device 30 to obtain data for displaying a screen from the control device 40 using a read command and display the screen. When switching the screen to be displayed, the host device 30 registers an address in the control device 40 using a monitor registration command, and can switch the screen by obtaining data for displaying the screen to be switched using a monitor read command.
[0104] In the second mode, the monitor registration command is not relayed. This means that the host device 30 cannot register in the control device 40 an address for reading data collectively when the screen is switched. Therefore, the host device 30 cannot switch the screen.
[0105] In the second mode, commands other than the monitor registration command are relayed. This allows the host device 30 to write data using a write command. This allows operations on operation components and inputs to input components, which are prohibited in the first mode.
[0106] In the third mode, write commands and monitor registration commands are not relayed, which means that the host device 30 cannot operate the operation components or input the input components, and cannot switch screens using the monitor registration function.
[0107] In the third mode, commands other than the write command and the monitor registration command are relayed, which allows the host device 30 to display a screen based on data acquired by a read command.
[0108] In the fourth mode, no commands are relayed, and therefore the host device 30 cannot perform operations based on the various commands described above.
[0109] In this way, it is possible to specify a command that restricts relaying depending on the mode. As a result, by not connecting the security authentication device 70 to the communication relay device 20, it is possible to change the operations that the host device 30 can perform and cannot perform without requiring any special operation.
[0110] Next, the control of the monitor registration command by the relay control unit 17 will be described.
[0111] FIG. 5 is a flowchart showing a procedure in which the communication relay device 20 controls the monitor registration command.
[0112] 5, when the communication relay device 20 is started, first, the start / stop control unit 12 performs initialization (step S21) consisting of steps S1 to S4 shown in FIG. 3. When this initialization is completed, the communication relay device 20 becomes ready to receive transmission data from the host device 30.
[0113] Next, the command monitoring unit 13 judges whether or not the protocol used for communication between the host device 30 and the control device 40 supports the command being monitored (monitoring command) (step S23). If the command monitoring unit 13 judges in step S23 that the protocol supports the monitor registration function (YES), it judges whether or not the monitoring command is a monitor registration command issued immediately after the start-up of the communication relay device 20 (step S24).
[0114] If the command monitoring unit 13 determines in step S24 that the monitoring command is not a monitor registration command immediately after startup (NO), it further determines whether the monitoring command is a monitor registration command (step S25). If the command monitoring unit 13 determines in step S25 that the monitoring command is not a monitor registration command (NO), it further determines whether the monitoring command is a write command (step S26).
[0115] If the command monitoring unit 13 determines in step S26 that the monitoring command is a write command (YES), the relay control unit 17 determines whether or not security control by the security authentication device 70 has been released (step S27). If the relay control unit 17 determines in step S27 that security control has been released (YES), it transmits a command packet to the control device 40 (step S28). Then, the relay control unit 17 transmits to the host device 30 the response data returned from the control device 40 as a response to the command packet from the host device 30 (step S29), and returns the process to step S22.
[0116] Also, if the command monitoring unit 13 determines in step S23 that the protocol does not support the monitor registration function (NO), the process proceeds to step S26. If the command monitoring unit 13 determines in step S24 that the monitoring command is a monitor registration command immediately after startup (YES), the process proceeds to step S28. As a result, the monitor registration command immediately after startup is transmitted to the control device 40. Therefore, the host device 30 can obtain information from the control device 40 about the screen to be displayed immediately after startup and reflect that information on the screen. If the command monitoring unit 13 determines in step S25 that the monitoring command is a monitor registration command (YES), the process proceeds to step S27.
[0117] Furthermore, if command monitoring unit 13 determines in step S26 that the monitoring command is not a write command (NO), the process proceeds to step S28. In this case, a read command is transmitted to control device 40. Furthermore, if relay control unit 17 determines in step S27 that security control of security authentication device 70 has not been released (NO), the process returns to step S22.
[0118] In this manner, when security control is not released, if the monitoring command is a monitor registration command, the relay control unit 17 controls the communication relay unit 16 so as not to transmit the monitor registration command to the control device 40.
[0119] The above-mentioned screens are usually configured to generate multiple commands. Therefore, when the screen is switched and displayed in the host device 30, the commands generated in the screen are sent individually, and the device memory 40a of the control device 40 is accessed by each command, which is not efficient. In contrast, when the host device 30 sends a monitor registration command to the control device 40, the device memory 40a of the control device 40 is accessed collectively, so that multiple pieces of information in the device memory 40a can be acquired collectively.
[0120] However, in a state where authentication has not been obtained, the monitor registration command transmitted from the host device 30 when the screen is switched is not transmitted to the control device 40. As a result, the host device 30 cannot register in the control device 40 an address for acquiring data collectively from the control device 40. Therefore, the host device 30 cannot acquire data for displaying the screen to be switched from the control device 40. Therefore, it is possible to restrict screen switching using the monitor registration function in the host device 30.
[0121] Next, the control of operations by the relay control section 17 using the control bits will be described.
[0122] FIG. 6 is a flow chart showing a procedure in which the communication relay device 20 controls the operation of the host device 30 by utilizing the control bits set in the control device 40.
[0123] 6, when the communication relay device 20 is started, first, the start / stop control unit 12 performs the same initialization as the initialization in step S21 shown in Fig. 5 (step S31). When this initialization is completed, the communication relay device 20 becomes ready to receive transmission data from the host device 30.
[0124] Next, the command monitoring unit 13 monitors the command (step S32). The command analysis unit 15 judges whether the host device 30 reads the state of the control bit set in the device memory 40a by the control bit read command (step S33). To make this judgment, the command analysis unit 15 analyzes the control bit read command identified by the command monitoring unit 13. If the command analysis unit 15 judges in step S33 that the state of the control bit is to be read (YES), the relay control unit 17 judges whether the security control by the security authentication device 70 is released (step S34).
[0125] Furthermore, if relay control unit 17 determines in step S34 that security control has been released (YES), it transmits a command packet to control device 40 (step S35). Then, relay control unit 17 transmits to host device 30 response data returned from control device 40 as a response to the command packet from host device 30 (step S36), and returns the process to step S32.
[0126] Also, if it is determined in step S33 that the command analysis unit 15 has not read the state of the control bit (NO), the process proceeds to step S35. If it is determined in step S34 that the security control has not been released (NO), the relay control unit 17 transmits a dummy response indicating that the operation lock (prohibition) is active to the host device 30 (step S37), and returns the process to step S32. The response is a pseudo control bit (prohibition information) indicating to the host device 30 that the operation of the device 90 is prohibited.
[0127] In this way, when a control bit read command is sent from the host device 30 while security control is not released, a pseudo control bit is sent to the host device 30 by the relay control unit 17 instead of the control device 40.
[0128] Furthermore, the control of the extracted write command by the relay control unit 17 will be described.
[0129] With security control not released, the relay control unit 17 refers to the command list database stored in the flash memory 2c to identify a write command designated by the user (designated write command). The relay control unit 17 controls the communication relay unit 16 to relay the designated write command as a command selected to be transmitted. On the other hand, the relay control unit 17 controls the communication relay unit 16 not to relay write commands other than the designated write command as a command selected not to be transmitted.
[0130] As a result, the designated write command from the host device 30 is transmitted to the control device 40. Moreover, write commands that are not designated write commands from the host device 30 are not transmitted to the control device 40.
[0131] In addition to write commands that are generated by operations, write commands that do not involve operations are also exchanged between the host device 30 and the control device 40 in system operation. Therefore, by designating such write commands as designated write commands, it is possible to transmit only the designated write commands to the control device even in a state where authentication has not been obtained. This allows security management to be performed without interfering with system operation.
[0132] In the present embodiment, an example has been described in which communication relay device 20 relays communication between host device 30 and control device 40 by serial communication. In addition, communication relay device 20 may relay communication between control device 40 and other data management devices such as a personal computer connected to LAN 60, and relay control unit 17 may control commands by security authentication device 70 in such a configuration.
[0133] [Embodiment 2] The second embodiment of the present invention will be described below with reference to Figures 7 to 9. In this embodiment, components having the same functions as those in the first embodiment are denoted by the same reference numerals, and the description thereof will be omitted.
[0134] Fig. 7 is a block diagram showing the configuration of a control system 101 according to embodiment 2. Fig. 8 is a block diagram showing the configuration of a main part of a communication relay device 21 in the control system 101 according to embodiment 2.
[0135] 7, the control system 101 includes a communication relay device 21, a host device 30, a control device 40, a device 50, a LAN 60, a security authentication device 70, and an apparatus 90. The communication relay device 21 includes a CPU 1, a memory unit 2, a first driver / receiver 3, a second driver / receiver 4, a first UART 5, a second UART 6, a LAN interface unit 7, a power supply circuit 11, and a data bus 120, similar to the communication relay device 20 according to the first embodiment. The communication relay device 21 further includes a first relay 18, a second relay 19, and a serial communication line 10.
[0136] The first relay 18 is interposed between the serial port COM2 and the first driver / receiver 3. The first relay 18 is a circuit that switches between a communication path that connects the host device 30 and the control device 40 to each other and transmits communication data from the control device 40 to the host device 30, and a communication path between the host device 30 and the first driver / receiver 3.
[0137] The second relay 19 is interposed between the serial port COM1 and the second driver / receiver 4. The second relay 19 is a circuit that switches between a communication path that connects the host device 30 and the control device 40 to each other and transmits communication data from the host device 30 to the control device 40, and a communication path between the control device 40 and the second driver / receiver 4.
[0138] The first relay 18, the second relay 19, and the serial communication line 10 connecting the first relay 18 and the second relay 19 form a direct path that directly connects the host device 30 and the control device 40 without going through the communication relay unit 16.
[0139] 8, the communication relay device 21 has a relay control unit 17A instead of the relay control unit 17 in the communication relay device 20 according to embodiment 1. The relay control unit 17A has a control function of the first relay 18 and the second relay 19 in addition to the control function of the communication relay unit 16 that the relay control unit 17 has.
[0140] Next, the control of the bypass connection by the relay control unit 17A will be described.
[0141] FIG. 9 is a flow chart showing the procedure by which communication relay device 21 directly connects the communication line between host device 30 and control device 40.
[0142] 9, when the communication relay device 21 is started, first, the start / stop control unit 12 performs the same initialization as the initialization in step S21 shown in Fig. 5 (step S41). When this initialization is completed, the communication relay device 21 becomes ready to receive transmission data from the host device 30.
[0143] The relay control unit 17A judges whether or not the security control by the security authentication device 70 has been released (step S42). If the relay control unit 17A judges in step S42 that the security control has not been released (NO), it releases the bypass connection in which the above-mentioned direct path is formed (step S43).
[0144] When the bypass connection is released, the relay control unit 17A controls the first relay 18 to connect the serial port COM2 and the first driver / receiver 3, and controls the second relay 19 to connect the serial port COM1 and the second driver / receiver 4. This allows relaying via the communication relay unit 16.
[0145] The command monitoring unit 13 determines whether or not the protocol used between the host device 30 and the control device 40 supports the monitoring command (step S44). The subsequent processes of steps S45 to S50 are performed in the same manner as steps S24 to S26, S28, and S29 shown in FIG.
[0146] Furthermore, when the relay control unit 17A determines in step S42 that the security control is released (YES), it enables the bypass connection (step S51) and returns the process to step S42. To enable the bypass connection, the relay control unit 17A controls the first relay 18 to connect the serial port COM2 and the serial communication line 10, and controls the second relay 19 to connect the serial port COM1 and the serial communication line 10. This allows relaying via the serial communication line 10.
[0147] In this way, relay control unit 17A disables the bypass connection when authentication by security authentication device 70 has not been obtained, and enables the bypass connection when authentication has been obtained. This allows communication between host device 30 and control device 40 to be performed via the bypass when authentication has been obtained. This makes it possible to reduce the burden on CPU 1 that operates relay control unit 17A.
[0148] [Software implementation example] The control blocks of the communication relay devices 20 and 21 may be realized by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like, or may be realized by software. The control blocks include, in particular, a command monitor 13, a command analyzer 15, a command list creator 14, a communication relay unit 16, and a relay controller 17.
[0149] In the latter case, the communication relay devices 20 and 21 are provided with a computer that executes instructions of a program, which is software that realizes each function. The computer includes, for example, one or more processors, and a computer-readable recording medium that stores the program. The object of the present invention is achieved by the processor reading the program from the recording medium and executing it in the computer. The processor may be, for example, a CPU 1. The recording medium may be a "non-transient tangible medium," such as a ROM 2b, tape, disk, card, semiconductor memory, programmable logic circuit, or the like. A main memory 2a that expands the program may also be used. The program may be supplied to the computer via any transmission medium (such as a communication network or broadcast waves) that can transmit the program. One aspect of the present invention may also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.
[0150] [Additional Notes] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention. [Explanation of symbols]
[0151] 8. First relay (direct path) 9 Second relay (direct path) 10 Serial communication line (direct route) 14 Command list creation section (command extraction section) 16 Communication relay unit 17 Relay control section 20 Communication relay device 30 Host Device 40 Control Equipment 40a Device Memory (Memory) 70 Security certification equipment 80 Data management equipment 90 equipment
Claims
1. a communication relay unit that relays communication between a host device and a control device that operates in response to commands from the host device, including a write command that instructs writing of data and a read command that reads data from the host device; a relay control unit that controls relaying of commands from the host device to the control device depending on whether authentication is successful or not by a security authentication device provided inside or outside the communication relay device; A command monitoring unit that determines a type of the command, The relay control unit is when the command monitoring unit determines that the command is the write command, controlling the communication relay unit not to relay the write command when authentication by the security authentication device is not obtained, and relaying the write command when authentication by the security authentication device is obtained; When the command monitoring unit determines that the command is the read command, the communication relay unit is controlled to relay the read command without going through authentication by the security authentication device.
2. the host device displays a screen for generating a plurality of the commands, and when switching the screen to display another screen, transmits to the control device a registration command for registering an address of the memory for collectively accessing the memory of the control device by the commands generated by the switched screen; The communication relay device according to claim 1, characterized in that the relay control unit controls the communication relay unit so as not to relay the registration command when the command from the host device is the registration command when authentication by the security authentication device has not been obtained.
3. a communication relay unit that relays communication between a host device and a control device that operates in response to a command from the host device; a relay control unit that controls relaying of commands from the host device to the control device depending on whether authentication is successful or not by a security authentication device provided inside or outside the communication relay device; a command extraction unit that extracts a write command instructing data writing from the commands from the host device, creates a list of the extracted write commands, and allows a user to specify the write command to be transmitted from the list; The relay control unit refers to the list, and relays the extracted write commands, which are specified by the user, as write commands selected to be sent to the control device without authentication by the security authentication device, while controlling the communication relay unit not to relay, among the extracted write commands, write commands not specified by the user as write commands selected not to be sent to the control device without authentication by the security authentication device.
4. a communication relay unit that relays communication between a host device and a control device that operates in response to a command from the host device; a relay control unit that controls relaying of a command from the host device to the control device depending on whether authentication is successful by a security authentication device provided inside or outside the communication relay device, the host device displays a screen for generating a plurality of the commands, and when switching the screen to display another screen, transmits to the control device a registration command for registering an address of the memory for collectively accessing the memory of the control device by the commands generated by the switched screen, and transmits to the control device a write command for instructing writing of data; the security authentication device is provided outside the communication relay device so as to be connectable to the communication relay device, The relay control unit controls the communication relay unit when the security authentication device is not connected to the communication relay device to alternatively not relay the write command when the command is the write command, not relay the registration command when the command is the registration command, not relay the write command or the registration command when the command is the write command or the registration command, and not relay any of the commands.
5. a communication relay unit that relays communication between a host device and a control device that operates in response to a command from the host device; a relay control unit that controls relaying of a command from the host device to the control device depending on whether authentication is successful by a security authentication device provided inside or outside the communication relay device, when a prohibited state is reached in which operation by the host device is prohibited for a device controlled by the control device, the control device sets operation information stored in a memory provided in the control device to a prohibited state, and when an operation information read command for reading the operation information is received from the host device, the control device returns the operation information to the host device and does not accept operation from the host device for the device in the prohibited state; The communication relay device is characterized in that, when authentication by the security authentication device has not been obtained and the command from the host device is the operation information read command, the relay control unit sets the operation information that is also set in the communication relay device to a prohibited state and sends the operation information to the host device on behalf of the control device, while, when authentication by the security authentication device has been obtained, the relay control unit controls the communication relay unit to relay the operation information read command.
6. a direct path that directly connects the host device and the control device without passing through the communication relay unit; The communication relay device according to claim 1, 2, 3 or 5, characterized in that the relay control unit disables the direct route when authentication by a security authentication device is not obtained, and enables the direct route when authentication is obtained.
7. The control device operates in response to a command from a data management device that manages data, the communication relay unit relays communication between the data management device and the control device; 6. The communication relay device according to claim 1, wherein the relay control unit controls relay of a command from the data management device to the control device depending on whether authentication by the security authentication device is successful.
Citation Information
Patent Citations
Data communication system and mobile radio equipment
JP2002101451A
Data storage unit and image recorder
JP2002247315A
Temperature controller
JP2003058257A
Control display device, storage medium with program therefor stored therein, and control system
JP2003196169A
Programmable display
JP2016126487A
