200813729 九、發明說明: 【發明所屬之技術領域】 本發明係-種傳輸方法,特別是指—種資料通訊傳輸 方法。 【先前技術】 隨著資訊產業進步,電腦進而衍生為現行時代下之產 物,藉由電腦作間接控制曰漸普遍,而傳統控制方式常透 過串列傳輸(10)(Serial Communication)之通訊介面,進 而達控制之目的,但在進行資料的串列發送及串列接收 時,勢必就傳送端(11)(請參閱第丄圖及第2圖所示)及接 收端(12)在同一傳輸格式下,針對欲傳送之位元組包裝成 封包(13)(Packet),該封包(13)(Packet)係包含一起始位 元(14)(3七31^811:)、若干資料位元(15)(1)&1^“1;)、一同 位位元(16)(Parity Bit)、若干結束位元(17)(St〇p Bit) 組合而成,該傳送端(11)與接收端(12)各設有— Rs—232介 面(111)(121),該 RS-232 介面(111)(121)間係連結一 RS-232傳輸線(18),於傳送前係先設定串列傳輸(1〇)之傳 送端(11)及接收端(12)的傳輸速率即為鮑率(Baud Rate); 當傳送端(11)開始傳送起始位元(14),該起始位元(14) 係通知傳送端(11)與接收端(12)開始通訊傳輸,該傳送端 5 200813729 (ιυ經傳輸線(18)將資料位元(15)送出,同時並在接收端 (12)產生同步脈衝,以檢測資料傳輸過程是否正確,並且 藉由同位位元(16)進行奇同位或偶同位的檢查法預防錯誤 產生’邊結束位兀(17)係通知傳送端(11)與接收端(12)結 束通訊傳輸;經上述分析得知,其尚有下列之缺失:° 其一,該串列傳輸⑽之傳送端⑴)與接收端(⑵, 於傳輸前必需先作繁雜參數設定料包裝成封包(⑶,該 傳送端⑴)與接㈣(⑵雙方_設定錯科,將令該傳 达端⑴)傳料度與該接“(12)接㈣纽法—致,該 串列傳輸(10)通訊傳輸之資料勢必無法正確接收。 j二,該RS-232介面⑴1)(121)係受限於電器特性, 且係藉由改變線路的電壓來發 4魏據,心+,+15V的電 土 一進制數〇」表示,而低 ,ςν Φ}Μ Γ1 ^ dV〜~15v的電壓則用二進 制數1」表不,由於該閥值間的 ^Μ^ΤΓ % 7土禾疋我故必須額外連 、、、口 I換1C,進行邏輯電平盥雷 本。 H的轉換’進而增加設備成 而為了能夠有效解決前述相 於過去在ϋ訊倾領域所累 I *明創作人基 試驗及多方嘗試後,終料展出與經驗,於數次 牙貝料通訊傳輸方法。 200813729 本發明之主I s 勺係提供一種資料通訊傳於 發明係藉由傳送端η也 狀Α傳輪方法··本 對脈波數量,::==輪㈣時間内轉換成相 料在時間内計算出相對脈波數量接將接收資 限於傳輸袼式,視+ 丁貝科延原,無需受 參數設定過程,進而+得、之長度,且刪除繁瑣 進而間化操作步驟。 本發明之次要 發明電源端採用單 平與電壓的轉換, ^的係提供—種料通訊傳輸方法··本 %源七、應,热需搭配轉換1C進行邏輯電 進而降低電壓轉換設備成本。 =:之另-目的係提供—種資料通訊傳輸方法:本 ^ BR ^,1 m ^ m α Θ竹迎汛得椾万 及,該ι-Η入檢查區用來預防資料錯誤產生,以 資料 貝枓又重純錯誤_,進而提升 爾輸之可靠度及正確性,俾達最佳之使用狀態。 所採用之技術、手段及 式存細§兄明如後’相 >[吕 當可由之得一深入而具 有關本發明為達成上述目的, ”4力放,從列舉實施例並配合圖 本發明之目的、特徵及其他優點, 體之瞭解。 200813729 【實施方式】 本發明實施例請參閱第3圖所示係本發明之系統示意 圖(請同時參閱第4圖所示): 該資料通訊傳輸方法運用之系統係主要包含一傳送端 (20)、一接收端(30)、至少一封包(40)及一通訊傳輸(50); 該傳送端(20)係提供資料傳送,該傳送端(20)係設有 ~ 一計數器(21),該計數器(21)係將傳輸資料在非固定時間 ~ 内轉換成相對脈波數量,進行資料傳送,令該傳送端(20) 脈波傳送速度改變,該傳送的資料長度亦可隨之改變; 該接收端(30)係提供資料還原,該接收端(30)係設有 一計數器(31),該計數器(31)係將接收資料在非固定時間 内計算出相對脈波數量,進行資料還原; 該傳送端(20)與接受端(30)係採用單電源供給+Vcc代 表「1」狀態,0V代表「0」狀態,無需配合轉換1C進而降 ^ 低電壓轉換設備成本; 該封包(40)係包含一同位位元檢查區(41)、一傳送資 料區(42)及一錯誤檢查區(43); 該同位位元檢查區(41)係進行奇同位或偶同位的檢查 法預防錯誤產生; 該傳送資料區(42)係視需求自行設定資料長度; 該錯誤檢查區(43)係收集環境雜訊(如電磁波),令在 傳送過程中所產生之誤差攔截於錯誤檢查區(43)中,確保 8 200813729 傳送資料區(42)正確性; 該通訊傳輸(50)係分別與傳送端(20)及接收端(30)作 連結5該通訊傳輸(5 0)係為無線傳輸或有線傳輸,該無線 傳輸係為Wi-Fi、Wi-Max、GSM/GPRS、RF或紅外線,該有線 傳輸係為同軸纜線、雙絞線、電力線或光纖; .如第5圖所示係本發明之另一實施例系統示意圖,該 傳送端(20)另設有一計時器(22),該計時器(22)係配合計 數器(21)將傳輸資料在固定時間内轉換成相對脈波數量, 進行資料傳送;該接收端(30)另設有一計時器(32),該計 時器(32)係配合計數器(31)將接收資料在固定時間内計算 出相對脈波數置’進行貢料退原, 以上所述,即為本發明方法實施時運用的相關元件關 係位置及其構造之概述。 為了清楚說明本發明的資料通訊傳輸方法,請參閱以 下說明,請配合參閱第6圖所示係本發明之方法步驟圖: A.傳送端步驟:該資料傳入傳送端(20)進行封包 (4 0)’该封包(4 0)係先區分為同位位元檢查區(41)、傳送 資料區(42)及錯誤檢查區(43),該資料係以最低有效位元 LSB(Least Significant Bit)對應輸入至傳送資料區(42) 9 200813729 之bn ’以最高有效位元MSB(Most Significant Bit)對廣輸 入至傳送資料區(42)之bm,該錯誤檢查區(43)需設定 為「1」,該同位位元檢查區(41)則由bm〜bn資料視當時應 用奇同位或偶同位設計值輸入至吣中即完成封包初步 設定ί Β.資料轉換成脈波步驟:該封包(40)之傳送資料區 (42)係轉換成十進制值,該十進制值係受傳送端⑽之計 數器(21)於非固定時間内轉換成相對脈波數量,再利用通 訊傳輸(50)傳遞脈波; C.脈波轉換成資料步驟:該接收端⑽經由通訊傳 輸⑽接收到脈波後,該脈波係受接收端⑽之計數哭㈤ 於非固定時間内計算出相對脈 、隹職歧1,誤檢查區(43) 進仃弟一次賢料錯誤檢測, 健旦夕一 避免傳遞過程雜訊干擾造成脈 波數里之祆是,令該誤差之 Γ9(η-1) .. ^ ,皮數1係侷限於+ (2(Π —丨)-1)〜 -(2 ―1)之數量的誤差内,磁仅次" 位位元檢查區⑹進行第料傳送之正確性’該同 程中錯誤產生; 丨—L誤檢測,預防傳遞過 D ·資料還原步驟··再呼曾 包⑽之傳送資料區⑽進對脈波數量後,該封 作業。 、;、是原’即完成一次傳輸 200813729 藉由上述資料通訊傳輸方法,本發明係藉由傳送端(20) 之計數器(21)將傳輸資料在非固定時間内轉換成相對脈波 數量,進行資料傳送,與接收端(3〇)之計數器(31)將接收 資料在非固疋日^間内計算出相對脈波數量,進行資料還 原:無需受限於傳輪格式,以及,繁瑣參數設定,進而簡 口才卞作,且本發明之傳送端(2〇)及接收端(別)係採用 單电源供應’無需搭配轉換IG進行邏輯電平與電麗的轉 換進而P牛低电壓轉換設備成本;並本發明利用該同位位 元檢查區⑹料預防㈣錯誤產生,以及,該錯誤檢查 =⑷)收集環境雜訊,提供該傳送資料區⑽雙重資料錯 ^貞測’ &升㈣傳輸之可靠度及正確性,俾 用狀態。 仗 、’、τ上所述本發明係一種資料通υ聋於太、^ 傳送端之計㈣與接㈣傳輸方法,猎由該 進非嶋侧脈波數量, :貝料傳送,且利用該接收端之計數 Γ?:非固定時間内計算出相對脈波數量‘^^^ 原m限於傳輸格式,及繁絲數 丁貝心 作步驟’再配合該封包之定 又—$而間化操 查區’提供該傳送資料區雙重資料二=查區及錯誤檢 貝卄1曰♦偵測,提昇資料傳 200813729 :之了錢及正確性,俾達最佳之使綠態;所以本發明 =『產業之可利雜』已顯而易見,且本案實施_揭 路出的特徵技術,並未見於各刊物及傳媒,亦未曾被公開 使用’更具有不可輕忽的附加功效’故本發明的『新颖性』 以及『進步性』都已符合專利法規,爰依法提出發明專利 之申請,祈請惠予審查並早日賜准專利,實感待便。 12 200813729 【圖式簡單說明】 第1圖 係習用之系統示意圖。 第2圖 係習用之封包示意圖。 第3圖 係本發明之系統示意圖 0 第4圖 係本發明之封包示意圖 〇 第5圖 係本發明之另一 實施例系統示意圖。 第6圖 係本發明之方法步驟圖 〇 【主要元件符號說明】 《習用》 (10) 串列傳輸 (11) 傳送端 (111) RS-232介面 (12) 接收端 (121) RS-232介面 (13) 封包 (14) 起始位元 (15) 資料位元 (16) 同位位元 (17) 結束位元 (18) RS-232傳輸線 《本發明》 (20) 傳送端 (21) 計數器 (22) 計時器 (30) 接收端 (31) 計數器 (32) 計時器 (40) 封包 (41) 同位位元檢查區 13 200813729 (42) (50) 傳送貧料區 (43) 通訊傳輸 錯誤檢查區 14200813729 IX. Description of the invention: [Technical field to which the invention pertains] The present invention relates to a transmission method, and more particularly to a data transmission method. [Prior Art] With the advancement of the information industry, computers have been derived from the current era. The indirect control by computers is becoming more common. Traditional control methods often use the serial communication (10) (Serial Communication) communication interface. In order to achieve the purpose of control, but in the serial transmission and serial reception of data, it is bound to be in the same transmission format as the transmitting end (11) (see the figure and figure 2) and the receiving end (12). Next, the bit group to be transmitted is packaged into a packet (13) (Packet), which includes a start bit (14) (3-7 31^811:), and a plurality of data bits ( 15) (1) & 1^ "1;), a parity bit (16) (Parity Bit), a number of end bits (17) (St〇p Bit) combined, the transmitter (11) and The receiving end (12) is respectively provided with an Rs-232 interface (111) (121), and an RS-232 transmission line (18) is connected between the RS-232 interface (111) (121), and the string is set before the transmission. The transmission rate of the transmitting end (11) and the receiving end (12) of the column transmission (1〇) is the Baud Rate; when the transmitting end (11) starts transmitting the starting bit (14) The start bit (14) notifies the transmitting end (11) and the receiving end (12) to start the communication transmission, and the transmitting end 5 200813729 (the transmission line (18) sends the data bit (15), and at the same time The receiving end (12) generates a synchronization pulse to detect whether the data transmission process is correct, and performs an odd parity or even parity test by the parity bit (16) to prevent the error from being generated. The edge end bit (17) is notified to the transmitting end. (11) Ending the communication transmission with the receiving end (12); after the above analysis, it still has the following missing: ° First, the transmitting end (1) of the serial transmission (10) and the receiving end ((2), necessary before transmission First, the complicated parameter setting material is packaged into a package ((3), the transmission end (1)) and the connection (4) ((2) both sides _ setting the wrong section, the transmission end (1) will be communicated with the connection "(12) (four) New method - Therefore, the data of the serial transmission (10) communication transmission is bound to be incorrectly received. j. The RS-232 interface (1) 1) (121) is limited by the electrical characteristics, and is caused by changing the voltage of the line. According to the heart +, +15V electric soil hexadecimal number 〇", and low, ςν Φ} Μ Γ 1 ^ dV ~ ~ 15v voltage is expressed by the binary number 1", because the threshold between the threshold ^ Μ ^ ΤΓ 土 土 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋Reben. H's conversion', in order to increase the equipment, in order to be able to effectively solve the above-mentioned problems in the past, in the field of ϋ 倾 I I I 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作 创作Transmission method. 200813729 The main I s spoon of the present invention provides a data communication method transmitted by the invention system by means of the transmission end η. The number of pulse waves is: -== round (four) time converted into phase material at time The number of relative pulse waves is calculated within the range, and the receiving capital is limited to the transmission type, which depends on the parameter setting process, and then the length of the +, and the cumbersome and inter-processed steps are deleted. The secondary invention of the present invention adopts a single-level and voltage conversion, and the system provides a method for communication and transmission of materials. The source of the source is seven, and the heat needs to be converted to 1C for logic power to reduce the cost of the voltage conversion device. =: The other - the purpose is to provide a kind of data communication transmission method: this ^ BR ^, 1 m ^ m α Θ 汛 汛 汛 , , , , , , , , , , , , , , , , , ι ι ι ι ι ι ι ι ι ι ι ι ι ι ι Bessie is also purely wrong _, which in turn improves the reliability and correctness of the loss and achieves the best use. The techniques, means and formulas used are as follows: § 兄明如后'相相> [Lu Dang can get a deeper insight into the invention to achieve the above objectives," 4 force, from the enumeration of examples and drawings The purpose, features, and other advantages of the invention are disclosed. 200813729 Embodiments Please refer to FIG. 3 for a schematic diagram of the system of the present invention (please also refer to FIG. 4): The system used by the method mainly comprises a transmitting end (20), a receiving end (30), at least one packet (40) and a communication transmission (50); the transmitting end (20) provides data transmission, and the transmitting end ( 20) There is a counter (21), which converts the transmitted data into a relative number of pulses in a non-fixed time~, and performs data transmission to change the pulse transmission speed of the transmitting end (20). The length of the transmitted data may also change; the receiving end (30) provides data restoration, and the receiving end (30) is provided with a counter (31), which will receive the data at a non-fixed time. Relative pulse wave The amount of data is reduced. The transmitting end (20) and the receiving end (30) are powered by a single power supply. +Vcc stands for "1" state, and 0V stands for "0" state. It does not need to cooperate with conversion 1C to reduce the cost of low voltage conversion equipment. The packet (40) includes a parity bit inspection area (41), a transmission data area (42), and an error inspection area (43); the parity level inspection area (41) performs odd parity or even parity The inspection method prevents the occurrence of errors; the transmission data area (42) sets the data length according to the requirements; the error inspection area (43) collects environmental noise (such as electromagnetic waves), so that the error generated during the transmission is intercepted. In the error check area (43), it is ensured that 8 200813729 transmits the data area (42) correctly; the communication transmission (50) is respectively connected with the transmitting end (20) and the receiving end (30) 5 the communication transmission (5 0) For wireless transmission or wired transmission, the wireless transmission is Wi-Fi, Wi-Max, GSM/GPRS, RF or infrared, and the wired transmission is coaxial cable, twisted pair, power line or optical fiber; The figure shows a system representation of another embodiment of the present invention. In the figure, the transmitting end (20) is further provided with a timer (22), which cooperates with the counter (21) to convert the transmitted data into a relative pulse wave amount for a fixed time to perform data transmission; the receiving end (30) Further, a timer (32) is provided, and the timer (32) cooperates with the counter (31) to calculate the relative pulse number in a fixed time by the counter (31), and the material is retracted, as described above. An overview of the location of the related components and their construction used in the implementation of the method of the present invention. In order to clarify the data communication transmission method of the present invention, please refer to the following description. Please refer to FIG. 6 for the method diagram of the method of the present invention: A. Transmitting terminal step: the data is transmitted to the transmitting end (20) for encapsulation ( 4 0) 'The packet (40) is first divided into a parity check area (41), a transfer data area (42), and an error check area (43). The data is the least significant bit LSB (Least Significant Bit). The corresponding error input area (43) needs to be set to " 1", the parity bit inspection area (41) is input from the bm~bn data according to the application of the odd-synchronous or even-same design value to the 当时, that is, the preliminary setting of the packet is completed. 资料. The data is converted into a pulse wave step: the packet ( 40) The transmission data area (42) is converted into a decimal value, which is converted into a relative pulse wave quantity by the counter (21) of the transmitting end (10) in a non-fixed time, and then transmits the pulse wave by using the communication transmission (50). ; C. Pulse wave into data steps: After the receiving end (10) receives the pulse wave via the communication transmission (10), the pulse wave is cried by the receiving end (10). (5) Calculate the relative pulse in the non-fixed time, and the mis-inspection area (43) enters the scorpion once.贤 错误 错误 , , , , 健 健 健 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免 避免)-1)~ - (2 ―1) The error within the quantity, the magnetic only time " bit check area (6) the correctness of the first material transmission 'the error in the same process; 丨-L false detection, prevention Pass the D · data restoration step · · Recall the transmission data area (10) of the package (10) after the number of pulse waves, the seal operation. , is the original 'that completes a transmission 200813729. By the above data communication transmission method, the present invention converts the transmission data into a relative pulse wave quantity by a counter (21) of the transmitting end (20) in a non-fixed time. The data transmission, and the counter (31) of the receiving end (3) calculate the relative pulse wave amount in the non-solid time of the received data, and perform data restoration: no need to be limited by the transport wheel format, and cumbersome parameter setting In addition, the port (2〇) and the receiving end (others) of the present invention are powered by a single power supply, and the conversion of the logic level and the battery is performed without the conversion of the IG, and the cost of the P-low voltage conversion device is further reduced. And the present invention utilizes the parity check area (6) to prevent (4) error generation, and the error check = (4)) collecting environmental noise, providing the transmission data area (10) double data error detection & liter (4) transmission Reliability and correctness, use status. The invention described in 仗, ', τ is a method for transmitting (4) and connecting (four) transmissions of the data to the transmission terminal of the Tai, ^, and the number of the pulse waves entering the non-嶋 side, the bait material is transmitted, and the Counting at the receiving end?: Calculating the relative number of pulses in a non-fixed time '^^^ The original m is limited to the transmission format, and the number of trichomes is the same as the step of 'Billing the package again'. Check the area 'provide the dual data of the transmission data area = check area and error detection Bell 卄 1 曰 ♦ detection, enhance the data transmission 200813729: the money and correctness, the best to make the green state; so the invention = "The industry can be miscellaneous" has been obvious, and the characteristic technology of the implementation of this case has not been seen in various publications and media, and has not been publicly used, "more indispensable additional effects", so the novelty of the present invention 』 and "progressive" have been in compliance with patent laws and regulations, and have filed an application for invention patents in accordance with the law, praying for review and granting patents as soon as possible. 12 200813729 [Simple description of the diagram] Figure 1 is a schematic diagram of the system used. Figure 2 is a schematic diagram of the packet used. Fig. 3 is a schematic view of a system of the present invention. Fig. 4 is a schematic view of a package of the present invention. Fig. 5 is a system diagram showing another embodiment of the present invention. Figure 6 is a diagram of the method of the present invention. [Description of main component symbols] "Use" (10) Serial transmission (11) Transmitter (111) RS-232 interface (12) Receiver (121) RS-232 interface (13) Packet (14) Start Bit (15) Data Bit (16) Same Bit (17) End Bit (18) RS-232 Transmission Line "Invention" (20) Transmitter (21) Counter ( 22) Timer (30) Receiver (31) Counter (32) Timer (40) Packet (41) Same bit check area 13 200813729 (42) (50) Transmission poor area (43) Communication transmission error check area 14