CN114205055A - Data transmission method, device, equipment and storage medium - Google Patents

Data transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN114205055A
CN114205055A CN202111522868.4A CN202111522868A CN114205055A CN 114205055 A CN114205055 A CN 114205055A CN 202111522868 A CN202111522868 A CN 202111522868A CN 114205055 A CN114205055 A CN 114205055A
Authority
CN
China
Prior art keywords
byte
data
length
bit
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111522868.4A
Other languages
Chinese (zh)
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.)
Beijing Hengan Jiaxin Safety Technology Co ltd
Original Assignee
Beijing Hengan Jiaxin Safety Technology 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 Beijing Hengan Jiaxin Safety Technology Co ltd filed Critical Beijing Hengan Jiaxin Safety Technology Co ltd
Priority to CN202111522868.4A priority Critical patent/CN114205055A/en
Publication of CN114205055A publication Critical patent/CN114205055A/en
Pending legal-status Critical Current

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/0057Block 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/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • 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/0075Transmission of coding parameters to receiver

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses a data transmission method, a data transmission device, data transmission equipment and a storage medium. The method comprises the following steps: acquiring the length field byte length of a target data frame according to the content byte length of the target message data; determining continuous byte bits of the length field byte length from the field starting byte bit to the back in the target data frame as length field byte bits, and writing the content byte length into the length field byte bits; determining continuous byte bits of the length field byte bits of the target data frame and the content byte length after the length field byte bits as content field byte bits, and writing target message data into the content field byte bits; and generating a target byte stream according to the target data frame, and sending the target byte stream to a data receiving end. The embodiment of the invention can improve the flexibility of the coding form, expand the applicable data range of the coding form and optimize the reasonable utilization of network bandwidth resources by data transmission.

Description

Data transmission method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, device, and storage medium.
Background
In network communication between a sending end and a receiving end, the sending end is usually agreed to encode data to be transmitted in a specific encoding form, and the receiving end can decode the data after receiving the data according to the agreed specific form, so as to obtain communication data content.
In the prior art, in some forms of encoding agreed between a sending end and a receiving end, the sending end may encode and encapsulate data into a specific content field of a message, and create a length field of the message before the specific content field of the message to record a byte length occupied by the specific content field of the message, so as to transmit the encoded data in a byte stream form in a network. After receiving the byte stream, the receiving end can obtain the byte length occupied by the specific content field of the message in the length field of the message according to the convention, thereby intercepting the byte with the corresponding length behind the length field of the message to obtain the specific content field of the message, and obtaining the transmitted data in the specific content field of the message.
In the above encoding form in the prior art, the sender and the receiver need to agree in advance on the length of the length field of the message, so as to accurately intercept the length field of the message and determine the starting position of the specific content field. However, the length of the length field that needs to be occupied by the length of the specific content field varies according to the size of the transmission data. If the length of the length field is appointed to be a small value, the length field is not enough to record the length of the specific content field of the data when transmitting large data; if the length of the length field is agreed to be a large value, the length field redundancy will be caused when transmitting small data, and the network bandwidth of data transmission is wasted.
Illustratively, one encoding form commonly employed in the prior art is TLV encoding, where T is Type (message Type), L is Length (message Length), and V is Value (message specific content). Fig. 1 is a schematic diagram of a frame structure of TLV encoded data in the prior art, and fig. 2 is a schematic diagram of a TLV encoded byte stream in the prior art. Each frame in the byte stream shown in fig. 1 includes a Type field, a Length field, and a Value field, and the byte stream shown in fig. 2 includes three TLV-encoded data of fig. 1. However, in the frame structure shown in fig. 1, the Length field is only one Byte long, and the Length is recorded in the range of 0 to 255 bytes, and when the data content in the Value field is large, for example, about 2MB of video data, the Length of the Value field will reach 2 × 1024Byte, and the Length field needs to be approximately four bytes, and the Length is recorded in the range of 0 to 4294967295 bytes. Accordingly, fig. 3 is a schematic diagram of a frame structure of TLV encoded data according to another prior art. As shown in fig. 3, the Length field is extended to four bytes, and when the frame structure is used to transmit data with a Length of 0 to 255 bytes, three bytes in the Length field will be wasted.
Disclosure of Invention
Embodiments of the present invention provide a data transmission method, apparatus, device, and storage medium, so as to improve flexibility of a coding format, expand an applicable data range of the coding format, and optimize reasonable utilization of network bandwidth resources by data transmission.
In a first aspect, an embodiment of the present invention provides a data transmission method, applied to a data sending end, including:
acquiring the length field byte length of a target data frame according to the content byte length of the target message data;
determining continuous byte bits of the length field byte length from a field start byte bit to the rear in the target data frame as length field byte bits, and writing the content byte length into the length field byte bits;
determining the consecutive byte bits of the content byte length after the length field byte bit of the target data frame as content field byte bits, and writing the target message data into the content field byte bits;
and generating a target byte stream according to the target data frame, and sending the target byte stream to a data receiving end.
In a second aspect, an embodiment of the present invention further provides a data transmission method, applied to a data receiving end, including:
receiving a target byte stream sent by a data sending end, and sequentially reading each byte bit in the target byte stream according to the sequence from a transmission front end to a transmission rear end; wherein, the data sending end is configured to send the target byte stream by using the data transmission method according to the first aspect of the embodiment of the present invention;
determining the length field byte bit of a target data frame in each byte bit, and acquiring the length of the content byte in the length field byte bit;
and determining the byte bits which are continuous after the byte bits of the length field and the byte bits of the content byte length as the byte bits of the content field of the target data frame, and acquiring target message data from the byte bits of the content field.
In a third aspect, an embodiment of the present invention further provides a data transmission apparatus, configured at a data sending end, and including:
the field length obtaining module is used for obtaining the length field byte length of the target data frame according to the content byte length of the target message data;
a content length writing module, configured to determine, as length field byte bits, consecutive byte bits of the length field byte length from a starting byte bit backward in the target data frame, and write the content byte length into the length field byte bits;
a message content writing module, configured to determine the consecutive byte bits of the content byte length after the length field byte bit of the target data frame as content field byte bits, and write the target message data into the content field byte bits;
and the byte stream sending module is used for generating a target byte stream according to the target data frame and sending the target byte stream to a data receiving end.
In a fourth aspect, an embodiment of the present invention further provides a data transmission apparatus, configured at a data receiving end, including:
the byte stream receiving module is used for receiving a target byte stream sent by a data sending end and sequentially reading each byte bit in the target byte stream according to the sequence from a transmission front end to a transmission rear end; wherein, the data sending end is configured to send the target byte stream by using the data transmission method according to the first aspect of the embodiment of the present invention;
a content length obtaining module, configured to determine a length field byte bit of a target data frame in each byte bit, and obtain a content byte length in the length field byte bit;
and the message content acquisition module is used for determining the byte bits which are continuous after the byte bits of the length field and the length of the content byte as the byte bits of the content field of the target data frame and acquiring target message data from the byte bits of the content field.
In a fifth aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission method provided by any embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data transmission method provided in any embodiment of the present invention.
The embodiment of the invention ensures that a data sending end obtains the length field byte length of a target data frame according to the content byte length of target message data, determines the length field byte bit of the target data frame according to the length field byte length, writes the content byte length into the length field byte bit, further determines the content field byte bit of the target data frame according to the length field byte bit and the content byte length, writes the target message data into the content field byte bit, generates a target byte stream according to the target data frame, sends the target byte stream to a data receiving end, ensures that the data receiving end can determine the length field byte bit and obtain the content byte length, thereby determining the content field byte bit and obtaining the target message data, and realizes the coding and transmission of the target message data based on the coding form of the length field with dynamic length, the problem of insufficient byte bits or redundancy caused by a coding form with a fixed field length in the prior art is solved, the flexibility of the coding form is improved, the applicable data range of the coding form is expanded, and the reasonable utilization of network bandwidth resources by data transmission is optimized.
Drawings
Fig. 1 is a schematic diagram of a frame structure of TLV encoded data in the prior art.
Fig. 2 is a schematic diagram of a TLV encoded byte stream in the prior art.
Fig. 3 is a schematic diagram of a frame structure of TLV encoded data according to another prior art.
Fig. 4 is a flowchart of a data transmission method according to an embodiment of the present invention.
Fig. 5 is a flowchart of a data transmission method according to a second embodiment of the present invention.
Fig. 6 is a schematic diagram of a TLV encoded byte stream according to a second embodiment of the present invention.
Fig. 7 is a flowchart of a data transmission method according to a third embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a data transmission device according to a fourth embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a data transmission device according to a fifth embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 4 is a flowchart of a data transmission method according to an embodiment of the present invention, where this embodiment is applicable to a case of transmitting data in a byte stream, and the method may be executed by a data transmission apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device, for example, a data transmitting end. Accordingly, as shown in fig. 4, the method includes the following operations:
s110, according to the content byte length of the target message data, the length field byte length of the target data frame is obtained.
The data transmitting end may be a terminal that needs to transmit data in network communication. The target message data may be data that the data sender needs to send. The content byte length may be the number of bytes that the target message data takes to transmit in the network. The target data frame may be a data unit formed by transmission of target message data in the network, and may have a specific structure. The length field byte length may be the number of bytes occupied by the field in the target data frame for recording the byte length of the content.
Correspondingly, the data sending end can perform specific form coding on the target message data to generate a target data frame with a specific structure under the condition that the target message data needs to be sent. Specifically, the target data frame may include a plurality of byte bits arranged consecutively in a fixed order, each byte bit may have data of one byte size written therein, and each byte bit may be transmitted in the network according to the arrangement order. Each byte bit in the target data frame may include a portion of at least one continuous byte bit that may constitute a field for recording the target message data, and may further include a portion of at least one continuous byte bit that may constitute a field for recording a content byte length of the target message data. The length field byte length of the field for recording the content byte length of the target message data can be determined according to the content byte length, so that the length field byte length is equal to the number of bytes occupied by the content byte length.
S120, determining continuous byte bits of the length field byte length from the field start byte bit to the back in the target data frame as length field byte bits, and writing the content byte length into the length field byte bits.
The field start byte bit may be a first byte bit included in a field for recording a content byte length of the target message data in a byte arrangement order in the target data frame. The consecutive byte bits may be byte bits arranged consecutively in the target data frame and may be transmitted consecutively in a network transmission. The length field byte bits may be byte bits included in a field for recording the content byte length of the target message data.
Accordingly, in the case of determining the length field byte length, consecutive byte bits of the field start byte bit and the total length field byte length thereafter may be determined as the length field byte bits in the target data frame, and the content byte length may be written into the length field byte bits. Specifically, each bit of data of the content byte length may be sequentially written into the consecutive byte bits from front to back of the length field byte bit in the order from high to low, or sequentially written into the consecutive byte bits from front to back of the length field byte bit in the order from low to high, which may be predetermined by the data sending end and the data receiving end communicating with the data sending end, and is not limited herein.
S130, determining the continuous byte bits of the content byte length after the length field byte bits of the target data frame as content field byte bits, and writing the target message data into the content field byte bits.
Wherein the content field byte bits may be byte bits included in a field for recording the target message data.
Correspondingly, when the length field byte bit is determined in the target data frame, the content field byte bit can be determined as a consecutive byte bit whose length field byte is the length of the content byte, and the byte number of the content field byte bit is the same as the byte number that the target message data needs to occupy, so that the target message data can be written into the content field byte bit. Specifically, each bit of the target message data may be sequentially written into the consecutive byte bits from front to back of the byte bit of the content field according to the sequence from high to low of the data bit, or sequentially written into the consecutive byte bits from front to back of the byte bit of the content field according to the sequence from low to high of the data bit, which may be predetermined by the data sending end and the data receiving end communicating with the data sending end, and is not limited herein.
S140, generating a target byte stream according to the target data frame, and sending the target byte stream to a data receiving end.
Wherein the target byte stream may be a byte stream formed by transmission of the target data frames in the network. The data receiving end may be a terminal that performs network communication with the data transmitting end and needs to receive the target message data.
Accordingly, the byte bits in the target data frame may be transmitted in the network in the order of arrangement to form the target byte stream. The target byte stream may be transmitted to the data receiving end through network transmission so that the data receiving end receives the target byte stream and obtains the target data frame and the data written therein according to the convention in the target byte stream. Specifically, the data receiving end may determine the length field byte position in the target data frame according to an agreement, and obtain the content byte length written in the length field byte position, so as to determine the content field byte position formed by byte positions of continuous content byte length after the length field byte position according to the content byte length, and then obtain the target message data in the content field byte position.
The embodiment of the invention provides a data transmission method, which comprises the steps that a data sending end obtains the length field byte length of a target data frame according to the content byte length of target message data, the length field byte bit of the target data frame is determined according to the length field byte length, the content byte length is written into the length field byte bit, the content field byte bit of the target data frame is further determined according to the length field byte bit and the content byte length, the target message data is written into the content field byte bit, a target byte stream is generated according to the target data frame and is sent to a data receiving end, so that the data receiving end can determine the length field byte bit and obtain the content byte length, the content field byte bit is determined and the target message data is obtained, and the target message data are coded and transmitted based on the coding form of the length field with dynamic length, the problem of insufficient byte bits or redundancy caused by a coding form with a fixed field length in the prior art is solved, the flexibility of the coding form is improved, the applicable data range of the coding form is expanded, and the reasonable utilization of network bandwidth resources by data transmission is optimized.
Example two
Fig. 5 is a flowchart of a data transmission method according to a second embodiment of the present invention. The embodiment of the present invention is embodied on the basis of the above-described embodiments, and in the embodiment of the present invention, a specific optional implementation manner for acquiring the length field byte length of the target data frame according to the content byte length of the target message data is provided.
As shown in fig. 5, the method of the embodiment of the present invention specifically includes:
s210, according to the content byte length of the target message data, the length field byte length of the target data frame is obtained.
In an optional embodiment of the present invention, S210 may specifically include:
s211, carrying out target system coding processing on the content byte length to obtain target system length data.
The target binary encoding process may be an operation of converting the byte length of the content into data of a specific binary unit. The target binary length data may be data representing the length of the content byte in a specific binary unit.
Accordingly, the data written in the target data frame may be expressed in a specific system unit, and the field for recording the length of the content byte needs to be written with the length of the content byte expressed in the specific system unit. Specifically, the specific binary unit may be the number of values that can be represented by one byte of the target data frame. Therefore, the byte length of the content can be subjected to target binary coding processing to obtain target binary length data which needs to be written into the target data frame field.
S212, determining the data bit number of the target system length data as the length of the length field byte.
The number of data bits may be the number of bits of the target binary length data.
Accordingly, each bit of the target system length data can be written into each length field byte, and the number of data bits of the target system length data can be determined as the length field byte length, so that each byte included in the length field byte determined according to the length field byte length can be used for writing each bit of the target system length data, thereby recording the content byte length.
Illustratively, if one byte of the target data frame includes 8 binary bits, which can be used to record the length of the content byte, the value represented by the one byte is in the range of 0 to 255, including 256 values, the content byte length 511 can be converted into data in 256 levels, and the target data frame includes two bits, the low bit is 255 and the high bit is 1. Therefore, the length field byte length can be determined as two bytes for writing two bits of data of the target system length data, respectively.
S220, determining continuous byte bits of the length field byte length from the field start byte bit to the back in the target data frame as length field byte bits, and writing the content byte length into the length field byte bits.
In an optional embodiment of the present invention, the writing the content byte length into the length field byte bits may include: sequentially writing data bit data of the target system length data into byte bits from the field start byte bit to the field end byte bit of each length field byte bit according to the sequence from the data low bit to the data high bit; a data bit flag is generated in each of the length field byte bits.
Wherein, the lower bit of each length field byte bit is used for storing the target system length data, and the highest bit of each length field byte bit is used for storing the data bit mark.
Specifically, the lower data bits may be lower data bits in the target binary length data. The upper data bits may be the upper data bits in the target binary length data. The field end byte bit may be a last bit byte bit included in the length field byte bits. The data bit identification may be used to indicate the data bit in the target binary length data where the data written in each length field byte bit is located.
Correspondingly, the sequence of writing the target system length data into the byte bits of each length field by the data sending end may be that the data of the target system length data from the lower bits to the higher bits are written into the byte bits from the beginning to the end of the length field. Further, a data bit flag may be generated in each length field byte bit, and the data receiving end may obtain the data bit flag in the length field byte bit after obtaining the data in any length field byte bit based on the convention with the data sending end, so as to determine the data as the data in the data bit represented by the data bit flag, thereby determining the data in each data bit in the target system length data.
In an optional embodiment of the present invention, the generating a data bit flag in each of the length field byte bits may include: and under the condition that the lower data is determined to be written in the length field byte bit, generating a data bit continuation mark in a preset mark bit of the length field byte bit.
The lower bits may be data in any data bits except the most significant bit in the target system length data. The preset flag bit may be a bit preset in each length field byte bit for storing a data bit continuation flag. The data bit continuation flag may be used to indicate that the byte bit is not the end of field byte bit of the length field byte bit.
Correspondingly, one bit can be preset in each length field byte bit for storing a data bit continuation flag, and each bit of data in the target system length data can be written into other bits in each length field byte bit, so that a data bit continuation flag can be generated in the preset flag bit in the byte bit of the length field for indicating that the byte bit after the length field byte bit is still the length field byte bit under the condition that low-order data is written into any length field byte bit. Therefore, the data receiving end receives the target byte stream and obtains the data in each byte bit of the target data frame, the written lower-order data can be obtained from the field start byte bit of the length field byte bit, the written data in the next byte bit can be continuously obtained according to the data bit continuation mark in the length field byte bit until the highest-order data is read from the length field byte bit, the byte bit is determined to be the field end byte bit of the length field byte bit, the data on all the data bits of the target system length data can be determined, and the content byte length can be obtained according to the bit data and the system unit of the target system length data.
In an optional embodiment of the present invention, the most significant bit of the byte bits of each length field may be determined as a preset flag bit; generating a data bit continuation flag in a preset flag bit of the length field byte bit, which may include writing a value 1 in a most significant bit of the length field byte bit; correspondingly, the target system coding processing is performed on the content byte length to obtain target system length data, which may include converting the content byte length into 128 system length data.
Specifically, the most significant bit of the byte bits of each length field is determined as the preset flag bit, then each bit of the target system length data can be written into the lower 7 bits of the byte bits of each length field, and the data range that each length field byte can represent is 0 to 127. Therefore, the content byte length can be converted into 128-system target system length data, the bit data of the target system length data is sequentially written into the byte bits from the field start byte bit to the field end byte bit of the length field byte bit from the data lower bit to the data upper bit, each bit data only occupies the lower 7 bit bits in the length field byte bit, the value 1 is written into the highest bit of the length field byte bit of the lower bit data, the value 0 is written into the highest bit of the length field byte bit of the highest bit data, namely the value 1 is written into the highest bit of the length field byte bit before the field end byte bit, and the value 0 is written into the highest bit of the field end byte bit.
Illustratively, table 1 is a table of correspondence between the number of bytes in the length field and the representable data range according to an embodiment of the present invention. As shown in Table 1, in the case that the length field byte bit includes 1 byte, the highest bit of the byte is determined to be 0, which indicates that the following byte bit is no longer the length field byte bit, and the range of the length field byte bit is 0 ~ 127, the write data is 00000000 ~ 01111111, and the hexadecimal representation is 0000 ~ 011111110x00 to 0x 7F. In the case that the length field byte bit includes 2 bytes, the lower bit part of the length value is placed in the front byte of the transmission, the upper bit is placed in the back, then the highest bit of the front byte is determined to be 1, which indicates that the byte bit behind the front byte is also the length field byte bit, the highest bit of the back byte is determined to be 0, which indicates that the byte bit behind the front byte is no longer the length field byte bit, then the representation range of the length field byte bit is 128-16383, wherein the minimum value 128 is converted into 128-system data, namely (0,1) ═ 0 × 1280+1×1281If 7 bits of the byte bit occupied by writing each bit of data into the length field are (0000000,0000001), all 8 bits of the byte bit of the length field are written into the data (10000000,00000001), which is expressed as (0x80,0x 01); the maximum 16383 is converted into 128-ary data (127 ) ═ 127 × 1280+127×1281If 7 bits of the byte bit of the length field are written with each bit of data (1111111), all 8 bits of the byte bit of the length field are written with data (11111111,01111111), which is represented as (0xFF,0x 7F). By analogy, table 1 shows that the length field byte bit occupies a representable data range of 1-4 bytes, and the total range reaches 0-268435455.
TABLE 1
Number of bytes Minimum value Maximum value
1 0(0x00) 127(0x7F)
2 128(0x80,0x01) 16383(0xFF,0x7F)
3 16384(0x80,0x80,0x01) 2097151(0xFF,0xFF,0x7F)
4 2097152(0x80,0x80,0x80,0x01) 268435455(0xFF,0xFF,0xFF,0x7F)
Furthermore, the method can be agreed with a data receiving terminal, so that the data in the byte bits of each length field is respectively and-operated with the data of each bit of 0x7F represented by binary, so as to eliminate the influence of the data bit continuation flag in the most significant bit in the byte bits of each length field on the data value in the byte bits of each length field, and obtain the actual length value written in the byte bits of each length field.
Illustratively, if the length field byte bits include 2 byte bits in which data (0x80,0x01) is written, i.e., (10000000,00000001), it may be calculated to be (0x80,0x01) ═ 0x80&0x7F)×1280+(0x01&0x7F)×1281Wherein, 0x80&0x7F represents that the sum operation is performed on each bit of 10000000 and 01111111 to obtain 00000000, namely 0; 0x01&0x7F indicates that when the and operation is performed on the bits of 00000001 and 01111111 to obtain 00000001, i.e., 1, (0x80,0x01) ═ 128 can be obtained by the calculation formula.
S230, determining the continuous byte bits of the content byte length after the length field byte bits of the target data frame as content field byte bits, and writing the target message data into the content field byte bits.
S240, generating a target byte stream according to the target data frame, and sending the target byte stream to a data receiving end.
Exemplarily, fig. 6 is a schematic diagram of a TLV encoded byte stream according to a second embodiment of the present invention. In a specific example, as shown in fig. 6, 3 TLV encoded data frames are included, the first 1 byte bit of each data frame is a Type field, the Type field is followed by a Length field, the Length field is followed by Value fields of different lengths, and the Length field includes 1, 2, and 4byte bits according to the Length of the transmission data.
The embodiment of the invention provides a data transmission method, which comprises the steps that a data sending end obtains the length field byte length of a target data frame according to the content byte length of target message data, the length field byte bit of the target data frame is determined according to the length field byte length, the content byte length is written into the length field byte bit, the content field byte bit of the target data frame is further determined according to the length field byte bit and the content byte length, the target message data is written into the content field byte bit, a target byte stream is generated according to the target data frame and is sent to a data receiving end, so that the data receiving end can determine the length field byte bit and obtain the content byte length, the content field byte bit is determined and the target message data is obtained, and the target message data are coded and transmitted based on the coding form of the length field with dynamic length, the problem of insufficient byte bits or redundancy caused by a coding form with a fixed field length in the prior art is solved, the flexibility of the coding form is improved, the applicable data range of the coding form is expanded, and the reasonable utilization of network bandwidth resources by data transmission is optimized.
EXAMPLE III
Fig. 7 is a flowchart of a data transmission method provided in the third embodiment of the present invention, where this embodiment is applicable to a case of transmitting data in a byte stream, and this method may be executed by a data transmission apparatus provided in the third embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device, for example, a data receiving end. It should be noted that, the embodiment of the present invention provides a data transmission method executed by a data receiving end that communicates with the data sending end in the first or second embodiment of the present invention, and can be understood by referring to the description in the foregoing embodiment.
Accordingly, as shown in fig. 7, the method includes the following operations:
s310, receiving the target byte stream sent by the data sending end, and sequentially reading each byte bit in the target byte stream according to the sequence from the transmission front end to the transmission rear end.
The data sending end is configured to send the target byte stream by using the data transmission method according to the first or second embodiment of the present invention. The data receiving end may be a terminal that performs network communication with the data transmitting end and needs to receive the target message data. The transmission front-end may be the portion of the target byte stream that the data receiving end first receives. The back end of the transmission may be the portion of the target byte stream that is received after the data receiving end.
Accordingly, the target byte stream may be a byte stream formed by transmitting the byte bits in each data frame in the network according to the arrangement order, and the data receiving end may sequentially receive and read the byte bits in the target byte stream according to the transmission order.
S320, determining the length field byte bit of the target data frame in each byte bit, and acquiring the content byte length in the length field byte bit.
The target data frame may be a data unit with a specific structure transmitted in a target byte stream, in which data to be transmitted between a data transmitting end and a data receiving end may be written, and may be the target data frame described in the first or second embodiment of the present invention. The length field byte bits may be byte bits included in a field of the target data frame that records the byte length of the content of the data that needs to be transmitted. The content byte length may be the number of bytes that the data to be transmitted takes to transmit in the network.
Correspondingly, the data receiving end can determine the length field byte bit of the target data frame in each byte bit of the target byte stream according to convention, and the data read in the length field byte bit can be determined as the length of the content byte.
In an optional embodiment of the present invention, the determining, in each of the byte bits, a length field byte bit of the target data frame may include: determining a field start byte bit of the length field byte bits of the target data frame; and sequentially reading the data bit marks in the byte bits after the starting byte bit, and determining the field tail byte bit of the length field byte bit according to the data bit marks.
The field start byte bit may be a first byte bit included in a field for recording a content byte length of the target message data in a byte arrangement order in the target data frame. The data bit flag may be used to indicate the data bit in the content byte length of the data written in each length field byte bit.
Correspondingly, after determining the field start byte bit of the length field byte bit in the target data frame, the data receiving end can determine whether the data in the length field byte bit is data on any data bit of the length field byte bit according to the data bit flag in each byte bit backward from the field start byte bit, thereby determining whether each data bit is the length field byte bit, and obtaining the length of the content byte in all the determined field end byte bits until the field end byte bit is determined.
Optionally, the data bit flag may be a data bit continuation flag, and determining a field end byte bit of the length field byte bit according to the data bit flag may include: and in the case that the data bit continuation flag is determined to be included in any length field byte bit, determining that the field byte bit is not the field tail byte bit, and continuously reading the next length field byte bit until the data bit continuation flag is determined not to be included in the length field byte bit, and determining that the field byte bit is the field tail byte bit.
S330, determining the byte bits which are continuous after the byte bits of the length field and have the length of the content byte as the byte bits of the content field of the target data frame, and acquiring target message data from the byte bits of the content field.
The byte bits of the content field may be byte bits included in a field for recording data to be transmitted. The target message data may be data to be transmitted between the data sending end and the data receiving end.
Correspondingly, after the length field byte bit is determined, the content field byte bit can be determined from the byte bit after the length field byte bit, and the number of the byte bits included in the content field byte bit is equal to the length of the content byte, so that the content field byte bit of the target data frame can be determined, and the target message data can be obtained from the content field byte bit.
The embodiment of the invention provides a data transmission method, which comprises the steps that a data sending end obtains the length field byte length of a target data frame according to the content byte length of target message data, the length field byte bit of the target data frame is determined according to the length field byte length, the content byte length is written into the length field byte bit, the content field byte bit of the target data frame is further determined according to the length field byte bit and the content byte length, the target message data is written into the content field byte bit, a target byte stream is generated according to the target data frame and is sent to a data receiving end, so that the data receiving end can determine the length field byte bit and obtain the content byte length, the content field byte bit is determined and the target message data is obtained, and the target message data are coded and transmitted based on the coding form of the length field with dynamic length, the problem of insufficient byte bits or redundancy caused by a coding form with a fixed field length in the prior art is solved, the flexibility of the coding form is improved, the applicable data range of the coding form is expanded, and the reasonable utilization of network bandwidth resources by data transmission is optimized.
Example four
Fig. 8 is a schematic structural diagram of a data transmission apparatus according to a fourth embodiment of the present invention, and as shown in fig. 8, the apparatus is configured at a data sending end, and includes: a field length obtaining module 410, a content length writing module 420, a message content writing module 430 and a byte stream sending module 440.
The field length obtaining module 410 is configured to obtain a length field byte length of the target data frame according to the content byte length of the target message data.
A content length writing module 420, configured to determine, as length field byte bits, consecutive byte bits of the length field byte length from a field start byte bit backward in the target data frame, and write the content byte length into the length field byte bits.
A message content writing module 430, configured to determine the consecutive byte bits of the content byte length after the length field byte bit of the target data frame as content field byte bits, and write the target message data into the content field byte bits.
And a byte stream sending module 440, configured to generate a target byte stream according to the target data frame, and send the target byte stream to a data receiving end.
In an optional implementation manner of the embodiment of the present invention, the field length obtaining module 410 may be specifically configured to: carrying out target system coding processing on the length of the content bytes to obtain target system length data; determining the number of data bits of the target system length data as the length field byte length.
In an optional implementation manner of the embodiment of the present invention, the content length writing module 420 may include: the length writing submodule is used for sequentially writing data bit data of the target system length data into the byte bits from the field start byte bit to the field tail end byte bit of each length field byte bit according to the sequence from the data low bit to the data high bit; a flag generation submodule for generating a data bit flag in each of the length field byte bits; wherein, the lower bit of each length field byte bit is used for storing the target system length data, and the highest bit of each length field byte bit is used for storing the data bit mark.
In an optional implementation manner of the embodiment of the present invention, the flag generation sub-module may be specifically configured to: and under the condition that the lower data is determined to be written in the length field byte bit, generating a data bit continuation mark in a preset mark bit of the length field byte bit.
The device can execute the data transmission method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method.
The embodiment of the invention provides a data transmission device, which is characterized in that a data sending end obtains the length field byte length of a target data frame according to the content byte length of target message data, determines the length field byte position of the target data frame according to the length field byte length, writes the content byte length into the length field byte position, further determines the content field byte position of the target data frame according to the length field byte position and the content byte length, writes the target message data into the content field byte position, generates a target byte stream according to the target data frame, sends the target byte stream to a data receiving end, ensures that the data receiving end can determine the length field byte position and obtain the content byte length, thereby determining the content field byte position and obtaining the target message data, and realizes the encoding and transmission of the target message data based on the encoding form of the length field with dynamic length, the problem of insufficient byte bits or redundancy caused by a coding form with a fixed field length in the prior art is solved, the flexibility of the coding form is improved, the applicable data range of the coding form is expanded, and the reasonable utilization of network bandwidth resources by data transmission is optimized.
EXAMPLE five
Fig. 9 is a schematic structural diagram of a data transmission apparatus according to a fifth embodiment of the present invention, as shown in fig. 9, the apparatus is configured at a data receiving end, and includes: a byte stream receiving module 510, a content length acquisition module 520, and a message content acquisition module 530.
The byte stream receiving module 510 is configured to receive a target byte stream sent by a data sending end, and sequentially read byte bits in the target byte stream according to a sequence from a transmission front end to a transmission rear end; the data sending end is configured to send the target byte stream by using the data transmission method according to the first or second embodiment.
A content length obtaining module 520, configured to determine a length field byte bit of the target data frame in each byte bit, and obtain a content byte length in the length field byte bit.
A message content obtaining module 530, configured to determine, as the content field byte bits of the target data frame, the byte bits that are consecutive to the content byte length after the length field byte bits, and obtain target message data in the content field byte bits.
In an optional implementation manner of the embodiment of the present invention, the content length obtaining module 520 may be specifically configured to: determining a field start byte bit of the length field byte bits of the target data frame; and sequentially reading the data bit marks in the byte bits after the starting byte bit, and determining the field tail byte bit of the length field byte bit according to the data bit marks.
The device can execute the data transmission method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method.
The embodiment of the invention provides a data transmission device, which is characterized in that a data sending end obtains the length field byte length of a target data frame according to the content byte length of target message data, determines the length field byte position of the target data frame according to the length field byte length, writes the content byte length into the length field byte position, further determines the content field byte position of the target data frame according to the length field byte position and the content byte length, writes the target message data into the content field byte position, generates a target byte stream according to the target data frame, sends the target byte stream to a data receiving end, ensures that the data receiving end can determine the length field byte position and obtain the content byte length, thereby determining the content field byte position and obtaining the target message data, and realizes the encoding and transmission of the target message data based on the encoding form of the length field with dynamic length, the problem of insufficient byte bits or redundancy caused by a coding form with a fixed field length in the prior art is solved, the flexibility of the coding form is improved, the applicable data range of the coding form is expanded, and the reasonable utilization of network bandwidth resources by data transmission is optimized.
EXAMPLE six
Fig. 10 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. FIG. 10 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 10 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 10, computer device 12 is embodied in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors 16, a memory 28, and a bus 18 that connects the various system components (including the memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 10, and commonly referred to as a "hard drive"). Although not shown in FIG. 10, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be appreciated that although not shown in FIG. 10, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes various functional applications and data processing by executing programs stored in the memory 28, thereby implementing the data transmission method provided by the embodiment of the present invention: acquiring the length field byte length of a target data frame according to the content byte length of the target message data; determining continuous byte bits of the length field byte length from a field start byte bit backward in the target data frame as length field byte bits, and writing the content byte length into the length field byte bits; determining the consecutive byte bits of the content byte length after the length field byte bit of the target data frame as content field byte bits, and writing the target message data into the content field byte bits; and generating a target byte stream according to the target data frame, and sending the target byte stream to a data receiving end. Or:
receiving a target byte stream sent by a data sending end, and sequentially reading each byte bit in the target byte stream according to the sequence from a transmission front end to a transmission rear end; the data sending end is used for sending the target byte stream by adopting the data transmission method in the first or second embodiment of the invention; determining the length field byte bit of a target data frame in each byte bit, and acquiring the length of the content byte in the length field byte bit; and determining the byte bits which are continuous after the byte bits of the length field and the byte bits of the content byte length as the byte bits of the content field of the target data frame, and acquiring target message data from the byte bits of the content field.
EXAMPLE seven
The seventh embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where when the computer program is executed by a processor, the data transmission method provided by the embodiment of the present invention is implemented: acquiring the length field byte length of a target data frame according to the content byte length of the target message data; determining continuous byte bits of the length field byte length from a field start byte bit backward in the target data frame as length field byte bits, and writing the content byte length into the length field byte bits; determining the consecutive byte bits of the content byte length after the length field byte bit of the target data frame as content field byte bits, and writing the target message data into the content field byte bits; and generating a target byte stream according to the target data frame, and sending the target byte stream to a data receiving end. Or:
receiving a target byte stream sent by a data sending end, and sequentially reading each byte bit in the target byte stream according to the sequence from a transmission front end to a transmission rear end; the data sending end is used for sending the target byte stream by adopting the data transmission method in the first or second embodiment of the invention; determining the length field byte bit of a target data frame in each byte bit, and acquiring the length of the content byte in the length field byte bit; and determining the byte bits which are continuous after the byte bits of the length field and the byte bits of the content byte length as the byte bits of the content field of the target data frame, and acquiring target message data from the byte bits of the content field.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or computer device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A data transmission method is applied to a data sending end and comprises the following steps:
acquiring the length field byte length of a target data frame according to the content byte length of the target message data;
determining continuous byte bits of the length field byte length from a field start byte bit backward in the target data frame as length field byte bits, and writing the content byte length into the length field byte bits;
determining the consecutive byte bits of the content byte length after the length field byte bit of the target data frame as content field byte bits, and writing the target message data into the content field byte bits;
and generating a target byte stream according to the target data frame, and sending the target byte stream to a data receiving end.
2. The method of claim 1, wherein obtaining the length field byte length of the target data frame according to the content byte length of the target message data comprises:
carrying out target system coding processing on the length of the content bytes to obtain target system length data;
determining the number of data bits of the target system length data as the length field byte length.
3. The method of claim 2, wherein writing the content byte length into the length field byte bits comprises:
sequentially writing data bit data of the target system length data into byte bits from the field start byte bit to the field end byte bit of each length field byte bit according to the sequence from the data low bit to the data high bit;
generating a data bit flag in each of the length field byte bits;
wherein, the lower bit of each length field byte bit is used for storing the target system length data, and the highest bit of each length field byte bit is used for storing the data bit mark.
4. The method of claim 3, wherein generating a data bit flag in each of said length field byte bits comprises:
and under the condition that the lower data is determined to be written in the length field byte bit, generating a data bit continuation mark in a preset mark bit of the length field byte bit.
5. A data transmission method is applied to a data receiving end and comprises the following steps:
receiving a target byte stream sent by a data sending end, and sequentially reading each byte bit in the target byte stream according to the sequence from a transmission front end to a transmission rear end; wherein, the data sending end is used for sending the target byte stream by adopting the data transmission method of any one of claims 1 to 4;
determining the length field byte bit of a target data frame in each byte bit, and acquiring the length of the content byte in the length field byte bit;
and determining the byte bits which are continuous after the byte bits of the length field and the byte bits of the content byte length as the byte bits of the content field of the target data frame, and acquiring target message data from the byte bits of the content field.
6. The method of claim 5, wherein determining the length field byte bits of the target data frame among each of the byte bits comprises:
determining a field start byte bit of the length field byte bits of the target data frame;
and sequentially reading the data bit marks in the byte bits after the starting byte bit, and determining the field tail byte bit of the length field byte bit according to the data bit marks.
7. A data transmission apparatus, configured at a data transmitting end, comprising:
the field length obtaining module is used for obtaining the length field byte length of the target data frame according to the content byte length of the target message data;
a content length writing module, configured to determine, as length field byte bits, consecutive byte bits of the length field byte length from a field start byte bit to the rear in the target data frame, and write the content byte length into the length field byte bits;
a message content writing module, configured to determine the consecutive byte bits of the content byte length after the length field byte bit of the target data frame as content field byte bits, and write the target message data into the content field byte bits;
and the byte stream sending module is used for generating a target byte stream according to the target data frame and sending the target byte stream to a data receiving end.
8. A data transmission apparatus, configured at a data receiving end, comprising:
the byte stream receiving module is used for receiving a target byte stream sent by a data sending end and sequentially reading each byte bit in the target byte stream according to the sequence from a transmission front end to a transmission rear end; wherein, the data sending end is used for sending the target byte stream by adopting the data transmission method of any one of claims 1 to 4;
a content length obtaining module, configured to determine a length field byte bit of a target data frame in each byte bit, and obtain a content byte length in the length field byte bit;
and the message content acquisition module is used for determining the byte bits which are continuous after the byte bits of the length field and the length of the content byte as the byte bits of the content field of the target data frame and acquiring target message data from the byte bits of the content field.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data transmission method as claimed in any one of claims 1-4 or 5-6.
10. A computer storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the data transmission method according to any one of claims 1-4 or 5-6.
CN202111522868.4A 2021-12-13 2021-12-13 Data transmission method, device, equipment and storage medium Pending CN114205055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111522868.4A CN114205055A (en) 2021-12-13 2021-12-13 Data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111522868.4A CN114205055A (en) 2021-12-13 2021-12-13 Data transmission method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114205055A true CN114205055A (en) 2022-03-18

Family

ID=80653310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111522868.4A Pending CN114205055A (en) 2021-12-13 2021-12-13 Data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114205055A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6111660A (en) * 1998-09-30 2000-08-29 N*Able Technologies, Inc. Efficient digital data encoding in a data processing system
CN101203867A (en) * 2005-07-05 2008-06-18 松下电器产业株式会社 Readout data length specification method
CN106021153A (en) * 2016-05-16 2016-10-12 安徽华米信息科技有限公司 Data transmission method and device and intelligent electronic equipment
CN109428714A (en) * 2017-09-01 2019-03-05 迈普通信技术股份有限公司 The generation method of key in SNMPv3 agreement
CN111740897A (en) * 2020-08-06 2020-10-02 上海众旦信息科技有限公司 Method for information processing, electronic device, and storage medium
CN112887054A (en) * 2019-11-29 2021-06-01 厦门雅迅网络股份有限公司 Data stream packaging method, unpacking method and system based on length escape
CN113438226A (en) * 2021-06-23 2021-09-24 上海星融汽车科技有限公司 Message generating and analyzing method, device and system based on hybrid transmission protocol
CN113608889A (en) * 2021-07-13 2021-11-05 广州市百果园网络科技有限公司 Message data processing method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6111660A (en) * 1998-09-30 2000-08-29 N*Able Technologies, Inc. Efficient digital data encoding in a data processing system
CN101203867A (en) * 2005-07-05 2008-06-18 松下电器产业株式会社 Readout data length specification method
CN106021153A (en) * 2016-05-16 2016-10-12 安徽华米信息科技有限公司 Data transmission method and device and intelligent electronic equipment
CN109428714A (en) * 2017-09-01 2019-03-05 迈普通信技术股份有限公司 The generation method of key in SNMPv3 agreement
CN112887054A (en) * 2019-11-29 2021-06-01 厦门雅迅网络股份有限公司 Data stream packaging method, unpacking method and system based on length escape
CN111740897A (en) * 2020-08-06 2020-10-02 上海众旦信息科技有限公司 Method for information processing, electronic device, and storage medium
CN113438226A (en) * 2021-06-23 2021-09-24 上海星融汽车科技有限公司 Message generating and analyzing method, device and system based on hybrid transmission protocol
CN113608889A (en) * 2021-07-13 2021-11-05 广州市百果园网络科技有限公司 Message data processing method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
丁青锋;: "采用面向对象的ASN.1 BER编译器的研究", 华东交通大学学报, no. 05 *
王沁;许娜;张燕;张晓彤;: "优化TLV编码规则", 计算机科学, no. 11 *

Similar Documents

Publication Publication Date Title
CN109600618B (en) Video compression method, decompression method, device, terminal and medium
US11374688B2 (en) Data transmission method and device for intelligent driving vehicle, and device
CN103346800B (en) A kind of data compression method and device
US8688621B2 (en) Systems and methods for information compression
CN103534968A (en) Encoding and decoding method and device for Ethernet physical layer
CN110888862A (en) Data storage method, data query method, data storage device, data query device, server and storage medium
CN111865952B (en) Data processing method, data processing device, storage medium and electronic equipment
CN110970039A (en) Audio transmission method and device, electronic equipment and storage medium
CN111694692B (en) Data storage erasure method, device and equipment and readable storage medium
CN114205055A (en) Data transmission method, device, equipment and storage medium
US9923669B2 (en) Distributed Reed-Solomon codes for simple multiple access networks
CN112988650B (en) Communication method, device, system and storage medium
CN114070405B (en) Optical fiber network system based on multi-type test equipment
CN112187684B (en) Soft demodulation method, soft demodulation device, receiver and storage medium
CN112486885B (en) Data frame generation method, storage medium and computer equipment
CN114338828B (en) Communication method, communication device and computer storage medium
CN110517045B (en) Block chain data processing method, device, equipment and storage medium
CN114356925A (en) Identification generation method and device, electronic equipment and storage medium
CN110365858B (en) Information transmission method, device, equipment, system and storage medium
CN111835686A (en) Data compression method, data decompression method, data compression device, data decompression device, electronic equipment and storage medium
CN113744744B (en) Audio coding method, device, electronic equipment and storage medium
CN115833847B (en) Polar code decoding method, polar code decoding device, communication equipment and storage medium
CN113329076B (en) Data transmission method, device and system, computer equipment and storage medium
CN114050890B (en) Multi-type information transmission device suitable for optical fiber network
CN115190182B (en) Data lossless compression method, device and equipment suitable for Beidou system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220318