WO2016132530A1 - 通信装置、通信方法及びプログラム - Google Patents
通信装置、通信方法及びプログラム Download PDFInfo
- Publication number
- WO2016132530A1 WO2016132530A1 PCT/JP2015/054791 JP2015054791W WO2016132530A1 WO 2016132530 A1 WO2016132530 A1 WO 2016132530A1 JP 2015054791 W JP2015054791 W JP 2015054791W WO 2016132530 A1 WO2016132530 A1 WO 2016132530A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- communication
- communication frame
- time
- transmission
- frame
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2466—Traffic characterised by specific attributes, e.g. priority or QoS using signalling traffic
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4027—Coupling between buses using bus bridges
- G06F13/405—Coupling between buses using bus bridges where the bridge performs a synchronising function
- G06F13/4054—Coupling between buses using bus bridges where the bridge performs a synchronising function where the function is bus cycle extension, e.g. to meet the timing requirements of the target bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/61—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/28—Timers or timing mechanisms used in protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/22—Pc multi processor system
- G05B2219/2231—Master slave
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40019—Details regarding a bus master
Definitions
- the present invention relates to a communication device, a communication method, and a program.
- the present invention relates to a communication device, a communication method, and a program for performing priority control when devices connected to a network communicate.
- a control system is composed of one master device and a plurality of slave devices.
- the master device and each slave device communicate with each other via a control network for FA, the master device gives a command to each slave device, and the slave device operates by executing the command. Then, the slave device sends a response result to the command to the master device.
- the time until the command and response transmitted / received between the master device and each slave device is called a cycle time.
- a communication cycle is set in advance.
- a cycle for performing communication set in advance is called a communication cycle.
- the master device and each slave device communicate so that the cycle time is completed in a time shorter than this communication cycle. Specifically, when the communication cycle is 200 us, a command from the master device to each slave and a response from each slave to the master are performed once every 200 us. For this reason, the cycle time must be less than 200 us.
- the FA network includes a field network for field communication, a motion network for motion communication, and the like.
- Motion communication requires finer control than field communication, and a shorter communication cycle is often set.
- field communication and motion communication may be distinguished from each other, there are cases in which field communication and motion communication are performed in one network for the purpose of reducing wiring.
- the communication cycle is often shorter in motion communication than in field communication.
- the output of this communication frame may compete with an output for relaying a communication frame transmitted from another slave device.
- By setting field communication to low priority and motion communication to high priority it is possible to shorten the cycle time of motion communication with a short communication cycle in a network in which field communication and motion communication are mixed.
- Patent Document 1 discloses a control method in the case where communication frames having different priorities compete with each other in a slave device. According to the method disclosed in Patent Document 1, it is possible to replace a communication frame for failure notification with high priority communication, and replace other communication frames with low priority communication.
- the transmission is interrupted even if another communication frame is being transmitted, and the failure notification communication frame is transmitted first.
- another communication frame is retransmitted from the beginning.
- Patent Document 1 is considered to be an appropriate method as a method of transmitting a failure notification with the highest priority.
- a network in which motion communication and field communication are mixed it is not appropriate to apply the method of Patent Document 1 to motion communication with high priority.
- each slave device In motion communication, each slave device must deliver a motion communication frame to the master device within a communication cycle.
- the slave device when a transmission request for a motion communication frame is generated during transmission of a field communication frame, if the transmission of the field communication frame is always interrupted, the efficiency of the field communication decreases.
- the method of Patent Document 1 there is a problem that in a network in which motion communication and field communication are mixed, a request for performing field communication as soon as possible while giving priority to motion communication cannot be satisfied.
- An object of the present invention is to provide a communication device capable of completing field communication as soon as possible while giving priority to motion communication.
- a communication apparatus is a communication apparatus that transmits a first communication frame and transmits a second communication frame having a lower priority than a priority for transmitting the first communication frame.
- a transmission request for the first communication frame is generated during transmission of the second communication frame, an allowable time required for the reception destination device to start receiving the first communication frame; and The remaining time until transmission of the second communication frame is completed and the time required until reception of the first communication frame is started at the transmission destination device are acquired, and the acquired allowable time and the remaining time are acquired.
- a communication arbitration unit that determines whether to continue transmission of the second communication frame based on time and the required time.
- the communication device of the present invention when a transmission request for the first communication frame is generated during transmission of the second communication frame, it takes until the transmission of the first communication frame is started in the transmission destination device.
- a communication arbitration unit that determines whether to continue the transmission of the second communication frame based on the remaining time and the required time, so that priority is given to appropriately transmitting the communication frame having a high priority.
- the priority can be controlled so that a communication frame with a low degree is not delayed more than necessary.
- FIG. 1 is a diagram illustrating an example of a configuration of a network system according to Embodiment 1.
- FIG. 1 is a block configuration diagram of a communication device according to Embodiment 1.
- FIG. 2 is a diagram illustrating an example of a hardware configuration of a communication device according to Embodiment 1.
- FIG. 3 is a flowchart showing a communication method and communication processing of the communication apparatus according to the first embodiment.
- FIG. 3 is a flowchart showing priority determination processing of the communication device according to the first embodiment.
- FIG. 3 is a diagram illustrating an example of a configuration of communication information according to the first embodiment.
- FIG. 10 is a diagram illustrating an example of a configuration of communication information according to the second embodiment.
- FIG. 9 is a flowchart showing priority determination processing of a communication apparatus according to Embodiment 2.
- FIG. 1 is a diagram illustrating an example of a configuration of a network system 500 according to the present embodiment.
- the network system 500 is a line network and includes a master device 200 and a plurality of slave devices SR01, SR02, SR03, SR04.
- Each slave device is the communication device 100 according to the present embodiment. That is, the communication device 100 is a slave device that is connected to the network system 500 and communicates with the master device 200.
- the network may not be a line network, and the present embodiment can be applied to a network of another shape such as a ring network, a star network, or a bus network.
- an FA network that performs field communication and motion communication in one network is assumed for the purpose of reducing wiring.
- field communication field communication frames are transmitted and received.
- the field communication frame is an example of the second communication frame 1012.
- motion communication a motion communication frame having a higher priority than the priority for transmitting a field communication frame is transmitted and received.
- the motion communication frame is an example of the first communication frame 1011. In the following description, the motion communication frame will be described as the first communication frame 1011, and the field communication frame will be described as the second communication frame 1012.
- FIG. 2 is a block configuration diagram of communication apparatus 100 according to the present embodiment.
- the communication apparatus 100 transmits the first communication frame 1011 and transmits a second communication frame 1012 having a lower priority than the priority for transmitting the first communication frame 1011.
- the communication device 100 includes a communication unit 102, a communication frame generation unit 106, a communication arbitration unit 107, a buffer 108, a communication information storage unit 109, a timer unit 110, a network port 1022, and a network port 1042.
- the communication unit 102 includes a network interface unit 1021 and a network interface unit 1041.
- the network interface unit 1021 transmits and receives communication frames to and from the master device side network via the network port 1022 and the master device side network cable.
- the network interface unit 1041 transmits and receives communication frames to and from the non-master apparatus side network via the network port 1042 and the non-master apparatus side network cable.
- the communication device 100 relays a communication frame received from one network port to the other network port.
- the communication apparatus 100 transmits the communication frame generated by the communication frame generation unit 106 from the network port 1022 or the network port 1042.
- the communication frame generation unit 106 generates a communication frame.
- the communication frames include a high-priority first communication frame 1011 transmitted and received by motion communication and a low-priority second communication frame 1012 transmitted and received by field communication. If the communication device 100 is a slave device for performing motion communication, the communication frame generation unit 106 of the local station generates a motion communication frame, that is, a first communication frame 1011. If the communication device 100 is a slave device for performing field communication, the communication frame generation unit 106 of the local station generates a field communication frame, that is, a second communication frame 1012.
- a communication frame generated by the communication frame generation unit 106 is referred to as a local station generated communication frame, and a communication frame received from one network port and relayed to the other network port is referred to as a relay communication frame.
- the communication arbitration unit 107 arbitrates between the local station generated communication frame and the relay communication frame.
- the local station generated communication frame and the relay communication frame may be the first communication frame 1011 or the second communication frame 1012, respectively.
- the communication information storage unit 109 stores communication information 1091.
- configuration information of the network system 500 is set.
- the communication information 1091 is also referred to as network configuration information.
- the communication information storage unit 109 is also referred to as a network configuration information management unit that manages network configuration information.
- the communication information 1091 is set in advance with a time required until the communication frame started to be transmitted from the communication apparatus 100 is started in each of the other apparatuses connected to the network system 500. Details of the communication information 1091 will be described later.
- the communication arbitration unit 107 determines whether or not a transmission request for the first communication frame 1011 has occurred during transmission of the second communication frame 1012. When a transmission request for the first communication frame 1011 occurs during the transmission of the second communication frame 1012, the communication arbitration unit 107 acquires the allowable time RT, the remaining time ST, and the required time NT.
- the permissible time RT is the permissible time taken for the transmission destination device to start receiving the first communication frame 1011.
- the transmission destination device is the master device 200 or another communication device 100 other than the communication device 100 that is the own device.
- the motion communication frame that is, the first communication frame 1011 needs to be transmitted from the transmission source device to the transmission destination device within kT1 representing the communication cycle. Therefore, the communication arbitration unit 107 calculates the elapsed time T2 from the time when transmission of the first communication frame 1011 is started by the transmission source device to the current time as the allowable time RT.
- the remaining time ST is the remaining time until the transmission of the second communication frame 1012 being transmitted is completed.
- the required time NT is a required time until reception of the first communication frame 1011 is started in the transmission destination device.
- the communication arbitration unit 107 determines whether to continue the transmission of the second communication frame 1012 based on the acquired allowable time RT, remaining time ST, and required time NT.
- the communication arbitration unit 107 receives a transmission request to transmit the relay communication frame to the master device side network while transmitting the local station generated communication frame to the master device side network via the network interface unit 1021 and the network port 1022. May occur.
- This relay communication frame is a communication frame received from the network port 1042 via the network interface unit 1041 and transmitted to the master device side network via the network interface unit 1021 and the network port 1022.
- the communication arbitration unit 107 determines which of the communication frames of the local station generation communication frame and the relay communication frame has priority.
- the communication arbitration unit 107 receives a transmission request after completing the transmission of the first communication frame 1011. Transmit the communication frame.
- the buffer 108 stores a communication frame that cannot be transmitted immediately when a transmission request is made, as in the above case.
- the communication arbitration unit 107 also determines that the communication frame currently being transmitted is a field communication frame, that is, the second communication frame 1012, and the communication frame that is requested to be transmitted later is a motion communication frame, that is, the first communication frame 1011. If it is, it is determined which communication frame is prioritized for transmission.
- the communication arbitration unit 107 calculates a time obtained by adding the remaining time ST and the required time NT as the addition time AT, and compares the calculated addition time AT with the allowable time RT. When the allowable time RT is equal to or longer than the addition time AT, the communication arbitration unit 107 continues to transmit the second communication frame 1012. Then, the communication arbitration unit 107 starts transmission of the first communication frame 1011 after transmission of the second communication frame 1012 is completed.
- the communication arbitration unit 107 interrupts transmission of the second communication frame 1012 when the allowable time RT is shorter than the addition time AT. Then, the communication arbitration unit 107 starts transmission of the first communication frame 1011 and starts transmission of the second communication frame 1012 again after transmission of the first communication frame 1011 is completed.
- the communication arbitration unit 107 executes the above determination process independently in each of a route for transmitting from the communication arbitration unit 107 to the network interface unit 1021 and a route for transmitting from the communication arbitration unit 107 to the network interface unit 1041.
- the communication device 100 is a computer.
- the communication device 100 includes hardware such as a processor 901, an auxiliary storage device 902, a memory 903, a communication device 904, an input interface 905, and a display interface 906.
- the processor 901 is connected to other hardware via the signal line 910, and controls these other hardware.
- the input interface 905 is connected to the input device 907.
- the display interface 906 is connected to the display 908.
- the processor 901 is an IC (Integrated Circuit) that performs processing.
- the processor 901 is, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or a GPU (Graphics Processing Unit).
- the auxiliary storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or an HDD (Hard Disk Drive).
- the memory 903 is, for example, a RAM (Random Access Memory).
- the communication device 904 includes a receiver 9041 that receives data and a transmitter 9042 that transmits data.
- the communication device 904 is, for example, a communication chip or a NIC (Network Interface Card).
- the input interface 905 is a port to which the cable 911 of the input device 907 is connected.
- the input interface 905 is, for example, a USB (Universal Serial Bus) terminal.
- the display interface 906 is a port to which the cable 912 of the display 908 is connected.
- the display interface 906 is, for example, a USB terminal or an HDMI (registered trademark) (High Definition Multimedia Interface) terminal.
- the input device 907 is, for example, a mouse, a keyboard, or a touch panel.
- the display 908 is, for example, an LCD (Liquid Crystal Display).
- the auxiliary storage device 902 stores programs that realize the functions of the communication unit 102, the communication frame generation unit 106, and the communication arbitration unit 107 shown in FIG.
- the communication unit 102, the communication frame generation unit 106, and the communication arbitration unit 107 are collectively referred to as “unit”.
- the program that realizes the function of the “unit” described above is also referred to as a communication processing program.
- the program that realizes the function of “unit” may be a single program or a plurality of programs.
- This program is loaded into the memory 903, read into the processor 901, and executed by the processor 901.
- the auxiliary storage device 902 also stores an OS (Operating System). Then, at least a part of the OS is loaded into the memory 903, and the processor 901 executes a program that realizes the function of “unit” while executing the OS.
- the communication apparatus 100 may include a plurality of processors 901.
- a plurality of processors 901 may execute a program for realizing the function of “unit” in cooperation with each other.
- information, data, signal values, and variable values indicating the results of the processing of “unit” are stored as files in the memory 903, the auxiliary storage device 902, or a register or cache memory in the processor 901.
- circuitry may be provided as “circuitry”. Further, “part” may be read as “circuit”, “process”, “procedure”, or “processing”. Further, “processing” may be read as “circuit”, “process”, “procedure”, or “part”. “Circuit” and “Circuitry” include not only the processor 901 but also other types of processing circuits such as a logic IC or GA (Gate Array) or ASIC (Application Specific Integrated Circuit) or FPGA (Field-Programmable Gate Array). It is a concept to include.
- GA Gate Array
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- a program product is a storage medium, a storage device, or the like on which a program that realizes the function described as a “part” is recorded. It is what you are loading.
- the communication apparatus 100 transmits the first communication frame 1011 and transmits a second communication frame 1012 having a lower priority than the priority for transmitting the first communication frame 1011.
- the communication arbitration unit 107 executes a transmission determination process S110 that determines whether or not a transmission request for the first communication frame 1011 has occurred during transmission of the second communication frame 1012.
- step S ⁇ b> 201 the communication arbitration unit 107 determines whether there is a transmission request to the communication arbitration unit 107. If it is determined in S201 that there is a transmission request, the process proceeds to S202. If it is determined in S201 that there is no transmission request, the processing in S201 is repeated until it is determined that there is a transmission request.
- the communication arbitration unit 107 determines whether a communication frame is currently being transmitted. If it is determined in S202 that there is a communication frame being transmitted, the process proceeds to S203. If it is determined in S202 that there is no communication frame being transmitted, the process proceeds to S204.
- step S ⁇ b> 203 the communication arbitration unit 107 determines whether the communication frame being transmitted is the second communication frame 1012 and the communication frame requested to be transmitted is the first communication frame 1011. That is, the communication arbitration unit 107 confirms whether or not a motion communication frame transmission request is generated during transmission of a field communication frame. If it is determined in S203 that a transmission request for the first communication frame 1011 has occurred during transmission of the second communication frame 1012, the process proceeds to S205. If it is determined in S203 that the transmission request for the first communication frame 1011 has not occurred during the transmission of the second communication frame 1012, the process proceeds to S207.
- ⁇ Priority determination process S120> When it is determined by the transmission determination process S110 that a transmission request for the first communication frame 1011 has occurred during the transmission determination process S110, the communication arbitration unit 107 executes a priority determination process S120.
- the communication arbitration unit 107 includes a permissible time RT required for the reception destination device to start receiving the first communication frame 1011 and a remaining time ST until transmission of the second communication frame 1012 is completed.
- the time required NT until reception of the first communication frame 1011 is started in the transmission destination device is acquired.
- the communication arbitration unit 107 executes a priority determination process S120 for determining whether to continue transmission of the second communication frame 1012 based on the acquired allowable time RT, remaining time ST, and required time NT.
- step S205 the communication arbitration unit 107 confirms whether or not the time during which the motion communication can be waited is shorter than the time to wait until the completion of the field communication currently being transmitted. Details of the priority determination processing S120 will be described later.
- the communication arbitration unit 107 executes transmission of the communication frame requested to be transmitted. That is, in S204, when there is a transmission request and there is no communication frame being transmitted, the communication arbitration unit 107 executes transmission of the communication frame requested to be transmitted.
- the communication arbitration unit 107 interrupts transmission of a communication frame that is being transmitted, and executes transmission of a communication frame that has been requested to be transmitted later.
- the communication arbitration unit 107 waits for the first communication frame 1011 until transmission of the second communication frame 1012 is completed. Determine whether you can. If it is determined that the first communication frame 1011 cannot be put on standby, the communication arbitration unit 107 interrupts transmission of the second communication frame 1012 that is being transmitted in S206 and transmits the first communication frame 1011. Execute.
- the communication arbitration unit 107 waits until the transmission of the communication frame being executed is completed, and returns to S201 after the transmission of the communication frame being executed is completed.
- the priority determination process S120 of the communication apparatus 100 will be described with reference to FIG.
- the communication arbitration unit 107 uses the communication information 1091 input from the communication information storage unit 109 to the communication arbitration unit 107 and the timer information 1101 input from the timer unit 110 to the communication arbitration unit 107, and performs the priority determination process S120. Execute.
- the communication information 1091 is information indicating how many slave devices the communication device 100, which is a slave device connected to the master device 200 via the network, communicates with the master device 200.
- FIG. 6 shows an example of communication information 1091 when the slave device SR02 shown in FIG.
- the communication information 1091 includes a device ID that uniquely identifies each device connected to the network system 500, a connection order of each device, a type of each device, and a time required until each device receives a communication frame. And are set.
- the device ID MSR01 indicating the master device 200 and SR01, SR02, SR03, SR04 indicating each slave device are set.
- the connection order the order in which each device is connected from the master device is set.
- the type whether each device is a master, a slave, or a self device is set.
- a relay time until the communication frame reaches each device from the own device is set. This is the time from when the communication device 100 starts transmitting the first bit of the communication frame until the first bit of the communication frame reaches each device.
- the master device 200 measures the network relay time to each slave device and transmits the measurement result to each slave device.
- Each slave device sets a required time in the communication information 1091 based on the measurement result transmitted from the master device 200.
- the required time is set in the communication information 1091 by such a method. Further, the communication information 1091 may be set by other methods without being limited to such a method.
- the communication arbitration unit 107 calculates a required time NT until reception of the first bit of the first communication frame 1011 is started in the transmission destination device.
- the communication arbitration unit 107 refers to the communication information 1091 and acquires the required time NT until the first bit of the communication frame reaches the master device 200 that is the transmission destination device. This will be specifically described with reference to FIG.
- the communication arbitration unit 107 uses the communication information 1091 to acquire the required time 20 ⁇ s from the own device to the master device 200 that is the transmission destination device.
- the communication arbitration unit 107 calculates an allowable time RT of a time required for the master device 200 that is a transmission destination device to start receiving the first communication frame 1011.
- the motion communication frame that is, the first communication frame 1011 needs to be transmitted from the transmission source device to the transmission destination device within the communication time T1 representing the communication cycle. Therefore, the communication arbitration unit 107 calculates, as the allowable time RT, the time obtained by subtracting the elapsed time T2 from the time when transmission of the first communication frame 1011 is started by the transmission source device to the current time from the communication time T1.
- a communication start time at which a communication cycle is started is set.
- the communication arbitration unit 107 acquires this communication start time from the first communication frame 1011. Further, the communication arbitration unit 107 acquires the current time from the timer unit 110 as timer information 1101.
- the communication arbitration unit 107 calculates an elapsed time T2 from the start of the motion communication cycle using the acquired communication start time and the current time. Then, the communication arbitration unit 107 calculates a time obtained by subtracting the elapsed time T2 from the communication time T1 representing the communication cycle as an allowable time RT that is allowed as the remaining time of the communication cycle.
- the communication arbitration unit 107 may output the communication start time to the timer unit 110, and the timer unit 110 may calculate the allowable time RT.
- the communication arbitration unit 107 calculates a remaining time ST until transmission of the second communication frame 1012 being transmitted is completed.
- the communication arbitration unit 107 calculates the remaining time ST until the transmission is completed based on the remaining data size to be transmitted in the second communication frame 1012 currently being transmitted.
- processing order of S1201, S1202, and S1203 may not be as described above. As long as the required time NT, the allowable time RT, and the remaining time ST can be obtained, the order of obtaining these may be any order.
- the communication arbitration unit 107 compares the addition time obtained by adding the remaining time ST and the required time NT with the allowable time RT. If RT ⁇ NT + ST, the communication arbitration unit 107 determines that the time during which motion communication can be waited is shorter than the time to wait until completion of field communication that is currently being transmitted, and proceeds to S206. This is because, when waiting for motion communication, the first communication frame 1011 that is a motion communication frame cannot be delivered to the master device 200 by the completion of the communication cycle of the current motion communication.
- the communication arbitration unit 107 determines that the time during which motion communication can be waited is equal to or longer than the time to wait until completion of field communication currently being transmitted, and S207 Proceed to This is because the motion communication frame can be delivered to the master device 200 by the completion of the current motion communication cycle even if the motion communication is waited.
- a transmission request for a communication with a high priority is generated while a communication frame with a low priority is being transmitted in a network in which communication frames with different priorities are mixed.
- the priority control process can be executed.
- the communication device considers the allowable time until the arrival at the transmission destination is completed, and transmits a high-priority communication frame after completing transmission of a low-priority communication frame. It has a function of determining whether to cancel transmission, transmit a high priority communication frame, and then re-execute transmission of a low priority communication frame.
- the priority is set so that the transmission of the communication frame having a high priority is appropriately prioritized and the communication frame having a low priority is not delayed more than necessary. Can be controlled. That is, it is possible to suppress the delay of the completion time of the field communication while ensuring the real time property of the motion communication.
- Embodiment 2 FIG. In the present embodiment, differences from the first embodiment will be mainly described. In this embodiment, components having the same functions as those described in Embodiment 1 are denoted by the same reference numerals, and the description thereof may be omitted.
- the configuration of communication apparatus 100a according to the present embodiment is the same as that of communication apparatus 100 in FIG. 2 described in the first embodiment.
- the first communication frame 1011 is transmitted to the master device 200 that is a transmission destination device via the relay device 300.
- the communication device 100 includes a communication information storage unit 109a that stores communication information 1091a including a transit time T3 required for the relay device 300 to pass through the first communication frame 1011.
- the communication arbitration unit 107a calculates a time obtained by adding the remaining time ST, the required time NT, and the transit time T3 as the addition time AT, and executes the priority determination process S120a.
- FIG. 7 is a diagram corresponding to FIG. 6 described in the first embodiment.
- a difference from FIG. 6 is that a transit time is set corresponding to each device.
- the transit time is also referred to as a delay time required for each device to relay a communication frame.
- the communication arbitration unit 107a can know how many slave devices or network switches are connected between the communication device 100 and the master device 200 by referring to the communication information 1091a. Further, the communication arbitration unit 107a can know the transit time required for the device or switch that relays the communication frame to relay the communication frame by referring to the communication information 1091a.
- the communication information 1091a may be set with other information that affects the length of the network cable connecting between devices and switches and the network relay time.
- the processing in S1201, S1202, and S1203 is the same as that in the first embodiment.
- the communication arbitration unit 107a acquires the transit time T3 of the relay device 300 through which the first communication frame 1011 reaches the master device 200. This will be specifically described with reference to FIG.
- the communication arbitration unit 107a uses the communication information 1091a to acquire the transit time of 5 ⁇ s of the slave device SR01 that is the relay device 300 through which the communication frame passes from the own device to the master device 200.
- the communication arbitration unit 107a compares the addition time obtained by adding the remaining time ST, the required time NT, and the transit time T3 with the allowable time RT. If RT ⁇ NT + ST + T3, the communication arbitration unit 107a determines that the time during which motion communication can be waited for is shorter than the time to wait for completion of field communication currently being transmitted, and proceeds to S206. When RT ⁇ NT + ST + T3 is not satisfied, that is, when RT ⁇ NT + ST + T3, the communication arbitration unit 107 determines that the time during which motion communication can be waited is equal to or longer than the time to wait until completion of field communication that is currently being transmitted. Proceed to
- the motion communication from the slave device to the master device determines which slave device is transmitted in order depending on the communication protocol of the motion network. In this case, how much a motion communication frame addressed from the slave device to the master device can be waited differs depending on the order of transmission to the master device. For example, a case where there is a motion communication frame to be delivered to the master at an early timing after the communication cycle starts will be described. The slave device that transmitted this motion communication frame and another slave device located between the master device determine that there is a margin until the completion time of the communication cycle, and transmit this motion communication frame after the completion of field communication There is.
- the motion communication frame addressed to the master device transmitted at a later time than this motion communication frame will not be in time by the communication cycle end time. For this reason, the time during which motion communication can be waited for varies depending on the transmission source of the motion communication frame for which a transmission request has been made. In order to determine the priority in consideration of such a case, it is preferable to set a transit time in consideration of the order of the slave devices in the communication information 1091a.
- the communication apparatus According to the communication apparatus according to the present embodiment, communication between the own apparatus and the transmission destination apparatus in the network configuration information set in advance in determining whether or not to cancel transmission of a communication frame with a low priority is necessary.
- the delay time associated with can be calculated and used for determination. Further, in determining whether or not transmission of a low-priority communication frame needs to be canceled, based on the transmission source information of the communication frame for which a transmission request has been made, The delay time associated with communication between the device and the destination device can be calculated and used for determination. Therefore, according to the communication apparatus according to the present embodiment, it is possible to perform priority control with higher accuracy.
- the network interface unit 1021, the network interface unit 1041, the communication frame generation unit 106, the communication arbitration unit 107, and the timer unit 110 constitute the communication devices 100 and 100a as independent functional blocks.
- the communication device may not have the above-described configuration, and the configuration of the communication device is arbitrary.
- the functional blocks of the communication device are arbitrary as long as the functions described in the above embodiments can be realized.
- the communication device may be configured by any other combination of these functional blocks or an arbitrary block configuration.
- the communication device may be a communication system including a plurality of devices instead of a single device.
- Embodiments 1 and 2 have been described, a plurality of these two embodiments may be partially combined. Alternatively, one of the two embodiments may be partially implemented. In addition, these two embodiments may be implemented in any combination as a whole or in part. In addition, said embodiment is an essentially preferable illustration, Comprising: It does not intend restrict
Abstract
Description
マスタ装置と各スレーブ装置の間で送受信される指令及び応答が一巡するまでの時間は、サイクルタイムと呼ばれる。
モーション制御などを活用して精度の高い制御を行う際は、予め通信を行う周期を設定しておく。このように予め設定される通信を行う周期は通信周期と呼ばれる。マスタ装置と各スレーブ装置は、この通信周期より短い時間でサイクルタイムが完了するように通信を行う。
具体的には、通信周期が200usであるときは、マスタ装置から各スレーブへの指令、各スレーブからマスタへの応答、が200usに1回行われる。このため、サイクルタイムは200us未満とならなければならない。
フィールド通信とモーション通信は、ネットワークを区別することもあるが、省配線を目的として1つのネットワークでフィールド通信とモーション通信とを行うケースがある。
通信周期は、フィールド通信よりもモーション通信の方が短いケースが多い。
フィールド通信を低優先度、モーション通信を高優先度に設定することにより、フィールド通信とモーション通信とが混在するネットワークにおいて、通信周期が短いモーション通信のサイクルタイムを短くすることができる。
特許文献1に開示された方法では、障害通知用の通信フレームを高優先度の通信、他の通信フレームを低優先度の通信と置き換えることが可能である。特許文献1の方法では、障害通知の通信フレームの送信が発生した場合、他の通信フレームを送信している途中であっても、その送信を中断し、障害通知の通信フレームを先に送信する。そして、特許文献1の方法では、障害通知の通信フレームの送信が完了した後で他の通信フレームを最初から送信し直す。
モーション通信においては、通信周期内で、各スレーブ装置がマスタ装置にモーション通信フレームを届けなければならない。しかし、スレーブ装置において、フィールド通信の通信フレームの送信中にモーション通信の通信フレームの送信要求が発生した場合、常にフィールド通信の通信フレームの送信を中断すると、フィールド通信の効率が落ちてしまう。このように、特許文献1の方法では、モーション通信とフィールド通信が混在するネットワークにおいて、モーション通信を優先させつつフィールド通信もなるべく早く実施したいという要求は満たせないという課題がある。
前記第2の通信フレームの送信中に前記第1の通信フレームの送信要求が発生した場合、送信先装置において前記第1の通信フレームの受信が開始されるまでにかかる時間の許容時間と、前記第2の通信フレームの送信が完了するまでの残り時間と、前記送信先装置において前記第1の通信フレームの受信が開始されるまでの所要時間とを取得し、取得した前記許容時間と前記残り時間と前記所要時間とに基づいて、前記第2の通信フレームの送信を継続するか否かを判定する通信調停部を備える。
***構成の説明***
図1は、本実施の形態に係るネットワークシステム500の構成の一例を示す図である。
図1に示すように、ネットワークシステム500は、ライン型ネットワークであり、マスタ装置200と、複数のスレーブ装置SR01,SR02,SR03,SR04とを備える。各スレーブ装置は、本実施の形態に係る通信装置100である。
すなわち、通信装置100は、ネットワークシステム500に接続され、マスタ装置200と通信を行うスレーブ装置である。なお、ネットワークは、ライン型ネットワークでなくてもよく、リング型、スター型、バス型等、他の形状のネットワークであっても本実施の形態を適用することができる。
フィールド通信では、フィールド通信フレームが送受信される。フィールド通信フレームは、第2の通信フレーム1012の例である。
モーション通信では、フィールド通信フレームを送信する優先度より高い優先度のモーション通信フレームが送受信される。モーション通信フレームは、第1の通信フレーム1011の例である。
以下の説明では、モーション通信フレームを第1の通信フレーム1011とし、フィールド通信フレームを第2の通信フレーム1012として説明する。
通信装置100は、第1の通信フレーム1011を送信すると共に、第1の通信フレーム1011を送信する優先度より低い優先度の第2の通信フレーム1012を送信する。
通信装置100は、通信部102、通信フレーム生成部106、通信調停部107、バッファ108、通信情報記憶部109、タイマ部110、ネットワークポート1022、ネットワークポート1042を備える。通信部102は、ネットワークインタフェース部1021、ネットワークインタフェース部1041を備える。
ネットワークインタフェース部1041は、ネットワークポート1042及び非マスタ装置側ネットワークケーブルを介して非マスタ装置側ネットワークと通信フレームを送受する。
通信装置100は、一方のネットワークポートから受信した通信フレームを他方のネットワークポートに中継する。
また、通信装置100は、通信フレーム生成部106で生成した通信フレームをネットワークポート1022もしくはネットワークポート1042から送信する。
通信装置100がモーション通信を行うためのスレーブ装置であれば、自局の通信フレーム生成部106で生成するのはモーション通信フレーム、すなわち第1の通信フレーム1011となる。また、通信装置100がフィールド通信を行うためのスレーブ装置であれば、自局の通信フレーム生成部106で生成するのはフィールド通信フレーム、すなわち第2の通信フレーム1012となる。
通信調停部107は、自局生成通信フレームと、中継通信フレームとの調停を行う。
自局生成通信フレームと中継通信フレームとは、それぞれ、第1の通信フレーム1011の場合もあれば、第2の通信フレーム1012の場合もある。
通信情報1091には、通信装置100から送信が開始された通信フレームが、ネットワークシステム500に接続される他の装置の各々において受信が開始されるまでの所要時間が予め設定されている。通信情報1091の詳細については後述する。
上述したように、モーション通信フレーム、すなわち第1の通信フレーム1011は、通信周期を表すkT1以内に送信元装置から送信先装置に送信される必要がある。
よって、通信調停部107は、送信元装置により第1の通信フレーム1011の送信が開始された時点から現時点までの経過時間T2を、通信時間T1から減じた時間を許容時間RTとして算出する。
所要時間NTは、送信先装置において第1の通信フレーム1011の受信が開始されるまでの所要時間である。
通信調停部107は、取得した許容時間RTと残り時間STと所要時間NTとに基づいて、第2の通信フレーム1012の送信を継続するか否かを判定する。
バッファ108は、上記のケースのように、送信要求があったときに直ちに送信できない通信フレームを格納する。
通信調停部107は、残り時間STと所要時間NTとを加算した時間を加算時間ATとして算出し、算出した加算時間ATと許容時間RTとを比較する。通信調停部107は、許容時間RTが加算時間AT以上の場合、第2の通信フレーム1012の送信を継続する。そして、通信調停部107は、第2の通信フレーム1012の送信完了後に第1の通信フレーム1011の送信を開始する。
また、通信調停部107は、許容時間RTが加算時間ATより短い場合、第2の通信フレーム1012の送信を中断する。そして、通信調停部107は、第1の通信フレーム1011の送信を開始し、第1の通信フレーム1011の送信完了後に第2の通信フレーム1012の送信を再び開始する。
通信装置100は、プロセッサ901、補助記憶装置902、メモリ903、通信装置904、入力インタフェース905、ディスプレイインタフェース906といったハードウェアを備える。
プロセッサ901は、信号線910を介して他のハードウェアと接続され、これら他のハードウェアを制御する。
入力インタフェース905は、入力装置907に接続されている。
ディスプレイインタフェース906は、ディスプレイ908に接続されている。
プロセッサ901は、例えば、CPU(Central Processing Unit)、DSP(Digital Signal Processor)、GPU(Graphics Processing Unit)である。
補助記憶装置902は、例えば、ROM(Read Only Memory)、フラッシュメモリ、HDD(Hard Disk Drive)である。
メモリ903は、例えば、RAM(Random Access Memory)である。
通信装置904は、データを受信するレシーバー9041及びデータを送信するトランスミッター9042を含む。
通信装置904は、例えば、通信チップ又はNIC(Network Interface Card)である。
入力インタフェース905は、入力装置907のケーブル911が接続されるポートである。
入力インタフェース905は、例えば、USB(Universal Serial Bus)端子である。
ディスプレイインタフェース906は、ディスプレイ908のケーブル912が接続されるポートである。
ディスプレイインタフェース906は、例えば、USB端子又はHDMI(登録商標)(High Definition Multimedia Interface)端子である。
入力装置907は、例えば、マウス、キーボード又はタッチパネルである。
ディスプレイ908は、例えば、LCD(Liquid Crystal Display)である。
このプログラムは、メモリ903にロードされ、プロセッサ901に読み込まれ、プロセッサ901によって実行される。
更に、補助記憶装置902には、OS(Operating System)も記憶されている。
そして、OSの少なくとも一部がメモリ903にロードされ、プロセッサ901はOSを実行しながら、「部」の機能を実現するプログラムを実行する。
図3では、1つのプロセッサ901が図示されているが、通信装置100が複数のプロセッサ901を備えていてもよい。
そして、複数のプロセッサ901が「部」の機能を実現するプログラムを連携して実行してもよい。
また、「部」の処理の結果を示す情報やデータや信号値や変数値が、メモリ903、補助記憶装置902、又は、プロセッサ901内のレジスタ又はキャッシュメモリにファイルとして記憶される。
また、「部」を「回路」又は「工程」又は「手順」又は「処理」に読み替えてもよい。また、「処理」を「回路」又は「工程」又は「手順」又は「部」に読み替えてもよい。
「回路」及び「サーキットリー」は、プロセッサ901だけでなく、ロジックIC又はGA(Gate Array)又はASIC(Application Specific Integrated Circuit)又はFPGA(Field-Programmable Gate Array)といった他の種類の処理回路をも包含する概念である。
図4を用いて、本実施の形態に係る通信装置100の通信方法、通信処理S100について説明する。
通信装置100は、第1の通信フレーム1011を送信すると共に、第1の通信フレーム1011を送信する優先度より低い優先度の第2の通信フレーム1012を送信する。
通信調停部107は、第2の通信フレーム1012の送信中に第1の通信フレーム1011の送信要求が発生したか否かを判定する送信判定処理S110を実行する。
S201において、通信調停部107は、通信調停部107に対して送信要求があるか否かを判定する。
S201において送信要求があると判定した場合は、S202に進む。
S201において送信要求がないと判定した場合は、送信要求があると判定されるまで、S201の処理を繰り返す。
S202において送信中の通信フレームがあると判定した場合は、S203に進む。
S202において送信中の通信フレームがないと判定した場合は、S204に進む。
S203において第2の通信フレーム1012の送信中に第1の通信フレーム1011の送信要求が発生したと判定した場合は、S205に進む。
S203において第2の通信フレーム1012の送信中に第1の通信フレーム1011の送信要求が発生したものではないと判定した場合は、S207に進む。
通信調停部107は、送信判定処理S110により第2の通信フレーム1012の送信中に第1の通信フレーム1011の送信要求が発生したと判定された場合、優先度判定処理S120を実行する。通信調停部107は、送信先装置において第1の通信フレーム1011の受信が開始されるまでにかかる時間の許容時間RTと、第2の通信フレーム1012の送信が完了するまでの残り時間STと、送信先装置において第1の通信フレーム1011の受信が開始されるまでの所要時間NTとを取得する。通信調停部107は、取得した許容時間RTと残り時間STと所要時間NTとに基づいて、第2の通信フレーム1012の送信を継続するか否かを判定する優先度判定処理S120を実行する。
優先度判定処理S120の詳細については後述する。
S205において、モーション通信を待機させることができる時間が現在送信中のフィールド通信の完了まで待つ時間よりも短くないと判定した場合、S207に進む。
S204において、通信調停部107は、送信要求された通信フレームの送信を実行する。すなわち、S204では、通信調停部107は、送信要求があり、かつ送信中の通信フレームが無い場合は、送信要求された通信フレームの送信を実行する。
通信調停部107は、第1の通信フレーム1011の送信要求が、第2の通信フレーム1012の送信中に発生した場合、第2の通信フレーム1012の送信完了まで第1の通信フレーム1011を待機させることができるか否かを判定する。
そして、第1の通信フレーム1011を待機させることができないと判定した場合は、S206で通信調停部107は送信中の第2の通信フレーム1012の送信を中断し、第1の通信フレーム1011の送信を実行する。
通信調停部107は、通信情報記憶部109から通信調停部107に入力される通信情報1091と、タイマ部110から通信調停部107に入力されるタイマ情報1101とを用いて、優先度判定処理S120を実行する。
通信情報1091は、ネットワークを介してマスタ装置200と接続されているスレーブ装置である通信装置100が、マスタ装置200との間に何局のスレーブ装置を介しているかを示す情報である。
図6は、図1に示すスレーブ装置SR02が通信装置100である場合の通信情報1091の一例を示している。
装置IDには、マスタ装置200を示すMSR01、各スレーブ装置を示すSR01,SR02,SR03,SR04が設定される。
接続順には、各装置がマスタ装置から何番目に接続されているかが設定される。
種別には、各装置がマスタであるか、スレーブであるか、自装置であるかが設定される。
装置起動後などの装置初期化のフェーズにおいて、マスタ装置200が各スレーブ装置までのネットワーク中継時間を測定し、測定結果を各スレーブ装置に送信する。各スレーブ装置は、マスタ装置200から送信された測定結果をもとに通信情報1091に所要時間を設定する。このような方法により所要時間が通信情報1091に設定される。また、このような方法に限らず、他の方法によって通信情報1091を設定しても構わない。
図6を用いて具体的に説明する。通信調停部107は、通信情報1091を用いて、自装置から送信先装置であるマスタ装置200までの所要時間20μsを取得する。
なお、通信調停部107は通信開始時刻をタイマ部110に出力するものとし、タイマ部110が許容時間RTを算出するものとしてもよい。
通信調停部107は、RT<NT+STであるときは、モーション通信を待機させることができる時間が現在送信中のフィールド通信の完了まで待つ時間よりも短いと判定し、S206に進む。これは、モーション通信を待たせると、現在のモーション通信の通信周期の完了までに、モーション通信フレームである第1の通信フレーム1011をマスタ装置200に届けることができないことになるためである。
本実施の形態に係る通信装置によれば、優先度が異なる通信フレームが混在するネットワークにおいて、優先度の低い通信フレームを送信している最中に、優先度が高い通信の送信要求が発生したとき、適切な優先度制御処理を実行することができる。通信装置は、送信先への到着完了までの許容時間を考慮し、優先度の低い通信フレームの送信を完了してから高優先度の通信フレームの送信を行うか、優先度の低い通信フレームの送信をキャンセルし、高優先度の通信フレームの送信を行い、その後で優先度の低い通信フレームの送信を再実行するかの判定機能を有する。
したがって、本実施の形態に係る通信装置によれば、優先度の高い通信フレームの送信を適切に優先させつつ、優先度の低い通信フレームについても必要以上に遅延させることがないように優先度を制御することができる。すなわち、モーション通信のリアルタイム性を確保しつつ、フィールド通信の完了時間の遅延を抑制することができる。
本実施の形態では、主に、実施の形態1との差異点について説明する。
本実施の形態において、実施の形態1で説明した構成部と同様の機能を有する構成部については同一の符号を付し、その説明を省略する場合がある。
図1に示すように、例えば、通信装置100がマスタ装置200から2番目のスレーブ装置SR02である場合、通信フレームをマスタ装置200に届けるためには、通信フレームはスレーブ装置SR01を経由する必要がある。このスレーブ装置SR01のように、通信フレームを中継する装置を中継装置300とも称する。
本実施の形態では、第1の通信フレーム1011は、中継装置300を経由して送信先装置であるマスタ装置200に送信されるものとする。
通信装置100は、中継装置300が第1の通信フレーム1011の経由に要する経由時間T3を含む通信情報1091aを記憶する通信情報記憶部109aを備える。
通信調停部107aは、残り時間STと所要時間NTと経由時間T3とを加算した時間を加算時間ATとして算出し、優先度判定処理S120aを実行する。
図6と異なる点は、各装置に対応して経由時間が設定されている点である。
経由時間は、各装置が通信フレームを中継するのに要する遅延時間とも称される。
図8を用いて、本実施の形態に係る通信装置100aの優先度判定処理S120aについて説明する。
S1203aにおいて、通信調停部107aは、第1の通信フレーム1011がマスタ装置200に到達するまでに経由する中継装置300の経由時間T3を取得する。
図7を用いて具体的に説明する。通信調停部107aは、通信情報1091aを用いて、自装置からマスタ装置200までに通信フレームが経由する中継装置300であるスレーブ装置SR01の経由時間5μsを取得する。
通信調停部107aは、RT<NT+ST+T3であるときは、モーション通信を待機させることができる時間が現在送信中のフィールド通信の完了まで待つ時間よりも短いと判定し、S206に進む。
通信調停部107は、RT<NT+ST+T3でないとき、すなわちRT≧NT+ST+T3であるときは、モーション通信を待機させることができる時間が現在送信中のフィールド通信の完了まで待つ時間以上であると判定し、S207に進む。
例えば、通信周期が始まって、早いタイミングでマスタに届けるべきモーション通信フレームがある場合について説明する。このモーション通信フレームを送信したスレーブ装置と、マスタ装置の間に位置する別のスレーブ装置とが、通信周期の完了時刻まで余裕があると判定し、フィールド通信完了後にこのモーション通信フレームを送信することがある。このような場合には、このモーション通信フレームよりも、遅い時間に送信されたマスタ装置宛てのモーション通信フレームが、通信周期終了時刻までに間に合わなくなってしまうことが考えられる。
このため、モーション通信を待機できる時間は、送信要求があったモーション通信フレームの送信元によって、都度異なることとなる。
このようなケースを考慮して、優先度の判定を行うために、通信情報1091aには、スレーブ装置の順番を考慮した経由時間を設定しておくことが好適である。
本実施の形態に係る通信装置によれば、優先度の低い通信フレームの送信をキャンセル要否の判定において、予め設定されていたネットワークの構成情報における、自装置と送信先装置との間の通信に伴う遅延時間を計算して判定に使用することができる。
さらに、優先度の低い通信フレームの送信をキャンセル要否の判定において、送信要求があった通信フレームの送信元情報を元に、通信フレームごとに異なる予め設定されていたネットワークの構成情報における自局装置と送信先装置の間の通信に伴う遅延時間を計算して判定に使用することができる。
したがって、本実施の形態に係る通信装置によれば、より精度の高い優先度制御を行うことができる。
また、通信装置は、1つの装置でなく、複数の装置から構成された通信システムでもよい。
なお、上記の実施の形態は、本質的に好ましい例示であって、本発明、その適用物や用途の範囲を制限することを意図するものではなく、必要に応じて種々の変更が可能である。
Claims (7)
- 第1の通信フレームを送信すると共に、前記第1の通信フレームを送信する優先度より低い優先度の第2の通信フレームを送信する通信装置において、
前記第2の通信フレームの送信中に前記第1の通信フレームの送信要求が発生した場合、送信先装置において前記第1の通信フレームの受信が開始されるまでにかかる時間の許容時間と、前記第2の通信フレームの送信が完了するまでの残り時間と、前記送信先装置において前記第1の通信フレームの受信が開始されるまでの所要時間とを取得し、取得した前記許容時間と前記残り時間と前記所要時間とに基づいて、前記第2の通信フレームの送信を継続するか否かを判定する通信調停部を備える通信装置。 - 前記第1の通信フレームは、通信周期を表す通信時間以内に送信元装置から前記送信先装置に送信され、
前記通信調停部は、
前記送信元装置により前記第1の通信フレームの送信が開始された時点から現時点までの経過時間を、前記通信時間から減じた時間を前記許容時間として取得する請求項1に記載の通信装置。 - 前記通信調停部は、
前記残り時間と前記所要時間とを加算した時間を加算時間として算出し、算出した前記加算時間と前記許容時間とを比較し、前記許容時間が前記加算時間以上の場合、前記第2の通信フレームの送信を継続し、前記第2の通信フレームの送信完了後に前記第1の通信フレームの送信を開始し、
前記許容時間が前記加算時間より短い場合、前記第2の通信フレームの送信を中断して前記第1の通信フレームの送信を開始し、前記第1の通信フレームの送信完了後に前記第2の通信フレームの送信を再び開始する請求項2に記載の通信装置。 - 前記第1の通信フレームは、中継装置を経由して前記送信先装置に送信され、
前記通信装置は、
前記中継装置が前記第1の通信フレームの経由に要する経由時間を含む通信情報を記憶する通信情報記憶部を備え、
前記通信調停部は、
前記残り時間と前記所要時間と前記経由時間とを加算した時間を前記加算時間として算出する請求項3に記載の通信装置。 - 前記通信情報は、さらに、前記所要時間を含む請求項4に記載の通信装置。
- 第1の通信フレームを送信すると共に、前記第1の通信フレームを送信する優先度より低い優先度の第2の通信フレームを送信する通信装置の通信方法において、
通信調停部が、前記第2の通信フレームの送信中に前記第1の通信フレームの送信要求が発生したか否かを判定し、
通信調停部が、前記第2の通信フレームの送信中に前記第1の通信フレームの送信要求が発生したと判定された場合、送信先装置において前記第1の通信フレームの受信が開始されるまでにかかる時間の許容時間と、前記第2の通信フレームの送信が完了するまでの残り時間と、前記送信先装置において前記第1の通信フレームの受信が開始されるまでの所要時間とを取得し、取得した前記許容時間と前記残り時間と前記所要時間とに基づいて、前記第2の通信フレームの送信を継続するか否かを判定する通信方法。 - 第1の通信フレームを送信すると共に、前記第1の通信フレームを送信する優先度より低い優先度の第2の通信フレームを送信する通信装置のプログラムにおいて、
前記第2の通信フレームの送信中に前記第1の通信フレームの送信要求が発生したか否かを判定する送信判定処理と、
前記送信判定処理により前記第2の通信フレームの送信中に前記第1の通信フレームの送信要求が発生したと判定された場合、送信先装置において前記第1の通信フレームの受信が開始されるまでにかかる時間の許容時間と、前記第2の通信フレームの送信が完了するまでの残り時間と、前記送信先装置において前記第1の通信フレームの受信が開始されるまでの所要時間とを取得し、取得した前記許容時間と前記残り時間と前記所要時間とに基づいて、前記第2の通信フレームの送信を継続するか否かを判定する優先度判定処理と
をコンピュータに実行させるプログラム。
Priority Applications (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2015/054791 WO2016132530A1 (ja) | 2015-02-20 | 2015-02-20 | 通信装置、通信方法及びプログラム |
JP2017500239A JP6275320B2 (ja) | 2015-02-20 | 2015-02-20 | 通信装置、通信方法及びプログラム |
CN201580076580.5A CN107251516A (zh) | 2015-02-20 | 2015-02-20 | 通信装置、通信方法及程序 |
KR1020177022920A KR101811189B1 (ko) | 2015-02-20 | 2015-02-20 | 통신 장치, 통신 방법 및 기록 매체에 저장된 프로그램 |
DE112015006192.4T DE112015006192T5 (de) | 2015-02-20 | 2015-02-20 | Kommunikationsvorrichtung, Kommunikationsverfahren und Programm |
US15/549,079 US20180041375A1 (en) | 2015-02-20 | 2015-02-20 | Communication device, communication method, and computer readable medium |
TW104111880A TW201631943A (zh) | 2015-02-20 | 2015-04-14 | 通訊裝置、通訊方法以及程式產品 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2015/054791 WO2016132530A1 (ja) | 2015-02-20 | 2015-02-20 | 通信装置、通信方法及びプログラム |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016132530A1 true WO2016132530A1 (ja) | 2016-08-25 |
Family
ID=56692072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2015/054791 WO2016132530A1 (ja) | 2015-02-20 | 2015-02-20 | 通信装置、通信方法及びプログラム |
Country Status (7)
Country | Link |
---|---|
US (1) | US20180041375A1 (ja) |
JP (1) | JP6275320B2 (ja) |
KR (1) | KR101811189B1 (ja) |
CN (1) | CN107251516A (ja) |
DE (1) | DE112015006192T5 (ja) |
TW (1) | TW201631943A (ja) |
WO (1) | WO2016132530A1 (ja) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017208743A (ja) * | 2016-05-20 | 2017-11-24 | 三菱電機株式会社 | 中継装置及びフレーム転送方法 |
WO2018180582A1 (ja) | 2017-03-30 | 2018-10-04 | 日本電気株式会社 | 情報処理装置、情報処理方法、及び、記録媒体 |
JP2019053591A (ja) * | 2017-09-15 | 2019-04-04 | 株式会社東芝 | 通知制御装置、通知制御方法及びプログラム |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6601068B2 (ja) | 2015-09-01 | 2019-11-06 | 富士通コネクテッドテクノロジーズ株式会社 | 通信方法、通信装置及び通信プログラム |
JP6601066B2 (ja) * | 2015-09-01 | 2019-11-06 | 富士通コネクテッドテクノロジーズ株式会社 | 通信方法、通信装置及び通信プログラム |
JP6711339B2 (ja) * | 2017-10-25 | 2020-06-17 | 横河電機株式会社 | 通信処理装置、プログラム、および通信処理方法 |
KR102460071B1 (ko) * | 2017-12-21 | 2022-10-28 | 삼성전자주식회사 | 통신모뎀 전단의 통신신호 식별 장치 및 방법 |
JP6977600B2 (ja) | 2018-02-14 | 2021-12-08 | オムロン株式会社 | 制御装置、制御システム、制御方法、および、制御プログラム |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1098605A (ja) * | 1996-09-20 | 1998-04-14 | Canon Inc | ファクシミリ装置 |
JP2002185552A (ja) * | 2000-12-11 | 2002-06-28 | Matsushita Electric Ind Co Ltd | 通信処理装置及び通信処理方法 |
US20060109866A1 (en) * | 2002-10-25 | 2006-05-25 | Elektro Beckhoff Gmbh | Methods, interface unit and nodes for using in parallel a communication network for real-time applications and for non-real-time applications |
JP2006279188A (ja) * | 2005-03-28 | 2006-10-12 | Nec Corp | 優先制御を行う送信制御装置、通信制御装置、通信システム、通信ネットワーク、及び送信方法 |
JP2006332949A (ja) * | 2005-05-25 | 2006-12-07 | Mitsubishi Electric Corp | 通信制御方法および通信制御装置 |
US8291142B2 (en) * | 2008-04-11 | 2012-10-16 | Phoenix Contact Gmbh & Co. Kg | Method, bus components, and control system for ethernet-based control of an automation system |
JP2014233008A (ja) * | 2013-05-29 | 2014-12-11 | 株式会社安川電機 | 産業用デバイス、コントローラ、データ転送方法及びデータ送信方法 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3625280B2 (ja) * | 2001-11-02 | 2005-03-02 | 松下電器産業株式会社 | 通信方法、通信装置及び通信システム |
JP4241343B2 (ja) * | 2003-11-26 | 2009-03-18 | 富士電機システムズ株式会社 | 送信タイミング決定方法、バス使用権の調停方法、ネットワークシステム、プログラム |
US7660922B2 (en) * | 2006-05-12 | 2010-02-09 | Intel Corporation | Mechanism to flexibly support multiple device numbers on point-to-point interconnect upstream ports |
US20070291768A1 (en) * | 2006-06-16 | 2007-12-20 | Harris Corporation | Method and system for content-based differentiation and sequencing as a mechanism of prioritization for QOS |
CN101018115B (zh) * | 2007-02-13 | 2010-05-19 | 山东大学 | 基于标准以太网的实时同步网络及其工作方法 |
WO2013111285A1 (ja) * | 2012-01-25 | 2013-08-01 | 三菱電機株式会社 | 通信装置及び通信方法及びプログラム |
JP5888025B2 (ja) * | 2012-03-14 | 2016-03-16 | ヤマハ株式会社 | 通信制御装置 |
CA3212170A1 (en) * | 2013-03-15 | 2014-09-18 | Techfields Pharma Co., Ltd. | Novel high penetration drugs and their compositions thereof for treatment of parkinson diseases |
CN104105216A (zh) * | 2013-04-09 | 2014-10-15 | 华为终端有限公司 | 一种资源预约方法及装置 |
-
2015
- 2015-02-20 US US15/549,079 patent/US20180041375A1/en not_active Abandoned
- 2015-02-20 KR KR1020177022920A patent/KR101811189B1/ko active IP Right Grant
- 2015-02-20 CN CN201580076580.5A patent/CN107251516A/zh active Pending
- 2015-02-20 WO PCT/JP2015/054791 patent/WO2016132530A1/ja active Application Filing
- 2015-02-20 DE DE112015006192.4T patent/DE112015006192T5/de not_active Withdrawn
- 2015-02-20 JP JP2017500239A patent/JP6275320B2/ja not_active Expired - Fee Related
- 2015-04-14 TW TW104111880A patent/TW201631943A/zh not_active IP Right Cessation
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1098605A (ja) * | 1996-09-20 | 1998-04-14 | Canon Inc | ファクシミリ装置 |
JP2002185552A (ja) * | 2000-12-11 | 2002-06-28 | Matsushita Electric Ind Co Ltd | 通信処理装置及び通信処理方法 |
US20060109866A1 (en) * | 2002-10-25 | 2006-05-25 | Elektro Beckhoff Gmbh | Methods, interface unit and nodes for using in parallel a communication network for real-time applications and for non-real-time applications |
JP2006279188A (ja) * | 2005-03-28 | 2006-10-12 | Nec Corp | 優先制御を行う送信制御装置、通信制御装置、通信システム、通信ネットワーク、及び送信方法 |
JP2006332949A (ja) * | 2005-05-25 | 2006-12-07 | Mitsubishi Electric Corp | 通信制御方法および通信制御装置 |
US8291142B2 (en) * | 2008-04-11 | 2012-10-16 | Phoenix Contact Gmbh & Co. Kg | Method, bus components, and control system for ethernet-based control of an automation system |
JP2014233008A (ja) * | 2013-05-29 | 2014-12-11 | 株式会社安川電機 | 産業用デバイス、コントローラ、データ転送方法及びデータ送信方法 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017208743A (ja) * | 2016-05-20 | 2017-11-24 | 三菱電機株式会社 | 中継装置及びフレーム転送方法 |
WO2018180582A1 (ja) | 2017-03-30 | 2018-10-04 | 日本電気株式会社 | 情報処理装置、情報処理方法、及び、記録媒体 |
US11178058B2 (en) | 2017-03-30 | 2021-11-16 | Nec Corporation | Information processing device, information processing method and recording medium |
JP2019053591A (ja) * | 2017-09-15 | 2019-04-04 | 株式会社東芝 | 通知制御装置、通知制御方法及びプログラム |
JP7000088B2 (ja) | 2017-09-15 | 2022-01-19 | 株式会社東芝 | 通知制御装置、通知制御方法及びプログラム |
Also Published As
Publication number | Publication date |
---|---|
TW201631943A (zh) | 2016-09-01 |
CN107251516A (zh) | 2017-10-13 |
KR101811189B1 (ko) | 2017-12-20 |
DE112015006192T5 (de) | 2017-11-09 |
JP6275320B2 (ja) | 2018-02-07 |
US20180041375A1 (en) | 2018-02-08 |
KR20170100036A (ko) | 2017-09-01 |
JPWO2016132530A1 (ja) | 2017-08-31 |
TWI561042B (ja) | 2016-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6275320B2 (ja) | 通信装置、通信方法及びプログラム | |
WO2018120780A1 (zh) | PCIe中断方法和系统 | |
US8719476B2 (en) | Communication system, master device and slave device, and communication method, configured to handle plural concurrent requests | |
CN112715019B (zh) | 通信装置、通信系统、通信方法及计算机可读取的记录介质 | |
CN108287804B (zh) | 一种i2c控制器驱动方法及系统 | |
KR100824792B1 (ko) | 커맨드 처리 장치와 방법 및 이를 포함하는 시스템 | |
WO2020180393A1 (en) | Dynamic optimal data sampling time on a multi-drop bus | |
JP2016066278A (ja) | データ転送制御システム、データ転送制御方法、及び、データ転送制御プログラム | |
JP6146508B1 (ja) | 同期処理ユニット、デバイス、システムおよび方法 | |
KR101005933B1 (ko) | 마스터와 슬레이브 간의 데이터 전송방법 및 장치 | |
CN112703704B (zh) | 通信装置、通信系统、通信方法及计算机可读取的记录介质 | |
US7506079B2 (en) | Data processor and data communication method | |
US10606232B2 (en) | Controller system and control method | |
KR20060112349A (ko) | 에스오씨 버스 시스템 및 버스 데이터 처리방법 | |
US10514808B2 (en) | Method, apparatus and system for communication with a sensor | |
WO2017002244A1 (ja) | スレーブ装置及び通信方法及び通信プログラム | |
JP6992694B2 (ja) | 通信装置及び通信方法 | |
JP7226084B2 (ja) | 情報処理装置 | |
US11233514B2 (en) | Semiconductor device including subsystem interfaces and communications method thereof | |
KR100460994B1 (ko) | 직접 메모리 액세스 기능을 구비한 광대역 입출력 장치 및그 방법 | |
JP5334173B2 (ja) | データ転送システム及びリトライ制御方法 | |
JP2019144658A (ja) | 評価ボード | |
JP2020154608A (ja) | 情報処理装置及び情報処理システム | |
TW201434286A (zh) | 中繼裝置及中繼方法 | |
JP2016144014A (ja) | 情報処理装置、情報処理方法、及び、プログラム |
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: 15882632 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2017500239 Country of ref document: JP Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: 15549079 Country of ref document: US |
|
ENP | Entry into the national phase |
Ref document number: 20177022920 Country of ref document: KR Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: 112015006192 Country of ref document: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15882632 Country of ref document: EP Kind code of ref document: A1 |