CN103107864A - Double-bit-check coding and decoding method - Google Patents
Double-bit-check coding and decoding method Download PDFInfo
- Publication number
- CN103107864A CN103107864A CN 201310054000 CN201310054000A CN103107864A CN 103107864 A CN103107864 A CN 103107864A CN 201310054000 CN201310054000 CN 201310054000 CN 201310054000 A CN201310054000 A CN 201310054000A CN 103107864 A CN103107864 A CN 103107864A
- Authority
- CN
- China
- Prior art keywords
- data
- former data
- decoding
- bit
- check
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The invention provides a double-bit-check coding and decoding method, can detect source data error generated due to interference, and effectively guarantees the correct transmission of data so as to solve the error code problem in data transmission with low cost. The method comprises a coding process, a decoding process and a checking process. In the coding process, when a frame of raw data is received, bit by bit logic negation is carried out to each data bit of the frame, the logic negations of the obtained raw data bits are the check bits of raw data bits, and coding is carried out to the raw data by adopting the mode of inserting each check bit of the raw data bits behind each data bit of the frame data. In the decoding process, decoding is carried out to receive coded data, and decoded raw data bits and decoded check data bits are respectively obtained. In the checking process, whether the decoding check bits are the logic negations of decoded raw data is judged, and when the decoding check bits are the logic negations of decoded raw data, the raw data are judged to be correctly transmitted.
Description
Technical field
The present invention relates to a kind of method that guarantees the correct transmission of data, the parity check method of particularly decoding for the dibit encoding of communications.
Background technology
Generally speaking, existing former code and decode mode is thought: as long as guarantee to adopt identical coded system aspect these four of the codings of the coding of coding, result set at the coding that connect to use, database and database server, just Confused-code can not occur.But in the process of the actual transmissions that realizes agreement, metadata element is easy to be subject to the interference of external environment, and causes loss of data or make mistakes.In order to solve the problem of makeing mistakes of data, at present based on former protocols having, adopt the monitoring transmission bearer whether normal, and extend as required the transmission time of data, reduce the error rate of transmission.And, requiring the crucial occasion of error-free transmission, also can carry out the mode that Dual-path backup transmits by two groups of very high equipment of use cost, thus, although can realize the requirement that accuracy is high, the high problem of cost compare that causes the one-level transmission and receive.Therefore, there is the demand of carrying out the high transfer of data of accuracy with lower-cost plain mode.
Summary of the invention
The present invention completes in view of the above problems, and its purpose is to provide a kind of simple and easy method that effectively guarantees the correct transmission of data, can detect the source data mistake that produces because of interference, with the error code problem in low cost solution transfer of data.
The Code And Decode method of the dibit verification that the present invention relates to is characterized in that, comprising:
Coding step, when the former data of frame that receive, each data bit to this frame is carried out inverse by turn, the non-of the former data bit of gained is namely the check digit of this former data bit, employing is inserted the mode of its check digit above-mentioned former data is encoded after each data bit of above-mentioned former data, the later Data-Link of namely encoding is the former data check of former data bit 1 position 1, the former data check of former data bit 2 position 2 ... the serial data form of the former data check of former data bit n position n is encoded to described former data thus;
Decoding step is decoded to the coded data of having carried out that receives, and the former data bit that obtains respectively decoding is conciliate the code check data bit; With
Checking procedure, whether judgement decoding check digit is the non-of the former data bit of decoding, when both consistent, be judged as above-mentioned former data and correctly transmitted.
Code And Decode method according to the dibit verification that the present invention relates to, wherein, in described checking procedure, that the position is carried out in the former data bit of described decoding and described decoding checking data position and computing, when this operation result is not 0, be judged as the former data of described decoding and described former data consistent, when this operation result is 0, be judged as the former data of described decoding and described former data are inconsistent.
Code And Decode method according to the dibit verification that the present invention relates to, wherein, in described checking procedure, because the former data bit of described decoding and described decoding checking data position are one to one, it is the figure place of coded data and for even number, during when the figure place that described coded data detected with for odd number, be judged as described former data and correctly do not transmitted.
According to the Code And Decode method of the dibit verification that the present invention relates to, wherein, also comprise the check errors retransmission steps, when in described checking procedure, after judging that the described former data of frame are not correctly transmitted, require to retransmit the former data of described this frame.
The invention effect
According to the Code And Decode method of the dibit verification that the present invention relates to, provide to detect the mistake that source data produces because of interference, thereby solved at low cost the method for the correct transmission of assurance data of the error code problem in transfer of data.
Description of drawings
Fig. 1 is the flow chart for the Code And Decode method that the dibit verification that the present invention relates to is described.
Description of reference numerals:
1-data input step; 2-dibit encoding step; The 3-data transmission step; 4-dibit decoding step; 5-check errors retransmission steps; (whether former data correct for the 6-checking procedure?); 7-data output step.
Embodiment
Below, with reference to accompanying drawing, the execution mode of the Code And Decode method of the dibit verification that the present invention relates to is elaborated.
Fig. 1 is the flow chart for the Code And Decode method that the dibit verification that the present invention relates to is described.The Code And Decode method of the dibit verification that the present invention relates to as shown in Figure 1, comprises following steps: data input step 1, dibit encoding step 2, data transmission step 3, dibit decoding step 4, check errors retransmission steps 5, checking procedure 6 and data output step 7.
At first, in data input step 1, receive former data by the sending part with encoding function, in dibit encoding step 2, this sending part carries out dibit encoding according to the coding method of the dibit verification in present embodiment to the former data that receive.Then, this sending part is in data transmission step 3, to carry out the data after the dibit encoding and be sent to predefined target acceptance division, this target acceptance division is after receiving data, according to the dibit coding/decoding method of setting in present embodiment, the data of coming from the sending part transmission are carried out dibit decoding (dibit decoding step 4).Further, decoded data are carried out verification (checking procedure 6), and according to the result that judges in checking procedure, transfer to respectively check errors retransmission steps 5 and data output step 7.Particularly, mistake appears if the result of verification is former data, send the data re-transmitting instruction to the sending part that sends these data, after this sending part received above-mentioned data re-transmitting instruction, coded data resend (check errors retransmission steps 5).Mistake do not occur if the result of verification is former data, will by the dibit resulting former data of decoding, output to predefined terminal (data output step 7).
In the present embodiment, can former data be weaved into the dibit code through adding the position by software mode or hardware mode, in addition, when being appearred in former data, mistake need to be illustrated to the error message that sending part sends, the present invention does not do restriction to concrete mode, meets dibit code described above as long as can access.Former data select the arbitrary mode in time-division, frequency division, code minute to be processed into the frame structure of standard transmission by characteristics, so that encode, transmit, read, judge, decode, be reduced into former data.
The present invention is realizing than being easier to aspect coding and decoding and transmission by adopting the mode that increases by 1 error detecting code on the basis of former data.Thereby, solved former data in direct transmitting procedure, disturb the problem that forms error code and can't screen, judge, remove due to factors such as external electromagnetic.Compared with prior art, the present invention has simply, low-cost, high efficiency advantage, and can guarantee that the former data of transmitting can not make a mistake.
Claims (4)
1. the Code And Decode method of a dibit verification, is characterized in that, comprises
Coding step, when the former data of frame that receive, each data bit to this frame is carried out inverse by turn, the non-of the former data bit of gained is namely the check digit of this former data bit, employing is inserted the mode of its check digit above-mentioned former data is encoded after each data bit of above-mentioned former data, the later Data-Link of namely encoding is the former data check of former data bit 1 position 1, the former data check of former data bit 2 position 2 ... the serial data form of the former data check of former data bit n position n is encoded to described former data thus;
Decoding step is decoded to the coded data of having carried out that receives, and the former data bit that obtains respectively decoding is conciliate the code check data bit; With
Checking procedure, whether judgement decoding check digit is the non-of the former data bit of decoding, when both consistent, be judged as above-mentioned former data and correctly transmitted.
2. the Code And Decode method of dibit verification as claimed in claim 1 is characterized in that::
In described checking procedure, that the position is carried out in the former data bit of described decoding and described decoding checking data position and computing, when this operation result is not 0, be judged as the former data of described decoding and described former data consistent, when this operation result is 0, be judged as the former data of described decoding and described former data are inconsistent.
3. the Code And Decode method of dibit verification as claimed in claim 1 or 2 is characterized in that:
In described checking procedure, because the former data bit of described decoding and described decoding checking data position are one to one, be the figure place of coded data and for even number, during when the figure place that described coded data detected with for odd number, be judged as described former data and correctly do not transmitted.
4. the Code And Decode method of dibit verification as claimed in claim 2 or claim 3 is characterized in that::
Also comprise the check errors retransmission steps, when in described checking procedure, after judging that the described former data of frame are not correctly transmitted, require to retransmit the former data of described this frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201310054000 CN103107864A (en) | 2013-02-20 | 2013-02-20 | Double-bit-check coding and decoding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201310054000 CN103107864A (en) | 2013-02-20 | 2013-02-20 | Double-bit-check coding and decoding method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103107864A true CN103107864A (en) | 2013-05-15 |
Family
ID=48315456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201310054000 Pending CN103107864A (en) | 2013-02-20 | 2013-02-20 | Double-bit-check coding and decoding method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103107864A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106448128A (en) * | 2016-10-26 | 2017-02-22 | 青岛海信电器股份有限公司 | Processing method and system of infrared remote control data |
-
2013
- 2013-02-20 CN CN 201310054000 patent/CN103107864A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106448128A (en) * | 2016-10-26 | 2017-02-22 | 青岛海信电器股份有限公司 | Processing method and system of infrared remote control data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107733558B (en) | HARQ-ACK feedback method and device for hybrid automatic repeat request acknowledgement | |
US10631179B2 (en) | HARQ frame data structure and method of transmitting and receiving with HARQ in systems using blind detection | |
TW201624954A (en) | Method and apparatus for terminating repetition of data packet transmission | |
CN103973402A (en) | Data transmitting method, data receiving method and equipment | |
JP2018501706A5 (en) | ||
WO2018196875A1 (en) | Data processing method and data processing apparatus | |
CN103229444A (en) | Coding/decoding method, device and system | |
WO2018040879A1 (en) | Password keyboard usb communication anomaly recovery method and system | |
CN106372026B (en) | link detection method and receiving equipment | |
WO2017011980A1 (en) | Information sending method and apparatus, and information receiving method and apparatus | |
CN102405613B (en) | Methods and apparatus to use window alignment information to process acknowledgment information associated with transmitted data blocks | |
US9301162B2 (en) | Method, base station and system for managing resources | |
CN102427398A (en) | Error detection and correction method, system and device based on two-way parity check | |
CN103107864A (en) | Double-bit-check coding and decoding method | |
CN101427496A (en) | Setting transmission length based on estimated error rate | |
CN104753654A (en) | HARQ feedback information coding and decoding method, device and system | |
US10554334B2 (en) | Nominally unguaranteed error-detection codes for sub-data packets | |
CN115361236A (en) | Data transmission consistency checking method, device, equipment and medium | |
RU2450466C1 (en) | Method of transmitting information over communication channels and system for realising said method | |
US6393595B1 (en) | Method of communication with improved acknowledgement of reception | |
CN108809529B (en) | Data transmission method, terminal and base station | |
WO2018202029A1 (en) | Method and apparatus for sending code block group | |
CN111917510B (en) | Data processing method, data processing indicating method, terminal and network equipment | |
CN111614601B (en) | Method, device and system for realizing information transmission | |
WO2016138651A1 (en) | Method and apparatus for setting coverage level of ue |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130515 |