TWI761850B - Bus control method and system thereof - Google Patents

Bus control method and system thereof Download PDF

Info

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
Application number
TW109119033A
Other languages
Chinese (zh)
Other versions
TW202147134A (en
Inventor
李宗學
黃傑揚
Original Assignee
新唐科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新唐科技股份有限公司 filed Critical 新唐科技股份有限公司
Priority to TW109119033A priority Critical patent/TWI761850B/en
Publication of TW202147134A publication Critical patent/TW202147134A/en
Application granted granted Critical
Publication of TWI761850B publication Critical patent/TWI761850B/en

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

A bus control method applied to a bus connected to a master device and a plurality of slave devices is disclosed. The bus control method includes steps of: setting an arbitration value and different baud rates to the plurality of slave devices, and storing the arbitration value, and information of baud rates set in the plurality of slave devices in the master device; in the master device, selecting one, which is to be communicated, of the plurality of slave devices, and modulating the arbitration value according to the baud rate of the selected slave device, and transmitting the modulated arbitration value through the bus; in each of the plurality of slave devices, receiving the modulated arbitration value, and using the set baud rate to demodulate the modulated arbitration value, wherein the slave device correctly demodulating the arbitration value response to the master device.

Description

匯流排控制方法及其系統 Busbar control method and system thereof

本發明係有關於一種控制方法及其系統,特別是傳輸非同步串列信號的多通道下,有關於一種匯流排控制方法及其系統。 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: Session 1

T2:第2時段 T2: Session 2

T3:第3時段 T3: Session 3

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 bus 10 for connecting a master device 11 and a plurality of slave devices 12 is used, the bus 10. The control method includes: Step 101: respectively setting an arbitration value and different baud rates to the plurality of slave devices 12, and storing the arbitration value and the plurality of slave devices in the master control device 11 The information of the baud rate set by the slave device 12; Step 102: In the master control device 11, select a slave device 12 to be communicated with from the plurality of slave devices 12, and use the selected slave device 12. The baud rate modulates the arbitration value, and transmits the modulated arbitration value to the bus 10 ; and Step 103 : at each of the plurality of slave devices 12 , receives the modulated arbitration value through the bus 10 . Arbitration value, and respectively use the set baud rate to demodulate the modulated arbitration value, wherein the slave device 12 that demodulates the correct arbitration value responds to the master device 11 via The main control device 11 obtains the right to use the bus bar 10 .

第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 bus bar 10 is 300, 1200, 2400, 9600, 19200, 115200 (K bits)/second. 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.

第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 bus bar 10, wherein, step 201: use a first signal transmission line 13 to electrically connect the main control device 11 The transmitter and the receiver of the slave device 12 ; and Step 202 : use a second signal transmission line 14 to transmit and electrically connect the receiver of the master device 11 and the transmitter of the slave device 12 . Using a specific baud rate through the bus bar 10, among a plurality of transmission signal channels, select a channel with only one specific transmission signal to transmit the asynchronous serial signal. In FIG. 4, a main The control device 11 is electrically connected to a bus bar 10, and a first signal transmission line 13 and a second signal transmission line 14 are used to form the bus bar 10 for dual-signal transmission, wherein the first signal transmission line 13 is electrically connected to the main controller The transmitter TX of the device 11 and the receiver RX of the slave device 12 are connected, and the second signal transmission line 14 is electrically connected to the connection of the master device 11 . The receiver RX and the transmitter TX connected to the slave device 12 . Setting the unique channel selection baud rate is to use at least two slave devices 12 to electrically connect the bus bar 10 to form a plurality of channels for transmitting asynchronous serial signals. In order to avoid a plurality of slave devices 12 sharing the bus bar 10, signal conflict when a plurality of slave devices 12 transmit signals at the same time, therefore, the receiver RX of each of the slave devices 12 is respectively set to receive only the specially selected and unique receiver RX. Asynchronous serial signals with a Baud rate, when the receiver RX of each slave device 12 receives a uniquely selected Baud rate that is not the same, no simultaneous transmission signals will be generated. signal conflict. In the present invention, each of the plurality of slave devices 12 receives the modulated arbitration value via the bus 10, and uses the set baud rate to demodulate the modulated arbitration value. A unique baud rate is selected. Therefore, the slave device 12 that modulates the correct arbitration value through demodulation responds to the master device 11, and obtains the use right of the bus 10 through the master device 11. The only right to use is to avoid signal conflicts when transmitting signals. As shown in FIG. 4 , in the master device 11 , a slave device 12 to be communicated is selected from the plurality of slave devices 12 , and the arbitration value is modulated by the baud rate of the selected slave device 12 , to transmit the modulated arbitration value to the bus 10, using the transmitter TX of the master control device 11 to transmit the modulated signal of the arbitration value to the first signal transmission line 13 of the bus 10, when After the receivers RX of all the slave devices 12 receive the modulated signals of the arbitration value, only one of the slave devices 12 demodulates the correct arbitration value, and responds to the master device 11 through the master The device 11 obtains the right to use the bus 10 , and the other slave devices 12 demodulate the incorrect arbitration value and cannot respond to the master device 11 , so the master device 11 cannot obtain the right to use the bus 10 .

如第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 slave devices 12 are connected to the bus bar 10, and the slave devices 12 include a first slave device (ID1), a second slave device (ID2), and a third slave device (ID3), the fourth slave device (ID4). The master device 11 transmits the modulated arbitration value to the bus 10, the receiver (RX) of each slave device (12) receives the demodulated signal of the arbitration value, each of the slave devices (12) Demodulate the correct arbitration value, and respond to the master control device 11. The use rights of the bus bar 10 obtained through the master control device 11 are not the same. If the first slave device (ID1) has the first The selected channel baud rate (Baud rate 1) is 2400 (K bits)/second, the second channel selected baud rate (Baud rate 2) of the second slave device (ID2) is 1600 (K bits)/second, the third channel selected baud rate (Baud rate 2) is 1600 (K bits)/second The third channel selection baud rate (Baud rate 3) of the slave device (ID3) is 1200 (K bits)/sec. In the master device 11, the second slave device to be communicated is selected from the plurality of slave devices 12 The second channel baud rate (Baud rate2) of (ID2) is 1600 (K bits)/sec, and the second channel baud rate (Baud rate2) of the selected slave device 12 is 1600 (K bits) )/sec to modulate the arbitration value, and transmit the modulated arbitration value to the bus 10, then, for each of the plurality of slave devices 12, a first slave device (ID1), a second slave device (ID2), the third slave device (ID3), and the fourth slave device (ID4), the baud rate (Baud rate2) of the second channel selection received via the bus 10 is 1600 (K bits)/sec for the The arbitration value is modulated by the arbitration value, and respectively uses the set baud rate to demodulate the modulated arbitration value, wherein the second slave device (ID2) modulates the correct arbitration value by demodulation In response to the master control device 11 , the use right of the bus bar 10 is obtained through the master control device 11 . The second channel selection baud rate (Baud rate2) by the second slave device (ID2) is 1600 (K bits)/sec, different from other transmission baud rates (Baud rate), 2400 (K bits)/sec, 1200 (K bits)/sec, so the second slave device ( ID2 ) responds to the master device 11 and obtains a unique and specific arbitration use right through the master device 11 . In the present invention, a unique slave device 12 is selected and set in the shared bus bar 10 to perform signal transmission with the master device 11 under the modulation and demodulation of different baud rates.

第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 bus bar 10 and a system thereof are provided, The slave device 12 responds to the master device 11 again, and obtains the bus bar 10 through the master device 11 The steps of obtaining the right to use include: Step 301 : the master device 11 transmits a stop signal to the selected slave device 12 via the bus 10 ; Step 302 : the slave device 12 and the master device 11 Stop transmitting and receiving signals; Step 303 : In the master device 11 , re-select a slave device 12 to be communicated with from the plurality of slave devices 12 , and use the baud rate of the selected slave device 12 to communicate with the slave device 12 . The arbitration value is modulated, and the modulated arbitration value is sent to the bus 10 ; and Step 304 : at each of the plurality of slave devices 12 , the modulated arbitration value is received via the bus 10 , and respectively use the set baud rate to demodulate the modulated arbitration value, wherein the slave device 12 that obtains the correct arbitration value by demodulation responds to the master control device 11 via the master control device 11 Obtain the right to use the bus bar 10 . As shown in FIG. 11 , the step of re-selecting the arbitration use right of a specific channel is generated by using a break command, and the break command is transmitted through the first signal transmission line 13 using the transmitter TX of the master control device 11 . ) to the receivers RX of the plurality of slave devices 12, after each of the plurality of the slave devices 12 determines that the abort command is received, the transmitters TX of the plurality of the slave devices 12 stop transmitting asynchronous serial signals to the master The receiver RX of the control device 11. Then, the master control device 11 is responded to again, and the master control device 11 obtains the arbitration use right of a specific transmission channel. After the receivers RX of a plurality of the slave devices 12, the master device 11 is re-selected from the plurality of slave devices 12 to select a slave device 12 to be communicated, for example, a third slave device (ID3) to be communicated is selected. , and modulate the arbitration value with the baud rate 1200 (K bits)/sec of the selected third slave device (ID3), and transmit the modulated arbitration value to the bus 10, Fig. 4 , as shown in FIG. 11, the modulated arbitration value is sent to the receiver RX of the slave device 12 via the first signal transmission line 13 of the bus bar 10. The slave device 12 has a first slave device (ID1), a second slave device device (ID2), third slave device (ID3), fourth slave device (ID4). In each of the plurality of slave devices 12, the arbitration value modulated by the baud rate 1200 (K bits)/sec of the third slave device (ID3) is received via the bus 10, and the arbitration value is respectively used The baud rate set to the The overmodulated arbitration value is demodulated. The first channel selection baud rate (Baud rate 1) of the first slave device (ID1) is 2400 (K bits)/sec. The second slave device ( The second channel selected baud rate (Baud rate 2) of ID2) is 1600 (K bits)/sec for demodulation, and the third channel selected baud rate (Baud rate 3) of the third slave device (ID3) is demodulated The variable is 1200 (K bits)/second, and the correct arbitration value transformed by demodulation is 1200 (K bits)/second of the third selected channel baud rate (Baud rate 3), so the third slave device ( ID3) responds to the master control device 11, and obtains the use right of the bus bar 10 through the master control device 11. The rest of the first slave device (ID1) and the second slave device (ID2) demodulate the incorrect arbitration value and cannot respond to the master device 11. Therefore, the first slave device ( ID1), the right to use the bus 10 of the second slave device (ID2). As shown in Figure 11, the correct arbitration value obtained by demodulation is 1200 (K bits)/sec of the third channel selection baud rate (Baud rate 3), and the retransmission of the asynchronous serial signal is the first data bit Element DATA1~nth data bit DATAn, data bits D0~D7. The master control device 11 of the present invention has a reset module, which transmits a stop signal to the selected slave device 12, and the slave device 12 and the master control device 11 stop transmitting and receiving signals for re-acquiring the bus bar 10 Rights of Use.

第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 master device 11 transmits a stop signal generated by a stop command to the bus bar 10 , and the second time period T2 is when all the slave devices 12 connected to the bus bar 10 are After receiving the abort signal of the abort command, stop transmitting the signal to the bus bar 10. The third time period T3 is when the third slave device (ID3) obtains the right to use the bus bar 10, and the remaining first slave device (ID1), the second slave device (ID1), the second slave device The device (ID2) demodulates the incorrect arbitration value and cannot obtain the right to use the bus bar 10. Therefore, the demodulation converts the correct arbitration value to be 1200 (Baud rate 3). K bits)/sec, retransmit the asynchronous serial signal, which is the first data bit DATA1 ~ the nth data bit DATAn, and finally reset the module 15 (not shown) and then transmit the abort signal generated by the abort command to bus bar 10. The fourth period T4 is when all the slave devices 12 connected to the bus bar 10 receive the abort signal of the abort command and stop transmitting signals to the bus bar 10 , and the fifth period T5 is when the first slave device (ID1) obtains the use of the bus bar 10 right, the remaining second slave (ID2), the third slave device (ID3) demodulates the incorrect arbitration value and cannot obtain the right to use the bus 10, so the correct arbitration value obtained by demodulation is the first channel baud rate ( Baud rate 1) is 2400 (K bits)/sec, and the asynchronous serial signal is retransmitted, which is the first data bit DATA1 to the nth data bit DATAn.

第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 bus bar 10 and a system thereof are provided, wherein the slave device 12 and the master device 11 stop transmitting and receiving The signal, through a transmission type of a stop signal, is transmitted by the first signal transmission line 13 of the bus bar 10 through the transmitter of the master device 11, and the time for a frame to maintain a low level is at least longer than the transmission of a plurality of the slaves. The receiver of the device 12 enters the transmission mode of the abort signal of the reset module 15 (not shown) after receiving the longest frame time. As shown in Figure 5, from top to bottom are the standard stop signal baud rates. The stop bit (stop bit) of the digital logic high level is normally 1. When the stop command is generated, the stop bit Stop is from 1 to 0. As shown in Figure 5, from top to bottom, there are two stop signals with a faster transmission baud rate. The bottom layer is a stop signal with the slowest transmission baud rate. The stop bit Stop is greater than the transmission complex number. Among the receivers of the slave device 12, the longest one frame time can be received, so it enters the transmission mode of the abort signal. Among them, the two stop signals with a faster baud rate, the stop bit Stop with a faster baud rate, and the time of transmitting a frame to keep the low level are less than the receivers that transmit a plurality of the slave devices 12 can accept. The time of the longest frame, so it cannot enter the transmission mode of the abort signal of the reset module (not shown).

