TWI761850B - Bus control method and system thereof - Google Patents
Bus control method and system thereof Download PDFInfo
- Publication number
- TWI761850B TWI761850B TW109119033A TW109119033A TWI761850B TW I761850 B TWI761850 B TW I761850B TW 109119033 A TW109119033 A TW 109119033A TW 109119033 A TW109119033 A TW 109119033A TW I761850 B TWI761850 B TW I761850B
- Authority
- TW
- Taiwan
- Prior art keywords
- slave
- bus
- arbitration value
- slave devices
- master
- Prior art date
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本發明係有關於一種控制方法及其系統,特別是傳輸非同步串列信號的多通道下,有關於一種匯流排控制方法及其系統。 The present invention relates to a control method and system thereof, in particular, to a busbar control method and system under multi-channel transmission of asynchronous serial signals.
一般非同步串列傳輸規格大多設定為一對一的傳輸方式(如第1圖所示),另外因無法共用匯流排所以線路也會相對的複雜與昂貴(如第2圖所示)。另外有些系統採用環狀架構進行傳輸,其雖可降低硬體及線材需求,但具有傳輸資料延遲以及單一元件損壞即造成整個系統停擺的缺點(如第3圖所示),所以本發明提出一可行方案,可應用於匯流排架構,使得所有元件皆可同時接上一匯流排,如此可同時降低對元件及線材的需求,也會降低單一元件損壞時除錯的難度,另外也可改善相對於環狀傳輸所造成的封包延遲及單一元件損壞即造成整個系統停擺的缺點。 Generally, asynchronous serial transmission specifications are mostly set to one-to-one transmission (as shown in Figure 1). In addition, because the bus cannot be shared, the lines are relatively complicated and expensive (as shown in Figure 2). In addition, some systems use a ring structure for transmission. Although it can reduce the hardware and wire requirements, it has the shortcomings of data transmission delay and the damage of a single component will cause the entire system to shut down (as shown in Figure 3). Therefore, the present invention proposes a A feasible solution can be applied to the busbar structure, so that all components can be connected to a busbar at the same time, which can reduce the demand for components and wires at the same time, and also reduce the difficulty of debugging when a single component is damaged. The packet delay and single component damage caused by the ring transmission is the disadvantage that the entire system is shut down.
因此,為解決上述問題,本發明的目的即在提供一種匯流排控制方法及其系統,僅有一個與鮑率(Baud rate)相同的從屬裝置,取得傳送通道的匯流排,唯一的仲裁使用權,用以形成該主控裝置與僅有一個的被選定從屬裝置之間的訊號傳送。該通道仲裁使用權還可以具體應用在通用非同步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)。 Therefore, in order to solve the above-mentioned problems, the purpose of the present invention is to provide a bus control method and a system thereof. There is only one slave device with the same baud rate to obtain the bus of the transmission channel, and the only arbitration use right , used to form the signal transfer between the master device and only one selected slave device. The channel arbitration usage right can also be specifically applied to a Universal Asynchronous Receiver/Transmitter (UART).
本發明為解決習知技術之問題所採用之技術手段,係提供一種匯流排控制方法,使用於連接一主控裝置以及複數個從屬裝置的一匯流排,該匯流排控制方法包含:分別對該複數個從屬裝置設定一仲裁數值以及不同的鮑率,並於該主控裝置儲存該仲裁數值、以及該複數個從屬裝置所設定的該鮑率之資訊;於該主控裝置,從該複數個從屬裝置中選擇欲通訊的一個從屬裝置,並以所選之該從屬裝置之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排;以及於每一該複數個從屬裝置,經由該匯流排接收經過調變的該仲裁數值,並分別使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中由解調變出正確的該仲裁數值的該從屬裝置回應該主控裝置。 The technical means adopted by the present invention to solve the problems of the prior art is to provide a busbar control method for connecting a busbar of a master control device and a plurality of slave devices, the busbar control method comprising: A plurality of slave devices set an arbitration value and different baud rates, and the master control device stores the arbitration value and the information of the baud rate set by the plurality of slave devices; in the master control device, from the plurality of A slave device to be communicated is selected from the slave devices, and the arbitration value is modulated with the baud rate of the selected slave device, and the modulated arbitration value is sent to the bus; and in each of the A plurality of slave devices receive the modulated arbitration value through the bus, and respectively use the set baud rate to demodulate the modulated arbitration value, wherein the correct arbitration value is obtained by demodulation The slave of the value responds to the master.
在本發明的一實施例中係提供一種匯流排控制方法,其中使用該匯流排所形成的一第一訊號傳輸線以及一第二訊號傳輸線連接該主控裝置以及該複數個從屬裝置的步驟,包括:使用該第一訊號傳輸線電性連接該主控裝置的傳輸器以及該從屬裝置的接收器;以及使用該第二訊號傳輸線傳輸電性連接該主控裝置的接收器以及該從屬裝置的傳輸器。 In an embodiment of the present invention, a method for controlling a bus bar is provided, wherein the step of using a first signal transmission line and a second signal transmission line formed by the bus bar to connect the master device and the plurality of slave devices includes: : use the first signal transmission line to electrically connect the transmitter of the master device and the receiver of the slave device; and use the second signal transmission line to electrically connect the receiver of the master device and the transmitter of the slave device .
在本發明的一實施例中係提供一種匯流排控制方法,更包括以下步驟:於該主控裝置經由該匯流排,傳送一中止訊號至所選之該從屬裝置;於該從屬裝置以及該主控裝置停止傳送以及接收訊號;再於該主控裝置,從該複數個從屬裝置中重新選擇欲通訊的一個從屬裝置,並以所選之該從屬裝置之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排;於每一該複數個從屬裝置,經由該匯流排接收經過調變的該仲裁數值,並分別使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中由解調變出正確的該仲裁數值的該從屬裝置取回應該主控裝置。 In an embodiment of the present invention, a method for controlling a bus bar is provided, further comprising the following steps: the master device transmits a stop signal to the selected slave device via the bus bar; the slave device and the master device The control device stops transmitting and receiving signals; then, the master control device reselects a slave device to communicate with from the plurality of slave devices, and modulates the arbitration value with the baud rate of the selected slave device , transmit the modulated arbitration value to the bus; at each of the plurality of slave devices, receive the modulated arbitration value through the bus, and respectively use the set baud rate to modulate the modulated value The arbitration value is demodulated, wherein the slave device that demodulates the correct arbitration value retrieves the master device.
在本發明的一實施例中係提供一種匯流排控制方法,其中,使用該中止訊號的傳輸型態,用以其中於該從屬裝置以及該主控裝置停止傳送以及接收訊號,係使用該匯流排的該第一訊號傳輸線經由該主控裝置的該傳輸器,傳輸一幀保持低電平的時間,至少大於傳輸複數個該從屬裝置的接收器中,所能接受最長的一幀的時間後,進入該中止訊號的傳輸型態。 In an embodiment of the present invention, a method for controlling a bus bar is provided, wherein the transmission type of the stop signal is used to stop the transmission and reception of signals between the slave device and the master device, and the bus bar is used The first signal transmission line of the master device, through the transmitter of the master device, transmits a frame that keeps the low level at least longer than the time that the receivers of the plurality of slave devices can receive the longest frame. Enter the transmission type of the abort signal.
在本發明的一實施例中係提供一種匯流排控制方法,其中該接收器以及該傳輸器,係通用非同步的該接收器以及該傳輸器(Universal Asynchronous Receiver/Transmitter,UART)。其中該鮑率的型態是單一或多個封包所組成。 In an embodiment of the present invention, a bus control method is provided, wherein the receiver and the transmitter are universal asynchronous receivers and transmitters (Universal Asynchronous Receiver/Transmitter, UART). The type of the baud rate is composed of single or multiple packets.
本發明為解決習知技術之問題所採用之技術手段,係提供一種匯流排控制系統,取得傳送之使用權,用以傳送非同步串列信號,包含:一匯流排、複數個從屬裝置、以及一主控裝置。其中該複數個從屬裝置,電性連結該匯流排,該從屬裝置具有被設定一仲裁數值以及不同的鮑率;以及該主控裝置,電性連結該匯流排,該主控裝置儲存該仲裁數值、以及該複數個從屬裝置所設定的該鮑率之資訊,該主控裝置具有一調變模組,該調變模組係從該複數個從屬裝置中選擇欲通訊的一個從屬裝置,並以所選之該從屬裝置之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排;其中每一該複數個從屬裝置,經由該匯流排接收經過調變的該仲裁數值,該從屬裝置具有一解調變模組,該解調變模組並使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中由解調變出正確的該仲裁數值的該從屬裝置回應該主控裝置。 The technical means adopted by the present invention to solve the problems of the prior art is to provide a bus control system, which obtains the use right of transmission for transmitting asynchronous serial signals, comprising: a bus, a plurality of slave devices, and a master control device. The plurality of slave devices are electrically connected to the bus bar, and the slave devices have a set arbitration value and different baud rates; and the master control device is electrically connected to the bus bar, and the master control device stores the arbitration value , and the information of the baud rate set by the plurality of slave devices, the master device has a modulation module, the modulation module selects a slave device to be communicated from the plurality of slave devices, and uses The baud rate of the selected slave device modulates the arbitration value, and transmits the modulated arbitration value to the bus; wherein each of the plurality of slave devices receives the modulated value through the bus For the arbitration value, the slave device has a demodulation module, and the demodulation module uses the set baud rate to demodulate the modulated arbitration value, wherein the correct one is obtained by demodulation. The slave device of the arbitration value responds to the master device.
在本發明的一實施例中係提供一種匯流排控制系統,其中,該匯流排,包括:一第一訊號傳輸線電性連接該主控裝置的傳輸器以及該從 屬裝置的接收器;以及一第二訊號傳輸線傳輸電性連接該主控裝置的接收器以及該從屬裝置的傳輸器。 In an embodiment of the present invention, a busbar control system is provided, wherein the busbar includes: a first signal transmission line electrically connected to the transmitter of the master control device and the slave a receiver of the slave device; and a second signal transmission line electrically connecting the receiver of the master device and the transmitter of the slave device.
在本發明的一實施例中係提供一種匯流排控制系統,其中該主控裝置具有一重設模組,傳送一中止訊號至所選之該從屬裝置,於該從屬裝置以及該主控裝置停止傳送以及接收訊號,用以重新再取得該匯流排之使用權。 In an embodiment of the present invention, a bus control system is provided, wherein the master device has a reset module, which transmits a stop signal to the selected slave device, and stops the transmission of the slave device and the master device. And receive the signal to regain the right to use the bus.
在本發明的一實施例中係提供一種匯流排控制系統,其中該重設模組的該中止訊號的傳輸型態,係該匯流排的該第一訊號傳輸線經由該主控裝置的傳輸器,傳輸一幀保持低電平的時間,至少大於傳輸複數個該從屬裝置的接收器中,所能接受最長的一幀的時間後,進入該重設模組的該中止訊號的傳輸型態。 In an embodiment of the present invention, a bus control system is provided, wherein the transmission mode of the stop signal of the reset module is that the first signal transmission line of the bus passes through the transmitter of the main control device, The time of transmitting a frame to keep the low level is at least longer than the longest time that can be received by the receivers of the plurality of slave devices, and then entering the transmission mode of the abort signal of the reset module.
RX:接收器 RX: Receiver
TX:傳輸器 TX: Transmitter
10:匯流排 10: Busbar
11:主控裝置 11: Main control device
12:從屬裝置 12: Slave device
13:第一訊號傳輸線 13: The first signal transmission line
14:第二訊號傳輸線 14: The second signal transmission line
Start:開始位元 Start: start bit
Stop:停止位元 Stop: stop bit
PAR:奇偶校驗位元(parity check bit) PAR: parity check bit
D0~D7:數據位元 D0~D7: data bits
ID1:第一從屬裝置 ID1: First slave device
ID2:第二從屬裝置 ID2: Second slave device
ID3:第三從屬裝置 ID3: Third slave device
ID4:第四從屬裝置 ID4: Fourth slave device
DATA1~DATAn:第一數據位元~第n數據位元 DATA1~DATAn: The first data bit ~ the nth data bit
T1:第1時段
T1:
T2:第2時段
T2:
T3:第3時段
T3:
T4:第4時段 T4: Session 4
T5:第5時段 T5: Session 5
第1圖先前技術之點對點傳輸訊號示意圖。 FIG. 1 is a schematic diagram of a point-to-point transmission signal in the prior art.
第2圖先前技術之星狀以及網狀網路傳輸訊號示意圖。 FIG. 2 is a schematic diagram of the prior art star and mesh network transmission signals.
第3圖先前技術之環狀網路傳輸訊號示意圖。 FIG. 3 is a schematic diagram of a ring network transmission signal in the prior art.
第4圖顯示根據本發明的一實施例的匯流排控制方法及其系統的傳輸訊號示意圖。 FIG. 4 shows a schematic diagram of transmission signals of a bus control method and a system thereof according to an embodiment of the present invention.
第5圖顯示根據本發明的一實施例的匯流排控制方法及其系統的中止指令的示意圖。 FIG. 5 shows a schematic diagram of a stop command of a busbar control method and a system thereof according to an embodiment of the present invention.
第6圖顯示根據本發明的一實施例的匯流排控制方法及其系統,不具有奇偶校驗位元以及具有奇偶校驗位元的示意圖。 FIG. 6 shows a schematic diagram of a bus control method and a system thereof according to an embodiment of the present invention, without parity bits and with parity bits.
第7圖顯示根據本發明的一實施例的控制方法及其系統,第二從屬裝置(ID2)回應該主控裝置,經由該主控裝置取得唯一的匯流排使用權的示意圖。 FIG. 7 shows a schematic diagram of a control method and a system thereof according to an embodiment of the present invention. The second slave device (ID2) responds to the master device and obtains a unique bus usage right through the master device.
第8圖顯示根據本發明的一實施例的匯流排控制方法及其系統,第三從屬裝置(ID3)回應該主控裝置,經由該主控裝置取得唯一的匯流排使用權的示意圖。 FIG. 8 shows a bus control method and system according to an embodiment of the present invention. The third slave device (ID3) responds to the master device and obtains a unique bus use right through the master device.
第9圖顯示根據本發明的一實施例的匯流排控制方法及其系統,使用中止指令產生重新選擇欲通訊的一個從屬裝置,以便回應該主控裝置,經由該主控裝置取得唯一的匯流排使用權的示意圖。 FIG. 9 shows a bus control method and a system thereof according to an embodiment of the present invention, using abort command to generate and re-select a slave device to be communicated, so as to respond to the master device and obtain a unique bus through the master device Diagram of usage rights.
第10圖顯示根據本發明的一實施例的匯流排控制方法的步驟圖。 FIG. 10 shows a step diagram of a busbar control method according to an embodiment of the present invention.
第11圖顯示根據本發明的一實施例的匯流排控制方法的步驟圖。 FIG. 11 shows a step diagram of a busbar control method according to an embodiment of the present invention.
第12圖顯示根據本發明的一實施例的匯流排控制方法的步驟圖。 FIG. 12 shows a step diagram of a busbar control method according to an embodiment of the present invention.
以下根據第4~12圖,而說明本發明的實施方式。該說明並非為限制本發明的實施方式,而為本發明之實施例的一種。 Embodiments of the present invention will be described below with reference to FIGS. 4 to 12 . This description is not intended to limit the embodiments of the present invention, but is an example of the present invention.
第4圖以及第10圖所示,本發明的一實施例中係提供一種匯流排控制方法,其中,使用於連接一主控裝置11以及複數個從屬裝置12的一匯流排10,該匯流排10控制方法包含:步驟101:分別對該複數個從屬裝置12設定一仲裁數值以及不同的鮑率,並於該主控裝置11儲存該仲裁數值、以及該複數個從
屬裝置12所設定的該鮑率之資訊;步驟102:於該主控裝置11,從該複數個從屬裝置12中選擇欲通訊的一個從屬裝置12,並以所選之該從屬裝置12之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排10;以及步驟103:於每一該複數個從屬裝置12,經由該匯流排10接收經過調變的該仲裁數值,並分別使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中由解調變出正確的該仲裁數值的該從屬裝置12回應該主控裝置11,經由該主控裝置11取得該匯流排10之使用權。
As shown in FIG. 4 and FIG. 10, an embodiment of the present invention provides a bus control method, wherein a
第4圖、第7圖以及第8圖所示,常用的匯流排10的鮑率(K位元)/秒,是300,1200,2400,9600,19200,115200(K位元)/秒。其中該接收器以及該傳輸器,係通用非同步的該接收器以及該傳輸器(Universal Asynchronous Receiver/Transmitter,UART)。其中該鮑率(Baud rate)的型態是單一或多個封包所組成。
As shown in Fig. 4, Fig. 7 and Fig. 8, the baud rate (K bits)/second of the commonly used
第4圖、第11圖所示,本發明的一實施例中係提供一種匯流排10控制方法及其系統,其中,步驟201:使用一第一訊號傳輸線13電性連接該主控裝置11的傳輸器以及該從屬裝置12的接收器;以及步驟202:使用一第二訊號傳輸線14傳輸電性連接該主控裝置11的接收器以及該從屬裝置12的傳輸器。經由匯流排10使用特定的一鮑率(Baud rate),於複數個傳輸訊號的通道中,選擇僅有一個特定傳輸訊號的通道用以傳輸非同步串列信號,第4圖中,使用一主控裝置11電性連結一匯流排10,使用一第一訊號傳輸線13以及一第二訊號傳輸線14組成雙訊號線傳輸的該匯流排10,其中,該第一訊號傳輸線13電性連結該主控裝置11的傳輸器TX以及連結該從屬裝置12的接收器RX,該第二訊號傳輸線14電性連結該主控裝置11的接
收器RX以及連結該從屬裝置12的傳輸器TX。設定唯一的該選道鮑率(Baud rate),係使用至少兩個從屬裝置12電性連結該匯流排10,形成複數個傳輸非同步串列信號的通道。為避免複數個從屬裝置12共用匯流排10,在複數個從屬裝置12同時傳輸訊號時的訊號衝突,因此,分別設定每個該從屬裝置12的接收器RX,僅能接收被特定選擇唯一的鮑率(Baud rate)的非同步串列信號,每個該從屬裝置12的接收器RX所接收的被特定選擇唯一的鮑率(Baud rate)是不相同的狀況下,就不會產生同時傳輸訊號的訊號衝突。本發明每一該複數個從屬裝置12,經由該匯流排10接收經過調變的該仲裁數值,並分別使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,由於被特定選擇唯一的鮑率(Baud rate),因此,由解調變出正確的該仲裁數值的該從屬裝置12回應該主控裝置11,經由該主控裝置11取得該匯流排10之使用權,也是唯一之使用權,用以避免傳輸訊號時的訊號衝突。第4圖所示,於該主控裝置11,從該複數個從屬裝置12中選擇欲通訊的一個從屬裝置12,並以所選之該從屬裝置12之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排10,係使用該主控裝置11的傳輸器TX傳輸經過調變的該仲裁數值的訊號至該匯流排10的第一訊號傳輸線13,當所有的該從屬裝置12的接收器RX接收經過調變的該仲裁數值的訊號後,僅有一個該從屬裝置12解調變出正確的該仲裁數值,回應該主控裝置11,經由該主控裝置11取得該匯流排10之使用權,其餘該從屬裝置12解調變出不正確的該仲裁數值,無法回應該主控裝置11,因此該主控裝置11無法取得該匯流排10之使用權。
As shown in FIG. 4 and FIG. 11, an embodiment of the present invention provides a method and system for controlling the
如第4圖、第7圖中所示,複數個從屬裝置12與該匯流排10相連,從屬裝置12具有第一從屬裝置(ID1)、第二從屬裝置(ID2)、第三從屬裝置
(ID3)、第四從屬裝置(ID4)。該主控裝置11經過調變的該仲裁數值傳送至該匯流排10,每個該從屬裝置(12)的接收器(RX)接受經過解調變的該仲裁數值的訊號,每個該從屬裝置(12)解調變出正確的該仲裁數值,回應該主控裝置11,經由該主控裝置11取得該匯流排10之使用權是不相同的,若第一從屬裝置(ID1)的第一選道鮑率(Baud rate 1)是2400(K位元)/秒,第二從屬裝置(ID2)的第二選道鮑率(Baud rate 2)是1600(K位元)/秒,第三從屬裝置(ID3)的第三選道鮑率(Baud rate 3)是1200(K位元)/秒,於該主控裝置11,從該複數個從屬裝置12中選擇欲通訊的第二從屬裝置(ID2)的第二選道鮑率(Baud rate2)是1600(K位元)/秒,並以所選之該從屬裝置12之第二選道鮑率(Baud rate2)是1600(K位元)/秒對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排10,接著,於每一該複數個從屬裝置12,第一從屬裝置(ID1)、第二從屬裝置(ID2)、第三從屬裝置(ID3)、第四從屬裝置(ID4)之中,經由該匯流排10接收經過第二選道鮑率(Baud rate2)是1600(K位元)/秒對該仲裁數值進行調變的該仲裁數值,並分別使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中第二從屬裝置(ID2)由解調變出正確的該仲裁數值回應該主控裝置11,經由該主控裝置11取得該匯流排10之使用權。由第二從屬裝置(ID2)的第二選道鮑率(Baud rate2)是1600(K位元)/秒,不同於其餘傳輸鮑率(Baud rate),2400(K位元)/秒、1200(K位元)/秒,因此第二從屬裝置(ID2)回應該主控裝置11,經由主控裝置11取得唯一的特定仲裁使用權。本發明結合不同鮑率(Baud rate)的調變、解調變下,在共用匯流排10中,選擇、設定唯一的的從屬裝置12,與主控裝置11進行訊號傳輸。
As shown in FIGS. 4 and 7, a plurality of
第4圖、第5圖、第7圖、第8圖、第9圖、第11圖以及第12圖所示,在本發明的一實施例中係提供一種匯流排10控制方法及其系統,其中該從屬裝置12重新再回應該主控裝置11,經由該主控裝置11取得該匯流排10
之使用權的步驟,包括:步驟301:於該主控裝置11經由該匯流排10,傳送一中止訊號至所選之該從屬裝置12;步驟302:於該從屬裝置12以及該主控裝置11停止傳送以及接收訊號;步驟303:再於該主控裝置11,從該複數個從屬裝置12中重新選擇欲通訊的一個從屬裝置12,並以所選之該從屬裝置12之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排10;以及步驟304:於每一該複數個從屬裝置12,經由該匯流排10接收經過調變的該仲裁數值,並分別使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中由解調變出正確的該仲裁數值的該從屬裝置12回應該主控裝置11,經由該主控裝置11取得該匯流排10之使用權。第11圖所示,使用中止指令(break command)產生重新選擇特定該通道的仲裁使用權的步驟,使用該主控裝置11的傳輸器TX經由該第一訊號傳輸線13傳輸該中止指令(break command)至複數個該從屬裝置12的接收器RX,由複數個該從屬裝置12各自判斷是收到該中止指令後,複數個該從屬裝置12的傳輸器TX停止傳輸非同步串列信號至該主控裝置11的接收器RX。然後,重新再回應該主控裝置11,由該主控裝置11取得特定傳輸通道的仲裁使用權,係於使用該主控裝置11的傳輸器TX經由該第一訊號傳輸線13傳輸該中止指令至複數個該從屬裝置12的接收器RX後,再重新於該主控裝置11,從該複數個從屬裝置12中選擇欲通訊的一個從屬裝置12,例如選擇欲通訊的第三從屬裝置(ID3),並以所選第三從屬裝置(ID3)之該鮑率1200(K位元)/秒對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排10,第4圖,第11圖所示,經過調變的該仲裁數值經由該匯流排10的第一訊號傳輸線13至該從屬裝置12的接收器RX,從屬裝置12具有第一從屬裝置(ID1)、第二從屬裝置(ID2)、第三從屬裝置(ID3)、第四從屬裝置(ID4)。於每一該複數個從屬裝置12,經由該匯流排10接收第三從屬裝置(ID3)之該鮑率1200(K位元)/秒對該仲裁數值進行調變的該仲裁數值,並分別使用所設定的該鮑率對經
過調變的該仲裁數值進行解調變,第一從屬裝置(ID1)的第一選道鮑率(Baud rate 1)進行解調變是2400(K位元)/秒,第二從屬裝置(ID2)的第二選道鮑率(Baud rate 2)進行解調變是1600(K位元)/秒,第三從屬裝置(ID3)的第三選道鮑率(Baud rate 3)進行解調變是1200(K位元)/秒,其中由解調變出正確的該仲裁數值是第三選道鮑率(Baud rate 3)的1200(K位元)/秒,因此第三從屬裝置(ID3)回應該主控裝置11,經由該主控裝置11取得該匯流排10之使用權。其餘的第一從屬裝置(ID1)、第二從屬裝置(ID2)解調變出不正確的該仲裁數值,無法回應該主控裝置11,因此經由該主控裝置11無法取得第一從屬裝置(ID1)、第二從屬裝置(ID2)的該匯流排10之使用權。第11圖所示,解調變出正確的該仲裁數值是第三選道鮑率(Baud rate 3)的1200(K位元)/秒,重新傳輸非同步串列信號,是第一數據位元DATA1~第n數據位元DATAn,數據位元D0~D7。本發明主控裝置11具有一重設模組,傳送一中止訊號至所選之該從屬裝置12,於該從屬裝置12以及該主控裝置11停止傳送以及接收訊號,用以重新再取得該匯流排10之使用權。
As shown in Fig. 4, Fig. 5, Fig. 7, Fig. 8, Fig. 9, Fig. 11 and Fig. 12, in an embodiment of the present invention, a method for controlling a
第9圖所示,第1時段T1是主控裝置11的傳輸器(TX)傳送一種中止指令所產生的中止訊號至匯流排10,第2時段T2是所有與匯流排10相連的從屬裝置12接受中止指令的中止訊號後,停止傳送訊號至匯流排10,第3時段T3是第三從屬裝置(ID3)取得該匯流排10之使用權,其餘的第一從屬裝置(ID1)、第二從屬裝置(ID2)解調變出不正確的該仲裁數值,無法取得該匯流排10之使用權,因此解調變出正確的該仲裁數值是第三選道鮑率(Baud rate 3)的1200(K位元)/秒,重新傳輸非同步串列信號,是第一數據位元DATA1~第n數據位元DATAn,最後重設模組15(未圖示)再傳送中止指令所產生的中止訊號至匯流排10。第4時段T4是所有與匯流排10相連的從屬裝置12接受中止指令的中止訊號後,停止傳送訊號至匯流排10,第5時段T5是第一從屬裝置(ID1)取得該匯流排10之使用權,其餘的第二從屬裝置
(ID2)、第三從屬裝置(ID3)解調變出不正確的該仲裁數值,無法取得該匯流排10之使用權,因此解調變出正確的該仲裁數值是第一選道鮑率(Baud rate 1)的2400(K位元)/秒,重新傳輸非同步串列信號,是第一數據位元DATA1~第n數據位元DATAn。
As shown in FIG. 9 , the first time period T1 is when the transmitter (TX) of the
第4圖、第5圖,第11圖所示,在本發明的一實施例中係提供一種匯流排10控制方法及其系統,其中於該從屬裝置12以及該主控裝置11停止傳送以及接收訊號,經由一中止訊號的傳輸型態,係該匯流排10的該第一訊號傳輸線13經由該主控裝置11的傳輸器,傳輸一幀保持低電平的時間,至少大於傳輸複數個該從屬裝置12的接收器中,所能接受最長的一幀的時間後,進入該重設模組15(未圖示)的該中止訊號的傳輸型態。第5圖所示,由上而下分別是標準的中止訊號鮑率,數位邏輯高電位的停止位元Stop(stop bit)正常為1,中止指令產生時,停止位元Stop由1至0,第5圖所示,由上而下再呈現的是,兩個傳輸鮑率較快的中止訊號,最下層的圖示是一個傳輸鮑率最慢的中止訊號,停止位元Stop已經大於傳輸複數個該從屬裝置12的接收器中,所能接受最長的一幀的時間,因此進入該中止訊號的傳輸型態。其中,兩個傳輸鮑率較快的中止訊號,傳輸鮑率較快的停止位元Stop,傳輸一幀保持低電平的時間,小於傳輸複數個該從屬裝置12的接收器中,所能接受最長的一幀的時間,因此無法進入該重設模組(未圖示)的該中止訊號的傳輸型態。
As shown in FIG. 4 , FIG. 5 , and FIG. 11 , in an embodiment of the present invention, a method for controlling a
第6圖所示,該主控裝置11的傳輸器TX,傳輸該幀是以數位邏輯的低電位為開始位元Start(start bit),然後是傳輸至少一個數據位元,最後是至少一個數位邏輯高電位的停止位元Stop,該奇偶校驗位元
PAR(data bit)與該停止位元Stop之間係直接連接傳輸/或該數據位元與該停止位元Stop之間是奇偶校驗位元PAR(parity check bit)。
As shown in FIG. 6, the transmitter TX of the
如第4圖、以及第9圖所示,在本發明的一實施例中係提供一種匯流排10控制方法及其系統,其中,當僅有一個該從屬裝置12其中由解調變出正確的該仲裁數值的該從屬裝置12取得該匯流排10之使用權,其餘無法取得特定該匯流排10之使用權的該從屬裝置12的傳輸器TX僅進入聽取(LISTEN)該非同步串列信號的狀態,而不進入接收該非同步串列信號的狀態,聽取(LISTEN)該非同步串列信號的狀態下,無法取得特定該通道的仲裁使用權的該從屬裝置12的接收器RX,停止經由該第二訊號傳輸線14接收從該主控裝置11的傳輸器TX所傳輸的非同步串列信號。此外,聽取(LISTEN)該非同步串列信號的狀態下,僅於聽取(LISTEN)中止指令後,進入使用中止指令產生重新選擇特定該通道的仲裁使用權。
As shown in FIG. 4 and FIG. 9, in an embodiment of the present invention, a method and system for controlling the
依據本發明的一實施例的以上之敘述以及說明僅為本發明之較佳實施例之說明,對於此項技術具有通常知識者當可依據以下所界定申請專利範圍以及上述之說明而作其他之修改,惟此些修改仍應是為本發明之發明精神而在本發明之權利範圍中。 The above description and description according to an embodiment of the present invention are only the description of the preferred embodiment of the present invention, and those with ordinary knowledge in the art can make other claims based on the scope of the patent application defined below and the above description. Modifications, but these modifications should still be within the scope of the right of the present invention for the inventive spirit of the present invention.
RX:接收器 RX: Receiver
TX:傳輸器 TX: Transmitter
10:匯流排 10: Busbar
11:主控裝置 11: Main control device
12:從屬裝置 12: Slave device
13:第一訊號傳輸線 13: The first signal transmission line
14:第二訊號傳輸線 14: The second signal transmission line
ID1:第一從屬裝置 ID1: First slave device
ID2:第二從屬裝置 ID2: Second slave device
ID3:第三從屬裝置 ID3: Third slave device
ID4:第四從屬裝置 ID4: Fourth slave device
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109119033A TWI761850B (en) | 2020-06-05 | 2020-06-05 | Bus control method and system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109119033A TWI761850B (en) | 2020-06-05 | 2020-06-05 | Bus control method and system thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202147134A TW202147134A (en) | 2021-12-16 |
TWI761850B true TWI761850B (en) | 2022-04-21 |
Family
ID=80784014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109119033A TWI761850B (en) | 2020-06-05 | 2020-06-05 | Bus control method and system thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI761850B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101577732A (en) * | 2009-06-10 | 2009-11-11 | 深圳市禾望电气有限公司 | Multi-node communication link and asynchronous serial communication method thereof |
TWI363274B (en) * | 2007-03-19 | 2012-05-01 | Hon Hai Prec Ind Co Ltd | Uart interface communicating circuit |
TWI481245B (en) * | 2012-12-19 | 2015-04-11 | Motech Ind Inc | Address setting method for slave devices of communication network |
CN106021152A (en) * | 2016-05-12 | 2016-10-12 | 柳州桂通科技股份有限公司 | Master-slave serial device concentrator and asynchronous duplex one-to-many serial communication method |
US9678908B2 (en) * | 2013-10-02 | 2017-06-13 | Lsis Co., Ltd. | Method for automatically setting ID in UART ring communication |
CN109361585A (en) * | 2018-12-22 | 2019-02-19 | 沈阳阿尔特科技发展有限公司 | A kind of method that child node baud rate and address is arranged in host node automatically |
-
2020
- 2020-06-05 TW TW109119033A patent/TWI761850B/en active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI363274B (en) * | 2007-03-19 | 2012-05-01 | Hon Hai Prec Ind Co Ltd | Uart interface communicating circuit |
CN101577732A (en) * | 2009-06-10 | 2009-11-11 | 深圳市禾望电气有限公司 | Multi-node communication link and asynchronous serial communication method thereof |
TWI481245B (en) * | 2012-12-19 | 2015-04-11 | Motech Ind Inc | Address setting method for slave devices of communication network |
US9678908B2 (en) * | 2013-10-02 | 2017-06-13 | Lsis Co., Ltd. | Method for automatically setting ID in UART ring communication |
CN106021152A (en) * | 2016-05-12 | 2016-10-12 | 柳州桂通科技股份有限公司 | Master-slave serial device concentrator and asynchronous duplex one-to-many serial communication method |
CN109361585A (en) * | 2018-12-22 | 2019-02-19 | 沈阳阿尔特科技发展有限公司 | A kind of method that child node baud rate and address is arranged in host node automatically |
Also Published As
Publication number | Publication date |
---|---|
TW202147134A (en) | 2021-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4116071B2 (en) | Wireless communication system | |
US5515035A (en) | Method and equipment for bidirectional data transmission (protocol) | |
US7836199B2 (en) | System and method for multilane link rate negotiation | |
JPS63279635A (en) | Interface module for electric and optical local area network | |
JPH0817396B2 (en) | Optical data transmission method and device | |
US6728231B1 (en) | Radio transmission method and radio transmission | |
US7177283B2 (en) | Transmitting and receiving circuit and transmitting and receiving method | |
CN101383918B (en) | 1+1 television system and communication method thereof | |
TWI761850B (en) | Bus control method and system thereof | |
JP4879831B2 (en) | Wireless communication system | |
JPH04291527A (en) | Data link system | |
KR20080021456A (en) | Method of transmitting a message for interfacing networks or devices | |
CN100525222C (en) | Method and device for performing communication on a bus structured network | |
JPS6236940A (en) | Data communication equipment in automobile | |
CN117640287A (en) | Wire communication system of controller area network and other high-speed communication technology | |
JPS62247647A (en) | Local area network | |
WO1983002206A1 (en) | A distributed control communications system | |
JP2901392B2 (en) | Transmission / reception system | |
JPH11187023A (en) | Data communication system and its method | |
JPS5848925B2 (en) | Slot access data transfer method | |
JPS60249452A (en) | Bus-type communication line constituting system using 1:1 communication line | |
JPWO2021156943A5 (en) | Terminal, wireless communication method, base station and system | |
JP2000101610A (en) | Information transmission system | |
JPS6021644A (en) | Data transmission system | |
JPH0324839A (en) | Terminal adapter |