TWI569148B - Automatic detection of transmission - Google Patents

Automatic detection of transmission Download PDF

Info

Publication number
TWI569148B
TWI569148B TW104108408A TW104108408A TWI569148B TW I569148 B TWI569148 B TW I569148B TW 104108408 A TW104108408 A TW 104108408A TW 104108408 A TW104108408 A TW 104108408A TW I569148 B TWI569148 B TW I569148B
Authority
TW
Taiwan
Prior art keywords
transmission
error
value
receiving
unit
Prior art date
Application number
TW104108408A
Other languages
Chinese (zh)
Other versions
TW201635157A (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 TW104108408A priority Critical patent/TWI569148B/en
Priority to CN201620048305.4U priority patent/CN205490585U/en
Publication of TW201635157A publication Critical patent/TW201635157A/en
Application granted granted Critical
Publication of TWI569148B publication Critical patent/TWI569148B/en

Links

Landscapes

  • Communication Control (AREA)

Description

傳輸自動化偵測技術方法 Transmission automatic detection technology method

本發明係有關於一種資料傳輸之方法,特別是一種傳輸自動化偵測技術方法。 The invention relates to a method for data transmission, in particular to a method for transmitting automatic detection technology.

近代串列通訊朝向高寬通訊技術發展,USB、HDMI、DisplayPort、Thunderbolt、EtherCAD介面等陸續被提出,但是傳輸距離較短。 Modern serial communication is moving towards high-wide communication technology. USB, HDMI, DisplayPort, Thunderbolt, and EtherCAD interfaces have been proposed, but the transmission distance is short.

而在一般通訊所使用之傳輸介面,如RS232、RS422、RS485通訊介面因為穩定,因為架構簡單、抗雜訊能力高與硬體成本低廉,因此仍然廣泛被應用在民生及工業儀器資料傳送、自動化控制及GPS通訊等領域;但是,傳送資料前通訊兩端必須滿足下列之參數條件,「1.必須設定相通的鮑率(Baud Rate)」、「2.相同之封包格式」否則將無法使資料正確完整的傳輸,故,該參數條件(鮑率與封包格式)是無法隨機變動的,因此限制自動化設備應用。 The transmission interface used in general communication, such as RS232, RS422, RS485 communication interface is stable, because of its simple architecture, high anti-noise capability and low hardware cost, it is still widely used in data transmission and automation of people's livelihood and industrial instruments. Control and GPS communication; however, the two parameters must meet the following parameters before transmitting the data. "1. Must set the same Baud Rate" and "2. Same packet format". Otherwise, the data will not be available. Correct and complete transmission, therefore, the parameter conditions (bow rate and packet format) cannot be randomly changed, thus limiting the application of automation equipment.

因此,近年來研發出自動鮑率調適(Auto Baud Rate,簡稱ABR)技術,目的在讓接收端控制器能根據接收到的信號判斷傳送端控制器設定的鮑率,來解決鮑率匹配的問題其相關研究大致可從軟體與硬體兩個方向發展,而現有技術主要有: Therefore, in recent years, the Auto Baud Rate (ABR) technology has been developed to enable the receiver controller to determine the baud rate set by the transmitter controller based on the received signal to solve the problem of baud rate matching. The related research can be roughly developed from both software and hardware. The existing technologies mainly include:

1.由接收端先偵查這接收的一連串信號中,每兩個相隔之邊緣觸發(fall edge或是rise edge)信號間的周期,並選擇最小的周期值為變數,通過一機率密度函數估算傳送端控制器設定的鮑率,利用軟體讓接收端控制器能自動辨識調適傳送端控制器之鮑率,但是機率密度函數受環境條件限制,增加BER(Bit Error Rate)。 1. The receiver first detects the period between each of the two received signals in a series of signals (fall edge or rise edge), and selects the smallest period value as a variable, and estimates the transmission by a probability density function. The baud rate set by the end controller uses the software to allow the receiving end controller to automatically recognize the baud rate of the adapting transmitting end controller, but the probability density function is limited by the environmental conditions and increases the BER (Bit Error Rate).

2.從演算策略上著手,其原理是先設定接收端控制器鮑率值,如為9600時,因此當傳送端採用9600之鮑率,接收端會接收到完整的封包內容;而當傳送端採用4800之鮑率輸送資料,因為9600/4800=2,所以接收端會接收到2次相同之位元資料,以此來推論傳送端所採用的鮑率。 2. Starting from the calculus strategy, the principle is to set the baud rate of the receiving controller first, such as 9600, so when the transmitting end adopts the baud rate of 9600, the receiving end will receive the complete packet content; The data is transmitted at a rate of 4800. Because 9600/4800=2, the receiving end will receive the same bit data twice, in order to infer the baud rate used by the transmitting end.

3.則在接收端採用特殊設計的自動鮑率偵測(Auto Baud Rate Detect,ABRD)晶片-Si8900,它能從傳送端輸出的封包自動辨識送端設定之鮑率,並調適接收端進行通訊,但配合辨識,傳送端控制器傳送資料前,必須先額外送出16個0XAA之特殊封包,供接收端控制器辨識,同時增加辨識Si8900回傳的0X55數據。 3. At the receiving end, a specially designed Auto Baud Rate Detect (ABRD) chip, the Si8900, can automatically recognize the baud rate of the sending end from the packet output from the transmitting end, and adapt the receiving end to communicate. However, in conjunction with the identification, the transmitting controller must send 16 additional 0XAA special packets for identification by the receiving controller before transmitting the data, and increase the 0X55 data that is recognized by the Si8900.

但是無論如何,上述等方法雖然改善鮑率匹配問題,但是必須修改韌體或硬體電路,除了無法相容於目前之系統,進而提高開發成本外,而且還隱藏一個嚴重的缺點,就是仍然無法知道傳送端控制器的封包格式設定,造成交握可靠度差,實需改善。 However, in any case, although the above methods improve the baud rate matching problem, it is necessary to modify the firmware or hardware circuit, in addition to being unable to be compatible with the current system, thereby increasing the development cost, and hiding a serious drawback, that is, still unable to Knowing the packet format setting of the transmitting end controller, resulting in poor reliability of the handshake, it is necessary to improve.

因此,本發明之目的,是在提供一種傳輸自動化偵測技術方法,其不改變現有硬體與韌體下,能達到自動匹配通訊兩端之參數設定外,以及增加交握機制可靠度與提供更多操作功能。 Therefore, the object of the present invention is to provide a method for automatic transmission detection technology, which can achieve automatic matching of parameter settings at both ends of the communication without changing the existing hardware and firmware, and increase the reliability and provision of the handshake mechanism. More operational features.

於是,本發明傳輸自動化偵測技術方法,其主要應用於至少二可相互傳訊之通訊介面上,該通訊介面為RS-232,且該通訊介面具複數傳輸接腳、一編碼器及一可與該編碼器、傳輸接腳連接之收發控制器,而前述該編碼器具有一可將資料訊號進行編碼之傳送組,以及一接收資料訊號後進行還原之接收組;而前述該傳輸自動化偵測技包含有有建立命令通道、進行參數匹配、進行資料傳送等步驟;其中,是以,先利用該通訊介面既有之傳輸接腳(如CTS/RTS)間建立一不須參數(鮑率/封包格式/頻寬)設定之命令通道後(即建立命令通道步驟),使得欲進行資料傳輸時,傳送端先將參數進行編碼後,由該命令通道傳送至另一通訊介面之接收組後,使該通訊介面能自動匹配傳送與接收兩端之參數設定,以利資料傳送之進行,故在不需改變現有硬體與韌體下,即可有效提昇交握可靠度與更多操作功能;此外,當可延伸使用於RS-422或RS-485等通訊介面上時,僅需利用一專線以形成一命令通道,即可達到自動調配傳輸參數之功能外,同時更可使不同傳輸介面(RS-232、RS-422、RS-485)時,可直接達到傳 輸參數匹配之特性,有效增加自動化控制應用領域之功能。 Therefore, the method for transmitting automatic detection technology of the present invention is mainly applied to at least two communication interfaces capable of mutual communication, the communication interface is RS-232, and the communication interface masks a plurality of transmission pins, an encoder and an The encoder and the transmission pin are connected to the transceiver controller, and the encoder has a transmission group capable of encoding the data signal, and a receiving group for receiving the data signal, and the receiving automatic detection technology includes There are steps of establishing a command channel, performing parameter matching, and performing data transmission; wherein, first, a parameter is not established between the existing transmission pins (such as CTS/RTS) of the communication interface (bow rate/packet format) /frequency) After setting the command channel (that is, establishing the command channel step), when the data transmission is to be performed, the transmitting end first encodes the parameter, and then transmits the command channel to the receiving group of another communication interface, so that the The communication interface can automatically match the parameter settings at both ends of the transmission and reception for the data transmission, so it can be effectively improved without changing the existing hardware and firmware. Hold reliability and more operation functions; in addition, when it can be extended to use on RS-422 or RS-485 communication interface, only need to use a dedicated line to form a command channel, which can achieve the function of automatically adjusting transmission parameters. At the same time, different transmission interfaces (RS-232, RS-422, RS-485) can be directly transmitted. The characteristics of the input parameter matching effectively increase the functions of the field of automation control applications.

