WO2017130275A1 - 中継システム - Google Patents

中継システム Download PDF

Info

Publication number
WO2017130275A1
WO2017130275A1 PCT/JP2016/052034 JP2016052034W WO2017130275A1 WO 2017130275 A1 WO2017130275 A1 WO 2017130275A1 JP 2016052034 W JP2016052034 W JP 2016052034W WO 2017130275 A1 WO2017130275 A1 WO 2017130275A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
relay
relay device
tcp
communication
Prior art date
Application number
PCT/JP2016/052034
Other languages
English (en)
French (fr)
Inventor
小坂 哲也
秀斗 相川
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2016/052034 priority Critical patent/WO2017130275A1/ja
Priority to JP2017537523A priority patent/JP6219005B1/ja
Priority to CN201680058860.8A priority patent/CN108141402A/zh
Priority to TW105114841A priority patent/TW201728105A/zh
Publication of WO2017130275A1 publication Critical patent/WO2017130275A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/44Star or tree networks

Definitions

  • the present invention relates to a technique for relaying data transmitted from a plurality of devices.
  • GSM Global System for Mobile Communications
  • GSM Global System for Mobile Communications
  • GSM Global System for Mobile Communications
  • the GSM modem and equipment are connected to each other by a serial cable. For this reason, the same number of GSM modems as the equipment is required to manage the equipment in the entire factory.
  • the communication cost of the GSM modem usually the communication cost of the GSM modem is fixed monthly for each unit
  • Patent Document 1 when the method of Patent Document 1 is incorporated in the configuration of FIG. 15, it is necessary to newly install a PC (Personal Computer) server. That is, when the method of Patent Document 1 is incorporated in the configuration of FIG. 15, it is necessary to connect the PC server to a plurality of equipment devices by Ethernet, and to connect the PC server and one GSM modem.
  • the PC server inquires of each equipment device by polling whether there is an operating status to be notified to the portable terminal device of the factory manager. In each facility device, when there is an operation status to be notified, data for notifying the operation status is transmitted to the PC server in response to polling.
  • the PC server transmits the operation status collected from each facility device via Ethernet to the portable terminal device of the factory manager via the GSM modem.
  • the facility device itself transmits data for notifying the GSM modem of the operating status. That is, the facility device does not transmit data for notifying the operation status in response to polling.
  • the method of Patent Document 1 it is necessary to change the setting of each equipment device so as to transmit data for notifying the operation status in response to polling from the PC server.
  • the setting of the GSM modem to match the communication method with the PC server.
  • the setting of the equipment and the setting of the wireless communication device such as the GSM modem have to be changed.
  • the main object of the present invention is to solve such a problem, so that data from a plurality of devices can be transmitted by one wireless communication device without changing the setting of the device and the setting of the wireless communication device.
  • the main purpose is to
  • the relay system according to the present invention is A plurality of first relay devices that relay data transmitted from a plurality of devices according to a connection-type communication protocol; Data relayed by the plurality of first relay devices is received according to the connection type communication protocol, and the received data is transmitted to a wireless communication device that communicates with a destination device that is a data transmission destination of the plurality of devices.
  • a second relay device Each of the plurality of first relay devices is Prior to relaying data to the second relay device, the second relay device is requested to set a connection according to the connection type communication protocol, The second relay device is When a connection setting is requested from any of the first relay devices, it is determined whether or not a connection is set with another first relay device according to the connection-type communication protocol, and the other If a connection is not set up with the first relay device, a connection is set up with the requesting first relay device.
  • data from a plurality of devices is transmitted by one wireless communication device without changing the device setting and the wireless communication device setting by the first relay device and the second relay device. be able to.
  • FIG. 3 is a diagram illustrating a functional configuration example of facility equipment according to the first embodiment.
  • FIG. 3 is a diagram illustrating a functional configuration example of a client device according to the first embodiment.
  • FIG. 3 is a diagram illustrating a functional configuration example of a server apparatus according to the first embodiment.
  • FIG. 3 is a diagram illustrating a functional configuration example of the GSM modem according to the first embodiment.
  • FIG. 3 shows an example of a communication sequence according to the first embodiment.
  • FIG. 3 shows an example of a communication sequence according to the first embodiment.
  • FIG. 4 is a diagram illustrating a functional configuration example of a client device according to a second embodiment.
  • FIG. 6 shows an example of a communication sequence according to the second embodiment.
  • FIG. 3 is a diagram illustrating a hardware configuration example of a client device and a server device according to the first and second embodiments.
  • FIG. 3 is a diagram illustrating a hardware configuration example of a GSM modem according to the first and second embodiments. The figure which shows the hardware structural example of the installation equipment which concerns on Embodiment 1 and 2.
  • FIG. 4 is a flowchart showing an operation example of the client apparatus according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example of the server apparatus according to the first embodiment. The figure which shows a prior art.
  • FIG. *** Explanation of configuration *** FIG. 1 shows a configuration example of an equipment management system according to the present embodiment.
  • equipment (1) 101 and equipment (2) 103 are arranged in a factory 100.
  • the equipment (1) 101 is connected to the client device (1) 102 by a serial cable.
  • the facility device (2) 103 is connected to the client device (2) 104 so as to face each other by a serial cable.
  • the client device (1) 102 and the client device (2) 104 are connected to the server device 105 via Ethernet or a wireless LAN (Local Area Network).
  • Server device 105 is connected to GSM modem 106.
  • the GSM modem 106 is connected to the mobile terminal device 108 via the public mobile network 107.
  • the facility device (1) 101 transmits data notifying the operating status of the facility device (1) 101 to the client device (1) 102.
  • the facility device (2) 103 transmits data notifying the operation status of the facility device (2) 103 to the client device (2) 104.
  • the client device (1) 102 relays the data transmitted from the facility device (1) 101 to the server device 105.
  • the client device (2) 104 relays the data transmitted from the facility device (2) 103 to the server device 105.
  • the client device (1) 102 and the client device (2) 104 transmit data to the server device 105 according to the connection-type communication protocol. More specifically, the client device (1) 102 and the client device (2) 104 transmit data to the server device 105 in accordance with TCP / IP (Transmission Control Protocol / Internet Protocol).
  • TCP / IP Transmission Control Protocol / Internet Protocol
  • the server device 105 receives the data relayed by the client device (1) 102 and the data relayed by the client device (2) 104 in accordance with a connection-type communication protocol (specifically TCP / IP), and the received data Is transmitted to the GSM modem 106.
  • the GSM modem 106 transmits the data received from the server device 105 via the public mobile network 107 to the portable terminal device 108 that is the data transmission destination of the facility device (1) 101 and the facility device (2) 103.
  • the client device (1) 102 and the client device (2) 104 correspond to an example of a first relay device.
  • the server device 105 corresponds to an example of a second relay device.
  • the GSM modem 106 corresponds to an example of a wireless communication device.
  • the mobile terminal device 108 corresponds to an example of a transmission destination device.
  • the client device (1) 102, the client device (2) 104, and the server device 105 constitute a relay system.
  • data for notifying the operating status of the equipment device (1) 101 and data for notifying the operating status of the equipment device (2) 103 are referred to as status information.
  • the GSM modem 106 is used to transmit the status information of the equipment device (1) 101 and the equipment device (2) 103 to the mobile terminal device 108 is used.
  • the wireless communication device has a wireless communication function. If necessary, the GSM modem 106 may not be used.
  • FIG. 1 shows an example in which there are two facility devices, but any number of facility devices may be used as long as the number is two or more.
  • FIG. 10 illustrates a hardware configuration example of the client device (1) 102, the client device (2) 104, and the server device 105.
  • the client device (1) 102, the client device (2) 104, and the server device 105 have the same hardware configuration.
  • the client device (1) 102, the client device (2) 104, and the server device 105 are computers, and include a network interface 1001, a processor 1002, a serial interface 1003, and a storage device 1004.
  • a network interface 1001 is a circuit serving as an interface with Ethernet or a wireless LAN.
  • the serial interface 1003 is a circuit that serves as an interface with a serial cable.
  • the processor 1002 is an IC (Integrated Circuit) that performs processing.
  • the processor 1002 is a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or the like.
  • the processor 1002 executes a program. More specifically, the processor 1002 of the client device (1) 102 and the client device (2) 104 executes a program that realizes a TCP / IP communication control unit 302 and a connection timer management unit 303 described later.
  • the processor 1002 of the server device 105 executes a program that implements a TCP / IP communication control unit 402 described later.
  • the storage device 1004 is a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an HDD (Hard Disk Drive), or the like. The storage device 1004 stores the above program.
  • the storage device 1004 of the client device (1) 102 and the client device (2) 104 stores programs that realize the TCP / IP communication control unit 302 and the connection timer management unit 303.
  • the storage device 1004 of the server device 105 stores a program that realizes the TCP / IP communication control unit 402. Further, the storage device 1004 stores a value used for the calculation of the processor 1002 and the calculation result of the processor 1002.
  • FIG. 11 shows a hardware configuration example of the GSM modem 106.
  • the GSM modem 106 includes a wireless communication interface 1101, a processor 1102, a serial interface 1103, and a storage device 1104.
  • the wireless communication interface 1101 is a circuit that serves as an interface with the public mobile network 107.
  • the serial interface 1103 is a circuit that serves as an interface with a serial cable.
  • the processor 1102 is an IC that performs processing.
  • the processor 1002 is a CPU, a DSP, or the like.
  • the processor 1102 executes a program. More specifically, the processor 1102 executes a program that implements a GSM communication control unit 502 described later.
  • the storage device 1104 is a RAM, a ROM, a flash memory, or the like.
  • the storage device 1104 stores a program that realizes the GSM communication control unit 502. In addition, the storage device 1104 stores values used for the calculation of the processor 1102 and the calculation result of the processor 1102.
  • FIG. 12 shows a hardware configuration example of the equipment (1) 101 and the equipment (2) 103.
  • the equipment (1) 101 and the equipment (2) 103 include a serial interface 1201, a processor 1202, an actuator 1203, and a storage device 1204.
  • the serial interface 1201 is a circuit that serves as an interface with a serial cable.
  • the processor 1202 is an IC that performs processing.
  • the processor 1002 is a CPU, a DSP, or the like.
  • the processor 1202 executes a program.
  • the processor 1202 executes a program that realizes a GSM modem control unit 202, a status information generation unit 203, a device status monitoring unit 204, and a device control unit 205, which will be described later.
  • the storage device 1204 is a RAM, a ROM, a flash memory, or the like.
  • the storage device 1204 stores programs for realizing the GSM modem control unit 202, the state information generation unit 203, the device state monitoring unit 204, and the device control unit 205.
  • the storage device 1204 stores values used for the calculation of the processor 1202 and the calculation result of the processor 1202.
  • the actuator 1203 is a mechanical element that performs rotational movement, straight movement, and the like.
  • FIG. 2 shows a functional configuration example of the equipment (1) 101 and the equipment (2) 103.
  • the device control unit 205 controls the actuator 1203.
  • the device state monitoring unit 204 monitors the state of the device control unit 205.
  • the status information generation unit 203 generates status information to be transmitted to the facility manager based on the information from the device status monitoring unit 204.
  • the GSM modem control unit 202 controls the GSM modem 106 via the serial communication unit 201 using the input of the state information from the state information generation unit 203 as a trigger, and transmits the state information to the GSM modem 106.
  • the serial communication unit 201 controls serial communication with the client device (1) 102 or the client device (2) 104.
  • the serial communication unit 201 is realized by the serial interface 1201 in FIG.
  • the GSM modem control unit 202, the state information generation unit 203, the device state monitoring unit 204, and the device control unit 205 are realized by the processor 1202 and the storage device 1204.
  • FIG. 3 shows a functional configuration example of the client device (1) 102 and the client device (2) 104.
  • the network communication unit 301 controls communication with Ethernet or communication with a wireless LAN.
  • the serial communication unit 304 controls serial communication with the equipment (1) 101 or the equipment (2) 103.
  • the communication destination address information storage unit 305 stores the IP address and TCP port number of the server device 105 that is a TCP / IP communication destination.
  • the TCP / IP communication control unit 302 transfers the data part of the TCP / IP frame received by the network communication unit 301 to the serial communication unit 304.
  • the TCP / IP communication control unit 302 stores the data received by the serial communication unit 304 in a TCP / IP frame, and transfers the TCP / IP frame to the network communication unit 301. Further, the TCP / IP communication control unit 302 controls TCP / IP communication using an input from the serial communication unit 304 as a trigger. More specifically, the TCP / IP communication control unit 302 transmits a TCP connection establishment request (SYN) to the server device 105 via the network communication unit 301. When the network communication unit 301 receives a reset response (RST) in response to the connection establishment request (SYN), the connection establishment request (SYN) is retransmitted.
  • the connection establishment request (SYN) is a packet that requests connection setting.
  • the reset response is a packet notifying that connection setting is not permitted.
  • a connection establishment response which will be described later, is a packet notifying that setting of a connection is permitted.
  • the connection timer management unit 303 monitors the TCP / IP communication control unit 302 and instructs the TCP / IP communication control unit 302 to disconnect the TCP connection when communication is not performed for a specified time.
  • the network communication unit 301 is realized by the network interface 1001 of FIG.
  • the serial communication unit 304 is realized by the serial interface 1003 in FIG.
  • the communication destination address information storage unit 305 is realized by the storage device 1004 of FIG.
  • the TCP / IP communication control unit 302 and the connection timer management unit 303 are realized by the processor 1002 and the storage device 1004.
  • FIG. 4 shows a functional configuration example of the server apparatus 105.
  • the network communication unit 401 controls communication with Ethernet or communication with a wireless LAN.
  • the serial communication unit 403 controls serial communication with the GSM modem 106.
  • the TCP / IP communication control unit 402 controls TCP / IP communication. More specifically, the TCP / IP communication control unit 402 transfers the data part of the TCP / IP frame received by the network communication unit 401 to the serial communication unit 403. Also, the TCP / IP communication control unit 402 stores the data received by the serial communication unit 403 in a TCP / IP frame, and transfers the TCP / IP frame to the network communication unit 401.
  • the TCP / IP communication control unit 402 transmits a connection establishment response (ACK) or a reset response (RST), and transmits a connection establishment request (SYN). Originally transmitted via the network communication unit 401.
  • the network communication unit 401 is realized by the network interface 1001 in FIG.
  • the serial communication unit 403 is realized by the serial interface 1003 in FIG.
  • the TCP / IP communication control unit 402 is realized by the processor 1002 and the storage device 1004 in FIG.
  • FIG. 5 shows a functional configuration example of the GSM modem 106.
  • the GSM communication unit 501 controls GSM communication with the public mobile network 107.
  • the serial communication unit 503 controls serial communication with the server device 105.
  • the GSM communication control unit 502 controls the GSM communication unit 501 in response to the AT command transmitted from the facility device (1) 101 or the facility device (2) 103, and sends a response to the AT command via the serial communication unit 503.
  • the data is transmitted to the device (1) 101 or the facility device (2) 103.
  • the AT command is a packet used for controlling the GSM modem 106.
  • the GSM communication unit 501 is realized by the wireless communication interface 1101 in FIG.
  • the serial communication unit 503 is realized by the serial interface 1103 in FIG.
  • the GSM communication control unit 502 is realized by the processor 1102 and the storage device 1104 in FIG.
  • FIG. 6 shows an example of a communication sequence when the equipment device (1) 101 transmits state information to the mobile terminal device.
  • a communication sequence in communication from the GSM modem 106 to the mobile terminal device 108 is not shown.
  • the connection connection request (SYN) is expressed as “SYN”.
  • the connection connection response (ACK) is described as “ACK”.
  • the GSM modem control unit 202 sets the communication line between the equipment (1) 101 and the GSM modem 106 via the serial communication unit 201.
  • An AT command (outgoing) is transmitted to the GSM modem 106 (step 605).
  • the TCP / IP communication control unit 302 receives an AT command (transmission) via the serial communication unit 304. Since the TCP connection is not established with the server device 105, the TCP / IP communication control unit 302 transmits a connection establishment request (SYN) to the server device 105 via the network communication unit 301 (step 606).
  • SYN connection establishment request
  • the TCP / IP communication control unit 402 receives a connection establishment request (SYN) via the network communication unit 401.
  • the TCP / IP communication control unit 402 determines whether or not a connection has been established with another client device (specifically, the client device (2) 104).
  • the TCP / IP communication control unit 402 manages a connection state table in which a client device with which a connection has been established is described. With reference to the connection state table, a connection is established with another client device. It is determined whether or not. In FIG. 6, a connection is not established between the server apparatus 105 and another client apparatus (client apparatus (2) 104).
  • the TCP / IP communication control unit 402 transmits a connection establishment response (ACK) to the client device (1) 102 via the network communication unit 401 (step 607).
  • ACK connection establishment response
  • the TCP / IP communication control unit 402 writes the client device (1) 102 in the connection state table.
  • the TCP / IP communication control unit 302 of the client device (1) 102 transmits an AT command (transmission) to the server device 105 via the network communication unit 301 after the connection is established (step 608).
  • the TCP / IP communication control unit 402 receives the AT command (outgoing) via the network communication unit 401, and transfers the AT command (outgoing) to the GSM modem 106 via the serial communication unit 403 (step). 609).
  • the GSM communication control unit 502 receives an AT command (transmission) via the serial communication unit 503, and transmits a response of completion of transmission to the server device 105 via the serial communication unit 503 (step 610).
  • the TCP / IP communication control unit 402 receives the response via the serial communication unit 403, and transmits the response to the client device (1) 102 via the network communication unit 401 (step 611).
  • the TCP / IP communication control unit 302 receives the response via the network communication unit 301 and transmits the response to the equipment device (1) 101 via the serial communication unit 304 (step 612).
  • the GSM modem control unit 202 receives the response via the serial communication unit 201, and transmits the status information generated by the status information generation unit 203 to the client device (1) 102.
  • the status information is transferred in the order of the client device (1) 102, the server device 105, and the GSM modem 106 (step 613).
  • status information is transmitted from the GSM modem 106 to the portable terminal device 108 via the public portable network 107.
  • the GSM modem control unit 202 sends an AT command (disconnection) via the serial communication unit 201 to the client device in order to disconnect the communication line with the GSM modem 106.
  • the TCP / IP communication control unit 302 receives the AT command (disconnect) via the serial communication unit 304 and transmits the AT command (disconnect) to the server device 105 via the network communication unit 301. (Step 615).
  • the TCP / IP communication control unit 402 receives the AT command (disconnect) via the network communication unit 401, and transmits the AT command (disconnect) to the GSM modem 106 via the serial communication unit 403 (step). 616).
  • the GSM communication control unit 502 receives the AT command (disconnection) via the serial communication unit 503, and transmits a disconnection completion response to the server device 105 via the serial communication unit 503 (step 617).
  • the TCP / IP communication control unit 402 receives the response via the serial communication unit 403, and transmits the response to the client device (1) 102 via the network communication unit 401 (step 618).
  • the TCP / IP communication control unit 302 receives the response via the network communication unit 301 and transmits the response to the equipment device (1) 101 via the serial communication unit 304 (step 619). . Further, in the client device (1) 102, there is no new TCP / IP communication from the last TCP / IP communication (step 618) until the non-communication time (621) set in the connection timer management unit 303 elapses. Then, the TCP / IP communication control unit 302 disconnects the TCP connection (FIN / ACK) (step 620). The TCP / IP communication control unit 402 of the server apparatus 105 deletes the client apparatus (1) 102 from the connection state table.
  • FIG. 7 shows a communication sequence example when an AT command (outgoing) is transmitted from the equipment (1) 101 when a connection is established between the client device (2) 104 and the server device 105.
  • a communication sequence in communication from the GSM modem 106 to the mobile terminal device 108 is not shown.
  • the connection connection request (SYN) is expressed as “SYN”.
  • the connection connection response (ACK) is described as “ACK”.
  • the reset response (RST) is expressed as “RST”.
  • the GSM modem control unit 202 sets the communication line between the equipment (1) 101 and the GSM modem 106 via the serial communication unit 201.
  • An AT command (outgoing) is transmitted to the GSM modem 106 (step 705).
  • the TCP / IP communication control unit 302 receives an AT command (transmission) via the serial communication unit 304. Since a TCP connection is not established with the server device 105, the TCP / IP communication control unit 302 transmits a connection establishment request (SYN) to the server device 105 via the network communication unit 301 (step 706).
  • SYN connection establishment request
  • the TCP / IP communication control unit 402 receives a connection establishment request (SYN) via the network communication unit 401.
  • the TCP / IP communication control unit 402 determines whether or not a connection has been established with another client device (specifically, the client device (2) 104).
  • the TCP / IP communication control unit 402 performs a reset response (RST) via the network communication unit 401. Is transmitted to the client apparatus (1) 102 (step 707).
  • the TCP / IP communication control unit 302 receives a reset response (RST) via the network communication unit 301.
  • the TCP / IP communication control unit 302 Since the TCP / IP communication control unit 302 has received the reset response (RST), the TCP / IP communication control unit 302 repeats retransmission of the connection establishment request (SYN) until the connection establishment response (ACK) is received (steps 708 to 713).
  • the TCP / IP communication control unit 302 transmits an AT command (outgoing) to the server device 105 via the network communication unit 301 (step 715).
  • the operation after step 716 is the same as the operation after step 609 in FIG.
  • the client device (1) 102 and the client device (2) 104 are each configured in accordance with TCP / IP, which is a connection-type communication protocol, before relaying the state information to the server device 105.
  • the server apparatus 105 requests connection setting from the client apparatus (1) 102, whether or not a connection is set with the client apparatus (2) 104, which is another client apparatus, according to TCP / IP. If a connection is not set up with the client apparatus (2) 104, a connection is set up with the requesting client apparatus (1) 102.
  • the server device 105 responds to the requesting client device (1) 102 that the setting of the connection is not permitted.
  • the client apparatus (1) 102 requests the server apparatus 105 to set the connection again according to TCP / IP.
  • FIG. 13 is a flowchart for explaining the operation of the client apparatus (1) 102 from step 706 to step 715 in FIG.
  • the operation of the client device (1) 102 will be described below with reference to FIG. In the following description, the operation of the client apparatus (1) 102 will be described, but the client apparatus (2) 104 also performs the same operation according to the flowchart of FIG.
  • the TCP / IP communication control unit 302 receives an AT command (transmission) via the serial communication unit 304 (step S1301).
  • the TCP / IP communication control unit 302 transmits a connection establishment request (SYN) to the server device 105 via the network communication unit 301 (step S1302).
  • the TCP / IP communication control unit 302 determines which of the connection establishment response (ACK) and the reset response (RST) is received. (Step S1303). If the connection establishment response (ACK) has been received, the TCP / IP communication control unit 302 transmits an AT command (transmission) to the server device 105 via the network communication unit 301 (step S1304). On the other hand, if a reset response (RST) has been received, the TCP / IP communication control unit 302 transmits a connection establishment request (SYN) to the server device 105 again via the network communication unit 301 (step S1302).
  • FIG. 14 is a flowchart for explaining the operation of the server apparatus 105 in steps 706 to 716 in FIG.
  • the operation of the server apparatus 105 will be described with reference to FIG.
  • the operation of the server device 105 when a connection establishment request (SYN) is received from the client device (1) 102 will be described.
  • a connection establishment request (SYN) is received from the client device (2) 104
  • the server apparatus 105 performs the same operation according to the flowchart of FIG.
  • the TCP / IP communication control unit 402 receives a connection establishment request (SYN) from the client device (1) 102 via the network communication unit 401 (step S1401).
  • the TCP / IP communication control unit 402 checks the connection establishment status with another client device (specifically, the client device (2) 104).
  • the TCP / IP communication control unit 402 refers to the connection management table to check whether or not a connection has been established with another client device. If a connection has been established with another client device (YES in step S1403), the TCP / IP communication control unit 402 sends a reset response (RST) to the client device (1) 102 via the network communication unit 401. (Step S1407).
  • the TCP / IP communication control unit 402 sends a connection establishment response (ACK) via the network communication unit 401 to the client device ( 1) Transmit to 102 (step S1404).
  • the TCP / IP communication control unit 402 receives the AT command (outgoing) from the client device (1) 102 via the network communication unit 401 (step S1405), and receives the received AT command (outgoing) as the serial communication unit 403.
  • the GSM modem 106 step S1406.
  • Embodiment 2 FIG.
  • TCP connection disconnection FIN / ACK
  • a procedure for disconnecting a connection earlier without waiting for disconnection of the connection until the no-communication time elapses will be described.
  • differences from the first embodiment will be mainly described. Matters not described below are the same as those in the first embodiment.
  • FIG. 8 shows a functional configuration example of the client device (1) 102 and the client device (2) 104 according to the present embodiment.
  • a connection disconnection trigger command management unit 806 is added to the configurations of the client device (1) 102 and the client device (2) 104 of the first embodiment (configuration shown in FIG. 3).
  • the connection disconnection trigger command management unit 806 monitors the TCP / IP communication control unit 802 when a connection is established with the server apparatus 105, and the TCP / IP communication control unit 802 sends a command designated in advance. When it is detected that another command specified in advance has been received after transmission, the TCP / IP communication control unit 802 is instructed to disconnect the connection.
  • connection disconnection trigger command management unit 806 sends a completion notification command for notifying that the transmission of the status information from the equipment device (1) 101 or the equipment device (2) 103 to the mobile terminal device 108 is completed.
  • the TCP / IP communication control unit 802 transmits to the server device 105
  • the TCP / IP communication control unit 802 receives a response command that is a response to the completion notification command from the server device 105
  • the communication with the server device 105 is performed. Instructs the TCP / IP communication control unit 802 to disconnect the connection.
  • the network communication unit 801 is the same as the network communication unit 301.
  • the TCP / IP communication control unit 802 is the same as the TCP / IP communication control unit 302.
  • connection timer management unit 803 is the same as the connection timer management unit 303.
  • the serial communication unit 804 is the same as the serial communication unit 304.
  • the communication destination address information storage unit 805 is the same as the communication destination address information storage unit 305. Therefore, descriptions of the network communication unit 801, the TCP / IP communication control unit 802, the connection timer management unit 803, the serial communication unit 804, and the communication destination address information storage unit 805 are omitted.
  • the connection disconnection trigger command management unit 806 is a program and is realized by the processor 1002 and the storage device 1004 in FIG.
  • FIG. 9 shows an example of a communication sequence according to the present embodiment.
  • Steps 1005 to 1014 in FIG. 9 are the same as Steps 605 to 614 in FIG. 6, and Steps 1016, 1017, and 1019 in FIG. 9 are the same as Steps 616, 617, and 619 in FIG. is there. For this reason, description of these steps is omitted.
  • step 1015 is different from step 615 in FIG. 6,
  • step 1018 is different from step 618 in FIG. 6, and step 1020 is different from step 620 in FIG. 6. Therefore, step 1015, step 1018, and step 1020 will be described.
  • an AT command (disconnection) that is a completion notification command (step 1015) and a response (step 1018) that is a response command are registered in the connection disconnection trigger command management unit 806 as a trigger command for disconnection.
  • the connection disconnection trigger command management unit 806 monitors the TCP / IP communication control unit 802.
  • the connection disconnection trigger command management unit 806 executes the AT command ( It is detected that (Disconnect) has been transmitted to the server device 105.
  • the connection disconnection trigger command management unit 806 detects that the TCP / IP communication control unit 802 has received a response in step 1018.
  • the connection disconnection trigger command management unit 806 instructs the TCP / IP communication control unit 802 to disconnect the connection.
  • the TCP / IP communication control unit 802 disconnects the TCP connection (FIN / ACK).
  • the TCP / IP communication control unit 802 is set in the connection timer management unit 803 as in the first embodiment.
  • the TCP connection cannot be disconnected until the no-communication time (621) elapses.
  • the connection can be disconnected. That is, in this embodiment, by registering a command group that triggers TCP connection disconnection in the client device, the waiting time until TCP connection disconnection can be shortened. Therefore, as shown in FIG. 7, when the equipment (1) 101 transmits a connection connection request (SYN) to the server device 105, a connection is established between the server device 105 and the client device (2) 104.
  • SYN connection connection request
  • the client device (2) 104 disconnects the connection at an early stage by detecting the transmission / reception of the trigger command, the connection between the server device 105 and the client device (1) 102 can be established at an early stage. . Therefore, an effect is obtained that a plurality of facility devices can efficiently share one GSM modem.
  • a logic IC Integrated Circuit
  • GA Gate Array
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

第1の中継装置(102、104)は、機器(101、103)からのデータを中継する。第2の中継装置(105)は、第1の中継装置(102、104)により中継されたデータをデータ送信先である送信先機器(108)と通信する無線通信機器(106)に送信する。第1の中継装置(102)は、第2の中継装置(105)へのデータの中継に先立ち、コネクション型通信プロトコルに従って第2の中継装置(105)にコネクションの設定を要求する。第2の中継装置(105)は、第1の中継装置(102)からコネクションの設定が要求された場合に、コネクション型通信プロトコルに従い、他の第1の中継装置(104)との間にコネクションが設定されているか否かを判定し、他の第1の中継装置(104)との間にコネクションが設定されていない場合に、要求元の第1の中継装置(102)との間にコネクションを設定する。

Description

中継システム
 本発明は、複数の機器から送信されたデータを中継する技術に関する。
 工場に設置された機器(以下、設備機器という)がGSM(Global System for Mobile Communications)(GSMは登録商標)モデム等の無線通信機器を通じて設備機器の稼働状況やエラー情報を遠隔にいる工場管理者の携帯端末装置に通知する設備管理システムが存在する。このような設備管理システムでは、図15に示すように、GSMモデムと設備機器間はシリアルケーブルで対向接続されている。このため、工場全体の設備機器の管理を行うためには、設備機器と同数のGSMモデムが必要である。
 大規模な工場ではGSMモデムの通信費(通常、GSMモデムの通信費は1台ごとに月額固定)が莫大になるという課題がある。
 このような課題に対して、特許文献1の技術では、シリアル信号をEthernet(Ethernetは登録商標)用の信号に変換する変換機を用いて、複数の設備機器の稼働状況をEthernet経由で遠隔の管理サーバに送信している。
特開2005-222133号公報
 しかしながら、図15の構成に特許文献1の方法を組み込む場合には、PC(Personal Computer)サーバを新規に設置する必要がある。つまり、図15の構成に特許文献1の方法を組み込む場合には、EthernetによってPCサーバを複数の設備機器と接続し、また、PCサーバと1つのGSMモデムとを接続する必要がある。このような構成において、PCサーバは、工場管理者の携帯端末装置に通知すべき稼働状況が存在するか否かをポーリングにより各設備機器に問い合わせる。そして、各設備機器では、通知すべき稼働状況が存在する場合には、ポーリングに呼応して稼働状況を通知するデータをPCサーバに送信する。また、PCサーバは、各設備機器からEthernet経由で収集した稼働状況を、GSMモデムを介して工場管理者の携帯端末装置に送信する。
 図15に示す構成では、設備機器が自らGSMモデムに稼働状況を通知するデータを送信している。つまり、設備機器は、ポーリングに呼応して稼働状況を通知するデータを送信するわけではない。
 このため、図15の構成に特許文献1の方法が組み込まれたシステムでは、各設備機器の設定を、PCサーバからのポーリングに呼応して稼働状況を通知するデータを送信するように変更する必要がある。また、GSMモデムの設定も、PCサーバとの通信方式に適合するに変更する必要がある。
 このように、図15の構成に特許文献1の方法が組み込まれたシステムでは、設備機器の設定及びGSMモデム等の無線通信機器の設定を変更しなければならないという課題がある。
 本発明は、このような課題を解決することを主な目的としており、機器の設定及び無線通信機器の設定を変更することなく、複数の機器からのデータを1つの無線通信機器で送信できるようにすることを主な目的とする。
 本発明に係る中継システムは、
 複数の機器から送信されたデータを中継する、コネクション型通信プロトコルに従う複数の第1の中継装置と、
 前記複数の第1の中継装置により中継されたデータを、前記コネクション型通信プロトコルに従って受信し、受信したデータを前記複数の機器のデータ送信先である送信先機器と通信する無線通信機器に送信する第2の中継装置とを有し、
 前記複数の第1の中継装置の各々は、
 前記第2の中継装置へのデータの中継に先立ち、前記コネクション型通信プロトコルに従って前記第2の中継装置にコネクションの設定を要求し、
 前記第2の中継装置は、
 いずれかの第1の中継装置からコネクションの設定が要求された場合に、前記コネクション型通信プロトコルに従い、他の第1の中継装置との間にコネクションが設定されているか否かを判定し、他の第1の中継装置との間にコネクションが設定されていない場合に、要求元の第1の中継装置との間にコネクションを設定する。
 本発明によれば、第1の中継装置と第2の中継装置とにより、機器の設定及び無線通信機器の設定を変更することなく、複数の機器からのデータを1つの無線通信機器で送信することができる。
実施の形態1に係る設備管理システムの構成例を示す図。 実施の形態1に係る設備機器の機能構成例を示す図。 実施の形態1に係るクライアント装置の機能構成例を示す図。 実施の形態1に係るサーバ装置の機能構成例を示す図。 実施の形態1に係るGSMモデムの機能構成例を示す図。 実施の形態1に係る通信シーケンスの例を示す図。 実施の形態1に係る通信シーケンスの例を示す図。 実施の形態2に係るクライアント装置の機能構成例を示す図。 実施の形態2に係る通信シーケンスの例を示す図。 実施の形態1及び2に係るクライアント装置及びサーバ装置のハードウェア構成例を示す図。 実施の形態1及び2に係るGSMモデムのハードウェア構成例を示す図。 実施の形態1及び2に係る設備機器のハードウェア構成例を示す図。 実施の形態1に係るクライアント装置の動作例を示すフローチャート図。 実施の形態1に係るサーバ装置の動作例を示すフローチャート図。 従来技術を示す図。
 実施の形態1.
***構成の説明***
 図1は、本実施の形態に係る設備管理システムの構成例を示す。
 図1では、工場100内に設備機器(1)101、設備機器(2)103が配置されている。
 設備機器(1)101は、シリアルケーブルによりクライアント装置(1)102に対向接続されている。また、設備機器(2)103は、シリアルケーブルによりクライアント装置(2)104に対向接続されている。
 クライアント装置(1)102とクライアント装置(2)104は、Ethernet又は無線LAN(Local Area Network)を介してサーバ装置105に接続されている。
 サーバ装置105は、GSMモデム106と接続されている。
 GSMモデム106は、公衆携帯ネットワーク107を介して携帯端末装置108と接続されている。
 設備機器(1)101は、設備機器(1)101の稼働状況を通知するデータをクライアント装置(1)102に送信する。また、設備機器(2)103は、設備機器(2)103の稼働状況を通知するデータをクライアント装置(2)104に送信する。
 クライアント装置(1)102は、設備機器(1)101から送信されたデータをサーバ装置105に中継する。クライアント装置(2)104は、設備機器(2)103から送信されたデータをサーバ装置105に中継する。クライアント装置(1)102及びクライアント装置(2)104は、コネクション型通信プロトコルに従ってデータをサーバ装置105に送信する。より具体的には、クライアント装置(1)102及びクライアント装置(2)104は、TCP/IP(Transmission Control Protocol/Internet Protocol)に従ってデータをサーバ装置105に送信する。
 サーバ装置105は、クライアント装置(1)102により中継されたデータ及びクライアント装置(2)104により中継されたデータを、コネクション型通信プロトコル(具体的にはTCP/IP)に従って受信し、受信したデータをGSMモデム106に送信する。
 GSMモデム106は、設備機器(1)101及び設備機器(2)103のデータ送信先である携帯端末装置108に、公衆携帯ネットワーク107を介して、サーバ装置105から受信したデータを送信する。
 クライアント装置(1)102及びクライアント装置(2)104は、第1の中継装置の例に相当する。サーバ装置105は、第2の中継装置の例に相当する。GSMモデム106は、無線通信機器の例に相当する。携帯端末装置108は、送信先機器の例に相当する。また、クライアント装置(1)102、クライアント装置(2)104及びサーバ装置105は中継システムを構成する。
 なお、以下では、設備機器(1)101の稼働状況を通知するデータ及び設備機器(2)103の稼働状況を通知するデータを状態情報という。
 また、以下では、GSMモデム106を用いて設備機器(1)101及び設備機器(2)103の状態情報を携帯端末装置108に送信する例を用いるが、無線通信機器は無線通信機能を有してればGSMモデム106でなくてもよい。
 また、図1では、設備機器が2台の例を示しているが、設備機器の台数は2台以上であれば、何台であってもよい。
 図10は、クライアント装置(1)102、クライアント装置(2)104及びサーバ装置105のハードウェア構成例を示す。本実施の形態では、クライアント装置(1)102、クライアント装置(2)104及びサーバ装置105のハードウェア構成は共通しているものとする。
 クライアント装置(1)102、クライアント装置(2)104及びサーバ装置105は、コンピュータであり、ネットワークインタフェース1001、プロセッサ1002、シリアルインターフェース1003及び記憶装置1004を備える。
 ネットワークインタフェース1001は、Ethernet又は無線LANとのインターフェースとなる回路である。
 シリアルインターフェース1003は、シリアルケーブルとのインターフェースとなる回路である。
 プロセッサ1002は、プロセッシングを行うIC(Integrated Circuit)である。プロセッサ1002は、CPU(Central Processing Unit)、DSP(Digital Signal Processor)等である。プロセッサ1002は、プログラムを実行する。より具体的には、クライアント装置(1)102及びクライアント装置(2)104のプロセッサ1002は、後述するTCP/IP通信制御部302及びコネクションタイマ管理部303を実現するプログラムを実行する。また、サーバ装置105のプロセッサ1002は、後述するTCP/IP通信制御部402を実現するプログラムを実行する。
 記憶装置1004は、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、HDD(Hard Disk Drive)等である。記憶装置1004は、上記のプログラムを記憶する。つまり、クライアント装置(1)102及びクライアント装置(2)104の記憶装置1004は、TCP/IP通信制御部302及びコネクションタイマ管理部303を実現するプログラムを記憶する。また、サーバ装置105の記憶装置1004は、TCP/IP通信制御部402を実現するプログラムを記憶する。また、記憶装置1004は、プロセッサ1002の演算に用いられる値及びプロセッサ1002の演算結果を記憶する。
 図11は、GSMモデム106のハードウェア構成例を示す。
 GSMモデム106は、無線通信インターフェース1101、プロセッサ1102、シリアルインターフェース1103及び記憶装置1104を備える。
 無線通信インターフェース1101は、公衆携帯ネットワーク107とのインターフェースとなる回路である。
 シリアルインターフェース1103は、シリアルケーブルとのインターフェースとなる回路である。
 プロセッサ1102は、プロセッシングを行うICである。プロセッサ1002は、CPU、DSP等である。プロセッサ1102は、プログラムを実行する。より具体的には、プロセッサ1102は、後述するGSM通信制御部502を実現するプログラムを実行する。
 記憶装置1104は、RAM、ROM、フラッシュメモリ等である。記憶装置1104は、GSM通信制御部502を実現するプログラムを記憶する。また、記憶装置1104は、プロセッサ1102の演算に用いられる値及びプロセッサ1102の演算結果を記憶する。
 図12は、設備機器(1)101及び設備機器(2)103のハードウェア構成例を示す。本実施の形態では、設備機器(1)101及び設備機器(2)103のハードウェア構成は共通しているものとする。
 設備機器(1)101及び設備機器(2)103は、シリアルインターフェース1201、プロセッサ1202、アクチエータ1203及び記憶装置1204を備える。
 シリアルインターフェース1201は、シリアルケーブルとのインターフェースとなる回路である。
 プロセッサ1202は、プロセッシングを行うICである。プロセッサ1002は、CPU、DSP等である。プロセッサ1202は、プログラムを実行する。より具体的には、プロセッサ1202は、後述するGSMモデム制御部202、状態情報生成部203、機器状態監視部204及び機器制御部205を実現するプログラムを実行する。
 記憶装置1204は、RAM、ROM、フラッシュメモリ等である。記憶装置1204は、GSMモデム制御部202、状態情報生成部203、機器状態監視部204及び機器制御部205を実現するプログラムを記憶する。また、記憶装置1204は、プロセッサ1202の演算に用いられる値及びプロセッサ1202の演算結果を記憶する。
 アクチエータ1203は、回転運動・直進運動等を行う機械的要素である。
 図2は、設備機器(1)101及び設備機器(2)103の機能構成例を示す。本実施の形態では、設備機器(1)101及び設備機器(2)103の機能構成は共通しているものとする。
 機器制御部205は、アクチエータ1203を制御する。
 機器状態監視部204は、機器制御部205の状態を監視する。
 状態情報生成部203は、機器状態監視部204からの情報を元に設備管理者に送信する状態情報を生成する。
 GSMモデム制御部202は、状態情報生成部203からの状態情報の入力をトリガにしてシリアル通信部201を介してGSMモデム106を制御し、GSMモデム106に状態情報を送信する。
 シリアル通信部201は、クライアント装置(1)102又はクライアント装置(2)104とのシリアル通信を制御する。
 なお、シリアル通信部201は図12のシリアルインターフェース1201により実現される。GSMモデム制御部202、状態情報生成部203、機器状態監視部204及び機器制御部205はプロセッサ1202と記憶装置1204により実現される。
 図3は、クライアント装置(1)102及びクライアント装置(2)104の機能構成例を示す。本実施の形態では、クライアント装置(1)102及びクライアント装置(2)104の機能構成は共通しているものとする。
 ネットワーク通信部301は、Ethernetとの通信又は無線LANとの通信を制御する。
 シリアル通信部304は、設備機器(1)101又は設備機器(2)103とのシリアル通信を制御する。
 通信先アドレス情報記憶部305は、TCP/IPの通信先となるサーバ装置105のIPアドレス、TCPポート番号を記憶している。
 TCP/IP通信制御部302は、ネットワーク通信部301が受信したTCP/IPフレームのデータ部をシリアル通信部304に転送する。また、TCP/IP通信制御部302は、シリアル通信部304が受信したデータをTCP/IPフレームに格納し、TCP/IPフレームをネットワーク通信部301に転送する。また、TCP/IP通信制御部302は、シリアル通信部304からの入力をトリガにしてTCP/IP通信の制御を行う。より具体的には、TCP/IP通信制御部302は、TCPのコネクション確立要求(SYN)をネットワーク通信部301を介してサーバ装置105に送信する。そして、コネクション確立要求(SYN)に対してネットワーク通信部301がリセット応答(RST)を受信した場合は、コネクション確立要求(SYN)の再送を行う。コネクション確立要求(SYN)は、コネクションの設定を要求するパケットである。リセット応答(RST)は、コネクションの設定が許可されないことを通知するパケットである。また、後述するコネクション確立応答(ACK)は、コネクションの設定が許可されたことを通知するパケットである。
 コネクションタイマ管理部303は、TCP/IP通信制御部302を監視し、通信が規定時間の間行われていない場合に、TCPのコネクションの切断をTCP/IP通信制御部302に指示する。
 なお、ネットワーク通信部301は、図10のネットワークインタフェース1001により実現される。シリアル通信部304は、図10のシリアルインターフェース1003により実現される。通信先アドレス情報記憶部305は、図10の記憶装置1004により実現される。TCP/IP通信制御部302及びコネクションタイマ管理部303は、プロセッサ1002と記憶装置1004により実現される。
 図4は、サーバ装置105の機能構成例を示す。
 ネットワーク通信部401は、Ethernetとの通信又は無線LANとの通信を制御する。
 シリアル通信部403は、GSMモデム106とのシリアル通信を制御する。
 TCP/IP通信制御部402は、TCP/IP通信の制御を行う。より具体的には、TCP/IP通信制御部402は、ネットワーク通信部401が受信したTCP/IPフレームのデータ部をシリアル通信部403に転送する。また、TCP/IP通信制御部402は、シリアル通信部403が受信したデータをTCP/IPフレームに格納し、TCP/IPフレームをネットワーク通信部401に転送する。また、TCP/IP通信制御部402は、ネットワーク通信部401がコネクション確立要求(SYN)を受信した場合に、コネクション確立応答(ACK)又はリセット応答(RST)を、コネクション確立要求(SYN)の送信元にネットワーク通信部401を介して送信する。
 なお、ネットワーク通信部401は、図10のネットワークインタフェース1001により実現される。シリアル通信部403は、図10のシリアルインターフェース1003により実現される。TCP/IP通信制御部402は、図10のプロセッサ1002と記憶装置1004で実現される。
 図5は、GSMモデム106の機能構成例を示す。
 GSM通信部501は、公衆携帯ネットワーク107とのGSM通信を制御する。
 シリアル通信部503は、サーバ装置105とのシリアル通信を制御する。
 GSM通信制御部502は、設備機器(1)101又は設備機器(2)103から送信されるATコマンドに応じてGSM通信部501を制御し、ATコマンドに対する応答をシリアル通信部503を介して設備機器(1)101又は設備機器(2)103に送信する。ATコマンドは、GSMモデム106の制御に用いられるパケットである。
 なお、GSM通信部501は、図11の無線通信インターフェース1101により実現される。シリアル通信部503は、図11のシリアルインターフェース1103により実現される。GSM通信制御部502は、図11のプロセッサ1102と記憶装置1104により実現される。
***動作の説明***
 次に、本実施の形態に係る設備管理システムの通信動作について説明する。
 図6は、設備機器(1)101が携帯端末装置108に状態情報を送信する際の通信シーケンス例を示す。
 なお、図6では、GSMモデム106から携帯端末装置108への通信における通信シーケンスの図示は省略している。
 また、図6では、コネクション接続要求(SYN)は「SYN」と表記している。コネクション接続応答(ACK)は「ACK」と表記している。
 設備機器(1)101では、状態情報の送信に先立ち、設備機器(1)101とGSMモデム106との間の通信回線を設定するために、GSMモデム制御部202がシリアル通信部201を介してGSMモデム106に対するATコマンド(発信)を送信する(ステップ605)。
 クライアント装置(1)102では、TCP/IP通信制御部302がシリアル通信部304を介してATコマンド(発信)を受信する。サーバ装置105との間にTCPコネクションが確立されていないため、TCP/IP通信制御部302はネットワーク通信部301を介してコネクション確立要求(SYN)をサーバ装置105に送信する(ステップ606)。
 サーバ装置105では、TCP/IP通信制御部402がネットワーク通信部401を介してコネクション確立要求(SYN)を受信する。そして、TCP/IP通信制御部402は他のクライアント装置(具体的にはクライアント装置(2)104)との間でコネクションが確立しているか否かを判定する。TCP/IP通信制御部402は、コネクションが確立しているクライアント装置が記述されるコネクション状態テーブルを管理しており、コネクション状態テーブルを参照して他のクライアント装置との間でコネクションが確立しているか否かを判定する。図6では、サーバ装置105と他のクライアント装置(クライアント装置(2)104)との間ではコネクションが確立されてない。このため、TCP/IP通信制御部402は、コネクション確立応答(ACK)をネットワーク通信部401を介してクライアント装置(1)102に送信する(ステップ607)。この結果、クライアント装置(1)102とサーバ装置105との間でTCPコネクションが確立する。また、TCP/IP通信制御部402は、クライアント装置(1)102をコネクション状態テーブルに記入する。
 クライアント装置(1)102のTCP/IP通信制御部302は、コネクション確立後に、ネットワーク通信部301を介して、ATコマンド(発信)をサーバ装置105に送信する(ステップ608)。
 サーバ装置105では、TCP/IP通信制御部402がネットワーク通信部401を介してATコマンド(発信)を受信し、シリアル通信部403を介してATコマンド(発信)をGSMモデム106に転送する(ステップ609)。
 GSMモデム106では、GSM通信制御部502がシリアル通信部503を介してATコマンド(発信)を受信し、発信完了の応答をシリアル通信部503を介してサーバ装置105に送信する(ステップ610)。
 サーバ装置105では、TCP/IP通信制御部402がシリアル通信部403を介して応答を受信し、ネットワーク通信部401を介して応答をクライアント装置(1)102に送信する(ステップ611)。
 クライアント装置(1)102では、TCP/IP通信制御部302がネットワーク通信部301を介して応答を受信し、シリアル通信部304を介して応答を設備機器(1)101に送信する(ステップ612)。
 設備機器(1)101では、GSMモデム制御部202がシリアル通信部201を介して応答を受信し、状態情報生成部203で生成された状態情報をクライアント装置(1)102に送信する。状態情報は、クライアント装置(1)102、サーバ装置105、GSMモデム106の順に転送される(ステップ613)。最終的には、GSMモデム106から公衆携帯ネットワーク107を介して携帯端末装置108に状態情報が送信される。
 設備機器(1)101では、状態情報の送信が完了すると、GSMモデム106との通信回線を切断するために、GSMモデム制御部202がシリアル通信部201を介してATコマンド(切断)をクライアント装置(1)102に送信する(ステップ614)。
 クライアント装置(1)102では、TCP/IP通信制御部302がシリアル通信部304を介してATコマンド(切断)を受信し、ネットワーク通信部301を介してATコマンド(切断)をサーバ装置105に送信する(ステップ615)。
 サーバ装置105では、TCP/IP通信制御部402がネットワーク通信部401を介してATコマンド(切断)を受信し、シリアル通信部403を介してATコマンド(切断)をGSMモデム106に送信する(ステップ616)。
 GSMモデム106では、GSM通信制御部502がシリアル通信部503を介してATコマンド(切断)を受信し、切断完了の応答をシリアル通信部503を介してサーバ装置105に送信する(ステップ617)。
 サーバ装置105では、TCP/IP通信制御部402がシリアル通信部403を介して応答を受信し、ネットワーク通信部401を介して応答をクライアント装置(1)102に送信する(ステップ618)。
 クライアント装置(1)102では、TCP/IP通信制御部302がネットワーク通信部301を介して応答を受信し、シリアル通信部304を介して応答を設備機器(1)101に送信する(ステップ619)。
 また、クライアント装置(1)102では、最後のTCP/IP通信(ステップ618)から、コネクションタイマ管理部303に設定した無通信時間(621)が経過するまでに新たなTCP/IP通信が無い場合に、TCP/IP通信制御部302がTCPのコネクションの切断(FIN/ACK)を行う(ステップ620)。サーバ装置105のTCP/IP通信制御部402は、クライアント装置(1)102をコネクション状態テーブルから削除する。
 図7は、クライアント装置(2)104とサーバ装置105との間にコネクションが確立しているときに設備機器(1)101からATコマンド(発信)が送信された場合の通信シーケンス例を示す。
 また、図7では、GSMモデム106から携帯端末装置108への通信における通信シーケンスの図示は省略している。
 また、図7では、コネクション接続要求(SYN)は「SYN」と表記している。コネクション接続応答(ACK)は「ACK」と表記している。リセット応答(RST)は「RST」と表記している。
 設備機器(1)101では、状態情報の送信に先立ち、設備機器(1)101とGSMモデム106との間の通信回線を設定するために、GSMモデム制御部202がシリアル通信部201を介してGSMモデム106に対するATコマンド(発信)を送信する(ステップ705)。
 クライアント装置(1)102では、TCP/IP通信制御部302がシリアル通信部304を介してATコマンド(発信)を受信する。サーバ装置105との間にTCPコネクションが確立されていないため、TCP/IP通信制御部302はネットワーク通信部301を介してコネクション確立要求(SYN)をサーバ装置105に送信する(ステップ706)。
 サーバ装置105では、TCP/IP通信制御部402がネットワーク通信部401を介してコネクション確立要求(SYN)を受信する。そして、TCP/IP通信制御部402は他のクライアント装置(具体的にはクライアント装置(2)104)との間でコネクションが確立しているか否かを判定する。図7では、クライアント装置(2)104とサーバ装置105との間でコネクションが確立している(ステップ711)ため、TCP/IP通信制御部402はネットワーク通信部401を介してリセット応答(RST)をクライアント装置(1)102に送信する(ステップ707)。
 クライアント装置(1)102では、TCP/IP通信制御部302がネットワーク通信部301を介してリセット応答(RST)を受信する。TCP/IP通信制御部302は、リセット応答(RST)を受信したため、コネクション確立応答(ACK)を受信するまで、コネクション確立要求(SYN)の再送を繰り返す(ステップ708~ステップ713)。
 TCP/IP通信制御部302は、コネクション確立応答(ACK)を受信したら(ステップ714)、ネットワーク通信部301を介して、サーバ装置105にATコマンド(発信)を送信する(ステップ715)。
 ステップ716以降の動作は、図6のステップ609以降の動作と同じであるため、説明を省略する。
 このように、本実施の形態では、クライアント装置(1)102及びクライアント装置(2)104は、それぞれ、サーバ装置105への状態情報の中継に先立ち、コネクション型通信プロトコルであるTCP/IPに従ってサーバ装置105にコネクションの設定を要求する。
 サーバ装置105は、クライアント装置(1)102からコネクションの設定が要求された場合に、TCP/IPに従い、他のクライアント装置であるクライアント装置(2)104との間にコネクションが設定されているか否かを判定し、クライアント装置(2)104との間にコネクションが設定されていない場合に、要求元のクライアント装置(1)102との間にコネクションを設定する。
 一方、クライアント装置(2)104との間にコネクションが設定されている場合に、サーバ装置105は、要求元のクライアント装置(1)102に対してコネクションの設定が許可されないことを応答する。
 クライアント装置(1)102は、サーバ装置105からコネクションの設定が許可されないことが応答された場合に、再度、TCP/IPに従ってサーバ装置105にコネクションの設定を要求する。
 図13は、図7のステップ706からステップ715におけるクライアント装置(1)102の動作を説明するフローチャートである。
 以下、図13を参照して、クライアント装置(1)102の動作を説明する。
 なお、以下では、クライアント装置(1)102の動作として説明するが、クライアント装置(2)104も図13のフローチャートに従って同じ動作を行う。
 先ず、TCP/IP通信制御部302がシリアル通信部304を介してATコマンド(発信)を受信する(ステップS1301)。
 次に、TCP/IP通信制御部302がネットワーク通信部301を介してコネクション確立要求(SYN)をサーバ装置105に送信する(ステップS1302)。
 次に、TCP/IP通信制御部302は、ネットワーク通信部301がサーバ装置105からの応答を受信した際に、コネクション確立応答(ACK)及びリセット応答(RST)のいずれを受信したかを判定する(ステップS1303)。
 コネクション確立応答(ACK)を受信している場合は、TCP/IP通信制御部302は、ネットワーク通信部301を介して、ATコマンド(発信)をサーバ装置105に送信する(ステップS1304)。
 一方、リセット応答(RST)を受信している場合は、TCP/IP通信制御部302は、ネットワーク通信部301を介して再度コネクション確立要求(SYN)をサーバ装置105に送信する(ステップS1302)。
 図14は、図7のステップ706からステップ716におけるサーバ装置105の動作を説明するフローチャートである。
 以下、図14を参照して、サーバ装置105の動作を説明する。
 なお、以下では、クライアント装置(1)102からコネクション確立要求(SYN)を受信した場合のサーバ装置105の動作を説明するが、クライアント装置(2)104からコネクション確立要求(SYN)を受信した場合もサーバ装置105は図14のフローチャートに従って同じ動作を行う。
 先ず、TCP/IP通信制御部402がネットワーク通信部401を介してクライアント装置(1)102からコネクション確立要求(SYN)を受信する(ステップS1401)。
 次に、TCP/IP通信制御部402は他のクライアント装置(具体的にはクライアント装置(2)104)とのコネクション確立状況を調べる。前述したように、TCP/IP通信制御部402は、コネクション管理テーブルを参照して、他のクライアント装置との間でコネクションが確立しているか否かを調べる。
 他のクライアント装置との間でコネクションが確立している場合(ステップS1403でYES)は、TCP/IP通信制御部402はネットワーク通信部401を介してリセット応答(RST)をクライアント装置(1)102に送信する(ステップS1407)。
 一方、他のクライアント装置との間でコネクションが確立していない場合(ステップS1403でNO)は、TCP/IP通信制御部402はネットワーク通信部401を介してコネクション確立応答(ACK)をクライアント装置(1)102に送信する(ステップS1404)。
 次に、TCP/IP通信制御部402はネットワーク通信部401を介してクライアント装置(1)102からATコマンド(発信)を受信し(ステップS1405)、受信したATコマンド(発信)をシリアル通信部403を介してGSMモデム106に送信する(ステップS1406)。
***実施の形態の効果の説明***
 以上のように、本実施の形態では、TCP/IPのコネクション制御を使用してGSMモデムに対する通信の競合を制御するため、複数の設備機器が1台のGSMモデムを共有することができる。つまり、本実施の形態に係る中継システムにより、設備機器の設定及びGSMモデムの設定を変更することなく、複数の設備機器からの状態情報を1つのGSMモデムで送信することができる。従って、本実施の形態によれば、工場全体で必要なGSMモデム数を減らせるという効果が得られる。
実施の形態2.
 実施の形態1では、図6に示すように、無通信時間(621)が経過するまでに新たなTCP/IP通信が無い場合に、TCPのコネクションの切断(FIN/ACK)が行われる(ステップ620)。
 本実施の形態では、無通信時間が経過するまでコネクションの切断を待つことなく、より早期にコネクションを切断する手順を説明する。
 以下では、主に実施の形態1との差異を説明する。
 以下で説明していない事項は実施の形態1と同じである。
 図8は、本実施の形態に係るクライアント装置(1)102及びクライアント装置(2)104の機能構成例を示す。
 図8では、実施の形態1のクライアント装置(1)102及びクライアント装置(2)104の構成(図3に示す構成)に、コネクション切断トリガコマンド管理部806が追加されている。
 コネクション切断トリガコマンド管理部806は、サーバ装置105との間にコネクションが設定されている場合に、TCP/IP通信制御部802を監視し、TCP/IP通信制御部802が予め指定されたコマンドを送信した後に、予め指定された別のコマンドを受信したことを検知した際に、TCP/IP通信制御部802にコネクションの切断を指示する。
 より具体的には、コネクション切断トリガコマンド管理部806は、設備機器(1)101又は設備機器(2)103から携帯端末装置108への状態情報の送信が完了したことを通知する完了通知コマンドをTCP/IP通信制御部802がサーバ装置105に送信した後に、サーバ装置105から完了通知コマンドに対する応答である応答コマンドをTCP/IP通信制御部802が受信した際に、サーバ装置105との間のコネクションを切断するようTCP/IP通信制御部802に指示する。
 なお、図8において、ネットワーク通信部801はネットワーク通信部301と同じである。TCP/IP通信制御部802はTCP/IP通信制御部302と同じである。コネクションタイマ管理部803はコネクションタイマ管理部303と同じである。シリアル通信部804はシリアル通信部304と同じである。通信先アドレス情報記憶部805は通信先アドレス情報記憶部305と同じである。このため、ネットワーク通信部801、TCP/IP通信制御部802、コネクションタイマ管理部803、シリアル通信部804、通信先アドレス情報記憶部805の説明を省略する。
 また、コネクション切断トリガコマンド管理部806はプログラムであり、図10のプロセッサ1002と記憶装置1004で実現される。
 図9は、本実施の形態に係る通信シーケンス例を示す。
 図9のステップ1005からステップ1014は、図6のステップ605からステップ614と同じであり、図9のステップ1016、ステップ1017及びステップ1019は、図6のステップ616、ステップ617及びステップ619と同じである。このため、これらのステップについては説明を省略する。
 図9では、ステップ1015が図6のステップ615と異なり、ステップ1018が図6のステップ618と異なり、ステップ1020が図6のステップ620と異なるため、ステップ1015とステップ1018とステップ1020を説明する。
 本実施の形態では、コネクション切断トリガコマンド管理部806に、完了通知コマンドであるATコマンド(切断)(ステップ1015)と、応答コマンドである応答(ステップ1018)がコネクション切断のためのトリガコマンドとして登録されている。
 前述したように、コネクション切断トリガコマンド管理部806はTCP/IP通信制御部802を監視しており、コネクション切断トリガコマンド管理部806は、ステップ1015において、TCP/IP通信制御部802がATコマンド(切断)をサーバ装置105に送信したことを検知する。また、コネクション切断トリガコマンド管理部806は、ステップ1018において、TCP/IP通信制御部802が応答を受信したことを検知する。このように、TCP/IP通信制御部802においてトリガコマンドの送受信が行われたため、コネクション切断トリガコマンド管理部806はTCP/IP通信制御部802にコネクションの切断を指示する。
 この結果、TCP/IP通信制御部802は、ステップ1020において、TCPのコネクションの切断(FIN/ACK)を行う。
 なお、GSMモデム106がエラー等でATコマンド(切断)に対する応答を返せない場合は、実施の形態1と同様に、TCP/IP通信制御部802は、コネクションタイマ管理部803に設定されている無通信時間が経過するまでに新たなTCP/IP通信が無い場合に、TCPのコネクションの切断を行う。
***実施の形態の効果の説明***
 実施の形態1では、図6に示すように、無通信時間(621)が経過するまで、TCPのコネクションの切断を行うことができないが、本実施の形態では、図9に示すように、ステップ1018の応答の受信後ただちにコネクションの切断を行うことができる。
 つまり、本実施の形態では、TCPコネクション切断のトリガとなるコマンド群をクライアント装置に登録しておくことにより、TCPコネクション切断までの待ち時間を短縮できる。このため、図7に示すように設備機器(1)101がサーバ装置105にコネクション接続要求(SYN)を送信した際にサーバ装置105とクライアント装置(2)104との間でコネクションが確立している場合に、クライアント装置(2)104がトリガコマンドの送受信の検知により早期にコネクションを切断することで、サーバ装置105とクライアント装置(1)102とのコネクションの確立を早期に達成することができる。従って、複数の設備機器が効率的に1台のGSMモデムを共有することができるという効果が得られる。
 以上、本発明の実施の形態について説明したが、これら2つの実施の形態を組み合わせて実施しても構わない。
 あるいは、これら2つの実施の形態のうち、1つを部分的に実施しても構わない。
 あるいは、これら2つの実施の形態を部分的に組み合わせて実施しても構わない。
 なお、本発明は、これらの実施の形態に限定されるものではなく、必要に応じて種々の変更が可能である。
***ハードウェア構成の説明***
 最後に、設備機器(1)101、クライアント装置(1)102、設備機器(2)103、クライアント装置(2)104、サーバ装置105、GSMモデム106のハードウェア構成の補足説明を行う。
 以上の説明では言及しなかったが、図10~図12のプロセッサ1002、プロセッサ1102、プロセッサ1202は、OS(Operating System)実行して、タスク管理、メモリ管理、ファイル管理、通信制御等を行うことができる。
 また、プロセッサ1002、プロセッサ1102、プロセッサ1202の代わりに、ロジックIC(Integrated Circuit)、GA(Gate Array)、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)といった電子回路を用いてもよい。
 なお、プロセッサ1002、プロセッサ1102、プロセッサ1202及び上記の電子回路を総称してプロセッシングサーキットリーともいう。
 100 工場、101 設備機器(1)、102 クライアント装置(1)、103 設備機器(2)、104 クライアント装置(2)、105 サーバ装置、106 GSMモデム、107 公衆携帯ネットワーク、108 携帯端末装置、201 シリアル通信部、202 GSMモデム制御部、203 状態情報生成部、204 機器状態監視部、205 機器制御部、301 ネットワーク通信部、302 TCP/IP通信制御部、303 コネクションタイマ管理部、304 シリアル通信部、305 通信先アドレス情報記憶部、401 ネットワーク通信部、402 TCP/IP通信制御部、403 シリアル通信部、501 GSM通信部、502 GSM通信制御部、503 シリアル通信部、801 ネットワーク通信部、802 TCP/IP通信制御部、803 コネクションタイマ管理部、804 シリアル通信部、805 通信先アドレス情報記憶部、806 コネクション切断トリガコマンド管理部、1001 ネットワークインタフェース、1002 プロセッサ、1003 シリアルインターフェース、1004 記憶装置、1101 無線通信インターフェース、1102 プロセッサ、1103 シリアルインターフェース、1104 記憶装置、1201 シリアルインターフェース、1202 プロセッサ、1203 アクチエータ、1204 記憶装置。

