TWI461922B - System and method for master/slaver full duplex serial transmission - Google Patents
System and method for master/slaver full duplex serial transmission Download PDFInfo
- Publication number
- TWI461922B TWI461922B TW100115528A TW100115528A TWI461922B TW I461922 B TWI461922 B TW I461922B TW 100115528 A TW100115528 A TW 100115528A TW 100115528 A TW100115528 A TW 100115528A TW I461922 B TWI461922 B TW I461922B
- Authority
- TW
- Taiwan
- Prior art keywords
- slave
- master
- full
- packet
- record
- Prior art date
Links
Landscapes
- Small-Scale Networks (AREA)
Description
本發明是有關於一種主從式全雙工序列傳輸方法及主從式全雙工序列傳輸系統。The invention relates to a master-slave full-duplex sequence transmission method and a master-slave full-duplex sequence transmission system.
請參照第1圖,第1圖繪示係為依照傳統主從式全雙工序列傳輸系統之示意圖。傳統主從式全雙工序列傳輸系統1包括主出從入匯流排11、主入從出匯流排12、主控裝置13及從屬裝置14(1)~14(N),其中N係正整數。主控裝置13經主出從入匯流排11傳送資料封包至從屬裝置14(1)~14(N),並經主入從出匯流排12接收由從屬裝置14(1)~14(N)送出之資料封包。Please refer to FIG. 1 , which is a schematic diagram showing a conventional master-slave full-duplex sequence transmission system. The conventional master-slave full-duplex sequence transmission system 1 includes a master-slave-in/out-slot row 11, a master-slave-outlet busbar 12, a master device 13, and slave devices 14(1) to 14(N), where N is a positive integer. . The master device 13 transmits the data packet from the inbound and outbound bank 11 to the slave devices 14(1) to 14(N) via the master and out, and receives the slave devices 14(1) to 14(N) through the master in and out of the bus bar 12 The data packet sent out.
請同時參照第2圖、第3圖及第4圖,第2圖繪示係為主控裝置送出第1筆資料封包之示意圖,第3圖繪示係為主控裝置送出第2筆資料封包之示意圖,第4圖繪示係為主控裝置送出第3筆資料封包之示意圖。為方便說明起見,第2圖至第4圖係以N等於3為例說明。如第2圖所示,主控裝置13經主出從入匯流排11送出第1筆資料至從屬裝置14(1)~14(3),第1筆資料包括資料封包A1~A3。如第3圖所示,主控裝置13經主出從入匯流排11送出第2筆資料至從屬裝置14(1)~14(3),第2筆資料包括資料封包B1~B3。如第4圖所示,主控裝置13經主入從出匯流排12接收資料封包A1~A3,並經主出從入匯流排11送出第3筆資料至從屬裝置14(1)~14(3),第3筆資料包括資料封包C1~C3。Please refer to FIG. 2, FIG. 3 and FIG. 4 at the same time. FIG. 2 is a schematic diagram showing that the first data packet is sent by the main control device, and FIG. 3 is a second data packet sent by the main control device. The schematic diagram of the fourth figure shows a schematic diagram of sending the third data packet to the main control device. For convenience of explanation, FIGS. 2 to 4 are illustrated by taking N equal to 3. As shown in Fig. 2, the main control unit 13 sends the first data to the slave devices 14(1) to 14(3) via the master/outlet from the bus bar 11, and the first data includes the data packets A1 to A3. As shown in Fig. 3, the master device 13 sends the second data to the slave devices 14(1) to 14(3) via the master/slave input/sending bank 11, and the second data includes the data packets B1 to B3. As shown in FIG. 4, the main control device 13 receives the data packets A1 to A3 from the output bus 12 via the main input, and sends the third data to the slave devices 14(1) to 14 via the main output from the incoming bus bar 11 ( 3) The third data includes data packets C1 to C3.
請同時參照第2圖及第5圖,第5圖繪示係為主控裝置傳送及接收資料封包之示意圖。主控裝置13經主出從入匯流排11依序單向送出資料封包A1~A3、資料封包B1~B3、資料封包C1~C3及資料封包D1~D3,並依序地自主入從出匯流排12單向接收資料封包A1~A3、資料封包B1~B3、資料封包C1~C3及資料封包D1~D3。Please refer to FIG. 2 and FIG. 5 at the same time. FIG. 5 is a schematic diagram showing the transmission and reception of data packets by the main control device. The main control device 13 sequentially sends out the data packets A1 to A3, the data packets B1 to B3, the data packets C1 to C3, and the data packets D1 to D3 through the main inbound and outbound bus bars 11, and sequentially enters and exits the secondary and outgoing streams. Row 12 receives data packets A1 to A3, data packets B1 to B3, data packets C1 to C3, and data packets D1 to D3.
由此可知,在傳統主從式全雙工序列傳輸系統中,主控裝置主導從屬裝置的資料收發。主控裝置藉由不斷地藉由送出資料封包至從屬裝置,便能接收由從屬裝置回應的資料封包。It can be seen that in the traditional master-slave full-duplex sequence transmission system, the master device dominates the data transmission and reception of the slave device. The master device can receive the data packet responded by the slave device by continuously sending the data packet to the slave device.
本發明係有關於一種主從式全雙工序列傳輸方法及主從式全雙工序列傳輸系統。The invention relates to a master-slave full-duplex sequence transmission method and a master-slave full-duplex sequence transmission system.
根據本發明,提出一種主從式全雙工序列傳輸方法。主從式全雙工序列傳輸方法係用於主從式全雙工序列傳輸系統,且主從式全雙工序列傳輸系統包括主出從入匯流排、主入從出匯流排、從屬裝置及主控裝置。主從式全雙工序列傳輸方法包括:主控裝置輪詢從屬裝置以產生排序記錄;主控裝置經主出從入匯流排廣播排序記錄;從屬裝置記錄排序記錄;從屬裝置監聽主入從出匯流排上之封包傳送狀態;以及從屬裝置根據封包傳送狀態及排序記錄接續地傳送資料封包至主控裝置。According to the present invention, a master-slave full-duplex sequence transmission method is proposed. The master-slave full-duplex sequence transmission method is used for a master-slave full-duplex sequence transmission system, and the master-slave full-duplex sequence transmission system includes a master-slave-in-sink-in stream, a master-in-out-out-slave stream, a slave device, and Master control unit. The master-slave full-duplex sequence transmission method includes: the master device polls the slave device to generate a sort record; the master device broadcasts the sort record through the master-slave slave bus; the slave device records the sort record; the slave device monitors the master-in and out-out The packet transmission status on the bus; and the slave device successively transmits the data packet to the main control device according to the packet transmission status and the sorting record.
根據本發明,提出一種主從式全雙工序列傳輸系統。主從式全雙工序列傳輸系統包括主出從入匯流排、主入從出匯流排、從屬裝置及主控裝置。各從屬裝置包括單向緩衝器及雙向緩衝器。單向緩衝器耦接主出從入匯流排,而雙向緩衝器耦接主入從出匯流排。主控裝置輪詢從屬裝置以產生排序記錄,並經主出從入匯流排廣播排序記錄,從屬裝置記錄排序記錄,且各從屬裝置經雙向緩衝器監聽主入從出匯流排上之封包傳送狀態,並根據封包傳送狀態及排序記錄接續地傳送資料封包至主控裝置。According to the present invention, a master-slave full-duplex sequence transmission system is proposed. The master-slave full-duplex sequence transmission system includes a master-slave-in-sink-and-slave stream, a master-in-slave-slave stream, a slave device, and a master device. Each slave device includes a unidirectional buffer and a bidirectional buffer. The unidirectional buffer is coupled to the main slave slave bus, and the bidirectional buffer is coupled to the master slave slave bus. The master device polls the slave device to generate a sort record, and broadcasts the sort record through the master-slave slave bus, the slave device records the sort record, and each slave device monitors the packet transfer status of the master-in-out-out-side bus bar via the bidirectional buffer. And continuously transmitting the data packet to the main control device according to the packet transmission status and the sorting record.
為了對本發明之上述及其他方面有更佳的瞭解,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下:In order to better understand the above and other aspects of the present invention, the preferred embodiments are described below, and in conjunction with the drawings, the detailed description is as follows:
下述實施例揭露一種主從式全雙工序列傳輸方法及主從式全雙工序列傳輸系統。主從式全雙工序列傳輸方法係用於主從式全雙工序列傳輸系統,且主從式全雙工序列傳輸系統包括主出從入匯流排、主入從出匯流排、從屬裝置及主控裝置。主從式全雙工序列傳輸方法包括:輪詢從屬裝置以產生排序記錄;經主出從入匯流排廣播排序記錄;從屬裝置記錄排序記錄;從屬裝置監聽主入從出匯流排上之封包傳送狀態;以及從屬裝置根據封包傳送狀態及排序記錄接續地傳送資料封包至主控裝置。The following embodiments disclose a master-slave full-duplex sequence transmission method and a master-slave full-duplex sequence transmission system. The master-slave full-duplex sequence transmission method is used for a master-slave full-duplex sequence transmission system, and the master-slave full-duplex sequence transmission system includes a master-slave-in-sink-in stream, a master-in-out-out-slave stream, a slave device, and Master control unit. The master-slave full-duplex sequence transmission method includes: polling the slave device to generate a sort record; broadcasting the sort record through the master-slave-in-stream bus; the slave device records the sort record; the slave device monitors the packet transmission of the master-in-out-out-side bus Status; and the slave device successively transmits the data packet to the master device according to the packet transmission status and the sort record.
主從式全雙工序列傳輸系統包括主出從入匯流排、主入從出匯流排、從屬裝置及主控裝置。各從屬裝置包括單向緩衝器及雙向緩衝器。單向緩衝器耦接主出從入匯流排,而雙向緩衝器耦接主入從出匯流排。主控裝置輪詢從屬裝置以產生排序記錄,並經主出從入匯流排廣播排序記錄,從屬裝置記錄排序記錄,且各從屬裝置經雙向緩衝器監聽主入從出匯流排上之封包傳送狀態,並根據封包傳送狀態及排序記錄接續地傳送資料封包至主控裝置。The master-slave full-duplex sequence transmission system includes a master-slave-in-sink-and-slave stream, a master-in-slave-slave stream, a slave device, and a master device. Each slave device includes a unidirectional buffer and a bidirectional buffer. The unidirectional buffer is coupled to the main slave slave bus, and the bidirectional buffer is coupled to the master slave slave bus. The master device polls the slave device to generate a sort record, and broadcasts the sort record through the master-slave slave bus, the slave device records the sort record, and each slave device monitors the packet transfer status of the master-in-out-out-side bus bar via the bidirectional buffer. And continuously transmitting the data packet to the main control device according to the packet transmission status and the sorting record.
請同時參照第6圖、第7圖、第8圖及第9圖,第6圖繪示係為依照實施例之主從式全雙工序列傳輸系統之示意圖,第7圖繪示係為從屬裝置之示意圖,第8圖繪示係為主從式全雙工序列傳輸方法之流程圖,第9圖繪示係為主從式全雙工序列傳輸系統之封包格式之示意圖。主從式全雙工序列傳輸系統6包括主出從入匯流排61、主入從出匯流排62、主控裝置63及從屬裝置64(1)~64(N),其中N係正整數,而從屬裝置64(1)~64(N)係由排序首至排序末。各從屬裝置64(1)~64(N)包括驅動電路71及控制電路72,且控制電路72用以控制驅動電路71。驅動電路71進一步包括傳輸介面711、單向緩衝器712及雙向緩衝器713。單向緩衝器712耦接主出從入匯流排61,而雙向緩衝器713耦接主入從出匯流排62。從屬裝置64(1)~64(N)能經由雙向緩衝器713監聽主入從出匯流排62上之封包傳送狀態。Please refer to FIG. 6 , FIG. 7 , FIG. 8 and FIG. 9 simultaneously. FIG. 6 is a schematic diagram showing a master-slave full-duplex sequence transmission system according to an embodiment, and FIG. 7 is a diagram showing a slave. A schematic diagram of the device, FIG. 8 is a flow chart showing a method for transmitting a master-slave full-duplex sequence, and FIG. 9 is a schematic diagram showing a packet format of a master-slave full-duplex sequence transmission system. The master-slave full-duplex sequence transmission system 6 includes a master-slave-in/out-slot-slot 61, a master-slave-outlet busbar 62, a master device 63, and slave devices 64(1)-64(N), where N is a positive integer. The slave devices 64(1) to 64(N) are ordered from the beginning to the end of the sort. Each of the slave devices 64(1) to 64(N) includes a drive circuit 71 and a control circuit 72, and the control circuit 72 controls the drive circuit 71. The drive circuit 71 further includes a transmission interface 711, a unidirectional buffer 712, and a bidirectional buffer 713. The unidirectional buffer 712 is coupled to the main ejector slave bus 61, and the bidirectional buffer 713 is coupled to the master NAND slave bus 62. The slave devices 64(1) to 64(N) can monitor the packet transfer state of the master-in/out-out bus bar 62 via the bidirectional buffer 713.
主從式全雙工序列傳輸系統6之封包格式包括位址欄位91、封包類別欄位92、資料/命令碼欄位93及錯誤檢查碼欄位94。位址欄位91用以記錄封包之目的位址,而封包類別欄位92用以記錄封包的類別,如資料封包或命令封包。資料/命令碼欄位93用以記錄資料封包之資料或命令封包之命令碼,命令碼例如表示命令封包用以初始化從屬裝置、啟動排序記錄或是註記排序末之從屬裝置。錯誤檢查碼欄位94用以紀錄錯誤檢查碼,錯誤檢查碼例如為循環冗餘檢查(Cyclic Redundancy Check,CRC)碼。The packet format of the master-slave full-duplex sequence transmission system 6 includes a address field 91, a packet class field 92, a data/command code field 93, and an error check code field 94. The address field 91 is used to record the destination address of the packet, and the packet category field 92 is used to record the type of the packet, such as a data packet or a command packet. The data/command code field 93 is used to record the data of the data packet or the command code of the command packet. The command code, for example, indicates that the command packet is used to initialize the slave device, initiate the sort record, or note the slave device at the end of the sort. The error check code field 94 is used to record an error check code, such as a Cyclic Redundancy Check (CRC) code.
主從式全雙工序列傳輸方法能應用於前述主從式全雙工序列傳輸系統6,且至少包括步驟81至85。如步驟81所示,主控裝置63輪詢從屬裝置64(1)~64(N)以產生排序記錄。主控裝置63例如係依序發出用以初始化之命令封包以輪詢從屬裝置64(1)~64(N),所以可將步驟81視為主控裝置63初始化從屬裝置64(1)~64(N)。進一步來說,主控裝置63輪詢從屬裝置64(1)~64(N)以記錄從屬裝置64(1)~64(N)之數量及位置,主控裝置63並根據從屬裝置64(1)~64(N)之數量及位置規劃從屬裝置64(1)~64(N)之間的傳輸順序以產生排序記錄。此外,主控裝置63更能註記排序末之從屬裝置64(N)。如步驟82所示,主控裝置63經主出從入匯流排61廣播排序記錄。如步驟83所示,從屬裝置64(1)~64(N)記錄排序記錄。如步驟84所示,從屬裝置64(1)~64(N)監聽主入從出匯流排62上之封包傳送狀態。如步驟85所示,從屬裝置64(1)~64(N)根據封包傳送狀態及排序記錄接續地傳送資料封包至主控裝置63。The master-slave full-duplex sequence transmission method can be applied to the aforementioned master-slave full-duplex sequence transmission system 6, and includes at least steps 81 to 85. As shown in step 81, the master device 63 polls the slave devices 64(1)-64(N) to generate a sort record. The master device 63 sequentially issues command packets for initialization to poll the slave devices 64(1) to 64(N), so that step 81 can be regarded as the master device 63 initializing the slave devices 64(1)-64. (N). Further, the master device 63 polls the slave devices 64(1) to 64(N) to record the number and position of the slave devices 64(1) to 64(N), and the master device 63 is based on the slave device 64 (1). The number of ~64(N) and location plan the order of transmission between the slave devices 64(1)-64(N) to generate a sort record. In addition, the master device 63 is more capable of notating the slave device 64(N) at the end of the sorting. As shown in step 82, the master device 63 broadcasts the sorted record via the master-out slave-in bus bar 61. As shown in step 83, the slave devices 64(1) to 64(N) record the sort record. As shown in step 84, slave devices 64(1)-64(N) listen to the packet transfer status of the master-in/out-out busbar 62. As shown in step 85, the slave devices 64(1) to 64(N) successively transmit the data packet to the master device 63 based on the packet transfer status and the sort record.
舉例來說,當主控裝置63經主出從入匯流排61廣播一用以啟動一排程記錄之命令封包後,排序為i+1之從屬裝置64(i+1)監聽主入從出匯流排62上之封包傳送狀態並於排序為i之從屬裝置64(i)之傳送資料封包完畢後,接續地傳送資料封包。其中,i係小於N之正整數。排序首之從屬裝置64(1)監聽主入從出匯流排62上之封包傳送狀態並於從屬裝置64(N)之傳送資料封包完畢後,接續地傳送資料封包。當第i個從屬裝置未於一等待時間內傳送封包至主控裝置63,第i個從屬裝置之排序記錄被移除,第i+1個從屬裝置接續地傳送資料封包。For example, when the master device 63 broadcasts a command packet for starting a scheduled recording via the master-out slave bus 61, the slave device 64 (i+1) sorted as i+1 monitors the master-in and out-out. After the packet transmission status on the bus 62 is completed and the data packet of the slave device 64(i) sorted as i is completed, the data packet is successively transmitted. Where i is a positive integer less than N. The sorting first slave device 64(1) monitors the packet transfer status of the master incoming and outgoing slave bus 62 and transmits the data packet after the slave device 64(N) transmits the data packet. When the i-th slave device does not transmit the packet to the master device 63 within a waiting time, the sort record of the i-th slave device is removed, and the i+1th slave device successively transmits the data packet.
請同時參照第10圖至第13圖,第10圖繪示係為主控裝置送出第1個用以初始化之命令封包之示意圖,第11圖繪示係為主控裝置送出第2個用以初始化之命令封包之示意圖,第12圖繪示係為主控裝置送出第3個用以初始化之命令封包之示意圖,第13圖繪示係為主控裝置送出第4至32個用以初始化之命令封包之示意圖。為方便說明起見,後續圖示之從屬裝置係以從屬裝置64(1)~64(3)為例說明,然從屬裝置之個數可視其實際運用予以彈性調整。如第10圖所示,主控裝置63經主出從入匯流排61廣播用以初始化之命令封包E1。從屬裝置64(1)經主出從入匯流排61接收命令封包E1後,回應地經主入從出匯流排62將命令封包E1傳輸至主控裝置63。主控裝置63接收由從屬裝置64(1)傳輸之命令封包E1後即產生從屬裝置64(1)之排序R1,並將排序R1加入排序記錄R中,此時排序記錄R=[R1]。Please refer to FIG. 10 to FIG. 13 at the same time. FIG. 10 is a schematic diagram showing that the first command packet for initializing is sent to the main control device, and FIG. 11 is the second one for the main control device. Schematic diagram of the initializing the command packet, FIG. 12 is a schematic diagram showing the third command packet for initializing the device to be initialized, and FIG. 13 is a diagram showing the fourth to 32th of the main control device for initializing. Schematic diagram of the command packet. For convenience of explanation, the slave devices in the following diagrams are described by taking the slave devices 64(1) to 64(3) as an example, but the number of slave devices can be flexibly adjusted according to their actual use. As shown in Fig. 10, the master device 63 broadcasts the command packet E1 for initialization via the master-out slave bus 61. The slave device 64(1) transmits the command packet E1 to the master device 63 via the master inbound and outbound busbars 62 after receiving the command packet E1 from the incoming bus bar 61 via the master. The master device 63 receives the order R1 of the slave device 64(1) after receiving the command packet E1 transmitted by the slave device 64(1), and adds the sort R1 to the sort record R, at which time the sort record R = [R1].
接著如第11圖所示,主控裝置63經主出從入匯流排61廣播用以初始化之命令封包E2。從屬裝置64(2)經主出從入匯流排61接收命令封包E2後,回應地經主入從出匯流排62將命令封包E2傳輸至主控裝置63。主控裝置63接收由從屬裝置64(2)傳輸之命令封包E2後即產生從屬裝置64(2)之排序R2,並將排序R2加入排序記錄R中,此時排序記錄R=[R1 R2]。Next, as shown in Fig. 11, the master device 63 broadcasts the command packet E2 for initialization via the master-out slave bus 61. The slave device 64(2) transmits the command packet E2 to the master device 63 via the master inbound and outbound busbars 62 after receiving the command packet E2 from the incoming bus bar 61 via the master. The master device 63 receives the sequence R2 of the slave device 64(2) after receiving the command packet E2 transmitted by the slave device 64(2), and adds the sort R2 to the sort record R, at which time the sort record R=[R1 R2] .
跟著如第12圖所示,主控裝置63經主出從入匯流排61廣播用以初始化之命令封包E3。從屬裝置64(3)經主出從入匯流排61接收命令封包E3後,回應地經主入從出匯流排62將命令封包E3傳輸至主控裝置63。主控裝置63接收由從屬裝置64(3)傳輸之命令封包E3後即產生從屬裝置64(3)之排序R3,並將之加入排序記錄R中,此時排序記錄R=[R1 R2 R3]。Next, as shown in Fig. 12, the master device 63 broadcasts the command packet E3 for initialization via the master-out slave bus 61. The slave device 64(3) transmits the command packet E3 to the master device 63 via the master inbound and outbound busbars 62 after receiving the command packet E3 from the incoming bus bar 61 via the master. After receiving the command packet E3 transmitted by the slave device 64(3), the master device 63 generates the sequence R3 of the slave device 64(3) and adds it to the sort record R. At this time, the sort record R=[R1 R2 R3] .
然後如第13圖所示,主控裝置63依序地經主出從入匯流排61廣播用以初始化之命令封包E4至E32。由於第13圖繪示之主從式全雙工序列傳輸系統中不存在接收命令封包E4至E32之從屬裝置,因此主控裝置63於一預設時間內沒有接收到由從屬裝置回應之命令封包E4至E32後,即註記從屬裝置64(3)為排序末,並結束排序以產生排序記錄R,此時排序記錄R=[R1 R2 R3]。Then, as shown in Fig. 13, the master device 63 sequentially broadcasts the command packets E4 to E32 for initialization via the master-out slave bus 61. Since the master-slave full-duplex sequence transmission system shown in FIG. 13 does not have the slave device receiving the command packets E4 to E32, the master device 63 does not receive the command packet responded by the slave device within a preset time. After E4 to E32, the slave device 64(3) is noted as the end of sorting, and the sorting is ended to generate the sort record R, at which time the sort record R = [R1 R2 R3].
請同時參照第14圖、第15圖、第16圖、第17圖、第18圖、第19圖及第20圖,第14圖繪示係為主控裝置廣播排序記錄之示意圖,第15圖繪示係為從屬裝置記錄排序記錄之示意圖,第16圖繪示係為啟動從屬裝置64(1)之示意圖,第17圖繪示係為從屬裝置64(1)傳送資料封包之示意圖,第18圖繪示係為從屬裝置64(2)傳送資料封包之示意圖,第19圖繪示係為從屬裝置64(3)傳送資料封包之示意圖,第20圖繪示係為從屬裝置64(1)於從屬裝置64(3)後接續地傳送資料封包之示意圖。如第14圖所示,主控裝置63經主出從入匯流排61廣播排序記錄R。如第15圖所示,從屬裝置64(1)~64(3)經主出從入匯流排61記錄排序記錄R=[R1 R2 R3]。Please refer to FIG. 14 , FIG. 15 , FIG. 16 , FIG. 17 , FIG. 18 , FIG. 19 , and FIG. 20 simultaneously . FIG. 14 is a schematic diagram showing broadcast sequencing records of the main control device, FIG. The drawing is a schematic diagram of the slave device recording the sorting record, the 16th drawing is a schematic diagram of the slave device 64(1), and the 17th is the schematic diagram of the slave device 64(1) transmitting the data packet, the 18th The figure shows a schematic diagram of the data packet being transmitted by the slave device 64(2), the figure 19 is a schematic diagram of the data packet being transmitted by the slave device 64(3), and the figure 20 is a slave device 64(1) The slave device 64(3) then transmits a schematic diagram of the data packet. As shown in Fig. 14, the master device 63 broadcasts the sort record R via the master-out slave-in bus bar 61. As shown in Fig. 15, the slave devices 64(1) to 64(3) record the sort record R = [R1 R2 R3] via the master-out slave input/output bus 61.
如第16圖所示,主控裝置63經主出從入匯流排61廣播一用以啟動排程記錄之命令封包F1。如第17圖所示,從屬裝置64(1)至64(3)經主出從入匯流排61接收命令封包F1後,啟動排程記錄H1。此時排程記錄H1係指向排序R1。排序首之從屬裝置64(1)經主出從入匯流排61接收命令封包F1後,回應地經主入從出匯流排62將資料封包G1傳輸至主控裝置63。如第18圖所示,從屬裝置64(1)至64(3)監聽主入從出匯流排62上之封包傳送狀態。當排序首之從屬裝置64(1)之傳送資料封包完畢後,排程記錄H1係指向排序R2。排序為2之從屬裝置64(2)根據排序R2接續地傳送資料封包G2。如第19圖所示,從屬裝置64(1)至64(3)監聽主入從出匯流排62上之封包傳送狀態。當排序為2之從屬裝置64(2)之傳送資料封包完畢後,排程記錄H1係指向排序R3。排序末之從屬裝置64(3)根據排序R3接續地傳送資料封包G3。如第20圖所示,從屬裝置64(1)至64(3)監聽主入從出匯流排62上之封包傳送狀態。當排序末之從屬裝置64(3)之傳送資料封包完畢後,排程記錄H1係指向排序R1。排序首之從屬裝置64(1)根據排序R3接續地傳送資料封包G1。As shown in Fig. 16, the master control unit 63 broadcasts a command packet F1 for starting schedule recording via the master-out slave-in bus bar 61. As shown in Fig. 17, the slave devices 64(1) to 64(3) start the schedule record H1 after receiving the command packet F1 via the master-out slave-in bus bar 61. At this time, the schedule record H1 points to the sort R1. The sorting first slave device 64(1) transmits the data packet G1 to the master device 63 via the master inbound and outbound busbars 62 after receiving the command packet F1 from the incoming busbar 61 via the master. As shown in Fig. 18, the slave devices 64(1) to 64(3) monitor the packet transfer state of the master-in/out slave bus 62. When the data packet of the first slave device 64(1) is sorted, the schedule record H1 points to the sort R2. The slave device 64 (2) sorted to 2 successively transmits the data packet G2 according to the sort R2. As shown in Fig. 19, the slave devices 64(1) to 64(3) monitor the packet transfer state of the master-in/out-out bus bar 62. When the data packet of the slave device 64(2) sorted to 2 is completed, the schedule record H1 points to the sort R3. The slave device 64(3) at the end of the sorting succeeds in transmitting the data packet G3 according to the sort R3. As shown in Fig. 20, the slave devices 64(1) to 64(3) monitor the packet transfer state of the master-in/out slave bus 62. When the data packet of the slave device 64(3) at the end of the sorting is completed, the schedule record H1 points to the sort R1. The sorting first slave device 64(1) successively transmits the data packet G1 according to the sort R3.
請同時參照第21圖及第22圖,第21圖繪示係為從屬裝置依排序記錄傳送封包之示意圖,第22圖繪示係為主控裝置傳送封包之示意圖。前述從屬裝置64(1)~64(3)不需透過主控裝置63不斷地觸發,而是從屬裝置64(1)~64(3)根據本身所記錄的排序記錄R=[R1 R2 R3]不斷接續地傳送資料封包G1~G3。如此一來,將能節省主入從出匯流排62的負擔。此外,由於前述從屬裝置64(1)~64(3)不需透過主控裝置63不斷地觸發,因此主控裝置63能透過主入從出匯流排62進行資料傳送或排程管理。舉例來說,當從屬裝置64(1)未於一等待時間內傳送封包至主控裝置63,主控裝置63移除從屬裝置64(1)之排序記錄R1,並發出用以排程管理之命令封包K1至主出從入匯流排61。從屬裝置64(1)~64(3)根據命令封包K1得知從屬裝置64(1)故障,並移除從屬裝置64(1)之排序記錄R1。排程記錄H1係指向排序R2,從屬裝置64(2)接續地傳送資料封包。Please refer to FIG. 21 and FIG. 22 at the same time. FIG. 21 is a schematic diagram showing a slave device transmitting a packet according to a sorting record, and FIG. 22 is a schematic diagram showing a packet transmitted by the master device. The slave devices 64(1) to 64(3) need not be continuously triggered by the master device 63, but the slave devices 64(1) to 64(3) record R=[R1 R2 R3] according to the order recorded by itself. The data packets G1 to G3 are continuously transmitted. As a result, the burden of the master entry and exit bus 62 can be saved. Further, since the slave devices 64(1) to 64(3) are not required to be constantly triggered by the master device 63, the master device 63 can perform data transfer or schedule management from the bus bar 62 through the master entry. For example, when the slave device 64(1) does not transmit the packet to the master device 63 within a waiting time, the master device 63 removes the sort record R1 of the slave device 64(1) and issues a schedule management. The command packet K1 is sent to the master-slave slave bus 61. The slave devices 64(1)-64(3) learn from the command packet K1 that the slave device 64(1) has failed and removes the sort record R1 of the slave device 64(1). The schedule record H1 is directed to the sort R2, and the slave device 64(2) successively transmits the data packet.
綜上所述,雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。In conclusion, the present invention has been disclosed in the above preferred embodiments, and is not intended to limit the present invention. A person skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.
1...傳統主從式全雙工序列傳輸系統1. . . Traditional master-slave full-duplex sequence transmission system
6...依照實施例之主從式全雙工序列傳輸系統6. . . Master-slave full-duplex sequence transmission system according to an embodiment
11、61...主出從入匯流排11, 61. . . Main out of the bus
12、62...主入從出匯流排12, 62. . . Master in from the bus
13、63...主控裝置13, 63. . . Master control unit
14(1)~14(N)、64(1)~64(N)...從屬裝置14(1)~14(N), 64(1)~64(N). . . Slave device
71...驅動電路71. . . Drive circuit
72...控制電路72. . . Control circuit
81~85...步驟81~85. . . step
91...位址欄位91. . . Address field
92...封包類別欄位92. . . Packet category field
93...資料/命令碼欄位93. . . Data/command code field
94...錯誤檢查碼欄位94. . . Error check code field
711...傳輸介面711. . . Transmission interface
712...單向緩衝器712. . . One-way buffer
713...雙向緩衝器713. . . Bidirectional buffer
A1~A3、B1~B3、C1~C3、D1~D3、G1~G3...資料封包A1~A3, B1~B3, C1~C3, D1~D3, G1~G3. . . Data packet
E1~E32、F1、K1...命令封包E1 ~ E32, F1, K1. . . Command packet
R1~R3...排序R1 ~ R3. . . Sort
H1...排程記錄H1. . . Schedule record
第1圖繪示係為依照傳統主從式全雙工序列傳輸系統之示意圖。Figure 1 is a schematic diagram showing a transmission system in accordance with a conventional master-slave full-duplex sequence.
第2圖繪示係為主控裝置送出第1筆資料封包之示意圖。Figure 2 is a schematic diagram showing the transmission of the first data packet by the master control device.
第3圖繪示係為主控裝置送出第2筆資料封包之示意圖。Figure 3 is a schematic diagram showing the transmission of the second data packet by the main control device.
第4圖繪示係為主控裝置送出第3筆資料封包之示意圖。Figure 4 is a schematic diagram showing the sending of the third data packet to the main control device.
第5圖繪示係為主控裝置傳送及接收資料封包之示意圖。Figure 5 is a schematic diagram showing the transmission and reception of data packets by the main control device.
第6圖繪示係為依照實施例之主從式全雙工序列傳輸系統之示意圖。Figure 6 is a schematic diagram showing a master-slave full-duplex sequence transmission system in accordance with an embodiment.
第7圖繪示係為從屬裝置之示意圖。Figure 7 is a schematic diagram showing a slave device.
第8圖繪示係為主從式全雙工序列傳輸方法之流程圖。Figure 8 is a flow chart showing a method for transmitting a master-slave full-duplex sequence.
第9圖繪示係為主從式全雙工序列傳輸系統之封包格式之示意圖。Figure 9 is a schematic diagram showing the packet format of the master-slave full-duplex sequence transmission system.
第10圖繪示係為主控裝置送出第1個用以初始化之命令封包之示意圖。Figure 10 is a schematic diagram showing the first command packet for initializing the device for initialization.
第11圖繪示係為主控裝置送出第2個用以初始化之命令封包之示意圖。Figure 11 is a schematic diagram showing the second command block for initializing the device to be initialized.
第12圖繪示係為主控裝置送出第3個用以初始化之命令封包之示意圖。Figure 12 is a schematic diagram showing the sending of a third command packet for initialization by the master control device.
第13圖繪示係為主控裝置送出第4至32個用以初始化之命令封包之示意圖。Figure 13 is a schematic diagram showing the transmission of the fourth to 32 command packets for initialization by the master control device.
第14圖繪示係為主控裝置廣播排序記錄之示意圖。Figure 14 is a schematic diagram showing the broadcast sequencing record of the main control device.
第15圖繪示係為從屬裝置記錄排序記錄之示意圖。Figure 15 is a schematic diagram showing the sorting record recorded by the slave device.
第16圖繪示係為啟動從屬裝置64(1)之示意圖。Figure 16 is a schematic diagram showing the activation of slave device 64(1).
第17圖繪示係為從屬裝置64(1)傳送資料封包之示意圖。Figure 17 is a schematic diagram showing the transmission of data packets by slave device 64(1).
第18圖繪示係為從屬裝置64(2)傳送資料封包之示意圖。Figure 18 is a schematic diagram showing the transmission of data packets by slave device 64(2).
第19圖繪示係為從屬裝置64(3)傳送資料封包之示意圖。Figure 19 is a schematic diagram showing the transmission of a data packet by the slave device 64(3).
第20圖繪示係為從屬裝置64(1)於從屬裝置64(3)後接續地傳送資料封包之示意圖。Figure 20 is a schematic diagram showing the slave device 64(1) successively transmitting data packets after the slave device 64(3).
第21圖繪示係為從屬裝置依排序記錄傳送封包之示意圖。Figure 21 is a schematic diagram showing the slave device transmitting a packet according to the sorting record.
第22圖繪示係為主控裝置傳送封包之示意圖。Figure 22 is a schematic diagram showing the transmission of a packet by the main control device.
81~85...步驟81~85. . . step
Claims (19)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100115528A TWI461922B (en) | 2011-05-03 | 2011-05-03 | System and method for master/slaver full duplex serial transmission |
CN201110189463.3A CN102768650B (en) | 2011-05-03 | 2011-07-07 | Master-slave full duplex serial transmission system and master-slave full duplex serial transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100115528A TWI461922B (en) | 2011-05-03 | 2011-05-03 | System and method for master/slaver full duplex serial transmission |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201245967A TW201245967A (en) | 2012-11-16 |
TWI461922B true TWI461922B (en) | 2014-11-21 |
Family
ID=47096055
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW100115528A TWI461922B (en) | 2011-05-03 | 2011-05-03 | System and method for master/slaver full duplex serial transmission |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102768650B (en) |
TW (1) | TWI461922B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI556579B (en) * | 2014-12-10 | 2016-11-01 | 英業達股份有限公司 | Electronic device and data transmission method thereof |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11860730B2 (en) | 2021-12-06 | 2024-01-02 | Waymo Llc | Low-overhead, bidirectional error checking for a serial peripheral interface |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6585431B1 (en) * | 1998-05-26 | 2003-07-01 | Matsushita Electric Industrial Co., Ltd. | Noncontact information transmitter |
US6771612B1 (en) * | 1998-10-21 | 2004-08-03 | Samsung Electronics Co., Ltd. | Full duplex interface apparatus for a high performance serial bus using a port switch |
TWI273420B (en) * | 2005-07-21 | 2007-02-11 | Via Tech Inc | Data processing method and system based on a serial transmission interface |
TWI310499B (en) * | 2005-04-26 | 2009-06-01 | Sunplus Technology Co Ltd | Slave and master of serial peripheral interface, system thereof, and method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2529132A1 (en) * | 2003-06-13 | 2004-12-23 | International Business Machines Corporation | Serial bus interface and method for serially interconnecting time-critical digital devices |
US7782803B2 (en) * | 2003-11-04 | 2010-08-24 | The Regents Of University Of California | Half-duplex wireless network scheduling |
CN101067804B (en) * | 2007-05-29 | 2010-04-14 | 山东大学 | A high-speed configurable extended SPI bus and working method thereof |
-
2011
- 2011-05-03 TW TW100115528A patent/TWI461922B/en active
- 2011-07-07 CN CN201110189463.3A patent/CN102768650B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6585431B1 (en) * | 1998-05-26 | 2003-07-01 | Matsushita Electric Industrial Co., Ltd. | Noncontact information transmitter |
US6771612B1 (en) * | 1998-10-21 | 2004-08-03 | Samsung Electronics Co., Ltd. | Full duplex interface apparatus for a high performance serial bus using a port switch |
TWI310499B (en) * | 2005-04-26 | 2009-06-01 | Sunplus Technology Co Ltd | Slave and master of serial peripheral interface, system thereof, and method thereof |
TWI273420B (en) * | 2005-07-21 | 2007-02-11 | Via Tech Inc | Data processing method and system based on a serial transmission interface |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI556579B (en) * | 2014-12-10 | 2016-11-01 | 英業達股份有限公司 | Electronic device and data transmission method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102768650A (en) | 2012-11-07 |
CN102768650B (en) | 2015-06-17 |
TW201245967A (en) | 2012-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4879305B2 (en) | Media access control in master-slave system | |
US9176919B2 (en) | Process controller having multi-channel serial communications link | |
JPH06216925A (en) | Method for transferring high-speed data | |
US6631138B1 (en) | Reduced pin-count 10Base-T MAC to transceiver interface | |
US7792153B2 (en) | Sequencing multi-source messages for delivery as partial sets to multiple destinations | |
TWI461922B (en) | System and method for master/slaver full duplex serial transmission | |
TWI258960B (en) | Flexible scheduling architecture | |
CN107766200A (en) | A kind of I2C monitoring bus system and monitoring method | |
KR100365537B1 (en) | Data communication method and electrical apparatus | |
US6272572B1 (en) | Apparatus and method for transmitting and receiving passenger service system and telephone signals over a network | |
Mark | Distributed scheduling conflict-free multiple access for local area communication networks | |
WO2007076728A1 (en) | Method and device for transmission service using backplane service buses | |
CN1898957B (en) | Using multiple communication links in conjunction with a media adapter | |
CN106330409B (en) | A kind of multichannel TS video stream transmission method and its system | |
CN114845340A (en) | Method, system, medium and terminal for distributing TT time slot for video service optimization | |
KR101275640B1 (en) | Programmable logic controller using multiple buses | |
JPH0771102B2 (en) | Method and apparatus for transmitting signaling information in LAN system | |
JP2013236257A (en) | Communication system | |
CN111372213B (en) | Two-layer system of random multiple access and polling multiple access protocol based on FPGA | |
JPS5676671A (en) | Digital telephone network monitor system | |
JP5396870B2 (en) | Broadcast communication method between terminal devices | |
CN115835095A (en) | Audio synchronous playing method and device | |
CN117978576A (en) | Transmission system | |
Sun et al. | The analysis of the key performances of ControlNet | |
CN102316114A (en) | Internet protocol (IP) information transmission method based on dedicated line channel and device |