CN114257338B - Data processing method and device, communication system and communication device, equipment and medium - Google Patents

Data processing method and device, communication system and communication device, equipment and medium Download PDF

Info

Publication number
CN114257338B
CN114257338B CN202111420025.3A CN202111420025A CN114257338B CN 114257338 B CN114257338 B CN 114257338B CN 202111420025 A CN202111420025 A CN 202111420025A CN 114257338 B CN114257338 B CN 114257338B
Authority
CN
China
Prior art keywords
field
indication field
data
indication
value
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
CN202111420025.3A
Other languages
Chinese (zh)
Other versions
CN114257338A (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.)
Auctus Technologies Co ltd
Original Assignee
Auctus Technologies 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 Auctus Technologies Co ltd filed Critical Auctus Technologies Co ltd
Priority to CN202111420025.3A priority Critical patent/CN114257338B/en
Publication of CN114257338A publication Critical patent/CN114257338A/en
Application granted granted Critical
Publication of CN114257338B publication Critical patent/CN114257338B/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
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/0003Software-defined radio [SDR] systems, i.e. systems wherein components typically implemented in hardware, e.g. filters or modulators/demodulators, are implented using software, e.g. by involving an AD or DA conversion stage such that at least part of the signal processing is performed in the digital domain
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0048Allocation of pilot signals, i.e. of signals known to the receiver

Abstract

The present application relates to the field of communications, and in particular, to a data processing method and apparatus, a communication system, a communication apparatus, a communication device, and a storage medium. The method comprises the following steps: generating transmission data carrying indication information according to effective data to be transmitted, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of the filling bits contained in the data frame of the last frame; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values; and transmitting the transmission data carrying the indication information. The embodiment of the application can reduce the number of bits used for indicating the number of the filling bits in the data header, thereby enabling the header part to reserve more bits for other information related to the data call.

Description

Data processing method and device, communication system and communication device, equipment and medium
Technical Field
The present application relates to the field of communications, and in particular, to a data processing method, apparatus, communication system, communication apparatus, communication device, and storage medium.
Background
In a wireless communication system, data transmission usually has the smallest unit, therefore, in a data transmission, usually the last transmission unit only contains part of valid data, and other data are all padding bits, so that in order to make the receiving side know to distinguish the valid data and the padding bits in a unit, usually the sending side will transmit information of the number of the padding bits in a specific signaling. For example, in a DMR (Digital Mobile Radio) system, three ways of indicating the number of padding bits are defined in a data call header for different data applications, one is to indicate the number of padding bits by using an 8-bit field, one is to indicate the number of padding bit small blocks (4 bits per small block) by using a 5-bit field, and the last is to indicate by using a 5-bit field.
However, the current approach for indicating the number of padding bits still occupies many bits in the data call header, which makes it impossible to transmit more other information related to the data call in the data call header.
Disclosure of Invention
The present application provides a data processing method, an apparatus, a communication system, a communication apparatus, a communication device, and a storage medium, which are directed to the above disadvantages or shortcomings, and embodiments of the present application can further reduce the number of bits used to indicate the number of padding bits in a data header, so that more bits can be reserved in the header portion for other information related to a data call.
The present application provides, according to a first aspect, a data processing method, which, in one embodiment, includes:
generating transmission data carrying indication information according to effective data to be transmitted, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of the filling bits contained in the data frame of the last frame;
the indication information includes a field value of a first indication field in a data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values;
and transmitting the transmission data carrying the indication information.
The present application provides another data processing method according to a second aspect, which in one embodiment includes:
receiving transmission data which is sent by a sending end and carries indication information, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information includes a field value of a first indication field in a data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values;
the number of padding bits contained in the last frame data frame is determined according to the indication information.
The present application provides a communication system according to a third aspect, which in one embodiment includes a transmitting end and a receiving end;
the sending end is used for generating transmission data carrying the indication information according to effective data to be sent and sending the transmission data carrying the indication information, and the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames;
the receiving end is used for receiving transmission data carrying indication information, the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames, the number of filling bits contained in the last frame data frame is determined according to the indication information, and effective data is extracted from the N frame data frames according to the number of the filling bits;
the indication information comprises a field value of a first indication field in the data header; the field value of the first indication field indicates that the bit length of the second indication field is a particular preset length value of the plurality of preset length values.
The present application provides, according to a fourth aspect, a data processing apparatus, which in one embodiment comprises:
the generating module is used for generating transmission data carrying indication information according to effective data to be transmitted, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of the filling bits contained in the last frame data frame; the indication information includes a field value of a first indication field in a data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values;
and the sending module is used for sending the transmission data carrying the indication information.
The present application provides, in accordance with a fifth aspect, a data processing apparatus, which in one embodiment comprises:
the receiving module is used for receiving transmission data which is sent by a sending end and carries indication information, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values;
and the number determining module is used for determining the number of the filling bits contained in the data frame of the last frame according to the indication information.
The present application provides, in accordance with a sixth aspect, a communication device, which in one embodiment comprises:
the first processing module is configured to generate first transmission data carrying first indication information according to valid data to be transmitted, where the first transmission data includes a first N frame data frame and a first data header corresponding to the first N frame data frame, and transmit the first transmission data carrying the first indication information; the first indication information includes a field value of a first indication field in the first data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values;
the second processing module is configured to receive second transmission data carrying second indication information, where the second transmission data includes a second N frame data frame and a second data header corresponding to the second N frame data frame, determine, according to the second indication information, the number of padding bits included in a last frame data frame of the second N frame data frame, and extract effective data from the second N frame data frame according to the number of the padding bits; the second indication information includes a field value of the first indication field in the second data header; the field value of the first indication field indicates that the bit length of the second indication field is a particular preset length value of the plurality of preset length values.
The present application provides according to a seventh aspect a communication device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of an embodiment of any of the methods described above when executing the computer program.
The present application provides according to an eighth aspect a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the embodiments of the method of any of the above.
In the embodiments of the data processing method and apparatus, the communication system, the communication apparatus, the communication device, and the storage medium provided in the present application, a plurality of length values are preset for the second indication field, and the field value of the first indication field is allowed to specify the bit length of the second indication field, so that fewer bits can be occupied in the data header to represent padding bits in a data frame, and a wider range of padding bit numbers is supported; meanwhile, according to the number of the filling bits, the number of the filling bits can be represented only by the first indication field, and the data processing efficiency is improved.
Specifically, the field value of each first indication field is used to specify what the bit length of the second indication field is, in addition to indicating whether the number of padding bits is indicated by the field value of the first indication field or the field value of the second indication field, so that the bits occupied by the first indication field in the data header can be more fully utilized. In this embodiment, when the number of padding bits is particularly small, the receiving end can confirm the number of padding bits through the first indication field, and at this time, the length of the second indication field is 0, so that it is not necessary to specially process and analyze the second indication field, thereby improving the data processing efficiency. In this embodiment, when the number of padding bits is relatively small, a small number of padding bits are used as the second indication field, so that the sending end can complete setting of the field value of the second indication field more quickly, and the receiving end can read the field value of the second indication field more quickly; when the number of pad bits is larger, more pad bits are used as the second indication field accordingly to indicate a larger number of pad bits. Under the condition of occupying the same number of bits in the data header, the present embodiment can indicate a larger number of padding bits than the existing manner for indicating the number of padding bits, for example, the present embodiment can indicate at most 2058 padding bits by occupying 2 bits in the data header as the first indication field; since the bits occupied by the first indication field in the data header can be reduced, more bits can be reserved in the data header for other information related to the data call.
Drawings
FIG. 1 is a diagram of an application environment of a data processing method in one embodiment;
FIG. 2 is a flow diagram illustrating a data processing method according to one embodiment;
FIG. 3 is a diagram illustrating data loading results of a last frame of data in one example;
FIG. 4 is a schematic diagram of a data header for a DMR short data call;
fig. 5 is a schematic diagram of a data header of a data call without acknowledgement by the DMR;
fig. 6 is a mapping table of an example when the bit length of the first indication field is 2;
fig. 7 is a mapping table of an example when the bit length of the first indication field is 3;
FIG. 8 is an exemplary mapping table where the first indication field has a bit length of 2 and the third indication field has only one preset length value;
fig. 9 is a mapping table of an example when the first indication field has a bit length of 2 and the third indication field has 2 preset length values;
FIG. 10 is a diagram showing an application environment of a data processing method according to another embodiment;
FIG. 11 is a flow chart illustrating a data processing method according to another embodiment;
FIG. 12 is a flow diagram illustrating the process of determining the number of padding bits in one embodiment;
fig. 13 is a schematic block diagram of a communication system in one embodiment;
FIG. 14 is a block diagram of a data processing apparatus according to an embodiment;
FIG. 15 is a block diagram showing a configuration of a data processing apparatus according to another embodiment;
FIG. 16 is a block diagram of a communication device in one embodiment;
fig. 17 is an internal configuration diagram of a communication device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The present application provides a data processing method, which is applied to a device on a transmitting end as shown in fig. 1 in one embodiment. As shown in fig. 1, the device at the transmitting end includes a data processing module, a radio frequency transmitting module, and an antenna. The data processing module loads effective data into an N data frame through the processing unit 1, generates a data header corresponding to the N data frame, and then sets indication information in the data header through the processing unit 2, so as to generate transmission data carrying the indication information, wherein the transmission data comprises the N data frame and the data header, and the transmission data carrying the indication information is sent to a device at a receiving end through the radio frequency transmitting module and the antenna. After receiving transmission data carrying indication information, the device at the receiving end determines the number of padding bits contained in the last data frame of the N frame data frames according to the indication information, and further extracts effective data from the N frame data frames based on the number of the padding bits. The device at the sending end can be an interphone.
The data processing method provided by the embodiment includes the steps shown in fig. 2, that is:
s110: and generating transmission data carrying indication information according to the effective data to be transmitted.
The transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of the filling bits contained in the last frame data frame;
the indication information includes a field value of a first indication field in a data header; the field value of the first indication field indicates that the bit length of the second indication field is a particular preset length value of the plurality of preset length values.
S120: and transmitting the transmission data carrying the indication information.
The data processing method will be described below with reference to fig. 2.
In a wireless communication system, data is usually transmitted in the smallest unit, and in one data transmission, therefore, the last transmission unit usually contains padding data in addition to valid data. The transmission unit is a data frame, and it can be understood that structures of data frames specified in different communication protocols may be different, and the structure of the data frame is not limited in this embodiment.
For example, the following description will be made by taking a DMR (Digital Mobile Radio, a Digital Radio standard specially established by European Telecommunications Standards Institute (ETSI) for professional Mobile Radio users) system as an example.
In the DMR system, taking an unacknowledged data call of a DMR as an example, each frame of data is used to load 12 bytes of data, and for a frame of data other than the last frame, 12 bytes of valid data can be loaded, whereas for a frame of data of the last frame, since a CRC (Cyclic redundancy check) check bit of a 4-byte entire data call needs to be loaded, at most 8 bytes of valid data can be loaded, and if the valid data for loading into the frame of data of the last frame is less than 8 bytes, some bits need to be filled in the frame of data of the last frame, so that the frame of data of the last frame is filled with 12 bytes of data. Assuming that a data call has 28 bytes of data to be transmitted, that is, the valid data to be transmitted is 28 bytes, and at this time, it needs to be loaded with 3 frame data frames, and the valid data to be transmitted can be decomposed into two 12-byte data blocks and one 4-byte data block, where the two 12-byte data blocks are loaded into the first two frame data frames, and the 4-byte data block is loaded into the last frame data frame, and since the last data block is less than 8 bytes, 4-byte padding bits (that is, the number of the padding bits is 32, and the value of the padding bits is usually set to 0) need to be added in the last frame data frame to fill up the last frame data frame, the loading result is as shown in fig. 3, where "User data" in the data frame shown in fig. 3 refers to valid data, "pad octets" refers to padding data, and "refers to CRC check bits.
In order to enable the receiving end to distinguish which of the data loaded in the last frame of data frame is valid data and which is padding data, when the sending end processes the valid data to be sent, the sending end processes the valid data to be sent into transmission data, and sets indication information in the transmission data according to a specified mode for indicating the number of padding bits (the number of padding bits refers to how many bits the padding data specifically contains, and the bits padded into the data frame will be referred to as padding bits hereinafter). The process of processing the effective data to be sent into the N frame data frames by the sending end may be to decompose the effective data to be sent into N data blocks, and then load the data blocks into the N frame data frames; for the process of decomposing the valid data to be transmitted and the process of loading the N data blocks into the N frame data frames, reference may be made to the above example, and details are not repeated here. The indication information is used for the receiving end to determine the number of the filling bits contained in the last frame data frame; the transmission data includes N (N is a positive integer) frame data frames and corresponding data headers, which are used to represent various related information (such as format, number of padding bits, etc.) of the N frame data frames.
The setting process of the indication information is explained in detail below.
The indication information in the present embodiment includes a field value of the first indication field. The manner used in this embodiment to indicate the number of padding bits is: the number of padding bits is indicated in combination with a field value of a specific field, i.e., a first indication field, in a data header and a field value of a specific field, i.e., a second indication field, in a last frame data frame, wherein a bit length of the second indication field is a preset length value specified from among a plurality of preset length values according to the field value of the first indication field.
It should be noted that the bit length of the second indication field refers to the number of padding bits occupied by the second indication field in the padding data. When the bit length of the second indication field is 0, the field value of the second indication field is a null value.
It should be noted that the first indication field mentioned above refers to a field for indicating the number of padding bits in the data header, and it is understood that the field for indicating the number of padding bits in different data headers may be different. For example, fig. 4 shows a data header of a DMR short data call, wherein a field for indicating the number of padding bits is "BitPadding", which is specifically used to indicate the number of padded bits (Bit); fig. 5 shows a data header of a DMR non-acknowledgement-required data call, where the field for indicating the number of padding bits is "POC", which is specifically used to indicate the number of bytes (octets) padded.
Although the first indication field refers to a field in the data header for indicating the number of padding bits, the field value of the first indication field in the present embodiment is not always used for indicating the number of padding bits contained in the last frame data frame. This is explained below: the field value of the first indication field in this embodiment is used to indicate that the bit length of the second indication field is a specific preset length value of a plurality of preset length values, that is, to specify which one of the plurality of preset length values the bit length of the second indication field is; on the other hand, when the field value of the first indication field indicates that the bit length of the second indication field is 0, the field value of the first indication field is further used to indicate the number of padding bits contained in the last frame data frame, and when the field value of the first indication field indicates that the bit length of the second indication field is not 0, the field value of the first indication field is further used to indicate the number of padding bits contained in the last frame data frame by the field value of the second indication field. When the data frame of the last frame contains the padding bits, the data frame of the last frame comprises an effective data section and a padding data section spliced behind the effective data section; when the last frame data frame does not contain the padding bits, the last frame data frame includes the valid data segment and does not include the padding data segment. The second indication field is specifically set in the padding data segment of the last frame data frame.
The sender stores a mapping table, which is preset based on the above-mentioned method for specifying the number of padding bits, and which records a correspondence relationship between a field value of each first indication field, a field value of a bit length of the second indication field, a field value of the second indication field, and the number of padding bits. It should be noted that the correspondence relationship recorded by the mapping table is formulated according to the bit length of the first indication field.
In one example, assuming that the bit length of the first indication field is 2 bits, the mapping table made therefrom may be as shown in fig. 6. In the mapping table shown in fig. 6, 4 fields of "field value of first indication field", "bit length of second indication field", "field value of second indication field", and "number of padding bits", are included, wherein the field values of the respective fields are expressed using decimal; further, the number of field values of the "field value of the first indication field" is equal to the power m of 2, m refers to the bit length of the first indication field. As can be seen from the mapping table shown in fig. 6, when the bit length of the second indication field is 0, the field value of the second indication field is null, and only the field value of the first indication field in the data header needs to be set; and when the bit length of the second indication field is not 0, the field value of the second indication field is not null, and it is required to set the field value of the first indication field in the data header and set the field value of the second indication field in the data frame of the last frame. It should be noted that, since the number of field values that can be represented is large when the field value of the bit length of the second indication field (simply referred to as the bit length of the second indication field) is 3 or 11, the present example replaces these field values with the variable "x1" or "x 2". It is understood that "x1" and "x2" are both positive integers.
In another example, assuming that the bit length of the first indication field is 3 bits, the mapping table made therefrom may be as shown in fig. 7. For the description of each field in fig. 7, refer to the description related to fig. 6, and are not repeated herein.
Since the data volume that can be loaded in each frame of data frame and the maximum valid data volume that can be loaded in the last frame of data frame are fixed, when the sending end generates transmission data carrying indication information according to valid data to be sent, the number of padding bits can be calculated according to the data volume (for example, 28 bytes) of the valid data to be sent, and then the mapping table of a specific application can be queried by using the calculated number of padding bits, so that the corresponding preset field value of the first indication field, the bit length of the second indication field and the preset field value of the second indication field can be obtained, and then the field value of the first indication field and the field value of the second indication field are set based on the obtained data. For example, assuming that the bit length of the first indication field is 2, the mapping table is as shown in fig. 6, if the number of padding bits is 0, the preset field value of the corresponding first indication field may be found to be 0, the bit length of the second indication field is 0, and the preset field value of the second indication field is a null value, and further the field value of the first indication field may be set to be 0, and since the bit length of the second indication field is found to be 0, the field value of the second indication field does not need to be set. If the number of padding bits is 10, it may be queried that the preset field value of the corresponding first indication field is 3, the bit length of the second indication field is 3, and the preset field value of the second indication field is 7, and then the field value of the first indication field may be set to 3, and since the bit length of the second indication field is 3, the last 3 padding bits of the padding data in the last frame of data frame are determined to be the second indication field, and then the 3 padding bits are set to "111", which represents 7 decimal places.
The present embodiment can more fully utilize the bits occupied by the first indication field in the data header, i.e. by presetting a plurality of length values (which may be called preset length values) for the second indication field, and letting the field value of the first indication field specify the bit length of the second indication field (i.e. how much the field value of each first indication field is used to specify the bit length of the second indication field in addition to indicating whether the number of padding bits is specified by the field value of the first indication field or the field value of the second indication field). In this embodiment, when the number of the padding bits is particularly small, the receiving end can confirm the number of the padding bits through the first indication field, and at this time, the length of the second indication field is 0, so that the second indication field does not need to be specially processed and analyzed, thereby improving the data processing efficiency; when the number of the filling bits is small, a small number of filling bits are used as the second indication field, so that the sending end can complete setting of the field value of the second indication field more quickly, and the receiving end can read the field value of the second indication field more quickly; when the number of the filling bits is larger, more filling bits are correspondingly used as a second indication field so as to achieve the purpose of indicating the larger number of the filling bits; taking the mapping table shown in fig. 6 as an example, when the number of padding bits is [1,2], only 1 padding bit is used as the second indication field, and when the number of padding bits is [3,10], 3 padding bits are used as the second indication field, so that for the sending end, the value of the second indication field can be set by only modifying the value of 1 or 3 padding bits at most, for the receiving end, the value of the second indication field can be obtained by only reading the value of 1 or 3 padding bits, and when the number of padding bits is [11,2058], the value of the second indication field is used by 11 padding bits, so that the number of padding bits as large as [11,2058] can be indicated. Therefore, in the case of occupying the same number of bits in the data header, the present embodiment can indicate a larger number of padding bits than the existing manner for indicating the number of padding bits, for example, the present embodiment occupies 2 bits in the data header as the first indication field, and can indicate 2058 padding bits at most; in another aspect, in the case that the number of padding bits required to be indicated is the same, the present embodiment may occupy fewer bits in the data header, for example, when 2058 padding bits need to be indicated, the present embodiment only needs to occupy 2 bits in the data header. Since the bits occupied by the first indication field in the data header can be reduced, more bits can be reserved in the data header for other information related to the data call.
The setting mode of the indication information can be various, and a proper setting mode can be selected according to a specific application scene. In one embodiment, a sending end calculates the number of padding bits included in a last frame of data frame, then queries a preset mapping table to obtain a preset field value of a corresponding first indication field, a preset length value of a second indication field, and a preset field value, and then generates an N frame of data frame and a data header corresponding thereto according to valid data to be sent, wherein when the N frame of data frame is generated, the last frame of data frame is generated according to the queried preset length value of the second indication field and the preset field value, and when the data header is generated, the field value of the first indication field is set as the queried preset field value of the first indication field. Specifically, when the last frame data frame is generated according to the queried preset length value and preset field value of the second indication field, if the preset length value of the second indication field is 0, when padding bits are added to the last frame data frame, setting the values of all the padding bits as default values, such as 0 (or 1); if the value of the preset length of the second indication field is not 0, when padding bits are added to the last frame of data frame, the value of the padding bits added first is a default value, such as 0 (or 1), and the values of a plurality of padding bits (the number of the padding bits is equal to the value of the preset length of the second indication field) added last are determined according to the value of the preset field of the second indication field. For example, taking the mapping table shown in fig. 4 as an example, if the number of padding bits is 15 and the preset length value of the corresponding second indication field is 11, when padding bits are added to the last frame of data frame, the values of the first added 4 padding bits are all default values, and the values of the last 11 padding bits are "00000000100", respectively, which indicates that the field value is 4.
In the above embodiment, the field value of the second indication field is directly set by the sender in the process of adding the padding bits, and the sender may also modify the value of the specified padding bits to complete setting of the field value of the second indication field after completing adding the padding bits. See the examples below for details.
In one embodiment, generating transmission data carrying indication information according to valid data to be transmitted includes:
generating N frame data frames and data headers corresponding to the N frame data frames according to effective data to be sent;
acquiring the number of filling bits contained in the last frame of data frame, and inquiring a preset field value of a first indication field, a preset length value of a second indication field and a preset field value of the second indication field corresponding to the number of the filling bits;
setting a field value of a first indication field in a data header according to a preset field value of the first indication field; the field value of the first indication field is used for characterizing the bit length of a second indication field in the last frame data frame;
when the field value of the first indication field represents that the bit length of the second indication field is 0, taking the current N frame data frame and the data header as transmission data carrying indication information;
when the field value of the first indication field indicates that the bit length of the second indication field is not 0, determining the second indication field in the last frame of data frame according to the preset length value of the second indication field, setting the field value of the second indication field according to the preset field value of the second indication field, and taking the current N frame of data frame and the data header as transmission data carrying indication information.
In this embodiment, when the sending end generates an N frame data frame, if padding bits need to be added to the last frame data frame, all the padding bits are set to 0 (or set to 1), when a data header is generated, the field value of the first indication field is set to 0 (or set to 1), then the field value of the first indication field is reset according to the calculated number of the padding bits, the field value of the second indication field is set, and finally the N frame data frame and the data header after the field value of the first indication field and the field value of the second indication field are reset are sent to the receiving end as transmission data carrying indication information. The method for calculating the number of padding bits included in the last frame of data frame may refer to an existing calculation method, which is not limited in this embodiment.
Specifically, after the number of padding bits included in the last frame of data frame is obtained through calculation, the preset mapping table is queried by using the number of padding bits, so that a preset field value of a corresponding first indication field, a preset length value of a second indication field, and a preset field value are obtained, and then the field value of the first indication field in the data header is correspondingly set as the queried preset field value of the first indication field. And then, determining a second indication field in the last frame of data frame according to the preset length value of the second indication field, and setting the field value of the second indication field according to the preset field value of the second indication field.
Exemplarily, assuming that the bit length of the first indication field is 2, the mapping table is as shown in fig. 6, if the calculated number of padding bits is 10, it can be queried from the mapping table that the preset field value of the first indication field is 3, the preset length value of the second indication field is 3, and the preset field value is 7, then the field value of the first indication field in the data header is set to 3, then 3 bits are determined from the last frame data frame according to the preset length value of the second indication field as the second indication field, and the field value of the second indication field is set to 7.
Regarding setting the field value of the second indication field, it should be noted that when the bit length of the second indication field is 0, the field value of the second indication field is null, and the field value of the second indication field does not need to be set.
Further, the sender may compare the preset field value of the first indication field with a preset threshold after querying to obtain the preset field value, if the preset field value of the first indication field is smaller than the preset threshold, determine that the field value of the first indication field represents that the bit length of the second indication field in the last frame data frame is 0, and if the preset field value of the first indication field is not smaller than the preset threshold, determine that the field value of the first indication field represents that the bit length of the second indication field in the last frame data frame is not 0. The preset threshold is determined according to a preset mapping table, for example, taking the mapping table shown in fig. 6 as an example, the preset threshold may be determined to be 1 based on the mapping table, if the preset field value of the first indication field is smaller than 1, it may be determined that the field value of the first indication field characterizes the bit length of the second indication field in the last frame data frame to be 0, otherwise, if the preset field value of the first indication field is not smaller than 1, it may be determined that the field value of the first indication field characterizes the bit length of the second indication field in the last frame data frame to be not 0.
Specifically, the determining the second indication field in the last frame of data frame according to the preset length value of the second indication field includes: and selecting a continuous plurality of bits positioned at the tail end of the padding data segment as a second indication field in the data frame of the last frame, wherein the bit length of the continuous plurality of bits is equal to the preset length value of the second indication field.
For example, taking the mapping table shown in fig. 6 as an example, if the number of padding bits is 15 and the length of the corresponding second indication field is 11, the values of the padding bits are all set as default values, and then the values of 11 consecutive padding bits at the end are respectively set as "00000000100", so that the field value represented by the values is 4. By selecting a plurality of continuous filling bits before the last filling data segment, namely the CRC check bit, as the second indication field, the sender can conveniently set the field value of the second indication field, namely, when the sender sets the field value of the second indication field, the sender does not need to skip part of the filling bits before the CRC check bit, thereby completing the setting of the field value of the second indication field more quickly. Similarly, the second indication field is set at the last position, so that the receiving end can read the field value of the second indication field more quickly.
Further, in one embodiment, setting the field value of the second indication field according to the preset field value of the second indication field may be preceded by: detecting whether the field value of the second indication field indicates that a third indication field is contained in the padding data segment;
accordingly, the setting of the field value of the second indication field according to the preset field value of the second indication field includes: responding to the field value representation of the second indication field not containing a third indication field, and setting the field value of the second indication field according to the preset field value of the second indication field;
correspondingly, the method further comprises: responding to the third indication field contained in the field value characterization filling data segment of the second indication field, inquiring a preset length value and a preset field value of the third indication field corresponding to the preset field value of the second indication field, determining the third indication field in the last frame data frame according to the preset length value of the third indication field, and setting the field value of the third indication field according to the preset field value of the third indication field.
In the foregoing embodiment, the field value of the second indication field is only used for indicating the number of padding bits contained in the last frame data frame, and in order to indicate a larger number of padding bits, in this embodiment, a third indication field is further set before the second indication field in the last frame data frame, and whether the third indication field is contained in the padding data segment is characterized by the field value of the second indication field, and when the field value of the second indication field indicates that the third indication field is not contained in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits contained in the last frame data frame; when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the field value of the second indication field is used for indicating that the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field. The preset length value of the third indication field corresponding to the preset field value of the second indication field is one of one or more preset length values of the third indication field, that is, only one preset length value or a plurality of preset length values may be set for the third indication field. If only one default length value is set for the third indication field, for example, the default mapping table may be as shown in fig. 8, where "n" in fig. 8 refers to the default length value and its value range is [1,2045], and "y" is the maximum value of the field value of the third indication field. If a plurality of preset length values are set for the third indication field, for example, if the third indication field has 2 preset length values, the preset mapping table may be as shown in fig. 9. For the descriptions of "n1" and "n2", "y1" and "y2" in fig. 9, refer to fig. 8, and for the descriptions of the fields and the variables "x1" - "x4" in fig. 8 and 9, refer to the above description of fig. 6.
Specifically, before setting the field value of the second indication field according to the preset field value of the second indication field, the sending end detects whether the field value of the second indication field indicates that the filled data segment includes the third indication field, and the detection method may be that, after the sending end obtains the preset field value of the second indication field by querying, the preset field value of the second indication field is compared with a preset threshold, and then, according to a comparison result, whether the field value of the second indication field indicates that the filled data segment includes the third indication field is determined. In order to distinguish the preset threshold in the present embodiment from the preset threshold in the foregoing embodiment, the preset threshold in the foregoing embodiment may be referred to as a first preset threshold, and the preset threshold in the present embodiment may be referred to as a second preset threshold. The judging process may be: if the preset field value of the second indication field is smaller than the second preset threshold value, determining that the field value of the second indication field indicates that a third indication field is not included in the padding data segment; otherwise, if the preset field value of the second indication field is not smaller than the second preset threshold, it is determined that the field value of the second indication field indicates that the third indication field is included in the padding data segment. The second preset threshold is set according to a preset mapping table, and if the mapping table shown in fig. 8 is taken as an example, the second preset threshold may be set to 2047; taking the mapping table shown in fig. 9 as an example, the second predetermined threshold may be set to 2046.
Further, in an embodiment, determining the third indication field in the last frame data frame according to the preset length value of the third indication field includes: and selecting a continuous plurality of bits positioned before the second indication field in the padding data segment as a third indication field, wherein the bit length of the continuous plurality of bits is equal to the preset length value of the third indication field.
In this embodiment, a plurality of consecutive bits located before the second indication field in the padding data segment are selected as the third indication field, which may facilitate the sender to set the field value of the third indication field, that is, when the sender sets the field value of the third indication field, the sender does not need to skip part of padding bits before the second indication field, thereby completing setting the field value of the third indication field more quickly. Similarly, the third indication field is set at a position before the second indication field, so that the receiving end can read the field value of the third indication field more quickly.
It should be understood that, although the steps in the flowchart are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Based on the same inventive concept, the present application also provides another data processing method, which is applied to the device at the receiving end shown in fig. 10 in one embodiment. As shown in fig. 10, the device at the receiving end includes a data processing module, a radio frequency receiving module, and an antenna. The data processing module splits the received transmission data carrying the indication information into N frame data frames and corresponding data headers through the processing unit 1, reads the indication information from the data headers through the processing unit 2, determines the number of padding bits included in the last frame data frame of the N frame data frames according to the indication information, and further extracts effective data from the N frame data frames based on the number of the padding bits. The device at the sending end can be an interphone.
The data processing method provided by the embodiment includes the steps shown in fig. 11, that is:
s210: and receiving transmission data which is sent by a sending end and carries indication information.
The transmission data carrying the indication information comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information includes a field value of a first indication field in a data header; the field value of the first indication field indicates that the bit length of the second indication field is a particular preset length value of the plurality of preset length values. For the description of the first indication field and the second indication field, refer to the foregoing embodiments, which are not repeated herein.
S220: the number of padding bits contained in the last frame data frame is determined according to the indication information.
After determining the number of the padding bits, the receiving end may extract valid data from the N frame data frames according to the number of the padding bits.
It should be noted that the transmission data carrying the indication information is generated and sent by the sending end based on the data processing method provided in the foregoing embodiment. The receiving end stores a mapping table, the mapping table is the same as the mapping table used by the sending end for generating the transmission data carrying the indication information, the receiving end inquires the mapping table according to the indication information carried in the transmission data, and distinguishes which data loaded in the last frame data frame are valid data and which data are filling data according to the inquired data. When the last frame data frame contains the padding bits, the last frame data frame comprises an effective data segment and a padding data segment spliced behind the effective data segment.
A process of the receiving end determining the number of padding bits included in the last frame data frame according to the indication information is explained in detail below.
In one embodiment, as shown in fig. 12, determining the number of padding bits contained in the data frame of the last frame according to the indication information includes:
reading a field value of a first indication field in a data header;
when the field value of the first indication field represents that the bit length of a second indication field in the last frame data frame is not 0, determining one bit length from a plurality of preset length values of the second indication field according to the field value of the first indication field as the bit length of the second indication field, determining the second indication field in the last frame data frame according to the bit length of the second indication field, and inquiring a filling bit number field value corresponding to the field value of the second indication field; when the field value of the first indication field indicates that the bit length of a second indication field in the last frame data frame is 0, inquiring a filling bit number field value corresponding to the field value of the first indication field;
the queried field value of the number of padding bits is taken as the number of padding bits contained in the last frame of data.
In this embodiment, for received transmission data carrying indication information, a receiving end reads a field value of a first indication field from a data header included in the transmission data, where the field value of the first indication field is used to characterize whether a bit length of a second indication field in a last frame data frame is 0, and a manner of detecting whether the field value of the first indication field characterizes whether the bit length of the second indication field in the last frame data frame is 0 may be to compare the field value of the first indication field with a first preset threshold, determine that the field value of the first indication field characterizes that the bit length of the second indication field is 0 if the field value of the first indication field is smaller than the first preset threshold, and determine that the field value of the first indication field characterizes that the bit length of the second indication field is not 0 if the preset field value of the first indication field is not smaller than the first preset threshold.
When the field value of the first indication field indicates that the bit length of the second indication field is 0, the field value of the first indication field is further used to indicate the number of padding bits, so that the mapping table is queried to obtain a padding bit number field value corresponding to the field value of the first indication field (i.e., the field value of the padding bit number field in the mapping table), where the queried padding bit number field value is the number of padding bits contained in the last frame data frame.
As can be seen from the foregoing embodiments, only the second indication field may be set in the data frame of the last frame, and the second indication field and the third indication field may also be set simultaneously.
The following description deals with a case where only the second indication field is provided in the last frame data frame.
When the field value of the first indication field indicates that the bit length of the second indication field is not 0, the field value of the first indication field is further used for indicating that the number of padding bits is indicated by the second indication field, so that the mapping table is queried according to the field value of the first indication field to obtain the bit length of the second indication field corresponding to the field value of the first indication field, then a plurality of padding bits are selected from the padding data segments of the last frame data frame according to the queried bit length of the second indication field to serve as the second indication field, the field value of the second indication field is read, and then the mapping table is queried to obtain the field value of the number of padding bits corresponding to the field value of the second indication field to determine the number of padding bits contained in the last frame data frame.
Specifically, the determining the second indication field in the last frame data frame according to the bit length of the second indication field includes: and selecting a continuous number of bits positioned at the tail end of the padding data section as the second indication field in the data frame of the last frame, wherein the bit length of the continuous number of bits is equal to that of the second indication field.
By selecting the last filling bit of the filling data segment, namely a plurality of continuous filling bits before the CRC check bit, as the second indication field, the receiving end can conveniently and quickly read the field value of the second indication field without skipping the partial filling bit before the CRC check bit.
The following describes a case where the second indication field and the third indication field are simultaneously provided in the last frame data frame.
When a third indication field is further arranged in the last frame data frame, the field value of the second indication field is used for representing whether the third indication field is contained in the padding data section, and when the field value of the second indication field represents that the third indication field is not contained in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits contained in the last frame data frame; when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
Based on this, in one embodiment, querying the padding bit number field value corresponding to the field value of the second indication field is preceded by: detecting whether the field value of the second indication field indicates that a third indication field is contained in the padding data segment;
accordingly, querying a padding bit number field value corresponding to the field value of the second indication field includes: in response to the field value of the second indication field indicating that the third indication field is not included in the padding data segment, querying a padding bit number field value corresponding to the field value of the second indication field;
correspondingly, the method further comprises the following steps: and responding to the fact that the field value of the second indication field indicates that a third indication field is contained in the padding data segment, determining the bit length of the third indication field, determining the third indication field in the padding data segment according to the bit length of the third indication field, and inquiring the field value of the number of padding bits corresponding to the field value of the third indication field.
In the embodiment, a third indication field is further arranged before the second indication field in the data frame of the last frame to indicate a larger number of padding bits. Therefore, when the field value of the first indication field indicates that the bit length of the second indication field is not 0, the mapping table is queried according to the field value of the first indication field to obtain the bit length of the second indication field corresponding to the field value of the first indication field, then a plurality of padding bits are selected from the padding data section of the last frame data frame according to the queried bit length of the second indication field to serve as the second indication field, the field value of the second indication field is read, and whether the field value of the second indication field indicates that the padding data section contains the third indication field or not is detected. The method for detecting whether the field value of the second indication field represents that the filling data segment contains the third indication field may be that the field value of the second indication field is compared with a second preset threshold, and if the field value of the second indication field is smaller than the second preset threshold, it is determined that the field value of the second indication field represents that the filling data segment does not contain the third indication field, and at this time, the mapping table is queried to obtain a filling bit number field value corresponding to the field value of the second indication field; if the preset field value of the second indication field is not smaller than the second preset threshold, determining that the field value of the second indication field indicates that the padding data segment contains a third indication field, at this time, determining the bit length of the third indication field, selecting a plurality of consecutive padding bits before the second indication field as the third indication field according to the bit length of the third indication field, reading the field value of the third indication field, and then querying a mapping table to obtain the padding bit number field value corresponding to the field value of the third indication field, thereby determining the number of the padding bits contained in the last frame of data frame.
As can be seen from the foregoing embodiments, one preset length value or multiple preset length values may be set for the third indication field, so that when determining the bit length of the third indication field, specifically, one preset length value corresponding to the field value of the second indication field in the one or more preset length values of the third indication field is used as the bit length of the third indication field.
Specifically, determining the third indication field in the padding data section according to the bit length of the third indication field includes: a consecutive plurality of bits preceding the second indication field in the padding data section having a bit length equal to that of the third indication field is selected as the third indication field. By selecting a plurality of consecutive padding bits before the second indication field as the third indication field, the receiving end can conveniently and quickly read the field value of the third indication field without skipping the part of the padding bits before the second indication field.
It should be understood that, although the steps in the flowchart are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
The application also provides a communication system, which comprises a sending end and a receiving end. The sending end is the sending end described in the above embodiments, and the device of the sending end is as shown in fig. 1. The receiving end is the receiving end described in the above embodiment, and the apparatus of the receiving end is shown in fig. 10.
In an embodiment, as shown in fig. 13, the sending end is configured to generate transmission data carrying indication information according to valid data to be sent, and send the transmission data carrying the indication information, where the transmission data includes an N frame data frame and a data header corresponding to the N frame data frame; the receiving end is used for receiving transmission data carrying indication information, the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames, the number of filling bits contained in the last frame data frame is determined according to the indication information, and effective data are extracted from the N frame data frames according to the number of the filling bits; wherein the indication information comprises a field value of a first indication field in the data header; the field value of the first indication field indicates that the bit length of the second indication field is a particular preset length value of a plurality of preset length values. The receiving end is also used for extracting effective data from the N frame data frames according to the number of the filling bits.
In this embodiment, for a description of a process in which a sending end generates transmission data carrying indication information according to valid data to be sent, refer to the description about fig. 2 in the above embodiment. The process of determining the number of padding bits included in the last frame data frame by the receiving end according to the indication information can be referred to the description of fig. 11 in the above embodiment.
In other embodiments, the process of setting the indication information at the transmitting end may refer to the description of the corresponding embodiment, and the process of determining the number of padding bits at the receiving end may refer to the description of the corresponding embodiment, which is not described in detail herein.
In one embodiment, the communication system is a narrowband communication system, and the transmitting end and the receiving end perform data transmission through a narrowband channel.
In one embodiment, in the communication system, both the device at the transmitting end and the device at the receiving end are interphones.
Based on the same inventive concept, the application provides a data processing device. In one embodiment, as shown in fig. 14, the data processing apparatus includes the following modules:
a generating module 110, configured to generate transmission data carrying indication information according to valid data to be sent, where the transmission data includes N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of the filling bits contained in the last frame data frame; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values;
a sending module 120, configured to send transmission data carrying the indication information.
In one embodiment, a generation module includes:
the transmission data generation submodule is used for generating an N frame data frame and a data header corresponding to the N frame data frame according to effective data to be sent;
the number acquisition submodule is used for acquiring the number of the filling bits contained in the last frame of data frame;
the first query submodule is used for querying a preset field value of a first indication field, a preset length value of a second indication field and a preset field value of the second indication field corresponding to the number of the filling bits;
the first setting submodule is used for setting the field value of the first indication field in the data header according to the preset field value of the first indication field; the field value of the first indication field is used for characterizing the bit length of a second indication field in the last frame data frame;
the first transmission data determining submodule is used for taking the current N frame data frame and the data header as transmission data carrying indication information when the field value of the first indication field represents that the bit length of the second indication field is 0;
and the second transmission data determining submodule is used for determining a second indication field in the last frame of data frame according to the preset length value of the second indication field when the field value of the first indication field represents that the bit length of the second indication field is not 0, setting the field value of the second indication field according to the preset field value of the second indication field, and taking the current N frame of data frame and the data header as transmission data carrying indication information.
In one embodiment, when the last frame data frame includes padding bits, the last frame data frame includes a valid data segment and a padding data segment concatenated after the valid data segment.
In an embodiment, the second transmission data determining submodule, when configured to determine the second indication field in the last frame data frame according to the preset length value of the second indication field, is specifically configured to select, as the second indication field in the last frame data frame, a number of consecutive bits located at the last of the padding data segments, where a bit length of the number of consecutive bits is equal to the preset length value of the second indication field.
In one embodiment, the field value of the second indication field is used for characterizing whether a third indication field is contained in the padding data segment; when the field value of the second indication field indicates that the third indication field is not contained in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits contained in the last frame data frame; when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
In one embodiment, the second transmission data determination submodule includes a detection unit. The detection unit is used for detecting whether the field value of the second indication field represents that a third indication field is contained in the padding data segment or not before the field value of the second indication field is set according to the preset field value of the second indication field;
correspondingly, when the second transmission data determining submodule sets the field value of the second indication field according to the preset field value of the second indication field, the second transmission data determining submodule is specifically configured to respond that the field value representation of the second indication field does not contain a third indication field in the filled data segment, and set the field value of the second indication field according to the preset field value of the second indication field;
correspondingly, the generation module further comprises a second setting submodule. And the second setting sub-module is used for responding to the third indication field contained in the field value characterization filling data segment of the second indication field, inquiring the preset length value and the preset field value of the third indication field corresponding to the preset field value of the second indication field, determining the third indication field in the last frame of data frame according to the preset length value of the third indication field, and setting the field value of the third indication field according to the preset field value of the third indication field.
In one embodiment, the preset length value of the third indication field corresponding to the preset field value of the second indication field is one of one or more preset length values of the third indication field.
In an embodiment, the second setting sub-module, when configured to determine the third indication field in the data frame of the last frame according to the preset length value of the third indication field, is specifically configured to select, as the third indication field, a consecutive plurality of bits located before the second indication field in the padding data segment, where a bit length of the consecutive plurality of bits is equal to the preset length value of the third indication field.
In one embodiment, the bit length of the first indication field is 2 bits or more.
For specific limitations of the data processing apparatus of this embodiment, refer to the above limitations on the data processing method, which are not described herein again. The various modules in the data processing apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Based on the same inventive concept, the present application provides another data processing apparatus. In one embodiment, as shown in fig. 15, the data processing apparatus includes the following modules:
a receiving module 210, configured to receive transmission data carrying indication information sent by a sending end, where the transmission data includes N frame data frames and a data header corresponding to the N frame data frames; the indication information includes a field value of a first indication field in a data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values;
a number determining module 220, configured to determine the number of padding bits included in the last frame of data frame according to the indication information.
In one embodiment, the number determination module includes:
a first field value reading submodule for reading a field value of a first indication field in a data header;
the first data query submodule is used for determining one bit length from a plurality of preset length values of a second indication field as the bit length of the second indication field according to the field value of the first indication field when the field value of the first indication field represents that the bit length of the second indication field in the last frame data frame is not 0, determining the second indication field in the last frame data frame according to the bit length of the second indication field, and querying the filling bit number field value corresponding to the field value of the second indication field; when the field value of the first indication field indicates that the bit length of a second indication field in the last frame data frame is 0, inquiring a filling bit number field value corresponding to the field value of the first indication field;
and the number determination submodule is used for taking the inquired filling bit number field value as the number of the filling bits contained in the data frame of the last frame.
In one embodiment, when the last frame data frame includes padding bits, the last frame data frame includes a valid data segment and a padding data segment spliced behind the valid data segment.
In an embodiment, the first data query submodule, when configured to determine the second indication field in the last frame data frame according to the bit length of the second indication field, is specifically configured to select, as the second indication field in the last frame data frame, a consecutive number of bits located at the rearmost end of the padding data segment, where the bit length of the consecutive number of bits is equal to the bit length of the second indication field.
In one embodiment, the field value of the second indication field is used for characterizing whether a third indication field is contained in the padding data segment; when the field value of the second indication field indicates that the third indication field is not contained in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits contained in the last frame data frame; when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
In one embodiment, the first data query submodule further comprises a detection unit. The detection unit is used for detecting whether the field value of the second indication field indicates that a third indication field is contained in the padding data segment or not before inquiring the padding bit number field value corresponding to the field value of the second indication field;
correspondingly, when the first data query submodule is used for querying the filling bit number field value corresponding to the field value of the second indication field, the first data query submodule is specifically used for querying the filling bit number field value corresponding to the field value of the second indication field in response to the fact that the third indication field is not included in the filling data segment characterized by the field value of the second indication field;
correspondingly, the data query module further comprises a second query submodule. The second query submodule is used for responding to the field value representation of the second indication field, determining the bit length of the third indication field, determining the third indication field in the padding data field according to the bit length of the third indication field, and querying the field value of the number of padding bits corresponding to the field value of the third indication field.
In an embodiment, the second data query submodule, when configured to determine the bit length of the third indication field, is specifically configured to use one of the one or more preset length values of the third indication field, which corresponds to the field value of the second indication field, as the bit length of the third indication field.
In an embodiment, the second data query submodule, when being configured to determine the third indication field in the padding data segment according to the bit length of the third indication field, is specifically configured to select, as the third indication field, a consecutive number of bits in the padding data segment that precede the second indication field, the consecutive number of bits having a bit length equal to the bit length of the third indication field.
In one embodiment, the data processing apparatus further comprises a data extraction module. The data extraction module is used for extracting effective data from the N frame data frames according to the number of the filling bits.
In one embodiment, the bit length of the first indication field is 2 bits or more.
For specific limitations of the data processing apparatus of this embodiment, refer to the above limitations on the data processing method, which are not described herein again. The various modules in the data processing apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Based on the same inventive concept, the application provides a communication device. In one embodiment, as shown in fig. 16, the communication apparatus includes the following modules:
a first processing module 10, configured to generate first transmission data carrying first indication information according to valid data to be sent, where the first transmission data includes a first N frame data frame and a first data header corresponding to the first N frame data frame, and send the first transmission data carrying the first indication information; the first indication information includes a field value of a first indication field in the first data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values;
a second processing module 20, configured to receive second transmission data carrying second indication information, where the second transmission data includes a second N frame data frame and a second data header corresponding to the second N frame data frame, determine, according to the second indication information, the number of padding bits included in a last frame data frame of the second N frame data frame, and extract effective data from the second N frame data frame according to the number of the padding bits; the second indication information includes a field value of the first indication field in the second data header; the field value of the first indication field indicates that the bit length of the second indication field is a particular preset length value of the plurality of preset length values.
In one embodiment, the communication device is an intercom.
It should be noted that the communication device in this embodiment is the current communication device, the first transmission data is data that is transmitted to another communication device by referring to the current communication device, and the second transmission data is data that is transmitted to the current communication device by referring to another communication device, and these are only differences in name.
In this embodiment, the present communication apparatus integrates a transmission function of transmission data and a reception function of transmission data. The sending function of the transmission data comprises a processing function of effective data to be sent, a function of setting indication information in the transmission data, a sending function of the transmission data carrying the indication information and the like. The current communication device uses the first processing module 10 to implement the function of sending the transmission data carrying the indication information. The receiving function of the transmission data comprises a function of receiving the transmission data carrying the indication information, a function of determining the number of filling bits of the last frame data frame in the N frame data frames included in the transmission data according to the indication information, a function of extracting effective data according to the number of filling bits, and the like. The current communication device uses the second processing module 20 to implement the function of receiving the transmission data carrying the indication information.
For specific limitations of the communication device of this embodiment, see the above limitations on the data processing methods, which are not described herein again. The various modules in the communication device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, the present application provides a communication device, which may be an intercom, and its internal structure diagram may be as shown in fig. 17. The communication apparatus is provided with a processor, a nonvolatile storage medium, an internal memory, a communication module, and an input device. The communication equipment receives the transmission data carrying the indication information from other communication equipment or sends the transmission data carrying the indication information to other communication equipment through the communication module. The communication apparatus receives externally input information such as control information input by a user through the input device. When a computer program in a computer readable storage medium of a non-volatile storage medium is executed by a processor, a host computer implements a data processing method provided in any embodiment of the present application.
Those skilled in the art will appreciate that the architecture shown in fig. 17 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The communication device provided by this embodiment includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the following steps:
generating transmission data carrying indication information according to effective data to be transmitted, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of the filling bits contained in the data frame of the last frame; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values; and transmitting the transmission data carrying the indication information.
In one embodiment, when the processor executes the computer program to generate the transmission data carrying the indication information according to the valid data to be transmitted, the following steps are also implemented:
generating an N frame data frame and a data header corresponding to the N frame data frame according to effective data to be sent; acquiring the number of filling bits contained in the last frame of data frame, and inquiring a preset field value of a first indication field, a preset length value of a second indication field and a preset field value of the second indication field corresponding to the number of the filling bits; setting a field value of a first indication field in a data header according to a preset field value of the first indication field; the field value of the first indication field is used for characterizing the bit length of a second indication field in the last frame data frame; when the field value of the first indication field represents that the bit length of the second indication field is 0, taking the current N frame data frame and the data header as transmission data carrying indication information; when the field value of the first indication field indicates that the bit length of the second indication field is not 0, determining the second indication field in the last frame of data frame according to the preset length value of the second indication field, setting the field value of the second indication field according to the preset field value of the second indication field, and taking the current N frame of data frame and the data header as transmission data carrying indication information.
In one embodiment, when the last frame data frame includes padding bits, the last frame data frame includes a valid data segment and padding data segments concatenated after the valid data segment.
In one embodiment, when the processor executes the computer program to determine the second indication field in the last frame data frame according to the preset length value of the second indication field, the following steps are further implemented:
and selecting a continuous plurality of bits positioned at the tail end of the padding data segment as a second indication field in the data frame of the last frame, wherein the bit length of the continuous plurality of bits is equal to the preset length value of the second indication field.
In one embodiment, the field value of the second indication field is used for characterizing whether a third indication field is contained in the padding data segment; when the field value of the second indication field indicates that the third indication field is not contained in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits contained in the last frame data frame; when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
In one embodiment, the processor executes the computer program to perform the following steps before setting the field value of the second indication field according to the preset field value of the second indication field:
detecting whether the field value of the second indication field indicates that a third indication field is contained in the padding data segment;
accordingly, the processor executes the computer program, when setting the field value of the second indication field according to the preset field value of the second indication field, further implementing the following steps:
responding to the field value representation of the second indication field not containing a third indication field, and setting the field value of the second indication field according to the preset field value of the second indication field;
accordingly, the processor executes the computer program, further implementing the steps of:
responding to the fact that the field value representation of the second indication field contains a third indication field, inquiring a preset length value and a preset field value of the third indication field corresponding to the preset field value of the second indication field, determining the third indication field in the last frame data frame according to the preset length value of the third indication field, and setting the field value of the third indication field according to the preset field value of the third indication field.
In one embodiment, the preset length value of the third indication field corresponding to the preset field value of the second indication field is one of one or more preset length values of the third indication field.
In one embodiment, when the processor executes the computer program to determine the third indication field in the last frame data frame according to the preset length value of the third indication field, the following steps are further implemented:
selecting as the third indication field a consecutive plurality of bits preceding the second indication field in the padding data segment, the consecutive plurality of bits having a bit length equal to a preset length value of the third indication field.
In one embodiment, the first indication field has a bit length of 2 bits or more.
The present embodiment also provides another communication device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the following steps:
receiving transmission data which is sent by a sending end and carries indication information, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values; the number of padding bits contained in the last frame data frame is determined according to the indication information.
In one embodiment, when the processor executes the computer program to determine the number of padding bits contained in the last frame data frame according to the indication information, the following steps are also implemented:
reading a field value of a first indication field in a data header; when the field value of the first indication field represents that the bit length of a second indication field in the last frame data frame is not 0, determining one of a plurality of preset length values of the second indication field as the bit length of the second indication field according to the field value of the first indication field, determining the second indication field in the last frame data frame according to the bit length of the second indication field, and inquiring a filling bit number field value corresponding to the field value of the second indication field; when the field value of the first indication field represents that the bit length of a second indication field in the last frame data frame is 0, inquiring a padding bit number field value corresponding to the field value of the first indication field; the queried field value of the number of padding bits is taken as the number of padding bits contained in the last frame of data.
In one embodiment, when the last frame data frame includes padding bits, the last frame data frame includes an effective data segment and a padding data segment spliced behind the effective data segment.
In one embodiment, when the processor executes the computer program to determine the second indication field in the last frame data frame according to the bit length of the second indication field, the following steps are further implemented:
and selecting a continuous plurality of bits positioned at the tail end of the padding data section as a second indication field in the data frame of the last frame, wherein the bit length of the continuous plurality of bits is equal to that of the second indication field.
In one embodiment, the field value of the second indication field is used to characterize whether a third indication field is included in the padding data segment; when the field value of the second indication field indicates that the third indication field is not contained in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits contained in the last frame data frame; when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
In one embodiment, the processor executes the computer program to perform the following steps before querying a padding bits number field value corresponding to a field value of the second indication field:
detecting whether the field value of the second indication field indicates that a third indication field is contained in the padding data segment;
accordingly, the processor executes the computer program, when the field value of the number of stuffing bits corresponding to the field value of the second indication field is queried, the following steps are also implemented:
in response to the field value of the second indication field indicating that the third indication field is not included in the padding data segment, querying a padding bit number field value corresponding to the field value of the second indication field;
the processor executes the computer program and further implements the steps of:
and responding to the fact that the field value of the second indication field indicates that a third indication field is contained in the padding data segment, determining the bit length of the third indication field, determining the third indication field in the padding data segment according to the bit length of the third indication field, and inquiring the field value of the number of padding bits corresponding to the field value of the third indication field.
In one embodiment, the processor executes the computer program to determine the bit length of the third indication field, and further performs the following steps:
and taking one preset length value corresponding to the field value of the second indication field in the one or more preset length values of the third indication field as the bit length of the third indication field.
In one embodiment, the processor executes the computer program to determine the third indication field in the padding data segment according to the bit length of the third indication field, and further performs the following steps:
a consecutive plurality of bits preceding the second indication field in the padding data section having a bit length equal to that of the third indication field is selected as the third indication field.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
valid data is extracted from the N-frame data frame according to the number of the stuff bits.
In one embodiment, the bit length of the first indication field is 2 bits or more.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
generating transmission data carrying indication information according to effective data to be transmitted, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of the filling bits contained in the last frame data frame; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values; and transmitting the transmission data carrying the indication information.
In one embodiment, the computer program is executed by a processor, and when generating transmission data carrying indication information according to valid data to be transmitted, further implements the following steps:
generating N frame data frames and data headers corresponding to the N frame data frames according to effective data to be sent; acquiring the number of filling bits contained in a last frame of data frame, and inquiring a preset field value of a first indication field, a preset length value of a second indication field and a preset field value of the second indication field corresponding to the number of the filling bits; setting a field value of a first indication field in a data header according to a preset field value of the first indication field; the field value of the first indication field is used for characterizing the bit length of a second indication field in the last frame data frame; when the field value of the first indication field represents that the bit length of the second indication field is 0, taking the current N frame data frame and the data header as transmission data carrying indication information; when the field value of the first indication field indicates that the bit length of the second indication field is not 0, determining the second indication field in the last frame of data frame according to the preset length value of the second indication field, setting the field value of the second indication field according to the preset field value of the second indication field, and taking the current N frame of data frame and the data header as transmission data carrying indication information.
In one embodiment, when the last frame data frame includes padding bits, the last frame data frame includes a valid data segment and padding data segments concatenated after the valid data segment.
In one embodiment, when the computer program is executed by the processor and determines the second indication field in the last frame data frame according to the preset length value of the second indication field, the following steps are further implemented:
and selecting a continuous plurality of bits positioned at the tail end of the padding data segment as a second indication field in the data frame of the last frame, wherein the bit length of the continuous plurality of bits is equal to the preset length value of the second indication field.
In one embodiment, the field value of the second indication field is used to characterize whether a third indication field is included in the padding data segment; when the field value of the second indication field indicates that the third indication field is not contained in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits contained in the last frame data frame; when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
In one embodiment, the computer program is executed by the processor, before setting a field value of the second indication field according to a preset field value of the second indication field, further implementing the steps of:
detecting whether the field value of the second indication field indicates that a third indication field is contained in the padding data segment;
accordingly, the computer program is executed by the processor, and when the field value of the second indication field is set according to the preset field value of the second indication field, the following steps are also realized:
and setting the field value of the second indication field according to the preset field value of the second indication field in response to that the field value of the second indication field characterizes that the third indication field is not contained in the padding data field.
Accordingly, the computer program is executed by a processor, further implementing the steps of:
responding to the fact that the field value representation of the second indication field contains a third indication field, inquiring a preset length value and a preset field value of the third indication field corresponding to the preset field value of the second indication field, determining the third indication field in the last frame data frame according to the preset length value of the third indication field, and setting the field value of the third indication field according to the preset field value of the third indication field.
In one embodiment, the preset length value of the third indication field corresponding to the preset field value of the second indication field is one of one or more preset length values of the third indication field.
In one embodiment, when the computer program is executed by the processor and determines the third indication field in the last frame data frame according to the preset length value of the third indication field, the following steps are further implemented:
and selecting a continuous plurality of bits positioned before the second indication field in the padding data segment as a third indication field, wherein the bit length of the continuous plurality of bits is equal to the preset length value of the third indication field.
In one embodiment, the bit length of the first indication field is 2 bits or more.
In another embodiment, another computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving transmission data which is sent by a sending end and carries indication information, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of the second indication field is a particular preset length value of a plurality of preset length values; the number of padding bits contained in the last frame data frame is determined according to the indication information.
In one embodiment, the computer program is executed by a processor, and when determining the number of padding bits contained in the last frame of data frame according to the indication information, further implements the following steps:
reading a field value of a first indication field in a data header; when the field value of the first indication field represents that the bit length of a second indication field in the last frame data frame is not 0, determining one of a plurality of preset length values of the second indication field as the bit length of the second indication field according to the field value of the first indication field, determining the second indication field in the last frame data frame according to the bit length of the second indication field, and inquiring a filling bit number field value corresponding to the field value of the second indication field; when the field value of the first indication field indicates that the bit length of a second indication field in the last frame data frame is 0, inquiring a filling bit number field value corresponding to the field value of the first indication field; the queried field value of the number of padding bits is taken as the number of padding bits contained in the last frame of data.
In one embodiment, when the last frame data frame includes padding bits, the last frame data frame includes an effective data segment and a padding data segment spliced behind the effective data segment.
In one embodiment, the computer program is executed by the processor, and when determining the second indication field in the last frame data frame according to the bit length of the second indication field, further implements the following steps:
and selecting a continuous number of bits positioned at the tail end of the padding data section as the second indication field in the data frame of the last frame, wherein the bit length of the continuous number of bits is equal to that of the second indication field.
In one embodiment, the field value of the second indication field is used for characterizing whether a third indication field is contained in the padding data segment; when the field value of the second indication field indicates that the third indication field is not contained in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits contained in the last frame data frame; when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
In one embodiment, the computer program is executed by the processor to further perform the following steps before querying a padding bits number field value corresponding to a field value of the second indication field:
detecting whether the field value of the second indication field indicates that a third indication field is contained in the padding data segment;
accordingly, the computer program when executed by the processor, when querying a field value of the number of stuffing bits corresponding to a field value of the second indication field, further implements the steps of:
and querying a padding bit number field value corresponding to the field value of the second indication field in response to the field value of the second indication field characterizing that the third indication field is not included in the padding data segments.
Accordingly, the computer program is executed by a processor, further implementing the steps of:
and responding to the fact that the field value of the second indication field indicates that a third indication field is contained in the padding data segment, determining the bit length of the third indication field, determining the third indication field in the padding data segment according to the bit length of the third indication field, and inquiring the field value of the number of padding bits corresponding to the field value of the third indication field.
In one embodiment, the computer program when executed by the processor, when determining the bit length of the third indication field, further implements the steps of:
and taking one preset length value corresponding to the field value of the second indication field in the one or more preset length values of the third indication field as the bit length of the third indication field.
In one embodiment, the computer program is executed by a processor, and when determining the third indication field in the padding data segment according to the bit length of the third indication field, further implements the following steps:
a consecutive plurality of bits preceding the second indication field in the padding data section having a bit length equal to that of the third indication field is selected as the third indication field.
In one embodiment, the computer program, when executed by the processor, further implements the steps of:
valid data is extracted from the N-frame data frame according to the number of the stuff bits.
In one embodiment, the bit length of the first indication field is 2 bits or more.
It will be understood by those skilled in the art that all or part of the processes of the embodiments of the methods described above may be implemented by hardware that is related to instructions of a computer program, where the computer program may be stored in a non-volatile computer-readable storage medium, and when executed, the computer program may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (26)

1. A method of data processing, the method comprising:
generating transmission data carrying indication information according to effective data to be transmitted, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of filling bits contained in the last frame data frame;
the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of a second indication field is a particular preset length value of a plurality of preset length values; the bit length of the second indication field indicates the number of the filling bits occupied by the second indication field in the filling bits contained in the last frame data frame; when the field value of the first indication field characterizes that the bit length of the second indication field is 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the first indication field, and when the field value of the first indication field characterizes that the bit length of the second indication field is not 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the second indication field;
and sending the transmission data carrying the indication information.
2. The method of claim 1, wherein generating transmission data carrying indication information according to valid data to be transmitted comprises:
generating N frame data frames and data headers corresponding to the N frame data frames according to effective data to be sent;
acquiring the number of filling bits contained in a last frame of data frame, and inquiring a preset field value of a first indication field, a preset length value of a second indication field and a preset field value of the second indication field corresponding to the number of the filling bits;
setting a field value of a first indication field in the data header according to a preset field value of the first indication field; the field value of the first indication field is used for characterizing the bit length of a second indication field in the last frame data frame;
when the field value of the first indication field represents that the bit length of the second indication field is 0, taking the current N frame data frame and the data header as transmission data carrying indication information;
when the field value of the first indication field indicates that the bit length of the second indication field is not 0, determining a second indication field in the last frame of data frame according to the preset length value of the second indication field, setting the field value of the second indication field according to the preset field value of the second indication field, and taking the current N frame of data frame and the data header as transmission data carrying indication information.
3. The method of claim 2, wherein when the last frame data frame includes the padding bits, the last frame data frame includes a valid data segment and a padding data segment spliced after the valid data segment.
4. The method of claim 3, wherein the determining the second indication field in the last frame data frame according to the preset length value of the second indication field comprises:
selecting a plurality of continuous bits positioned at the tail end of the padding data segment as a second indication field in the last frame data frame, wherein the bit length of the plurality of continuous bits is equal to a preset length value of the second indication field.
5. The method of claim 3, wherein a field value of the second indication field is used to characterize whether a third indication field is included in the padding data segment;
when the field value of the second indication field indicates that a third indication field is not included in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits included in the last frame data frame;
when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
6. The method as claimed in claim 5, wherein said setting the field value of the second indication field according to the preset field value of the second indication field is preceded by:
detecting whether the field value of the second indication field indicates that a third indication field is included in the padding data segment;
the setting of the field value of the second indication field according to the preset field value of the second indication field includes:
in response to that the field value of the second indication field characterizes that a third indication field is not contained in the padding data segments, setting the field value of the second indication field according to a preset field value of the second indication field;
the method further comprises the following steps:
responding to the fact that the field value of the second indication field represents that a third indication field is contained in the filling data segment, inquiring a preset length value and a preset field value of the third indication field corresponding to the preset field value of the second indication field, determining the third indication field in the last frame data frame according to the preset length value of the third indication field, and setting the field value of the third indication field according to the preset field value of the third indication field.
7. The method of claim 6, wherein the preset length value of the third indication field corresponding to the preset field value of the second indication field is one of one or more preset length values of the third indication field.
8. The method of claim 6, wherein the determining the third indication field in the last frame data frame according to the preset length value of the third indication field comprises:
selecting a continuous plurality of bits in the padding data segment before the second indication field as a third indication field, wherein the bit length of the continuous plurality of bits is equal to a preset length value of the third indication field.
9. The method of claim 1, wherein a bit length of the first indication field is 2 bits or more.
10. A method of data processing, the method comprising:
receiving transmission data which is sent by a sending end and carries indication information, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of a second indication field is a particular preset length value of a plurality of preset length values; the bit length of the second indication field indicates the number of the filling bits occupied by the second indication field in the filling bits contained in the last frame data frame; when the field value of the first indication field characterizes that the bit length of the second indication field is 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the first indication field, and when the field value of the first indication field characterizes that the bit length of the second indication field is not 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the second indication field;
and determining the number of filling bits contained in the data frame of the last frame according to the indication information.
11. The method of claim 10, wherein the determining the number of padding bits contained in the last frame of data frame according to the indication information comprises:
reading a field value of a first indication field in the data header;
when the field value of the first indication field represents that the bit length of a second indication field in the last frame data frame is not 0, determining one bit length from a plurality of preset length values of the second indication field according to the field value of the first indication field, determining the second indication field in the last frame data frame according to the bit length of the second indication field, and inquiring a filling bit number field value corresponding to the field value of the second indication field; when the field value of the first indication field represents that the bit length of a second indication field in the last frame data frame is 0, inquiring a padding bit number field value corresponding to the field value of the first indication field;
the queried field value of the number of padding bits is taken as the number of padding bits contained in the last frame of data.
12. The method as claimed in claim 10, wherein when the last frame data frame includes the padding bits, the last frame data frame includes a valid data segment and a padding data segment concatenated after the valid data segment.
13. The method of claim 12, wherein said determining the second indication field in the last frame data frame according to the bit length of the second indication field comprises:
selecting a continuous plurality of bits located at the tail end of the padding data section as a second indication field in the last frame data frame, wherein the bit length of the continuous plurality of bits is equal to the bit length of the second indication field.
14. The method of claim 12, wherein a field value of the second indication field is used to characterize whether a third indication field is included in the padding data segment;
when the field value of the second indication field indicates that a third indication field is not included in the last frame data frame, the field value of the second indication field is used for indicating the number of padding bits included in the last frame data frame;
when the field value of the second indication field indicates that a third indication field is included in the last frame data frame, the number of padding bits included in the last frame data frame is indicated by the field value of the third indication field.
15. The method of claim 14, wherein the querying a padding bit number field value corresponding to a field value of the second indication field is preceded by:
detecting whether the field value of the second indication field indicates that a third indication field is included in the padding data segment;
the querying a padding bits number field value corresponding to a field value of the second indication field includes:
in response to the field value of the second indication field characterizing that no third indication field is included in the padding data segment, querying a padding bit number field value corresponding to the field value of the second indication field;
the method further comprises the following steps:
responding to the fact that the field value of the second indication field indicates that a third indication field is contained in the padding data segment, determining the bit length of the third indication field, determining the third indication field in the padding data segment according to the bit length of the third indication field, and inquiring the field value of the number of padding bits corresponding to the field value of the third indication field.
16. The method of claim 15, wherein the determining the bit length of the third indication field comprises:
and taking one preset length value corresponding to the field value of the second indication field in the one or more preset length values of the third indication field as the bit length of the third indication field.
17. The method of claim 15, wherein the determining a third indication field in the padding data segment according to the bit length of the third indication field comprises:
selecting a consecutive plurality of bits preceding the second indication field in the padding data segment as a third indication field, a bit length of the consecutive plurality of bits being equal to a bit length of the third indication field.
18. The method of claim 10, wherein the method further comprises: and extracting effective data from the N frame data frames according to the number of the filling bits.
19. The method of claim 10, wherein a bit length of the first indication field is 2 bits or more.
20. A communication system, characterized in that the communication system comprises a transmitting end and a receiving end;
the sending end is used for generating transmission data carrying indication information according to effective data to be sent and sending the transmission data carrying the indication information, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames;
the receiving end is configured to receive the transmission data carrying the indication information, where the transmission data includes N frame data frames and data headers corresponding to the N frame data frames, determine, according to the indication information, the number of padding bits included in a last frame data frame, and extract, according to the number of the padding bits, valid data from the N frame data frames;
the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of a second indication field is a particular preset length value of a plurality of preset length values; the bit length of the second indication field indicates the number of the filling bits occupied by the second indication field in the filling bits contained in the last frame data frame; when the field value of the first indication field indicates that the bit length of the second indication field is 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the first indication field, and when the field value of the first indication field indicates that the bit length of the second indication field is not 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the second indication field.
21. A data processing apparatus, characterized in that the apparatus comprises:
the generating module is used for generating transmission data carrying indication information according to effective data to be sent, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information is used for the receiving end to determine the number of the filling bits contained in the last frame data frame; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of a second indication field is a particular preset length value of a plurality of preset length values; the bit length of the second indication field indicates the number of filling bits occupied by the second indication field in the filling bits contained in the last frame data frame; when the field value of the first indication field characterizes that the bit length of the second indication field is 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the first indication field, and when the field value of the first indication field characterizes that the bit length of the second indication field is not 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the second indication field;
and the sending module is used for sending the transmission data carrying the indication information.
22. A data processing apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving transmission data which is sent by a sending end and carries indication information, wherein the transmission data comprises N frame data frames and data headers corresponding to the N frame data frames; the indication information comprises a field value of a first indication field in the data header; a field value of the first indication field indicates that a bit length of a second indication field is a particular preset length value of a plurality of preset length values; the bit length of the second indication field indicates the number of the filling bits occupied by the second indication field in the filling bits contained in the last frame data frame; when the field value of the first indication field indicates that the bit length of the second indication field is 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the first indication field, and when the field value of the first indication field indicates that the bit length of the second indication field is not 0, the number of padding bits contained in the last frame data frame is indicated by the field value of the second indication field;
and the number determining module is used for determining the number of the filling bits contained in the data frame of the last frame according to the indication information.
23. A communication apparatus, characterized in that the communication apparatus comprises:
the first processing module is configured to generate first transmission data carrying first indication information according to valid data to be transmitted, where the first transmission data includes a first N frame data frame and a first data header corresponding to the first N frame data frame, and transmit the first transmission data carrying the first indication information; the first indication information is used for a receiving end to determine the number of padding bits contained in the last frame data frame of the first N frame data frames; the first indication information comprises a field value of a first indication field in the first data header; a field value of the first indication field in the first data header indicates that a bit length of a second indication field in a last frame data frame of the first N-frame data frame is a specific preset length value among a plurality of preset length values, the bit length of the second indication field indicating a number of padding bits occupied by the second indication field in padding bits included in the last frame data frame of the first N-frame data frame; when the field value of the first indication field in the first data header indicates that the bit length of the second indication field is 0, the number of padding bits contained in the last frame data frame of the first N frame data frames is indicated by the field value of the first indication field in the first data header, and when the field value of the first indication field in the first data header indicates that the bit length of the second indication field is not 0, the number of padding bits contained in the last frame data frame of the first N frame data frames is indicated by the field value of the second indication field;
a second processing module, configured to receive second transmission data carrying second indication information, where the second transmission data includes a second N frame data frame and a second data header corresponding to the second N frame data frame, determine, according to the second indication information, a number of padding bits included in a last frame data frame of the second N frame data frame, and extract, according to the number of the padding bits, valid data from the second N frame data frame; the second indication information includes a field value of a first indication field in the second data header; a field value of the first indication field in the second data header indicates that a bit length of the second indication field in a last frame data frame of the second N frame data frames is a particular preset length value of a plurality of preset length values; the bit length of the second indication field indicates the number of the padding bits occupied by the second indication field in the padding bits contained in the last frame data frame of the second N-frame data frames; when the field value of the first indication field in the second data header indicates that the bit length of the second indication field is 0, the number of padding bits contained in the last frame data frame of the second N frame data frames is indicated by the field value of the first indication field in the second data header, and when the field value of the first indication field in the second data header indicates that the bit length of the second indication field is not 0, the number of padding bits contained in the last frame data frame of the second N frame data frames is indicated by the field value of the second indication field.
24. The communications apparatus of claim 23, wherein the communications apparatus is an intercom device.
25. A communication device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 9 are implemented when the computer program is executed by the processor, or in that the steps of the method of any of claims 10 to 19 are implemented when the computer program is executed by the processor.
26. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9, or which, when being executed by a processor, carries out the steps of the method of any one of claims 10 to 19.
CN202111420025.3A 2021-11-26 2021-11-26 Data processing method and device, communication system and communication device, equipment and medium Active CN114257338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111420025.3A CN114257338B (en) 2021-11-26 2021-11-26 Data processing method and device, communication system and communication device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111420025.3A CN114257338B (en) 2021-11-26 2021-11-26 Data processing method and device, communication system and communication device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114257338A CN114257338A (en) 2022-03-29
CN114257338B true CN114257338B (en) 2022-12-20

Family

ID=80793327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111420025.3A Active CN114257338B (en) 2021-11-26 2021-11-26 Data processing method and device, communication system and communication device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114257338B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2908475A1 (en) * 2014-02-17 2015-08-19 Consiglio Nazionale Delle Ricerche Limitation of bit stuffing in a communication frame of an electronic signal
CN105828014A (en) * 2016-05-06 2016-08-03 浙江宇视科技有限公司 Audio/video transmission method and device
CN106850143A (en) * 2013-11-04 2017-06-13 上海数字电视国家工程研究中心有限公司 The method for packing and method of calibration of packet
CN111541521A (en) * 2020-05-07 2020-08-14 上海道生物联技术有限公司 Data packet length identification method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8711771B2 (en) * 2009-03-03 2014-04-29 Qualcomm Incorporated Scalable header extension
US20160262052A1 (en) * 2015-03-06 2016-09-08 Apple Inc. Aggregated data frame structures

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850143A (en) * 2013-11-04 2017-06-13 上海数字电视国家工程研究中心有限公司 The method for packing and method of calibration of packet
EP2908475A1 (en) * 2014-02-17 2015-08-19 Consiglio Nazionale Delle Ricerche Limitation of bit stuffing in a communication frame of an electronic signal
CN105828014A (en) * 2016-05-06 2016-08-03 浙江宇视科技有限公司 Audio/video transmission method and device
CN111541521A (en) * 2020-05-07 2020-08-14 上海道生物联技术有限公司 Data packet length identification method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
以太网帧;范兴刚等;《工业控制计算机》;20021120(第10期);全文 *

Also Published As

Publication number Publication date
CN114257338A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN110324115B (en) Data transmission method and device, storage medium and terminal equipment
CN110690941B (en) Polar code rate matching method and device
EP3537641A1 (en) Method and device for transmitting data packet
CN114760654A (en) CSI reporting method and device
AU2017436699B2 (en) Method for transmitting data, terminal device and network device
CN114257338B (en) Data processing method and device, communication system and communication device, equipment and medium
CN113438633B (en) Communication data processing method, terminal and computer readable storage medium
CN110474924B (en) Data transmission method and device, computer equipment and storage medium
EP3240327B1 (en) Resource allocation method and device and information feedback method and device
CN106471785B (en) Virtual carrier sensing method and device
CN111510995B (en) Wireless communication method and apparatus
US11696219B2 (en) Data transmission method, terminal apparatus, and network apparatus
CN111865557A (en) Check code generation method and device
CN111478802B (en) Distribution network processing method, device, system, computer equipment and storage medium
CN111385797B (en) WiFi network distribution method, device, apparatus and storage medium
CN110557374B (en) Power data acquisition method and device, computer equipment and storage medium
CN112019357B (en) Network configuration method, device, equipment and system
CN101699914A (en) Up-link and down-link service data processing method and relevant device in mobile terminal
CN111278145B (en) Method for generating data, method for configuring logical channel, terminal equipment and chip
CN108243454B (en) Data compression and decompression method and data compressor and decompressor
CN113259043A (en) Data processing method and device for frame synchronization, communication system and communication device
EP3534557B1 (en) Feedback information sending method, receiving method, device and system
EP1134915A2 (en) Mobile communication system with base stations receiving and transmitting data frames
CN111372297B (en) Odd-even packet-based WiFi network distribution method, equipment, device and storage medium
CN109687938B (en) Frame data processing method and device applied to repeater and computer equipment

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