CN104283640A - Method and device for calculating bit error rate of transmitted data - Google Patents

Method and device for calculating bit error rate of transmitted data Download PDF

Info

Publication number
CN104283640A
CN104283640A CN201410495670.5A CN201410495670A CN104283640A CN 104283640 A CN104283640 A CN 104283640A CN 201410495670 A CN201410495670 A CN 201410495670A CN 104283640 A CN104283640 A CN 104283640A
Authority
CN
China
Prior art keywords
data
packet
byte number
module
coding
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.)
Granted
Application number
CN201410495670.5A
Other languages
Chinese (zh)
Other versions
CN104283640B (en
Inventor
王丽丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial Equipment Co Ltd
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 Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Priority to CN201410495670.5A priority Critical patent/CN104283640B/en
Publication of CN104283640A publication Critical patent/CN104283640A/en
Application granted granted Critical
Publication of CN104283640B publication Critical patent/CN104283640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • H04L1/0046Code rate detection or code type detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention relates to the field of data transmission, in particular to a method and device for calculating the bit error rate of transmitted data. The method mainly comprises the steps of setting a data packet at the sending end, wherein the data packet comprises first packet header data, the code of the first data packet and first random data which are arranged in sequence; sending the data packet to the receiving end to be identified; extracting second random data if the first packet header data and the code of the first data packet are identified; comparing received data with the data at the sending end; calculating the correct number of bytes; obtaining the bit error rate. By identifying the first packet header data and the code of the first data packet, great errors generated during bit error rate calculation caused by bit losing during data transmission are avoided. By the adoption of the method, the bit error rate of transmitted data can be calculated more effectively.

Description

A kind of method and device calculating transmission error rates of data
Technical field
The present invention relates to field of data transmission, particularly relate to a kind of method and the device that calculate transmission error rates of data.
Background technology
In bluetooth data transmission, after setting up physical link, transceiving data, with test link stability, transfer of data correctness etc.Now transmit the mode that data can use former bag to return: data send, and the data received are returned after the other side receives again.The data received compare with the data sent by we: if identical, then send, to receive data all correct; If incorrect, then need to add up the error rate, with the relative reliability of assessment data transmission.And how the calculated data error rate is a problem.Because in a practical situation, may lose a part of data, also may be that mistake appears in some byte, so simply become infeasible by byte comparing data, be difficult to judge which part is lost, which part is wrong.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of method and the device that calculate transmission error rates of data, can calculate the error rate of transmission data, make the error rate of calculating gained more have reliability.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is:
Calculate a method for transmission error rates of data, comprising:
S11, transmitting terminal be provided with transmission data the first packet, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data; Described first packet is carried out storing and sending;
S12, receiving terminal receive the first packet that described step S11 sends as the second packet, identify the coding of described step S11 gained first header data and the first packet in described second packet received; If recognize the coding of the first header data and the first packet in described second packet, extract the second random data after the coding of the first packet in described second packet;
S13, the second packet of described step S12 gained and the first packet are carried out correct byte contrast, calculate correct byte number according to comparative result;
S14, calculate transmission error rates of data according to the correct byte number of described step S13 gained.
The another kind of technical scheme that the present invention adopts is:
Calculate a device for transmission error rates of data, comprising: transmitting terminal and receiving terminal;
Described transmitting terminal comprises first and arranges module, memory module and sending module;
Described first arranges module, and for being provided with the first packet of transmission data at transmitting terminal, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data;
Described memory module, for storing described first packet;
Described sending module, for sending described first packet;
Described receiving terminal comprises identification module, extraction module, comparison module and computing module;
Described identification module, for identifying the coding of described first header data and the first packet in described second packet received;
Described extraction module, if the coding for recognizing the first header data and the first packet in described second packet, extracts the second random data after the coding of the first packet in described second packet;
Described comparison module, for the first packet of the second packet of receiving terminal gained and the memory module of described transmitting terminal is carried out correct byte contrast, draws comparative result;
Described computing module, for calculating correct byte number according to the comparative result of comparison module gained, calculates transmission error rates of data according to the correct byte number of gained.
Beneficial effect of the present invention is: by transmitting terminal setting data bag, described packet comprises the first header data, the coding of the first packet and the first random data that are arranged in order, the coding of identification first header data and the first packet is carried out through being sent to receiving terminal, extract the second random data, again the data of the data received and transmitting terminal are contrasted, calculate correct byte number, finally draw the error rate.By identifying the coding of the first header data and the first packet, avoiding data when the situation of losing code appears in process of transmitting, causing error rate calculation to produce very big deviation.
Accompanying drawing explanation
Fig. 1 is a kind of flow chart calculating the method for transmission error rates of data of the specific embodiment of the invention;
Fig. 2 is a kind of structural representation calculating the device of transmission error rates of data of the specific embodiment of the invention;
Label declaration:
1, transmitting terminal; 10, first module is set; 11, memory module; 12, sending module; 2, receiving terminal; 20, identification module; 21, extraction module; 22, comparison module; 23, computing module.
Embodiment
By describing technology contents of the present invention in detail, realized object and effect, accompanying drawing is coordinated to be explained below in conjunction with execution mode.
The design of most critical of the present invention is: by identifying the coding of the first header data and the first packet, avoids data when the situation of losing code appears in process of transmitting, causes error rate calculation to produce very big deviation.
Please refer to Fig. 1, is a kind of flow chart calculating the method for transmission error rates of data of the specific embodiment of the invention, specific as follows:
Calculate a method for transmission error rates of data, comprising:
S11, transmitting terminal be provided with transmission data the first packet, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data; Described first packet is carried out storing and sending;
S12, receiving terminal receive the first packet that described step S11 sends as the second packet, identify the coding of described step S11 gained first header data and the first packet in described second packet received; If recognize the coding of the first header data and the first packet in described second packet, extract the second random data after the coding of the first packet in described second packet;
S13, the second packet of described step S12 gained and the first packet are carried out correct byte contrast, calculate correct byte number according to comparative result;
S14, calculate transmission error rates of data according to the correct byte number of described step S13 gained.
From foregoing description, beneficial effect of the present invention is: by transmitting terminal setting data bag, described packet comprises the first header data, the coding of the first packet and the first random data that are arranged in order, the coding of identification first header data and the first packet is carried out through being sent to receiving terminal, extract the second random data, again the data of the data received and transmitting terminal are contrasted, calculate correct byte number, finally draw the error rate.By identifying the coding of the first header data and the first packet, avoiding data when the situation of losing code appears in process of transmitting, causing error rate calculation to produce very big deviation.
Further, described step S11 specifically comprises: be provided with plural the first packet be arranged in order at transmitting terminal, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data;
Described first header data is the first data comprising fixing byte number and character;
Described plural first packet be encoded to the coding number consecutively that natural number 1 starts plural the first packet be arranged in order;
Described first random data is the random data of fixed word joint number;
The data of described plural the first packet be arranged in order are that natural number 1 starts number consecutively.
Seen from the above description, by the coding number consecutively to plural first packet, to the data number consecutively of plural the first packet be arranged in order, the mode by pointer displacement identifies successively.
Further, described coding, random data are not identical with described first data.
Seen from the above description, described first data are the first header data, represent the initial of a packet, if coding or random data identical with described first data, then can be mistaken as is the initial of another packet, therefore, easily causes and thinks it is error code by mistake.
Further, identify in described step S12 that the coding of the first header data and the first packet is specially:
S121, initial condition is set;
Described initial condition comprises: the packet of the coding of the data total bytes of plural second packet, the first header data, the first packet, data pointer, encoding indicators and maximum numbering;
The packet of described maximum numbering is calculate gained according to the data total bytes of the second packet and the packet of fixed word joint number;
S122, described step S121 gained initial condition is carried out initialization;
Described initialization comprises: described data pointer points to the data being numbered 1, and described encoding indicators points to the packet being numbered 1, and described total correct byte number resets;
S123, judge data pointer point to numbering whether be greater than data total bytes, if not, then enter step S124; If so, then step S126 is entered;
S124, judge that whether the data pointed by data pointer are equal with described first header data, if so, then enter step S125; If not, then data pointer adds 1, and described data pointer points to the data of next numbering, returns step S123;
S125, the data marked pointed by described data pointer are initial packet header, obtain the coding after the data pointed by described data pointer, judge that whether the coding got is equal with the coding of the packet pointed by described encoding indicators, if so, then enter step S128; If not, then data pointer adds 1, and described data pointer points to the data of next numbering, returns step S123;
S126, judge that whether coding pointed by described encoding indicators is the packet of maximum numbering, if so, then enter step S129; If not, then step S127 is entered;
S127, described data pointer is pointed to the position in the described initial packet header of step S125 gained, encoding indicators adds 1, and described encoding indicators points to the packet of next coding, and data pointer adds 1, described data pointer points to the data of next numbering, returns step S124;
S128, recognize the coding of the first header data and the first packet, extract the random data of the second fixed word joint number;
The total correct byte number of S129, statistics, calculates transmission error rates of data according to total correct byte number and data total bytes.
Seen from the above description, by identifying the coding of the first header data and the first packet, avoiding data when the situation of losing code appears in process of transmitting, causing error rate calculation to produce very big deviation.
Further, described step S13 is specially:
S131, described second packet is carried out positive sequence with the first packet stored at transmitting terminal compare one by one, be all correctly mutually with data, count the first correct byte number, described second packet is carried out backward with the first packet stored at transmitting terminal compare one by one, be all mutually correctly with data, count the second correct byte number;
S132, correct for described step S131 gained first byte number and the second correct byte number are contrasted, if the first correct byte number is more than or equal to the second correct byte number, then the first correct byte number is correct byte number; If the first correct byte number is less than the second correct byte number, then the second correct byte number is correct byte number;
S133, draw correct byte number according to described step S132.
Seen from the above description, compared by positive sequence and compare with backward, select the comparative result that correct byte number is many to be correct byte number, can effectively reduce the error rate of losing caused by code.
The another kind of the specific embodiment of the invention calculates the method for transmission error rates of data, specific as follows:
Be provided with the first packet at transmitting terminal, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data; Described first packet is carried out storing and sending;
Data configuration part is: be a packet with 10 bytes, and the first header data is the hexadecimal 0x02 of 1 byte number, the first packet be encoded to 2 byte numbers, the first random data is the random data of 7 byte numbers; If there is 0x02 in the coding of the first packet, then change 0x03 into; If there is 0x02 in random data, then change other random data into; Coding number consecutively from natural number 1 of the first packet.
Receiving terminal receives the second packet, identifies the coding of the first header data and the first packet in described second packet received; If recognize the coding of the first header data and the first packet in described second packet, extract the second random data after the coding of the first packet in described second packet;
Searching data packet portions is: traversal receiving terminal, searches from the first packet being encoded to 1; If be encoded to first packet of 1 described in finding, then from be encoded to 1 the first packet last byte after search the first packet being encoded to 2;
Such as: receiving data is 02 00 01 09 08 07 06 05 04 03,|02 00 03 08 08 08 08 08 06;
Have found 02 00 01 the first packets for being encoded to 1 from receiving the beginning of data, then from the data content (example | content above) of the first packet being encoded to 1, search the first packet being encoded to 2 backward, namely find 02 00 03 in example.
Finally do not find if traverse yet, then from finding the position of the first header data, search the first packet of next coding.
Such as: receiving data is 02 00,|02 00 03 08 08 08 08 08 06;
Have found 02 from the beginning receiving data, but and then do not find 00 01 (being 02 00 in example); So search next 02, and then still there is no 00 01 (being 00 03 in example), by that analogy, find and finally all do not find 02 00 01.So, the position just finding the first header data from the beginning starts (being exactly that the 1st byte receiving data starts here), searches the 2nd the first packet; Find 02 00 03, represent that the 2nd the first packet exists.By that analogy, until find the first packet of the maximum numbering of transmitting terminal, or travel through last first packet of reception area.
Identify that the first data packet portions is: first find the first character of the first packet to save 0x02 and be the first header data.Namely 2 bytes next encode, and determine whether the first packet pointed by encoding indicators according to coding.If confirm this first packet, then total correct byte number increases by 3; If not this bag, then again search the first header data from after the first header data a byte.
Second packet and the first packet are carried out correct byte contrast, calculates correct byte number according to comparative result;
The first packet searched and transmitting terminal rating unit are:
After finding the first packet, travel through 7 bytes backward.If run into 0x02 in 7 bytes, then this bag is by the end of the last byte of 0x02.
The random data of this first packet is carried out 2 times with the random data sending corresponding first packet in buffering area compare.Respectively: from positive sequence more once; If random data is less than 7 bytes, then from backward more once.Get 2 times relatively in, correct byte number mostly comparatively is result, then total correct byte number increases according to result.
Such as:
Random data 01 03 04 05 06 07 08 in transmitting terminal;
Random data 01 03 05 06 07 08 in receiving terminal;
Positive sequence compares, 2 bytes correct (01 03);
Backward compares, 4 bytes correct (05 06 07 08);
Because of 2>4, therefore think that the correct byte number of this random data is 4.
Transmission error rates of data is calculated according to correct byte number;
Error code word joint number equals to receive data total bytes and deducts total correct byte number, can calculate the error rate according to error code word joint number.
Referring to Fig. 2, is a kind of structural representation calculating the device of transmission error rates of data of the specific embodiment of the invention, specific as follows:
Calculate a device for transmission error rates of data, comprising: transmitting terminal 1 and receiving terminal 2;
Described transmitting terminal 1 comprises first and arranges module 10, memory module 11 and sending module 12;
Described first arranges module 10, and for being provided with the first packet of transmission data at transmitting terminal 1, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data;
Described memory module 11, for storing described first packet;
Described sending module 12, for sending described first packet;
Described receiving terminal 2 comprises identification module 20, extraction module 21, comparison module 22 and computing module 23;
Described identification module 20, receives the first packet of sending of sending module as the second packet for receiving terminal, identifies the coding of described first header data and the first packet in described second packet received;
Described extraction module 21, if the coding for recognizing the first header data and the first packet in described second packet, extracts the second random data after the coding of the first packet in described second packet;
Described comparison module 22, for the first packet of the second packet of receiving terminal 2 gained and the memory module of described transmitting terminal is carried out correct byte contrast, draws comparative result;
Described computing module 23, for calculating correct byte number according to the comparative result of comparison module 22 gained, calculates transmission error rates of data according to the correct byte number of gained.
Beneficial effect of the present invention is: by transmitting terminal setting data bag, described packet comprises the first header data, the coding of the first packet and the first random data that are arranged in order, the coding of identification first header data and the first packet is carried out through being sent to receiving terminal, extract the second random data, again the data of the data received and transmitting terminal are contrasted, calculate correct byte number, finally draw the error rate.By identifying the coding of the first header data and the first packet, avoiding data when the situation of losing code appears in process of transmitting, causing error rate calculation to produce very big deviation.
Further, described transmitting terminal 1 also comprises the first numbering module and the second numbering module;
Described first numbering module, for the coding number consecutively from natural number 1 to plural the first packet be arranged in order;
Described second numbering module, for the data number consecutively from natural number 1 to plural the first packet be arranged in order.
Seen from the above description, by the coding number consecutively to plural first packet, to the data number consecutively of plural the first packet be arranged in order, the mode by pointer displacement identifies successively.
Further, described transmitting terminal 1 also comprises random data generation module, for generating the first random data of the second fixed word joint number.
Further, described receiving terminal 2 also comprises second and arranges module, initialization module, the first judge module, the second judge module, mark module, the 3rd judge module and the 4th judge module;
Described second arranges module, for arranging initial condition; Described initial condition comprises: the packet of the coding of the data total bytes of plural second packet, the first header data, the first packet, data pointer, encoding indicators and maximum numbering; The packet of described maximum numbering is calculate gained according to the data total bytes of the second packet and the packet of fixed word joint number;
Described initialization module, for carrying out initialization by initial condition; Described initialization comprises: described data pointer points to the data being numbered 1, and described encoding indicators points to the packet being numbered 1, and described total correct byte number resets;
Described first judge module, for judging that data pointer points to numbering and whether is greater than data total bytes;
Whether described second judge module is equal with described first header data for judging the data pointed by data pointer;
Described mark module, is initial packet header for the data marked pointed by described data pointer, obtains the coding after the data pointed by described data pointer;
Whether described 3rd judge module is equal with the coding of the packet pointed by described encoding indicators for judging the coding got;
Described 4th judge module, for judging that whether coding pointed by described encoding indicators is the packet of maximum numbering.
Seen from the above description, by identifying the coding of the first header data and the first packet, avoiding data when the situation of losing code appears in process of transmitting, causing error rate calculation to produce very big deviation.
Further, described comparison module comprises positive sequence comparing unit, backward comparing unit and correct byte number comparing unit;
Described positive sequence comparing unit, compares one by one for described second packet is carried out positive sequence with the first packet stored at transmitting terminal, is all mutually correctly with data, counts the first correct byte number;
Described backward comparing unit, compares one by one for described second packet is carried out backward with the first packet stored at transmitting terminal, is all mutually correctly with data, counts the second correct byte number;
Described correct byte number comparing unit, for correct for positive sequence comparing unit gained first byte number and the correct byte number of backward comparing unit gained second being contrasted, draws correct byte number;
If the first correct byte number is more than or equal to the second correct byte number, then the first correct byte number is correct byte number; If the first correct byte number is less than the second correct byte number, then the second correct byte number is correct byte number.
Seen from the above description, compared by positive sequence and compare with backward, select the comparative result that correct byte number is many to be correct byte number, can effectively reduce the error rate of losing caused by code.
In sum, a kind of method and device calculating transmission error rates of data provided by the invention, by at transmitting terminal setting data bag, described packet comprises the first header data, the coding of the first packet and the first random data that are arranged in order, carrying out the coding of identification first header data and the first packet through being sent to receiving terminal, extracting the second random data, then the data of the data received and transmitting terminal are contrasted, calculate correct byte number, finally draw the error rate.By identifying the coding of the first header data and the first packet, avoiding data when the situation of losing code appears in process of transmitting, causing error rate calculation to produce very big deviation.By the coding number consecutively to plural first packet, to the data number consecutively of plural the first packet be arranged in order, the mode by pointer displacement identifies successively.Described first data are the first header data, represent the initial of a packet, if coding or random data identical with described first data, then can be mistaken as is the initial of another packet, therefore, easily causes and thinks it is error code by mistake.Compared by positive sequence and compare with backward, select the comparative result that correct byte number is many to be correct byte number, can effectively reduce the error rate of losing caused by code.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalents utilizing specification of the present invention and accompanying drawing content to do, or be directly or indirectly used in relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. calculate a method for transmission error rates of data, it is characterized in that, comprising:
S11, transmitting terminal be provided with transmission data the first packet, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data; Described first packet is carried out storing and sending;
S12, receiving terminal receive the first packet that described step S11 sends as the second packet, identify the coding of described step S11 gained first header data and the first packet in described second packet received; If recognize the coding of the first header data and the first packet in described second packet, extract the second random data after the coding of the first packet in described second packet;
S13, the second packet of described step S12 gained and the first packet are carried out correct byte contrast, calculate correct byte number according to comparative result;
S14, calculate transmission error rates of data according to the correct byte number of described step S13 gained.
2. the method calculating transmission error rates of data according to claim 1, it is characterized in that, described step S11 specifically comprises: be provided with plural the first packet be arranged in order at transmitting terminal, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data;
Described first header data is the first data comprising fixing byte number and character;
Described plural first packet be encoded to the coding number consecutively that natural number 1 starts plural the first packet be arranged in order;
Described first random data is the random data of fixed word joint number;
The data of described plural the first packet be arranged in order are that natural number 1 starts number consecutively.
3. the method calculating transmission error rates of data according to claim 2, it is characterized in that, described coding, random data are not identical with described first data.
4. the method for the calculating transmission error rates of data according to claim 1-3 any one, is characterized in that, identify that the coding of the first header data and the first packet is specially in described step S12:
S121, initial condition is set;
Described initial condition comprises: the packet of the coding of the data total bytes of plural second packet, the first header data, the first packet, data pointer, encoding indicators and maximum numbering;
The packet of described maximum numbering is calculate gained according to the data total bytes of the second packet and the packet of fixed word joint number;
S122, described step S121 gained initial condition is carried out initialization;
Described initialization comprises: described data pointer points to the data being numbered 1, and described encoding indicators points to the packet being numbered 1, and described total correct byte number resets;
S123, judge data pointer point to numbering whether be greater than data total bytes, if not, then enter step S124; If so, then step S126 is entered;
S124, judge that whether the data pointed by data pointer are equal with described first header data, if so, then enter step S125; If not, then data pointer adds 1, and described data pointer points to the data of next numbering, returns step S123;
S125, the data marked pointed by described data pointer are initial packet header, obtain the coding after the data pointed by described data pointer, judge that whether the coding got is equal with the coding of the packet pointed by described encoding indicators, if so, then enter step S128; If not, then data pointer adds 1, and described data pointer points to the data of next numbering, returns step S123;
S126, judge that whether coding pointed by described encoding indicators is the packet of maximum numbering, if so, then enter step S129; If not, then step S127 is entered;
S127, described data pointer is pointed to the position in the described initial packet header of step S125 gained, encoding indicators adds 1, and described encoding indicators points to the packet of next coding, and data pointer adds 1, described data pointer points to the data of next numbering, returns step S124;
S128, recognize the coding of the first header data and the first packet, extract the random data of the second fixed word joint number;
The total correct byte number of S129, statistics, calculates transmission error rates of data according to total correct byte number and data total bytes.
5. the method calculating transmission error rates of data according to claim 4, it is characterized in that, described step S13 is specially:
S131, described second packet is carried out positive sequence with the first packet stored at transmitting terminal compare one by one, be all correctly mutually with data, count the first correct byte number, described second packet is carried out backward with the first packet stored at transmitting terminal compare one by one, be all mutually correctly with data, count the second correct byte number;
S132, correct for described step S131 gained first byte number and the second correct byte number are contrasted, if the first correct byte number is more than or equal to the second correct byte number, then the first correct byte number is correct byte number; If the first correct byte number is less than the second correct byte number, then the second correct byte number is correct byte number;
S133, draw correct byte number according to described step S132.
6. calculate a device for transmission error rates of data, it is characterized in that, comprising: transmitting terminal and receiving terminal;
Described transmitting terminal comprises first and arranges module, memory module and sending module;
Described first arranges module, and for being provided with the first packet of transmission data at transmitting terminal, described first packet comprises: the first header data be arranged in order, the coding of the first packet and the first random data;
Described memory module, for storing described first packet;
Described sending module, for sending described first packet;
Described receiving terminal comprises identification module, extraction module, comparison module and computing module;
Described identification module, receives the first packet of sending of sending module as the second packet for receiving terminal, identifies the coding of described first header data and the first packet in described second packet received; Described extraction module, if the coding for recognizing the first header data and the first packet in described second packet, extracts the second random data after the coding of the first packet in described second packet;
Described comparison module, for the first packet of the second packet of receiving terminal gained and the memory module of described transmitting terminal is carried out correct byte contrast, draws comparative result;
Described computing module, for calculating correct byte number according to the comparative result of comparison module gained, calculates transmission error rates of data according to the correct byte number of gained.
7. the device calculating transmission error rates of data according to claim 6, it is characterized in that, described transmitting terminal also comprises the first numbering module and the second numbering module;
Described first numbering module, for the coding number consecutively from natural number 1 to plural the first packet be arranged in order;
Described second numbering module, for the data number consecutively from natural number 1 to plural the first packet be arranged in order.
8. the device calculating transmission error rates of data according to claim 6, it is characterized in that, described transmitting terminal also comprises random data generation module, for generating the first random data of the second fixed word joint number.
9. the device calculating transmission error rates of data according to claim 6, it is characterized in that, described receiving terminal also comprises second and arranges module, initialization module, the first judge module, the second judge module, mark module, the 3rd judge module and the 4th judge module;
Described second arranges module, for arranging initial condition; Described initial condition comprises: the packet of the coding of the data total bytes of plural second packet, the first header data, the first packet, data pointer, encoding indicators and maximum numbering; The packet of described maximum numbering is calculate gained according to the data total bytes of the second packet and the packet of fixed word joint number;
Described initialization module, for carrying out initialization by initial condition; Described initialization comprises: described data pointer points to the data being numbered 1, and described encoding indicators points to the packet being numbered 1, and described total correct byte number resets;
Described first judge module, for judging that data pointer points to numbering and whether is greater than data total bytes;
Whether described second judge module is equal with described first header data for judging the data pointed by data pointer;
Described mark module, is initial packet header for the data marked pointed by described data pointer, obtains the coding after the data pointed by described data pointer;
Whether described 3rd judge module is equal with the coding of the packet pointed by described encoding indicators for judging the coding got;
Described 4th judge module, for judging that whether coding pointed by described encoding indicators is the packet of maximum numbering.
10. the device calculating transmission error rates of data according to claim 6, is characterized in that, described comparison module comprises positive sequence comparing unit, backward comparing unit and correct byte number comparing unit;
Described positive sequence comparing unit, compares one by one for described second packet is carried out positive sequence with the first packet stored at transmitting terminal, is all mutually correctly with data, counts the first correct byte number;
Described backward comparing unit, compares one by one for described second packet is carried out backward with the first packet stored at transmitting terminal, is all mutually correctly with data, counts the second correct byte number;
Described correct byte number comparing unit, for correct for positive sequence comparing unit gained first byte number and the correct byte number of backward comparing unit gained second being contrasted, draws correct byte number;
If the first correct byte number is more than or equal to the second correct byte number, then the first correct byte number is correct byte number; If the first correct byte number is less than the second correct byte number, then the second correct byte number is correct byte number.
CN201410495670.5A 2014-09-24 2014-09-24 A kind of method and device for calculating transmission error rates of data Active CN104283640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410495670.5A CN104283640B (en) 2014-09-24 2014-09-24 A kind of method and device for calculating transmission error rates of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410495670.5A CN104283640B (en) 2014-09-24 2014-09-24 A kind of method and device for calculating transmission error rates of data

Publications (2)

Publication Number Publication Date
CN104283640A true CN104283640A (en) 2015-01-14
CN104283640B CN104283640B (en) 2017-12-08

Family

ID=52258160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410495670.5A Active CN104283640B (en) 2014-09-24 2014-09-24 A kind of method and device for calculating transmission error rates of data

Country Status (1)

Country Link
CN (1) CN104283640B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703993A (en) * 2016-04-08 2016-06-22 同济大学 Vehicle Ethernet based electric automobile distributed annular communication network architecture
CN111258295A (en) * 2020-01-15 2020-06-09 重庆长安汽车股份有限公司 System and method for verifying big data acquisition and uploading accuracy
CN111541584A (en) * 2020-04-20 2020-08-14 上海航天测控通信研究所 1553B data transmission reliability test method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087175A (en) * 2007-04-28 2007-12-12 北京交通大学 System and method for testing channel transmission performance with the practical channel and computer simulation
CN103780345A (en) * 2014-01-21 2014-05-07 清华大学 System and method for multi-buffering non-constant-speed code transmission of real-time service in intensive communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087175A (en) * 2007-04-28 2007-12-12 北京交通大学 System and method for testing channel transmission performance with the practical channel and computer simulation
CN103780345A (en) * 2014-01-21 2014-05-07 清华大学 System and method for multi-buffering non-constant-speed code transmission of real-time service in intensive communication

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703993A (en) * 2016-04-08 2016-06-22 同济大学 Vehicle Ethernet based electric automobile distributed annular communication network architecture
CN105703993B (en) * 2016-04-08 2018-10-26 同济大学 A kind of electric vehicle distributed ring architectures of communication networks based on vehicle-mounted Ethernet
CN111258295A (en) * 2020-01-15 2020-06-09 重庆长安汽车股份有限公司 System and method for verifying big data acquisition and uploading accuracy
CN111541584A (en) * 2020-04-20 2020-08-14 上海航天测控通信研究所 1553B data transmission reliability test method, device and storage medium
CN111541584B (en) * 2020-04-20 2022-11-01 上海航天测控通信研究所 1553B data transmission reliability test method, device and storage medium

Also Published As

Publication number Publication date
CN104283640B (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN102281121A (en) Method, equipment and system for transmitting and verifying data file
CN104283640A (en) Method and device for calculating bit error rate of transmitted data
CN102185762B (en) Method for recognizing, extracting user data sending behavior
US20170109229A1 (en) Data processing method and device for recovering valid code words from a corrupted code word sequence
CN106572375A (en) TV remote control method and apparatus
CN102291408B (en) Processing method and device for iSCSI (Internet small computer system interface) protocol message
CN105955915A (en) Method, device, and system for removing deflection of parallel data
CN102752081B (en) Parallel cyclic redundancy check method and device in high-speed Ethernet
US9888094B2 (en) Data compression and decompression methodology and apparatus
CN106470091A (en) The method of telemetering under deep-space spacecraft low bit- rate
CN103095622B (en) A kind of bpsk signal restoring circuit being applicable to ISO14443 agreement
CN101833513A (en) Storage method and device and reading method and device for data frame
CN112073272B (en) Method and device for analyzing rail transit data based on index matching
CN102968286B (en) A kind of data transfer tracking, device and system
US7516393B2 (en) System and method of error detection for unordered data delivery
CN104811422B (en) Data transmission method and device in a kind of Industrial Ethernet
CN110381050A (en) The multi-protocols conversion method of calibration and device of data packet
CN108572948B (en) Doorplate information processing method and device
CN108242977B (en) Data processing method, data processing device and electronic equipment
CN104539528B (en) Multi-core communication equipment and its message interaction method between radius server
CN102307078A (en) Method for realizing MVB/WTB frame data real-time decoding by utilizing oscilloscope
RU2014107734A (en) PACKAGE TRANSPORT FLOW DEMULTIPLEXING
CN110310105B (en) Method and device for safely recovering hardware wallet master key
CN102377504B (en) Data transmission detection device, data transmission detection method and electronic device thereof
CN110474718A (en) A kind of data-encoding scheme, synchronous method, system and communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant