CN111885038B - Data packaging method, device and system and computer readable storage medium - Google Patents

Data packaging method, device and system and computer readable storage medium Download PDF

Info

Publication number
CN111885038B
CN111885038B CN202010690509.9A CN202010690509A CN111885038B CN 111885038 B CN111885038 B CN 111885038B CN 202010690509 A CN202010690509 A CN 202010690509A CN 111885038 B CN111885038 B CN 111885038B
Authority
CN
China
Prior art keywords
data
packaging
format
service
transmitted
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.)
Active
Application number
CN202010690509.9A
Other languages
Chinese (zh)
Other versions
CN111885038A (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 Skycaster Micronics Inc
Original Assignee
Shenzhen Skycaster Micronics Inc
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 Skycaster Micronics Inc filed Critical Shenzhen Skycaster Micronics Inc
Priority to CN202010690509.9A priority Critical patent/CN111885038B/en
Publication of CN111885038A publication Critical patent/CN111885038A/en
Priority to PCT/CN2021/098392 priority patent/WO2022012210A1/en
Application granted granted Critical
Publication of CN111885038B publication Critical patent/CN111885038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Abstract

The invention discloses a method, a device and a system for packaging data and a computer readable storage medium, wherein the method comprises the following steps: receiving data to be transmitted, classifying the data according to data identification and transmission requirements in the data to be transmitted, and determining a data type corresponding to the data to be transmitted; determining a packaging format code corresponding to the data to be transmitted according to the data type, determining a corresponding data packaging format according to the packaging format code, and converting the data to be transmitted into a corresponding data packaging packet according to the data packaging format; and determining a corresponding data packaging rule according to the data packaging format, and packaging the data packaging packet through the data packaging rule. The data to be transmitted is classified according to the data identification and the transmission requirement, then the packaging format code, the data packaging format and the data packaging rule are determined, and the data packaging packet is packaged according to the data packaging rule, so that the classified packaging of different data to be transmitted is realized, and the bandwidth loss is reduced.

Description

Data packaging method, device and system and computer readable storage medium
Technical Field
The present invention relates to the field of digital information transmission technologies, and in particular, to a digital broadcasting system supporting data information transmission in multiple formats, and in particular, to a method, an apparatus, a system, and a computer-readable storage medium for data encapsulation.
Background
The data encapsulation method of the present digital broadcasting system mainly encapsulates all data to be transmitted according to the data encapsulation mode defined by the system of the data encapsulation method, but cannot encapsulate the data to be transmitted in a corresponding mode according to the data characteristics of the data to be transmitted, thereby causing broadband loss. Therefore, the data encapsulation method of the current digital broadcasting system can not classify and encapsulate the data to be transmitted, and the broadband loss is large.
Disclosure of Invention
The invention mainly aims to provide a data packaging method, a device, a system and a computer readable storage medium, aiming at solving the technical problems that the data to be transmitted cannot be classified and packaged by the data packaging method of the current digital broadcasting system and the broadband loss is large.
In order to achieve the above object, the present invention provides a data encapsulation method, which includes the following steps:
receiving data to be transmitted, classifying according to data identification and transmission requirements in the data to be transmitted, and determining a data type corresponding to the data to be transmitted;
determining a packaging format code corresponding to the data to be transmitted according to the data type, determining a corresponding data packaging format according to the packaging format code, and converting the data to be transmitted into a corresponding data packaging packet according to the data packaging format;
and determining a corresponding data packaging rule according to the data packaging format, and packaging the data packaging packet according to the data packaging rule.
Optionally, the step of determining a corresponding data encapsulation rule according to the data encapsulation format, and encapsulating the data encapsulation packet according to the data encapsulation rule includes:
if the data packaging format is the message packaging format, determining the data packaging packet as a message packaging packet, and determining the data packaging rule as a message packaging rule;
acquiring the residual capacity of a message channel, and detecting whether the residual capacity is greater than or equal to the first byte length of the message encapsulation packet;
if the residual capacity is detected to be larger than or equal to the first byte length, detecting whether a first residual capacity exists in a first message sub-channel;
and if the first residual capacity is detected to be absent, encapsulating the message encapsulation packet to a second message subchannel.
Optionally, the step of determining a corresponding data encapsulation rule according to the data encapsulation format, and encapsulating the data encapsulation packet according to the data encapsulation rule includes:
if the data packaging format is a service flow packaging format, determining the data packaging packet as a service packaging packet, and determining the data packaging rule as a service flow packaging rule;
acquiring a first channel length of a first service sub-channel, and detecting whether a second byte length of the service encapsulation packet is smaller than the first channel length;
if the second byte length is smaller than the first channel length, detecting whether a first service encapsulation packet exists or not;
and if the first service encapsulation packet is detected to exist, detecting the remaining second channel length of a second service sub-channel after the first service encapsulation packet is encapsulated, and encapsulating the service encapsulation packet to the first service sub-channel and the second service sub-channel in a segmented manner.
Optionally, the determining, according to the data type, a package format code corresponding to the data to be transmitted, where the determining, according to the package format code, a corresponding data package format includes:
acquiring a format coding mapping table, and determining a packaging format code corresponding to the data to be transmitted in the format coding mapping table according to the data type;
and acquiring a packaging format mapping table, and determining a data packaging format corresponding to the data to be transmitted according to the packaging format mapping table and the packaging format code.
Optionally, the step of converting the data to be transmitted into a corresponding data encapsulation package according to the data encapsulation format includes:
if the data packaging format is a message packaging format, converting the data to be transmitted into a message packaging packet;
and if the data packaging format is a service flow packaging format or a service package packaging format, converting the data to be transmitted into a service packaging packet.
Optionally, the receiving the data to be transmitted, classifying the data according to the data identifier and the transmission requirement in the data to be transmitted, and the step of determining the data type corresponding to the data to be transmitted includes:
and receiving the data to be transmitted, acquiring a data identifier and a data parameter transmission type in the data to be transmitted, classifying the data to be transmitted by combining the data identifier and the data parameter transmission type, and determining the data type corresponding to the data to be transmitted.
Optionally, before the steps of receiving the data to be transmitted, classifying the data according to the data identifier and the transmission requirement in the data to be transmitted, and determining the data type corresponding to the data to be transmitted, the method further includes:
and after detecting that the upper layer application sends a data transmission instruction, sending an input data format to the upper layer application so that the upper layer application converts the data format of the data to be sent into the input data format to obtain the data to be transmitted.
In order to achieve the above object, the present invention provides a data packaging apparatus, including:
the receiving module is used for receiving data to be transmitted;
the classification module is used for classifying according to the data identification and the transmission requirement in the data to be transmitted and determining the data type corresponding to the data to be transmitted;
the determining module is used for determining a packaging format code corresponding to the data to be transmitted according to the data type and determining a corresponding data packaging format according to the packaging format code;
the conversion module is used for converting the data to be transmitted into a corresponding data packaging packet according to the data packaging format;
the determining module is further used for determining a corresponding data packaging rule according to the data packaging format;
and the packaging module is used for packaging the data to be transmitted according to the data packaging rule.
In addition, in order to achieve the above object, the present invention further provides a data packaging system, which includes a memory, a processor, and a data packaging program stored in the memory and running on the processor, and when the data packaging program is completed by the processor, the steps of the data packaging method are implemented.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium having stored thereon a data packaging program that implements the steps of the data packaging method as described above when the data packaging program is completed by a processor.
The method and the device realize that the data to be transmitted is received, the data type corresponding to the data to be transmitted is determined according to the data identification and the transmission requirement in the data to be transmitted, the packaging format code corresponding to the data to be transmitted is determined according to the data type, the corresponding data packaging format is determined according to the packaging format code, the data to be transmitted is converted into the corresponding data packaging packet according to the data packaging format, the corresponding data packaging rule is determined according to the data packaging format, and the data packaging packet is packaged according to the data packaging rule. Therefore, in the data packaging process, the data to be transmitted needs to be classified according to the data identification and the transmission requirement, then the packaging format code corresponding to the data to be transmitted is determined, the corresponding data packaging format is determined according to the packaging format code, then the corresponding data packaging rule is determined according to the data packaging format, and the data packaging packet is packaged through the data packaging rule, so that the data to be transmitted is designed according to the characteristics and the transmission requirement of the data to be transmitted, the data is packaged through different data packaging rules according to different classifications of the data to be transmitted, and the bandwidth loss is reduced.
Drawings
FIG. 1 is a flow chart of a first embodiment of the data encapsulation method of the present invention;
FIG. 2 is a diagram illustrating the encapsulation format of a message encapsulation packet according to a first embodiment of the data analysis method of the present invention;
FIG. 3 is a schematic diagram of a service flow encapsulation format of a service encapsulation packet according to a first embodiment of the data analysis method of the present invention;
FIG. 4 is a schematic diagram of a service package encapsulation format of a service package according to a first embodiment of the data analysis method of the present invention;
FIG. 5 is a diagram illustrating a message packet encapsulation rule according to a first embodiment of the data analysis method of the present invention;
FIG. 6 is a schematic diagram of a traffic encapsulation rule according to a first embodiment of the data analysis method of the present invention;
FIG. 7 is a schematic diagram of a service package encapsulation rule according to a first embodiment of the data analysis method of the present invention;
FIG. 8 is a schematic diagram of an input data format of system configuration information according to a first embodiment of the data analysis method of the present invention;
FIG. 9 is a schematic diagram of an input data format of message data according to a first embodiment of the data analysis method of the present invention;
fig. 10 is a schematic diagram of an input data format of service data according to the first embodiment of the data analysis method of the present invention;
FIG. 11 is a schematic diagram of the process of mapping the payload of a second embodiment of the data analysis method of the present invention into interleaved blocks;
FIG. 12 is a schematic diagram of a preferred structure of a data packaging device according to the present invention;
fig. 13 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The present invention provides a data packaging method, referring to fig. 1 to 11, fig. 1 is a schematic flow chart of a first embodiment of the data packaging method of the present invention; FIG. 2 is a diagram illustrating a message encapsulation packet encapsulation format according to a first embodiment of the data encapsulation method of the present invention; FIG. 3 is a schematic diagram of a service flow encapsulation format of a service encapsulation packet according to a first embodiment of the data encapsulation method of the present invention; FIG. 4 is a schematic diagram of a service package encapsulation format of a service package according to a first embodiment of the data encapsulation method of the present invention; FIG. 5 is a diagram illustrating message packet encapsulation rules of a first embodiment of the data encapsulation method according to the present invention; FIG. 6 is a schematic diagram illustrating a traffic encapsulation rule according to a first embodiment of the data encapsulation method of the present invention; FIG. 7 is a schematic diagram illustrating a service package encapsulation rule according to a first embodiment of the data encapsulation method of the present invention; FIG. 8 is a diagram illustrating an input data format of system configuration information according to a first embodiment of the data encapsulation method of the present invention; FIG. 9 is a diagram illustrating an input data format of message data according to a first embodiment of the data encapsulation method of the present invention; fig. 10 is a schematic diagram of an input data format of service data according to a first embodiment of the data encapsulation method of the present invention; fig. 11 is a schematic diagram illustrating a process of mapping payload to interleaving block according to a second embodiment of the data encapsulation method of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown or described.
The data encapsulation method comprises the following steps:
step S10, receiving the data to be transmitted, classifying according to the data identification and the transmission requirement in the data to be transmitted, and determining the data type corresponding to the data to be transmitted.
The digital broadcasting system receives data to be transmitted sent by upper-layer application, then obtains data identification in the data to be transmitted, determines the service type of the data to be transmitted according to the mapping relation between the data identification and the service type, obtains a data transmission mode corresponding to the data to be transmitted, classifies the data to be transmitted according to the service type and the data transmission mode, and determines the data type corresponding to the data to be transmitted.
The upper layer applications include, but are not limited to, a new digital broadcasting system, in particular, a co-existing frequency-modulation data broadcasting (CD-Radio) system in this embodiment, and other digital broadcasting systems. The service types include, but are not limited to, system configuration information, message data, and service data. The system configuration information includes, but is not limited to, physical layer transmitting end function control parameters, message data transmission control parameters, and service data transmission control parameters. The message data includes system message data and user message data, the system message data is from system configuration information and is used for transmitting control information in a physical layer, and the user message data is a function of an upper layer application and is used for transmitting brief data and determined content data. The service data includes service stream data and service packet data. The data transmission mode includes, but is not limited to, a message packet transmission mode, a service stream transmission mode, and a service packet transmission mode. Data types include, but are not limited to, physical layer configuration parameters, system information, user messages, traffic flows, and traffic packets.
Further, the step S10 includes:
step a, receiving the data to be transmitted, acquiring a data identifier and a data parameter transmission type in the data to be transmitted, classifying the data to be transmitted by combining the data identifier and the data parameter transmission type, and determining a data type corresponding to the data to be transmitted.
Specifically, the digital broadcasting system receives data to be transmitted sent by an upper layer application, then obtains a data identifier of a link layer interface in the data to be transmitted, determines a service type corresponding to the data to be transmitted according to a preset data mapping table in the digital broadcasting system, then obtains a data parameter transmission type in the data to be transmitted, classifies according to the service type and the data parameter transmission type, and determines a data type corresponding to the data to be transmitted.
The link layer interface is a part of a data format in data to be transmitted. The preset data mapping table is preset in the digital broadcasting system according to requirements, and the embodiment is not limited. The data parameter transmission types include, but are not limited to, system information packet transmission, user message packet transmission, service flow transmission, and service packet transmission, wherein the system information packet transmission and the user message packet transmission belong to message packet transmission. Message packet transmission is applied to the transmission of various types of message data. Both service flow transmission and service packet transmission are applied to the transmission process of service data. The service stream transmission is applied to a scene without integrity detection of data to be transmitted in the data transmission process. The service package transmission has certain structurality, can carry out integrity detection on the received data to be transmitted, and is mainly applied to scenes that the data to be transmitted is sensitive to data loss and accuracy in the data transmission process.
It should be noted that the data format of the data to be transmitted is data identifier + data length or data number + data transmission control parameter domain or upper application control parameter domain + data transmission system parameter domain or data content domain.
In this embodiment, for example, the preset mapping relationship between the data identifier and the service type in the data mapping table is system configuration information corresponding to the data identifier 0x00, message data corresponding to the data identifier 0x01, and service data corresponding to the data identifier 0x02, the data identifier in the data to be transmitted received by the digital broadcasting system is 0x01, the transmission type of the parameter of the data to be transmitted is obtained as user message packet transmission, and the digital broadcasting system determines that the data type of the data to be transmitted is received as user message.
Step S20, determining the packaging format code corresponding to the data to be transmitted according to the data type, determining the corresponding data packaging format according to the packaging format code, and converting the data to be transmitted into the corresponding data packaging package according to the data packaging format.
After the digital broadcasting system determines the data type corresponding to the data to be transmitted, the packaging format code corresponding to the data to be transmitted is determined according to the mapping relation between the data type and the packaging format code in the digital broadcasting system, then the data packaging format corresponding to the data to be transmitted is determined according to the mapping relation between the packaging format code and the data packaging format in the digital broadcasting system, and then the data to be transmitted is converted into the data packaging packet corresponding to the data packaging format.
It should be noted that, the mapping relationship between the data type and the package format code in the digital broadcasting system, and the mapping relationship between the package format code and the data package format in the digital broadcasting system are preset in the digital broadcasting system, and the embodiment is not limited.
Further, the step S20 includes:
step b, acquiring a format coding mapping table, and determining a packaging format code corresponding to the data to be transmitted in the format coding mapping table according to the data type;
and c, acquiring a packaging format mapping table, and determining a data packaging format corresponding to the data to be transmitted according to the packaging format mapping table and the packaging format code.
Specifically, the digital broadcasting system obtains a format coding mapping table in the digital broadcasting system, determines a package format code corresponding to data to be transmitted according to a mapping relation between a data type and the package format code in the format coding mapping table, obtains a package format mapping table in the digital broadcasting system, and determines a data package format corresponding to the data to be transmitted according to a mapping relation between the package format code and the data package format in the package format mapping table. The format coding mapping table and the package format mapping table are preset in the digital broadcasting system according to the requirement, and the embodiment is not limited.
In this embodiment, for example, the mapping relationship between the data type and the package format code in the format code mapping table is package format code 1 corresponding to system information, package format code 2 corresponding to user information, package format code 3 corresponding to service flow, and package format code 4 corresponding to service packet. The mapping relation between the package format code and the data package format in the package format mapping table is that the package format code 1 corresponds to a system message package format, the package format code 2 corresponds to a user message package format, and the package format code 3 corresponds to a service flow package format and the package format code 4 corresponds to a service package format. And if the data type of the data to be transmitted acquired by the digital broadcasting system is the user message, determining that the packaging format code of the data to be transmitted is 2, and the data packaging format is the packaging format of the user message package.
D, if the data packaging format is a message packaging format, converting the data to be transmitted into a message packaging packet;
and e, if the data packaging format is a service flow packaging format or a service package packaging format, converting the data to be transmitted into a service packaging packet.
Specifically, if the digital broadcasting system detects that the data encapsulation format of the acquired data to be transmitted is the message encapsulation format, the data to be transmitted is converted into a message encapsulation package corresponding to the data encapsulation format. If the digital broadcasting system detects that the data packaging format of the acquired data to be transmitted is a service stream packaging format or a service package packaging format, the data to be transmitted is converted into a service packaging packet corresponding to the data packaging format. The message package packaging format comprises a system message package packaging format and a user message package packaging format, and the corresponding message packaging package comprises a system message packaging package and a user message packaging package.
It should be noted that, referring to fig. 2, fig. 2 is a diagram illustrating an encapsulation format of a message encapsulation packet according to the present invention. The data encapsulation format of the message encapsulation packet is packet header + message data payload, the packet header comprises encapsulation format code, message data code, start identifier, end identifier and payload length, wherein the byte length of the encapsulation format code is 2 bytes, the byte length of the message data code is 6 bytes, the byte length of the start identifier is 1 byte, the byte length of the end identifier is 1 byte, the byte length of the payload length is 6 bytes, and the byte length of the message data payload is not limited. If the maximum byte length of the payload length of the single complete data to be transmitted is limited to M bytes, the maximum byte length of the message encapsulation packet converted into the corresponding data encapsulation format is M +2 bytes. Due to different spectrum patterns of the message encapsulation packets, capacities of message channels for transmitting the message encapsulation packets are different, wherein the message channels include a plurality of FEC (Forward Error Correction) channels with codes, that is, one message channel includes a plurality of message subchannels with codes.
Further, referring to fig. 3, fig. 3 is a service flow encapsulation format of the service encapsulation packet of the present invention. The service stream encapsulation format of the service encapsulation packet is packet header + payload segmentation, the packet header comprises binary code, reserved bit and payload length, wherein the byte length of the binary code is 2 bytes, the byte length of the reserved bit is 6 bytes, the byte length of the payload length is 8 bytes, and the byte length of the payload segmentation is not limited.
Further, referring to fig. 4, fig. 4 is a service package encapsulation format of the service encapsulation package of the present invention. The service package format of the service package packet is packet header + payload segmentation, the packet header comprises binary coding, counting coding, a starting identifier, an ending identifier and payload length, wherein the byte length of the binary coding is 2 bytes, the byte length of the counting coding is 4 bytes, the byte length of the starting identifier is 1 byte, the byte length of the ending identifier is 1 byte, the byte length of the payload length is 8 bytes, and the byte length of the payload segmentation is not limited. The service encapsulation packet is transmitted over a plurality of service subchannels with codes.
Step S30, determining the corresponding data encapsulation rule according to the data encapsulation format, and encapsulating the data encapsulation packet according to the data encapsulation rule.
The digital broadcasting system determines a data packaging rule corresponding to the data to be transmitted according to the mapping relation between the data packaging format and the data packaging rule in the digital broadcasting system, and then packages a data packaging packet corresponding to the data to be transmitted according to the data packaging rule. The mapping relationship between the data encapsulation format and the data encapsulation rule is preset in the digital broadcasting system, which is not limited in this embodiment.
Further, the step S30 includes:
step f, if the data packaging format is a message packaging format, determining the data packaging packet as a message packaging packet, and determining the data packaging rule as a message packaging rule;
step g, obtaining the residual capacity of the message channel, and detecting whether the residual capacity is greater than or equal to the first byte length of the message encapsulation packet;
step h, if the residual capacity is detected to be larger than or equal to the first byte length, whether a first residual capacity exists in a first message sub-channel is detected;
and step i, if the first residual capacity is detected to be absent, the message encapsulation packet is encapsulated to a second message subchannel.
Specifically, referring to fig. 5, fig. 5 is a message packet encapsulation rule of the present invention, if the digital broadcasting system detects that the data encapsulation format is the message packet encapsulation format, the digital broadcasting system determines that the data encapsulation packet is the message encapsulation packet, and determines that the data encapsulation rule is the message packet encapsulation rule, the digital broadcasting system obtains the remaining capacity of the message channel, and detects whether the remaining capacity is greater than or equal to the first byte length of the message encapsulation packet, if the remaining capacity is greater than or equal to the first byte length, it detects whether the first remaining capacity exists in the first message sub-channel, and if the remaining capacity is smaller than the first byte length, it encapsulates the message encapsulation packet into other message channels whose remaining capacity is greater than or equal to the first byte length. If the residual capacity is detected to be larger than or equal to the first byte length and the first residual capacity is detected not to exist, the message encapsulation packet is encapsulated to the second message sub-channel, if the first residual capacity is detected to exist, the first byte length is divided into the first message encapsulation packet with the size equal to the first residual capacity, the first message encapsulation packet is encapsulated to the first message sub-channel, and then the residual second message encapsulation packet is encapsulated to the second message sub-channel.
It should be noted that the same message encapsulation packet may be split into different message sub-channels, but cannot be split into different message channels.
In this embodiment, for example, the remaining capacity of the message channel is 10 bytes, the capacity of the first message sub-channel is 2 bytes, the capacity of the second message sub-channel is 8 bytes, and the byte length of the message encapsulation packet is 9 bytes, and the digital broadcasting system encapsulates the first message encapsulation packet, which is split into 2 bytes, into the first message sub-channel, and then encapsulates the second message encapsulation packet, which is 7 bytes remaining, into the second message sub-channel.
Step j, if the data packaging format is a service flow packaging format, determining the data packaging packet as a service packaging packet, and determining the data packaging rule as a service flow packaging rule;
step k, obtaining a first channel length of a first service sub-channel, and detecting whether a second byte length of the service encapsulation packet is smaller than the first channel length;
step l, if the length of the second byte is smaller than the length of the first channel, whether a first service encapsulation packet exists is detected;
and m, if the first service encapsulation packet is detected to exist, detecting the remaining second channel length of a second service sub-channel after the first service encapsulation packet is encapsulated, and encapsulating the service encapsulation packet to the first service sub-channel and the second service sub-channel in a segmented manner.
Specifically, referring to fig. 6, fig. 6 is a service flow encapsulation rule of the present invention, if the digital broadcasting system detects that the data encapsulation format is the service flow encapsulation format, the digital broadcasting system determines that the data encapsulation packet is the service encapsulation packet and determines that the data encapsulation rule is the service flow encapsulation rule, the digital broadcasting system obtains the first channel length of the first service subchannel and detects whether the second byte length of the service encapsulation packet is smaller than the first channel length, if the second byte length is smaller than the first channel length, the digital broadcasting system detects whether the first service encapsulation packet exists, if the first service encapsulation packet exists, the digital broadcasting system detects the remaining second channel length of the second service subchannel after the first service encapsulation packet is encapsulated, and splits the service encapsulation packet into the second service encapsulation packet with the length equal to the second channel length, and encapsulates the second service packet into the second service subchannel, and then packaging the rest third service packaging packet of the service packaging packet to the first service subchannel. And if the first service encapsulation packet is detected to be absent, directly encapsulating the service encapsulation packet to the first service sub-channel.
It should be noted that, when the remaining payload length of the service encapsulation packet is greater than or equal to the length of the corresponding service subchannel, the size of the service flow encapsulation is defined as the length of the service subchannel. One traffic encapsulation may encapsulate multiple traffic encapsulation packets.
Further, referring to fig. 7, fig. 7 is a service package encapsulation rule of the present invention, if the digital broadcasting system detects that the data package format is the service package format, the digital broadcasting system determines that the data package packet is the service package packet and determines that the data package rule is the service package encapsulation rule, the digital broadcasting system obtains the first channel length of the first service subchannel and detects whether the second byte length of the service package packet is smaller than the first channel length, if the second byte length is smaller than the first channel length, it detects whether the first service package packet exists, if the first service package packet exists, it detects the remaining second channel length of the second service subchannel after the first service package packet is packaged, and splits the service package packet into the second service package packet whose length is equal to the length of the second channel length, and encapsulates the second service package packet into the second service subchannel, and then packaging the rest third service packaging packet of the service packaging packet to the first service subchannel. And if detecting that the first service encapsulation packet does not exist, directly encapsulating the service encapsulation packet to a service subchannel.
It should be noted that, when the remaining payload length of the service encapsulation packet is greater than or equal to the length of the corresponding service subchannel, the size of the service packet encapsulation is defined as the length of the service subchannel. Only one service encapsulation packet can be encapsulated by one service encapsulation packet.
Further, the method for encapsulating data further comprises the following steps:
and n, after detecting that the upper layer application sends a data transmission instruction, sending an input data format to the upper layer application so that the upper layer application converts the data format of the data to be sent into the input data format to obtain the data to be transmitted.
The digital broadcasting system sends an input data format to the upper layer application after detecting that the upper layer application sends a data transmission instruction, and the upper layer application converts the data format of the data to be sent into the input data format after receiving the input data format to obtain the data to be transmitted and sends the data to be transmitted to the digital broadcasting system.
Referring to fig. 8, fig. 8 is an input data format of the system configuration information of the present invention, where the input data format of the system configuration information is data identifier + data length + upper application control parameter domain + data transmission system parameter domain. The byte length of the data identifier is 1 byte, and 0x00 is represented as system configuration information. The data length is 1 byte in length, which represents the content length of the system configuration information, and does not include the data identification and the data length.
The upper application control parameter domain comprises system starting time, time service function indication, frequency spectrum mode and frame length. The byte length of the system starting time is 4 bytes, 0 represents immediate starting, other values represent the starting transmission time of the physical frame signal, and the starting time corresponds to the initial time of the time service starting when the time service function is started. The byte length of the time service function indication is 1 byte, and the time service function is indicated whether the system starts the time service function or not, and the time service message is sent. The byte length of the frequency spectrum mode is 1 byte, and 8 frequency spectrum modes exist in a symbiotic frequency modulation data broadcasting system. The length of the frame is 1 byte in byte length, and the value represents the number of sub-frames contained in a physical frame.
The parameter domain of the data transmission system comprises service quantity, service number LDPC (low density check code) block number, coding code rate, interleaving depth, mapping mode, data packaging format, spreading multiplying power and authorization sequence. The byte length of the service number is 1 byte, and the byte length represents the number of services carried in the physical signal frame. The byte length of the service number is 1 byte, and represents the identification and arrangement number of the service. The byte length of the LDPC block number is 1 byte, and the value is represented as the FEC encoding block number of the physical intra-frame service. The byte length of the coding rate is 1 byte, and represents the corresponding number in the FEC coding rate. The byte length of the interleaving depth is 1 byte, which represents the interleaving depth of the service. The byte length of the mapping mode is 1 byte, and represents the constellation mapping mode of the service. The byte length of the data encapsulation format is 1 byte, 1 represents service flow, and 2 represents service packet. The byte length of the spreading factor is 1 byte, which represents the spreading parameter when the service needs spreading. The grant sequence has a byte length of 1 byte and is used to initialize an initial PN (PN Code) value of a physical layer scrambling Code.
Further, referring to fig. 9, fig. 9 is an input data format of the message data according to the present invention, where the input data format of the message data is data id + message number + message data transmission control parameter field + message data content field. The type corresponding to the message code (decimal representation) and the message code is that the message code 0 corresponds to a control message, the message code 1 corresponds to a time service message, the message code 2 corresponds to an emergency message, the message code 3 corresponds to a service description message, the message code 4 corresponds to an RTK (Real-time Kinematic) message, and the message codes 5 to 63 correspond to other user messages. Wherein, the byte length of the data identifier is 1 byte, and 0x01 represents the message data. The byte length of the message number is 1 byte, and the value range is 1 to 63.
The message data transmission control parameter field includes a message time stamp, a number of repeated broadcasts, and a broadcast interval. The byte length of the message time stamp is 1 byte, and the message time stamp represents the sending time information of the message. The byte length of the repeated broadcast times is 1 byte, which indicates that the broadcast is finished after the message is repeatedly broadcast for a plurality of times, 0 indicates no retransmission, 255 indicates infinite retransmission, and the other values indicate the actual retransmission times. The byte length of the play interval is 1 byte, indicating. In units of physical frames, 0 indicates that each physical frame is broadcast, and the other values indicate how many physical frames are broadcast again.
The message data content field includes a message data length and a message data payload. The length of the message data is 1 byte, which represents the length of the message data payload, and the unit is byte, and the value range is 1 to 60. The length of the message data payload is not limited, and the message data payload represents the payload content of the message data and corresponds to a piece of complete message data defined by a user.
Further, referring to fig. 10, fig. 10 is a diagram illustrating an input data format of the service data according to the present invention, where the input data format of the service data is data identifier + service number + service data transmission control parameter field + service data content field. Wherein, the byte length of the data identifier is 1 byte, and 0x02 represents service data. The byte length of the service number is 1 byte, which represents the arrangement number of the service, and the arrangement order of the service on the physical layer and the arrangement order of the modulation parameters corresponding to the service data in the system control information message are given by this number as a number of the priority. The service data transmission control parameter field includes a service time stamp, the length of the byte is 4 bytes, and the transmission time information of the service is represented (0 represents immediate sequential transmission). The service data content field comprises a service length and a service payload, wherein the byte length of the service length is 2 bytes, the length of the service payload is represented, and the unit is byte. The length of the service payload byte is not limited, and represents the content of the service payload and corresponds to a service data packet of a user.
In the embodiment, data to be transmitted is received, classified according to data identifiers and transmission requirements in the data to be transmitted, a data type corresponding to the data to be transmitted is determined, a packaging format code corresponding to the data to be transmitted is determined according to the data type, a corresponding data packaging format is determined according to the packaging format code, the data to be transmitted is converted into a corresponding data packaging packet according to the data packaging format, a corresponding data packaging rule is determined according to the data packaging format, and the data packaging packet is packaged according to the data packaging rule. Therefore, in the data packaging process, the data to be transmitted needs to be classified according to the data identification and the transmission requirement, then the packaging format code corresponding to the data to be transmitted is determined, the corresponding data packaging format is determined according to the packaging format code, then the corresponding data packaging rule is determined according to the data packaging format, and the data packaging packet is packaged through the data packaging rule, so that the data to be transmitted is designed according to the characteristics and the transmission requirement of the data to be transmitted, the data is packaged through different data packaging rules according to different classifications of the data to be transmitted, and the bandwidth loss is reduced.
Further, a second embodiment of the data encapsulation method of the present invention is provided.
The second embodiment of the data encapsulation method differs from the first embodiment of the data encapsulation method in that the data encapsulation method further includes:
and step o, determining a data output format corresponding to the data to be transmitted, converting the packaged data to be transmitted into a transmission data source of the data output format, and sending the transmission data source to a physical layer.
Specifically, the digital broadcasting system determines a corresponding output data identifier according to the data type of the data to be transmitted, determines a corresponding data output format according to the mapping relationship between the data output identifier and the data output format in the digital broadcasting system, converts the packaged data to be transmitted into a transmission data source corresponding to the data output format, and sends the transmission data source to the physical layer. The mapping relationship between the data output identifier and the data output format determines that the corresponding data output format is preset in the digital broadcasting system, which is not limited in this embodiment.
The output data format of the system configuration information is data output identification + data length + upper application control parameter domain + data transmission system parameter domain. The byte length of the data output identifier is 1 byte, and 0x30 is expressed as a system configuration information output format. The data length is 1 byte in length, which represents the content length of the system configuration information, and does not include the data identification and the data length.
The upper application control parameter domain comprises system starting time, time service function indication, frequency spectrum mode and frame length. The byte length of the system starting time is 4 bytes, 0 represents the instant starting, other values represent the starting emission time of the physical frame signal, and the starting time corresponds to the initial time of the time service starting when the time service function is started. The byte length of the time service function indication is 1 byte, and the time service function is indicated whether the system starts the time service function or not, and the time service message is sent. The byte length of the frequency spectrum mode is 1 byte, and 8 frequency spectrum modes exist in a symbiotic frequency modulation data broadcasting system. The length of the frame is 1 byte in byte length, and the value is taken to indicate the number of sub-frames contained in a physical frame.
The parameter domain of the data transmission system comprises service quantity, service number LDPC (low density check code) block number, coding code rate, interleaving depth, mapping mode, data packaging format, spreading multiplying power and authorization sequence. The byte length of the service number is 1 byte, and the number of the services carried in the physical signal frame is represented. The byte length of the service number is 1 byte, and represents the identification and arrangement number of the service. The byte length of the LDPC block number is 1 byte, and the value is represented as the FEC encoding block number of the physical intra-frame service. The byte length of the coding rate is 1 byte, and represents the corresponding number in the FEC coding rate. The byte length of the interleaving depth is 1 byte, which represents the interleaving depth of the service. The byte length of the mapping mode is 1 byte, and represents the constellation mapping mode of the service. The byte length of the data encapsulation format is 1 byte, 1 represents service flow, and 2 represents service packet. The byte length of the spreading factor is 1 byte, which represents the spreading parameter when the service needs spreading. The grant sequence has a byte length of 1 byte and is used to initialize an initial PN (PN Code) value of a physical layer scrambling Code.
Further, the output data format of the message data is data output identification + data length + message data transmission control parameter field + message packet list. Wherein, the byte length of the data output identifier is 1 byte, and 0x04 represents the message data output format. The data length is 2 bytes in length, which indicates the length from the start of the time stamp to the end of the message packet (including the padding data), and is expressed in bytes. The message data transmission control parameter field includes a time stamp, the byte length is 4 bytes, 0 indicates immediate transmission, and other values correspond to the start time of the physical frame signal. The message packet list includes a control information message packet, a message data encapsulation packet, a service padding packet, and padding data. Wherein the length of the control information message packet is fixed to 16 bytes. The message data encapsulation package 1 represents a message data encapsulation package 1 obtained by encapsulating according to the real-time condition of the message data, the message data encapsulation package 2 represents a message data encapsulation package 2 obtained by encapsulating according to the real-time condition of the message data, and the message data encapsulation package n represents a message data encapsulation package n obtained by encapsulating according to the real-time condition of the message data, wherein n is any integer value greater than or equal to 1, and the embodiment is not limited. The service filler packet has a byte length of 1 byte, which is indicated by 0xc 0. The padding data is all 0 s.
Further, the input data format of the service data is data output identification + data length + service data transmission control parameter domain + service data encapsulation listed data domain. Wherein, the byte length of the data output identifier is 1 byte, and 0x05 represents the service data output format. The service data transmission control parameter field comprises 4 bytes of timestamp byte length, 0 represents immediate transmission, and other values correspond to the starting time of the physical frame signal.
The data field after the service data packaging column comprises a service number, an interweaving number, a data length, a service data field, a service filling packet and filling data. The byte length of the service number is 1 byte, and the service number corresponds to the transmission content. The byte length of the interleaving number is 1 byte, which indicates that when the physical frame is divided into a plurality of interleaving blocks, the service should be sequentially sent to the physical layer according to the sequence of the interleaving blocks. The data length is 2 bytes in length, and represents the total length of the service data field + service padding packet + padding data, and the unit is byte. And the service data field indicates that the service data field contains a plurality of service encapsulation packets (service flow encapsulation packets or service packet encapsulation packets), and the total length meets the requirement of the physical layer on the data volume of one interleaved block. The service filler packet has a byte length of 1 byte, which is indicated by 0xc 0. The padding data is all 0. The service data field, the service filling packet and the filling data form a physical layer interleaving block.
It should be noted that, referring to fig. 11, fig. 11 is a process of mapping a service payload to an interleaving block, in a symbiotic fm data broadcasting system, a service encapsulation packet is filled into a service data field of link layer service data by interleaving block units according to service differentiation, when the service data field is not enough to form a complete physical layer interleaving block, the service encapsulation packet is completely supplemented with the service padding packet, and the service data field, the padding packet, and the padding data form a physical layer interleaving block. After the physical layer interweaving block adds necessary data transmission format, the formed link layer service data is transmitted to the physical layer, and the physical layer completes the modulation and mapping of the service data according to the description of the modulation parameter of each service in the physical layer configuration information table. The link layer transmits the link layer service data to the physical layer by using the service interleaving blocks as basic units, and when the link layer service data is transmitted to the physical layer, each link layer service data only contains the data of one interleaving block of one service. When the service comprises a plurality of interleaving blocks, link layer service data comprising the interleaving blocks of each physical layer are transmitted in sequence according to the sequence of the interleaving blocks. When the digital broadcasting system comprises multiple services, all physical layer interleaved blocks of one service are transmitted in sequence according to the sequence of service numbers, and then data of the next service are transmitted.
In the embodiment, the data output format corresponding to the data to be transmitted is determined, and the packaged data to be transmitted is converted into the transmission data source with the data output format and is sent to the physical layer. Therefore, in the embodiment, by coordinating the data conversion relationship between the upper application and the physical layer, the data to be transmitted is sorted and then is downloaded to the physical layer, so that the transmission quality is ensured, and the operation difficulty of the upper application and the physical layer is simplified.
In addition, the present invention also provides a data packaging apparatus, referring to fig. 12, the data packaging apparatus including:
a receiving module 10, configured to receive data to be transmitted;
the classification module 20 is configured to classify the data to be transmitted according to the data identifier and the transmission requirement in the data to be transmitted, and determine a data type corresponding to the data to be transmitted;
the determining module 30 is configured to determine a package format code corresponding to the data to be transmitted according to the data type, and determine a corresponding data package format according to the package format code;
the conversion module 40 is configured to convert the data to be transmitted into a corresponding data encapsulation package according to the data encapsulation format;
the determining module 30 is further configured to determine a corresponding data encapsulation rule according to the data encapsulation format; and the encapsulating module 50 is configured to encapsulate the data to be transmitted according to the data encapsulation rule.
Further, the determining module 30 is further configured to determine that the data encapsulation packet is a message encapsulation packet and determine that the data encapsulation rule is a message encapsulation rule if the data encapsulation format is a message encapsulation format.
Further, the package module 50 includes:
a first obtaining unit, configured to obtain a remaining capacity of a message channel;
a first detecting unit, configured to detect whether the remaining capacity is greater than or equal to a first byte length of the message encapsulation packet; if the residual capacity is detected to be larger than or equal to the first byte length, detecting whether a first residual capacity exists in a first message sub-channel;
a first encapsulating unit, configured to encapsulate the message encapsulation packet to a second message subchannel if it is detected that the first remaining capacity does not exist.
Further, the determining module 30 is further configured to determine that the data encapsulation packet is a service encapsulation packet and determine that the data encapsulation rule is a service flow encapsulation rule if the data encapsulation format is a service flow encapsulation format.
Further, the package module 50 includes:
a second obtaining unit, configured to obtain a first channel length of the first service subchannel;
a second detecting unit, configured to detect whether a second byte length of the service encapsulation packet is smaller than the first channel length; if the length of the second byte is smaller than the length of the first channel, whether a first service encapsulation packet exists is detected; if the first service encapsulation packet is detected to exist, detecting the remaining second channel length of a second service sub-channel after the first service encapsulation packet is encapsulated;
and the second encapsulation unit is used for encapsulating the service encapsulation packet to the first service sub-channel and the second service sub-channel in a segmented manner.
Further, the determining module 30 includes:
a third obtaining unit, configured to obtain a format coding mapping table;
the determining unit is used for determining a packaging format code corresponding to the data to be transmitted in the format code mapping table according to the data type;
the third obtaining unit is further configured to obtain a package format mapping table;
the determining unit is further configured to determine a data packaging format corresponding to the data to be transmitted according to the packaging format mapping table and the packaging format code.
Further, the conversion module is further configured to convert the data to be transmitted into a message encapsulation package if the data encapsulation format is a message encapsulation format; and if the data packaging format is a service flow packaging format or a service package packaging format, converting the data to be transmitted into a service packaging packet.
Further, the receiving module 10 is further configured to receive the data to be transmitted.
Further, the classification module 20 includes:
the fourth acquisition unit is used for acquiring the data identifier and the data parameter transmission type in the data to be transmitted;
and the classification unit is used for classifying the data to be transmitted by combining the data identification and the data parameter transmission type.
Further, the determining module 30 is further configured to determine a data type corresponding to the data to be transmitted.
Further, the data packaging device further comprises:
the sending module is used for sending an input data format to the upper layer application after detecting that the upper layer application sends a data transmission instruction, so that the upper layer application converts the data format of the data to be sent into the input data format to obtain the data to be transmitted.
The specific implementation of the data-based packaging apparatus of the present invention is substantially the same as that of each embodiment of the data-based packaging method, and is not described herein again.
In addition, the invention also provides a data packaging system. As shown in fig. 13, fig. 13 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
Fig. 13 is a schematic structural diagram of a hardware operating environment of a data encapsulation system.
As shown in fig. 13, the data encapsulation system may include: a processor 1001, such as a CPU (Central Processing Unit), a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. A communication bus 1002 is used to enable connection communications between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a keyboard (board), and the optional user interface 1003 may include a standard wired interface (e.g., a USB (Universal Serial Bus) interface), and a wireless interface (e.g., a bluetooth interface). The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the data packaging system may further include RF (Radio Frequency) circuits, sensors, WiFi modules, and the like.
Those skilled in the art will appreciate that the packaging system architecture of data shown in FIG. 13 does not constitute a limitation of the packaging system of data, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 13, a memory 1005, which is a kind of computer storage medium, may include therein an operating device, a network communication module, a user interface module, and a package program of data. Among them, the operation device is a program that manages and controls the hardware and software resources of the package system of data, a package program that supports data, and the execution of other software or programs.
In the data encapsulation system shown in the figure, the user interface 1003 is mainly used for upper layer application to receive a data input format sent by the digital broadcasting system and send data to be transmitted to the digital broadcasting system; the network interface 1004 is mainly used in a digital broadcasting system to receive data to be transmitted sent by an upper application and send encapsulated data to be transmitted to a physical layer; the processor 1001 may be configured to call a packaging program of data stored in the memory 1005 and complete the steps of the control method of the packaging system of data as described above.
The specific implementation of the data encapsulation system of the present invention is basically the same as the embodiments of the data encapsulation method, and is not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a data encapsulation program is stored on the computer-readable storage medium, and when the data encapsulation program is completed by a processor, the steps of the data encapsulation method described above are implemented.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the data encapsulation method, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation manner in many cases. Based on such understanding, the technical solution of the present invention may be embodied in the form of software goods, which are stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and include instructions for enabling a data packaging system to complete the method according to the embodiments of the present invention.

Claims (8)

1. A method for encapsulating data, the method comprising the steps of:
receiving data to be transmitted, classifying according to data identification and transmission requirements in the data to be transmitted, and determining a data type corresponding to the data to be transmitted;
determining a packaging format code corresponding to the data to be transmitted according to the data type, determining a corresponding data packaging format according to the packaging format code, and converting the data to be transmitted into a corresponding data packaging packet according to the data packaging format;
determining a corresponding data packaging rule according to the data packaging format, and packaging the data packaging packet according to the data packaging rule;
determining a corresponding data encapsulation rule according to the data encapsulation format, wherein the step of encapsulating the data encapsulation packet by the data encapsulation rule comprises the following steps:
if the data packaging format is the message packaging format, determining the data packaging packet as a message packaging packet, and determining the data packaging rule as a message packaging rule;
acquiring the residual capacity of a message channel, and detecting whether the residual capacity is greater than or equal to the first byte length of the message encapsulation packet;
if the residual capacity is detected to be larger than or equal to the first byte length, detecting whether a first residual capacity exists in a first message sub-channel or not;
if the first residual capacity is detected to be absent, the message encapsulation packet is encapsulated to a second message sub-channel;
the step of determining a corresponding data encapsulation rule according to the data encapsulation format, and encapsulating the data encapsulation packet according to the data encapsulation rule comprises the following steps:
if the data packaging format is a service flow packaging format, determining the data packaging packet as a service packaging packet, and determining the data packaging rule as a service flow packaging rule;
acquiring a first channel length of a first service sub-channel, and detecting whether a second byte length of the service encapsulation packet is smaller than the first channel length;
if the length of the second byte is smaller than the length of the first channel, whether a first service encapsulation packet exists is detected;
and if the first service encapsulation packet is detected to exist, detecting the remaining second channel length of a second service sub-channel after the first service encapsulation packet is encapsulated, and encapsulating the service encapsulation packet to the first service sub-channel and the second service sub-channel in a segmented manner.
2. The data packaging method according to claim 1, wherein the step of determining the packaging format code corresponding to the data to be transmitted according to the data type includes:
acquiring a format coding mapping table, and determining a packaging format code corresponding to the data to be transmitted in the format coding mapping table according to the data type;
and acquiring a packaging format mapping table, and determining a data packaging format corresponding to the data to be transmitted according to the packaging format mapping table and the packaging format code.
3. The method for encapsulating data according to claim 1, wherein the step of converting the data to be transmitted into the corresponding data encapsulation package according to the data encapsulation format comprises:
if the data packaging format is a message packaging format, converting the data to be transmitted into a message packaging packet;
and if the data packaging format is a service flow packaging format or a service package packaging format, converting the data to be transmitted into a service packaging packet.
4. The data encapsulation method according to claim 1, wherein the step of receiving the data to be transmitted, classifying the data according to the data identifier and the transmission requirement in the data to be transmitted, and determining the data type corresponding to the data to be transmitted comprises:
and receiving the data to be transmitted, acquiring a data identifier and a data parameter transmission type in the data to be transmitted, classifying the data to be transmitted by combining the data identifier and the data parameter transmission type, and determining the data type corresponding to the data to be transmitted.
5. The data encapsulation method according to any one of claims 1 to 4, wherein before the steps of receiving data to be transmitted, classifying the data according to data identifiers and transmission requirements in the data to be transmitted, and determining a data type corresponding to the data to be transmitted, the method further comprises:
and after detecting that the upper layer application sends a data transmission instruction, sending an input data format to the upper layer application so that the upper layer application converts the data format of the data to be sent into the input data format to obtain the data to be transmitted.
6. An apparatus for packaging data, the apparatus comprising:
the receiving module is used for receiving data to be transmitted;
the classification module is used for classifying according to the data identification and the transmission requirement in the data to be transmitted and determining the data type corresponding to the data to be transmitted;
the determining module is used for determining a packaging format code corresponding to the data to be transmitted according to the data type and determining a corresponding data packaging format according to the packaging format code;
the conversion module is used for converting the data to be transmitted into a corresponding data packaging packet according to the data packaging format;
the determining module is further used for determining a corresponding data packaging rule according to the data packaging format;
the encapsulation module is used for encapsulating the data to be transmitted according to the data encapsulation rule;
wherein the encapsulation module is further configured to:
if the data packaging format is the message packaging format, determining the data packaging packet as a message packaging packet, and determining the data packaging rule as a message packaging rule;
acquiring the residual capacity of a message channel, and detecting whether the residual capacity is greater than or equal to the first byte length of the message encapsulation packet;
if the residual capacity is detected to be larger than or equal to the first byte length, detecting whether a first residual capacity exists in a first message sub-channel;
if the first residual capacity is detected to be absent, the message encapsulation packet is encapsulated to a second message sub-channel;
the encapsulation module is further configured to:
if the data packaging format is a service flow packaging format, determining the data packaging packet as a service packaging packet, and determining the data packaging rule as a service flow packaging rule;
acquiring a first channel length of a first service sub-channel, and detecting whether a second byte length of the service encapsulation packet is smaller than the first channel length;
if the second byte length is smaller than the first channel length, detecting whether a first service encapsulation packet exists or not;
and if the first service encapsulation packet is detected to exist, detecting the remaining second channel length of a second service sub-channel after the first service encapsulation packet is encapsulated, and encapsulating the service encapsulation packet to the first service sub-channel and the second service sub-channel in a segmented manner.
7. A system for encapsulating data, the system comprising a memory, a processor and a program for encapsulating data stored in the memory and running on the processor, the program for encapsulating data implementing the steps of the method for encapsulating data according to any one of claims 1 to 5 when the program for encapsulating data is executed by the processor.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a packaging program of data, which when completed by a processor implements the steps of the packaging method of data according to any one of claims 1 to 5.
CN202010690509.9A 2020-07-16 2020-07-16 Data packaging method, device and system and computer readable storage medium Active CN111885038B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010690509.9A CN111885038B (en) 2020-07-16 2020-07-16 Data packaging method, device and system and computer readable storage medium
PCT/CN2021/098392 WO2022012210A1 (en) 2020-07-16 2021-06-04 Data packaging method, device, and system, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010690509.9A CN111885038B (en) 2020-07-16 2020-07-16 Data packaging method, device and system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111885038A CN111885038A (en) 2020-11-03
CN111885038B true CN111885038B (en) 2022-06-10

Family

ID=73155727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010690509.9A Active CN111885038B (en) 2020-07-16 2020-07-16 Data packaging method, device and system and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111885038B (en)
WO (1) WO2022012210A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885038B (en) * 2020-07-16 2022-06-10 深圳思凯微电子有限公司 Data packaging method, device and system and computer readable storage medium
CN114386368B (en) * 2022-03-23 2022-07-19 百芯智能制造科技(深圳)有限公司 Processing method and processing device for packaging specification item data

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0982969A2 (en) * 1998-08-27 2000-03-01 Nortel Networks Corporation Payload mapping in synchronous networks
CN101212413A (en) * 2006-12-30 2008-07-02 中兴通讯股份有限公司 Mobile multimedia broadcast data transmission method
WO2008154779A1 (en) * 2007-06-19 2008-12-24 Zte Corporation Apparatus and method for encapsulating data
CN101692675A (en) * 2009-10-20 2010-04-07 中国电子科技集团公司第二十八研究所 Multichannel intelligent data communication processing system
CN103905922A (en) * 2014-03-18 2014-07-02 深圳市云宙多媒体技术有限公司 Streaming media protocol encapsulation method and device based on http protocol
WO2016187813A1 (en) * 2015-05-26 2016-12-01 华为技术有限公司 Data transmission method and device for photoelectric hybrid network
CN106411692A (en) * 2016-06-29 2017-02-15 宁波市由乐讯通讯科技有限公司 Improved method and system enabling information synchronization between mobile end and server end
CN106549989A (en) * 2015-09-17 2017-03-29 腾讯科技(深圳)有限公司 A kind of data transmission method and its system, user terminal, application server
CN108965484A (en) * 2018-09-30 2018-12-07 深圳市酷达通讯有限公司 A kind of transmission method of internet of things data, system and terminal
CN109450875A (en) * 2018-10-23 2019-03-08 清华大学 MAC layer packaging method and device
CN109814863A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 A kind of processing method, device, computer equipment and computer storage medium for requesting returned data
CN111918091A (en) * 2020-08-11 2020-11-10 四川九州电子科技股份有限公司 Method for realizing multimedia program distribution and satellite television live broadcast system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2673924A4 (en) * 2011-02-11 2014-12-10 Intel Corp Media stream over pass through mechanism
US20150049163A1 (en) * 2013-03-15 2015-02-19 James Paul Smurro Network system apparatus and method of use adapted for visual neural networking with multi-channel multiplexed streaming medical imagery and packetized clinical informatics
US9137216B2 (en) * 2013-08-13 2015-09-15 Verizon Patent And Licensing Inc. Session layer data security
CN106656751A (en) * 2016-12-05 2017-05-10 北京中交兴路信息科技有限公司 Data communication method and device
TWI685243B (en) * 2018-10-09 2020-02-11 孕龍科技股份有限公司 Method for displaying bus packet format of logic analyzer
CN111885038B (en) * 2020-07-16 2022-06-10 深圳思凯微电子有限公司 Data packaging method, device and system and computer readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0982969A2 (en) * 1998-08-27 2000-03-01 Nortel Networks Corporation Payload mapping in synchronous networks
CN101212413A (en) * 2006-12-30 2008-07-02 中兴通讯股份有限公司 Mobile multimedia broadcast data transmission method
WO2008154779A1 (en) * 2007-06-19 2008-12-24 Zte Corporation Apparatus and method for encapsulating data
CN101692675A (en) * 2009-10-20 2010-04-07 中国电子科技集团公司第二十八研究所 Multichannel intelligent data communication processing system
CN103905922A (en) * 2014-03-18 2014-07-02 深圳市云宙多媒体技术有限公司 Streaming media protocol encapsulation method and device based on http protocol
CN106664290A (en) * 2015-05-26 2017-05-10 华为技术有限公司 Data transmission method and device for photoelectric hybrid network
WO2016187813A1 (en) * 2015-05-26 2016-12-01 华为技术有限公司 Data transmission method and device for photoelectric hybrid network
CN106549989A (en) * 2015-09-17 2017-03-29 腾讯科技(深圳)有限公司 A kind of data transmission method and its system, user terminal, application server
CN106411692A (en) * 2016-06-29 2017-02-15 宁波市由乐讯通讯科技有限公司 Improved method and system enabling information synchronization between mobile end and server end
CN108965484A (en) * 2018-09-30 2018-12-07 深圳市酷达通讯有限公司 A kind of transmission method of internet of things data, system and terminal
CN109450875A (en) * 2018-10-23 2019-03-08 清华大学 MAC layer packaging method and device
CN109814863A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 A kind of processing method, device, computer equipment and computer storage medium for requesting returned data
CN111918091A (en) * 2020-08-11 2020-11-10 四川九州电子科技股份有限公司 Method for realizing multimedia program distribution and satellite television live broadcast system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Reliable Periodic Safety Message Broadcasting in VANETs Using Network Coding;Behnam Hassanabadi et al;《IEEE Transactions on Wireless Communications》;20140109;全文 *
数据广播业务的监测实现;陈彪;《光电数字网络》;20100331;全文 *

Also Published As

Publication number Publication date
CN111885038A (en) 2020-11-03
WO2022012210A1 (en) 2022-01-20

Similar Documents

Publication Publication Date Title
CN111885038B (en) Data packaging method, device and system and computer readable storage medium
KR102035259B1 (en) Apparatus and method for transmitting and receiving signalling information in a digital broadcast system
CA2945747C (en) Transmission apparatus, transmission method, reception apparatus, and reception method
KR101995314B1 (en) Method and apparatus for transmitting/receiving signalling information for mpeg mmt in a dvb terrestrial broadcasting system
US7830827B2 (en) Method and device of handling multi-user/multi-service
CN103650431B (en) Method of transmitting video data and device
KR100918748B1 (en) Apparatus and method for transmitting/receiving packet of multi user in a mobile communication system
CN101459654A (en) Multi-protocol service data package parsing method, receiving terminal and sending terminal
TW201731273A (en) Data-processing device and data-processing method
RU2471307C2 (en) Transmitting device, receiving device, mobile station and basic radio station
US20230239770A1 (en) Method and device for wireless transmission
CN113938858A (en) Communication method of V2X protocol stack
CN110944003A (en) File transmission method and electronic equipment
AU2006290994B2 (en) Method for indicating padding in a digital mobile radio system
US20180146077A1 (en) Method and apparatus for determining processing mode for data packet
CN113438633B (en) Communication data processing method, terminal and computer readable storage medium
WO2008083552A1 (en) Multiplex transmission interface method of electronic service guide
CN106134207A (en) Dispensing device, sending method, reception device and method of reseptance
CN101325505B (en) Transmission method for multiplexed data flow
CN111490907B (en) Method and device for determining VXLAN network performance parameters
CN112436919B (en) Streaming data transmission method, device, equipment and computer readable storage medium
CN101426005B (en) IP data packet packaging, sending and receiving method for wireless broadcast system
CN100583699C (en) A front-end processing system and its service dispatching method
CN113141520B (en) Video stream transmission method and device, electronic equipment and storage medium
KR100799538B1 (en) Apparatus for transmitting and receiving broadcasting and communication data in interactive satellite communication system based on DVB-S2

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