圖1為本發明一較佳實施例通訊介面之結構示意圖。 FIG. 1 is a schematic structural diagram of a communication interface according to a preferred embodiment of the present invention.

圖2為本發明一較佳實施例之編碼器的架構示意圖。 2 is a schematic structural diagram of an encoder according to a preferred embodiment of the present invention.

圖3為本發明一較佳實施例之方塊圖。 Figure 3 is a block diagram of a preferred embodiment of the present invention.

圖4為本發明一較佳實施例之RS-323通訊介面的連接示意圖。 4 is a schematic diagram of a connection of an RS-323 communication interface according to a preferred embodiment of the present invention.

圖5為本發明一較佳實施例之RS-422/RS-485通訊介面的連接示意圖。 FIG. 5 is a schematic diagram of a connection of an RS-422/RS-485 communication interface according to a preferred embodiment of the present invention.

圖6為本發明一較佳實施例之位元資料轉換表。 FIG. 6 is a table of bit material conversion table according to a preferred embodiment of the present invention.

圖7為本發明一較佳實施例之誤差級距係數依據傳輸環境所定義之示意圖。 FIG. 7 is a schematic diagram showing the error step size coefficient according to a transmission environment according to a preferred embodiment of the present invention.

圖8為本發明一較佳實施例之誤差逾越值與誤差級距係數的相對關係示意圖。 FIG. 8 is a schematic diagram showing the relative relationship between the error crossing value and the error step coefficient according to a preferred embodiment of the present invention.

圖9為本發明一較佳實施例測試平台實體架構圖。 FIG. 9 is a structural diagram of a test platform entity according to a preferred embodiment of the present invention.

圖10為本發明一較佳實施例測試平台架構圖。 FIG. 10 is a structural diagram of a test platform according to a preferred embodiment of the present invention.

【附件】【annex】

附件1 為本發明一較佳實施例之測試結果圖。 Annex 1 is a test result diagram of a preferred embodiment of the present invention.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之較佳實施例的詳細說明中,將可清楚地明 白。 The above and other technical contents, features, and advantages of the present invention will become apparent from the following detailed description of the preferred embodiments White.

參閱圖1,本發明一較實施例,本實施例傳輸自動化偵測技術方法,其主要應用於至少二可相互傳訊之通訊介面上,該通訊包含有複數傳輸接腳、一編碼器,以及一可與該編碼器、傳輸接腳連接之收發控制器;其中,該通訊介面為RS-232;另,該收發控制器其可接收該編碼器所輸出之數值,且將該等數值加以轉換成相對脈波數量,以進行傳輸至欲進行通訊的另一通訊介面之收發控制器。 Referring to FIG. 1 , a first embodiment of the present invention transmits an automatic detection technology method, which is mainly applied to at least two communication interfaces that can communicate with each other, and the communication includes a plurality of transmission pins, an encoder, and a a transceiver controller connectable to the encoder and the transmission pin; wherein the communication interface is RS-232; and the transceiver controller can receive the value output by the encoder, and convert the value into The number of pulses is transmitted to the transceiver controller of another communication interface to be communicated.

參閱圖2,該編碼器具有一可將資料訊號進行編碼之傳送組,以及一接收資料訊號後進行解碼還原之接收組;其中,該傳送組包括有一編碼單元,一誤差級距係數產生單元,一誤差逾越值產生單元,以及一與該編碼單元、誤差級距係數產生單元、誤差逾越值產生單元連接之第一處理單元,而前述該編碼單元可將所欲傳輸資料轉換成為二進制數值,同時該二進制數值並經該誤差級距係數產生單元、誤差逾越值產生單元中分別產生一誤差級距係數及一誤差逾越值,並將前述該等係數與逾越值於該第一處理單元中進行運算,且加以整合成一傳輸數值,且轉換成一數值信號由該收發控制器輸出;另,該接收端具有一解碼單元、一與該解碼器連接之第二處理單元,以及一與該第二處理單元連接之誤差級距係數產生單元,而前述該解碼單元將該收發控制器接收之數值信號進行解碼,傳送至該第二處理單元,同時再除 以該誤差級距係數產生單元所產生之誤差級距係數,已得到一二進制數值,並且該處理單元捨去小數點已取得整數,已得到該傳輸資料,當然更可適時使該接收端之。 Referring to FIG. 2, the encoder has a transmission group for encoding a data signal, and a receiving group for decoding and restoring after receiving the data signal; wherein the transmission group includes a coding unit, an error step coefficient generation unit, and a An error crossing value generating unit, and a first processing unit connected to the encoding unit, the error step coefficient generating unit, and the error crossing value generating unit, wherein the encoding unit converts the desired data into a binary value, and the And generating, by the error step coefficient generating unit and the error crossing value generating unit, an error step coefficient and an error crossing value, respectively, and performing the foregoing coefficients and the overshoot value in the first processing unit, And integrated into a transmission value, and converted into a numerical signal output by the transceiver controller; further, the receiving end has a decoding unit, a second processing unit connected to the decoder, and a second processing unit The error step coefficient generating unit, and the foregoing decoding unit receives the transceiver controller The digital signal is decoded, transmitted to the second processing unit, and then removed The error step coefficient generated by the error step coefficient generating unit has obtained a binary value, and the processing unit rounds off the decimal point and has obtained an integer, and the transmission data has been obtained, and of course, the receiving end can be made more timely.

參閱圖3、圖4,本發明使用時,該傳輸自動化偵測技術方法包含有建立命令通道步驟、進行參數匹配步驟、進行資料傳送步驟等;各步驟詳細如下 Referring to FIG. 3 and FIG. 4, when the present invention is used, the automatic transmission detection technology method includes the steps of establishing a command channel, performing a parameter matching step, performing a data transmission step, etc.; the steps are as follows:

(1)建立命令通道步驟:其設於任二通訊介面間,且利用該通訊介面之傳輸接腳進行連接,同時該命令通道不需設定參數(如鮑率/封包格式/頻寬),同時實際使用時,可利用該傳輸接腳(RTS/CTS)當作命令通道;此外,若使用於RS-422/RS-485時,如須圖5所示,另外建立一專線,以利用該專線作為命令通道,而本實施例以下,僅以該通訊介面為RS-232為例說明。 (1) Step of establishing command channel: it is set between any two communication interfaces, and is connected by using the transmission pin of the communication interface, and the command channel does not need to set parameters (such as baud rate/packet format/bandwidth), In actual use, the transmission pin (RTS/CTS) can be used as a command channel; in addition, if it is used in RS-422/RS-485, as shown in Figure 5, a dedicated line is also established to utilize the dedicated line. As a command channel, in the following embodiment, only the communication interface is RS-232 as an example.

(2)參數匹配步驟:係利用該傳送組先將參數進行編碼後,由該命令通道傳送至接收組後,該接收組進行解碼已得知其參數,同時該接收組之收發控制器將自動調適成該傳送端之收發控制器設定之參數後,其流程如下:傳送組將傳送資料以位元(Bit)為單位編碼,將位元資料傳送前先依圖6轉換成相對的二進制值,其相對於十進值的值則為Numb,再依據式(1),先乘上誤差級距係數後,再加上誤差逾越值,其目的為將位元資料(Data)放在較不受雜訊干擾的高位元區(b(n+1)及b(n)),由誤差級距係數與誤差逾 越值組成的低位元區,則在傳送過程中儲存雜訊引起的誤差,其相對關係如式(1)所表示;另外,該誤差級距係數可因通訊環境而進行定義(如圖7所示),至於,該誤差逾越值與誤差級距係數等可如圖8所得。 (2) Parameter matching step: after the parameter is encoded by the transmission group, after the command channel is transmitted to the receiving group, the receiving group decodes the parameter and the receiving and receiving controller of the receiving group will automatically After adjusting the parameters set by the transceiver controller of the transmitting end, the flow is as follows: the transmitting group encodes the transmitted data in units of bits, and converts the bit data into a relative binary value according to FIG. 6 before being transmitted. Its value relative to the decimal value is Numb, and then according to the formula (1), multiply the error step coefficient first, and then add the error overshoot value, the purpose is to place the bit data (Data) less The high-order area (b(n+1) and b(n)) of the noise interference, the low-order area composed of the error step coefficient and the error override value, stores the error caused by the noise during the transmission, and the relative The relationship is expressed by equation (1); in addition, the error step coefficient can be communicated by communication The environment is defined (as shown in FIG. 7), and as such, the error crossing value and the error step coefficient can be obtained as shown in FIG. 8.

M=Numb×誤差級距係數+誤差逾越值..式(1) M = Numb × error step coefficient + error override value. . Formula 1)

Num為相對於(b(n+1)b(n))之10進制值,M為一純量,決定輸出之派波數,而加上誤差級距係數與誤差逾越值之目的,用來滿足正、負雜訊造成之誤差;實作上,編碼後之位元資料在通訊媒介中出現由M數決定的脈波序列,因此若傳送8位元資料時則出現8個時間長短不之脈波序列及一個(b(n+1)b(n)=11)之結束派波序列,用來知會接收端之收發控制器,封包結束。 Num is a decimal value relative to (b(n+1)b(n)), M is a scalar quantity, determines the number of waves of the output, and adds the error step coefficient and the error overshoot value. To meet the error caused by positive and negative noise; in practice, the encoded bit data has a pulse sequence determined by the M number in the communication medium, so if the 8-bit data is transmitted, there are 8 time lengths. The pulse sequence and a (b(n+1)b(n)=11) end wave sequence are used to inform the receiving and receiving controller of the receiving end, and the packet ends.

接收組接收脈波序列後,反向解碼還原資料。其通訊頻寬,若定義傳輸頻寬為f λ v為代表脈波之速度(稱為編碼速度),則根據下式(2),則可計算出傳輸頻寬。 After receiving the pulse wave sequence, the receiving group reversely decodes the restored data. The communication bandwidth is wide. If the transmission bandwidth is defined as f λ and v is the speed representing the pulse wave (called the encoding speed), the transmission bandwidth can be calculated according to the following equation (2).

故,當b(n+1)b(n)=11代表封包結束,所以封包長度可以自動辨識,同時只需計算脈波數量,所以通訊時不須設定參數,能自動調適通訊頻寬;使該接收組端之收發控制器將自動調適程該傳送組端之收發控制器設定之參數,因此再經由CTS/RTS間通訊前不須設定的命令通道,傳送參數資料 設置即為命令。 Therefore, when b(n+1)b(n)=11 represents the end of the packet, the packet length can be automatically identified, and only the number of pulses is calculated, so that the communication bandwidth can be automatically adjusted without setting parameters during communication; The receiving and receiving controller of the receiving group end automatically adjusts the parameters set by the transmitting and receiving controller of the transmitting group end, so the parameter data is transmitted through the command channel that is not required to be set before communication between CTS/RTS. The setting is the command.

(3)進行資料傳送步驟:匹配完成後,即可透過該傳輸接腳(TX/RX)進行資料傳送作業。 (3) Data transfer step: After the matching is completed, the data transfer operation can be performed through the transfer pin (TX/RX).

配合參閱9、圖10,此外,為證明本發明之可行性,以個人電腦及ARDUINO UNO開發板架構測試平台,其中個人電腦經由USB-RS232轉接線並且與一ARDUINO UNO開發板之串列通訊埠連接,虛擬為一RS232介面A,同時由另一塊ARDUINO UNO開發板架設成另一個RS232介面B,兩個模擬的RS232介面,除第10與11角為串列通訊部外,同時選擇第6腳充當為CTS,而第8腳模擬為RTS,並架構為命令通道,最後利用ARDUINO UNO整體開發環境(IDE)充當人機介面,監視轉換與執行過程。 In conjunction with reference 9, FIG. 10, in addition, in order to prove the feasibility of the present invention, a personal computer and ARDUINO UNO development board architecture test platform, wherein the personal computer is connected via USB-RS232 and connected to an ARDUINO UNO development board.埠Connected, virtualized as an RS232 interface A, while another ARDUINO UNO development board is set up to another RS232 interface B, two analog RS232 interfaces, except for the 10th and 11th corners of the serial communication department, while selecting the 6th The foot acts as a CTS, and the 8th foot is modeled as an RTS, and is structured as a command channel. Finally, the ARDUINO UNO overall development environment (IDE) is used as a human-machine interface to monitor the conversion and execution process.

測試結果如附件一,顯由RS232介面B分別由亂數選擇任意之鮑率,先經由該命令通道送出改變後,鮑率等參數值,再傳送測試字(Test Word)-“>>>>>>>>>> The test word after parameter be changed !!”,而RS232介面A則負責先接收命令通道的命令,將自動匹配設定成RS323介面B之參數設定後,在接收此此測試字並顯示在個人電腦中之人機介面中,並且當通訊兩端具有相同的參數時,顯示的測試字才會正確,觀察附件一所示結果,100%正確,準確度相當高,實驗最後隨機傳送,經比對結果,證明本研究之方法確實可行。 The test results are shown in Annex 1. The RS232 interface B is selected by the random number to select the arbitrary baud rate. First, the parameter value is sent after the change through the command channel, and then the test word (Test Word)->>>> >>>>>> The test word after parameter be changed !!", and RS232 interface A is responsible for receiving the command channel command first, setting the automatic matching to the parameter setting of RS323 interface B, receiving this test word and Displayed in the human machine interface in the personal computer, and when the two ends of the communication have the same parameters, the displayed test words will be correct. Observe the results shown in Annex I, 100% correct, the accuracy is quite high, and the experiment is randomly transmitted at the end. By comparing the results, it proves that the method of this study is indeed feasible.

綜上所述,本發明相對於習知技術而言,具有下列功效,茲詳述如下: In summary, the present invention has the following effects as compared with the prior art, and is described in detail as follows:

1.本發明於現有RS-232通訊介面,不須改變既有之硬體與韌體時,利用現有傳輸針腳建立一不須參數設定之命令通道後,並且藉由該傳動組與接收組之編碼及撰寫相對程式設計,即能自動匹配通訊兩端之參數設定,有效提昇交握可靠度與更多操作功能。 1. In the existing RS-232 communication interface, the present invention does not need to change the existing hardware and firmware, and uses the existing transmission pin to establish a command channel without parameter setting, and by the transmission group and the receiving group Coding and writing relative programming can automatically match the parameter settings at both ends of the communication, effectively improving the reliability of the handshake and more operational functions.

