WO2013111285A1 - Communication apparatus, communication method, and program - Google Patents

Communication apparatus, communication method, and program Download PDF

Info

Publication number
WO2013111285A1
WO2013111285A1 PCT/JP2012/051540 JP2012051540W WO2013111285A1 WO 2013111285 A1 WO2013111285 A1 WO 2013111285A1 JP 2012051540 W JP2012051540 W JP 2012051540W WO 2013111285 A1 WO2013111285 A1 WO 2013111285A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
unit
transmission
frame
transmitted
Prior art date
Application number
PCT/JP2012/051540
Other languages
French (fr)
Japanese (ja)
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/JP2012/051540 priority Critical patent/WO2013111285A1/en
Publication of WO2013111285A1 publication Critical patent/WO2013111285A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Definitions

  • the present invention relates to a data transmission technique.
  • the slave device when the slave device detects the occurrence of a failure in the network, the slave device notifies the master device of the occurrence of the failure.
  • the slave device In the conventional failure notification method, the slave device notifies the master device of the failure by broadcasting a failure notification frame to the entire network (for example, Patent Document 1).
  • the transmission of the failure notification frame is waited until the other communication is completed. Notification is delayed.
  • important data such as a failure notification frame is newly generated during transmission of certain data, until the transmission of the data being transmitted is completed in the conventional method, even if it is important data Since transmission is awaited, there is a problem that transmission of important data is delayed.
  • This invention is mainly intended to solve the above-described problems, and it is a main object to realize a configuration in which new data can be preferentially transmitted even during data transmission.
  • the communication device is A data transmission unit for transmitting data; When new data to be transmitted occurs while the data transmission unit is transmitting data, the data transmission unit determines which of the data being transmitted and the new data has priority, A data arbitration unit that outputs a data switching instruction to instruct data switching to the data transmission unit when giving priority to the new data;
  • the data transmitter is When a data switching instruction is input from the data arbitration unit during data transmission, transmission of the data being transmitted is interrupted and transmission of the new data is started.
  • the data arbitration unit determines which of the data being transmitted and the new data is prioritized by the data transmitting unit, and when giving priority to the new data, the data transmitting unit Is interrupted and transmission of new data is started. For this reason, important data can be transmitted first, and a situation in which transmission of important data is delayed can be avoided.
  • FIG. 1 is a diagram illustrating a configuration example of a communication system according to Embodiment 1.
  • FIG. 3 illustrates a configuration example of a slave device according to the first embodiment.
  • FIG. 3 shows an example of a communication frame according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example of the slave device according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example of the slave device according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example of the slave device according to the first embodiment.
  • FIG. 3 is a diagram illustrating a hardware configuration example of a slave device according to the first embodiment.
  • Embodiment 1 FIG. In the present embodiment, description will be given by taking a tree topology network in which token passing is performed as an example.
  • FIG. 1 illustrates an example of a tree topology network according to the first embodiment.
  • one master device 200 and a plurality of slave devices 100 are connected via a switch 300.
  • the master device 200 and the slave device 100 are collectively referred to as a station or a node.
  • the slave device 100, the master device 200, and the switch 300 relay the received frame to all ports that are not reception ports. Thereby, it is possible to communicate even between nodes that are not adjacent to each other.
  • the slave device 100 corresponds to an example of a communication device.
  • the order in which the tokens are circulated is determined in advance, and the tokens circulate between the master device 200 and the plurality of slave devices 100 according to the circulation order.
  • the node acquires the transmission right by acquiring the token.
  • the master device 200 that has acquired the token makes a request for information collection, data distribution, and the like to the slave device 100 as a master of the tree topology of FIG.
  • the slave device 100 that has acquired the token responds to the master device 200 with the requested data in response to the information collection request from the master device 200. Further, the slave device 100 performs an operation based on the data distributed from the master device 200.
  • each slave device 100 notifies the master device 200 of the failure regardless of the presence or absence of a token.
  • FIG. 2 shows a configuration example of the slave device 100 according to the present embodiment. Note that the plurality of slave devices 100 shown in FIG. 1 each have the configuration shown in FIG.
  • the failure detection unit 101 includes, for example, the own station, the master device 200 and the slave device 100 adjacent to the own station, and the communication line between the master device 200 and the slave device 100 adjacent to the own station and the own station.
  • a failure notification frame for notifying the occurrence of a failure is generated when a failure detection target is detected and a failure has occurred in the failure detection target.
  • the normal frame generation unit 102 generates a normal frame related to normal operation other than the failure notification frame transmitted from the own station.
  • the normal frame is a frame for making a response to an information collection request from the master device 200, for example.
  • the failure detection unit 101 and the normal frame generation unit 102 correspond to an example of a data generation unit.
  • the transmission arbitration unit 103 includes a data reception unit 104, a data transmission unit 105, and a data arbitration unit 106.
  • the data receiving unit 104 inputs a reception frame from an adjacent other station (which may be either the master device 200 or the slave device 100).
  • the data receiving unit 104 may receive a normal frame or a failure notification frame.
  • the data transmission unit 105 transmits a frame to another station (which may be either the master device 200 or the slave device 100) adjacent to the side opposite to the input side.
  • the data transmission unit 105 may transmit a normal frame or a failure notification frame. Further, when transmitting a normal frame, the data transmission unit 105 stores the normal frame to be transmitted in a retransmission frame buffer 107 described later in parallel with the transmission.
  • the data arbitration unit 106 receives the reception frame (normal frame, failure notification frame) received by the data reception unit 104, receives the failure notification frame generated by the failure detection unit 101, and the normal frame generated by the normal frame generation unit 102 The frame is input, and the input normal frame and failure notification frame are output to the data transmission unit 105. Then, when a new failure notification frame occurs while the data transmission unit 105 is transmitting a normal frame (when a new failure notification frame is input from the data reception unit 104, the data arbitration unit 106 The data transmission unit 105 is instructed to transmit the failure notification frame to another station in preference to the normal frame in both cases when a failure notification frame is newly input from 101. More specifically, the data arbitration unit 106 outputs, to the data transmission unit 105, a data switching instruction that instructs to switch from a normal frame to a failure notification frame for transmission.
  • the retransmission frame buffer 107 buffers the normal frame transmitted by the data transmission unit 105.
  • the retransmission frame buffer 107 corresponds to an example of a buffer unit.
  • FIG. 3 shows an example of the data structure of a communication frame 500 used as a normal frame or a failure notification frame communicated in the tree topology according to the present embodiment.
  • a header 501 is provided in the communication frame 500.
  • the header 501 is a data area in the communication frame 500 for identifying a failure notification frame and a normal frame.
  • the data transmission unit 105 and the data arbitration unit 106 can identify the failure notification frame and the normal frame by confirming the contents of the header 501.
  • the communication frame 500 is also simply referred to as a frame.
  • the failure detection unit 101 detects that a failure has occurred in the failure detection object.
  • the detected failure includes, for example, a failure in the own station (such as a data error in the memory), a network failure between the adjacent master device 200 and the slave device 100 (cable disconnection, unreachable frame to be reached) Etc.).
  • the failure detection unit 101 generates a failure notification frame and outputs it to the transmission arbitration unit 103.
  • the normal frame generation unit 102 generates a normal frame to be transmitted from the own station and outputs the normal frame to the transmission arbitration unit 103.
  • the data arbitration unit 106 receives the failure notification frame from the failure detection unit 101 and the normal frame from the normal frame generation unit 102.
  • the data reception unit 104 in the transmission arbitration unit 103 receives a frame (a failure notification frame and a normal frame are mixed) from another station, and outputs the received frame to the data arbitration unit 106.
  • the data arbitration unit 106 and the data transmission unit 105 can classify the input frame into a failure notification frame and a normal frame based on the difference in the header 501. Then, the data arbitration unit 106 and the data transmission unit 105 transmit the failure notification frame with priority. Further, when transmitting a normal frame, the data transmission unit 105 stores the normal frame to be transmitted in the retransmission frame buffer 107 in parallel with the transmission.
  • the data arbitration unit 106 receives a failure notification frame from the failure detection unit 101 or the data reception unit 104 while the data transmission unit 105 is transmitting a normal frame to another station, the data arbitration unit 106 The unit 105 causes the transmission of the normal frame to be interrupted and starts the transmission of the failure notification frame. Then, when the transmission of the failure notification frame is completed, the data transmission unit 105 reads the normal frame whose transmission is interrupted from the retransmission frame buffer 107, and resumes the transmission of the normal frame.
  • the data arbitration unit 106 confirms whether or not the data transmission unit 105 is transmitting a frame. For example, a flag indicating whether or not the data transmission unit 105 is transmitting a frame (hereinafter referred to as a transmission flag) is provided in a predetermined memory in the slave device 100, and the data transmission unit 105 transmits a frame. The transmission flag is set to ON when it starts, and the transmission flag is set to OFF when frame transmission is completed. Then, the data arbitration unit 106 refers to the transmission flag and determines whether the data transmission unit 105 is transmitting a frame.
  • a transmission flag indicating whether or not the data transmission unit 105 is transmitting a frame
  • the data arbitration unit 106 checks whether the frame being transmitted by the data transmission unit 105 is a received frame (a failure notification frame from another station or a normal frame from another station). .
  • a flag hereinafter referred to as a reception frame flag
  • the data arbitration unit 106 refers to the reception frame flag to determine whether or not the frame being transmitted by the data transmission unit 105 is a reception frame.
  • the data transmission unit 105 can determine whether the transmission source of the frame is another station or the own station by referring to the transmission source address in the header 501 of the frame.
  • the failure detection unit 101 confirms whether or not to generate a failure notification frame.
  • the failure detection unit 101 In the case of YES in S ⁇ b> 103, in S ⁇ b> 104, the failure detection unit 101 generates a failure notification frame and outputs it to the transmission arbitration unit 103. In the transmission arbitration unit 103, the data arbitration unit 106 inputs a failure notification frame.
  • the data arbitration unit 106 confirms whether the frame being transmitted is a received frame and is a normal frame. For example, in addition to the above-described frame transmission flag and reception frame flag, a flag (hereinafter referred to as a frame type flag) indicating whether the frame being transmitted by the data transmission unit 105 is a normal frame is provided, and the data transmission unit 105, the frame type flag is turned on when the frame being transmitted is a normal frame, and the frame type flag is turned off when the frame being transmitted is a failure notification frame. Then, the data arbitration unit 106 refers to the frame type flag to determine whether or not the received frame being transmitted by the data transmission unit 105 is a normal frame. As described above, the data transmission unit 105 can determine whether the frame is a normal frame or a failure notification frame by referring to the frame header 501.
  • a flag hereinafter referred to as a frame type flag
  • the data arbitration unit 106 determines to prioritize transmission of the failure notification frame, and the data arbitration unit 106 outputs a data switching instruction and a failure notification frame to the data transmission unit 105. . That is, the data arbitration unit 106 interrupts transmission of a normal frame that is a received frame, and transmits the failure notification frame generated by the failure detection unit 101 of the local station to the master device 200 via another station. To instruct. Then, the data transmission unit 105 interrupts transmission of the normal frame being transmitted, and starts transmitting the failure notification frame generated by the failure detection unit 101 of the local station (S106).
  • the data transmission unit 105 interrupts transmission of the normal frame being transmitted, but continues to store the normal frame in the retransmission frame buffer 107, and stores the normal frame in the retransmission frame buffer 107 and the failure notification frame. Send in parallel. Thereafter, after the transmission of the failure notification frame is completed, the data transmission unit 105 reads the normal frame whose transmission is interrupted from the retransmission frame buffer 107 and transmits the read normal frame to another adjacent station (S106).
  • the failure notification frame generated by the failure detection unit 101 of the local station is referred to as a failure notification frame (transmission), and the normal frame generated by the normal frame generation unit 102 of the local station is represented.
  • the normal frame (transmission) is denoted
  • the failure notification frame received from another station is denoted as a failure notification frame (reception)
  • the normal frame received from another station is denoted as a normal frame (reception).
  • the data arbitration unit 106 sends the failure detection frame input from the failure detection unit 101 to the data transmission unit 105.
  • the data transmission unit 105 outputs the failure notification frame received from the other station, and then transmits the failure notification frame generated by the failure detection unit 101 of the local station to the master device 200 via the adjacent other station.
  • the normal frame generation unit 102 confirms whether or not to generate a normal frame in S108. If YES, the normal frame generation unit 102 transmits the generated normal frame in S109. Output to the arbitration unit 103.
  • the data arbitration unit 106 inputs the normal frame from the normal frame generation unit 102 and outputs the input normal frame to the data transmission unit 105.
  • the data transmission unit 105 transmits the normal frame generated by the normal frame generation unit 102 of the local station after completing the transmission of the received frame (failure notification frame from the other station or normal frame from the other station) (S110). .
  • the transmission arbitration unit 103 confirms whether or not a received frame has been detected. That is, the data arbitration unit 106 confirms whether or not a reception frame is input from the data reception unit 104.
  • the data arbitration unit 106 checks whether or not the frame being transmitted by the data transmission unit 105 is a normal frame. For example, the data arbitration unit 106 refers to the above-described frame type flag to determine whether or not the frame being transmitted by the data transmission unit 105 is a normal frame.
  • the data arbitration unit 106 checks whether the received frame input from the data receiving unit 104 is a failure notification frame. Specifically, the data arbitration unit 106 confirms the header 501 of the received frame and confirms whether or not the received frame is a failure notification frame.
  • the data arbitration unit 106 determines to give priority to the transmission of the failure notification frame.
  • the data arbitration unit 106 instructs the data transmission unit 105 to perform a data switching instruction and a failure notification from another station. Frame and output. That is, the data arbitration unit 106 interrupts transmission of the normal frame generated by the normal frame generation unit 102 of the local station, and transmits the failure notification frame from the other station to the master device 200 via the other station. To instruct. Then, the data transmission unit 105 interrupts transmission of the normal frame being transmitted and starts transmission of a failure notification frame from another station (S114).
  • the data transmission unit 105 interrupts transmission of the normal frame being transmitted, but continues to store the normal frame in the retransmission frame buffer 107, and stores the normal frame in the retransmission frame buffer 107 and the failure notification frame. Send in parallel. Thereafter, after the transmission of the failure notification frame is completed, the data transmission unit 105 reads the normal frame whose transmission is interrupted from the retransmission frame buffer 107 and transmits the read normal frame to another adjacent station (S106).
  • the data arbitration unit 106 outputs the normal frame from the other station to the data transmission unit 105, and the data transmission unit 105 generates the normal frame generated by the normal frame generation unit 102 of its own station. After the frame is transmitted, a received frame (a normal frame from another station) is transmitted. At this time, the data transmission unit 105 stores the normal frame to be transmitted in the retransmission frame buffer 107 in parallel with the transmission.
  • the data arbitration unit 106 checks whether the received frame input from the data receiving unit 104 is a failure notification frame. Specifically, the data arbitration unit 106 confirms the header 501 of the received frame and confirms whether or not the received frame is a failure notification frame.
  • the data arbitration unit 106 outputs the failure notification frame from the other station to the data transmission unit 105, and the data transmission unit 105 transmits the failure notification frame of the local station to the other station. A failure notification frame from is transmitted.
  • the data arbitration unit 106 outputs the normal frame from the other station to the data transmission unit 105, and the data transmission unit 105 receives the failure notification frame of the local station from the other station.
  • the normal frame is transmitted.
  • the data transmission unit 105 stores the normal frame to be transmitted in the retransmission frame buffer 107 in parallel with the transmission.
  • the transmission arbitration unit 103 confirms whether or not a received frame has been detected. That is, the data arbitration unit 106 confirms whether or not a reception frame is input from the data reception unit 104.
  • the data arbitration unit 106 confirms whether or not the received frame input from the data receiving unit 104 is a failure notification frame. Specifically, the data arbitration unit 106 confirms the header 501 of the received frame and confirms whether or not the received frame is a failure notification frame.
  • the data arbitration unit 106 outputs the failure notification frame from the other station to the data transmission unit 105, and the data transmission unit 105 receives the failure notification frame from the other station as an adjacent station. To the master device 200.
  • the data arbitration unit 106 outputs the normal frame from the other station to the data transmission unit 105, and the data transmission unit 105 sends the normal frame from the other station to the adjacent other station. Send. Further, the data transmission unit 105 stores normal frames from other stations in the retransmission frame buffer 107 in parallel with the transmission.
  • the failure detection unit 101 confirms whether or not to generate a failure notification frame.
  • the failure detection unit 101 If YES in S123, the failure detection unit 101 generates a failure notification frame and outputs it to the transmission arbitration unit 103 in S124.
  • the data arbitration unit 106 receives the failure detection frame from the failure detection unit 101 and outputs the input failure detection frame to the data transmission unit 105.
  • the data transmission unit 105 transmits the failure notification frame generated by the failure detection unit 101 of the local station to the master device 200 via the adjacent station.
  • the normal frame generation unit 102 confirms whether or not to generate a normal frame in S126. If YES, the normal frame generation unit 102 transmits the generated normal frame in S127. Output to the arbitration unit 103.
  • the data arbitration unit 106 inputs the normal frame from the normal frame generation unit 102 and outputs the input normal frame to the data transmission unit 105.
  • the data transmission unit 105 transmits the normal frame generated by the normal frame generation unit 102 of the local station to another station. At this time, the data transmission unit 105 stores the normal frame to be transmitted in the retransmission frame buffer 107 in parallel with the transmission.
  • the failure notification frame is transmitted by overtaking the normal frame. Therefore, the failure notification is not delayed due to the transmission of the normal frame.
  • the master device that has received the failure notification can quickly stop the operation of each station, thereby preventing the influence (malfunction of the device, physical harm to the human body, etc.) due to the malfunction of the device.
  • the data handled by the data transmission unit 105 and the data arbitration unit 106 is not limited to the combination of the normal frame and the failure notification frame, and may be any data. That is, when new data to be transmitted occurs while the data transmission unit 105 is transmitting any data, the data arbitration unit 106 determines whether the data transmission unit 105 transmits the data being transmitted to the new data. When it is determined which is prioritized and new data is prioritized, a data switching instruction for instructing data switching is output to the data transmission unit 105. When the data transmission unit 105 receives a data switching instruction from the data arbitration unit 106 during data transmission, the data transmission unit 105 interrupts transmission of the data being transmitted and starts transmission of new data.
  • CSMA / CD Carrier Sense Multiple Access Collision Detection
  • the communication device including the following means has been described.
  • A means for identifying the type of frame;
  • B means for buffering the frame being transmitted;
  • C Means for interrupting frame transmission and starting transmission of another frame.
  • FIG. 7 is a diagram illustrating an example of hardware resources of the slave device 100 illustrated in the present embodiment.
  • the configuration in FIG. 7 is merely an example of the hardware configuration of the slave device 100, and the hardware configuration of the slave device 100 is not limited to the configuration illustrated in FIG. .
  • the slave device 100 includes a CPU 911 (also referred to as a central processing unit, a central processing unit, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, and a processor) that executes a program.
  • the CPU 911 is connected to, for example, a ROM (Read Only Memory) 913, a RAM (Random Access Memory) 914, a communication board 915, a display device 901, a keyboard 902, a mouse 903, and a magnetic disk device 920 via a bus 912. Control hardware devices.
  • the CPU 911 may be connected to an FDD 904 (Flexible Disk Drive), a compact disk device 905 (CDD), a printer device 906, and a scanner device 907.
  • FDD 904 Flexible Disk Drive
  • CDD compact disk device
  • printer device 906 printer device 907
  • a storage device such as an SSD (Solid State Drive), an optical disk device, or a memory card (registered trademark) read / write device may be used.
  • the RAM 914 is an example of a volatile memory.
  • the storage media of the ROM 913, the FDD 904, the CDD 905, and the magnetic disk device 920 are an example of a nonvolatile memory. These are examples of the storage device.
  • the “retransmission frame buffer 107” described in the present embodiment is realized by the RAM 914, the magnetic disk device 920, and the like.
  • a communication board 915, a keyboard 902, a mouse 903, a scanner device 907, and the like are examples of input devices.
  • the communication board 915, the display device 901, the printer device 906, and the like are examples of output devices.
  • the communication board 915 is connected to a network.
  • the communication board 915 is connected to a LAN (local area network), the Internet, a WAN (wide area network), a SAN (storage area network), and the like.
  • the magnetic disk device 920 stores an operating system 921 (OS), a window system 922, a program group 923, and a file group 924.
  • the programs in the program group 923 are executed by the CPU 911 using the operating system 921 and the window system 922.
  • the RAM 914 temporarily stores at least part of the operating system 921 program and application programs to be executed by the CPU 911.
  • the RAM 914 stores various data necessary for processing by the CPU 911.
  • the ROM 913 stores a BIOS (Basic Input Output System) program
  • the magnetic disk device 920 stores a boot program.
  • BIOS Basic Input Output System
  • the BIOS program in the ROM 913 and the boot program in the magnetic disk device 920 are executed, and the operating system 921 is activated by the BIOS program and the boot program.
  • the program group 923 stores programs that execute the functions described as “ ⁇ units” in the description of the present embodiment.
  • the program is read and executed by the CPU 911.
  • the file group 924 includes “determination of”, “detection of”, “determination of”, “evaluation of”, “determination of”, “selection of”, Information, data, signal values, variable values, encryption keys / decryption keys, random values and parameters indicating the results of the processing described as “input of”, “output of”, etc. It is stored as each item of “Database”.
  • the “ ⁇ file” and “ ⁇ database” are stored in a storage medium such as a disk or memory.
  • Information, data, signal values, variable values, and parameters stored in a storage medium such as a disk or memory are read out to the main memory or cache memory by the CPU 911 via a read / write circuit.
  • the read information, data, signal value, variable value, and parameter are used for CPU operations such as extraction, search, reference, comparison, calculation, calculation, processing, editing, output, printing, and display.
  • Information, data, signal values, variable values, and parameters are stored in the main memory, registers, cache memory, and buffers during the CPU operations of extraction, search, reference, comparison, calculation, processing, editing, output, printing, and display. It is temporarily stored in a memory or the like.
  • the arrows in the flowchart described in this embodiment mainly indicate input / output of data and signals.
  • Data and signal values are recorded in a storage medium such as a memory of the RAM 914, a flexible disk of the FDD 904, a compact disk of the CDD 905, a magnetic disk of the magnetic disk device 920, other optical disks, mini disks, and DVDs.
  • Data and signals are transmitted online via a bus 912, signal lines, cables, or other transmission media.
  • Firmware and software are stored as programs in a storage medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, and a DVD.
  • the program is read by the CPU 911 and executed by the CPU 911.
  • the program causes the computer to function as “to part” and “to means” in the present embodiment.
  • the procedures and methods of “ ⁇ unit” and “ ⁇ means” of the present embodiment are executed by a computer.
  • the slave device 100 described in this embodiment includes a CPU that is a processing device, a memory that is a storage device, a magnetic disk, a keyboard that is an input device, a mouse, a communication board, and a display device that is an output device, a communication board, and the like.
  • a CPU that is a processing device
  • a memory that is a storage device
  • a magnetic disk that is a storage device
  • a keyboard that is an input device
  • a mouse a communication board
  • a display device that is an output device, a communication board, and the like.
  • Computer As described above, the functions indicated as “ ⁇ unit” and “ ⁇ means” are realized by using these processing devices, storage devices, input devices, and output devices.
  • 100 slave device 101 failure detection unit, 102 normal frame generation unit, 103 transmission arbitration unit, 104 data reception unit, 105 data transmission unit, 106 data arbitration unit, 107 retransmission frame buffer, 200 master device, 300 switch.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

If new data to be transmitted occurs while a data transmitting unit (105) is transmitting data, a data arbitrating unit (106) determines whether priority is given to the data being transmitted by the data transmitting unit (105) or to the new data. If the priority is given to the new data, the data arbitration unit (106) outputs, to the data transmitting unit, a data change instruction that instructs a data change. When having received the data change instruction from the data arbitration unit (106) during the data transmission, the data transmitting unit (105) suspends the transmission of the data being transmitted and starts the transmission of the new data.

Description

通信装置及び通信方法及びプログラムCOMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
 本発明は、データの送信技術に関する。 The present invention relates to a data transmission technique.
 例えば、マスタ装置とスレーブ装置が含まれるネットワークでは、スレーブ装置がネットワーク内の障害の発生を検知した場合に、スレーブ装置はマスタ装置に障害の発生を通知する。
 従来の障害通知方式では、スレーブ装置は、ネットワーク全体に障害通知フレームをブロードキャストすることによって、マスタ装置に障害を通知している(例えば、特許文献1)。
For example, in a network including a master device and a slave device, when the slave device detects the occurrence of a failure in the network, the slave device notifies the master device of the occurrence of the failure.
In the conventional failure notification method, the slave device notifies the master device of the failure by broadcasting a failure notification frame to the entire network (for example, Patent Document 1).
特開2003-289325号公報JP 2003-289325 A
 従来の障害通知方式は、障害通知フレームの送信開始時に他の通信が行われていると、他の通信が完了するまで、障害通知フレームの送信が待たされることになり、この結果、障害発生の通知が遅れてしまう。
 つまり、あるデータの送信中に、障害通知フレームのような、重要なデータが新たに発生した場合に、従来の方式では、重要なデータであっても、送信中のデータの送信が完了するまで送信が待たされるため、重要なデータの送信が遅延してしまうという課題がある。
In the conventional failure notification method, if other communication is performed at the start of transmission of the failure notification frame, the transmission of the failure notification frame is waited until the other communication is completed. Notification is delayed.
In other words, when important data such as a failure notification frame is newly generated during transmission of certain data, until the transmission of the data being transmitted is completed in the conventional method, even if it is important data Since transmission is awaited, there is a problem that transmission of important data is delayed.
 この発明は、上記のような課題を解決することを主な目的としており、データ送信中であっても、新たなデータを優先して送信できる構成を実現することを主な目的とする。 This invention is mainly intended to solve the above-described problems, and it is a main object to realize a configuration in which new data can be preferentially transmitted even during data transmission.
 本発明に係る通信装置は、
 データを送信するデータ送信部と、
 前記データ送信部がデータを送信中に、送信の対象となる新たなデータが発生した場合に、前記データ送信部が送信中のデータと前記新たなデータとのいずれを優先するかを決定し、前記新たなデータを優先する場合に、データの切替を指示するデータ切替指示を前記データ送信部に出力するデータ調停部とを有し、
 前記データ送信部は、
 データの送信中に前記データ調停部からデータ切替指示を入力した場合に、送信中のデータの送信を中断し、前記新たなデータの送信を開始することを特徴とする。
The communication device according to the present invention is
A data transmission unit for transmitting data;
When new data to be transmitted occurs while the data transmission unit is transmitting data, the data transmission unit determines which of the data being transmitted and the new data has priority, A data arbitration unit that outputs a data switching instruction to instruct data switching to the data transmission unit when giving priority to the new data;
The data transmitter is
When a data switching instruction is input from the data arbitration unit during data transmission, transmission of the data being transmitted is interrupted and transmission of the new data is started.
 本発明では、データ調停部が、データ送信部が送信中のデータと新たなデータとのいずれを優先するかを決定し、新たなデータを優先する場合に、データ送信部は、送信中のデータの送信を中断し、新たなデータの送信を開始する。
 このため、重要なデータを先に送信することができ、重要なデータの送信が遅延してしまうという事態を回避することができる。
In the present invention, when the data arbitration unit determines which of the data being transmitted and the new data is prioritized by the data transmitting unit, and when giving priority to the new data, the data transmitting unit Is interrupted and transmission of new data is started.
For this reason, important data can be transmitted first, and a situation in which transmission of important data is delayed can be avoided.
実施の形態1に係る通信システムの構成例を示す図。1 is a diagram illustrating a configuration example of a communication system according to Embodiment 1. FIG. 実施の形態1に係るスレーブ装置の構成例を示す図。FIG. 3 illustrates a configuration example of a slave device according to the first embodiment. 実施の形態1に係る通信フレームの例を示す図。FIG. 3 shows an example of a communication frame according to the first embodiment. 実施の形態1に係るスレーブ装置の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example of the slave device according to the first embodiment. 実施の形態1に係るスレーブ装置の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example of the slave device according to the first embodiment. 実施の形態1に係るスレーブ装置の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example of the slave device according to the first embodiment. 実施の形態1に係るスレーブ装置のハードウェア構成例を示す図。FIG. 3 is a diagram illustrating a hardware configuration example of a slave device according to the first embodiment.
 実施の形態1.
 本実施の形態では、トークンパッシングが行われる、ツリートポロジーのネットワークを例にして説明を進める。
Embodiment 1 FIG.
In the present embodiment, description will be given by taking a tree topology network in which token passing is performed as an example.
 図1は、実施の形態1に係るツリートポロジーのネットワークの例を示す。
 本実施の形態では、1つのマスタ装置200と複数のスレーブ装置100がスイッチ300を介して接続されている。
 また、マスタ装置200及びスレーブ装置100を総称して、局又はノードという。
 スレーブ装置100とマスタ装置200とスイッチ300は、フレームを受信した場合、受信ポートではないすべてのポートに受信フレームを中継する。これにより、隣接していないノード間でも通信することができる。
 なお、スレーブ装置100は、通信装置の例に相当する。
FIG. 1 illustrates an example of a tree topology network according to the first embodiment.
In the present embodiment, one master device 200 and a plurality of slave devices 100 are connected via a switch 300.
The master device 200 and the slave device 100 are collectively referred to as a station or a node.
When receiving the frame, the slave device 100, the master device 200, and the switch 300 relay the received frame to all ports that are not reception ports. Thereby, it is possible to communicate even between nodes that are not adjacent to each other.
Note that the slave device 100 corresponds to an example of a communication device.
 マスタ装置200と複数のスレーブ装置100では、トークンを巡回させる順序が予め決められており、マスタ装置200と複数のスレーブ装置100の間で巡回順序に従ってトークンが巡回する。
 ノードは、トークンを取得することにより送信権を取得する。
 トークンを取得したマスタ装置200は、図1のツリートポロジーのマスタとして、スレーブ装置100に対して、情報収集の要求、データの配信等を行う。
 トークンを取得したスレーブ装置100は、マスタ装置200からの情報収集要求に対して要求されたデータをマスタ装置200に応答する。
 また、スレーブ装置100は、マスタ装置200から配信されたデータに基づいた動作等を行う。
 また、ネットワーク内に障害が発生した時、トークンの有無に関わらず、各スレーブ装置100はマスタ装置200に障害を通知する。
In the master device 200 and the plurality of slave devices 100, the order in which the tokens are circulated is determined in advance, and the tokens circulate between the master device 200 and the plurality of slave devices 100 according to the circulation order.
The node acquires the transmission right by acquiring the token.
The master device 200 that has acquired the token makes a request for information collection, data distribution, and the like to the slave device 100 as a master of the tree topology of FIG.
The slave device 100 that has acquired the token responds to the master device 200 with the requested data in response to the information collection request from the master device 200.
Further, the slave device 100 performs an operation based on the data distributed from the master device 200.
When a failure occurs in the network, each slave device 100 notifies the master device 200 of the failure regardless of the presence or absence of a token.
 図2は、本実施の形態に係るスレーブ装置100の構成例を示す。
 なお、図1に示す複数のスレーブ装置100は、それぞれ、図2に示す構成を有するものとする。
FIG. 2 shows a configuration example of the slave device 100 according to the present embodiment.
Note that the plurality of slave devices 100 shown in FIG. 1 each have the configuration shown in FIG.
 図2において、障害検出部101は、例えば、自局、自局と隣接するマスタ装置200やスレーブ装置100、自局と隣接するマスタ装置200やスレーブ装置100と自局との間の通信回線を障害検知対象物とし、障害検知対象物で障害が発生したことを検知した際に、障害の発生を通知する障害通知フレームを生成する。
 通常フレーム生成部102は、自局から送信する障害通知フレーム以外の、通常の動作に関連する通常フレームを生成する。
 通常フレームは、例えば、マスタ装置200からの情報収集要求に対する応答を行うためのフレームである。
 なお、障害検出部101及び通常フレーム生成部102は、データ生成部の例に相当する。
In FIG. 2, the failure detection unit 101 includes, for example, the own station, the master device 200 and the slave device 100 adjacent to the own station, and the communication line between the master device 200 and the slave device 100 adjacent to the own station and the own station. A failure notification frame for notifying the occurrence of a failure is generated when a failure detection target is detected and a failure has occurred in the failure detection target.
The normal frame generation unit 102 generates a normal frame related to normal operation other than the failure notification frame transmitted from the own station.
The normal frame is a frame for making a response to an information collection request from the master device 200, for example.
The failure detection unit 101 and the normal frame generation unit 102 correspond to an example of a data generation unit.
 送信調停部103は、データ受信部104、データ送信部105及びデータ調停部106から構成される。 The transmission arbitration unit 103 includes a data reception unit 104, a data transmission unit 105, and a data arbitration unit 106.
 データ受信部104は、隣接する他局(マスタ装置200、スレーブ装置100のどちらであってもよい)からの受信フレームを入力する。
 データ受信部104は、通常フレームを受信する場合もあれば、障害通知フレームを受信する場合もある。
The data receiving unit 104 inputs a reception frame from an adjacent other station (which may be either the master device 200 or the slave device 100).
The data receiving unit 104 may receive a normal frame or a failure notification frame.
 データ送信部105は、入力側とは反対側に隣接する他局(マスタ装置200、スレーブ装置100のどちらであってもよい)にフレームを送信する。
 データ送信部105は、通常フレームを送信する場合もあれば、障害通知フレームを送信する場合もある。
 また、データ送信部105は、通常フレームを送信する場合には、送信と並行して、送信する通常フレームを後述の再送フレームバッファ107に格納する。
The data transmission unit 105 transmits a frame to another station (which may be either the master device 200 or the slave device 100) adjacent to the side opposite to the input side.
The data transmission unit 105 may transmit a normal frame or a failure notification frame.
Further, when transmitting a normal frame, the data transmission unit 105 stores the normal frame to be transmitted in a retransmission frame buffer 107 described later in parallel with the transmission.
 データ調停部106は、データ受信部104が受信した受信フレーム(通常フレーム、障害通知フレーム)を入力し、障害検出部101が生成した障害通知フレームを入力し、通常フレーム生成部102が生成した通常フレームを入力し、入力した通常フレーム、障害通知フレームをデータ送信部105に出力する。
 そして、データ調停部106は、データ送信部105が通常フレームを送信している間に新たに障害通知フレームが発生した場合(データ受信部104から新たに障害通知フレームを入力した場合、障害検出部101から新たに障害通知フレームを入力した場合の双方)に、障害通知フレームを通常フレームに優先して他局に送信するようデータ送信部105に指示する。
 より具体的には、データ調停部106は、通常フレームから障害通知フレームに切り替えて送信するよう指示するデータ切替指示を、データ送信部105に出力する。
The data arbitration unit 106 receives the reception frame (normal frame, failure notification frame) received by the data reception unit 104, receives the failure notification frame generated by the failure detection unit 101, and the normal frame generated by the normal frame generation unit 102 The frame is input, and the input normal frame and failure notification frame are output to the data transmission unit 105.
Then, when a new failure notification frame occurs while the data transmission unit 105 is transmitting a normal frame (when a new failure notification frame is input from the data reception unit 104, the data arbitration unit 106 The data transmission unit 105 is instructed to transmit the failure notification frame to another station in preference to the normal frame in both cases when a failure notification frame is newly input from 101.
More specifically, the data arbitration unit 106 outputs, to the data transmission unit 105, a data switching instruction that instructs to switch from a normal frame to a failure notification frame for transmission.
 再送フレームバッファ107は、データ送信部105が送信する通常フレームをバッファリングする。
 再送フレームバッファ107は、バッファ部の例に相当する。
The retransmission frame buffer 107 buffers the normal frame transmitted by the data transmission unit 105.
The retransmission frame buffer 107 corresponds to an example of a buffer unit.
 図3は、本実施の形態に係るツリートポロジーの中で通信される通常フレームや障害通知フレームとして用いられる通信フレーム500のデータ構成の例を示す。 FIG. 3 shows an example of the data structure of a communication frame 500 used as a normal frame or a failure notification frame communicated in the tree topology according to the present embodiment.
 図3に示すように、通信フレーム500の中にヘッダ501が設けられている。
 ヘッダ501は、障害通知フレームと通常フレームを識別するための、通信フレーム500内のデータ領域である。
 データ送信部105とデータ調停部106は、このヘッダ501の内容を確認することで、障害通知フレームと通常フレームを識別することができる。
 なお、以下では、通信フレーム500を、単にフレームともいう。
As shown in FIG. 3, a header 501 is provided in the communication frame 500.
The header 501 is a data area in the communication frame 500 for identifying a failure notification frame and a normal frame.
The data transmission unit 105 and the data arbitration unit 106 can identify the failure notification frame and the normal frame by confirming the contents of the header 501.
Hereinafter, the communication frame 500 is also simply referred to as a frame.
 次に、本実施の形態に係るスレーブ装置100の動作例について説明する。
 最初に、本実施の形態に係るスレーブ装置100の動作の概要を説明し、その後、フローチャートを参照して、本実施の形態に係るスレーブ装置100の動作の詳細を説明する。
 なお、以下では、説明の簡明化のため、トークンの送受信については記述を省略する。
Next, an operation example of the slave device 100 according to the present embodiment will be described.
First, an outline of the operation of the slave device 100 according to the present embodiment will be described, and then details of the operation of the slave device 100 according to the present embodiment will be described with reference to a flowchart.
In the following, description of token transmission / reception is omitted for the sake of simplicity.
 ここでは、障害検出部101が、障害検知対象物で障害が発生したことを検出した場合を想定する。
 そして、検出される障害は、例えば、自局内の障害(メモリ内のデータエラー等)、隣接するマスタ装置200やスレーブ装置100との間におけるネットワークの障害(ケーブル切断、到達すべきフレームの未達等)である。
Here, it is assumed that the failure detection unit 101 detects that a failure has occurred in the failure detection object.
The detected failure includes, for example, a failure in the own station (such as a data error in the memory), a network failure between the adjacent master device 200 and the slave device 100 (cable disconnection, unreachable frame to be reached) Etc.).
 障害検出部101は、障害通知フレームを生成し、送信調停部103に出力する。
 また、通常フレーム生成部102は、自局から送信する通常フレームを生成し、送信調停部103に出力する。
 送信調停部103では、データ調停部106が、障害検出部101からの障害通知フレームを入力し、通常フレーム生成部102からの通常フレームを入力する。
The failure detection unit 101 generates a failure notification frame and outputs it to the transmission arbitration unit 103.
In addition, the normal frame generation unit 102 generates a normal frame to be transmitted from the own station and outputs the normal frame to the transmission arbitration unit 103.
In the transmission arbitration unit 103, the data arbitration unit 106 receives the failure notification frame from the failure detection unit 101 and the normal frame from the normal frame generation unit 102.
 送信調停部103内のデータ受信部104は、他局からのフレーム(障害通知フレームと通常フレームが混在)を受信し、受信した受信フレームをデータ調停部106に出力する。
 データ調停部106及びデータ送信部105は、入力したフレームをヘッダ501の違いにより、障害通知フレームと通常フレームに分別することができる。
 そして、データ調停部106及びデータ送信部105は、障害通知フレームを優先して送信する。
 また、データ送信部105は、通常フレームを送信する際には、送信と並行して、送信する通常フレームを再送フレームバッファ107に格納する。
 ここで、データ送信部105が通常フレームを他局に送信中に、データ調停部106が障害検出部101又はデータ受信部104から障害通知フレームを入力した場合に、データ調停部106は、データ送信部105に、通常フレームの送信を中断させ、障害通知フレームの送信を開始させる。
 そして、データ送信部105は、障害通知フレームの送信が完了したら、再送フレームバッファ107より送信を中断した通常フレームを読み出し、通常フレームの送信を再開する。
The data reception unit 104 in the transmission arbitration unit 103 receives a frame (a failure notification frame and a normal frame are mixed) from another station, and outputs the received frame to the data arbitration unit 106.
The data arbitration unit 106 and the data transmission unit 105 can classify the input frame into a failure notification frame and a normal frame based on the difference in the header 501.
Then, the data arbitration unit 106 and the data transmission unit 105 transmit the failure notification frame with priority.
Further, when transmitting a normal frame, the data transmission unit 105 stores the normal frame to be transmitted in the retransmission frame buffer 107 in parallel with the transmission.
Here, if the data arbitration unit 106 receives a failure notification frame from the failure detection unit 101 or the data reception unit 104 while the data transmission unit 105 is transmitting a normal frame to another station, the data arbitration unit 106 The unit 105 causes the transmission of the normal frame to be interrupted and starts the transmission of the failure notification frame.
Then, when the transmission of the failure notification frame is completed, the data transmission unit 105 reads the normal frame whose transmission is interrupted from the retransmission frame buffer 107, and resumes the transmission of the normal frame.
 図4、図5、図6は、本実施の形態に係るスレーブ装置100の動作例を示すフローチャートである。
 以下、フローチャートに従って、本実施の形態に係るスレーブ装置100の動作を説明する。
4, 5, and 6 are flowcharts illustrating an operation example of the slave device 100 according to the present embodiment.
The operation of slave device 100 according to the present embodiment will be described below according to the flowchart.
 まず、S101において、データ調停部106が、データ送信部105がフレームを送信中か否かを確認する。
 例えば、スレーブ装置100内の所定のメモリに、データ送信部105がフレームを送信中か否かを表すフラグ(以下、送信中フラグという)を設けておき、データ送信部105が、フレームの送信を開始したときに送信中フラグをONにし、フレームの送信を終了したときに送信中フラグをOFFにする。
 そして、データ調停部106は、送信中フラグを参照してデータ送信部105がフレームを送信中か否かを判断する。
First, in S101, the data arbitration unit 106 confirms whether or not the data transmission unit 105 is transmitting a frame.
For example, a flag indicating whether or not the data transmission unit 105 is transmitting a frame (hereinafter referred to as a transmission flag) is provided in a predetermined memory in the slave device 100, and the data transmission unit 105 transmits a frame. The transmission flag is set to ON when it starts, and the transmission flag is set to OFF when frame transmission is completed.
Then, the data arbitration unit 106 refers to the transmission flag and determines whether the data transmission unit 105 is transmitting a frame.
 S101にてYESの場合、S102において、データ調停部106が、データ送信部105が送信中のフレームは受信フレーム(他局からの障害通知フレームまたは他局からの通常フレーム)か否かを確認する。
 例えば、前述のフレーム送信中フラグとともに、データ送信部105が送信中のフレームが受信フレームであるか否かを表すフラグ(以下、受信フレームフラグという)を設けておき、データ送信部105が、送信中のフレームが受信フレームである場合は受信フレームフラグをONにし、送信中のフレームが受信フレームでない場合は受信フレームフラグをOFFにする。
 そして、データ調停部106は、受信フレームフラグを参照してデータ送信部105が送信中のフレームが受信フレームであるか否かを判断する。
 なお、データ送信部105は、フレームのヘッダ501内の送信元アドレスを参照することで、フレームの送信元が他局であるか自局であるかを判断することができる。
