KR100328823B1 - Confidence enhancing method of data at the serial communication - Google Patents
Confidence enhancing method of data at the serial communication Download PDFInfo
- Publication number
- KR100328823B1 KR100328823B1 KR1019990027056A KR19990027056A KR100328823B1 KR 100328823 B1 KR100328823 B1 KR 100328823B1 KR 1019990027056 A KR1019990027056 A KR 1019990027056A KR 19990027056 A KR19990027056 A KR 19990027056A KR 100328823 B1 KR100328823 B1 KR 100328823B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- bit
- transmitted
- determining whether
- value
- Prior art date
Links
- 238000000034 method Methods 0.000 title abstract description 18
- 238000004891 communication Methods 0.000 title description 7
- 230000002708 enhancing effect Effects 0.000 title 1
- 230000005540 biological transmission Effects 0.000 claims abstract description 12
- 238000010586 diagram Methods 0.000 description 5
- 230000007704 transition Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24D—DOMESTIC- OR SPACE-HEATING SYSTEMS, e.g. CENTRAL HEATING SYSTEMS; DOMESTIC HOT-WATER SUPPLY SYSTEMS; ELEMENTS OR COMPONENTS THEREFOR
- F24D19/00—Details
- F24D19/10—Arrangement or mounting of control or safety devices
- F24D19/1006—Arrangement or mounting of control or safety devices for water heating systems
- F24D19/1009—Arrangement or mounting of control or safety devices for water heating systems for central heating
- F24D19/1015—Arrangement or mounting of control or safety devices for water heating systems for central heating using a valve or valves
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F16—ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
- F16K—VALVES; TAPS; COCKS; ACTUATING-FLOATS; DEVICES FOR VENTING OR AERATING
- F16K31/00—Actuating devices; Operating means; Releasing devices
- F16K31/02—Actuating devices; Operating means; Releasing devices electric; magnetic
- F16K31/04—Actuating devices; Operating means; Releasing devices electric; magnetic using a motor
- F16K31/047—Actuating devices; Operating means; Releasing devices electric; magnetic using a motor characterised by mechanical means between the motor and the valve, e.g. lost motion means reducing backlash, clutches, brakes or return means
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24H—FLUID HEATERS, e.g. WATER OR AIR HEATERS, HAVING HEAT-GENERATING MEANS, e.g. HEAT PUMPS, IN GENERAL
- F24H9/00—Details
- F24H9/20—Arrangement or mounting of control or safety devices
- F24H9/2007—Arrangement or mounting of control or safety devices for water heaters
Abstract
본 발명은 NRZI 방식으로 엔코딩(encoding)된 데이터에 있어서, '1' 또는 '0'비트 데이터가 소정수 이상 연속적으로 포함되어 있을 경우, 임의로 '0' 또는 '1'을 첨가시킴으로써, 전송도중 데이터의 오류여부를 검출할 수 있도록 하는 데이터의 신뢰성 향상방법에 관한 것으로, 비트 카운터를 '0'으로 초기화시키는 제1단계와; 전송할 데이터 비트를 인출하는 제2단계와; 상기 인출된 데이터 비트가 이전에 전송한 비트의 값과 같은지를 판단하는 제3단계와; 만약, 이전에 전송한 비트의 값과 지금 전송할 비트의 값이 다르면 다음 데이터 비트를 인출하고, 같으면 비트 카운트하는 제4단계와; 상기 카운트된 비트 카운터의 값이 모두 여섯 개인지를 판단하는 제5단계와; 같은 비트가 여섯 개가 전송되지 않았으면 계속 전송할 데이터를 인출하고, 여섯 개가 모두 카운트되었으면 다음에 인출되는 비트가 '1'인지 '0'인지를 판단하는 제6단계와; 다음, 인출되는 데이터 비트가 '1'이면 '0'을 삽입하고, '0'이면 '1'을 삽입한 후 다시 비트 카운터를 '0'으로 초기화시키는 제7단계와; 데이터의 전송이 완료될 때까지 상기 모든 과정을 반복하는 제8단계로 이루어져 달성될 수 있다.According to the present invention, when '1' or '0' bit data is continuously included in a predetermined number or more in data encoded by the NRZI method, '0' or '1' is arbitrarily added to the data during transmission. A method for improving the reliability of data to detect whether an error of the present invention is detected, the method comprising: a first step of initializing a bit counter to '0'; Retrieving data bits to be transmitted; Determining whether the retrieved data bit is equal to a value of a previously transmitted bit; A fourth step of fetching the next data bit if the value of the previously transmitted bit is different from the value of the bit to be transmitted now; A fifth step of determining whether all of the counted bit counters have six values; A sixth step of continuously fetching data to be transmitted if six identical bits are not transmitted, and determining whether the next fetched bit is '1' or '0' if all six are counted; A seventh step of inserting '0' if the extracted data bit is '1'; It can be achieved by the eighth step of repeating all the above process until the transmission of data is completed.
Description
본 발명은 직렬통신 시 데이터의 신뢰성 향상방법에 관한 것으로, 특히 직렬통신 시 비 제로 역 복귀기록(Non-Return to Zero Invert, 이하 'NRZI'라 약칭함) 방식으로 엔코딩(encoding)된 데이터에 있어서, '1' 또는 '0'비트 데이터가 소정수 이상 연속적으로 포함되어 있을 경우, 임의로 '0' 또는 '1'을 첨가시킴으로써, 전송도중 데이터의 오류여부를 검출할 수 있도록 하는 데이터의 신뢰성 향상방법에 관한 것이다.The present invention relates to a method for improving data reliability in serial communication. In particular, the present invention relates to data encoded in a non-return to zero invert (NRZI) method in serial communication. In the case where more than a predetermined number of '1' or '0' bit data are continuously included, '0' or '1' is arbitrarily added, thereby improving the reliability of the data so that it is possible to detect an error in the data during transmission. It is about.
도 1은 종래 두 장치간의 직렬 통신을 보인 예시도로서, 이에 도시된 바와 같이 장치 A와 장치 B가 서로 데이터를 주고받기 위해 도 2에 도시된 바와 같이 실제 데이터를 NRZI 방식으로 엔코딩을 하여 직렬라인을 통해 통신을 하는데, NRZI 방식은 실제 데이터가 '1'이면 직렬라인의 상태를 이전 상태로 유지하고, '0'이면 직렬라인의 상태를 이전과 반대로 트랜지션 시키는 방식으로서, 이를 첨부한 도 3 및 도 4를 참조하여 상세히 설명하면 다음과 같다.1 is an exemplary diagram showing serial communication between two conventional devices. As shown in FIG. 2, in order to exchange data between device A and device B, actual data is encoded in an NRZI method as shown in FIG. In the NRZI method, when the actual data is '1', the state of the serial line is maintained as the previous state, and if it is '0', the state of the serial line is transitioned to the opposite state as before. A detailed description with reference to FIG. 4 is as follows.
도 3은 종래 데이터를 NRZI 방식으로 엔코딩하는 순서를 보인 흐름도로서, 이에 도시된 바와 같이 유휴상태(IDLE, step 1) 중 데이터가 입력되면(step 2) 데이터 비트에 '0'이 첨가되어 있는가를 판단하고(step 3), 이 판단결과 첨가되어 있으면 데이터를 트랜지션시켜 출력하고(step 4), 첨가되어 있지 않으면 해당 데이터를 트랜지션시키지 않고 출력하고(step 5), 모든 데이터의 전송이 끝났는가를 판단하고(step 6), 이 판단결과에 따라 아직 모든 데이터의 전송이 이루어지지 않았으면 유휴상태또는 상기 단계(step 2)를 반복하여 수행한다.3 is a flowchart illustrating a procedure of encoding conventional data in an NRZI method. As shown in FIG. 3, when data is input during an idle state (IDLE, step 1) (step 2), it is determined whether '0' is added to a data bit. (Step 3), if the result of the determination is added, the data is transitioned and output (step 4), if not added, the data is output without transition (step 5), and it is judged whether all data transmission is completed ( Step 6) According to the determination result, if all data has not been transmitted yet, the idle state or step (step 2) is repeated.
예를 들어 도 4에서와 같이 실제 데이터에 연속해서 '1'이 6개가 있는 경우에는 직렬라인의 신뢰성을 향상시키기 위해 '0'을 첨가해 보내고, 받는 쪽에서는 상기 첨가된 '0'을 무시하도록 한다.For example, if there are six consecutive '1's in the actual data as shown in FIG. 4,' 0 'is added to improve the reliability of the serial line, and the receiving side ignores the added' 0 '. do.
반면에, 실제 데이터에 연속해서 '0'이 6개가 있는 경우에는 도 5에 도시된 바와 같이 오류 검출을 위한 별다른 조치없이 도3의 순서에 의해 단순 엔코딩하여 전송한다.On the other hand, if there are six '0's consecutively in the actual data, as shown in FIG. 5, the encoder encodes and transmits the signals in the order of FIG. 3 without any further action for error detection.
상기에서와 같이 종래의 기술에 있어서는 실제 데이터에 '1'이 연속해서 있을 경우 신뢰도를 높이기 위해 첨가되는 비트(예를 들어 '0')가 있지만 실제 데이터에 '0'이 연속해서 있을 경우에는 첨가하는 비트가 없기 때문에 전송도중 데이터의 오류에 의한 것인지 전송상태의 이상에 의한 것인지 구별할 수 없는 문제점이 있었다.As described above, in the conventional technology, when '1' is continuously present in real data, there is a bit (for example, '0') added to increase reliability, but when '0' is continuously in real data, it is added. Since there is no bit, there is a problem in that it is not possible to distinguish whether an error occurs due to an error in data during transmission or an abnormality in transmission status.
따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창안한 것으로, 실제 데이터에 '1'이 연속해서 있을 경우에는 종래와 동일하게 '0'을 첨가하고, 실제 데이터에 '0'이 연속해서 있을 경우에는 '1'을 첨가하도록 하여 전송도중 데이터의 오류여부를 검출할 수 있도록 한 방법을 제공함에 그 목적이 있다.Therefore, the present invention was devised to solve the above-mentioned conventional problems. When '1' is continuously present in real data, '0' is added as in the prior art, and '0' is continuous in real data. In this case, the object of the present invention is to provide a method for detecting an error of data during transmission by adding '1'.
도 1은 종래 두 장치간의 직렬 통신을 보인 예시도.1 is an exemplary view showing serial communication between two conventional devices.
도 2는 일반적인 NRZI 엔코딩 방식을 설명하기 위한 예시도.2 is an exemplary diagram for explaining a general NRZI encoding scheme.
도 3은 종래 데이터를 NRZI 방식으로 엔코딩하는 순서를 보인 흐름도.3 is a flowchart showing a procedure of encoding conventional data in an NRZI scheme.
도 4는 종래 연속된 '1'비트 데이터를 NRZI 엔코딩할 경우의 예시도.4 is an exemplary diagram when NRZI encoding conventionally contiguous '1' bit data.
도 5는 종래 연속된 '0'비트 데이터를 NRZI 엔코딩할 경우의 예시도.5 is an exemplary diagram when NRZI encoding conventionally continuous '0' bit data.
도 6은 본 발명에 의해 데이터의 신뢰성을 향상시키기 전송 데이터에 비트를 추가하기 위한 과정을 보인 순서도.Figure 6 is a flow chart illustrating a process for adding bits to transmitted data to improve data reliability in accordance with the present invention.
도 7은 본 발명에 의해 연속된 '0'비트 데이터를 NRZI 엔코딩할 경우의 예시도.7 is an exemplary diagram when NRZI encoding consecutive '0' bit data according to the present invention.
이와 같은 목적을 달성하기 위한 본 발명 직렬통신 시 데이터의 신뢰성 향상방법은 비트 카운터를 '0'으로 초기화시키는 제1단계와; 전송할 데이터 비트를 인출하는 제2단계와; 상기 인출된 데이터 비트가 이전에 전송한 비트의 값과 같은지를 판단하는 제3단계와; 만약, 이전에 전송한 비트의 값과 지금 전송할 비트의 값이 다르면다음 데이터 비트를 인출하고, 같으면 비트 카운트하는 제4단계와; 상기 카운트된 비트 카운터의 값이 모두 여섯 개인지를 판단하는 제5단계와; 같은 비트가 여섯 개가 전송되지 않았으면 계속 전송할 데이터를 인출하고, 여섯 개가 모두 카운트되었으면 다음에 인출되는 비트가 '1'인지 '0'인지를 판단하는 제6단계와; 다음, 인출되는 데이터 비트가 '1'이면 '0'을 삽입하고, '0'이면 '1'을 삽입한 후 다시 비트 카운터를 '0'으로 초기화시키는 제7단계와; 데이터의 전송이 완료될 때까지 상기 모든 과정을 반복하는 제8단계로 이루어진 것을 특징으로 한다.According to an aspect of the present invention, there is provided a method for improving reliability of data in serial communication, the method including: initializing a bit counter to '0'; Retrieving data bits to be transmitted; Determining whether the retrieved data bit is equal to a value of a previously transmitted bit; A fourth step of fetching the next data bit if the value of the previously transmitted bit is different from the value of the bit to be transmitted now; A fifth step of determining whether all of the counted bit counters have six values; A sixth step of continuously fetching data to be transmitted if six identical bits are not transmitted, and determining whether the next fetched bit is '1' or '0' if all six are counted; A seventh step of inserting '0' if the extracted data bit is '1'; An eighth step of repeating all the above steps until the transmission of data is completed.
이하, 본 발명에 따른 일실시예를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, an embodiment according to the present invention will be described in detail with reference to the accompanying drawings.
도6은 본 발명에 의해 데이터의 신뢰성을 향상시키기 전송 데이터에 비트를 추가하기 위한 과정을 보인 순서도로서, 이에 도시한 바와 같이 일단, 연속된 데이터 비트가 있는지를 검출하여 그 연속된 데이터 비트가 '0'또는 '1'의 연속된 데이터 인지를 검출하고, '0'일 경우에는 '1'을 삽입하고 '1'일 경우에는 '0'을 삽입하여 엔코딩하는 것으로 이를 좀 더 구체적으로 설명하면 다음과 같다.6 is a flowchart showing a process for adding bits to transmission data to improve data reliability according to the present invention. As shown in FIG. Detects whether it is continuous data of '0' or '1', and inserts '1' if '0' and inserts '0' if '1'. Is the same as
비트 카운터를 '0'으로 초기화시키는 제1단계(step1)와; 전송할 데이터 비트를 인출하는 제2단계(step2)와; 상기 인출된 데이터 비트가 이전에 전송한 비트의 값과 같은지를 판단하는 제3단계(step3)와; 만약, 이전에 전송한 비트의 값과 지금 전송할 비트의 값이 다르면 다음 데이터 비트를 인출하고(step2), 같으면 비트 카운트하는 제4단계(step4)와; 상기 카운트된 비트 카운터의 값이 모두 여섯 개인지를 판단하는 제5단계(step5)와; 같은 비트가 여섯 개가 전송되지 않았으면 계속 전송할 데이터를인출하고(step2), 여섯 개가 모두 카운트되었으면 다음에 인출되는 비트가 '1'인지 '0'인지를 판단하는 제6단계(step6)와; 다음, 인출되는 데이터 비트가 '1'이면 '0'을 삽입하고(step7), '0'이면 '1'을 삽입(step8)한 후 다시 비트 카운터를 '0'으로 초기화시키는 제7단계(step9)와; 데이터의 전송이 완료될 때까지 상기 모든 과정을 반복하는 제8단계(step10)로 이루어진다.A first step (step1) of initializing the bit counter to '0'; A second step of drawing out data bits to be transmitted; Determining whether the retrieved data bit is equal to a value of a previously transmitted bit (step3); A fourth step (step4) of fetching the next data bit if the value of the previously transmitted bit is different from the value of the bit to be transmitted now (step2), and if it is the same; A fifth step (step 5) of determining whether the values of the counted bit counters are all six; A sixth step (step6) of continuously fetching data to be transmitted if six identical bits have not been transmitted (step2) and determining whether the next fetched bit is '1' or '0' if all six are counted; Next, if the data bit being fetched is '1', '0' is inserted (step7); if '0', '1' is inserted (step8), and the bit counter is reset to '0' (step9). )Wow; An eighth step (step10) is repeated to repeat all the above steps until the data transmission is completed.
따라서, 도7에 도시한 바와 같이 실제 데이터(a)에 연속해서 6개의 '0'비트가 있을 경우, 이를 NRZI로 엔코딩하면 (b)와 같이 계속해서 트랜지션이 이루어지고, 6개의 '0'비트 다음에 '1'을 삽입하여 트랜지션없이 전의 상태를 그대로 유지한 후 다음 데이터를 엔코딩하게 된다.Therefore, as shown in FIG. 7, when there are six '0' bits consecutively in the actual data (a), encoding them in NRZI continuously makes the transition as shown in (b), and six '0' bits. Next, by inserting '1' to maintain the previous state without transition, the next data is encoded.
이상에서 설명한 바와 같이 본 발명 직렬통신 시 데이터의 신뢰성 향상방법은, 실제 데이터에 '1'이 연속해서 있을 경우에는 '0'을 첨가하고, 실제 데이터에 '0'이 연속해서 있을 경우에는 '1'을 첨가하여 엔코딩 함으로써, 전송도중 데이터의 오류여부를 검출할 수 있도록 하여 신뢰성을 향상시키는 효과가 있다.As described above, in the serial communication method of the present invention, '0' is added to real data if '1' is continuous, and if '0' is continuously to real data, '1' is used. By encoding with ', it is possible to detect an error of data during transmission, thereby improving reliability.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990027056A KR100328823B1 (en) | 1999-07-06 | 1999-07-06 | Confidence enhancing method of data at the serial communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990027056A KR100328823B1 (en) | 1999-07-06 | 1999-07-06 | Confidence enhancing method of data at the serial communication |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20010008952A KR20010008952A (en) | 2001-02-05 |
KR100328823B1 true KR100328823B1 (en) | 2002-03-14 |
Family
ID=19599631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019990027056A KR100328823B1 (en) | 1999-07-06 | 1999-07-06 | Confidence enhancing method of data at the serial communication |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100328823B1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63153930A (en) * | 1986-12-18 | 1988-06-27 | Hitachi Electronics Eng Co Ltd | Data converter |
JPH03232344A (en) * | 1990-02-08 | 1991-10-16 | Toshiba Corp | Same code continuity suppressing system |
US5602873A (en) * | 1994-10-14 | 1997-02-11 | International Business Machines Corporation | Flash NRZI infrared modem |
JPH09130368A (en) * | 1995-10-27 | 1997-05-16 | Mitsubishi Electric Corp | Data communication equipment |
KR19980054664A (en) * | 1996-12-27 | 1998-09-25 | 유기범 | Serial data transmission error detection device in transmission device |
-
1999
- 1999-07-06 KR KR1019990027056A patent/KR100328823B1/en not_active IP Right Cessation
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63153930A (en) * | 1986-12-18 | 1988-06-27 | Hitachi Electronics Eng Co Ltd | Data converter |
JPH03232344A (en) * | 1990-02-08 | 1991-10-16 | Toshiba Corp | Same code continuity suppressing system |
US5602873A (en) * | 1994-10-14 | 1997-02-11 | International Business Machines Corporation | Flash NRZI infrared modem |
JPH09130368A (en) * | 1995-10-27 | 1997-05-16 | Mitsubishi Electric Corp | Data communication equipment |
KR19980054664A (en) * | 1996-12-27 | 1998-09-25 | 유기범 | Serial data transmission error detection device in transmission device |
Also Published As
Publication number | Publication date |
---|---|
KR20010008952A (en) | 2001-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100545882C (en) | The self-adaptive decoding method that is used for wireless remote control receiving chip | |
CN104008078B (en) | Method for high-speed transmission between data transmission boards based on FPGA | |
JP5238369B2 (en) | Data receiving apparatus, data receiving method, and data receiving program | |
KR100328823B1 (en) | Confidence enhancing method of data at the serial communication | |
FI20010543A0 (en) | Method for determining the edge of an information element, system and electronic device | |
CN1130034C (en) | Lock detection for multipath wireless receiver | |
US7836224B2 (en) | Method and system for transmitting data of a data type to be transmitted cyclically and of a data type which can be transmitted acyclically via a common transmission channel | |
US4965883A (en) | Method and apparatus for transmitting and receiving characters using a balanced weight error correcting code | |
US4597081A (en) | Encoder interface with error detection and method therefor | |
WO2001099386A3 (en) | Bit error rate estimation | |
CN1310531A (en) | Error detection method for high speed data transmission | |
JPH0918461A (en) | Data receiver | |
US10585844B1 (en) | Reliable asynchronous baseband protocol with clock and data recovery by correlation | |
EP0740438A1 (en) | Method and apparatus for detecting cyclic code | |
JPS60213150A (en) | Code system | |
CN116032376B (en) | Optimizing method, device, medium and equipment for quantum communication system | |
JP2555582B2 (en) | CMI code error detection circuit | |
US7765353B2 (en) | Simple identification of low-level signals between circuit cards | |
CN112448863B (en) | Method for establishing local area network serial, baseboard management controller and system | |
KR100290426B1 (en) | Method for receiving of asynchronous serial data in paging transceiver | |
CN108614798A (en) | PCIe link elastic buffer zone circuit | |
KR100358353B1 (en) | Running disparity error detecting apparatus and method | |
CN113568850A (en) | Data transmission method and device, electronic equipment and storage medium | |
JPS60236532A (en) | Error detection system | |
JP2759607B2 (en) | Synchronous signal detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
N231 | Notification of change of applicant | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20050221 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |