M379104 五 新型說明: 【新型所屬之技術領域】 本創作係關於一種通訊傳輪介面結構改良,尤指可自動進 行資料來源之控制及判斷,以避免傳送接收時之衝突,而達到 半雙工模擬為全雙工之功效者。 【先前技術】 按,EIA-RS-422以及EIA_RS_485係為美國電子工業聯明 (EIA)所制定之串列數據通信的電器介面標準,其訊號傳送之 型式係制絲輸_細ential㈣的方式,敎援同時連接 多個設備。 而其中RS422採用四線的方式提供全雙工的傳輸,綱$ 採用兩線的方式提供半雙工的傳輸;由於咖85為半雙工的型 式,所以傳送跟接收的時間必須分開,否則便會產生衝突的現 象,造成貧料毀損。大部份的應用都是採用額外的控制ριη或 #軟體來㈣RS奶傳賴收㈣方向,“要傳送㈣時先將 跑8 5傳运接收器設定為輪出,然後再傳送資料,待資料傳送 完成後再將RS485傳送接收器設定為輸入,以便其它的設備可 以開始傳送資料。但這樣的控制較為複雜,也比較沒有效率, 如果控制的時間點有錯,例如在接收的過程當中試圖傳送資 料,將會造成資料錯誤。 ' 因此’如何創作出一種通訊傳輸介面結構改良,以使立, 自動進行資料來源之控制及判斷,以避免傳送接收時之衝突, 3 M379104 而達到半雙工模擬為全雙工之功效,將 之處。 ㈤作所欲積極揭露 【新型内容】 有^於上述f知通訊傳輸介面結構改良之缺條,創作 未漆於完善,遂竭其心智悉心研究克服,憑其從事 ::夕年之累積經驗,進而研發出一種通訊傳輪 , 以期可自動進行雜來社㈣及判斷, 衝突,而達到半雙工模擬為全雙工之功效。傳延接收時之 料著主要目的在提供一種通訊傳輸介面結構改良,其 猎者接收控制單元、判斷單元以及傳送控制單元之設置,致使 =购2介面或卿5介面進行資料傳輸時,自動進行資 =來=之控似躺,㈣免傳送接㈣之衝突,進而達到半 又工楔擬為全雙工之功效。 為達上述目的,本創作之通訊傳輸介面結構改良包含:一 接收控制單元;—與接收控制單元連接之‘ 2 〃面,可傳輸資料至接收控制單七-與接收控制單元- 連接之RS485介面,可傳輪眘粗^ ㈣卿早兀 … 輸貝科至接收控制單元;-與接收於 制單元連接之判斷單元,可判斷 單元連接之傳送控制單元收^源,以及一與判斷 送。 『接收傳运請求並進行資料之發 猎此本創作之-種通訊傳輪介面結構改良,可於&船 介面或RS奶介面進行資料傳輸時,自動進行資料來源之控制 4 M379104 而達到半雙工模擬為全雙 及判斷,以避免傳送接收時之衝突, 工之功效。 【實施方式】 為充刀瞭解本創作之目的'特徵及功效, 之實施例,並配合所附$岡+ ^· 斤附之圖式,對本創作做一詳細說明,說明 如设· 所-請本參::.一圖所示’係為本創作之基本架構示意圖。如圖 判斷單元4以及 1r!T2輸介*結構时至少包含-接收控制單元 1、一 RS422 介面 2、— RS485 介面 3、 一傳送控制單元5所構成。 上賴k之接收控制單元工係可供接收資料訊號,其中該 ㈣w i内含—邏輯元’域過邏魅制編譯 斷輸入之貧料為全工模式或 、, ^ 狀態訊號之邏輯單元。 l ’亚且進一步傳遞目前 、jRS422介面2係與接收控制單元1之邏輯元連接,可傳 輸貧料至接收控制單元1。 辱 該RS似介面3係與接收控制單^之邏輯 傳輸資料至接收控制單元}。 接了供 該判斯單元4係與接收控制單元2連接 輸來源,並於接收控制單元贿之訊號為半工模 性地發出傳送請求。 姨式時選擇 該傳送控制單元5係與判斷單元4連接,可供接收傳送請 5 M379104 求並受判斷單元4控制進行資料之發送與停止。 請參閱第二圖所示’係分別為本創作之使用狀態示意圖。 如圖所示:當本創作於運用時,係可使相關資料由RS422介面 2輸入’由於RS422介面2為全雙工,當接受RS422介面2 貢料時不會產生對傳送控制單元5之遮蔽動作,使得傳送及接 收在RS422介面2模式下可同時進行。 而當資料由RS485介面3輸入時,該傳送控制單元5便會' 得到傳送請求,而開始發送相關之資料,同時由傳送控制單元鲁 5 &供RS485介面3之傳送致能輸出(Driver enable),傳輸完 成後再將之關閉’以便其它的設備可以開始傳送資料,而該傳 送請求的來源有兩個,一個是上層的資料Ready訊號,代表待 傳送之資料已準備就緒,另一個來源是來自接收控制單元1, 當接收控制單元1正在接收rS485介面3所輸入之資料時,則 代表目前RS485介面3之通道(channel)已被佔用,為避免資料 衝突’該接收控制單元1會輸出一個狀態訊號(RS485接收狀鲁 態)至判斷單元4中’用以遮蔽傳送端的資料Ready訊號’以-避免傳送跟接收同時動作產生衝突,透過此控制機制便可將半 雙工的RS485介面3模擬成全雙工模式;再者當接收控制單元 1正在接收RS485介面3所輸入之資料時,可直接判斷是否為 接收RS485介面3之資料,當rS485介面3之訊號開始傳送 時’則下次開始接收的資料即為RS485介面3之資料,接收控 制單元1之邏輯元會將此狀態記錄下來,輸出RS485介面3接 M379104 —(例如:接收綠1),待資料完全接受細如:接收 狀㈣重置此訊號,以便下次重新判斷,而達到自動判別是 否為RS422介面2或RS485介面3輸入,無需人工摔作。 如上所述,本創作完全符合專利三要件:新賴性' 進步性 2產業上的可利用性。以新穎性和進步性而言,本創作係藉著 接收控制早兀、判斷單元以及傳送控制單元之設置致使可於 跑22介面或綱5介面進行資料傳輸時,自動進行資料來源 #之控制及判斷,以避免傳送接收時之衝突,進而達到半雔工广 擬,之效用W上的可利用性而言,利用本:作: 何生的產品,當可充分滿足目前市場的需求。 本創作在上文t已以較佳實施例揭露,然熟f本項技術者 應理解的是,該實施例僅用於描綠本創作,而不應解讀為限制 本創作之範圍。應注意的是,舉凡與該實施例等效之變化與置 圍當以下文之f請專利範圍所界定者為準。 • 【圖式簡單說明】 第一圖為本創作之基本架構示意圖。 第二圖為本創作之使用狀態示意圖。 【主要元件符號說明】 接收控制單元1 RS422介面2 RS485介面3 判斷單元4 7 M379104 傳送控制單元5M379104 Five new descriptions: [New technical field] This creation is about the improvement of communication communication interface structure, especially the automatic control and judgment of data sources to avoid conflicts during transmission and reception, and to achieve half-duplex simulation. For the full duplex effect. [Prior Art] According to EIA-RS-422 and EIA_RS_485, it is the electrical interface standard for serial data communication established by the United States Electronic Industry (EIA), and the type of signal transmission is the method of wire-transmission_fine (4). Support multiple devices at the same time. Among them, RS422 provides full-duplex transmission in four-wire mode, and two-line transmission in half-duplex mode. Since coffee 85 is a half-duplex type, the transmission and reception time must be separated, otherwise There will be conflicts that will result in the destruction of poor materials. Most of the applications use the extra control ριη or #software to (4) RS milk transmission (four) direction, "To transmit (four), first set the running 8 5 transport receiver to turn out, then send the data, wait for the data After the transfer is completed, the RS485 transceiver is set as an input so that other devices can start transmitting data. However, such control is more complicated and less efficient. If the control is in error, for example, during the process of receiving, it is attempted to transmit. The data will cause data errors. 'So how to create a communication transmission interface structure to enable, automatically control and judge the source of data to avoid conflicts during transmission and reception, 3 M379104 to achieve half-duplex simulation For the full-duplex effect, it will be. (5) Actively expose the content of the [new content] There is a lack of improvement in the structure of the above-mentioned communication transmission interface, the creation is not painted, and the research is overwhelmed by exhaustion. With its experience in: ‧ years of accumulated experience, and then developed a communication transmission, in order to automatically carry out miscellaneous (four) and judgment, conflict, The half-duplex simulation is the function of full-duplex. The main purpose of the transmission reception is to provide a communication transmission interface structure improvement, and the hunter receives the control unit, the judgment unit and the transmission control unit, resulting in the purchase 2 When the interface or the Qing 5 interface is used for data transmission, the automatic control of the ========================================================================================== The communication transmission interface structure improvement includes: a receiving control unit; - a '2' interface connected to the receiving control unit, which can transmit data to the receiving control unit 7-and the receiving control unit-connected RS485 interface, which can be transmitted carefully and carefully ^ (4) Qing early... Transfer the Becco to the receiving control unit; - The judging unit connected to the receiving unit can judge the transmission control unit of the unit to connect to the source, and the one and the judgment to send. "Receive the transport request and carry out the data. This kind of creation is a kind of communication relay interface structure improvement, which can automatically control the data source when the data is transmitted in the & ship interface or RS milk interface. 4 M37 9104 and achieve half-duplex simulation for full double and judgment, to avoid conflicts during transmission and reception, and work efficiency. [Embodiment] For the purpose of understanding the purpose of this creation, the features and functions, and the accompanying $冈+ ^· 斤附图, a detailed description of the creation, such as the design of the Institute - please refer to::. Figure 1 is a schematic diagram of the basic structure of the creation. As shown in Figure 4 The 1r!T2 transmission* structure comprises at least a receiving control unit 1, an RS422 interface 2, an RS485 interface 3, and a transmission control unit 5. The receiving control unit of the upper receiving unit can receive the data signal, wherein The (four)w i contains the logic element's domain over-logical logic. The poor input is the full-work mode or the logical unit of the ^ state signal. l' further transmits the current, jRS422 interface 2 and the logical unit connection of the receiving control unit 1, and can transmit the lean material to the receiving control unit 1. Insult the RS interface 3 and the logic of the receiving control unit to transmit data to the receiving control unit}. The source unit 4 is connected to the receiving control unit 2, and the transmission control request unit transmits a transmission request in a semi-work mode. When the mode is selected, the transmission control unit 5 is connected to the determination unit 4, and is available for reception and transmission. 5 M379104 is requested and controlled by the determination unit 4 to transmit and stop data. Please refer to the figure in the second figure, which is a schematic diagram of the use status of the creation. As shown in the figure: When the creation is used, the relevant data can be input from the RS422 interface 2. Since the RS422 interface 2 is full duplex, the transmission control unit 5 will not be obscured when receiving the RS422 interface 2 tribute. The action is such that transmission and reception can be performed simultaneously in the RS422 interface 2 mode. When the data is input from the RS485 interface 3, the transmission control unit 5 will 'receive the transmission request and start transmitting the relevant data, and the transmission control unit Lu 5 & for the transmission enable output of the RS485 interface 3 (Driver enable) ), after the transfer is completed, turn it off' so that other devices can start transmitting data. There are two sources of the transfer request, one is the upper layer Ready signal, the data to be transmitted is ready, and the other source is From the receiving control unit 1, when the receiving control unit 1 is receiving the data input by the rS485 interface 3, the channel representing the current RS485 interface 3 is already occupied. To avoid data collision, the receiving control unit 1 outputs a The status signal (RS485 receiving state) is connected to the 'Ready signal used to shield the transmitting end' in the determining unit 4 to avoid collision between the transmitting and receiving actions. The half-duplex RS485 interface 3 can be simulated by this control mechanism. In the full duplex mode; when the receiving control unit 1 is receiving the data input by the RS485 interface 3, it can directly determine whether it is Receiving the data of RS485 interface 3, when the signal of rS485 interface 3 starts transmitting, the data that will be received next time is the data of RS485 interface 3. The logic element of receiving control unit 1 will record this state and output RS485 interface 3 Connect M379104 - (for example: Receive Green 1), wait for the data to be completely accepted as follows: Receive (4) Reset this signal, so that the next time you re-judge, and automatically determine whether it is RS422 interface 2 or RS485 interface 3 input, no need to manually drop Work. As mentioned above, this creation is fully in line with the three requirements of the patent: the new dependence 'progressiveness' 2 industry availability. In terms of novelty and progress, the creation automatically controls the source ## when the data is transmitted through the 22 interface or the interface 5 by receiving the control of the early detection, the judgment unit and the transmission control unit. Judging, in order to avoid conflicts in the transmission and reception, and then to achieve half-time work, the utility of the utility of W, the use of: for: He Sheng's products, when fully meet the current market demand. The present invention has been disclosed in the above preferred embodiments, and it should be understood by those skilled in the art that this embodiment is only used to describe the present invention and should not be construed as limiting the scope of the present invention. It should be noted that the variations and limitations equivalent to the embodiments are subject to the definition of the scope of the following claims. • [Simple description of the diagram] The first diagram is a schematic diagram of the basic structure of the creation. The second picture is a schematic diagram of the state of use of the creation. [Main component symbol description] Receive control unit 1 RS422 interface 2 RS485 interface 3 Judging unit 4 7 M379104 Transmission control unit 5