Claims (5)

  1.  複数の機器から送信されたデータを中継する、コネクション型通信プロトコルに従う複数の第1の中継装置と、
     前記複数の第1の中継装置により中継されたデータを、前記コネクション型通信プロトコルに従って受信し、受信したデータを前記複数の機器のデータ送信先である送信先機器と通信する無線通信機器に送信する第2の中継装置とを有し、
     前記複数の第1の中継装置の各々は、
     前記第2の中継装置へのデータの中継に先立ち、前記コネクション型通信プロトコルに従って前記第2の中継装置にコネクションの設定を要求し、
     前記第2の中継装置は、
     いずれかの第1の中継装置からコネクションの設定が要求された場合に、前記コネクション型通信プロトコルに従い、他の第1の中継装置との間にコネクションが設定されているか否かを判定し、他の第1の中継装置との間にコネクションが設定されていない場合に、要求元の第1の中継装置との間にコネクションを設定する中継システム。
  2.  前記第2の中継装置は、
     他の第1の中継装置との間にコネクションが設定されている場合に、要求元の第1の中継装置に対してコネクションの設定が許可されないことを応答し、
     前記複数の第1の中継装置の各々は、
     前記第2の中継装置からコネクションの設定が許可されないことが応答された場合に、再度、前記コネクション型通信プロトコルに従って前記第2の中継装置にコネクションの設定を要求する請求項1に記載の中継システム。
  3.  前記複数の第1の中継装置の各々は、
     前記第2の中継装置との間にコネクションが設定されている場合に、予め指定されたコマンドを送信した後に、予め指定された別のコマンドを受信した際に、前記第2の中継装置との間のコネクションを切断する請求項1に記載の中継システム。
  4.  前記複数の第1の中継装置の各々は、
     データ送信元の機器から前記送信先機器へのデータ送信が完了したことを通知する完了通知コマンドを前記第2の中継装置に送信した後に、前記第2の中継装置から前記完了通知コマンドに対する応答である応答コマンドを受信した際に、前記第2の中継装置との間のコネクションを切断する請求項1に記載の中継システム。
  5.  前記複数の第1の中継装置の各々は、
     前記第2の中継装置へのデータの中継に先立ち、TCP/IP(Transmission Control Protocol/Internet Protocol)に従って前記第2の中継装置にコネクションの設定を要求し、
     前記第2の中継装置は、
     いずれかの第1の中継装置からコネクションの設定が要求された場合に、前記TCP/IPに従い、他の第1の中継装置との間にコネクションが設定されているか否かを判定し、他の第1の中継装置との間にコネクションが設定されていない場合に、要求元の第1の中継装置との間にコネクションを設定する請求項1に記載の中継システム。
PCT/JP2016/052034 2016-01-25 2016-01-25 中継システム WO2017130275A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/JP2016/052034 WO2017130275A1 (ja) 2016-01-25 2016-01-25 中継システム
JP2017537523A JP6219005B1 (ja) 2016-01-25 2016-01-25 中継システム
CN201680058860.8A CN108141402A (zh) 2016-01-25 2016-01-25 中继系统
TW105114841A TW201728105A (zh) 2016-01-25 2016-05-13 中繼系統

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/052034 WO2017130275A1 (ja) 2016-01-25 2016-01-25 中継システム

Publications (1)

Publication Number Publication Date
WO2017130275A1 true WO2017130275A1 (ja) 2017-08-03

Family

ID=59397511

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/052034 WO2017130275A1 (ja) 2016-01-25 2016-01-25 中継システム

Country Status (4)

Country Link
JP (1) JP6219005B1 (ja)
CN (1) CN108141402A (ja)
TW (1) TW201728105A (ja)
WO (1) WO2017130275A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020165994A1 (ja) * 2019-02-14 2020-08-20 三菱電機株式会社 データ処理装置及びデータ処理システム

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004048603A (ja) * 2002-07-15 2004-02-12 Matsushita Electric Ind Co Ltd ゲートウェイおよび端末
JP2014027698A (ja) * 2008-12-12 2014-02-06 Mitsubishi Electric Corp データ送受信方法、データ送受信システム、マスタ装置、及びスレーブ装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4492575B2 (ja) * 2006-03-29 2010-06-30 村田機械株式会社 中継装置および通信システム

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004048603A (ja) * 2002-07-15 2004-02-12 Matsushita Electric Ind Co Ltd ゲートウェイおよび端末
JP2014027698A (ja) * 2008-12-12 2014-02-06 Mitsubishi Electric Corp データ送受信方法、データ送受信システム、マスタ装置、及びスレーブ装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020165994A1 (ja) * 2019-02-14 2020-08-20 三菱電機株式会社 データ処理装置及びデータ処理システム
JP6746041B1 (ja) * 2019-02-14 2020-08-26 三菱電機株式会社 データ処理装置及びデータ処理システム
US11329846B2 (en) 2019-02-14 2022-05-10 Mitsubishi Electric Corporation Data processing device and data processing system

Also Published As

Publication number Publication date
CN108141402A (zh) 2018-06-08
JP6219005B1 (ja) 2017-10-25
TW201728105A (zh) 2017-08-01
JPWO2017130275A1 (ja) 2018-02-01

Similar Documents

Publication Publication Date Title
EP2705429B1 (en) Remote cable access point reset
JP6106494B2 (ja) 通信制御装置、サーバ装置、通信システム及びプログラム
CN101461194B (zh) 用于远程访问网络中的装置的方法和系统
JP6611810B2 (ja) 制御システム、設備機器管理装置、方法、およびプログラム
JP4557028B2 (ja) 情報処理装置、情報処理方法、クライアント機器、情報処理システム
JP6279938B2 (ja) 接続管理装置、通信システム、接続管理方法およびプログラム
CN101547210A (zh) 一种tcp连接的处理方法和装置
JP5962676B2 (ja) 情報処理装置、情報処理方法及びプログラム
EP4070507A1 (en) Network function virtualization compute element image upgrade
KR20160080239A (ko) 가상 디바이스 드라이버를 이용한 리소스 공유 방법 및 그 전자 디바이스
JP6219005B1 (ja) 中継システム
JP6758858B2 (ja) 通信装置、通信方法及びプログラム
JP2011160286A (ja) 呼制御サーバ、中継サーバ、vpn装置、vpn通信システム、vpnネットワーキング方法、プログラム、及び記憶媒体
JP6213059B2 (ja) 中継プログラム、中継装置、及び中継方法
JP2006237996A (ja) 遠隔保守・メンテナンスシステム、sip搭載機器、保守・メンテナンス機器および方法
JP5162641B2 (ja) メディアアダプタ装置とルータ装置の自動設定システム
JP5429003B2 (ja) 情報処理装置、通信制御方法及び通信制御プログラム
JP7338250B2 (ja) 移動通信システム、ゲートウェイ装置、通信方法、及び、プログラム
JP6840280B1 (ja) ルータ機能付き終端装置を含むネットワークのリセットシステム
KR102501170B1 (ko) 단말들 간의 네트워크 서비스를 위한 게이트웨이 제어 방법 및 이를 구현하는 게이트웨이 매니저 장치
CN105491057A (zh) 防止分布式拒绝服务DDoS攻击的数据传输方法和装置
JP6731618B2 (ja) 通信装置及び通信方法
CN116382169A (zh) 基于物联网的远程控制系统、方法及介质
WO2023057639A1 (en) Method and system of transferring data
JP2024018734A (ja) 通信処理装置および通信方法

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2017537523

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16887862

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16887862

Country of ref document: EP

Kind code of ref document: A1