[go: up one dir, main page]

CN108242977B - Data processing method, data processing device and electronic equipment - Google Patents

Data processing method, data processing device and electronic equipment Download PDF

Info

Publication number
CN108242977B
CN108242977B CN201711428094.2A CN201711428094A CN108242977B CN 108242977 B CN108242977 B CN 108242977B CN 201711428094 A CN201711428094 A CN 201711428094A CN 108242977 B CN108242977 B CN 108242977B
Authority
CN
China
Prior art keywords
data
transmission data
group
check
transmission
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.)
Expired - Fee Related
Application number
CN201711428094.2A
Other languages
Chinese (zh)
Other versions
CN108242977A (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.)
Shenzhen Chaosiwei Electronics Co ltd
Original Assignee
Shenzhen Chaosiwei Electronics 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 Shenzhen Chaosiwei Electronics Co ltd filed Critical Shenzhen Chaosiwei Electronics Co ltd
Priority to CN201711428094.2A priority Critical patent/CN108242977B/en
Publication of CN108242977A publication Critical patent/CN108242977A/en
Application granted granted Critical
Publication of CN108242977B publication Critical patent/CN108242977B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/009Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location arrangements specific to transmitters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data processing method, a data processing device, an electronic device and a computer readable storage medium, wherein the data processing method comprises the following steps: receiving a transmission data packet sent by a sender based on preset initial data and preset termination data; analyzing the part of the transmission data packet except the initial data and the termination data into more than one group of transmission data groups and first check data respectively corresponding to each group of transmission data groups according to a preset analysis mode, wherein the number of bytes occupied by each group of transmission data groups does not exceed a preset byte number threshold; for any group of transmission data groups, verifying the transmission data groups based on first verification data corresponding to the transmission data groups; and if the transmission data groups of each group pass the verification, determining that the transmission data packet is a correct transmission data packet. The scheme of the invention can improve the reliability of data transmission.

Description

Data processing method, data processing device and electronic equipment
Technical Field
The present invention belongs to the field of data processing technologies, and in particular, to a data processing method, a data processing apparatus, and an electronic device.
Background
In the data communication process, the transmission data packet contains three types of data, namely initial data, transmission data and termination data. The starting data and the ending data are specific numerical values, that is, after a specific value is read, the read data can be determined to be the starting data or the ending data, and the starting data and the ending data are used for determining the head and the tail of a transmission data packet; and the transmission data is data which needs to be transmitted in the data communication process.
Due to the uncertainty of the transmission data, in the prior art, it may happen that the transmission data that actually needs to be transmitted is identical to the termination data, which makes the transmission data not completely readable. Therefore, the existing data transmission mode has poor reliability.
Disclosure of Invention
In view of the above, the present invention provides a data processing method, a data processing apparatus, an electronic device and a computer readable storage medium, which can improve the reliability of data transmission.
A first aspect of the present invention provides a data processing method, including:
dividing the transmission data into more than one group of transmission data groups, wherein the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
for any group of transmission data groups, sequentially extracting data with one bit from each byte of the transmission data groups respectively;
according to the extraction sequence, generating first check data corresponding to the transmission data group based on the extracted data;
packaging preset initial data, each group of transmission data groups, first check data corresponding to each group of transmission data groups and preset termination data into transmission data packets;
and sending the transmission data packet to a receiving party so that the receiving party can receive the correct transmission data packet.
A second aspect of the present invention provides a data processing apparatus comprising:
the device comprises a dividing unit, a transmitting unit and a processing unit, wherein the dividing unit is used for dividing transmission data into more than one group of transmission data groups, and the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
the extraction unit is used for respectively extracting data with one bit from each byte of the transmission data group in sequence aiming at any group of transmission data group;
a first check data generation unit configured to generate first check data corresponding to the transmission data group based on the extracted data according to the extraction order;
the packaging unit is used for packaging preset initial data, each group of transmission data groups, first verification data corresponding to each group of transmission data groups and preset termination data into transmission data packets;
a sending unit, configured to send the transmission data packet to a receiving party, so that the receiving party can receive a correct transmission data packet.
A third aspect of the present invention provides a data processing method, including:
receiving a transmission data packet sent by a sender based on preset initial data and preset termination data;
analyzing the part of the transmission data packet except the initial data and the termination data into more than one group of transmission data groups and first check data respectively corresponding to each group of transmission data groups according to a preset analysis mode, wherein the number of bytes occupied by each group of transmission data groups does not exceed a preset byte number threshold;
for any group of transmission data groups, verifying the transmission data groups based on first verification data corresponding to the transmission data groups;
and if the transmission data groups of each group pass the verification, determining that the transmission data packet is a correct transmission data packet.
A fourth aspect of the present invention provides a data processing apparatus comprising:
a receiving unit, configured to receive a transmission data packet sent by a sender based on preset start data and preset end data;
the analysis unit is used for analyzing the parts of the transmission data packets except the initial data and the termination data into more than one group of transmission data groups and first check data respectively corresponding to each group of transmission data groups according to a preset analysis mode, wherein the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
the first verification data verification unit is used for verifying the transmission data group based on first verification data corresponding to the transmission data group aiming at any group of transmission data groups;
and the determining unit is used for determining that the transmission data packet is a correct transmission data packet when each group of transmission data group passes the verification.
A fifth aspect of the present invention provides an electronic device, wherein the electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to the first aspect when executing the computer program; alternatively, the processor implements the steps of the method according to the third aspect when executing the computer program.
A sixth aspect of the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of the first aspect as above; alternatively, the computer program as described above, when executed by a processor, performs the steps of the method as described above in the third aspect.
As can be seen from the above, in the scheme of the present invention, first, transmission data is divided into more than one group of transmission data groups, where the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes, then, for any group of transmission data groups, data of one bit is sequentially extracted from each byte of the transmission data group, and according to the extracted sequence, first check data corresponding to the transmission data group is generated based on the extracted data, then, preset start data, each group of transmission data groups, first check data corresponding to each group of transmission data groups, and preset end data are packed into a transmission data packet, and finally, the transmission data packet is sent to a receiving party, so that the receiving party can receive a correct transmission data packet. By splitting the transmission data into the transmission data groups, each transmission data group has corresponding first check data, on one hand, the correctness of each transmission data group can be ensured through each group of first check data, on the other hand, the possibility of identifying the transmission data as the initial data or the termination data by mistake can be reduced through the first check data, the transmission data is effectively distinguished from the initial data or the termination data, and the error rate is reduced to a certain extent.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another implementation of a data processing method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another data processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 shows an implementation flow of a data processing method according to an embodiment of the present invention, which is detailed as follows:
in step 101, dividing transmission data into more than one group of transmission data groups;
in the embodiment of the present invention, the data amount of the transmission data, that is, the number of bytes of the transmission data, may be detected first: if the byte number of the transmission data does not exceed the preset byte number threshold, the step 102 can be directly executed without data segmentation of the transmission data; if the byte number of the transmission data exceeds a preset byte number threshold value, the transmission data is divided into more than one group of transmission data groups, wherein the byte number occupied by each group of transmission data group does not exceed the preset byte number threshold value. Illustratively, the preset byte number threshold is 7 bytes, for example, when the transmission data has 20 bytes, the transmission data is divided into three groups of transmission data groups in a manner of 7 bytes, and 6 bytes; when the transmission data has 6 bytes, the transmission data is directly used as a transmission data group of a unique group without being divided. Of course, the preset byte number threshold is only an example, and a developer may set the preset byte number threshold according to actual needs, which is not limited herein.
In step 102, for any group of transmission data groups, sequentially extracting data of one bit from each byte of the transmission data group;
in the embodiment of the present invention, for any one of the transmission data groups, one bit of data is extracted from each byte of the transmission data group.
Alternatively, data of preset bits may be extracted from each byte of the transmission data group in turn, for example, when a group of transmission data groups is 7 bytes of data, table 1 shows the data format of the transmission data group:
byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7
TABLE 1
Assuming that the preset bit is the seventh bit of data in the byte, the seventh bit (bit7) of data in byte 1, the bit7 of data in byte 2, the bit7 of data in byte 3, and so on may be sequentially extracted until the bit7 of data in byte 7 is extracted, which is seven bits of data. It should be noted that when the number of bits of a certain byte is less than eight bits, the high-bit data can be filled with "0", for example, if byte 1 is "1001", byte 1 can be filled with "00001001", and the data of bit7 of byte 1 is "0".
Alternatively, one bit of data may be sequentially extracted from each byte of the transmission data group according to a preset bit sequence. Still taking the data format of the transmission data group shown in table 1 as an example, assuming that the preset order of bits is from bit7 to bit0, it is possible to sequentially extract seven bits of data, namely bit7 in byte 1, bit6 in byte 2, bit5 in byte 3, bit4 in byte 4, bit3 in byte 5, bit1 in byte 6, and bit1 in byte 7. Of course, the preset bit sequence may also be from bit0 to bit7, which is not limited herein. It should be noted that when the number of bits of a certain byte is less than eight bits, the high-bit data can be filled with "0", for example, if byte 1 is "1001", byte 1 can be filled with "00001001", and the data of bit7 of byte 1 is "0".
Alternatively, when data of one bit is sequentially extracted from each byte of the transmission data group in the order of the preset bits, if the number of bytes of the transmission data group is too large and eight bytes are redundant, after the extraction in the order of the preset bits is completed, the bit data of the remaining bytes is extracted again in the order of the preset bits until the data of each byte is completely extracted, for example, when a group of transmission data groups is 10 bytes of data, table 2 shows the data format of the transmission data group:
byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9 Byte 10
TABLE 2
Taking the data format of the transmission data group shown in table 2 as an example, assuming that the preset bit sequence is from bit7 to bit0, bit7 in byte 1, bit6 in byte 2, bit5 in byte 3, bit4 in byte 4, bit3 in byte 5, bit2 in byte 6, bit1 in byte 7, and bit0 in byte 8 may be sequentially extracted, and then bit7 in byte 9 and bit6 in byte 10 may be continuously extracted to obtain ten bits of data.
In step 103, generating first verification data corresponding to the transmission data group based on the extracted data according to the extraction order;
in the embodiment of the present invention, the extracted data may be generated into the first check data corresponding to the transmission data group according to the extraction order. The first extracted data may be used as the lowest order data, and so on, and the last extracted data may be used as the highest order data to obtain the first check data. Alternatively, when the number of bits of the extracted data is not a multiple of 8, the extracted data is filled with data "0" until the number of bits of the extracted data is a multiple of 8, for example, when a group of transmission data groups is 4 bytes of data, table 3 shows an example of a data format of the transmission data group and data of each byte:
byte 1 Byte 2 Byte 3 Byte 4
10101010 01001001 10110100 01111011
TABLE 3
If the seventh bit data is extracted from each byte of the transmission data group in sequence, the data "0" "1" "0" "1" can be extracted in sequence, the data extracted first is used as the lowest bit data to obtain "1010", because the data is less than eight bits, the high bit data is filled with "0" to obtain "00001010" as the first check data of the transmission data group; alternatively, when a group of transmission data group is 10 bytes of data, data "0", "1", "0", "1" and "1" are sequentially extracted from the respective bytes according to the above steps, and the data extracted first is the lowest order data to obtain "1011011010", and since the number of bits of the data is not a multiple of eight, the data of high order bits is also filled with "0" to obtain "0000001011011010" as the first parity data of the transmission data group, and in this case, the first parity data is represented by two bytes. Of course, the data extracted first may be the highest order data, and is not limited herein.
In step 104, packing the preset initial data, each group of transmission data groups, the first check data corresponding to each group of transmission data groups, and the preset termination data into transmission data packets;
in an embodiment of the present invention, a predetermined start data, each set of transmission data, a first check data corresponding to each set of transmission data, and a predetermined end data are packaged into a transmission data packet, where the predetermined start data may be "10000000" (i.e. 0x80 in hexadecimal), and the predetermined end data may be "10000001" (i.e. 0x81 in hexadecimal). Of course, the start data and the end data may be other values, and may be modified according to the requirement of the developer, and are not limited herein.
Illustratively, table 4 shows the format of the transmission packet obtained by packetizing:
Figure BDA0001524353340000081
TABLE 4
The initial data is the first data, the termination data is the last data, the first check data 1 corresponds to the transmission data group 1, and so on, and the first check data N corresponds to the transmission data group N.
In step 105, the transmission packet is sent to the receiving side so that the receiving side can receive the correct transmission packet.
In the embodiment of the present invention, after the transmission data packet is obtained by the packing in step 104, the transmission data packet is sent to the receiving side, so that the receiving side can receive the correct transmission data packet.
Optionally, to further ensure the correctness of the transmitted data packet, before step 104, the data processing method further includes:
acquiring the total byte number of each group of transmission data group and the corresponding first check data;
generating second check data based on all the transmission data groups and the first check data according to the total byte number;
the step 104 includes:
and packaging the initial data, each group of transmission data group, the first check data corresponding to each group of transmission data group, the second check data and the termination data into a transmission data packet.
The method may further calculate total number of bytes occupied by each group of transmission data group and the first check data corresponding to each group of transmission data, and generate a second check data based on all the transmission data groups and the first check data according to the total number of bytes, and specifically includes: acquiring the number of bits of the total byte number; if the number of bits of the total number of bytes is not a multiple of 8, the data of the high-order bits of the total number of bytes is filled with data "0". For example, assuming that the total number of bytes is 256 bytes, when the total number of bytes is represented by binary, nine bits are represented by "100000000", and the total number of bytes is represented by two bytes by padding to "0000000100000000".
Illustratively, table 5 shows the format of the transmission data packet obtained by packetizing in the presence of the second parity data:
Figure BDA0001524353340000091
TABLE 5
The initial data is first data, the termination data is last data, the first check data 1 corresponds to the transmission data group 1, and so on, the first check data N corresponds to the transmission data group N, the second check data is only generated data, and the second check data is set after the first check data N and before the termination data.
Optionally, in order to further improve the correctness of the transmission data packet, before the packaging the start data, each transmission data set, the first check data corresponding to each transmission data set, the second check data, and the end data into the transmission data packet, the data processing method further includes:
generating third check data according to a preset check data generation algorithm based on the initial data, each group of transmission data groups, and the first check data and the second check data corresponding to each group of transmission data groups;
the step of packaging the start data, each transmission data group, the first check data corresponding to each transmission data group, the second check data, and the end data into a transmission data packet includes:
and packaging the initial data, each group of transmission data group, the first check data, the second check data, the third check data and the termination data corresponding to each group of transmission data group into a transmission data packet.
The preset check data generation algorithm may be a cyclic redundancy check data generation algorithm, or may also be other check data generation algorithms, which is not limited herein.
Illustratively, table 6 shows the format of the transmission data packet obtained by packing when the third check data exists:
Figure BDA0001524353340000092
TABLE 6
The initial data is head data, the termination data is tail data, the first check data 1 corresponds to the transmission data group 1, and so on, the first check data N corresponds to the transmission data group N, the second check data and the third check data are both uniquely generated data, the second check data is set after the first check data N, the third check data is set before the third check data, and the third check data is set after the second check data and before the termination data.
Therefore, through the embodiment of the invention, the transmission data is divided into the transmission data groups, and the corresponding first check data is respectively generated for each transmission data group, so that on one hand, the correctness of each transmission data group can be ensured through the first check data corresponding to each transmission data group, on the other hand, the possibility of mistakenly identifying the transmission data as the initial data or the termination data can be reduced through the first check data, the transmission data is effectively distinguished from the initial data or the termination data, and the error rate of serial port communication is reduced to a certain extent.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example two
Fig. 2 shows an implementation flow of the data processing method provided by the second embodiment of the present invention, which is detailed as follows:
in step 201, a transmission data packet sent by a sender is received based on preset start data and preset end data;
in the embodiment of the present invention, the transmission data packet sent by the sender is received through preset start data and preset end data, where the preset start data may be "10000000" (i.e. 0x80 in hexadecimal), the preset end data may be "10000001" (i.e. 0x81 in hexadecimal), and of course, the present invention may also be other data, which is not limited herein. It should be noted that the start data and the end data are data determined after negotiation between the sender and the receiver, that is, the start data and the end data are data agreed by the sender and the receiver.
In step 202, the part of the transmission data packet except the start data and the end data is analyzed into more than one group of transmission data sets and first check data respectively corresponding to the transmission data sets according to a preset analysis mode;
in the embodiment of the invention, the number of bytes occupied by each group of transmission data group does not exceed the preset threshold value of the number of bytes. In fact, after the sender and the receiver have negotiated, the receiver can know how to divide the transmission data and generate the corresponding first check data, for example, referring to table 4, taking a preset threshold of byte number as 7 bytes as an example, after the start data and the end data of the transmission data packet are excluded, the remaining data is analyzed in the order of 7 bytes, 1 byte … … 7 bytes, and 1 byte; the data book occupied by the last transmission data group (i.e., transmission data group N) may be less than 7 bytes, however, the first check data corresponding to the transmission data group N is necessarily 1 byte, the penultimate transmission data group (i.e., transmission data group N-1) is still necessarily 7 bytes, and the first check data corresponding to the transmission data group N-1 is also necessarily 1 byte, based on which, the transmission data group 1 may be analyzed backwards until the transmission data group N-1 is analyzed; meanwhile, the first check data N (since the number of bytes occupied by the first check data N is confirmed) can be obtained by analysis, and the remaining data is the data in the transmission data group N.
In step 203, for any one set of transmission data set, checking the transmission data set based on first checking data corresponding to the transmission data set;
in the embodiment of the present invention, for any one group of transmission data groups obtained through analysis in step 202, the transmission data group is verified based on the first verification data corresponding to the transmission group. Specifically, since the receiving side has already agreed with the transmitting side, the receiving side can know how the transmitting side generates the first check data corresponding to each group of transmission data groups. And according to a method similar to that when the first check data is generated, checking the transmission data group based on the first check data corresponding to the transmission data group. Taking table 1 as an example, the transmission data group includes 7 bytes of data, and if the data of the seventh bit is sequentially extracted from each byte of the transmission data group when the first check data is generated, in this step, it is sequentially compared whether bit0 of the first check data is consistent with bit7 of byte 1, and whether bit1 of the first check data is consistent with bit7 of byte 2, until the comparison is completed, whether bit6 of the first check data is consistent with bit7 of byte 7. The verification method may be to recalculate the first verification data of the transmission data group, compare the recalculated first verification data with the first verification data corresponding to the transmission data group obtained through analysis, and if the recalculated first verification data is consistent with the first verification data corresponding to the transmission data group, determine that the transmission data group passes verification.
In step 204, if each group of transmission data group passes the verification, it is determined that the transmission data packet is a correct transmission data packet.
In the embodiment of the present invention, if more than one transmission data group fails to pass the verification, it is considered that a data error may occur in the process of transmitting the transmission data packet, and an error signal may be fed back to the sender, where the error signal may cause the sender to resend the transmission data packet.
Optionally, if the sender further generates second parity data before packetizing the transmission data packet, step 202 includes:
analyzing the part of the transmission data packet except the initial data and the termination data into more than one group of transmission data groups, second check data and first check data respectively corresponding to each group of transmission data groups according to a preset analysis mode;
before step 204, the data processing method further includes:
acquiring the total byte number of each group of transmission data group and the corresponding first check data;
checking the total byte number according to the second checking data;
the step 204 includes:
and if all the transmission data groups pass the verification and the total byte number passes the verification of the second verification data, determining that the transmission data packet is a correct transmission data packet.
Based on the steps in the first embodiment, the second parity data is actually generated according to the total number of bytes of each group of transmission data group and the corresponding first parity data before the transmission data packet is packetized, and since the receiving side and the transmitting side have agreed, the receiving side can recalculate the total number of bytes of each group of transmission data group and the corresponding first parity data when receiving, and check the total number of bytes recalculated when receiving through the second parity data, if the two numbers are consistent, the check is passed, and if the two numbers are not consistent, the check is not passed. Obviously, when the transmission data packet transmitted between the sender and the receiver includes the second check data, it is necessary that each group of transmission data group passes the check, and the total number of bytes also passes the check of the second check data, so that the transmission data packet can be determined to be the correct transmission data packet.
Optionally, if the sender further generates second parity data before packetizing the transmission data packet, the parsing the transmission data packet except the start data and the end data into at least one transmission data group, first parity data and second parity data corresponding to the transmission data groups respectively according to a predetermined parsing manner includes:
analyzing the part of the transmission data packet except the initial data and the termination data into more than one group of transmission data groups, second check data, third check data and first check data corresponding to each group of transmission data groups respectively according to a preset analysis mode;
if the transmission data groups pass the check and the total byte number passes the check of the second check data, before determining that the transmission data packet is a correct transmission data packet, the method further includes:
generating third data to be verified according to a preset verification data generation algorithm based on the initial data, each group of transmission data groups, and the first verification data and the second verification data corresponding to each group of transmission data groups;
verifying the third to-be-verified data according to the third verification data;
if the transmission data groups pass the check and the total byte number passes the check of the second check data, determining that the transmission data packet is a correct transmission data packet, including:
and if all the transmission data groups pass the verification, the total byte number passes the verification of the second verification data, and the third data to be verified passes the verification of the third verification data, determining that the transmission data packet is a correct transmission data packet.
Based on the steps in the first embodiment, the third check data is actually generated according to a preset check data generation algorithm before the data packet is packed and transmitted, and since the receiving side and the sending side have agreed, when receiving, the receiving side can analyze and obtain more than one group of transmission data group, a second check data, a third check data, and first check data corresponding to each group of transmission data group, and can generate third data to be checked according to the preset check data generation algorithm based on the start data, each group of transmission data group, the first check data corresponding to each group of transmission data group, and the second check data, and check the third data to be checked according to the third check data, if the two data are consistent, the third data to be checked is checked, and if the two data are not consistent, the third data is not checked. Obviously, when the transmission data packet transmitted between the sender and the receiver includes the third check data, it is necessary that each group of transmission data group passes the check, the total number of bytes passes the check of the second check data, and the third data to be checked passes the check of the third check data, so that the transmission data packet can be determined to be the correct transmission data packet. It should be noted that the preset verification data generation algorithm is the same as the algorithm used by the sender to generate the third verification data.
Therefore, through the embodiment of the invention, the transmission data packet is analyzed to obtain the transmission data group and the first check data corresponding to each group of transmission data group, on one hand, the correctness of each group of transmission data group can be ensured through the first check data corresponding to each group of transmission data in serial port communication, on the other hand, the possibility of identifying the transmission data as the initial data or the termination data by mistake can be reduced through the first check data, the transmission data is effectively distinguished from the initial data or the termination data, and the error rate of the serial port communication is reduced to a certain extent.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
EXAMPLE III
Fig. 3 shows a block diagram of a data processing apparatus according to an embodiment of the present invention, and for convenience of description, only the portions related to the embodiment of the present invention are shown. The data processing apparatus 3 includes: the verification device comprises a dividing unit 31, an extracting unit 32, a first verification data generating unit 33, a packing unit 34 and a packing unit 35.
The device comprises a dividing unit, a transmitting unit and a processing unit, wherein the dividing unit is used for dividing transmission data into more than one group of transmission data groups, and the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
an extraction unit, configured to extract, for any one group of transmission data groups, data of one bit sequentially from each byte of the transmission data group;
a first check data generation unit configured to generate first check data corresponding to the transmission data group based on the extracted data according to the extraction order;
the packaging unit is used for packaging preset initial data, each group of transmission data groups, first verification data corresponding to each group of transmission data groups and preset termination data into transmission data packets;
and a sending unit, configured to send the transmission data packet to a receiving party, so that the receiving party can receive a correct transmission data packet.
Optionally, the data processing apparatus 3 further includes:
a first total byte number obtaining unit, configured to obtain total byte numbers of each group of transmission data groups and corresponding first check data;
a second check data generating unit, configured to generate second check data based on all the transmission data sets and the first check data according to the total number of bytes;
the packing unit is specifically configured to pack the start data, each group of transmission data groups, the first check data corresponding to each group of transmission data groups, the second check data, and the end data into a transmission data packet.
Optionally, the data processing apparatus 3 further includes:
a third verification data generation unit, configured to generate third verification data according to a preset verification data generation algorithm based on the initial data, each group of transmission data groups, the first verification data corresponding to each group of transmission data groups, and the second verification data;
the packing unit is specifically configured to pack the start data, each group of transmission data groups, the first check data, the second check data, the third check data, and the end data corresponding to each group of transmission data groups into a transmission data packet.
Therefore, according to the embodiment of the invention, the data processing device divides the transmission data into the transmission data groups, and generates the corresponding first check data for each transmission data group, so that on one hand, the correctness of each transmission data group can be ensured through the first check data corresponding to each transmission data group in serial port communication, and on the other hand, the possibility of identifying the transmission data as the initial data or the termination data by mistake can be reduced through the first check data, the transmission data is effectively distinguished from the initial data or the termination data, and the error rate of the serial port communication is reduced to a certain extent.
Example four
Fig. 4 shows a block diagram of a data processing apparatus according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of explanation. The data processing apparatus 4 includes: receiving section 41, analyzing section 42, first verification data verifying section 43, and determining section 44.
The receiving unit 41 is configured to receive a transmission data packet sent by a sender based on preset start data and preset end data;
an analyzing unit 42, configured to analyze a portion of the transmission data packet except the start data and the end data into at least one group of transmission data groups and first check data corresponding to each group of transmission data groups according to a preset analyzing manner, where a number of bytes occupied by each group of transmission data groups does not exceed a preset threshold number of bytes;
a first verification data verification unit 43, configured to verify, for any one group of transmission data groups, the transmission data groups based on first verification data corresponding to the transmission data groups;
and a determining unit 44, configured to determine that the transmission data packet is a correct transmission data packet when each group of transmission data group passes the check.
Optionally, the parsing unit 42 is specifically configured to parse a portion of the transmission data packet excluding the start data and the end data into at least one transmission data group, a second check data, and first check data corresponding to each transmission data group according to a preset parsing manner;
the data processing apparatus 4 further includes:
a second total byte number obtaining unit, configured to obtain the total byte number of each group of transmission data groups and the corresponding first check data;
a second check data checking unit, configured to check the total number of bytes according to the second check data;
the determining unit 44 is specifically configured to determine that the transmission data packet is a correct transmission data packet when each group of transmission data groups passes the check and the total number of bytes passes the check of the second check data.
Optionally, the parsing unit 42 is specifically configured to parse a portion of the transmission data packet excluding the start data and the end data into at least one transmission data group, a second check data, a third check data, and first check data corresponding to each transmission data group according to a preset parsing manner;
the data processing apparatus 4 further includes:
a third data generation unit to be checked, configured to generate third data to be checked according to a preset check data generation algorithm based on the initial data, each group of transmission data groups, and the first check data and the second check data corresponding to each group of transmission data groups;
a third verification data verification unit, configured to verify the third to-be-verified data according to the third verification data;
the determining unit 44 is specifically configured to determine that the transmission data packet is a correct transmission data packet when each group of transmission data group passes the check, the total byte number passes the check of the second check data, and the third to-be-checked data passes the check of the third check data.
Therefore, through the embodiment of the invention, the data processing device can analyze the transmission data packet to obtain the transmission data group and the first check data corresponding to each group of transmission data group, on one hand, the correctness of each group of transmission data group can be ensured through the first check data corresponding to each group of transmission data in the serial port communication process, on the other hand, the possibility of identifying the transmission data as the initial data or the termination data by mistake can be reduced through the first check data, the transmission data is effectively distinguished from the initial data or the termination data, and the error rate of the serial port communication is reduced to a certain extent.
EXAMPLE five
Fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present invention. As shown in fig. 5, the electronic apparatus 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52, such as a data processing program, stored in the memory 51 and executable on the processor 50. The processor 50 executes the computer program 52 to implement the steps in the various method embodiments, such as the steps 101 to 105 shown in fig. 1 or the steps 201 to 204 shown in fig. 2. Alternatively, the processor 50 implements the functions of the units in the device embodiments, such as the functions of the units 31 to 35 shown in fig. 3 or the functions of the units 41 to 44 shown in fig. 4, when executing the computer program 52.
Illustratively, the computer program 52 may be divided into one or more units, which are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the electronic device 5. For example, the computer program 52 may be divided into a dividing unit, an extracting unit, a first verification data generating unit, a packing unit, and a sending unit, and the specific functions of the units are as follows:
the device comprises a dividing unit, a transmitting unit and a processing unit, wherein the dividing unit is used for dividing transmission data into more than one group of transmission data groups, and the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
an extraction unit, configured to extract, for any one group of transmission data groups, data of one bit sequentially from each byte of the transmission data group;
a first check data generation unit configured to generate first check data corresponding to the transmission data group based on the extracted data according to the extraction order;
the packaging unit is used for packaging preset initial data, each group of transmission data groups, first verification data corresponding to each group of transmission data groups and preset termination data into transmission data packets;
and a sending unit, configured to send the transmission data packet to a receiving party, so that the receiving party can receive a correct transmission data packet.
Alternatively, the computer program 52 may be further divided into a receiving unit, an analyzing unit, a first verification data verifying unit, and a determining unit, where the specific functions of the units are as follows:
a receiving unit, configured to receive a transmission data packet sent by a sender based on preset start data and preset end data;
the analysis unit is used for analyzing the parts of the transmission data packets except the initial data and the termination data into more than one group of transmission data groups and first check data respectively corresponding to each group of transmission data groups according to a preset analysis mode, wherein the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
the first verification data verification unit is used for verifying the transmission data group based on first verification data corresponding to the transmission data group aiming at any group of transmission data groups;
and the determining unit is used for determining the transmission data packet to be a correct transmission data packet when each group of transmission data group passes the verification.
The electronic device 5 may be a single chip microcomputer, a personal computer, or other computing device capable of performing serial communication with other electronic devices. The electronic device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of the electronic device 5, and does not constitute a limitation of the electronic device 5, and may include more or less components than those shown, or combine certain components, or different components, for example, the electronic device 5 may further include an input-output device, a network access device, a bus, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the electronic device 5, such as a hard disk or a memory of the electronic device 5. The memory 51 may be an external storage device of the electronic device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 5. Further, the memory 51 may include both an internal storage unit and an external storage device of the electronic device 5. The memory 51 is used for storing the computer program and other programs and data required by the electronic device 5. The above-mentioned memory 51 may also be used to temporarily store data that has been output or is to be output.
As can be seen from the above, according to the embodiment of the present invention, when the electronic device is used as a sender, the electronic device can split the transmission data into the transmission data groups, and generate corresponding first verification data for each transmission data group; when the electronic equipment serves as a receiver, the transmission data packet can be analyzed to obtain the transmission data group and the first check data corresponding to each group of transmission data group, on one hand, the correctness of each group of transmission data group can be ensured through the first check data corresponding to each group of transmission data in serial port communication, on the other hand, the possibility of identifying the transmission data as the initial data or the termination data by mistake can be reduced through the first check data, the transmission data is effectively distinguished from the initial data or the termination data, and the error rate of the serial port communication is reduced to a certain extent.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/electronic device are merely illustrative, and for example, the division of the above modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units described above, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the embodiments of the method when the computer program is executed by a processor. . The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media excludes electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A data processing method, characterized in that the data processing comprises:
dividing the transmission data into more than one group of transmission data groups, wherein the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
for any group of transmission data groups, sequentially extracting data with one bit from each byte of the transmission data groups respectively;
according to the extraction sequence, generating first check data corresponding to the transmission data group based on the extracted data;
packaging preset initial data, each group of transmission data groups, first check data corresponding to each group of transmission data groups and preset termination data into transmission data packets;
and sending the transmission data packet to a receiving party so that the receiving party can receive the correct transmission data packet.
2. The data processing method of claim 1, wherein before the step of packaging the predetermined start data, the sets of transmission data groups, the first check data corresponding to the sets of transmission data groups, and the predetermined end data into the transmission data packets, the method further comprises:
acquiring the total byte number of each group of transmission data group and the corresponding first check data;
generating second check data based on all the transmission data groups and the first check data according to the total byte number;
the packing of the preset initial data, each group of transmission data group, the first check data corresponding to each group of transmission data group and the preset termination data into the transmission data packet includes:
and packaging the initial data, each group of transmission data group, the first check data corresponding to each group of transmission data group, the second check data and the termination data into a transmission data packet.
3. The data processing method of claim 2, wherein before the packaging the start data, the sets of transmission data groups, the first parity data, the second parity data, and the end data corresponding to the sets of transmission data groups into transmission data packets, further comprises:
generating third check data according to a preset check data generation algorithm based on the initial data, each group of transmission data groups, and the first check data and the second check data corresponding to each group of transmission data groups;
the packaging the initial data, each group of transmission data group, the first check data corresponding to each group of transmission data group, the second check data and the termination data into a transmission data packet includes:
and packaging the initial data, each group of transmission data group, the first check data, the second check data, the third check data and the termination data corresponding to each group of transmission data group into a transmission data packet.
4. A data processing method, characterized in that the data processing method comprises:
receiving a transmission data packet sent by a sender based on preset initial data and preset termination data;
analyzing the part of the transmission data packet except the initial data and the termination data into more than one group of transmission data groups and first check data respectively corresponding to each group of transmission data groups according to a preset analysis mode, wherein the number of bytes occupied by each group of transmission data groups does not exceed a preset byte number threshold;
for any group of transmission data groups, verifying the transmission data groups based on first verification data corresponding to the transmission data groups;
and if the transmission data groups of each group pass the verification, determining that the transmission data packet is a correct transmission data packet.
5. The data processing method of claim 4, wherein the parsing the portion of the transmission data packet excluding the start data and the end data into at least one transmission data group and first check data respectively corresponding to the transmission data groups according to a predetermined parsing manner comprises:
analyzing the part of the transmission data packet except the initial data and the termination data into more than one group of transmission data groups, second check data and first check data respectively corresponding to each group of transmission data groups according to a preset analysis mode;
if the transmission data groups pass the verification, before determining that the transmission data packet is the correct transmission data packet, the method further includes:
acquiring the total byte number of each group of transmission data group and the corresponding first check data;
checking the total byte number according to the second checking data;
if each group of transmission data group passes the verification, determining that the transmission data packet is a correct transmission data packet, including:
and if all the transmission data groups pass the verification and the total byte number passes the verification of the second verification data, determining that the transmission data packet is a correct transmission data packet.
6. The data processing method as claimed in claim 5, wherein the parsing the portion of the transmission data packet excluding the start data and the end data into at least one transmission data set, first parity data and second parity data corresponding to the transmission data sets respectively according to a predetermined parsing manner comprises:
analyzing the part of the transmission data packet except the initial data and the termination data into more than one group of transmission data groups, second check data, third check data and first check data corresponding to each group of transmission data groups respectively according to a preset analysis mode;
if each group of transmission data group passes the check, and the total byte number passes the check of the second check data, before determining that the transmission data packet is a correct transmission data packet, the method further includes:
generating third data to be verified according to a preset verification data generation algorithm based on the initial data, each group of transmission data groups, and the first verification data and the second verification data corresponding to each group of transmission data groups;
verifying the third data to be verified according to the third verification data;
if each group of transmission data group passes the check, and the total byte number passes the check of the second check data, determining that the transmission data packet is a correct transmission data packet, including:
and if all the transmission data groups pass the verification, the total byte number passes the verification of the second verification data, and the third data to be verified passes the verification of the third verification data, determining that the transmission data packet is a correct transmission data packet.
7. A data processing apparatus, characterized in that the data processing apparatus comprises:
the device comprises a dividing unit, a transmitting unit and a processing unit, wherein the dividing unit is used for dividing transmission data into more than one group of transmission data groups, and the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
the extraction unit is used for respectively extracting data with one bit from each byte of the transmission data group in sequence aiming at any group of transmission data group;
a first check data generation unit configured to generate first check data corresponding to the transmission data group based on the extracted data according to the extraction order;
the packaging unit is used for packaging preset initial data, each group of transmission data groups, first verification data corresponding to each group of transmission data groups and preset termination data into transmission data packets;
a sending unit, configured to send the transmission data packet to a receiving party, so that the receiving party can receive a correct transmission data packet.
8. A data processing apparatus, characterized in that the data processing apparatus comprises:
a receiving unit, configured to receive a transmission data packet sent by a sender based on preset start data and preset end data;
the analysis unit is used for analyzing the parts of the transmission data packets except the initial data and the termination data into more than one group of transmission data groups and first check data respectively corresponding to each group of transmission data groups according to a preset analysis mode, wherein the number of bytes occupied by each group of transmission data groups does not exceed a preset threshold value of the number of bytes;
the first verification data verification unit is used for verifying the transmission data group based on first verification data corresponding to the transmission data group aiming at any group of transmission data groups;
and the determining unit is used for determining that the transmission data packet is a correct transmission data packet when each group of transmission data group passes the verification.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 3 when executing the computer program; alternatively, the processor, when executing the computer program, implements the steps of the method of any of claims 4 to 6.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3; alternatively, the computer program realizes the steps of the method according to any one of claims 4 to 6 when executed by a processor.
CN201711428094.2A 2017-12-26 2017-12-26 Data processing method, data processing device and electronic equipment Expired - Fee Related CN108242977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711428094.2A CN108242977B (en) 2017-12-26 2017-12-26 Data processing method, data processing device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711428094.2A CN108242977B (en) 2017-12-26 2017-12-26 Data processing method, data processing device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108242977A CN108242977A (en) 2018-07-03
CN108242977B true CN108242977B (en) 2020-08-21

Family

ID=62701098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711428094.2A Expired - Fee Related CN108242977B (en) 2017-12-26 2017-12-26 Data processing method, data processing device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108242977B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147206B (en) * 2019-05-23 2022-02-15 胡志强 Data transmission method of memory card
CN112332951B (en) * 2020-11-20 2022-06-24 昆高新芯微电子(江苏)有限公司 Ethernet frame preemption method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100464517C (en) * 2003-08-08 2009-02-25 华为技术有限公司 Device and method for identifying frame check sequence in general frame processing encapsulation mode
US7773595B2 (en) * 2007-09-14 2010-08-10 Agate Logic, Inc. System and method for parsing frames
CN101789182B (en) * 2010-02-05 2012-10-10 北京工业大学 Traffic signal control system and method based on parallel simulation technique

Also Published As

Publication number Publication date
CN108242977A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN107147553B (en) Method, device and equipment for adjusting Baud rate and frame format of slave station
CN108847916B (en) Encoding method, apparatus and readable storage medium
CN101478369A (en) CRC checking method and system, CRC initial value affecting matrix
CN108242977B (en) Data processing method, data processing device and electronic equipment
CN111177060B (en) Serial port data sending method, receiving method, corresponding device and terminal equipment
CN101702639A (en) Check value calculation method and device of cyclic redundancy check
CN110474711B (en) Encoding method, apparatus and readable storage medium
CN108768587B (en) Encoding method, apparatus and readable storage medium
CN117640256B (en) Data encryption method, recommendation device and storage medium of wireless network card
CN113810471B (en) Data transmission method, sending equipment and receiving equipment
CN107222848B (en) WiFi frame encoding method, transmitting end, storage medium and wireless access equipment
CN102394720B (en) Information safety checking processor
CN108337069A (en) It is a kind of it is improved reduce the bit error rate end be grouped CRC check system parallel
CN109800565B (en) Software upgrading method and terminal equipment
CN110474710B (en) Encoding method, apparatus and readable storage medium
CN116861493B (en) Verification code generation method, processor and electronic equipment
CN113242473B (en) Data processing method, system, data acquisition equipment and readable storage medium
CN114598457B (en) Key generation method, device, medium and equipment applied to quantum communication
CN116015310A (en) Data lossless compression method and device
CN112486885B (en) Data frame generation method, storage medium and computer equipment
CN115441991A (en) Data transmission method and device, electronic equipment and computer storage medium
CN115883040A (en) Resource element group binding information determining method, device, equipment and storage medium
CN114978198A (en) Outer code assisted cascade random access decoding method and related equipment
CN109309548B (en) Encoding method, apparatus and readable storage medium
CN111586156A (en) Text transmission method and system based on Hash operation computing power

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200821

CF01 Termination of patent right due to non-payment of annual fee