If YES in S101, in S102, the data arbitration unit 106 checks whether the frame being transmitted by the data transmission unit 105 is a received frame (a failure notification frame from another station or a normal frame from another station). .
For example, in addition to the above-described frame transmission flag, a flag (hereinafter referred to as a reception frame flag) indicating whether or not the frame being transmitted by the data transmission unit 105 is a reception frame is provided. If the middle frame is a received frame, the received frame flag is turned on. If the frame being transmitted is not a received frame, the received frame flag is turned off.
Then, the data arbitration unit 106 refers to the reception frame flag to determine whether or not the frame being transmitted by the data transmission unit 105 is a reception frame.
The data transmission unit 105 can determine whether the transmission source of the frame is another station or the own station by referring to the transmission source address in the header 501 of the frame.
 S102にてYESの場合、S103において、障害検出部101は、障害通知フレームを生成するか否かを確認する。 If YES in S102, in S103, the failure detection unit 101 confirms whether or not to generate a failure notification frame.
 S103にてYESの場合、S104において、障害検出部101は、障害通知フレームを生成し、送信調停部103に出力する。
 送信調停部103では、データ調停部106が障害通知フレームを入力する。
In the case of YES in S <b> 103, in S <b> 104, the failure detection unit 101 generates a failure notification frame and outputs it to the transmission arbitration unit 103.
In the transmission arbitration unit 103, the data arbitration unit 106 inputs a failure notification frame.
 つぎにS105において、データ調停部106が、送信中のフレームは受信フレームであって通常フレームか否かを確認する。
 例えば、前述のフレーム送信中フラグ及び受信フレームフラグとともに、データ送信部105が送信中のフレームが通常フレームであるか否かを表すフラグ(以下、フレーム種別フラグという)を設けておき、データ送信部105が、送信中のフレームが通常フレームである場合はフレーム種別フラグをONにし、送信中のフレームが障害通知フレームである場合はフレーム種別フラグをOFFにする。
 そして、データ調停部106は、フレーム種別フラグを参照してデータ送信部105が送信中の受信フレームが通常フレームであるか否かを判断する。
 なお、データ送信部105は、前述したように、フレームのヘッダ501を参照することで、フレームが通常フレームか障害通知フレームかを判別することができる。
Next, in S105, the data arbitration unit 106 confirms whether the frame being transmitted is a received frame and is a normal frame.
For example, in addition to the above-described frame transmission flag and reception frame flag, a flag (hereinafter referred to as a frame type flag) indicating whether the frame being transmitted by the data transmission unit 105 is a normal frame is provided, and the data transmission unit 105, the frame type flag is turned on when the frame being transmitted is a normal frame, and the frame type flag is turned off when the frame being transmitted is a failure notification frame.
Then, the data arbitration unit 106 refers to the frame type flag to determine whether or not the received frame being transmitted by the data transmission unit 105 is a normal frame.
As described above, the data transmission unit 105 can determine whether the frame is a normal frame or a failure notification frame by referring to the frame header 501.
 S105にてYESの場合、S106において、データ調停部106は障害通知フレームの送信を優先することを決定し、データ調停部106は、データ送信部105にデータ切替指示と障害通知フレームとを出力する。
 すなわち、データ調停部106は、受信フレームであって通常フレームの送信を中断し、自局の障害検出部101が生成した障害通知フレームを他局経由でマスタ装置200へ送信するようデータ送信部105に指示する。
 そして、データ送信部105は、送信中の通常フレームの送信を中断し、自局の障害検出部101が生成した障害通知フレームの送信を開始する(S106)。
 なお、データ送信部105は、送信中の通常フレームの送信を中断するものの、当該通常フレームの再送フレームバッファ107への格納は継続し、通常フレームの再送フレームバッファ107への格納と障害通知フレームの送信を並行して行う。
 その後、障害通知フレームの送信の完了後、データ送信部105が、再送フレームバッファ107から、送信が中断された通常フレームを読み出し、読み出した通常フレームを隣接する他局へ送信する(S106)。
If YES in S105, in S106, the data arbitration unit 106 determines to prioritize transmission of the failure notification frame, and the data arbitration unit 106 outputs a data switching instruction and a failure notification frame to the data transmission unit 105. .
That is, the data arbitration unit 106 interrupts transmission of a normal frame that is a received frame, and transmits the failure notification frame generated by the failure detection unit 101 of the local station to the master device 200 via another station. To instruct.
Then, the data transmission unit 105 interrupts transmission of the normal frame being transmitted, and starts transmitting the failure notification frame generated by the failure detection unit 101 of the local station (S106).
The data transmission unit 105 interrupts transmission of the normal frame being transmitted, but continues to store the normal frame in the retransmission frame buffer 107, and stores the normal frame in the retransmission frame buffer 107 and the failure notification frame. Send in parallel.
Thereafter, after the transmission of the failure notification frame is completed, the data transmission unit 105 reads the normal frame whose transmission is interrupted from the retransmission frame buffer 107 and transmits the read normal frame to another adjacent station (S106).
 なお、図4、図5、図6では、自局の障害検出部101が生成した障害通知フレームを障害通知フレーム(発信)と表記し、自局の通常フレーム生成部102が生成した通常フレームを通常フレーム(発信)と表記し、他局から受信した障害通知フレームを障害通知フレーム(受信)と表記し、他局から受信した通常フレームを通常フレーム(受信)と表記する。 4, 5, and 6, the failure notification frame generated by the failure detection unit 101 of the local station is referred to as a failure notification frame (transmission), and the normal frame generated by the normal frame generation unit 102 of the local station is represented. The normal frame (transmission) is denoted, the failure notification frame received from another station is denoted as a failure notification frame (reception), and the normal frame received from another station is denoted as a normal frame (reception).
 S105にてNOの場合、データ送信部105が送信中の受信フレームは障害通知フレームであるため、S107において、データ調停部106は、障害検出部101から入力した障害検知フレームをデータ送信部105に出力し、データ送信部105は、他局から受信した障害通知フレームを送信後、自局の障害検出部101が生成した障害通知フレームを隣接する他局経由でマスタ装置200へ送信する。 If NO in S105, the received frame being transmitted by the data transmission unit 105 is a failure notification frame. Therefore, in S107, the data arbitration unit 106 sends the failure detection frame input from the failure detection unit 101 to the data transmission unit 105. The data transmission unit 105 outputs the failure notification frame received from the other station, and then transmits the failure notification frame generated by the failure detection unit 101 of the local station to the master device 200 via the adjacent other station.
 S103にてNOの場合は、S108において、通常フレーム生成部102が、通常フレームを生成するか否か確認し、YESの場合は、S109において、通常フレーム生成部102は、生成した通常フレームを送信調停部103に出力する。 If NO in S103, the normal frame generation unit 102 confirms whether or not to generate a normal frame in S108. If YES, the normal frame generation unit 102 transmits the generated normal frame in S109. Output to the arbitration unit 103.
 データ調停部106は、通常フレーム生成部102からの通常フレームを入力するとともに、入力した通常フレームをデータ送信部105に出力する。
 データ送信部105は、受信フレーム(他局からの障害通知フレームまたは他局からの通常フレーム)の送信を完了した後に、自局の通常フレーム生成部102が生成した通常フレームを送信する(S110)。
The data arbitration unit 106 inputs the normal frame from the normal frame generation unit 102 and outputs the input normal frame to the data transmission unit 105.
The data transmission unit 105 transmits the normal frame generated by the normal frame generation unit 102 of the local station after completing the transmission of the received frame (failure notification frame from the other station or normal frame from the other station) (S110). .
 また、S102にてNOの場合、S111において、送信調停部103は、受信フレームを検出したか否かを確認する。
 つまり、データ調停部106が、データ受信部104から受信フレームを入力したか否かを確認する。
In the case of NO in S102, in S111, the transmission arbitration unit 103 confirms whether or not a received frame has been detected.
That is, the data arbitration unit 106 confirms whether or not a reception frame is input from the data reception unit 104.
 S111でYESの場合、S112において、データ調停部106は、データ送信部105が送信中のフレームが通常フレームか否かを確認する。
 データ調停部106は、例えば、前述のフレーム種別フラグを参照してデータ送信部105が送信中のフレームが通常フレームであるか否かを判断する。
In the case of YES in S111, in S112, the data arbitration unit 106 checks whether or not the frame being transmitted by the data transmission unit 105 is a normal frame.
For example, the data arbitration unit 106 refers to the above-described frame type flag to determine whether or not the frame being transmitted by the data transmission unit 105 is a normal frame.
 S112でYESの場合、S113において、データ調停部106は、データ受信部104から入力した受信フレームが障害通知フレームか否かを確認する。
 具体的には、データ調停部106は、受信フレームのヘッダ501を確認して、受信フレームが障害通知フレームか否かを確認する。
In the case of YES in S112, in S113, the data arbitration unit 106 checks whether the received frame input from the data receiving unit 104 is a failure notification frame.
Specifically, the data arbitration unit 106 confirms the header 501 of the received frame and confirms whether or not the received frame is a failure notification frame.
 S113でYESの場合は、データ調停部106は障害通知フレームの送信を優先することを決定し、S114において、データ調停部106は、データ送信部105にデータ切替指示と、他局からの障害通知フレームとを出力する。
 すなわち、データ調停部106は、自局の通常フレーム生成部102が生成した通常フレームの送信を中断し、他局からの障害通知フレームを他局経由でマスタ装置200へ送信するようデータ送信部105に指示する。
 そして、データ送信部105は、送信中の通常フレームの送信を中断し、他局からの障害通知フレームの送信を開始する(S114)。
 なお、データ送信部105は、送信中の通常フレームの送信を中断するものの、当該通常フレームの再送フレームバッファ107への格納は継続し、通常フレームの再送フレームバッファ107への格納と障害通知フレームの送信を並行して行う。
 その後、障害通知フレームの送信の完了後、データ送信部105が、再送フレームバッファ107から、送信が中断された通常フレームを読み出し、読み出した通常フレームを隣接する他局へ送信する(S106)。
If YES in S113, the data arbitration unit 106 determines to give priority to the transmission of the failure notification frame. In S114, the data arbitration unit 106 instructs the data transmission unit 105 to perform a data switching instruction and a failure notification from another station. Frame and output.
That is, the data arbitration unit 106 interrupts transmission of the normal frame generated by the normal frame generation unit 102 of the local station, and transmits the failure notification frame from the other station to the master device 200 via the other station. To instruct.
Then, the data transmission unit 105 interrupts transmission of the normal frame being transmitted and starts transmission of a failure notification frame from another station (S114).
The data transmission unit 105 interrupts transmission of the normal frame being transmitted, but continues to store the normal frame in the retransmission frame buffer 107, and stores the normal frame in the retransmission frame buffer 107 and the failure notification frame. Send in parallel.
Thereafter, after the transmission of the failure notification frame is completed, the data transmission unit 105 reads the normal frame whose transmission is interrupted from the retransmission frame buffer 107 and transmits the read normal frame to another adjacent station (S106).
 S113にてNOの場合は、S115において、データ調停部106は、他局からの通常フレームをデータ送信部105に出力し、データ送信部105は、自局の通常フレーム生成部102が生成した通常フレームの送信後に受信フレーム(他局からの通常フレーム)を送信する。
 このとき、データ送信部105は、送信と並行して、送信する通常フレームを再送フレームバッファ107に格納しておく。
In the case of NO in S113, in S115, the data arbitration unit 106 outputs the normal frame from the other station to the data transmission unit 105, and the data transmission unit 105 generates the normal frame generated by the normal frame generation unit 102 of its own station. After the frame is transmitted, a received frame (a normal frame from another station) is transmitted.
At this time, the data transmission unit 105 stores the normal frame to be transmitted in the retransmission frame buffer 107 in parallel with the transmission.
 S112にてNOの場合、S116において、データ調停部106は、データ受信部104から入力した受信フレームが障害通知フレームか否かを確認する。
 具体的には、データ調停部106は、受信フレームのヘッダ501を確認して、受信フレームが障害通知フレームか否かを確認する。
In the case of NO in S112, in S116, the data arbitration unit 106 checks whether the received frame input from the data receiving unit 104 is a failure notification frame.
Specifically, the data arbitration unit 106 confirms the header 501 of the received frame and confirms whether or not the received frame is a failure notification frame.
 S116にてYESの場合は、S117において、データ調停部106は、他局からの障害通知フレームをデータ送信部105に出力し、データ送信部105は、自局の障害通知フレームの送信後に他局からの障害通知フレームを送信する。 If YES in S116, in S117, the data arbitration unit 106 outputs the failure notification frame from the other station to the data transmission unit 105, and the data transmission unit 105 transmits the failure notification frame of the local station to the other station. A failure notification frame from is transmitted.
 S116にてNOの場合は、S118において、データ調停部106は、他局からの通常フレームをデータ送信部105に出力し、データ送信部105は、自局の障害通知フレームの送信後に他局からの通常フレームを送信する。
 このとき、データ送信部105は、送信と並行して、送信する通常フレームを再送フレームバッファ107に格納しておく。
In the case of NO in S116, in S118, the data arbitration unit 106 outputs the normal frame from the other station to the data transmission unit 105, and the data transmission unit 105 receives the failure notification frame of the local station from the other station. The normal frame is transmitted.
At this time, the data transmission unit 105 stores the normal frame to be transmitted in the retransmission frame buffer 107 in parallel with the transmission.
 S101にてNOの場合、S119において、送信調停部103は、受信フレームを検出したか否かを確認する。
 つまり、データ調停部106が、データ受信部104から受信フレームを入力したか否かを確認する。
In the case of NO in S101, in S119, the transmission arbitration unit 103 confirms whether or not a received frame has been detected.
That is, the data arbitration unit 106 confirms whether or not a reception frame is input from the data reception unit 104.
 S119にてYESの場合、S120において、データ調停部106は、データ受信部104から入力した受信フレームが障害通知フレームか否かを確認する。
 具体的には、データ調停部106は、受信フレームのヘッダ501を確認して、受信フレームが障害通知フレームか否かを確認する。
In the case where S119 is YES, in S120, the data arbitration unit 106 confirms whether or not the received frame input from the data receiving unit 104 is a failure notification frame.
Specifically, the data arbitration unit 106 confirms the header 501 of the received frame and confirms whether or not the received frame is a failure notification frame.
 S120にてYESの場合は、S121において、データ調停部106は、他局からの障害通知フレームをデータ送信部105に出力し、データ送信部105は、他局からの障害通知フレームを隣接する局経由でマスタ装置200に送信する。 In the case of YES in S120, in S121, the data arbitration unit 106 outputs the failure notification frame from the other station to the data transmission unit 105, and the data transmission unit 105 receives the failure notification frame from the other station as an adjacent station. To the master device 200.
 S120にてNOの場合は、S122において、データ調停部106は、他局からの通常フレームをデータ送信部105に出力し、データ送信部105は、他局からの通常フレームを隣接する他局に送信する。
 また、データ送信部105は、送信と並行して、他局からの通常フレームを再送フレームバッファ107に格納する。
In the case of NO in S120, in S122, the data arbitration unit 106 outputs the normal frame from the other station to the data transmission unit 105, and the data transmission unit 105 sends the normal frame from the other station to the adjacent other station. Send.
Further, the data transmission unit 105 stores normal frames from other stations in the retransmission frame buffer 107 in parallel with the transmission.
 S119にてNOの場合、S123において、障害検出部101は、障害通知フレームを生成するか否かを確認する。 If NO in S119, in S123, the failure detection unit 101 confirms whether or not to generate a failure notification frame.
 S123にてYESの場合、S124において、障害検出部101は、障害通知フレームを生成し、送信調停部103に出力する。 If YES in S123, the failure detection unit 101 generates a failure notification frame and outputs it to the transmission arbitration unit 103 in S124.
 データ調停部106は、障害検出部101からの障害検知フレームを入力するとともに、入力した障害検知フレームをデータ送信部105に出力する。
 データ送信部105は、S125において、自局の障害検出部101が生成した障害通知フレームを隣接する局経由でマスタ装置200に送信する。
The data arbitration unit 106 receives the failure detection frame from the failure detection unit 101 and outputs the input failure detection frame to the data transmission unit 105.
In S125, the data transmission unit 105 transmits the failure notification frame generated by the failure detection unit 101 of the local station to the master device 200 via the adjacent station.
 S123にてNOであれば、S126において、通常フレーム生成部102が、通常フレームを生成するか否か確認し、YESの場合は、S127において、通常フレーム生成部102は、生成した通常フレームを送信調停部103に出力する。 If NO in S123, the normal frame generation unit 102 confirms whether or not to generate a normal frame in S126. If YES, the normal frame generation unit 102 transmits the generated normal frame in S127. Output to the arbitration unit 103.
 データ調停部106は、通常フレーム生成部102からの通常フレームを入力するとともに、入力した通常フレームをデータ送信部105に出力する。
 データ送信部105は、S128において、自局の通常フレーム生成部102が生成した通常フレームを他局へ送信する。
 このとき、データ送信部105は、送信と並行して、送信する通常フレームを再送フレームバッファ107に格納しておく。
The data arbitration unit 106 inputs the normal frame from the normal frame generation unit 102 and outputs the input normal frame to the data transmission unit 105.
In S128, the data transmission unit 105 transmits the normal frame generated by the normal frame generation unit 102 of the local station to another station.
At this time, the data transmission unit 105 stores the normal frame to be transmitted in the retransmission frame buffer 107 in parallel with the transmission.
 以上のように、本実施の形態では、通常フレームを送信中であっても、通常フレームを追い越して障害通知フレームを送信するため、通常フレームの送信によって障害通知が遅れるという事態は発生しない。
 この結果、障害通知を受け取ったマスタ装置は各局の動作をすばやく停止させることで、機器の誤動作による影響(機器の破壊や人体への物理的な危害等)を防ぐことができる。
As described above, in the present embodiment, even when a normal frame is being transmitted, the failure notification frame is transmitted by overtaking the normal frame. Therefore, the failure notification is not delayed due to the transmission of the normal frame.
As a result, the master device that has received the failure notification can quickly stop the operation of each station, thereby preventing the influence (malfunction of the device, physical harm to the human body, etc.) due to the malfunction of the device.
 なお、以上では、通常フレームの送信中に障害通知フレームが新たに発生した場合に、通常フレームの送信を中断し、障害通知フレームの送信を開始する例を説明した。
 しかし、データ送信部105とデータ調停部106が扱うデータは、通常フレームと障害通知フレームとの組合せに限らず、どのようなデータであってもよい。
 つまり、データ調停部106は、データ送信部105がいずれかのデータを送信中に送信の対象となる新たなデータが発生した場合に、データ送信部105が送信中のデータと新たなデータとのいずれを優先するかを決定し、新たなデータを優先する場合に、データの切替を指示するデータ切替指示をデータ送信部105に出力する。
 そして、データ送信部105は、データの送信中にデータ調停部106からデータ切替指示を入力した場合に、送信中のデータの送信を中断し、新たなデータの送信を開始する。
In the above, an example has been described in which when a failure notification frame is newly generated during transmission of a normal frame, transmission of the normal frame is interrupted and transmission of the failure notification frame is started.
However, the data handled by the data transmission unit 105 and the data arbitration unit 106 is not limited to the combination of the normal frame and the failure notification frame, and may be any data.
That is, when new data to be transmitted occurs while the data transmission unit 105 is transmitting any data, the data arbitration unit 106 determines whether the data transmission unit 105 transmits the data being transmitted to the new data. When it is determined which is prioritized and new data is prioritized, a data switching instruction for instructing data switching is output to the data transmission unit 105.
When the data transmission unit 105 receives a data switching instruction from the data arbitration unit 106 during data transmission, the data transmission unit 105 interrupts transmission of the data being transmitted and starts transmission of new data.
 また、以上では、トークンパッシングが行われるネットワークを対象にして説明を行ったが、CSMA/CD(Carrier Sense Multiple Access with Collision Detection)形式のネットワークを対象にしてもよい。 In the above description, the description is given for a network in which token passing is performed. However, a CSMA / CD (Carrier Sense Multiple Access Collision Detection) type network may be targeted.
 以上、本実施の形態では、以下の手段を備えた通信装置を説明した。
 (a)フレームの種類を識別する手段、
 (b)送信中フレームをバッファリングする手段、
 (c)フレーム送信を中断し、他のフレームの送信開始する手段。
As described above, in the present embodiment, the communication device including the following means has been described.
(A) means for identifying the type of frame;
(B) means for buffering the frame being transmitted;
(C) Means for interrupting frame transmission and starting transmission of another frame.
 最後に、本実施の形態に係るスレーブ装置100のハードウェア構成例について説明する。
 図7は、本実施の形態に示すスレーブ装置100のハードウェア資源の一例を示す図である。
 なお、図7の構成は、あくまでもスレーブ装置100のハードウェア構成の一例を示すものであり、スレーブ装置100のハードウェア構成は図7に記載の構成に限らず、他の構成であってもよい。
Finally, a hardware configuration example of the slave device 100 according to the present embodiment will be described.
FIG. 7 is a diagram illustrating an example of hardware resources of the slave device 100 illustrated in the present embodiment.
The configuration in FIG. 7 is merely an example of the hardware configuration of the slave device 100, and the hardware configuration of the slave device 100 is not limited to the configuration illustrated in FIG. .
 図7において、スレーブ装置100は、プログラムを実行するCPU911(Central Processing Unit、中央処理装置、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、プロセッサともいう)を備えている。
 CPU911は、バス912を介して、例えば、ROM(Read Only Memory)913、RAM(Random Access Memory)914、通信ボード915、表示装置901、キーボード902、マウス903、磁気ディスク装置920と接続され、これらのハードウェアデバイスを制御する。
 更に、CPU911は、FDD904(Flexible Disk Drive)、コンパクトディスク装置905(CDD)、プリンタ装置906、スキャナ装置907と接続していてもよい。また、磁気ディスク装置920の代わりに、SSD(Solid State Drive)、光ディスク装置、メモリカード(登録商標)読み書き装置などの記憶装置でもよい。
 RAM914は、揮発性メモリの一例である。ROM913、FDD904、CDD905、磁気ディスク装置920の記憶媒体は、不揮発性メモリの一例である。これらは、記憶装置の一例である。
 本実施の形態で説明した「再送フレームバッファ107」は、RAM914、磁気ディスク装置920等により実現される。
 通信ボード915、キーボード902、マウス903、スキャナ装置907などは、入力装置の一例である。
 また、通信ボード915、表示装置901、プリンタ装置906などは、出力装置の一例である。
In FIG. 7, the slave device 100 includes a CPU 911 (also referred to as a central processing unit, a central processing unit, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, and a processor) that executes a program.
The CPU 911 is connected to, for example, a ROM (Read Only Memory) 913, a RAM (Random Access Memory) 914, a communication board 915, a display device 901, a keyboard 902, a mouse 903, and a magnetic disk device 920 via a bus 912. Control hardware devices.
Further, the CPU 911 may be connected to an FDD 904 (Flexible Disk Drive), a compact disk device 905 (CDD), a printer device 906, and a scanner device 907. Further, instead of the magnetic disk device 920, a storage device such as an SSD (Solid State Drive), an optical disk device, or a memory card (registered trademark) read / write device may be used.
The RAM 914 is an example of a volatile memory. The storage media of the ROM 913, the FDD 904, the CDD 905, and the magnetic disk device 920 are an example of a nonvolatile memory. These are examples of the storage device.
The “retransmission frame buffer 107” described in the present embodiment is realized by the RAM 914, the magnetic disk device 920, and the like.
A communication board 915, a keyboard 902, a mouse 903, a scanner device 907, and the like are examples of input devices.
The communication board 915, the display device 901, the printer device 906, and the like are examples of output devices.
 通信ボード915は、図1に示すように、ネットワークに接続されている。
 例えば、通信ボード915は、LAN(ローカルエリアネットワーク)、インターネット、WAN(ワイドエリアネットワーク)、SAN(ストレージエリアネットワーク)などに接続されている。
As shown in FIG. 1, the communication board 915 is connected to a network.
For example, the communication board 915 is connected to a LAN (local area network), the Internet, a WAN (wide area network), a SAN (storage area network), and the like.
 磁気ディスク装置920には、オペレーティングシステム921(OS)、ウィンドウシステム922、プログラム群923、ファイル群924が記憶されている。
 プログラム群923のプログラムは、CPU911がオペレーティングシステム921、ウィンドウシステム922を利用しながら実行する。
The magnetic disk device 920 stores an operating system 921 (OS), a window system 922, a program group 923, and a file group 924.
The programs in the program group 923 are executed by the CPU 911 using the operating system 921 and the window system 922.
 また、RAM914には、CPU911に実行させるオペレーティングシステム921のプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。
 また、RAM914には、CPU911による処理に必要な各種データが格納される。
The RAM 914 temporarily stores at least part of the operating system 921 program and application programs to be executed by the CPU 911.
The RAM 914 stores various data necessary for processing by the CPU 911.
 また、ROM913には、BIOS(Basic Input Output System)プログラムが格納され、磁気ディスク装置920にはブートプログラムが格納されている。
 スレーブ装置100の起動時には、ROM913のBIOSプログラム及び磁気ディスク装置920のブートプログラムが実行され、BIOSプログラム及びブートプログラムによりオペレーティングシステム921が起動される。
The ROM 913 stores a BIOS (Basic Input Output System) program, and the magnetic disk device 920 stores a boot program.
When the slave device 100 is activated, the BIOS program in the ROM 913 and the boot program in the magnetic disk device 920 are executed, and the operating system 921 is activated by the BIOS program and the boot program.
 上記プログラム群923には、本実施の形態の説明において「~部」として説明している機能を実行するプログラムが記憶されている。
 プログラムは、CPU911により読み出され実行される。
The program group 923 stores programs that execute the functions described as “˜units” in the description of the present embodiment.
The program is read and executed by the CPU 911.
 ファイル群924には、本実施の形態の説明において、「~の判断」、「~の検出」、「~の判別」、「~の評価」、「~の決定」、「~の選択」、「~の入力」、「~の出力」等として説明している処理の結果を示す情報やデータや信号値や変数値や暗号鍵・復号鍵や乱数値やパラメータが、「~ファイル」や「~データベース」の各項目として記憶されている。
 「~ファイル」や「~データベース」は、ディスクやメモリなどの記憶媒体に記憶される。
 ディスクやメモリなどの記憶媒体に記憶された情報やデータや信号値や変数値やパラメータは、読み書き回路を介してCPU911によりメインメモリやキャッシュメモリに読み出される。
 そして、読み出された情報やデータや信号値や変数値やパラメータは、抽出・検索・参照・比較・演算・計算・処理・編集・出力・印刷・表示などのCPUの動作に用いられる。
 抽出・検索・参照・比較・演算・計算・処理・編集・出力・印刷・表示のCPUの動作の間、情報やデータや信号値や変数値やパラメータは、メインメモリ、レジスタ、キャッシュメモリ、バッファメモリ等に一時的に記憶される。
 また、本実施の形態で説明しているフローチャートの矢印の部分は主としてデータや信号の入出力を示す。
 データや信号値は、RAM914のメモリ、FDD904のフレキシブルディスク、CDD905のコンパクトディスク、磁気ディスク装置920の磁気ディスク、その他光ディスク、ミニディスク、DVD等の記憶媒体に記録される。
 また、データや信号は、バス912や信号線やケーブルその他の伝送媒体によりオンライン伝送される。
In the description of the present embodiment, the file group 924 includes “determination of”, “detection of”, “determination of”, “evaluation of”, “determination of”, “selection of”, Information, data, signal values, variable values, encryption keys / decryption keys, random values and parameters indicating the results of the processing described as “input of”, “output of”, etc. It is stored as each item of “Database”.
The “˜file” and “˜database” are stored in a storage medium such as a disk or memory.
Information, data, signal values, variable values, and parameters stored in a storage medium such as a disk or memory are read out to the main memory or cache memory by the CPU 911 via a read / write circuit.
The read information, data, signal value, variable value, and parameter are used for CPU operations such as extraction, search, reference, comparison, calculation, calculation, processing, editing, output, printing, and display.
Information, data, signal values, variable values, and parameters are stored in the main memory, registers, cache memory, and buffers during the CPU operations of extraction, search, reference, comparison, calculation, processing, editing, output, printing, and display. It is temporarily stored in a memory or the like.
In addition, the arrows in the flowchart described in this embodiment mainly indicate input / output of data and signals.
Data and signal values are recorded in a storage medium such as a memory of the RAM 914, a flexible disk of the FDD 904, a compact disk of the CDD 905, a magnetic disk of the magnetic disk device 920, other optical disks, mini disks, and DVDs.
Data and signals are transmitted online via a bus 912, signal lines, cables, or other transmission media.
 また、本実施の形態の説明において「~部」、「~手段」として説明しているものは、「~回路」、「~装置」、「~機器」であってもよく、また、「~ステップ」、「~手順」、「~処理」であってもよい。
 すなわち、本実施の形態で説明したフローチャートに示すステップ、手順、処理により、本発明に係る「通信方法」を実現することができる。
 また、「~部」、「~手段」として説明しているものは、ROM913に記憶されたファームウェアで実現されていても構わない。
 或いは、ソフトウェアのみ、或いは、素子・デバイス・基板・配線などのハードウェアのみ、或いは、ソフトウェアとハードウェアとの組み合わせ、さらには、ファームウェアとの組み合わせで実施されても構わない。
 ファームウェアとソフトウェアは、プログラムとして、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、DVD等の記憶媒体に記憶される。
 プログラムはCPU911により読み出され、CPU911により実行される。
 すなわち、プログラムは、本実施の形態の「~部」、「~手段」としてコンピュータを機能させるものである。あるいは、本実施の形態の「~部」、「~手段」の手順や方法をコンピュータに実行させるものである。
In the description of the present embodiment, what is described as “to part” and “to means” may be “to circuit”, “to device”, and “to device”. It may be “step”, “˜procedure”, “˜processing”.
That is, the “communication method” according to the present invention can be realized by the steps, procedures, and processes shown in the flowchart described in the present embodiment.
Further, what is described as “˜unit” and “˜means” may be realized by firmware stored in the ROM 913.
Alternatively, it may be implemented only by software, or only by hardware such as elements, devices, substrates, and wirings, by a combination of software and hardware, or by a combination of firmware.
Firmware and software are stored as programs in a storage medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, and a DVD.
The program is read by the CPU 911 and executed by the CPU 911.
In other words, the program causes the computer to function as “to part” and “to means” in the present embodiment. Alternatively, the procedures and methods of “˜unit” and “˜means” of the present embodiment are executed by a computer.
 このように、本実施の形態に示すスレーブ装置100は、処理装置たるCPU、記憶装置たるメモリ、磁気ディスク等、入力装置たるキーボード、マウス、通信ボード等、出力装置たる表示装置、通信ボード等を備えるコンピュータである。
 そして、上記したように「~部」、「~手段」として示された機能をこれら処理装置、記憶装置、入力装置、出力装置を用いて実現するものである。
As described above, the slave device 100 described in this embodiment includes a CPU that is a processing device, a memory that is a storage device, a magnetic disk, a keyboard that is an input device, a mouse, a communication board, and a display device that is an output device, a communication board, and the like. Computer.
As described above, the functions indicated as “˜unit” and “˜means” are realized by using these processing devices, storage devices, input devices, and output devices.
 100 スレーブ装置、101 障害検出部、102 通常フレーム生成部、103 送信調停部、104 データ受信部、105 データ送信部、106 データ調停部、107 再送フレームバッファ、200 マスタ装置、300 スイッチ。 100 slave device, 101 failure detection unit, 102 normal frame generation unit, 103 transmission arbitration unit, 104 data reception unit, 105 data transmission unit, 106 data arbitration unit, 107 retransmission frame buffer, 200 master device, 300 switch.

Claims (10)

  1.  データを送信するデータ送信部と、
     前記データ送信部がデータを送信中に、送信の対象となる新たなデータが発生した場合に、前記データ送信部が送信中のデータと前記新たなデータとのいずれを優先するかを決定し、前記新たなデータを優先する場合に、データの切替を指示するデータ切替指示を前記データ送信部に出力するデータ調停部とを有し、
     前記データ送信部は、
     データの送信中に前記データ調停部からデータ切替指示を入力した場合に、送信中のデータの送信を中断し、前記新たなデータの送信を開始することを特徴とする通信装置。
    A data transmission unit for transmitting data;
    When new data to be transmitted occurs while the data transmission unit is transmitting data, the data transmission unit determines which of the data being transmitted and the new data has priority, A data arbitration unit that outputs a data switching instruction to instruct data switching to the data transmission unit when giving priority to the new data;
    The data transmitter is
    When a data switching instruction is input from the data arbitration unit during data transmission, the communication apparatus stops transmission of data being transmitted and starts transmission of the new data.
  2.  前記通信装置は、更に、
     データを蓄積するバッファ部を有し、
     前記データ送信部は、
     データの送信と、前記バッファ部へのデータの格納とを並行して行い、
     データの送信中に前記データ調停部からデータ切替指示を入力した場合に、送信中のデータの前記バッファ部への格納を継続しながら送信中のデータの送信を中断し、前記新たなデータの送信を開始することを特徴とする請求項1に記載の通信装置。
    The communication device further includes:
    A buffer unit for storing data;
    The data transmitter is
    Sending data in parallel with storing data in the buffer unit,
    When a data switching instruction is input from the data arbitration unit during data transmission, the transmission of the data being transmitted is interrupted while the data being transmitted is being stored in the buffer unit, and the new data is transmitted. The communication device according to claim 1, wherein the communication device is started.
  3.  前記データ送信部は、
     前記新たなデータの送信が完了した後に、前記バッファ部に蓄積されているデータを用いて、送信を中断したデータの送信を開始することを特徴とする請求項2に記載の通信装置。
    The data transmitter is
    3. The communication apparatus according to claim 2, wherein after the transmission of the new data is completed, the transmission of the data whose transmission is interrupted is started using the data stored in the buffer unit.
  4.  前記通信装置は、
     データを生成するデータ生成部を有し、
     前記データ調停部は、
     前記データ送信部が前記データ生成部により生成されたデータを送信中に、送信の対象となる新たなデータを前記データ生成部が生成した場合に、前記データ送信部が送信中のデータと前記データ生成部が生成した新たなデータとのいずれを優先するかを決定することを特徴とする請求項1に記載の通信装置。
    The communication device
    A data generation unit for generating data;
    The data arbitration unit
    When the data generation unit generates new data to be transmitted while the data transmission unit is transmitting the data generated by the data generation unit, the data transmission unit and the data being transmitted The communication apparatus according to claim 1, wherein priority is given to which of the new data generated by the generation unit.
  5.  前記通信装置は、更に、
     データを受信するデータ受信部を有し、
     前記データ調停部は、
     前記データ送信部が前記データ受信部により受信されたデータを送信中に、送信の対象となる新たなデータを前記データ生成部が生成した場合に、前記データ送信部が送信中のデータと前記データ生成部が生成した新たなデータとのいずれを優先するかを決定することを特徴とする請求項4に記載の通信装置。
    The communication device further includes:
    A data receiving unit for receiving data;
    The data arbitration unit
    When the data generation unit generates new data to be transmitted while the data transmission unit is transmitting data received by the data reception unit, the data transmission unit and the data being transmitted The communication apparatus according to claim 4, wherein which of the new data generated by the generation unit is prioritized.
  6.  前記データ調停部は、
     前記データ送信部が前記データ生成部により生成されたデータを送信中に、送信の対象となる新たなデータを前記データ受信部が受信した場合に、前記データ送信部が送信中のデータと前記データ受信部が受信した新たなデータとのいずれを優先するかを決定することを特徴とする請求項5に記載の通信装置。
    The data arbitration unit
    When the data receiving unit receives new data to be transmitted while the data transmitting unit is transmitting the data generated by the data generating unit, the data transmitting unit and the data being transmitted 6. The communication apparatus according to claim 5, wherein the receiving unit determines which of the new data received is prioritized.
  7.  前記通信装置は、更に、
     データを受信するデータ受信部を有し、
     前記データ調停部は、
     前記データ送信部が前記データ受信部により受信されたデータを送信中に、送信の対象となる新たなデータを前記データ受信部が受信した場合に、前記データ送信部が送信中のデータと前記データ受信部が受信した新たなデータとのいずれを優先するかを決定することを特徴とする請求項4に記載の通信装置。
    The communication device further includes:
    A data receiving unit for receiving data;
    The data arbitration unit
    When the data transmission unit receives new data to be transmitted while the data transmission unit is transmitting data received by the data reception unit, the data transmission unit transmits the data being transmitted and the data The communication apparatus according to claim 4, wherein the receiving unit determines which of the new data received is prioritized.
  8.  前記データ調停部は、
     前記新たなデータが、障害検知対象物における障害の発生を通知する障害通知データであり、前記データ送信部が送信中のデータが、前記障害通知データ以外のデータである場合に、前記新たなデータを優先することを特徴とする請求項1に記載の通信装置。
    The data arbitration unit
    When the new data is failure notification data for notifying the occurrence of a failure in the failure detection target, and the data being transmitted by the data transmission unit is data other than the failure notification data, the new data The communication apparatus according to claim 1, wherein priority is given to the communication apparatus.
  9.  データを送信中に、送信の対象となる新たなデータが発生した場合に、
     送信中のデータと前記新たなデータとのいずれを優先するかを決定し、前記新たなデータを優先する場合に、送信中のデータの送信を中断し、前記新たなデータの送信を開始することを特徴とする通信方法。
    If new data to be sent occurs while sending data,
    Deciding which of the data being transmitted and the new data should be prioritized, and when prioritizing the new data, interrupting the transmission of the data being transmitted and starting the transmission of the new data A communication method characterized by the above.
  10.  データを送信中に、送信の対象となる新たなデータが発生した場合に、
     送信中のデータと前記新たなデータとのいずれを優先するかを決定し、前記新たなデータを優先する場合に、送信中のデータの送信を中断し、前記新たなデータの送信を開始する処理をコンピュータに実行させることを特徴とするプログラム。
    If new data to be sent occurs while sending data,
    A process of deciding which of the data being transmitted and the new data should be prioritized, and when prioritizing the new data, interrupting the transmission of the data being transmitted and starting the transmission of the new data A program that causes a computer to execute.
PCT/JP2012/051540 2012-01-25 2012-01-25 Communication apparatus, communication method, and program WO2013111285A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/051540 WO2013111285A1 (en) 2012-01-25 2012-01-25 Communication apparatus, communication method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/051540 WO2013111285A1 (en) 2012-01-25 2012-01-25 Communication apparatus, communication method, and program

Publications (1)

Publication Number Publication Date
WO2013111285A1 true WO2013111285A1 (en) 2013-08-01

Family

ID=48873056

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/051540 WO2013111285A1 (en) 2012-01-25 2012-01-25 Communication apparatus, communication method, and program

Country Status (1)

Country Link
WO (1) WO2013111285A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015163094A1 (en) * 2014-04-23 2015-10-29 三菱電機株式会社 Relay device and data transfer method
TWI561042B (en) * 2015-02-20 2016-12-01 Mitsubishi Electric Corp
CN109496408A (en) * 2016-07-28 2019-03-19 三菱电机株式会社 Transmission device and frame transfer method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006279188A (en) * 2005-03-28 2006-10-12 Nec Corp Transmission controller conducting priority control, communication controller, communication system, communication network and transmission method
JP2008236266A (en) * 2007-03-19 2008-10-02 Fujitsu Ltd Transmission device, frame for maintenance processing method and transmission program
JP2009267822A (en) * 2008-04-25 2009-11-12 Mitsubishi Electric Corp Communication device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006279188A (en) * 2005-03-28 2006-10-12 Nec Corp Transmission controller conducting priority control, communication controller, communication system, communication network and transmission method
JP2008236266A (en) * 2007-03-19 2008-10-02 Fujitsu Ltd Transmission device, frame for maintenance processing method and transmission program
JP2009267822A (en) * 2008-04-25 2009-11-12 Mitsubishi Electric Corp Communication device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015163094A1 (en) * 2014-04-23 2015-10-29 三菱電機株式会社 Relay device and data transfer method
KR20160135329A (en) * 2014-04-23 2016-11-25 미쓰비시덴키 가부시키가이샤 Relay device and data transfer method
CN106233670A (en) * 2014-04-23 2016-12-14 三菱电机株式会社 Relay and data transferring method
JPWO2015163094A1 (en) * 2014-04-23 2017-04-13 三菱電機株式会社 Relay device and data transfer method
KR101960147B1 (en) * 2014-04-23 2019-03-19 미쓰비시덴키 가부시키가이샤 Relay device and data transfer method
US10523579B2 (en) 2014-04-23 2019-12-31 Mitsubishi Electric Corporation Relay device and data transfer method
CN106233670B (en) * 2014-04-23 2020-01-03 三菱电机株式会社 Relay device and data transfer method
TWI561042B (en) * 2015-02-20 2016-12-01 Mitsubishi Electric Corp
CN107251516A (en) * 2015-02-20 2017-10-13 三菱电机株式会社 Communicator, communication means and program
CN109496408A (en) * 2016-07-28 2019-03-19 三菱电机株式会社 Transmission device and frame transfer method
CN109496408B (en) * 2016-07-28 2021-03-12 三菱电机株式会社 Transmission apparatus and frame transmission method

Similar Documents

Publication Publication Date Title
US11599349B2 (en) Gateway device, in-vehicle network system, and firmware update method
US20110125949A1 (en) Routing packet from first virtual machine to second virtual machine of a computing device
US11842185B2 (en) Gateway device, in-vehicle network system, and firmware update method
US10810036B1 (en) Traffic management on an interconnect
US10116506B2 (en) Method for upgrading version of network device and network device
EP2704009B1 (en) Information processing apparatus, information processing method, and program
JP2011070655A (en) Information processing apparatus, memory dump system and memory dump method
JP6183931B2 (en) Cluster system, server apparatus, cluster system management method, and program
US20100100776A1 (en) Information processing apparatus, failure processing method, and recording medium in which failure processing program is recorded
WO2013111285A1 (en) Communication apparatus, communication method, and program
US9304955B2 (en) Techniques for identifying and handling processor interrupts
US10909270B2 (en) Information processing device, mobile object, information processing method, and computer program product
US9081614B2 (en) Managing shared resources in a multi-computer system with failover support
JP6365280B2 (en) Information processing apparatus, information processing system, and program
US8806082B2 (en) Direct memory access device for multi-core system and operating method of the same
US9798601B2 (en) Connection method
US8380938B2 (en) Providing shared access to data storage resources across cluster computing environment boundaries
CN112052200A (en) Information processing apparatus, information processing system, and storage medium
US20160020984A1 (en) Information processing apparatus, method, and system, and non-transitory computer readable medium
US10339076B2 (en) System and method for adaptable fabric consistency validation and issue mitigation in an information handling system
US8930586B2 (en) Identification of electronic devices operating within a computing system
JP5763030B2 (en) Duplex network control system and duplex network control method
KR20180131095A (en) I2c speed-up communication system and controlling method for transmitting data using heterogeneous protocols
JP6946820B2 (en) Electronics, controls and programs
US20180145875A1 (en) Information processing device

Legal Events

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

Ref document number: 12866778

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: 12866778

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP