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

Communication apparatus, communication method, and communication program Download PDF

Info

Publication number
TW201740705A
TW201740705A TW105118105A TW105118105A TW201740705A TW 201740705 A TW201740705 A TW 201740705A TW 105118105 A TW105118105 A TW 105118105A TW 105118105 A TW105118105 A TW 105118105A TW 201740705 A TW201740705 A TW 201740705A
Authority
TW
Taiwan
Prior art keywords
communication
communication device
port
communication port
transmission
Prior art date
Application number
TW105118105A
Other languages
Chinese (zh)
Inventor
Tsuguya Oishi
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of TW201740705A publication Critical patent/TW201740705A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/427Loop networks with decentralised control
    • H04L12/433Loop networks with decentralised control with asynchronous transmission, e.g. token ring, register insertion

Abstract

This communication apparatus (100) is included in a communication system in which a plurality of communication apparatuses each having a first port (101) and a second port (102) are connected in a ring shape, and in which a transmission right for transmitting a frame is transferred in an order among the plurality of communication apparatuses. The communication apparatus (100) is provided with a transmission unit (120) for generating a periodic frame including data that is periodically transmitted when the transmission right is held in said communication apparatus, and for transmitting the periodic frame from the first port (101) to the second port (102) of a communication apparatus next in the order to said communication apparatus. Moreover, the communication apparatus (100) is provided with a port control unit (140) that invalidates the first port (101) when the transmission right is held by the transmission apparatus next in order.

Description

通信裝置、通信方法以及通信程式產品 Communication device, communication method, and communication program product

本發明係關於通信裝置、通信方法以及通信程式產品。 The present invention relates to a communication device, a communication method, and a communication program product.

FA(Factory Automat ion)網路系統領域中,支援全雙工通信的複數控制機器與網路連結,以進行通信。在此通信中包括:依各通信週期定期進行的定期通信、以及當有要求時才進行的不定期通信。另外,控制機器未識別其他控制機器的位置的情況下,在環狀構成時係從兩通訊埠傳送資料。另外,在環狀構成的情況下,為了不讓廣播風暴發生,1台控制機器具有封鎖通訊埠,亦即封鎖住而不中繼封包的通訊埠。 In the field of FA (Factory Automation) network systems, a complex control device that supports full-duplex communication is connected to a network to communicate. This communication includes periodic communication that is periodically performed in accordance with each communication cycle, and irregular communication that is performed when required. Further, when the control device does not recognize the position of the other control device, the data is transmitted from the two communication ports in the ring configuration. In addition, in the case of a ring configuration, in order to prevent broadcast storms from occurring, one control device has a blocked communication port, that is, a communication port that blocks and does not relay packets.

藉由如上述的構成控制複數控制機器間的傳送之方法有權杖傳遞(token passing)方式。權杖傳遞方式中,透過網路依序將權杖傳遞至各控制裝置,只有接收權杖的控制裝置具有資料的傳送權,藉此進行避免資料衝突的傳送控制。 The method of controlling the transfer between the plurality of control machines as described above is the method of token passing. In the token transfer mode, the token is sequentially transmitted to each control device through the network, and only the control device that receives the token has the transmission right of the data, thereby performing transmission control for avoiding data conflict.

在使用權杖傳遞方式的FA網路系統中,有如非專利文獻1的CC-Link IE Filed的方法。CC-Link IE Filed中,為了確保定期通信的定時性,同時實現其和不定期通信的共存,而限制可傳送的不定期通信之量。限制不定期通信的量的制限方法之一為,決定權杖巡迴各控制機器1周的期間的可傳送最大 不定期通信量的方式,亦即連結掃描(link scan)單位制限方式。先行技術文獻 In the FA network system using the token transfer method, there is a method of CC-Link IE Filed of Non-Patent Document 1. In CC-Link IE Filed, in order to ensure the timing of regular communication, and to coexist with irregular communication, the amount of irregular communication that can be transmitted is limited. One of the methods for limiting the amount of irregular communication is to determine the maximum transferable period during which the tokens are patrolled for one week. The way of irregular traffic, that is, the link scan unit limitation method. Advanced technical literature

非專利文獻1:[CC-Link IE field網路」之概要、CC-Link協會、2010年、網路<URL:https//www.cc-link.org/jp/material/documents/ie_field_100210. pdf> Non-Patent Document 1: Summary of [CC-Link IE field Network], CC-Link Association, 2010, Internet <URL: https//www.cc-link.org/jp/material/documents/ie_field_100210. pdf >

在環狀型的拓樸學中,進行如同權杖傳遞方式那樣的通信方式,僅有擁有傳送權的1台控制機器進行定期通信及不定期通信。在這種通信方式中,在任何控制機器中產生大量的不定期通信的情況下,或者,在已經傳送中1週期分的不定期通信的情況下,需要時間來完成不定期通信。因此,具有控制裝置的定期通信及不定期通信的傳送效率降低的課題。 In the ring-type topology, a communication method such as a token transfer method is performed, and only one control device having a transfer right performs regular communication and irregular communication. In this communication mode, in the case where a large amount of irregular communication is generated in any control machine, or in the case where irregular communication of one cycle has been transmitted, it takes time to complete the irregular communication. Therefore, there is a problem that the transmission efficiency of the regular communication and the irregular communication of the control device is lowered.

本發明在環狀型的拓樸學的情況下,使得也能夠從擁有傳送權的控制機器以外的機器進行不定期通信,藉此,達到提高定期通信及不定期通信的傳送效率之目的。 In the case of the ring-shaped topology, the present invention makes it possible to perform irregular communication from a device other than the control device having the transmission right, thereby achieving the purpose of improving the transmission efficiency of the periodic communication and the irregular communication.

本發明之通信裝置其包含於一通信系統中,該通信系統中分別具有第1通信埠及第2通信埠的複數台通信裝置連接成環狀,該通信系統使得傳送訊框的傳送權依序於該複數台通信裝置之間移動,該通信裝置包括:傳送部,產生包含在該傳送權由其本身裝置所擁有的情況下被傳送資料的定期傳送資料之定期訊框,將該定期訊框從該第1通信埠向其本身裝 置的下一個通信裝置的第2通信埠傳送;及通信埠控制部,在該傳送權由上述的下一個通信裝置所擁有的情況下,使該第1通信埠無效。 The communication device of the present invention is included in a communication system in which a plurality of communication devices having a first communication port and a second communication port are connected in a ring shape, and the communication system sequentially transmits transmission rights of the transmission frame. Moving between the plurality of communication devices, the communication device includes: a transmitting unit that generates a periodic frame including periodically transmitted data transmitted while the transmission right is owned by the own device, the periodic frame From the first communication port to itself The second communication port of the next communication device is placed; and the communication port control unit invalidates the first communication port when the transmission right is owned by the next communication device.

本發明的通信裝置包括:傳送部,產生包含在該傳送權由其本身裝置所擁有的情況下,定期訊框從第1通信埠向下一個通信裝置的第2通信埠傳送;及通信埠控制部,在該傳送權由上述的下一個通信裝置所擁有的情況下,使該第1通信埠無效。因此,也能夠從擁有傳送權的通信裝置以外的機器進行不定期通信,能夠提高定期通信及不定期通信的傳送效率。 The communication device of the present invention includes: a transmitting unit that generates a second communication port from the first communication device to the next communication device when the transmission right is owned by the own device; and communication control The unit disables the first communication port when the transfer right is owned by the next communication device. Therefore, it is also possible to perform irregular communication from a device other than the communication device having the transmission right, and it is possible to improve the transmission efficiency of the regular communication and the irregular communication.

100,100_1,100_2,100_3,100_4‧‧‧通信裝置 100,100_1,100_2,100_3,100_4‧‧‧Communication device

101‧‧‧第1通訊埠 101‧‧‧1st communication

102‧‧‧第2通訊埠 102‧‧‧2nd Communication埠

110‧‧‧傳送權控制部 110‧‧‧Transmission Control Department

120‧‧‧傳送部 120‧‧‧Transportation Department

121‧‧‧訊框產生部 121‧‧‧ Frame Generation Department

122‧‧‧訊框傳送部 122‧‧‧ Frame Transfer Department

130‧‧‧方向決定部 130‧‧‧ Directional Decision Department

140‧‧‧通訊埠控制部 140‧‧‧Communication and Control Department

150‧‧‧記憶部 150‧‧‧Memory Department

151‧‧‧收訊緩衝儲存器 151‧‧‧Receiver buffer storage

152‧‧‧中繼緩衝儲存器 152‧‧‧Relay buffer storage

153‧‧‧傳送方向 153‧‧‧Transfer direction

154‧‧‧控制對象通訊埠 154‧‧‧Control object communication埠

200‧‧‧傳送權 200‧‧‧Transmission rights

210‧‧‧定期訊框 210‧‧‧Regular frame

220‧‧‧不定期訊框 220‧‧‧Unscheduled frame

500‧‧‧通信系統 500‧‧‧Communication system

501‧‧‧傳送權方向 501‧‧‧Transfer direction

502‧‧‧不定期通信方向 502‧‧‧Unscheduled communication direction

510‧‧‧通信方法 510‧‧‧Communication method

520‧‧‧通信程式 520‧‧‧Communication program

909‧‧‧處理電路 909‧‧‧Processing Circuit

910‧‧‧處理器 910‧‧‧ processor

920‧‧‧記憶裝置 920‧‧‧ memory device

921‧‧‧記憶體 921‧‧‧ memory

922‧‧‧輔助記憶裝置 922‧‧‧Auxiliary memory device

S100‧‧‧通信處理 S100‧‧‧Communication processing

S10‧‧‧傳送處理 S10‧‧‧Transfer processing

S20‧‧‧通訊埠控制處理 S20‧‧‧Communication/Control Processing

第1圖為實施形態1的通信系統500之構成圖。 Fig. 1 is a block diagram showing a configuration of a communication system 500 according to the first embodiment.

第2圖為第1圖的通信系統500中之通信的一例,為顯示為了與本實施形態比較之比較例的通信之圖。 Fig. 2 is a view showing an example of communication in the communication system 500 of Fig. 1 and showing communication for comparison with the comparative example of the present embodiment.

第3圖為實施形態1的通信裝置100的構成圖。 Fig. 3 is a view showing the configuration of a communication device 100 according to the first embodiment.

第4圖為實施形態1的通信裝置100的通信方法510及通信程式520的通信處理S100的流程圖。 Fig. 4 is a flowchart showing a communication method 510 of the communication device 100 of the first embodiment and a communication process S100 of the communication program 520.

第5圖為實施形態1的通信裝置100的通信方法510及通信程式520的通信處理S100的流程圖。 Fig. 5 is a flowchart showing a communication method 510 of the communication device 100 of the first embodiment and a communication process S100 of the communication program 520.

第6圖為實施形態1的通信裝置100的通信方法510及通信程式520的通信處理S100的流程圖。 Fig. 6 is a flowchart showing a communication method 510 of the communication device 100 of the first embodiment and a communication process S100 of the communication program 520.

第7圖為顯示使用實施形態1的通信系統500的通信處理S10之通信的圖。 Fig. 7 is a view showing communication using the communication processing S10 of the communication system 500 of the first embodiment.

第8圖為表示第7圖(1)階段的模式圖。 Fig. 8 is a schematic view showing the stage of Fig. 7 (1).

第9圖為表示第7圖(2)階段的模式圖。 Fig. 9 is a schematic view showing the stage of Fig. 7 (2).

第10圖為表示第7圖(3)階段的模式圖。 Fig. 10 is a schematic view showing the stage of Fig. 7 (3).

第11圖為表示第7圖(4)階段的模式圖。 Fig. 11 is a schematic view showing the stage of Fig. 7 (4).

第12圖為實施形態1的變形例之通信裝置100的構成圖。 Fig. 12 is a block diagram showing a configuration of a communication device 100 according to a modification of the first embodiment.

以下,使用圖式說明本發明的實施形態。另外,各圖中相同或相當的部分係標示以相同的符號。在實施形態的說明當中,對於相同或相當的部分,適當省略或簡化其說明。 Hereinafter, embodiments of the present invention will be described using the drawings. In addition, the same or corresponding parts in the drawings are denoted by the same reference numerals. In the description of the embodiments, the description of the same or corresponding parts will be omitted or simplified as appropriate.

實施形態1 Embodiment 1

構成說明 Composition description

第1圖為顯示本實施形態之通信系統500的圖。 Fig. 1 is a view showing a communication system 500 of the present embodiment.

通信系統500構成複數台通信裝置連接成環狀型的環狀型拓樸學。在本實施形態中,複數台通信裝置(通信裝置100_1、通信裝置100_2、通信裝置100_3、通信裝置10_4)構成環狀型的拓樸學。另外,有時將全部或部分或單一台通信裝置100_1、通信裝置100_2、通信裝置100_3、通信裝置10_4稱之為通信裝置100。 The communication system 500 constitutes a ring-shaped topology in which a plurality of communication devices are connected in a ring shape. In the present embodiment, a plurality of communication devices (communication device 100_1, communication device 100_2, communication device 100_3, and communication device 10_4) constitute a ring-shaped topology. Further, all or part of the single communication device 100_1, the communication device 100_2, the communication device 100_3, and the communication device 10_4 may be referred to as the communication device 100.

具體言之,通信裝置100為構成FA網路系統的控制機器。通信裝置100包括第1通訊埠101和第2通訊埠102。如第1圖所示,通信系統500中,通信裝置100的第1通訊埠101和相鄰之通信裝置100的第2通訊埠連接。其一例為,通信裝置100_1的第1通訊埠和通信裝置100_2的第2通訊埠連接,通信裝置100_1的第2通訊埠和通信裝置100_4的第1通訊埠連接。使通信裝置100 彼此之間互相連接的傳送路可以為有線、無線、或其他任何種類的傳送路。 Specifically, the communication device 100 is a control device constituting the FA network system. The communication device 100 includes a first communication port 101 and a second communication port 102. As shown in Fig. 1, in the communication system 500, the first communication port 101 of the communication device 100 is connected to the second communication port of the adjacent communication device 100. As an example, the first communication port of the communication device 100_1 is connected to the second communication port of the communication device 100_2, and the second communication port of the communication device 100_1 is connected to the first communication port of the communication device 100_4. Communication device 100 The transmission paths that are connected to each other may be wired, wireless, or any other kind of transmission path.

通信系統500使得傳送訊框的傳送權在複數台通信裝置之間依序移動。具體言之,傳送權為權杖。本實施形態中,傳送權按照通信裝置100_1、通信裝置100_2、通信裝置100_3、通信裝置100_4、通信裝置100_1、通信裝置100_2、通信裝置100_3、...的順序巡迴。如上述,傳送權移動的方向為傳送權方向501。傳送權方向501中,輸入通訊埠為第2通訊埠102,輸出通訊埠為第1通訊埠101。另外,以傳送權方向501的反方向為不定期通信方向502。 The communication system 500 causes the transmission rights of the transmission frame to be sequentially moved between the plurality of communication devices. Specifically, the transfer right is a token. In the present embodiment, the transmission right is patrolled in the order of the communication device 100_1, the communication device 100_2, the communication device 100_3, the communication device 100_4, the communication device 100_1, the communication device 100_2, and the communication device 100_3, . As described above, the direction in which the transfer right moves is the transfer right direction 501. In the transmission right direction 501, the input communication port is the second communication port 102, and the output communication port is the first communication port 101. Further, the reverse direction of the transmission right direction 501 is the irregular communication direction 502.

第2圖為第1圖的通信系統500中之通信的一例,係為表示用以和本實施形態比較的比較例之通信之圖。 Fig. 2 is a view showing an example of communication in the communication system 500 of Fig. 1 showing communication of a comparative example for comparison with the present embodiment.

第2圖中顯示由通信裝置100_3進行不定期通信的結果,使得無法由通信裝置100_4進行不定期通信的例。另外,通信裝置100_1、通信裝置100_2、通信裝置100_3、及通信裝置100_4的號碼分別為第1號、第2號、第3號、及第4號。 The second diagram shows an example in which the communication device 100_3 performs the irregular communication, so that the communication device 100_4 cannot perform the irregular communication. The numbers of the communication device 100_1, the communication device 100_2, the communication device 100_3, and the communication device 100_4 are No. 1, No. 2, No. 3, and No. 4, respectively.

(a)擁有傳送權200的通信裝置100_1執行定期通信後,對全部的通信裝置傳送含有通信裝置100_2的傳送權200的訊框。以下將含有傳送權200的訊框作為權杖訊框。另外,在傳送權200中標示了識別複數通信裝置中的個別通信裝置的識別子。在本實施形態中,在傳送權200中標示了通信裝置的號碼以作為識別子。亦將標示以通信裝置的號碼的傳送權200稱之為該通信裝置的傳送權200。當接收到標示了本身通信裝置號碼的傳送權200的情況下,該通信裝置擁有傳送權200。 (a) The communication device 100_1 having the transmission right 200 transmits a message including the transmission right 200 of the communication device 100_2 to all communication devices after performing regular communication. The frame containing the transmission right 200 is used as the token frame. In addition, an identifier identifying the individual communication device in the complex communication device is indicated in the transmission right 200. In the present embodiment, the number of the communication device is indicated in the transmission right 200 as an identifier. The transmission right 200, which is indicated by the number of the communication device, is also referred to as the transmission right 200 of the communication device. In the case where the transmission right 200 indicating the communication device number of itself is received, the communication device has the transmission right 200.

(b)擁有傳送權200的通信裝置100_2執行定期通信後,對全部的通信裝置傳送含有通信裝置100_3的傳送權200的權杖訊框。 (b) After the communication device 100_2 having the transmission right 200 performs the periodic communication, the right transmission device 200 transmits the right frame of the transmission right 200 of the communication device 100_3.

(c)擁有傳送權200的通信裝置100_3執行定期通信後,對通信裝置100_1執行不定期通信,之後,對全部的通信裝置傳送含有通信裝置100_4的傳送權200的權杖訊框。此時,已傳送1週期分的全部不定期通信量。 (c) When the communication device 100_3 having the transmission right 200 performs periodic communication, it performs irregular communication with the communication device 100_1, and then transmits a right frame containing the transmission right 200 of the communication device 100_4 to all the communication devices. At this time, all the irregular traffic of one cycle has been transmitted.

(d)擁有傳送權200的通信裝置100_4執行定期通信後,要進行不定期通信,不過因為已經傳送了1週期分的全部不定期通信量,所以無法進行不定期通信。 (d) When the communication device 100_4 having the transmission right 200 performs periodic communication, it is necessary to perform irregular communication. However, since all the irregular traffic of one cycle has been transmitted, the irregular communication cannot be performed.

如上述,在第2圖的比較例的通信中,有可能會發生無法進行從通信裝置100的不定期通信的情況。 As described above, in the communication of the comparative example of FIG. 2, there is a possibility that the irregular communication from the communication device 100 cannot be performed.

使用第3圖,說明本實施形態的通信裝置100的構成。 The configuration of the communication device 100 of the present embodiment will be described using FIG.

在本實施形態中,通信裝置100為電腦。通信裝置100具備處理器910,還具備記憶裝置920、第1通訊埠101、第2通訊埠102等其他的硬體。記憶裝置920包含記憶體921和輔助記憶裝置922。 In the present embodiment, the communication device 100 is a computer. The communication device 100 includes a processor 910, and further includes other hardware such as a memory device 920, a first communication port 101, and a second communication port 102. The memory device 920 includes a memory 921 and an auxiliary memory device 922.

通信裝置100的功能構成包含:傳送權控制部110、傳送部120、方向決定部130、通訊埠控制部140、記憶部150。傳送部120包含訊框產生部121和訊框傳送部122。 The functional configuration of the communication device 100 includes a transmission right control unit 110, a transmission unit 120, a direction determination unit 130, a communication port control unit 140, and a storage unit 150. The transmitting unit 120 includes a frame generating unit 121 and a frame transmitting unit 122.

以下的說明中,將通信裝置100中的傳送權控制部110、訊框產生部121、訊框傳送部122、方向決定部130、通訊埠控制部140稱之為通信裝置100的「部」的功能。 In the following description, the transmission right control unit 110, the frame generation unit 121, the frame transmission unit 122, the direction determination unit 130, and the communication port control unit 140 in the communication device 100 are referred to as "parts" of the communication device 100. Features.

通信裝置100的「部」的功能係以軟體實現。 The function of the "part" of the communication device 100 is implemented in software.

另外,記憶部150由記憶裝置920實現。記憶部150包括:收訊緩衝儲存器151、中繼緩衝儲存器152、傳送方向153、控制對象通訊埠154。收訊緩衝儲存器151為存放已收訊的訊框之緩衝儲存器。中繼緩衝儲存器152,在已收訊的訊框並非以本身通信裝置為傳送目的的情況下,存放中繼訊框的緩衝儲存器。收訊緩衝儲存器151和中繼緩衝儲存器152在各通訊埠都有設置。 In addition, the memory unit 150 is implemented by the memory device 920. The memory unit 150 includes a reception buffer memory 151, a relay buffer memory 152, a transfer direction 153, and a control target communication port 154. The receiving buffer storage 151 is a buffer storage for storing the received frames. The relay buffer storage unit 152 stores the buffer storage of the relay frame when the received frame is not used for the purpose of transmitting the communication device itself. The reception buffer storage 151 and the relay buffer storage 152 are provided in each communication port.

處理器910透過信號線和其他硬體連接,以控制這些其他的硬體。 The processor 910 is connected to other hardware through signal lines to control these other hardware.

處理器910為執行處理的IC(Integrated Circuit)。具體言之,處理器910為CPU(Central Processing Unit)、GPU(Graphics Processing Unit)等。 The processor 910 is an IC (Integrated Circuit) that performs processing. Specifically, the processor 910 is a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), or the like.

記憶裝置920包括記憶體921及輔助記憶裝置922。具體言之,輔助記憶裝置922為ROM(Read Only Memory)、快閃記憶體、或者HDD(Hard Disk Drive)。具體言之,記憶體921為RAM(Random Access Memory)。本實施形態中,記憶部150由記憶體921實現。另外,記憶部150可由輔助記憶裝置922實現,亦可由記憶體921和輔助記憶裝置922實現。可用任意方法實現記憶部150。 The memory device 920 includes a memory 921 and an auxiliary memory device 922. Specifically, the auxiliary memory device 922 is a ROM (Read Only Memory), a flash memory, or an HDD (Hard Disk Drive). Specifically, the memory 921 is a RAM (Random Access Memory). In the present embodiment, the memory unit 150 is realized by the memory 921. In addition, the memory unit 150 can be implemented by the auxiliary memory device 922 or by the memory 921 and the auxiliary memory device 922. The memory unit 150 can be implemented by any method.

第1通訊埠101及第2通訊埠102中每一者均為執行訊框的收發之通訊埠。 Each of the first communication port 101 and the second communication port 102 is a communication port for performing transmission and reception of the frame.

輔助記憶裝置922中,記憶了實現「部」的功能之程式。此程式被載入記憶體921中,由處理器910讀取,並由處 理器910執行。輔助記憶裝置922中也記憶了OS(Operating System)。至少一部分的OS被載入記憶體921,處理器910在執行OS的同時,執行實現「部」的功能的程式。 In the auxiliary memory device 922, a program for realizing the function of the "part" is memorized. This program is loaded into the memory 921, read by the processor 910, and The processor 910 executes. The OS (Operating System) is also stored in the auxiliary memory device 922. At least a part of the OS is loaded into the memory 921, and the processor 910 executes a program for realizing the "part" function while executing the OS.

通信裝置100也可以具備用以代替處理器910的複數個處理器。這些複數個處理器分擔執行實現「部」的功能之程式的工作。各個處理器都是如同處理器910那樣的執行處理的IC。 The communication device 100 may also be provided with a plurality of processors in place of the processor 910. These multiple processors share the work of executing a program that implements the functions of the "part". Each processor is an IC that performs processing like the processor 910.

顯示「部」的功能所執行之處理的結果之資訊、資料、訊號值、及變數值係記憶在記憶體921、輔助記憶裝置922、或者處理器910內的暫存器或緩衝記憶體中。另外,在第3圖中,連結各部和記憶部150的箭頭,係表示各部將處理的結果記憶在記憶部150中、或者各部從記憶部150讀取資訊。另外,連結各部的箭頭,表示控制的流程。 The information, data, signal values, and variable values of the results of the processing performed by the function of the "part" are stored in the memory 921, the auxiliary memory device 922, or the scratchpad or buffer memory in the processor 910. In addition, in FIG. 3, the arrow connecting each part and the memory part 150 shows that each part memories the result of processing in the memory part 150, or each part reads information from the memory part 150. In addition, the arrows connecting the respective parts indicate the flow of control.

實現「部」的功能之程式可記憶在磁碟、軟碟、光碟、CD光碟片、藍光(商標)磁碟、DVD等的可移動式記憶體中。 Programs that implement the functions of "parts" can be stored in removable memory such as disks, floppy disks, compact discs, CDs, Blu-ray (trademark) disks, and DVDs.

另外,實現「部」的功能的程式亦稱之為通信程式520。通信程式520為實現說明為「部」的功能之程式。另外,稱之為通信程式產品的是記錄了通信程式520的記憶媒體及記憶裝置,其載有電腦可讀取程式,而不論其外觀形式。 Further, a program that realizes the function of "part" is also called a communication program 520. The communication program 520 is a program for realizing the function described as "part". Further, what is referred to as a communication program product is a memory medium and a memory device in which the communication program 520 is recorded, which carries a computer readable program regardless of its appearance.

動作說明 Action description

使用第4圖到第6圖,說明本實施形態的通信裝置100的通信方法510及通信程式520的通信處理S100。 The communication method 510 of the communication device 100 and the communication process S100 of the communication program 520 according to the present embodiment will be described with reference to FIGS. 4 to 6 .

步驟S101中,方向決定部130,判斷是否已決定擁 有傳送權的通信裝置的資料傳送方向、以及未擁有傳送權的通信裝置的資料傳送方向。擁有傳送權的通信裝置資料傳送方向為傳送權方向501、未擁有傳送權的通信裝置的資料傳送方向為不定期通信方向502。具體言之,方向決定部130,參照記憶在記憶部150中的傳送方向153,判斷是否已決定傳送權方向501和不定期通信方向502。例如,若在傳送方向153中設定了輸入通訊埠和輸出通訊埠,則判斷為以決定傳送權方向501和不定期通信方向502。在本實施形態中,第2通訊埠102設定在輸入通訊埠,第1通訊埠101設定在輸出通訊埠。亦即,通信裝置100_1、通信裝置100_2、通信裝置100_3、通信裝置100_4、通信裝置100_1、...的方向為傳送權方向501。另外,通信裝置100_1、通信裝置100_4、通信裝置100_3、通信裝置100_2、通信裝置100_1、...的方向為不定期通信方向502。 In step S101, the direction determining unit 130 determines whether or not the decision has been made. The data transfer direction of the communication device having the transfer right and the data transfer direction of the communication device not having the transfer right. The data transmission direction of the communication device having the transmission right is the transmission right direction 501, and the data transmission direction of the communication device not having the transmission right is the irregular communication direction 502. Specifically, the direction determining unit 130 refers to the transfer direction 153 stored in the storage unit 150, and determines whether or not the transfer right direction 501 and the irregular communication direction 502 have been determined. For example, if the input communication port and the output communication port are set in the transfer direction 153, it is determined that the transfer right direction 501 and the irregular communication direction 502 are determined. In the present embodiment, the second communication port 102 is set to the input communication port, and the first communication port 101 is set to the output communication port. That is, the directions of the communication device 100_1, the communication device 100_2, the communication device 100_3, the communication device 100_4, and the communication devices 100_1, . . . are the transmission right direction 501. Further, the directions of the communication device 100_1, the communication device 100_4, the communication device 100_3, the communication device 100_2, and the communication devices 100_1, . . . are the asynchronous communication direction 502.

方向決定部130,在判斷為已決定傳送權方向和不定期通信方向的情況下,執行步驟S102,在判斷為未決定的情況下,重複執行處理直到決定了為止。通常,事先在記憶部150的傳送方向153中設定了輸入通訊埠和輸出通訊埠。 When it is determined that the transmission right direction and the irregular communication direction have been determined, the direction determining unit 130 executes step S102. When it is determined that the direction is not determined, the direction determining unit 130 repeats the processing until it is determined. Normally, the input communication port and the output communication port are set in the transfer direction 153 of the memory unit 150 in advance.

在步驟S102中,傳送權控制部110判斷是否已識別出在傳送權移動後有效或無效的通訊埠。傳送權移動後有效或無效的通訊埠作為控制對象通訊埠。具體言之,傳送權控制部110參照記憶在記憶部150中的控制對象通訊埠154,判斷是否已識別控制對象通訊埠。例如,若在控制對象通訊埠154設定了第1通訊埠101或第2通訊埠102,則傳送權控制部110判斷為已識別控制對象通訊埠。在本實施形態中,在控制對象通訊埠 154設定了第1通訊埠101。傳送權控制部110將第1通訊埠101識別為控制對象通訊埠。 In step S102, the transmission right control unit 110 determines whether or not the communication port that is valid or invalid after the transmission right movement has been recognized. The communication port that is valid or invalid after the transfer right is moved is used as the control object communication port. Specifically, the transmission right control unit 110 refers to the control target communication port 154 stored in the storage unit 150, and determines whether or not the control target communication port has been identified. For example, when the first communication port 101 or the second communication port 102 is set in the control target communication port 154, the transmission right control unit 110 determines that the control target communication port has been recognized. In the present embodiment, the communication target is controlled. 154 sets the first communication port 101. The transmission right control unit 110 recognizes the first communication port 101 as the control target communication port.

傳送權控制部110,在判斷為已識別控制對象通訊埠的情況下進行步驟S103,在判斷為未識別的情況下則重複執行處理直到已識別為止。通常,事先在記憶部150的控制對象通訊埠154設定了控制對象通訊埠。 When the transmission right control unit 110 determines that the control target communication port has been identified, the process proceeds to step S103, and when it is determined that the control target communication port is not recognized, the process is repeatedly executed until it is recognized. Normally, the control target communication port is set in advance in the control target communication port 154 of the storage unit 150.

在步驟S103中,傳送權控制部110檢出在複數台通信裝置當中的哪個通信裝置擁有傳送權。首先,傳送權控制部110判斷在通信系統500中,傳送權是否已移動。 In step S103, the transmission right control unit 110 detects which of the plurality of communication devices has the transmission right. First, the transmission right control unit 110 determines whether or not the transmission right has moved in the communication system 500.

當判斷為傳送權已移動時,進行步驟S104。若傳送權200未移動,則重複執行處理直到傳送權200移動為止。 When it is determined that the transmission right has moved, step S104 is performed. If the transfer right 200 has not moved, the process is repeatedly executed until the transfer right 200 moves.

在步驟S104中,傳送權控制部110判斷是否由本身通信裝置擁有傳送權。當判斷為本身通信裝置擁有傳送權時,進行步驟S105。當判斷為本身通信裝置未擁有傳送權時,則進行步驟S110。 In step S104, the transmission right control unit 110 determines whether or not the transmission right is owned by the own communication device. When it is determined that the communication device itself has the transmission right, step S105 is performed. When it is determined that the communication device itself does not have the transmission right, step S110 is performed.

通信裝置100,在將傳送權傳送至下一個通信裝置的情況下,將含有下一個通信裝置之傳送權的權杖訊框向所有的其他通信裝置廣播。各通信裝置的傳送權控制部110,當接收到廣播傳來的權杖訊框時,判斷傳送權已移動。另外,各通信裝置的傳送權控制部110,若接收到的權杖訊框中的傳送權是本身通信裝置的傳送權,則判斷為本身通信裝置擁有傳送權。另一方面,各通信裝置的傳送權控制部110,若接收到的權杖訊框中的傳送權為其他任意通信裝置的傳送權,則判斷為該通信裝置擁有傳送權。如上述,傳送權控制部110基於標示 於傳送權的識別子(亦即通信裝置的號碼),判斷傳送權是哪一個通信裝置的傳送權。 The communication device 100 broadcasts the right frame containing the transmission right of the next communication device to all other communication devices when the transmission right is transmitted to the next communication device. The transmission right control unit 110 of each communication device determines that the transmission right has moved when receiving the transmission of the right token frame. Further, the transmission right control unit 110 of each communication device determines that the own communication device has the transmission right if the transmission right in the received token frame is the transmission right of the own communication device. On the other hand, the transmission right control unit 110 of each communication device determines that the communication device has the transmission right if the transmission right in the received token frame is the transmission right of the other arbitrary communication device. As described above, the transmission right control unit 110 is based on the indication The identifier of the transmission right (that is, the number of the communication device) determines which transmission right of the communication device is the transmission right.

如上述,傳送權控制部110能夠判斷目前傳送權200是在哪個通信裝置。另外,傳送權控制部110也可以判斷上次的傳送權200是否是在本身通信裝置,以及上上次的傳送權200是否是在本身通信裝置。 As described above, the transmission right control unit 110 can determine which communication device the current transmission right 200 is. Further, the transmission right control unit 110 may determine whether or not the previous transmission right 200 is the own communication device, and whether the previous transmission right 200 is the own communication device.

步驟S105到步驟S108的傳送處理S10中,傳送部120產生包含在傳送權由本身通信裝置所擁有的情況下被傳送資料的定期傳送資料之定期訊框210,將定期訊框210從第1通訊埠101向本身通信裝置的下一個通信裝置的第2通訊埠102傳送。亦即,傳送部120依傳送權方向傳送定期訊框210。定期訊框210亦稱之為定期通信訊框。另外,傳送部120,在可以進行不定期通信,且有用不定期通信傳送之資料的情況下,依傳送權方向進行不定期通信。 In the transmission processing S10 of step S105 to step S108, the transmitting unit 120 generates a periodic frame 210 including periodically transmitted data in which the transmission right is owned by the own communication device, and the periodic frame 210 is transmitted from the first communication. The port 101 transmits to the second communication port 102 of the next communication device of the own communication device. That is, the transmitting unit 120 transmits the periodic frame 210 in the direction of the transmission right. The periodic frame 210 is also referred to as a regular communication frame. Further, when the irregularity communication is possible and the data transmitted by the communication is irregular, the transmission unit 120 performs the irregular communication in the transmission right direction.

在步驟S105中,訊框產生部121產生包含定期傳送資料的定期訊框210。訊框傳送部122透過第1通訊埠101,將定期訊框210向下一個通信裝置傳送。亦即,訊框傳送部122將定期訊框210依傳送權方向501傳送。 In step S105, the frame generating unit 121 generates a periodic frame 210 containing periodically transmitted data. The frame transfer unit 122 transmits the periodic frame 210 to the next communication device via the first communication port 101. That is, the frame transfer unit 122 transmits the periodic frame 210 in the transfer right direction 501.

在步驟S106中,訊框傳送部122判斷是否可進行不定期通信。具體言之,訊框傳送部122,當本身通信裝置擁有傳送權,而且還沒有傳送出最大不定期通信量(亦稱之為不定期通信可能量)時,判斷為能夠進行不定期通信。若能夠進行不定期通信,則訊框傳送部122進行步驟S107。若不能進行不定期通信,則訊框傳送部122進行步驟S109。 In step S106, the frame transfer unit 122 determines whether or not the irregular communication is possible. Specifically, the frame transfer unit 122 determines that the irregular communication can be performed when the own communication device has the transfer right and the maximum unscheduled traffic (also referred to as the unscheduled communication possible amount) has not been transmitted. If irregular communication is possible, the frame transfer unit 122 proceeds to step S107. If the irregular communication cannot be performed, the frame transfer unit 122 proceeds to step S109.

在步驟S107中,訊框傳送部122判斷是否有用不定期通信傳送的資料。亦即,訊框傳送部122判斷不定期通信是否必要。若不定期通信為必要,訊框傳送部122進行步驟S108。若不定期通信並非必要,訊框傳送部122進行步驟S109。 In step S107, the frame transfer unit 122 determines whether or not the material transmitted by the irregular communication is useful. That is, the frame transfer unit 122 determines whether or not the irregular communication is necessary. If irregular communication is necessary, the frame transfer unit 122 proceeds to step S108. If the irregular communication is not necessary, the frame transfer unit 122 proceeds to step S109.

在步驟S108中,訊框產生部121產生包含不定期通信之資料的不定期訊框220。訊框傳送部122透過第1通訊埠101,將不定期訊框220傳送到下一個通信裝置。亦即,訊框傳送部122將不定期訊框220依傳送權方向501傳送。 In step S108, the frame generating unit 121 generates an irregular frame 220 containing the data of the irregular communication. The frame transfer unit 122 transmits the irregular frame 220 to the next communication device via the first communication port 101. That is, the frame transfer unit 122 transmits the non-period frame 220 in the transfer right direction 501.

在步驟S109中,傳送權控制部110產生包含下一個通信裝置的傳送權之權杖訊框,並向其他所有的通信裝置廣播。之後,處理回到步驟S103。 In step S109, the transmission right control unit 110 generates a right frame containing the transmission right of the next communication device, and broadcasts it to all other communication devices. Thereafter, the process returns to step S103.

在步驟S110中,傳送權控制部110判斷傳送權是否由下一個通信裝置所擁有。亦即,傳送權控制部110判斷本身通信裝置是否曾擁有前一次傳送權。在傳送權由下一個通信裝置擁有的情況下,處理進行步驟S111。若否,則處理進行步驟S114。 In step S110, the transmission right control unit 110 determines whether or not the transmission right is owned by the next communication device. That is, the transmission right control unit 110 determines whether or not the communication device itself has owned the previous transmission right. In the case where the transfer right is owned by the next communication device, the processing proceeds to step S111. If no, the process proceeds to step S114.

在步驟S111中,通訊埠控制部140,在傳送權由下一個通信裝置所擁有的情況下,執行使第1通訊埠101無效的通訊埠控制處理S20。所謂的使通訊埠無效,就是使得無法由該通訊埠進行輸出輸入。使通訊埠無效亦稱之為封鎖(blocking)通訊埠。 In step S111, the communication port control unit 140 executes the communication port control process S20 for invalidating the first communication port 101 when the transfer right is owned by the next communication device. The so-called invalidation of the communication port is such that the output input cannot be performed by the communication port. Invalidating the communication port is also called blocking communication.

在步驟S112到步驟S113中,傳送部120,當通訊埠控制部140使得第1通訊埠101無效時,判斷是否有在傳送權並非由本身通信裝置所擁有的情況下傳送來的資料之不定期傳送來的資料。傳送部120,當有不定期傳送來的資料的情況下, 產生包含不定期傳送來的資料的不定期訊框220。傳送部120,將不定期訊框220從第2通訊埠102向本身通信裝置的前一個通信裝置的第1通訊埠101傳送。亦即,傳送部120將不定期訊框220向著與傳送權方向相反的不定期通信方向傳送。 In step S112 to step S113, when the communication port control unit 140 invalidates the first communication port 101, it is determined whether or not there is an irregularity of the data transmitted when the transmission right is not owned by the own communication device. The information transmitted. The transmitting unit 120, when there is data that is not regularly transmitted, An irregular frame 220 containing data transmitted from time to time is generated. The transmitting unit 120 transmits the non-period frame 220 from the second communication port 102 to the first communication port 101 of the previous communication device of the own communication device. That is, the transmitting unit 120 transmits the non-period frame 220 to the irregular communication direction opposite to the direction of the transmission right.

在步驟S112中,訊框傳送部122判斷是否有用不定期通信傳送之資料。亦即,訊框傳送部122判斷不定期通信是否為必要。若不定期通信為必要,則訊框傳送部122進行步驟S113。若不定期通信並非必要,則處理回到步驟S103。 In step S112, the frame transfer unit 122 determines whether or not the data transmitted by the irregular communication is useful. That is, the frame transfer unit 122 determines whether or not the irregular communication is necessary. If irregular communication is necessary, the frame transfer unit 122 proceeds to step S113. If irregular communication is not necessary, the process returns to step S103.

在步驟S113中,訊框產生部121產生包含不定期通信的資料之不定期訊框220。訊框傳送部122透過第2通訊埠102,將不定期訊框220向前一個通信裝置傳送。亦即,訊框傳送部122將不定期訊框220依不定期通信方向502傳送。 In step S113, the frame generating unit 121 generates an irregular frame 220 containing data of irregular communication. The frame transfer unit 122 transmits the non-period frame 220 to the previous communication device via the second communication port 102. That is, the frame transfer unit 122 transmits the irregular frame 220 in the irregular communication direction 502.

在步驟S114中,傳送權控制部110判斷傳送權是否由下下個通信裝置所擁有。亦即,傳送權控制部110判斷本身通信裝置是否曾擁有上上次的傳送權。若傳送權由下下個通信裝置所擁有時,處理進行步驟S115。若否,則處理進行步驟S116。 In step S114, the transmission right control unit 110 determines whether or not the transmission right is owned by the next communication device. That is, the transmission right control unit 110 determines whether or not the communication device itself has owned the last transmission right. If the transfer right is owned by the next communication device, the process proceeds to step S115. If no, the process proceeds to step S116.

在步驟S115中,通訊埠控制部140,當傳送權由下下個通信裝置所擁有時,執行使第1通訊埠101有效的處理。所謂的使通訊埠有效,就是使得能夠從該通訊埠輸入輸出。使通訊埠有效亦稱之為解除通訊埠封鎖。通信裝置,當通訊埠控制部140使第1通訊埠101有效時,由第1通訊埠101接收從下一個通信裝置的第2通訊埠102傳送來的不定期訊框220。 In step S115, the communication port control unit 140 executes a process of validating the first communication port 101 when the transfer right is owned by the next communication device. The so-called communication is effective, so that it can input and output from the communication port. Making the communication valid is also called unblocking and blocking. In the communication device, when the communication port control unit 140 activates the first communication port 101, the first communication port 101 receives the irregular frame 220 transmitted from the second communication port 102 of the next communication device.

在步驟S116中,傳送部120判斷是否有以擁有傳送 權的通信裝置為傳送目的的資料之不定期傳送的資料。有以擁有傳送權的通信裝置為傳送目的的資料的情況下,傳送部120進行步驟S117。沒有以擁有傳送權的通信裝置為傳送目的的資料的情況下,傳送部120使處理回到步驟S103。 In step S116, the transmitting unit 120 determines whether or not there is a transfer with ownership. The communication device of the right is the data that is transmitted irregularly for the purpose of the transmission. When there is a data transfer destination for the communication device having the transfer right, the transfer unit 120 proceeds to step S117. When there is no data to be transmitted by the communication device having the transmission right, the transmission unit 120 returns the processing to step S103.

在步驟S117中,訊框產生部121產生不定期訊框220,其包含以擁有傳送權的通信裝置為傳送目的的資料之不定期傳送的資料。訊框傳送部122,透過第2通訊埠102,將不定期訊框220向前一個通信裝置傳送。亦即,訊框傳送部122,將不定期訊框220依照與傳送權方向501相反的不定期通信方向502傳送。 In step S117, the frame generating unit 121 generates an irregularity frame 220 containing data that is not regularly transmitted by the communication device having the transmission right for the purpose of transmission. The frame transfer unit 122 transmits the non-period frame 220 to the previous communication device through the second communication port 102. That is, the frame transfer unit 122 transmits the irregular frame 220 in the irregular communication direction 502 opposite to the transfer right direction 501.

在步驟S116及步驟S117中,包含曾擁有傳送權的通信裝置既非本身通信裝置亦非下一個通信裝置,又非下下個通信裝置時的處理(亦即,步驟S103中為[否],步驟S110中為[否],且步驟S114中為[否]的處理)。此時,若欲進行以曾擁有傳送權的通信裝置為傳送目的的不定期通信,則將不定期訊框220按照與傳送權方向501相反的不定期通信方向502傳送。 In step S116 and step S117, the processing is performed when the communication device having the transmission right is neither the own communication device nor the next communication device nor the next communication device (that is, [No] in step S103, [NO] in step S110, and [NO] in step S114). At this time, if it is desired to perform the irregular communication for the purpose of the communication device having the transmission right, the non-period frame 220 is transmitted in the irregular communication direction 502 opposite to the transmission right direction 501.

第7圖為顯示使用本實施形態的通信系統500的通信處理S10之通信的圖。第8圖為表示第7圖(1)階段的模式圖。第9圖為表示第7圖(2)階段的模式圖。第10圖為表示第7圖(3)階段的模式圖。第11圖為表示第7圖(4)階段的模式圖。 Fig. 7 is a view showing communication using the communication processing S10 of the communication system 500 of the present embodiment. Fig. 8 is a schematic view showing the stage of Fig. 7 (1). Fig. 9 is a schematic view showing the stage of Fig. 7 (2). Fig. 10 is a schematic view showing the stage of Fig. 7 (3). Fig. 11 is a schematic view showing the stage of Fig. 7 (4).

使用第7圖到第11圖,具體說明使用本實施形態的通信系統500的通信處理S100的通信。在此,假設通信裝置100_4欲對通信裝置100_3進行大量的不定期通信。 The communication using the communication processing S100 of the communication system 500 of the present embodiment will be specifically described using Figs. 7 to 11 . Here, it is assumed that the communication device 100_4 wants to perform a large amount of irregular communication with the communication device 100_3.

第7圖的(1)階段中,各通信裝置100決定用有傳 送權200的通信裝置之資料傳送方向(傳送權方向501)、以及未擁有傳送權200的通信裝置的資料傳送方向(不定期通信方向502)。另外,各通信裝置100決定在傳送權移動後要使其有效或無效的控制對象通訊埠。 In the stage (1) of Fig. 7, each communication device 100 determines the use of the transmission The data transfer direction (transfer right direction 501) of the communication device of the right transfer 200 and the data transfer direction (the irregular communication direction 502) of the communication device not having the transfer right 200. Further, each communication device 100 determines a control target communication port to be valid or invalid after the transfer right is moved.

在第7圖的步驟S10中,擁有傳送權200的通信裝置100_1,將定期訊框210向傳送權方向501傳送。繼之,通信裝置100_1,將含有下一個通信裝置100_2的傳送權之權杖訊框向其他通信裝置廣播。此時,在此週期中尚未進行不定期通信,因此不定期通信可能量n=1。如上述,不定期通信可能量n表示在1週期中能夠進行不定期傳送的最大量。在此,以1週期中能夠進行不定期傳送的最大量為1訊框為例進行說明。 In step S10 of Fig. 7, the communication device 100_1 having the transmission right 200 transmits the periodic frame 210 to the transmission right direction 501. Next, the communication device 100_1 broadcasts the right frame of the transmission right including the next communication device 100_2 to the other communication device. At this time, irregular communication has not been performed in this cycle, so the amount of irregular communication may be n=1. As described above, the amount of irregular communication n indicates the maximum amount that can be transmitted irregularly in one cycle. Here, the maximum amount of irregular transmission that can be performed in one cycle is taken as an example.

在第7圖的步驟S11中,擁有傳送權200的通信裝置100_2,將定期訊框210向傳送權方向501傳送。通信裝置100_2,將定期訊框210廣播。另外,通信裝置100_2也將不定期訊框220依傳送權方向501傳送。 In step S11 of Fig. 7, the communication device 100_2 having the transmission right 200 transmits the periodic frame 210 to the transmission right direction 501. The communication device 100_2 broadcasts the periodic frame 210. In addition, the communication device 100_2 also transmits the non-period frame 220 in the transmission right direction 501.

因為已經傳送了1週期分的不定期通信量,所以在第7圖的步驟S12中,在廣播包含通信裝置100_3的傳送權的權杖訊框時,不定期通信可能量n=0。 Since the irregular traffic of one cycle has been transmitted, in step S12 of FIG. 7, when the right frame of the transmission right including the communication device 100_3 is broadcast, the amount of irregular communication n=0.

第7圖的步驟S13中,擁有傳送權200的通信裝置100_3將定期訊框210依傳送權方向501向其他通信裝置廣播。另外,通信裝置100_3,藉由不定期通信方向502的不定期通信從通信裝置100_4接收不定期訊框220。 In step S13 of Fig. 7, the communication device 100_3 having the transmission right 200 broadcasts the periodic frame 210 to the other communication device in the transmission right direction 501. Further, the communication device 100_3 receives the irregular frame 220 from the communication device 100_4 by the irregular communication in the irregular communication direction 502.

在第7圖的步驟S14中,在通信裝置100_4對通信裝置100_3的全部的不定期通信結束之前傳送權200又回傳回來。擁有傳 送權200的通信裝置100_4雖然要對其他通信裝置廣播定期訊框210,同時依傳送權方向501傳送不定期訊框220,但是在步驟S12中不定期通信可能量n=0的緣故,通信裝置100_4無法進行不定期通信。通信裝置100_4廣播含有通信裝置100_1的傳送權的權杖訊框。 In step S14 of Fig. 7, the transmission right 200 is returned again before the communication device 100_4 ends all the irregular communication of the communication device 100_3. Have a biography The communication device 100_4 of the right transmission 200 broadcasts the periodic frame 210 to other communication devices, and simultaneously transmits the irregular frame 220 according to the transmission right direction 501, but the communication device may be n=0 in the irregular transmission in step S12. 100_4 Unable to communicate irregularly. The communication device 100_4 broadcasts a right frame containing the transmission right of the communication device 100_1.

如第9圖所示,第7圖的(2)階段開始時各通信裝置的通訊埠的狀態為,擁有前一次傳送權200的通信裝置100_3的第1通訊埠101變成無效。擁有傳送權200的通信裝置I00_4廣播含有通信裝置100_1的傳送權200的權杖訊框。新的週期由此開始,所以不定期通信可能量係n=1。 As shown in Fig. 9, the state of the communication port of each communication device at the start of the (2) phase of Fig. 7 is that the first communication port 101 of the communication device 100_3 having the previous transmission right 200 becomes invalid. The communication device I00_4 having the transmission right 200 broadcasts a token frame containing the transmission right 200 of the communication device 100_1. The new cycle begins here, so irregular communication may be a quantity of n=1.

如第10圖所示,在第7圖的(3)階段中,通信裝置100_4使第1通訊埠101無效,通信裝置100_3使第1通訊埠101有效。 As shown in Fig. 10, in the (3) stage of Fig. 7, the communication device 100_4 invalidates the first communication port 101, and the communication device 100_3 activates the first communication port 101.

如第11圖所示,在第7圖的(4)階段中,通信裝置100_2及通信裝置100_3可以對於擁有傳送權200的通信裝置100_1進行在不定期通信方向502上的不定期通信。另外,通信裝置100_4可以對於全部的通信裝置100進行在不定期通信方向502的不定期通信。另外,通信裝置100_1可以像平常一樣,進行在傳送權方向501的定期通信和不定期通信。 As shown in FIG. 11, in the (4) stage of FIG. 7, the communication device 100_2 and the communication device 100_3 can perform the irregular communication in the irregular communication direction 502 with respect to the communication device 100_1 having the transmission right 200. In addition, the communication device 100_4 can perform irregular communication in the irregular communication direction 502 for all of the communication devices 100. Further, the communication device 100_1 can perform regular communication and irregular communication in the transmission right direction 501 as usual.

之後,通信系統500將傳送權200在4台通信裝置100之間巡迴傳送,重複通信週期。 Thereafter, the communication system 500 patrols the transmission right 200 between the four communication devices 100, and repeats the communication cycle.

其他構成 Other composition

在上述的本實施形態中,係基於權杖傳遞方式進行說明。不過,若為拓樸學為環狀型,各通信裝置總是能夠掌握擁有傳送權的通信裝置的通信系統(例如通信裝置間採用時分割方式 的通信系統),也能夠適用本實施形態。 In the above-described embodiment, the method of transmitting the token is described. However, if the topology is a ring type, each communication device can always grasp the communication system of the communication device having the transmission right (for example, the time division method between the communication devices) This embodiment can also be applied to the communication system.

在上述的本實施形態中,具有第1通訊埠101和第2通訊埠102等2個通訊埠作為收發訊框的通訊埠,但也可以具備2個以上的通訊埠。 In the above-described embodiment, two communication ports, such as the first communication port 101 and the second communication port 102, are used as the communication port of the transmission/reception frame, but two or more communication ports may be provided.

另外,除了第1通訊埠101及第2通訊埠102以外,也可以具備如後述的輸入介面、輸出介面、通信機器。另外,也可以具備第1通訊埠101及第2通訊埠102以作為輸入介面、輸出介面、通信機器的一部分。 Further, in addition to the first communication port 101 and the second communication port 102, an input interface, an output interface, and a communication device, which will be described later, may be provided. Further, the first communication port 101 and the second communication port 102 may be provided as an input interface, an output interface, and a part of the communication device.

輸入介面為與滑鼠、鍵盤、觸控板等輸入裝置連接的通訊埠。具體言之,輸入介面為USB端子。另外,輸入介面也可以為和LAN(Local Area Network)連接的通訊埠。 The input interface is a communication port connected to an input device such as a mouse, a keyboard, or a touchpad. Specifically, the input interface is a USB terminal. In addition, the input interface can also be a communication port connected to a LAN (Local Area Network).

輸出介面為螢幕裝置等顯示器的纜線連接的通訊埠。具體言之,輸出介面940為USB端子或HDMI(登錄商標)(High Definition Multimedia Interface)端子。具體言之,螢幕裝置為LCD(Liquid Crystal Display)。另外,輸出介面也可以和列印裝置等輸出裝置連接。 The output interface is a communication port for the cable connection of a display such as a screen device. Specifically, the output interface 940 is a USB terminal or an HDMI (High Definition Multimedia Interface) terminal. Specifically, the screen device is an LCD (Liquid Crystal Display). Alternatively, the output interface can be connected to an output device such as a printing device.

通信機器具有接收器和發送器。具體言之,通信機器為通信晶片或者NIC(Network Interface Card)。通信機器具有資料通信的通信部之功能。接收器為接收資料的收訊機器,發送器為傳送資料的送信機器。 The communication machine has a receiver and a transmitter. Specifically, the communication device is a communication chip or a NIC (Network Interface Card). The communication device has the function of a communication unit for data communication. The receiver is a receiving machine that receives data, and the transmitter is a sending machine that transmits data.

本實施形態中,通信裝置100的「部」的功能係以軟體實現,但在變形例中,通信裝置100的「部」的功能也可以硬體實現。 In the present embodiment, the function of the "part" of the communication device 100 is implemented by software. However, in the modified example, the function of the "part" of the communication device 100 can be implemented by hardware.

使用第12圖,說明本實施形態之變形例的通信裝置100的 構成。 A communication device 100 according to a modification of the embodiment will be described with reference to FIG. Composition.

如第12圖所示,通信裝置100具有第1通訊埠101、第2通訊埠102之硬體。 As shown in FIG. 12, the communication device 100 has the hardware of the first communication port 101 and the second communication port 102.

處理電路909為實現前述的「部」之功能及記憶部150的專用電路。具體言之,處理電路909為單一電路、複合電路、程式化處理器、並列程式化處理器、邏輯IC、GA(Gate Array)、ASIC(Application Specific Integrated Circuit)、或者FPGA(Field-Programmable Gate Array)。 The processing circuit 909 is a dedicated circuit for realizing the functions of the aforementioned "portion" and the memory unit 150. Specifically, the processing circuit 909 is a single circuit, a composite circuit, a programmed processor, a parallel programming processor, a logic IC, a GA (Gate Array), an ASIC (Application Specific Integrated Circuit), or an FPGA (Field-Programmable Gate Array). ).

通信裝置100也可以具備取代處理電路909的複數個處理電路。這些複數個處理電路整體而言實現了「部」的功能。各個處理電路和處理電路909相同,都是專用的電路。 The communication device 100 may be provided with a plurality of processing circuits instead of the processing circuit 909. These plural processing circuits implement the function of "part" as a whole. Each processing circuit is the same as the processing circuit 909 and is a dedicated circuit.

另一個變形例為,通信裝置100的功能係藉由軟體和硬體的組合來實現。亦即,通信裝置的一部分功能由專用硬體實現,剩下的功能則可以由軟體實現。 In another variation, the function of the communication device 100 is implemented by a combination of software and hardware. That is, a part of the functions of the communication device are implemented by dedicated hardware, and the remaining functions can be implemented by software.

處理器910、記憶裝置920、及處理電路909被總稱之為「處理電路」。亦即,通信裝置的構成為第3圖及第12圖中任一者所示的構成,而「部」的功能及記憶部150則由處理電路實現。 Processor 910, memory device 920, and processing circuit 909 are collectively referred to as "processing circuits." That is, the configuration of the communication device is the configuration shown in any of Figs. 3 and 12, and the function of the "part" and the memory unit 150 are realized by the processing circuit.

「部」亦可以改寫為「步驟」、「程序」或「處理」。另外,「部」的功能亦可以藉由韌體實現。 The Department can also be rewritten as "Steps", "Programs" or "Processing". In addition, the function of "part" can also be realized by firmware.

本實施形態之效果的說明 Description of the effects of the embodiment

如上述,本實施形態的通信裝置100中,基於傳送權的移動來決定封鎖的控制對象通訊埠。另外,決定擁有傳送權之通信裝置的資料(定期通信、不定期通信)傳送方向之傳送權方 向、以及未擁有傳送權的通信裝置的不定期通信方向。因此,擁有封鎖通訊埠的通信裝置,能夠對於通信系統的路徑上的所有通信裝置進行在不定期通信方向的不定期通信。因此,能夠提高在通信系統中之定期通信和不定期通信的傳送效率。另外,因為通信系統為環狀型的拓樸學,所以具有封鎖通訊埠的通信裝置為末端的通信機器。因此,在路徑上一定有對象通信裝置,能夠確實地傳送資料。因此,本方式即使是在各控制機器未能掌握其他控制機器的位置的情況下也能夠實現。 As described above, in the communication device 100 of the present embodiment, the blocked control target communication port is determined based on the movement of the transfer right. In addition, it is determined that the data of the communication device having the transmission right (regular communication, irregular communication) is transmitted in the transmission direction. Irregular communication direction of the communication device to and to the communication device that does not have the transmission right. Therefore, the communication device having the blocked communication port can perform irregular communication in the irregular communication direction with all the communication devices on the path of the communication system. Therefore, it is possible to improve the transmission efficiency of the regular communication and the irregular communication in the communication system. Further, since the communication system is a ring-shaped topology, the communication device having the communication port is blocked as the terminal communication device. Therefore, there must be an object communication device on the path, and the data can be reliably transmitted. Therefore, this method can be realized even when each control device fails to grasp the position of another control device.

以上係針對本發明的實施形態1進行說明,不過,在本實施形態的說明中說明為「部」的元件當中,可以僅採用其中任何一者,也可以採用其中數個的任意組合。亦即,通信裝置的功能方塊是任意的,只要可以實現上述實施形態中所說明的功能即可。這些功能方塊可以任何組合、或任意的方塊構成來構成通信裝置均可。另外,通信裝置可以不是1個裝置,而是由複數裝置構成。 Although the first embodiment of the present invention has been described above, any one of the elements described as the "part" in the description of the present embodiment may be used alone or in any combination of several of them. That is, the functional blocks of the communication device are arbitrary as long as the functions described in the above embodiments can be realized. These functional blocks may be constructed in any combination or in any block to constitute a communication device. Further, the communication device may be composed of a plurality of devices instead of one device.

另外,雖已針對實施形態1進行說明,但也可以將此實施形態中的複數部分加以組合實施。或者,亦可以實施此實施形態中的1個部分。另外,可將此實施形態的整體或部分以任何方式組合實施。 Further, although the first embodiment has been described, the plural portions of the embodiment may be combined and implemented. Alternatively, one of the embodiments may be implemented. In addition, the whole or part of this embodiment can be implemented in combination in any manner.

再者,上述實施形態本質上為較佳例示,本發明並非意圖要限制其適用物或用途的範圍,而可以因應需要進行各種的變更。 In addition, the above-described embodiments are preferably illustrative in nature, and the invention is not intended to limit the scope of the application or the application, and various modifications may be made as needed.

Claims (7)

一種通信裝置,其包含於一通信系統中,該通信系統中分別具有第1通信埠及第2通信埠的複數台通信裝置連接成環狀,該通信系統使得傳送訊框的傳送權依序於該複數台通信裝置之間移動,該通信裝置包括:傳送部,產生包含在該傳送權由其本身裝置所擁有的情況下被傳送資料的定期傳送資料之定期訊框,將該定期訊框從該第1通信埠向其本身裝置的下一個通信裝置的第2通信埠傳送;及通信埠控制部,在該傳送權由上述的下一個通信裝置所擁有的情況下,使該第1通信埠無效。 A communication device is included in a communication system in which a plurality of communication devices having a first communication port and a second communication port are connected in a ring shape, and the communication system causes transmission rights of the transmission frame to be sequentially Moving between the plurality of communication devices, the communication device comprising: a transmitting unit, generating a periodic frame containing the periodically transmitted data transmitted while the transmission right is owned by the own device, and the periodic frame is The first communication port transmits to the second communication port of the next communication device of the device itself; and the communication port control unit causes the first communication port when the transfer right is owned by the next communication device. invalid. 如申請專利範圍第1項所記載之通信裝置,其中該傳送部:當該通信埠控制部使該第1通信埠無效時,判斷於該傳送權非由其本身裝置所擁有的情況下被傳送資料的不定期傳送資料是否存在,當該不定期傳送資料存在的情況下,產生包含該不定期傳送資料的不定期訊框,將該不定期訊框從該第2通信埠向其本身裝置的前一個通信裝置的第1通信埠傳送。 The communication device according to the first aspect of the invention, wherein the communication unit: when the communication port control unit invalidates the first communication port, determines that the transfer right is not owned by the own device; Whether the data of the data is not regularly transmitted, and when the data is not regularly transmitted, an irregular frame containing the data of the irregular transmission is generated, and the irregular frame is sent from the second communication device to the device itself. The first communication port of the previous communication device is transmitted. 如申請專利範圍第2項所記載之通信裝置,其中該通信埠控制部,在該傳送權由上述的下下個通信裝置所擁有的情況下,使該第1通信埠有效。 The communication device according to claim 2, wherein the communication port control unit activates the first communication port when the transfer right is owned by the next communication device. 如申請專利範圍第3項所記載之通信裝置,當該通信埠控制部使該第1通信埠有效時,由該第1通信埠接收從該下一個通信裝置的第2通信埠傳送之不定期訊框。 According to the communication device described in claim 3, when the communication port control unit activates the first communication port, the first communication port receives the irregularity transmitted from the second communication port of the next communication device. Frame. 如申請專利範圍第1~4項中任一項所記載之通信裝置,其中該通信裝置包括傳送權控制部,其檢出該傳送權由該等複數通信裝置中的哪個通信裝置所擁有。 The communication device according to any one of claims 1 to 4, wherein the communication device includes a transmission right control unit that detects which of the plurality of communication devices is owned by the communication device. 一種通信方法,其為包含於一通信系統中的通信裝置之通信方法,該通信系統中分別具有第1通信埠及第2通信埠的複數台通信裝置連接成環狀,該通信系統使得傳送訊框的傳送權依序於該複數台通信裝置之間移動,該通信方法為:傳送部,產生包含在該傳送權由其本身裝置所擁有的情況下被傳送資料的定期傳送資料之定期訊框,將該定期訊框從該第1通信埠向其本身裝置的下一個通信裝置的第2通信埠傳送;及通信埠控制部,在該傳送權由上述的下一個通信裝置所擁有的情況下,使該第1通信埠無效。 A communication method is a communication method of a communication device included in a communication system in which a plurality of communication devices having a first communication port and a second communication port are connected in a ring shape, and the communication system enables transmission The transmission right of the frame is sequentially moved between the plurality of communication devices, and the communication method is: a transmission unit that generates a periodic frame including periodically transmitted data when the transmission right is owned by the own device. Transmitting the periodic frame from the first communication port to the second communication port of the next communication device of the device itself; and the communication port control unit, if the transfer right is owned by the next communication device; , the first communication port is invalidated. 一種通信程式產品,其為含於一通信系統中通信裝置的通信程式產品,其中該通信裝置為電腦,該通信系統中分別具有第1通信埠及第2通信埠的複數台通信裝置連接成環狀,該通信系統使得傳送訊框的傳送權依序於該複數台通信裝置之間移動,該通信程式產品使得通信裝置執行:傳送處理,產生包含在該傳送權由其本身裝置所擁有的情況下被傳送資料的定期傳送資料之定期訊框,將該定期訊框從該第1通信埠向其本身裝置的下一個通信裝置的第2通信埠傳送;及通信埠控制處理,在該傳送權由上述的下一個通信裝置所 擁有的情況下,使該第1通信埠無效。 A communication program product, which is a communication program product included in a communication device in a communication system, wherein the communication device is a computer, and the plurality of communication devices having the first communication port and the second communication port in the communication system are connected into a ring And the communication system causes the transmission right of the transmission frame to be sequentially moved between the plurality of communication devices, the communication program product causing the communication device to perform: a transmission process to generate a situation in which the transmission right is owned by the device itself a periodic frame for periodically transmitting data of the transmitted data, transmitting the periodic frame from the first communication port to the second communication port of the next communication device of the device itself; and communication/control processing at the transmission right By the next communication device described above In the case of possession, the first communication port is invalidated.
TW105118105A 2016-05-13 2016-06-08 Communication apparatus, communication method, and communication program TW201740705A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/064326 WO2017195357A1 (en) 2016-05-13 2016-05-13 Communication apparatus, communication method, and communication program

Publications (1)

Publication Number Publication Date
TW201740705A true TW201740705A (en) 2017-11-16

Family

ID=60266398

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105118105A TW201740705A (en) 2016-05-13 2016-06-08 Communication apparatus, communication method, and communication program

Country Status (2)

Country Link
TW (1) TW201740705A (en)
WO (1) WO2017195357A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61125253A (en) * 1984-11-20 1986-06-12 Fujitsu Ltd Medium access control system
US6717922B2 (en) * 2002-03-04 2004-04-06 Foundry Networks, Inc. Network configuration protocol and method for rapid traffic recovery and loop avoidance in ring topologies
DE112006003895T5 (en) * 2006-06-26 2009-06-10 Mitsubishi Electric Corp. Communication node and token issuing method and token ring communication method in a ring communication system
KR101357449B1 (en) * 2009-06-12 2014-02-03 미쓰비시덴키 가부시키가이샤 Communication managing apparatus, communication nodes, and data communication method

Also Published As

Publication number Publication date
WO2017195357A1 (en) 2017-11-16

Similar Documents

Publication Publication Date Title
JP7026748B2 (en) Quantum key relay method and equipment based on centralized control network
JP6870568B2 (en) Communication system, control device, setting device, setting method and program
JP6355863B1 (en) Network system and communication method
JP2018181325A5 (en)
US20160345283A1 (en) Method and apparatus for adjacent node registration, and method and system for cross-node registration
JP5014362B2 (en) Information processing apparatus, control method therefor, and computer program
WO2014199537A1 (en) Wireless communications device, wireless communications method, and wireless communications control program
WO2019224860A1 (en) Communication device, communication method, and communication program
JP2012065284A (en) Network scanner, information processor, and network scanning system
JP2010217959A (en) Information processing apparatus, information processing method, and program
TW201740705A (en) Communication apparatus, communication method, and communication program
US20140165078A1 (en) Apparatus and circuit for processing data
US20230071782A1 (en) Electronic chip and a method for provisioning such an electronic chip
WO2013111285A1 (en) Communication apparatus, communication method, and program
US20120030382A1 (en) Direct memory access device for multi-core system and operating method of the same
CN108270447A (en) Keyboard disappears fluttering method, scanning monitor, master controller and measuring instrument
JP5183829B1 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2009116561A (en) Data transfer system
JP6379783B2 (en) Information processing apparatus, information processing system, and information processing program
US9948480B2 (en) Media access control filtering apparatus for high speed switching and operating method thereof
US20170187645A1 (en) Operation device and method for managing use right of communication channel
US20050175011A1 (en) Data driven type information processing apparatus and method of increasing transfer speed of data packet
KR102213346B1 (en) Coexistence communication method for low-power broadband communication and the system thereof
WO2022049801A1 (en) Communication control device and control method for communication control device
WO2017006464A1 (en) Communication apparatus, communication method, and communication program