Communication system, communication device, and monitoring device
The communication system addresses the inefficiency in switching back to the main line by using a monitoring device to check and manage line status, ensuring reliable communication by seamlessly transitioning back to the restored main line.
Patent Information
- Application Number
- JP2023031302
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing communication systems fail to efficiently switch back to the main line after a failure occurs, as they do not consider the restoration of the main line when switching from a backup line.
A communication system with a monitoring device that checks the status of both the main and backup lines, allowing seamless switching back to the main line when it becomes operational, using PING ECHO requests to confirm connectivity and storing status information for efficient line management.
Ensures smooth and efficient switching from a backup to the restored main line, maintaining communication reliability by proactive line status monitoring and management.
Smart Images

Figure 2024123687000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a communication system, a communication device, and a monitoring device. [Background technology]
[0002] Patent Document 1 discloses a method in which, when a fault occurs in a network that is normally used to transmit information between a host device and an operation terminal device, a backup line is used to switch over, and a monitoring device periodically checks the connectivity of the backup line. If it is confirmed that the host device is not connected to the backup line, a process is performed to restore the connection between the host device and the backup line. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2001-69124 A Summary of the Invention [Problem to be solved by the invention]
[0004] In a redundant network configuration, if a failure occurs in the main line that is normally used, the system switches to the backup line. When the main line is restored, it is necessary to switch from the backup line to the main line, but Patent Document 1 does not take into consideration the switching to the main line. [Means for solving the problem]
[0005] A communication system according to one embodiment of the present disclosure includes a management device, a communication device capable of communicating with the management device through a first line, and a monitoring device that performs a first communication confirmation, which is a process for confirming communication on the first line, and monitors a status of the first line, wherein the communication device switches its connection from the first line to a second line when it is unable to communicate with the management device through the first line, the monitoring device determines whether the first line is in a communication-enabled state based on the first communication confirmation, and the communication device switches its connection from the second line to the first line when the monitoring device determines that the first line is in a communication-enabled state. Effect of the Invention
[0006] According to the present disclosure, when the first line is restored, switching from the second line to the first line can be performed smoothly. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a schematic diagram for explaining an example of a communication system according to an embodiment. [Diagram 2] FIG. 2 is a block diagram illustrating an example of a hardware configuration of the relay device according to the embodiment. [Diagram 3] FIG. 3 is a block diagram illustrating an example of a hardware configuration of the monitoring device according to the embodiment. [Figure 4] FIG. 4 is a functional block diagram illustrating an example of functions of the communication system according to the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of the state table. [Figure 6] FIG. 6 is a flowchart showing an example of a communication line diagnosis process performed by the monitoring device according to the embodiment. [Figure 7] FIG. 7 is a flowchart illustrating an example of a communication line switching process by the relay device according to the embodiment. [Figure 8] FIG. 8 is a diagram showing a modified example of the state table. [Figure 9]FIG. 9 is a flowchart showing an example of communication line diagnostic processing by a monitoring device according to the second modified example. [Figure 10] FIG. 10 is a flowchart showing an example of a communication line switching process by a relay device according to the second modification. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] <Overview of the embodiment of the present disclosure> Below, an overview of the embodiments of the present disclosure will be listed and described.
[0009] (1) A communication system according to this embodiment includes a management device, a communication device capable of communicating with the management device through a first line, and a monitoring device that executes a first communication confirmation, which is a process for confirming communication on the first line, and monitors a state of the first line, wherein the communication device switches a connection from the first line to a second line when it is unable to communicate with the management device through the first line, the monitoring device determines whether the first line is in a communication-enabled state by the first communication confirmation, and the communication device switches a connection from the second line to the first line when it is determined by the monitoring device that the first line is in a communication-enabled state. This allows the communication device to smoothly switch from the second line to the first line when the first line is restored.
[0010] (2) In the above (1), the first connectivity check may be executed when the communication device is connected to the second line. This eliminates the need to execute the first connectivity check while the communication device is connected to the first line, and makes it possible to efficiently determine the state of the first line.
[0011] (3) In the above (2), the monitoring device may execute a second communication check, which is a process for checking communication on the second line, when the communication device is connected to the first line, and determine whether the second line is in a communication-enabled state. In this way, the second communication check is executed while the communication device is connected to the first line, and the states of the first line and the second line can be efficiently determined.
[0012] (4) In the above (1), the monitoring device may execute the first communication check regardless of whether the communication device is connected to the first line or the second line, and execute a first determination process of determining whether the first line is in a communication-enabled state, and execute a second communication check, which is a process of checking communication on the second line, and execute a second determination process of determining whether the second line is in a communication-enabled state. In this way, regardless of whether the communication device is connected to the first line or the second line, the monitoring device monitors the states of the first line and the second line. Therefore, the communication device can check the states of the first line and the second line regardless of whether it is connected to the first line or the second line.
[0013] (5) In the above (3) or (4), when the first line becomes unavailable and the monitoring device determines that the second line is available for communication, the communication device may switch the connection destination from the first line to the second line. In this way, when the first line becomes unavailable for communication and the second line is also unavailable for communication, it is not necessary to switch the connection destination of the communication device to the second line. When the first line becomes unavailable for communication and the second line is available for communication, a communication path can be secured by switching the connection destination of the communication device to the second line.
[0014] (6) In any one of (1) to (5) above, the monitoring device may transmit a determination result as to whether or not the first line is in a communication-ready state to the management device, the management device may store the received determination result upon receiving the determination result, and the communication device may switch the connection destination from the second line to the first line when the determination result stored in the management device indicates that the first line is in a communication-ready state. In this way, when the communication device is connected to the second line, the communication device may check whether or not the first line has been restored based on the determination result stored in the management device.
[0015] (7) In the above (5), the monitoring device may transmit a determination result as to whether or not the second line is in a communication-available state to the management device, and upon receiving the determination result, the management device may store the received determination result, and when the first line becomes communication-unavailable, the communication device may switch the connection from the first line to the second line when the determination result stored in the management device indicates that the second line is in a communication-available state. In this way, when the first line becomes communication-unavailable, the communication device can check whether or not the second line is in a communication-available state based on the determination result stored in the management device.
[0016] (8) In any one of (1) to (5) above, the monitoring device may transmit a determination result as to whether or not the first line is in a communication-ready state to the communication device, and the communication device may switch the connection from the second line to the first line when the determination result received from the monitoring device indicates that the first line is in a communication-ready state. In this way, when the communication device is connected to the second line, the communication device can check whether or not the first line has been restored based on the determination result received from the monitoring device.
[0017] (9) In the above (5), the monitoring device may transmit a determination result as to whether or not the second line is in a communication-available state to the communication device, and when the first line becomes communication-unavailable and the determination result received from the monitoring device indicates that the second line is in a communication-available state, the communication device may switch the connection from the first line to the second line. In this way, when the first line becomes communication-unavailable, the communication device can check whether or not the second line is in a communication-available state based on the determination result received from the monitoring device.
[0018] (10) A communication device according to the present embodiment is a communication device capable of communicating with a management device through a first line, and includes a first switching unit that switches a connection from the first line to a second line when communication with the management device through the first line is not possible, and a second switching unit that performs a first communication check, which is a process of checking communication on the first line, and switches a connection from the second line to the first line when a monitoring device that monitors a state of the first line determines that the first line is in a communication-available state. This allows the communication device to smoothly switch from the second line to the first line when the first line is restored.
[0019] (11) A monitoring device according to the present embodiment is a monitoring device that monitors a state of a first line used for communication between a management device and a communication device, and includes a determination unit that executes a first communication confirmation, which is a process for confirming communication on the first line when the communication device switches a connection destination from the first line to a second line, and determines whether the first line is in a communication-enabled state, and a transmission unit that transmits the determination result by the determination unit to notify the management device or the communication device. As a result, when the first line is restored, the management device or the communication device is notified of the restoration of the first line, and the communication device can smoothly switch from the second line to the first line.
[0020] The present disclosure can be realized not only as a communication system having the above-mentioned characteristic configuration, but also as a monitoring device included in the communication system, or as a communication device included in the communication system. Furthermore, the present disclosure can be realized as a communication line switching method having steps corresponding to characteristic processes in a communication system, as a computer program for causing a monitoring device to execute characteristic processes, or as a computer program for causing a communication device to execute characteristic processes. Furthermore, the present disclosure can be realized as a semiconductor integrated circuit as a part or all of the monitoring device, or as a semiconductor integrated circuit as a part or all of the communication device.
[0021] <Details of the embodiment of the present disclosure> Hereinafter, the details of the embodiments of the present invention will be described with reference to the drawings. Note that at least some of the embodiments described below may be combined in any desired manner.
[0022] [1. Communication Systems] FIG. 1 is a schematic diagram for explaining an example of a communication system according to the present embodiment.
[0023] The communication system 10 includes relay devices 100_1 and 100_2, a monitoring device 300, and a management device 600.
[0024] The relay devices 100_1 and 100_2 are arranged in a facility such as a factory or a commercial facility. The relay devices 100_1 and 100_2 may be arranged in different facilities or in the same facility. Although two relay devices 100_1 and 100_2 are shown in the example of FIG. 1, the communication system 10 may include one relay device or may include three or more relay devices. Hereinafter, the relay devices 100_1 and 100_2 are collectively referred to as "relay devices 100." The relay device 100 is an example of a "communication device."
[0025] The relay device 100 is communicatively connected (communicatively connected) to a mobile communication system such as a fourth generation mobile communication system (4G) or a fifth generation mobile communication system (5G). The communication system 10 has a redundant network configuration. That is, the relay device 100 is connectable to two mobile communication systems. For example, the relay device 100 is connectable to a mobile communication network 400_1 operated by a mobile communication carrier a and a mobile communication network 400_2 operated by a mobile communication carrier b. A customer who operates the relay devices 100_1 and 100_2 has a contract for a mobile communication network connection service with each of the mobile communication carriers a and b.
[0026] Specifically, the mobile communication network 400_1 includes a base station 410_1, and the mobile communication network 400_2 includes a base station 410_2. The relay devices 100_1 and 100_2 are selectively connected to either the base station 410_1 or the base station 410_2.
[0027] Each of the mobile communication networks 400 _ 1 and 400 _ 2 is connected to the Internet 500 .
[0028] The relay devices 100_1 and 100_2 are communicatively connected to the management device 600 via the mobile communication network 400_1 or 400_2 and the Internet 500. Hereinafter, the mobile communication networks 400_1 and 400_2 and the Internet 500 are also collectively referred to as a "WAN (Wide Area Network)."
[0029] A plurality of sensors 200 are connected to the relay device 100 via a LAN (Local Area Network) conforming to Ethernet (registered trademark). Sensors 200_11, 200_12, and 200_13 are connected to the relay device 100_1. Sensors 200_21, 200_22, and 200_23 are connected to the relay device 100_2. Hereinafter, the sensors 200_11, 200_12, 200_13, 200_21, 200_22, and 200_23 are collectively referred to as "sensor 200".
[0030] The sensor 200 is an example of a device and may be various sensors. For example, the sensor 200 may be a temperature sensor, a pressure sensor, a voltage sensor, a current sensor, an ultrasonic sensor, a photoelectric sensor, a proximity sensor, an acceleration sensor, a speed sensor, a position sensor, a torque sensor, a flow rate sensor, or a vibration sensor. Furthermore, the sensor 200 may be a camera. The sensor 200 has a communication interface conforming to Ethernet and can communicate with the relay device 100 and other devices by, for example, UDP / IP (User Datagram Protocol / Internet Protocol) or TCP / IP (Transmission Control Protocol / Internet Protocol).
[0031] The relay device 100 has a router function. The relay device 100 can relay frames between the LAN side and the WAN side. The relay device 100 can receive output data of the sensor 200, for example, and transfer the received output data to the WAN side. Specifically, the relay device 100 can register the output data of the sensor 200 in a database (not shown) connected to the Internet 500, for example. The relay device 100 may process the output data of the sensor 200. For example, the relay device 100 can perform statistical processing on the output value of a temperature sensor or a vibration sensor, calculate a statistical value, or thin out the output data. The relay device 100 may register data obtained by processing the output data in the database.
[0032] The mobile communication network 400_1 is a main line that the relay device 100 normally uses, and the mobile communication network 400_2 is a backup line that the relay device 100 uses when the main line is in a communication-disabled state. That is, the relay devices 100_1 and 100_2 are normally communicatively connected to a base station 410_1 and communicate with devices on the Internet 500 via the mobile communication network 400_1. When the mobile communication network 400_1 is in a communication-disabled state due to a failure, the relay devices 100_1 and 100_2 are communicatively connected to a base station 410_2 and communicate with devices on the Internet 500 via the mobile communication network 400_2. The main line is an example of a "first line," and the backup line is an example of a "second line."
[0033] The monitoring device 300 monitors the state of the main line and is selectively connected to either one of the mobile communication networks 400_1 and 400_2.
[0034] The management device 600 is used to check communication on the main line or the backup line. The monitoring device 300 transmits an ECHO request for checking communication to the management device 600, for example, using PING of the Internet Control Message Protocol (ICMP), and when the management device 600 receives the ECHO request, it returns an ECHO response. Communication is confirmed when the monitoring device 300 receives the ECHO response. If the monitoring device 300 does not receive an ECHO response, communication is not confirmed, and it is confirmed that the WAN is in an unusable state.
[0035] [2. Configuration of relay device] 2 is a block diagram showing an example of a hardware configuration of a relay device according to the present embodiment. The relay device 100 includes a processor 101, a non-volatile memory 102, a volatile memory 103, a wireless communication interface (I / F) 104, and a communication I / F 105.
[0036] The volatile memory 103 is, for example, a semiconductor memory such as a static random access memory (SRAM) or a dynamic random access memory (DRAM). The non-volatile memory 102 is, for example, a flash memory, a hard disk, a read only memory (ROM), etc. The non-volatile memory 102 stores a communication line switching program 110, which is a computer program, and data used for executing the communication line switching program 110. Each function of the relay device 100 is realized by the processor 101 executing the communication line switching program 110.
[0037] The processor 101 is, for example, a CPU (Central Processing Unit). However, the processor 101 is not limited to a CPU. The processor 101 may be a GPU (Graphics Processing Unit). In a specific example, the processor 101 is a multi-core processor. The processor 101 may be a single-core processor. The processor 101 is configured to be able to execute a computer program. However, the processor 101 may be, for example, an ASIC (Application Specific Integrated Circuit) or a programmable logic device such as a gate array or an FPGA (Field Programmable Gate Array). In this case, the ASIC or the programmable logic device is configured to be able to execute the same function as the communication line switching program 110.
[0038] The wireless communication I / F 104 is, for example, a wireless communication module conforming to 4G or 5G. The wireless communication I / F 104 includes a wireless antenna and can be communicatively connected to a mobile communication network 400_1 via a base station 410_1. The wireless communication I / F 104 can also be communicatively connected to a mobile communication network 400_2 via a base station 410_2. The wireless communication I / F 104 is used for communication with an external device connected to the Internet 500, such as the management device 600 and the above-mentioned database.
[0039] The wireless communication I / F 104 can be selectively connected to either one of the mobile communication networks 400_1 and 400_2. Specifically, the wireless communication I / F 104 is a cellular communication module of a Dual SIM Single Standby (DSSS) system. That is, the wireless communication I / F 104 includes two Subscriber Identity Module (SIM) readers 104A and 104B. The SIM readers 104A and 104B can insert SIMs provided by a mobile communication carrier and can read information from the SIMs. Identification information unique to a subscriber, such as an International Mobile Subscriber Identity (IMSI) and a telephone number, is recorded in the SIM. The SIM reader 104A is inserted with a SIM provided by a mobile communication carrier a (i.e., a SIM used for connecting to the mobile communication network 400_1). The SIM reader 104B is inserted with a SIM provided by a mobile communication carrier b (i.e., a SIM used for connecting to the mobile communication network 400_2). The wireless communication I / F 104 cannot be connected to the mobile communication networks 400_1 and 400_2 simultaneously, but can be selectively connected to either one of the mobile communication networks 400_1 and 400_2.
[0040] However, the wireless communication I / F 104 may be a cellular communication module other than DSSS as long as it has two SIM readers. For example, the wireless communication I / F 104 may be a cellular communication module of the DSDS (Dual SIM Dual Standby) system.
[0041] The communication I / F 105 is, for example, an Ethernet interface. The communication I / F 105 is capable of communication using, for example, UDP / IP or TCP / IP. The communication I / F 105 is used for communication with the sensor 200.
[0042] The communication line switching program 110 is a program for the relay device 100 to switch the connection from the main line (mobile communication network 400_1) to the backup line (mobile communication network 400_2) and from the backup line (mobile communication network 400_2) to the main line (mobile communication network 400_1).
[0043] [3. Configuration of monitoring device] 3 is a block diagram showing an example of a hardware configuration of a monitoring device according to this embodiment. The monitoring device 300 includes a processor 301, a non-volatile memory 302, a volatile memory 303, and a wireless communication interface (I / F) 304.
[0044] The volatile memory 303 is, for example, a semiconductor memory such as an SRAM or a DRAM. The non-volatile memory 302 is, for example, a flash memory, a hard disk, a ROM, etc. The non-volatile memory 302 stores a communication line diagnosis program 310, which is a computer program, and data used for executing the communication line diagnosis program 310. Each function of the monitoring device 300 is realized by the processor 301 executing the communication line diagnosis program 310.
[0045] The processor 301 is, for example, a CPU. However, the processor 301 is not limited to a CPU. The processor 301 may be a GPU. In a specific example, the processor 301 is a multi-core processor. The processor 301 may be a single-core processor. The processor 301 is configured to be able to execute a computer program. However, the processor 301 may be, for example, an ASIC, or a programmable logic device such as a gate array or an FPGA. In this case, the ASIC or the programmable logic device is configured to be able to execute the same function as the communication line diagnosis program 310.
[0046] The wireless communication I / F 304 is, for example, a wireless communication module conforming to 4G or 5G. The wireless communication I / F 304 includes a wireless antenna and can be communicatively connected to a mobile communication network 400_1 via a base station 410_1. The wireless communication I / F 304 can also be communicatively connected to a mobile communication network 400_2 via a base station 410_2. The wireless communication I / F 304 is used for communication with an external device connected to the Internet 500, such as the management device 600 and the above-mentioned database.
[0047] The wireless communication I / F 304 can be selectively connected to one of the mobile communication networks 400_1 and 400_2. Specifically, the wireless communication I / F 104 is a cellular communication module of a DSSS (Dual SIM Single Standby) system, and includes two SIM readers 304A and 304B. A SIM provided by a mobile communication carrier a (i.e., a SIM used for connecting to the mobile communication network 400_1) is inserted into the SIM reader 304A. A SIM provided by a mobile communication carrier b (i.e., a SIM used for connecting to the mobile communication network 400_2) is inserted into the SIM reader 304B. The wireless communication I / F 304 cannot be simultaneously connected to the mobile communication networks 400_1 and 400_2, and can be selectively connected to one of the mobile communication networks 400_1 and 400_2.
[0048] The communication line diagnostic program 310 is a program for diagnosing the state of the main line (mobile communication network 400_1).
[0049] [4. Functions of communication systems] FIG. 4 is a functional block diagram showing an example of functions of the communication system according to the present embodiment.
[0050] The relay device 100 has the functions of a first switching unit 111, an acquisition unit 112, and a second switching unit 113. The monitoring device 300 has the functions of a first determination unit 311 and a transmission unit 313.
[0051] When the relay device 100 cannot communicate with the management device 600 through the main line, the first switching unit 111 switches the connection from the main line to the backup line in order to communicate with the management device 600. In other words, when the main line is in a communication-disabled state, the first switching unit 111 cuts off the communication connection with the main line and establishes a communication connection with the backup line.
[0052] When the relay device 100 switches the connection destination from the main line to the backup line in order to communicate with the management device 600, the first determination unit 311 executes a first communication check, which is a process for checking communication in the main line, and determines whether the main line is in a communication-enabled state. The first determination unit 311 is an example of a "determination unit." Specifically, the first determination unit 311 executes the first communication check by establishing a connection with the main line and transmitting an ECHO request of PING to the management device 600 through the main line. When the management device 600 receives the ECHO request, it transmits an ECHO response. When the first determination unit 311 receives an ECHO response within a predetermined time from the transmission of the ECHO request, it determines that the main line is in a communication-enabled state, and when the first determination unit 311 does not receive an ECHO response within the predetermined time from the transmission of the ECHO request, it determines that the main line is in a communication-disabled state.
[0053] When the relay device 100 is connected to the backup line, the first determination unit 311 executes a first communication check and determines whether or not the main line is in a communication-enabled state.
[0054] The transmission unit 313 transmits the determination result made by the first determination unit 311 to the management device 600 for notification.
[0055] The management device 600 receives the determination result by the first determination unit 311 transmitted from the transmission unit 313. When the management device 600 receives the determination result, it stores the received determination result. In a specific example, a state table 601 for storing the state of the main line is provided in a non-volatile memory (not shown) of the management device 600. FIG. 5 is a diagram showing an example of the state table 601. In the state table 601, first state information indicating whether the main line is in a communication-enabled state or a communication-disabled state is registered. That is, when the first determination unit 311 determines that the main line is in a communication-enabled state, the first state information indicating that the main line is in a communication-enabled state is registered in the state table 601. When the first determination unit 311 determines that the main line is in a communication-disabled state, the first state information indicating that the main line is in a communication-disabled state is registered in the state table 601.
[0056] 4, acquisition unit 112 acquires a result of the determination made by first determination unit 311. Specifically, acquisition unit 112 inquires of management device 600 about the first status information. In response to the inquiry from acquisition unit 112, management device 600 transmits the first status information registered in status table 601 to relay device 100. Acquisition unit 112 receives the first status information transmitted from management device 600.
[0057] The second switching unit 113 switches the connection from the backup line to the main line when the monitoring device 300 determines that the main line is in a communication-enabled state. Specifically, when the first state information acquired by the acquisition unit 112 indicates that the main line is in a communication-enabled state, the second switching unit 113 disconnects the communication connection with the backup line and establishes a communication connection with the main line.
[0058] [5. Operation of communication system] The processor 301 of the monitoring device 300 executes a communication line diagnostic process by executing the communication line diagnostic program 310. The communication line diagnostic process according to this embodiment is a process for determining whether or not the main line is in a communication-enabled state.
[0059] FIG. 6 is a flowchart showing an example of communication line diagnostic processing by the monitoring device according to this embodiment.
[0060] The processor 301 establishes a main line, that is, a communication connection with the mobile communication network 400_1 (step S101). In the network connection in step S101, information read from a SIM inserted into the SIM reader 304A for connection with the mobile communication network 400_1 is used.
[0061] The processor 301 executes a communication check (first communication check) to the management device 600 through the main line (step S102). Specifically, the processor 301 executes a PING command and transmits an ECHO request to the management device 600. If the main line is in a communication-enabled state, the management device 600 receives the ECHO request. Having received the ECHO request, the management device 600 transmits an ECHO response to the monitoring device 300, which receives the ECHO response. If the main line is in a communication-disabled state, the ECHO request does not reach the management device 600. Therefore, the management device 600 does not transmit an ECHO response, and the monitoring device 300 does not receive the ECHO response.
[0062] The processor 301 determines whether or not the main line is in a communication-enabled state based on the result of the first communication check (step S103).
[0063] If the main line is in a communication-enabled state (YES in step S103), the processor 301 transmits a determination result indicating that the main line is in a communication-enabled state to the management device 600 (step S104), and returns to step S102. The management device 600, which has received the determination result, registers in the state table 601 first status information indicating that the main line is in a communication-enabled state.
[0064] On the other hand, if the main line is in a communication unavailable state (NO in step S103), the processor 301 disconnects the communication connection with the main line and establishes a communication connection with the backup line, that is, the mobile communication network 400_2 (step S105). In the network connection in step S105, information read from the SIM inserted in the SIM reader 304B for connection with the mobile communication network 400_2 is used.
[0065] When a communication connection with the backup line is established, the processor 301 transmits a determination result indicating that the main line is in a communication-disabled state to the management device 600 (step S106), and returns to step S101. The management device 600, which has received the determination result, registers in the status table 601 the first status information indicating that the main line is in a communication-disabled state.
[0066] The processor 101 of the relay device 100 executes a communication line switching process by executing the communication line switching program 110. The communication line switching process according to this embodiment is a process for switching the connection destination of the relay device 100 from the backup line to the main line when the relay device 100 is connected to a backup line and the main line becomes communicable.
[0067] FIG. 7 is a flowchart showing an example of a communication line switching process by the relay device according to the present embodiment.
[0068] The processor 101 establishes a main line, that is, a communication connection with the mobile communication network 400_1 (step S201). In the network connection in step S201, information read from a SIM inserted into the SIM reader 104A for connection with the mobile communication network 400_1 is used.
[0069] The processor 101 executes a communication check to the management device 600 through the main line (step S202). The communication check is similar to the above-mentioned step S102, and therefore a description thereof will be omitted.
[0070] The processor 101 determines whether or not the main line is in a communication disabled state based on the result of the communication check (step S203).
[0071] If the main line is in a communication-enabled state (NO in step S203), the processor 101 returns to step S202.
[0072] If the main line is in a communication unavailable state (YES in step S203), the processor 101 disconnects the communication connection with the main line and establishes a communication connection with the backup line, that is, the mobile communication network 400_2 (step S204). In the network connection in step S204, information read from the SIM inserted in the SIM reader 104B for connection with the mobile communication network 400_2 is used.
[0073] When a communication connection with the backup line is established, the processor 101 inquires of the management device 600 about the first status information. In response to the inquiry, the management device 600 transmits the first status information to the relay device 100. When the relay device 100 receives the first status information, the processor 101 checks the status of the main line based on the first status information (step S205).
[0074] The processor 101 determines whether or not the main line is in a communication-enabled state (step S206).
[0075] If the main line is in a communication-disabled state (NO in step S206), that is, if the main line has not recovered from the failure, the processor 101 returns to step S205.
[0076] If the main line is in a communication-enabled state (YES in step S206), that is, if the main line has recovered from the failure, the processor 101 returns to step S101, disconnects the communication connection with the backup line, and establishes a communication connection with the main line, that is, the mobile communication network 400_1. This causes the relay device 100 to be reconnected to the main line.
[0077] [6. Variation Examples] [6-1. First variant example] The monitoring device 300 may transmit to the relay device 100 the result of the determination as to whether or not the main line is in a communication-enabled state.
[0078] 4, in the first modification, a transmission unit 313 transmits the result of the determination made by the first determination unit 311 to the relay device 100 (indicated by a dashed arrow in the figure).
[0079] The acquisition unit 112 receives the determination result transmitted from the monitoring device 300. The second switching unit 113 switches the connection from the backup line to the main line when the determination result received from the monitoring device 300 indicates that the main line is in a communication-enabled state.
[0080] [6-2. Second variant example] The monitoring device 300 may monitor the state of the backup line.
[0081] The following describes the functions of the communication system according to the second modified example. Note that, in the following, only functions different from the functions of the communication system 10 according to the above-described embodiment will be described, and descriptions of functions that are the same as the functions of the communication system 10 according to the embodiment will be omitted.
[0082] 4, the monitoring device 300 according to the second modification further includes a function as a second determination unit 312.
[0083] When the relay device 100 is connected to the main line to communicate with the management device 600, the second determination unit 312 executes a second communication check, which is a process for checking communication in the backup line, and determines whether the backup line is in a communication-enabled state. Specifically, the second determination unit 312 executes the second communication check by establishing a connection with the backup line and transmitting an ECHO request of PING to the management device 600 through the backup line. When the management device 600 receives the ECHO request, it transmits an ECHO response. When the second determination unit 312 receives an ECHO response within a predetermined time from the transmission of the ECHO request, it determines that the backup line is in a communication-enabled state, and when the second determination unit 312 does not receive an ECHO response within the predetermined time from the transmission of the ECHO request, it determines that the backup line is in a communication-disabled state.
[0084] When the relay device 100 is connected to the main line, the second determination unit 312 executes a second communication check and determines whether or not the backup line is in a communication-enabled state.
[0085] In a specific example, regardless of whether the relay device 100 is connected to the main line or the backup line, the first determination unit 311 may perform a first communication check and execute a first determination process for determining whether or not the main line is in a communication-enabled state, and the second determination unit 312 may perform a second communication check and execute a second determination process for determining whether or not the backup line is in a communication-enabled state. For example, the first determination unit 311 and the second determination unit 312 may alternately execute the first determination process and the second determination process.
[0086] The transmission unit 313 transmits the determination result by the first determination unit 311 and the determination result by the second determination unit 312 to the management device 600 for notification.
[0087] For example, when the monitoring device 300 is connected to the main line, the transmission unit 313 can transmit the determination result by the first determination unit 311 and the determination result by the second determination unit 312 to the management device 600 through the main line. This makes it possible to transmit the determination result by the first determination unit 311 and the determination result by the second determination unit 312 to the management device 600 even when the backup line is in a communication-disabled state.
[0088] For example, when the monitoring device 300 is connected to a backup line, the transmission unit 313 can transmit the determination result by the first determination unit 311 and the determination result by the second determination unit 312 to the management device 600 through the backup line. This makes it possible to transmit the determination result by the first determination unit 311 and the determination result by the second determination unit 312 to the management device 600 even when the main line is in a communication-disabled state.
[0089] The management device 600 receives the determination result by the first determination unit 311 and the determination result by the second determination unit 312 transmitted from the transmission unit 313 .
[0090] FIG. 8 is a diagram showing a modified example of the state table. In the state table 601A according to this modified example, first state information indicating whether the main line is in a communication-enabled state or a communication-disabled state and second state information indicating whether the backup line is in a communication-enabled state or a communication-disabled state are registered. That is, when the first determination unit 311 determines that the main line is in a communication-enabled state, the first state information indicating that the main line is in a communication-enabled state is registered in the state table 601A. When the first determination unit 311 determines that the main line is in a communication-disabled state, the first state information indicating that the main line is in a communication-disabled state is registered in the state table 601A. When the second determination unit 312 determines that the backup line is in a communication-enabled state, the second state information indicating that the backup line is in a communication-disabled state is registered in the state table 601A. When the second determination unit 312 determines that the backup line is in a communication-disabled state, the second state information indicating that the backup line is in a communication-disabled state is registered in the state table 601A.
[0091] 4, the acquisition unit 112 acquires the determination result by the first determination unit 311 and the determination result by the second determination unit 312. Specifically, the acquisition unit 112 inquires of the management device 600 about the first status information and the second status information. In response to the inquiry from the acquisition unit 112, the management device 600 transmits the first status information and the second status information registered in the status table 601A to the relay device 100. The acquisition unit 112 receives the first status information and the second status information transmitted from the management device 600.
[0092] When the main line becomes unable to communicate and the monitoring device 300 determines that the backup line is in a communication-enabled state, the first switching unit 111 switches the connection destination from the main line to the backup line. In a specific example, when the main line becomes unable to communicate, the acquiring unit 112 acquires second state information from the management device 600. When the second state information acquired by the acquiring unit 112 indicates that the backup line is in a communication-enabled state, the first switching unit 111 disconnects the communication connection with the main line and establishes a communication connection with the backup line. This allows the relay device 100 to connect to the backup line after confirming that the backup line is in a communication-enabled state.
[0093] Next, the operation of the communication system according to the second modified example will be described.
[0094] FIG. 9 is a flowchart showing an example of communication line diagnostic processing by a monitoring device according to the second modified example.
[0095] The processor 301 establishes a communication connection with a main line, that is, the mobile communication network 400_1 (step S301).
[0096] The processor 301 executes a communication check (first communication check) to the management device 600 through the main line (step S302), and determines whether the main line is in a communication-enabled state or not based on the result of the first communication check (step S303). That is, the processor 301 executes a first determination process. Steps S301 to S303 are the same as steps S101 to S103 described above.
[0097] If the main line is in a communication-enabled state (YES in step S303), the processor 301 transmits a determination result indicating that the main line is in a communication-enabled state and a previous determination result of the state of the backup line to the management device 600 (step S304), and returns to step S302. Having received the determination result, the management device 600 registers in the state table 601A first state information indicating that the main line is in a communication-enabled state and second state information indicating whether the backup line is in a communication-enabled state or not.
[0098] On the other hand, if the main line is in a communication unavailable state (NO in step S303), the processor 301 disconnects the communication connection with the main line and establishes a communication connection with the backup line, that is, the mobile communication network 400_2 (step S305). Step S305 is the same as step S105 described above.
[0099] The processor 301 executes a communication check (second communication check) to the management device 600 through the backup line (step S306). Specifically, the processor 301 executes a PING command and transmits an ECHO request to the management device 600. If the backup line is in a communication-enabled state, the management device 600 receives the ECHO request. Having received the ECHO request, the management device 600 transmits an ECHO response to the monitoring device 300, which receives the ECHO response. If the backup line is in a communication-disabled state, the ECHO request does not reach the management device 600. Therefore, the management device 600 does not transmit an ECHO response, and the monitoring device 300 does not receive the ECHO response.
[0100] The processor 301 determines whether or not the backup line is in a communication-enabled state based on the result of the second communication confirmation (step S307). That is, the processor 301 executes a second determination process.
[0101] If the backup line is in a communication-enabled state (YES in step S307), the processor 301 transmits a determination result indicating that the backup line is in a communication-enabled state and the previous determination result of the state of the main line to the management device 600 (step S308), and returns to step S301. Having received the determination result, the management device 600 registers in the state table 601A first state information indicating whether the main line is in a communication-enabled state and second state information indicating that the backup line is in a communication-enabled state.
[0102] On the other hand, if the backup line is in a communication unavailable state (NO in step S307), the processor 301 returns to step S301. That is, the processor 301 disconnects the communication connection with the backup line and establishes a communication connection with the main line.
[0103] FIG. 10 is a flowchart showing an example of a communication line switching process by a relay device according to the second modification.
[0104] The processor 101 establishes a communication connection with the main line, that is, the mobile communication network 400_1 (step S401).
[0105] The processor 101 executes a communication check with the management device 600 through the main line (step S402), and determines whether or not the main line is in a communication disabled state based on the result of the communication check (step S403). Steps S401 to S403 are the same as steps S201 to S203 described above.
[0106] The processor 101 inquires of the management device 600 about the second status information. In response to the inquiry, the management device 600 transmits the second status information to the relay device 100. When the relay device 100 receives the second status information, the processor 101 checks the status of the backup line based on the second status information (step S404).
[0107] The processor 101 determines whether the backup line is in a communication-enabled state (step S405).
[0108] If the backup line is in a communication-disabled state (NO in step S405), that is, if a failure has occurred in the backup line, the processor 101 returns to step S404.
[0109] If the backup line is in a communication-enabled state (YES in step S405), that is, if no failure has occurred on the backup line, the processor 101 proceeds to step S406.
[0110] The processor 101 disconnects the communication connection with the main line, and establishes a communication connection with the backup line, that is, the mobile communication network 400_2 (step S406).
[0111] When the communication connection with the backup line is established, the processor 101 inquires of the management device 600 about the first status information, and checks the status of the main line based on the first status information (step S407).
[0112] The processor 101 determines whether or not the main line is in a communication-enabled state (step S408), and if the main line is in a communication-disabled state (NO in step S408), the processor 101 returns to step S407.
[0113] If the main line is in a communication-enabled state (YES in step S408), the processor 101 returns to step S101. Steps S406 to S408 are the same as steps S204 to S206 described above.
[0114] [6-3.Third variant example] The monitoring device 300 may transmit to the relay device 100 the determination result as to whether or not the main line is in a communication-enabled state and the determination result as to whether or not the backup line is in a communication-enabled state.
[0115] 4, in the third modification, the transmitting unit 313 transmits the determination result by the first determining unit 311 and the determination result by the second determining unit 312 to the relay device 100 (indicated by dashed arrows in the figure).
[0116] The acquisition unit 112 receives the determination result by the first determination unit 311 and the determination result by the second determination unit 312 transmitted from the monitoring device 300. The second switching unit 113 switches the connection destination from the backup line to the main line when the determination result by the first determination unit 311 received from the monitoring device 300 indicates that the main line is in a communication-enabled state. The first switching unit 111 switches the connection destination from the main line to the backup line when the determination result by the second determination unit 312 received from the monitoring device 300 indicates that the backup line is in a communication-enabled state.
[0117] [6-4. Other variations] The status table 601A that stores the first status information and the second status information may be provided in a device other than the management device 600. For example, the relay device 100 and the monitoring device 300 are connected via a LAN, and the status table 601A can be provided in a non-volatile memory of a device connected to the LAN. This allows the relay device 100 to obtain the first status information and the second status information regardless of the status of the main line and the backup line.
[0118] In the second modified example, regardless of whether the relay device 100 is connected to the main line or the backup line, the first determination unit 311 executes the first communication check and executes the first determination process of determining whether the main line is in a communication-enabled state, and the second determination unit 312 executes the second communication check and executes the second determination process of determining whether the backup line is in a communication-enabled state, but is not limited to this. The first determination unit 311 may execute the first communication check and execute the first determination process only while the relay device 100 is connected to the backup line. The second determination unit 312 may execute the second communication check and execute the second determination process only while the relay device 100 is connected to the main line.
[0119] [7. Supplementary Notes] The embodiments disclosed herein are illustrative in all respects and are not restrictive. The scope of the present invention is defined by the claims rather than the above-described embodiments, and includes the meaning equivalent to the claims and all modifications within the scope thereof. [Explanation of symbols]
[0120] 10. Communication Systems 100, 100_1, 100_2 Repeater 101 Processor 102 Non-volatile memory 103 Volatile Memory 104 Wireless communication interface (wireless communication I / F) 104A, 104B SIM reader 105 Communication Interface (Communication I / F) 110 Communication Line Switching Program 111 First Switching Section 112 Acquisition Department 113 Second Switching Section 200,200_11,200_12,200_13,200_21,200_22,200_23 Sensor 300 Monitoring equipment 301 Processor 302 Non-volatile memory 303 Volatile Memory 304 Wireless communication interface (wireless communication I / F) 310 Communication Line Diagnostic Program 311 1st Judgment Department 312 Second Judgment Department 313 Transmitter 304A, 304B SIM reader 400_1,400_2 Mobile communication network 410_1,410_2 Base station 500 Internet 600 Management device 601,601A Status Table
Claims
1. A management device; a communication device capable of communicating with the management device via a first line; a monitoring device that executes a first communication confirmation, which is a process of confirming communication in the first line, and monitors a state of the first line; Equipped with when the communication device is unable to communicate with the management device through the first line, the communication device switches a connection from the first line to a second line; The monitoring device determines whether or not the first line is in a communication-enabled state by the first communication confirmation, the communication device switches a connection from the second line to the first line when the monitoring device determines that the first line is in a communication-enabled state; Communication systems.
2. The first communication confirmation is performed when the communication device is connected to the second line. The communication system according to claim 1 .
3. the monitoring device executes a second communication confirmation, which is a process of confirming communication on the second line, when the communication device is connected to the first line, and determines whether the second line is in a communication-enabled state. The communication system according to claim 2 .
4. The monitoring device executes the first communication confirmation regardless of whether the communication device is connected to the first line or the second line, and executes a first determination process of determining whether or not the first line is in a communication-enabled state, and executes a second communication confirmation which is a process of confirming communication on the second line, and executes a second determination process of determining whether or not the second line is in a communication-enabled state. The communication system according to claim 1 .
5. When the first line becomes unable to communicate, and the monitoring device determines that the second line is in a communication-enabled state, the communication device switches a connection destination from the first line to the second line. The communication system according to claim 3.
6. The monitoring device transmits a determination result of whether or not the first line is in a communication-enabled state to the management device; When the management device receives the determination result, the management device stores the received determination result; the communication device switches a connection from the second line to the first line when the determination result stored in the management device indicates that the first line is in a communication available state; A communication system according to any one of claims 1 to 5.
7. The monitoring device transmits a determination result of whether or not the second line is in a communication-enabled state to the management device; When the management device receives the determination result, the management device stores the received determination result; the communication device switches a connection from the first line to the second line when the determination result stored in the management device indicates that the second line is in a communication-enabled state in the case where the first line is in a communication-disabled state, 6. The communication system according to claim 5.
8. the monitoring device transmits to the communication device a determination result indicating whether the first line is in a communication-enabled state; the communication device switches a connection from the second line to the first line when the determination result received from the monitoring device indicates that the first line is in a communication-enabled state. A communication system according to any one of claims 1 to 5.
9. the monitoring device transmits to the communication device a determination result indicating whether the second line is in a communication-enabled state; the communication device switches a connection from the first line to the second line when the determination result received from the monitoring device indicates that the second line is in a communication-enabled state in the case where the first line is in a communication-disabled state, 6. The communication system according to claim 5.
10. A communication device capable of communicating with a management device through a first line, a first switching unit that switches a connection from the first line to a second line when communication with the management device cannot be performed through the first line; a second switching unit that executes a first communication confirmation, which is a process of confirming communication on the first line, and switches a connection from the second line to the first line when a monitoring device that monitors a state of the first line determines that the first line is in a communication-enabled state; Equipped with Communications equipment.
11. A monitoring device that monitors a state of a first line used for communication between a management device and a communication device, a determination unit that executes a first communication confirmation, which is a process of confirming communication on the first line when the communication device switches a connection destination from the first line to the second line, and determines whether the first line is in a communication-enabled state; a transmission unit that transmits a determination result by the determination unit to notify the management device or the communication device; Equipped with Monitoring equipment.
Citation Information
Patent Citations
Connection route verifying method for backup system
JP2001069124A
Cited By
Vehicle-mounted device
CN122069542A
Vehicle-mounted device
CN122069543A
In-vehicle device
JP2026088906A
In-vehicle device
JP2026088962A
In-vehicle device
JP2026092596A