第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 main control device 11 transmits the frame with the low level of the digital logic as the start bit, then transmits at least one data bit, and finally at least one digital bit Logic high level stop bit Stop, the parity bit There is a direct connection between PAR (data bit) and the stop bit Stop for transmission/or a parity check bit PAR (parity check bit) between the data bit and the stop bit Stop.

如第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 bus bar 10 are provided, wherein when there is only one slave device 12, the correct one is converted by demodulation. The slave device 12 of the arbitration value obtains the use right of the bus 10, and the transmitter TX of the other slave devices 12 that cannot obtain the use right of the specific bus 10 only enters the state of listening (LISTEN) the asynchronous serial signal , instead of entering the state of receiving the asynchronous serial signal, the receiver RX of the slave device 12 that cannot obtain the arbitration use right of the specified channel in the state of listening (LISTEN) the asynchronous serial signal stops passing through the second The signal transmission line 14 receives the asynchronous serial signal transmitted from the transmitter TX of the master device 11 . In addition, in the state of listening (LISTEN) the asynchronous serial signal, only after listening (LISTEN) the abort command, enter the use abort command to generate the arbitration use right to re-select the specific channel.

依據本發明的一實施例的以上之敘述以及說明僅為本發明之較佳實施例之說明,對於此項技術具有通常知識者當可依據以下所界定申請專利範圍以及上述之說明而作其他之修改,惟此些修改仍應是為本發明之發明精神而在本發明之權利範圍中。 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)

一種匯流排控制方法,使用於連接一主控裝置以及複數個從屬裝置的一匯流排,該匯流排控制方法包含:分別對該複數個從屬裝置設定一仲裁數值以及不同的鮑率,並於該主控裝置儲存該仲裁數值、以及該複數個從屬裝置所設定的該鮑率之資訊;於該主控裝置,從該複數個從屬裝置中選擇欲通訊的一個從屬裝置,並以所選之該從屬裝置之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排;以及於每一該複數個從屬裝置,經由該匯流排接收經過調變的該仲裁數值,並分別使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中由解調變出正確的該仲裁數值的該從屬裝置回應該主控裝置。 A busbar control method is used to connect a busbar of a master control device and a plurality of slave devices, the busbar control method comprising: respectively setting an arbitration value and a different baud rate to the plurality of slave devices, and The master device stores the arbitration value and the information of the baud rate set by the plurality of slave devices; in the master device, a slave device to be communicated is selected from the plurality of slave devices, and the selected slave device is used The baud rate of the slave device modulates the arbitration value, and transmits the modulated arbitration value to the bus; and at each of the plurality of slave devices, receives the modulated arbitration value through the bus , and respectively use the set baud rate to demodulate the modulated arbitration value, wherein the slave device that obtains the correct arbitration value by demodulation responds to the master device. 如請求項1所述之匯流排控制方法,其中使用該匯流排所形成的一第一訊號傳輸線以及一第二訊號傳輸線連接該主控裝置以及該複數個從屬裝置的步驟,包括:使用該第一訊號傳輸線電性連接該主控裝置的傳輸器以及該複數個從屬裝置的接收器;以及使用該第二訊號傳輸線傳輸電性連接該主控裝置的接收器以及該複數個從屬裝置的傳輸器。 The bus control method as claimed in claim 1, wherein the step of using a first signal transmission line and a second signal transmission line formed by the bus to connect the master device and the plurality of slave devices includes: using the first signal transmission line and the second signal transmission line. A signal transmission line is electrically connected to the transmitter of the master device and the receivers of the plurality of slave devices; and the second signal transmission line is used to electrically connect the receiver of the master device and the transmitter of the plurality of slave devices . 如請求項1所述之匯流排控制方法,更包括:於該主控裝置經由該匯流排,傳送一中止訊號至所選之該 從屬裝置;於該從屬裝置以及該主控裝置停止傳送以及接收訊號;再於該主控裝置,從該複數個從屬裝置中重新選擇欲通訊的一個從屬裝置,並以所選之該從屬裝置之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排;以及於每一該複數個從屬裝置,經由該匯流排接收經過調變的該仲裁數值,並分別使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中由解調變出正確的該仲裁數值的該從屬裝置回應該主控裝置。 The bus control method according to claim 1, further comprising: sending a stop signal to the selected one of the bus bars from the master control device Slave device; stop transmitting and receiving signals at the slave device and the master device; then at the master device, reselect a slave device to be communicated with from the plurality of slave devices, and use the selected slave device as a slave device. The baud rate modulates the arbitration value, and transmits the modulated arbitration value to the bus; and each of the plurality of slave devices receives the modulated arbitration value through the bus, and respectively The modulated arbitration value is demodulated by using the set baud rate, wherein the slave device that obtains the correct arbitration value by demodulation responds to the master device. 如請求項3所述之匯流排控制方法,其中,使用該中止訊號以使該從屬裝置以及該主控裝置停止傳送以及接收訊號之步驟更包含:使用該匯流排的一第一訊號傳輸線經由該主控裝置的一傳輸器,傳輸一幀保持低電平的時間,其至少大於傳輸複數個該從屬裝置的接收器所能接受最長的一幀的時間。 The bus control method according to claim 3, wherein the step of using the stop signal to stop the slave device and the master device from transmitting and receiving signals further comprises: using a first signal transmission line of the bus through the A transmitter of the master device keeps the low level for a period of time during which a frame is transmitted, which is at least longer than the longest period of a frame that can be received by the receivers of the plurality of slave devices. 如請求項2所述之匯流排控制方法,其中該接收器以及該傳輸器,係通用非同步的該接收器以及該傳輸器(Universal Asynchronous Receiver/Transmitter,UART)。 The bus control method according to claim 2, wherein the receiver and the transmitter are universal asynchronous receiver and transmitter (Universal Asynchronous Receiver/Transmitter, UART). 如請求項2所述之匯流排控制方法,其中該鮑率的型態是單一或多個封包所組成。 The bus control method according to claim 2, wherein the type of the baud rate is composed of single or multiple packets. 一種匯流排控制系統,取得傳送之使用權,用以傳送非同步串列信號,包含:一匯流排; 複數個從屬裝置,電性連結該匯流排,該從屬裝置具有被設定一仲裁數值以及不同的鮑率;以及一主控裝置,電性連結該匯流排,該主控裝置儲存該仲裁數值、以及該複數個從屬裝置所設定的該鮑率之資訊,該主控裝置具有一調變模組,該調變模組係從該複數個從屬裝置中選擇欲通訊的一個從屬裝置,並以所選之該從屬裝置之該鮑率對該仲裁數值進行調變,將經過調變的該仲裁數值傳送至該匯流排;其中每一該複數個從屬裝置,經由該匯流排接收經過調變的該仲裁數值,該從屬裝置具有一解調變模組,該解調變模組並使用所設定的該鮑率對經過調變的該仲裁數值進行解調變,其中由解調變出正確的該仲裁數值的該從屬裝置回應該主控裝置。 A busbar control system, which obtains the use right of transmission and is used to transmit asynchronous serial signals, comprising: a busbar; a plurality of slave devices electrically connected to the bus bar, the slave devices having an arbitration value and different baud rates set; and a master control device electrically connected to the bus bar, the master control device storing 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 selected The baud rate of the 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 arbitration value via the bus value, the slave device has a demodulation conversion module, the demodulation conversion module uses 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. 如請求項7所述之匯流排控制系統,其中該匯流排包括:一第一訊號傳輸線電性連接該主控裝置的傳輸器以及該複數個從屬裝置的接收器;以及一第二訊號傳輸線傳輸電性連接該主控裝置的接收器以及該複數個從屬裝置的傳輸器。 The bus control system of claim 7, wherein the bus comprises: a first signal transmission line electrically connected to the transmitter of the master control device and the receivers of the plurality of slave devices; and a second signal transmission line to transmit The receiver of the master device and the transmitter of the plurality of slave devices are electrically connected. 如請求項8所述之匯流排控制系統,其中該主控裝置具有一重設模組,傳送一中止訊號至所選之該從屬裝置,於該從屬裝置以及該主控裝置停止傳送以及接收訊號,用以重新再取得該匯流排之使用權。 The bus control system of claim 8, wherein the master device has a reset module that transmits a stop signal to the selected slave device, and the slave device and the master device stop transmitting and receiving signals, To regain the right to use the bus. 如請求項9所述之匯流排控制系統,其中該重設模組係透過該匯流排的該第一訊號傳輸線以及該主控裝置的傳輸器,以傳輸一幀保持低電平的時間,其至少大於傳輸複數個該從屬裝置的接收器所能接受最長 的一幀的時間。 The bus control system as claimed in claim 9, wherein the reset module transmits a frame for the time of keeping the low level through the first signal transmission line of the bus and the transmitter of the master device, and the at least longer than the receiver transmitting multiples of this slave can accept the longest of one frame of time.
TW109119033A 2020-06-05 2020-06-05 Bus control method and system thereof TWI761850B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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