2.當延伸使用於RS-422/RS-485通訊介面時,仍可保留既有硬體與韌體下,僅需利用一專線以形成一命令通道,即可達到自動調配傳輸參數之功能外,同時因為該傳送組與接收組皆具有相同之編碼設計,因此,更可使於不同傳輸介面(RS-232、RS-422、RS-485)時,只要命令通道建立後,即可達到傳輸參數匹配之功效,有效增加自動化控制應用領域之功能。 2. When extending to the RS-422/RS-485 communication interface, it can still retain the existing hardware and firmware, and only need to use a dedicated line to form a command channel, which can achieve the function of automatically adjusting the transmission parameters. At the same time, because both the transmission group and the receiving group have the same coding design, it can be transmitted in different transmission interfaces (RS-232, RS-422, RS-485) as long as the command channel is established. The function of parameter matching effectively increases the functionality of the field of automation control applications.

歸納前述,本發明傳輸自動化偵測技術方法,先利用該通訊介面既有之傳輸接腳(如CTS/RTS)間建立一不須參數(鮑率/封包格式/頻寬)設定之命令通道後,使得欲進行資料傳輸時,傳送端先將參數進行編碼後,由該命令通道傳送至另一通訊介面之接收組後,使該通訊介面能自動匹配傳送與接收兩端之參數設定,以利資料傳送之進行,故不需改變現有硬體與韌體下,即可有效提昇交握可靠度與更多操作功能,故可確實達到本發明之目的。 In summary, the method for transmitting automatic detection technology of the present invention first uses a command channel set between a transmission pin (such as CTS/RTS) of the communication interface to establish a parameter (bow rate/packet format/bandwidth). When the data transmission is to be performed, the transmitting end first encodes the parameters, and then transmits the command channel to the receiving group of another communication interface, so that the communication interface can automatically match the parameter settings of the transmitting and receiving ends, so as to facilitate The data transmission is carried out, so that it is possible to effectively improve the grip reliability and more operational functions without changing the existing hardware and firmware, so that the object of the present invention can be achieved.

惟以上所述者,僅為說明本發明之較佳實施例而已,當不能以此限定本發明實施例之範圍,及大凡依本發明申請專利範圍及發明說明書內容所作之簡單等效變化與修飾,皆應仍屬本發明專利涵蓋之範圍內。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and the simple equivalent changes and modifications made in accordance with the scope of the present invention and the contents of the invention are generally modified. All should remain within the scope of the invention patent.

Claims (5)

一種傳輸自動化偵測技術方法,其主要係應用於至少二相互傳訊之通訊介面上,以進行資料傳輸;其中,該通訊介面為RS-232,且該通訊介面具複數傳輸接腳、一編碼器及一可與該編碼器、傳輸接腳連接之收發控制器,而前述該編碼器具有一可將資料訊號進行編碼之傳送組,以及一接收資料訊號後進行解碼還原之接收組;其依序如下:建立命令通道步驟,其設於任二通訊介面間,且利用該通訊介面之傳輸接腳進行連接,同時該命令通道不需設定參數;進行參數匹配步驟,該傳送組先將參數進行編碼後,由該命令通道傳送至接收組後,該接收組進行解碼已得知其參數,同時該接收組之收發控制器將自動調適成該傳送端之收發控制器設定之參數;進行資料傳送步驟,該任二收發控制器進行資料訊息之傳送/接收。 A transmission automatic detection technology method is mainly applied to at least two mutual communication communication interfaces for data transmission; wherein the communication interface is RS-232, and the communication interface masks a plurality of transmission pins and an encoder And a transceiver controller connectable to the encoder and the transmission pin, and the encoder has a transmission group capable of encoding the data signal, and a receiving group for decoding and restoring the data signal; the sequence is as follows : establishing a command channel step, which is set between any two communication interfaces, and is connected by using a transmission pin of the communication interface, and the command channel does not need to set parameters; performing a parameter matching step, the transmission group first encodes the parameters After the command channel is transmitted to the receiving group, the receiving group decodes and knows its parameters, and the receiving and receiving controller of the receiving group is automatically adapted to the parameters set by the transmitting and receiving controller of the transmitting end; The two transceiver controllers transmit/receive data messages. 根據申請專利範圍第1項所述傳輸自動化偵測技術方法,其中,該命令通道係利用RS-232中之CTS/RTS傳輸接腳作為命令通道。 The method for transmitting automatic detection technology according to claim 1 of the patent application scope, wherein the command channel uses a CTS/RTS transmission pin in RS-232 as a command channel. 根據申請專利範圍第1項所述傳輸自動化偵測技術方法,其中,該傳送組包括有一編碼單元,一誤差級距係數產生單元,一誤差逾越值產生單元,以及一與該編碼單元、誤差級距係數產生單元、誤差逾越值產生單元連接之第一處理單元,而前述該編碼單元可將所欲傳輸資料轉換成為二進制數 值,同時該二進制數值並經該誤差級距係數產生單元、誤差逾越值產生單元中分別產生一誤差級距係數及一誤差逾越值,並將前述該等係數與逾越值於該第一處理單元中進行運算,且加以整合成一傳輸數值,且轉換成一數值信號由該收發控制器輸出;另,該接收端具有一解碼單元、一與該解碼器連接之第二處理單元,以及一與該第二處理單元連接之誤差級距係數產生單元,而前述該解碼單元將該收發控制器接收之數值信號進行解碼,傳送至該第二處理單元,同時再除以該誤差級距係數產生單元所產生之誤差級距係數,已得到一二進制數值,並且該處理單元捨去小數點已取得整數,已得到該傳輸資料。 The method for transmitting automatic detection technology according to claim 1, wherein the transmission group includes a coding unit, an error step coefficient generation unit, an error crossing value generation unit, and an encoding unit and an error level. a first processing unit connected to the coefficient generating unit and the error crossing value generating unit, and the foregoing encoding unit converts the data to be transmitted into a binary number a value, and the binary value is generated by the error step coefficient generating unit and the error crossing value generating unit respectively, and an error step value and an error crossing value are respectively generated, and the foregoing coefficients and the exceeding value are used in the first processing unit Performing an operation, and integrating into a transmission value, and converting the signal into a value signal output by the transceiver controller; further, the receiving end has a decoding unit, a second processing unit connected to the decoder, and a first An error step coefficient generating unit connected to the processing unit, wherein the decoding unit decodes the value signal received by the transceiver controller, transmits the value signal to the second processing unit, and simultaneously divides the error level coefficient generating unit to generate The error step coefficient has obtained a binary value, and the processing unit rounds off the decimal point and has obtained an integer, and the transmission data has been obtained. 一種傳輸自動化偵測技術方法,其主要係應用於至少二相互傳訊之通訊介面上,以進行資料傳輸;其中,該通訊介面為RS-422/RS-485,且該通訊介面具複數傳輸接腳、一編碼器及一可與該編碼器、傳輸接腳連接之收發控制器,而前述該編碼器具有一可將資料訊號進行編碼之傳送組,以及一接收資料訊號後進行還原之接收組;其依序如下:建立命令通道步驟,其於該任二通訊介面間設置有一分別與該等收發控制器連接之專線,以利用該專線形成一命令通道,同時該命令通道不需設定參數;進行參數匹配步驟,該傳送組先將參數進行編碼後,由該命令通道傳送至接收組後,該接收組進行解碼已得知其參數,同時該接收組之收發控制器將自動調適成該傳送端之收發控制器設定之參數; 進行資料傳送步驟,該任二收發控制器進行資料訊息之傳送/接收。 A transmission automatic detection technology method is mainly applied to at least two mutual communication communication interfaces for data transmission; wherein the communication interface is RS-422/RS-485, and the communication interface masks a plurality of transmission pins And an encoder and a transceiver controller connectable to the encoder and the transmission pin, and the encoder has a transmission group capable of encoding the data signal, and a receiving group for receiving the data signal and then restoring; The sequence is as follows: a command channel step is established, and a dedicated line respectively connected to the transceiver controllers is disposed between the two communication interfaces to form a command channel by using the dedicated line, and the command channel does not need to set parameters; In the matching step, after the transmission group encodes the parameter, after the command channel is transmitted to the receiving group, the receiving group decodes the parameter, and the receiving and receiving controller of the receiving group automatically adapts to the transmitting end. The parameters set by the transceiver controller; The data transmission step is performed, and the two transceiver controllers transmit/receive data messages. 根據申請專利範圍第4項所述傳輸自動化偵測技術方法,其中,該傳送組包括有一編碼單元,一誤差級距係數產生單元,一誤差逾越值產生單元,以及一與該編碼單元、誤差級距係數產生單元、誤差逾越值產生單元連接之第一處理單元,而前述該編碼單元可將所欲傳輸資料轉換成為二進制數值,同時該二進制數值並經該誤差級距係數產生單元、誤差逾越值產生單元中分別產生一誤差級距係數及一誤差逾越值,並將前述該等係數與逾越值於該第一處理單元中進行運算,且加以整合成一傳輸數值,且轉換成一數值信號由該收發控制器輸出;另,該接收端具有一解碼單元、一與該解碼器連接之第二處理單元,以及一與該第二處理單元連接之誤差級距係數產生單元,而前述該解碼單元將該收發控制器接收之數值信號進行解碼,傳送至該第二處理單元,同時再除以該誤差級距係數產生單元所產生之誤差級距係數,已得到一二進制數值,並且該處理單元捨去小數點已取得整數,已得到該傳輸資料。 The method for transmitting automatic detection technology according to claim 4, wherein the transmission group includes a coding unit, an error step coefficient generation unit, an error crossing value generation unit, and a coding unit and an error level. a first processing unit connected to the coefficient generating unit and the error crossing value generating unit, and the foregoing encoding unit converts the data to be transmitted into a binary value, and the binary value passes through the error step coefficient generating unit and the error crossing value An error step coefficient and an error pass value are respectively generated in the generating unit, and the foregoing coefficients and the overshoot value are calculated in the first processing unit, and integrated into a transmission value, and converted into a numerical signal by the transmitting and receiving a controller output; in addition, the receiving end has a decoding unit, a second processing unit connected to the decoder, and an error step coefficient generating unit connected to the second processing unit, and the foregoing decoding unit The numerical signal received by the transceiver controller is decoded and transmitted to the second processing unit, and at the same time Dividing by the error step coefficient generated by the error step coefficient generating unit, a binary value has been obtained, and the processing unit rounds off the decimal point and has obtained an integer, and the transmission data has been obtained.
TW104108408A 2015-03-17 2015-03-17 Automatic detection of transmission TWI569148B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW104108408A TWI569148B (en) 2015-03-17 2015-03-17 Automatic detection of transmission
CN201620048305.4U CN205490585U (en) 2015-03-17 2016-01-19 Transmission system capable of automatically setting transmission parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104108408A TWI569148B (en) 2015-03-17 2015-03-17 Automatic detection of transmission

Publications (2)

Publication Number Publication Date
TW201635157A TW201635157A (en) 2016-10-01
TWI569148B true TWI569148B (en) 2017-02-01

Family

ID=56670212

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104108408A TWI569148B (en) 2015-03-17 2015-03-17 Automatic detection of transmission

Country Status (2)

Country Link
CN (1) CN205490585U (en)
TW (1) TWI569148B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM320256U (en) * 2007-01-15 2007-10-01 Nat Chin Yi University Of Tech Digital modulation system
TW200813729A (en) * 2006-09-12 2008-03-16 Pu Wen Chung Method for communicating and transmitting data
US20100033351A1 (en) * 2008-08-08 2010-02-11 Foxnum Technology Co., Ltd. Auto-detection system and method for communication protocol
TW201202941A (en) * 2010-07-08 2012-01-16 Nat Univ Chin Yi Technology Pan with serial communication interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200813729A (en) * 2006-09-12 2008-03-16 Pu Wen Chung Method for communicating and transmitting data
TWM320256U (en) * 2007-01-15 2007-10-01 Nat Chin Yi University Of Tech Digital modulation system
US20100033351A1 (en) * 2008-08-08 2010-02-11 Foxnum Technology Co., Ltd. Auto-detection system and method for communication protocol
TW201202941A (en) * 2010-07-08 2012-01-16 Nat Univ Chin Yi Technology Pan with serial communication interface

Also Published As

Publication number Publication date
TW201635157A (en) 2016-10-01
CN205490585U (en) 2016-08-17

Similar Documents

Publication Publication Date Title
RU2020115007A (en) METHODS AND DEVICE FOR FORMING A BRIDGE FOR DATA TRANSFER BETWEEN DEVICES USING DEVICES WITH LOW ENERGY CONSUMPTION
GB2600624A9 (en) Adaptive bit rate ratio control
CN102638282B (en) Impedance and gain compensation device and method for transmission interface
CN105262490A (en) Self-adaptive system based on Manchester coding and decoding, and method thereof
JP2016092445A (en) Serial communication system
CN203933621U (en) A kind of HID blue tooth voice communicator
CN104850527B (en) Communications protocol processor
CN108648752A (en) A kind of intelligent sound control system and its control method based on cloud processing
TWI569148B (en) Automatic detection of transmission
US20130272449A1 (en) Generating and/or receiving, at least in part, signal that includes at least one waveform
KR102189511B1 (en) Method and apparatus for transmitting data, method and apparatus for receiving data
CN115567609B (en) Communication method of Internet of things for boiler
CN101968777A (en) Computer signalling system, keyboard-image-mouse extension system and data transmission method
CN104639287B (en) Ultrasonic communication coding method and system
US8103214B2 (en) System and method for adapting a loop powered field instrument for use in a wireless network
JP2011512738A (en) Method and system for wireless USB transfer of isochronous data using bulk data transfer type
CN110336642A (en) It is a kind of for the code-change modulator approach of the high-speed industrial communication system based on OFDM system, terminal, electronic equipment and the system
CN105743872B (en) A kind of automatic adjusting method of data transmission system and PCM communication agreement
US20100318694A1 (en) Electronic device for generating uart signals and method thereof
WO2014032578A1 (en) Method and device for determining soft bit information
TWI430632B (en) A device with an interface able to automatically adjust a communication speed
TWI502362B (en) Pan with serial communication interface
KR100809961B1 (en) Apparatus for data processing and method for processing data
CN102113244A (en) Method and apparatus for pulse width modulation signal processing
JPH04270525A (en) Zeror synchronization apparatus for encoding and decoding use

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees