CN107222848A - Coding method, transmitting terminal, storage medium and a kind of radio reception device of Wifi frame - Google Patents

Coding method, transmitting terminal, storage medium and a kind of radio reception device of Wifi frame Download PDF

Info

Publication number
CN107222848A
CN107222848A CN201710557237.3A CN201710557237A CN107222848A CN 107222848 A CN107222848 A CN 107222848A CN 201710557237 A CN201710557237 A CN 201710557237A CN 107222848 A CN107222848 A CN 107222848A
Authority
CN
China
Prior art keywords
group
wifi
wifi frame
frame
sequence number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710557237.3A
Other languages
Chinese (zh)
Other versions
CN107222848B (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201710557237.3A priority Critical patent/CN107222848B/en
Publication of CN107222848A publication Critical patent/CN107222848A/en
Application granted granted Critical
Publication of CN107222848B publication Critical patent/CN107222848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0057Block codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses the coding method of Wifi frame, transmitting terminal, storage medium and a kind of radio reception device, for the out of order problem for solving to bring by packet loss in WiFi broadcast.The method that the present invention is provided includes:The data to be transmitted of binary format is encoded into each Wifi frame successively, in each Wifi frame, y designated bit position is used for the coding of data to be transmitted, and x designated bit position is used for the coding of sequence number in group;Each described Wifi frame is grouped according to the order of the data to be transmitted carried, per k Wifi frame as 1 group, each group is obtained;Order according to packet is respectively that each described small component matches somebody with somebody the group sequence number with uniqueness, when sending, and each group sequence number is transmitted as an independent Wifi frame;The transmitting terminal is given according to the order of the packet carry out WiFi broadcast by the corresponding described group of sequence number of each described group and each group, when WiFi broadcast, the corresponding adjacent transmission of the group of each described group of sequence number.

Description

Coding method, transmitting terminal, storage medium and a kind of radio reception device of Wifi frame
Technical field
The present invention relates to wireless communication technology field, more particularly to the coding method of Wifi frame, transmitting terminal, storage medium and A kind of radio reception device.
Background technology
SmartConfig is a kind of general designation of technology, and it can allow WiFi equipment not set up the communication link of any property In the case of, the Wifi frame for constantly receiving air is analyzed, and analyzes the data of transmitting terminal.SmartConfig technologies are extensive Apply in the network insertion of smart machine.It can carry data with multicast MAC and the long two ways of Wifi frame.
Wherein, encoded using Wifi frame length, WiFi broadcast packets are always worked on low speed, it is ensured that all WiFi equipments All it can use.But this method is limited to the length of Wifi frame, available coding digit is few, and data are in transmission, easily because packet loss And the problem of bring out of order, receiving terminal can be made can not to receive correct data.
Therefore, because of the out of order problem that packet loss is brought when how to solve to carry data using Wifi frame long codes, this becomes Those skilled in the art's technical problem urgently to be resolved hurrily.
The content of the invention
The embodiments of the invention provide the coding method of Wifi frame, transmitting terminal, storage medium and a kind of radio reception device, It can solve the problem that the out of order problem brought in WiFi broadcast by packet loss.
First aspect there is provided a kind of coding method of Wifi frame, including:
The data to be transmitted of binary format is encoded into each Wifi frame successively, in each Wifi frame, y are specified Bit is used for the coding of data to be transmitted, and x designated bit position is used for the coding of sequence number in group;Wherein, common k each not phases With group in sequence number, k≤2^x, sequence number is encoded to the order of each Wifi frame according to the data to be transmitted in described group It is sequentially allocated to each described Wifi frame;The data to be transmitted includes data check value and valid data length;
Each described Wifi frame is grouped according to the order of the data to be transmitted carried, 1 is used as per k Wifi frame Individual group, obtains each group;
Order according to packet is respectively that each described small component matches somebody with somebody the group sequence number with uniqueness, when sending, often Individual described group of sequence number is transmitted as an independent Wifi frame;
By the corresponding described group of sequence number of each described group and each group institute is given according to the order of the packet State transmitting terminal and carry out WiFi broadcast, when WiFi broadcast, each described group of sequence number corresponding adjacent hair of the group Send.
Second aspect there is provided a kind of code device of Wifi frame, including:
Data coding module, for the data to be transmitted of binary format to be encoded into each Wifi frame successively, every In individual Wifi frame, y designated bit position is used for the coding of data to be transmitted, and x designated bit position is used for the volume of sequence number in group Code;Wherein, sequence number in groups different common k, k≤2^x, sequence number is encoded according to the data to be transmitted in described group Order to each Wifi frame is sequentially allocated to each described Wifi frame;The data to be transmitted includes data check value and effective Data length;
Frame grouping module, for being grouped to each described Wifi frame according to the order of the data to be transmitted carried, Per k Wifi frame as 1 group, each group is obtained;
Group sequence number distribute module, is respectively that each described small component is matched somebody with somebody with uniqueness for the order according to packet Group sequence number, when sending, each described group of sequence number is transmitted as an independent Wifi frame;
Sending module, for inciting somebody to action each described group and the corresponding described group of sequence number of each group according to the packet Order give the transmitting terminal and carry out WiFi broadcast, when WiFi broadcast, each described group of sequence number corresponding institute State the adjacent transmission of group.
The third aspect is there is provided a kind of radio reception device, including memory, processor and is stored in the memory In and the computer program that can run on the processor, realized described in the computing device during computer program above-mentioned The step of coding method of Wifi frame.
Fourth aspect has meter there is provided a kind of computer-readable recording medium, the computer-readable recording medium storage Calculation machine program, the computer program realizes the coding method of above-mentioned Wifi frame when being executed by processor the step of.
There is provided a kind of coding/decoding method of Wifi frame in terms of 5th, including:
Each Wifi frame of receiving terminal receiving end/sending end WiFi broadcast;Wherein, each described Wifi frame include each first Wifi frame and each second Wifi frame;Each described first Wifi frame be used for carry this WiFi broadcast data to be transmitted and Sequence number in respective group, each described second Wifi frame is used for the group sequence number of group where carrying each;
If receiving any first Wifi frame in each described first Wifi frame, and do not receive and described any first The second adjacent Wifi frame of Wifi frame, then the receiving terminal is according to sequence number in the group of any first Wifi frame, previous Sequence number and the group sequence number of previous second Wifi frame determine any first Wifi frame in the group of first Wifi frame The group sequence number of place group;Previous first Wifi frame refers to connect in reception any first Wifi frame foregoing description The first Wifi frame that receiving end is most recently received, previous second Wifi frame refer to receive any first Wifi frame it The second Wifi frame that the preceding receiving terminal is most recently received;
Each described first Wifi frame of receiving terminal parsing and each adjacent with each described first Wifi frame second Wifi frame, obtains sequence number and the group sequence number of place group in the group of each first Wifi frame;
The receiving terminal is according to sequence number and the group sequence number meter of place group in the group of each first Wifi frame The global sequence number of each first Wifi frame is calculated, the global sequence number is used to characterize each first Wifi frame at this Global order in WiFi broadcast;
The receiving terminal parses each described first Wifi frame according to the global sequence number of the first Wifi frame each described and obtained To the data to be transmitted;
The data check value and valid data length of the receiving terminal in the data to be transmitted are treated to described Transmission data are verified;
If being verified, the receiving terminal determines to get the complete data to be transmitted.
There is provided a kind of decoding apparatus of Wifi frame in terms of 6th, including:
Frame receiving module, each Wifi frame broadcasted for receiving end/sending end WiFi;Wherein, each described Wifi frame includes Each first Wifi frame and each second Wifi frame;Each described first Wifi frame is used to carry the to be transmitted of this WiFi broadcast Sequence number in data and respective group, each described second Wifi frame is used for the group sequence number of group where carrying each;
Sequence number determining module, if being received for the frame receiving module any first in each described first Wifi frame Wifi frame, and do not receive second Wifi frame adjacent with any first Wifi frame, then according to any first WiFi Sequence number in the group of frame, sequence number and the group sequence number of previous second Wifi frame are true in the group of previous first Wifi frame The group sequence number of group where making any first Wifi frame;Previous first Wifi frame refers to receiving described appoint The first Wifi frame that one first Wifi frame foregoing description frame receiving module is most recently received, previous second Wifi frame refers to Receiving the second Wifi frame that any first Wifi frame foregoing description frame receiving module is most recently received;
Frame parsing module, for parsing each described first Wifi frame and each adjacent with each described first Wifi frame Second Wifi frame, obtains sequence number and the group sequence number of place group in the group of each first Wifi frame;
Global sequence's computing module, for sequence number in the group according to each first Wifi frame and place group Group sequence number calculates the global sequence number of each first Wifi frame, and the global sequence number is used to characterize each the first WiFi Global order of the frame in this WiFi broadcast;
Data resolution module, for the global sequence number according to the first Wifi frame each described parse it is described each first Wifi frame obtains the data to be transmitted;
Data Verification module, for the data check value and valid data length pair in the data to be transmitted The data to be transmitted is verified;
Determining module is finished receiving, if being verified for the Data Verification module, it is determined that get complete institute State data to be transmitted.
7th aspect is there is provided a kind of terminal device, including memory, processor and is stored in the memory simultaneously The computer program that can be run on the processor, realizes above-mentioned WiFi during computer program described in the computing device The step of coding/decoding method of frame.
Eighth aspect has meter there is provided a kind of computer-readable recording medium, the computer-readable recording medium storage Calculation machine program, the computer program realizes the coding/decoding method of above-mentioned Wifi frame when being executed by processor the step of.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In the embodiment of the present invention, first, the data to be transmitted of binary format is encoded into each Wifi frame successively, In each Wifi frame, y designated bit position is used for the coding of data to be transmitted, and x designated bit position is used for sequence number in group Coding;Wherein, sequence number in groups different common k, k≤2^x, sequence number is compiled according to the data to be transmitted in described group Code to the order of each Wifi frame is sequentially allocated to each described Wifi frame;The data to be transmitted includes data check value and had Imitate data length;Then, each described Wifi frame is grouped according to the order of the data to be transmitted carried, it is individual per k Wifi frame obtains each group as 1 group;Then, it is respectively each described small component with having according to the order of packet The group sequence number of uniqueness, when sending, each described group of sequence number is transmitted as an independent Wifi frame;Finally, By the corresponding described group of sequence number of each described group and each group the transmitting terminal is given according to the order of the packet WiFi broadcast is carried out, when WiFi broadcast, the corresponding adjacent transmission of the group of each described group of sequence number.So, Sequence number in corresponding group of the Wifi frame is also encoded while data to be transmitted is encoded to Wifi frame, also, to obtaining To each Wifi frame be grouped after, be each small component with corresponding group of sequence number, each distinguished by a group sequence number Order between group, and the order of Wifi frame is then distinguished by sequence number in each group in the inside of each group, so as to connect Receiving end is after these Wifi frames of WiFi broadcast are received, due to not only including data to be transmitted in a Wifi frame but also comprising in group Sequence number, can also receive the group sequence number adjacent with group corresponding Wifi frame, so that in data check value and valid data Under the auxiliary of length, even if there is packet loss phenomenon, receiving terminal can also reduce these according to sequence number in group sequence number and group The order of the data to be transmitted carried in Wifi frame, is solved because of the out of order problem that packet loss is brought.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of coding method one embodiment flow chart of Wifi frame in the embodiment of the present invention;
Fig. 2 is a kind of coding/decoding method one embodiment flow chart of Wifi frame in the embodiment of the present invention;
Fig. 3 is a kind of code device one embodiment structure chart of Wifi frame in the embodiment of the present invention;
The schematic diagram for the radio reception device that Fig. 4 provides for one embodiment of the invention;
Fig. 5 is a kind of decoding apparatus one embodiment structure chart of Wifi frame in the embodiment of the present invention;
The schematic diagram for the terminal device that Fig. 6 provides for one embodiment of the invention.
Embodiment
The embodiments of the invention provide the coding method of Wifi frame, transmitting terminal, storage medium and a kind of radio reception device, For the out of order problem for solving to bring by packet loss in WiFi broadcast.
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of embodiment of the invention, and not all embodiment.Based on the embodiment in the present invention, this area All other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to protection of the present invention Scope.
Referring to Fig. 1, a kind of coding method one embodiment of Wifi frame includes in the embodiment of the present invention:
101st, the data to be transmitted of binary format is encoded into each Wifi frame successively, in each Wifi frame, y Designated bit position is used for the coding of data to be transmitted, and x designated bit position is used for the coding of sequence number in group;Wherein, common k is individual each Sequence number in the group differed, k≤2^x, sequence number is encoded to each Wifi frame according to the data to be transmitted in described group Order is sequentially allocated to each described Wifi frame;The data to be transmitted includes data check value and valid data length;
102nd, each described Wifi frame is grouped according to the order of the data to be transmitted carried, per k Wifi frame As 1 group, each group is obtained;
103rd, it is respectively that each described small component matches somebody with somebody the group sequence number with uniqueness according to the order of packet, is sending When, each described group of sequence number is transmitted as an independent Wifi frame;
104th, the corresponding described group of sequence number of each described group and each group is handed over according to the order of the packet The transmitting terminal is given to carry out WiFi broadcast, when WiFi broadcast, each described group of sequence number corresponding group's phase Neighbour sends.
The present embodiment is encoded using Wifi frame length, by carrying out special coding to ascii data so that 1 Not only comprising data to be transmitted but also comprising sequence number in group in Wifi frame, when WiFi is broadcasted, also by corresponding group of sequence of each group Row number is adjacent to be sent, so that receiving terminal can calculate each Wifi frame according to sequence number in the group sequence number and group received Global sequence number, reduces the order that this WiFi broadcasts carried data to be transmitted, and solve to bring by packet loss out of order asks Topic.
, before the coding, can be first to this if data waiting for transmission are not binary formats for above-mentioned steps 101 A little data waiting for transmission enter the conversion of row format, are converted to the data of binary format, such as are converted to ASCII character form.
In WiFi broadcast, the length of a Wifi frame is limited, for example, for general radio reception device Speech, its MTU (Maximum Transmission Unit, MTU) is typically slightly larger than 1024, namely a Wifi frame Frame length be 10bit.When data to be transmitted is encoded to Wifi frame, it is desirable to which x+y value is less than equal to Wifi frame The number of bits of codified, and the number of bits of the codified of a Wifi frame is wide by radio reception device (i.e. transmitting terminal) WiFi The MTU broadcast is determined.Therefore, in actual use, x and y value can be chosen respectively according to the MTU of transmitting terminal, so that Adjust the stability of code efficiency and broadcast.
During coding, the x designated bit position in a Wifi frame can be higher bit position or low bit position, example Such as, high 3 are used as a group coding for interior sequence number, or low 3 codings for being used as sequence number in group.Wherein, x value determines this In secondary coding in different group sequence number number.Assuming that x=1, then sequence number at most only has 2 in different group It is individual, " 0 " or " 1 ", i.e., now k=2;Assuming that x=2, then sequence number is up to 4 in different group, " 00 ", " 01 ", " 10 " or " 11 ", i.e., now k=4;Etc..When data to be transmitted is encoded to each Wifi frame, due to each not phase The number of sequence number is limited in same group, therefore sequence number will be reused in these groups, and according to the coding of data to be transmitted Order distributes to each Wifi frame.For example, it is assumed that x=2, data to be transmitted is encoded to 7 Wifi frames successively, then this 7 WiFi Frame is sequentially allocated sequence number in obtained group:“00”、“01”、“10”、“11”、“00”、“01”、“10”.
And for the y designated bit position in a Wifi frame, it can also be higher bit position or low bit position.Work as x When higher bit position is in individual designated bit position, then y designated bit position is low bit position;Conversely, x designated bit position is low bit During position, then y designated bit position is higher bit position.It should be noted that being encoded by data to be transmitted to the y of each Wifi frame When in individual designated bit position, it is necessary to which the order according to data to be transmitted is encoded.For example, it is assumed that the binary system of data to be transmitted Form be " 001101110101 ", y=3, then the data to be transmitted encode successively into 4 Wifi frames, in first Wifi frame Y designated bit position be " 001 ", the y designated bit position in second Wifi frame is the y in " 101 ", the 3rd Wifi frame Individual designated bit position is that the y designated bit position in " 110 ", the 4th Wifi frame is " 101 ".
It should be noted that the data to be transmitted further comprises the required data check value of this coding and valid data are long Degree.Wherein, data check value is used for data progress correctness verification of the receiving terminal to receiving;Valid data length is used to receive The total length that this transmission data sequence of transmitting terminal is calculated with this is held, so as to be used as the basis for estimation for stopping receiving.
For above-mentioned steps 102, from the above-mentioned content on x designated bit position, due in different group The number of sequence number is limited, in order to which receiving terminal can learn the global sequence of each Wifi frame of this transmitted data sequence Number, it is necessary to be grouped to each described Wifi frame, Wifi frame adjacent, with sequence number in different group is classified as One group, i.e., the order according to data to be transmitted will be per k Wifi frame as 1 group, so as to obtain several groups.For example, For it is above-mentioned be sequentially allocated obtain " 00 ", " 01 ", " 10 ", " 11 ", " 00 ", " 01 ", 7 of sequence number in " 10 " this 7 groups For Wifi frame, preceding 4 Wifi frames can be classified as to first group, rear 3 Wifi frames are classified as second group.Need explanation Be, it is assumed that second group that rear 3 Wifi frames are classified as this transmission data sequence last 1 group, due to 3 Wifi frame is discontented with 1 group, 1 Wifi frame can be filled for second group, so that polishing second group.Its In, polishing can be carried out by the way of filling out 0.
For above-mentioned steps 103, after packet, in addition it is also necessary to which the order according to packet is respectively that each small component is matched somebody with somebody with unique The group sequence number of property.Such as, for above-mentioned 7 Wifi frames for example, it is first first small component combo sequence number " 0 ", It is again second small component combo sequence number " 1 ".In the present embodiment, when transmitting terminal sends each Wifi frame, these group of sequence Number it is transmitted respectively as an independent Wifi frame, i.e. group sequence number " 0 " is an independent Wifi frame, organizes sequence Row number " 1 " is another independent Wifi frame.It is understood that in order to when WiFi is broadcasted, allow receiving terminal to learn each group Corresponding relation between sequence number and each group, the corresponding group of each described group of sequence number is adjacent to be sent. Specifically, each group of sequence number and each group can be submitted to transmitting terminal, transmitting terminal is when WiFi is broadcasted according to each group Corresponding relation between sequence number and each group, will mutual corresponding group of sequence number and the adjacent transmission of group's progress;Can also Be, before transmitting terminal is submitted to, first according to the corresponding relation between each group of sequence number and each group will organize sequence number with Group is adjacent two-by-two, be staggered, and then will arrange obtained Wifi frame queue submits to transmitting terminal by queue sequence, so, The Wifi frame queue that transmitting terminal directly comes up before WiFi broadcast according to submitting carries out WiFi broadcast.Such as, first is remembered 4 Wifi frames of individual group are respectively " A1 ", " A2 ", " A3 ", " A4 ", 4 Wifi frames of second group be respectively " B1 ", " B2 ", " B3 ", " B4 ", group sequential orders are before correspondence group, then obtaining Wifi frame queue is:“0”、“A1”、“A2”、 “A3”、“A4”、“1”、“B1”、“B2”、“B3”、“B4”.So as to which transmitting terminal is when WiFi is broadcasted, and first from " 0 ", this Wifi frame is opened Begin to broadcast, then broadcast " A1 " this Wifi frame ... Last call " B4 " this Wifi frame.
As shown in the above, after packet, for each Wifi frame of this transmission, each is distinguished by a group sequence number small Order between group, and for multiple Wifi frames in each group, then Wifi frame in group is distinguished by sequence number in group Between order so that receiving terminal can learn transmitting terminal, this sends the overall situation time of corresponding each Wifi frame of data sequence Sequence.
, can be by after corresponding group of sequence number of each group and each group is determined for above-mentioned steps 104 According to packet order submit to transmitting terminal carry out WiFi broadcast, when WiFi broadcast, it is desirable to each described group of sequence number and its The corresponding group is adjacent to be sent.For example, the above-mentioned citing on 7 Wifi frames is accepted, first group and group sequence number " 0 " is adjacent to be sent, and second group is adjacent with group sequence number " 1 " to be sent.Wherein, group sequence number can be sent out before correspondence group Send, for example, during WiFi broadcast, the first corresponding Wifi frame of transmission group sequence number " 0 ", then send 4 in first group successively Wifi frame, the then corresponding Wifi frame of transmission group sequence number " 1 ", then send 4 Wifi frames in second group successively;Group sequence Row number can also be sent after correspondence group, for example, during WiFi broadcast, 4 WiFi in first group are first sent successively Frame, retransmits the corresponding Wifi frame of a group sequence number " 0 ", and 4 Wifi frames in second group are then sent successively, group is retransmited The corresponding Wifi frame of sequence number " 1 ".
Further, it is each described when WiFi is broadcasted in order to reduce the losing probability of the group sequence number when WiFi is broadcasted The corresponding group of group sequence number is adjacent to be sent, and each described group of sequence number repeats to send more than twice.For example, Can first repeat send 4 times, namely 4 frames group sequence number " 0 ", then successively send first group in 4 Wifi frames.This Sample, in WiFi broadcasting process, even if the Wifi frame of some carrying group sequence number " 0 " lost, receiving terminal can also be received The Wifi frame of other 3 carrying groups sequence numbers " 0 ", situation about only being lost in the Wifi frame of 4 carrying group sequence numbers " 0 " Under, receiving terminal just can not get a group sequence number " 0 ".
Further, the Wifi frame after being encoded in order to avoid the value of the Wifi frame after group serial number codes with data to be transmitted Value exist overlap scope, cause receiving terminal to cannot be distinguished by the situation of group sequence number and data to be transmitted, can will it is described respectively Corresponding each group of serial number codes of individual group into Wifi frame, each group of sequence number encoded in Wifi frame after value category In default first number range;Wherein, the value after the data to be transmitted is encoded in Wifi frame belongs to default second number It is worth scope, without the scope overlapped between first number range and the second value scope.For example, in number to be transmitted During according to coding, its value scope control after encoding is in [200, ∞], then receiving terminal, can be with after each Wifi frame is received The scope fallen into according to the value of Wifi frame is group sequence number or data to be transmitted judge to learn current Wifi frame carrying.
Preferably for different MTU radio reception device, x and y value determine code efficiency when its WiFi is broadcasted With broadcast stability.Therefore, the present embodiment is carried out for a specific application scenarios to the coding method of above-mentioned Wifi frame Detailed description:
Under an application scenarios, the number of bits that transmitting terminal carries out the codified of each Wifi frame of WiFi broadcast is 8, X=3, y=4, and k=8.Wherein, 4 designated bit positions are low bit position, for the coding of data to be transmitted, and 3 are specified ratio Special position is higher bit position, the coding for organizing interior sequence number.In this application scene, the coding range of data to be transmitted for [200, ∞]。
Assuming that data waiting for transmission are " My ", its valid data length is 2, calculates obtained CRC16 verifications and is 0xC376.The data to be transmitted that valid data length 2, data check value 0xC376 and data " My " are transmitted as this.Its In, arranged from a high position to low level, the ASCII character of valid data length 2 is:0 and 0x02;Data check value 0xC376 ASCII Code be:0x06 and 0x76;The ASCII character of data " My " is respectively:0x4D (correspondence ' M '), 0x79 (correspondence ' y ').
Because every 8 Wifi frames are that sequence number is respectively in 8 groups in 1 group, group in k=8, i.e. this application scene ' 000 ' (is designated as 0<<7), ' 001 ' (it is designated as 1<<7), ' 010 ' (2 are designated as<<7), ' 011 ' (3 are designated as<<7), ' 100 ' (4 are designated as<< 7), ' 101 ' (5 are designated as<<7), ' 110 ' (6 are designated as<<7), ' 111 ' (7 are designated as<<7).Data to be transmitted packet to stating, there are To 1 group, the data to be transmitted that first group includes is respectively:0th, 0x02,0x06,0x76,0x4D (correspondence ' M '), 0x79 (correspondence ' y ').
When data to be transmitted is encoded into Wifi frame, while being added according to the order of data to be transmitted in high 3 Sequence number in corresponding group, therefore, Wifi frame to be sent is respectively:(0<<7) | 0=0x000, (1<<7) | 0x02= 0x082、(2<<7) | 0x06=0x106, (3<<7) | 0x76=0x1F6, (4<<7) | 0x4D=0x24D, (5<<7) | 0x79= 0x2F9。
In this application scene, group sequence number is started counting up from 0, therefore the group Serial No. 0 of first group, second small The group Serial No. 1 of group.Each group sequence number is sent separately as a Wifi frame, therefore, and group sequence number 0 is encoded to WiFi It is in frame:0, group sequence number 1 is encoded and is into Wifi frame:0x01=0x001.
Under this application scene, every group of group sequence number is come before its corresponding group and on adjacent position, is carried The data sequence for giving transmitting terminal is as follows:
In order to improve in the losing probability of reduction group sequence number, this application scene, each group sequence number repeats to send 4 times. Therefore, add after offset, submit to shown in the following form of data sequence of transmitting terminal:
Understand, under this application scene, need to submit to during transmission data " My " the final data sequence of transmitting terminal for 0,0, 0,0,223,330,462,702,789,961 }, then when transmitting terminal carries out WiFi broadcast, the frame length of the 1st Wifi frame of transmission is The frame length of 0, the 2nd Wifi frame is 0 ..., and the frame length of last 1 Wifi frame is 961.
In this application scene, x=3, y=7, and k=8, each to organize sequence number repetition transmission 4 times, therefore, it encodes effect Rate is (7*8)/(10*12)=46.6%.Code efficiency of the code efficiency not only than prior art is high, and due to a group sequence Number repetition send 4 times, substantially reduce the probability of loss group sequence number, enhance the stability of broadcast.If higher in order to pursue Code efficiency, each group sequence number only can be sent 1 time, then now its code efficiency reaches (7*8)/(10*9)=62.2%.
Preferably, under another application scenarios, transmitting terminal carries out the ratio of the codified of each Wifi frame of WiFi broadcast Special digit is 10, x=2, y=8, and k=4, and each group sequence number sends 1 time, similarly, its code efficiency then reached (8*4)/ (10*5)=64%.Understood by the comparison of each application scenarios, when the number of bits of the codified of a Wifi frame is 10, The code efficiency highest of this application scene.
Preferably, under another application scenarios, transmitting terminal carries out the ratio of the codified of each Wifi frame of WiFi broadcast Special digit is 10, x=2, y=8, and k=4, and each group sequence number sends 3 times, similarly, its code efficiency then reached (8*4)/ (10*7)=45.7%.It can be seen that, with above-mentioned " x=3, y=7, and k=8, each group sequence number repeat to send 4 times " this application The code efficiency contrast of scene, and understood after verifying repeatedly, when the bit of the codified of the WiFi each Wifi frames broadcasted Digit is 10, and when each group sequence number needs to send multiple, x=3 and y=7 code efficiency can reach highest.
It is mainly used in transmission SSID and password in view of SmartConfig technologies, password is character visible entirely, and ASCII exists Within 127;And SSID may include Chinese character, the data compression ASCII value more than 127 is just needed within 127.Cause This, further, when radio reception device is transmitting SSID and password, can be encoded separately to SSID and password, so have Beneficial to the complexity of reduction coding.
In summary, present invention utilizes the thought of packet design, group sequence number and group is sent together, pass through a group sequence Order between row number differentiation group, and the order between each interior Wifi frame is grouped by serial number area in the group in group, The problem of solving data global sequence.Receiving terminal need to only be gone back according to the coding rule of Wifi frame to the data received It is former, you can to obtain the respective global sequence number of each Wifi frame, and data waiting for transmission after being reduced.
Referring to Fig. 2, a kind of coding/decoding method one embodiment of Wifi frame includes in the embodiment of the present invention:
201st, each Wifi frame of receiving terminal receiving end/sending end WiFi broadcast;Wherein, each described Wifi frame includes each First Wifi frame and each second Wifi frame;Each described first Wifi frame is used for the data to be transmitted for carrying this WiFi broadcast And sequence number in respective group, the group sequence number of each described second Wifi frame group where for carrying each;
If the 202, receiving any first Wifi frame in each described first Wifi frame, and do not receive and described any the The second adjacent Wifi frame of one Wifi frame, then the receiving terminal is according to sequence number in the group of any first Wifi frame, previous Sequence number and the group sequence number of previous second Wifi frame determine any first WiFi in the group of individual first Wifi frame The group sequence number of group where frame;Previous first Wifi frame refers to receiving any first Wifi frame foregoing description The first Wifi frame that receiving terminal is most recently received, previous second Wifi frame refers to receiving any first Wifi frame The second Wifi frame that foregoing description receiving terminal is most recently received;
203rd, each described first Wifi frame of receiving terminal parsing and each adjacent with each described first Wifi frame Second Wifi frame, obtains sequence number and the group sequence number of place group in the group of each first Wifi frame;
204th, the receiving terminal is according to the group sequence of sequence number and place group in the group of each first Wifi frame The global sequence number of each first Wifi frame number is calculated, the global sequence number is used to characterize each first Wifi frame at this Global order in secondary WiFi broadcast;
205th, the receiving terminal parses each described the first WiFi according to the global sequence number of the first Wifi frame each described Frame obtains the data to be transmitted;
206th, the data check value and valid data length of the receiving terminal in the data to be transmitted are to institute Data to be transmitted is stated to be verified;
If the 207, checking does not pass through, the receiving terminal abandons the data to be transmitted, and return re-executes step 201;
If the 208, being verified, the receiving terminal determines to get the complete data to be transmitted.
For step 201, it is to be understood that when transmitting terminal carries out WiFi broadcast, by each first Wifi frame and each Second Wifi frame is adjacent and broadcast (sites) in turn.Such as, under an application scenarios of transmission data " My ", transmitting terminal first broadcasts 4 Second Wifi frame " 0 ", then broadcasts the first Wifi frame " 223 ", " 330 ", " 462 ", " 702 ", " 789 " and " 961 " successively, when After one wheel the first Wifi frame of broadcast " 961 " terminates, transmitting terminal carries out the second wheel broadcast again, re-broadcasts 4 the second Wifi frames " 0 " ... so repeated broadcast, untill transmitting terminal terminates broadcast.Therefore, receiving terminal can be broadcasted in transmitting terminal WiFi During, each Wifi frame is sequentially received, includes the first Wifi frame and the second Wifi frame.
For step 202, due in WiFi broadcasting process, it is understood that there may be the situation of packet loss, i.e. receiving terminal are not received Part Wifi frame.In this case, receiving terminal may receive some first Wifi frame, but not receive and the first WiFi The second adjacent Wifi frame of frame, the situation for especially only sending once in each second Wifi frame and (not repeating to send in taking turns one) Under, now, receiving terminal can according to sequence number in sequence number in the group of first Wifi frame, the group of previous first Wifi frame, And the group sequence number of previous second Wifi frame is inferred to the group sequence number of first Wifi frame place group, equivalent to reckoning The group sequence number for that the second Wifi frame carrying lost is gone out.
For step 203 and 204, receiving terminal carries out inversely decoding according to transmitting terminal to the coding method of each Wifi frame, Sequence number and the group sequence number of place group in the group of each first Wifi frame can be parsed, and is thus calculated each The global sequence number of individual first Wifi frame.
For step 205, it is to be understood that after the global sequence of each the first Wifi frame is determined, you can The data to be transmitted for being carried each Wifi frame according to global sequence number is recombinated in order, obtains the number of this transmission of transmitting terminal According to.
For step 206~208, after the data to be transmitted is obtained, receiving terminal can be according in data to be transmitted The data check value and valid data length the data to be transmitted is verified, it is known that, if checking do not pass through, table Show that the data to be transmitted that receiving terminal is parsed is incorrect, the data that this is broadcasted with transmitting terminal are inconsistent, therefore abandon parsing Data to be transmitted out, is then back to execution step 201, re-executes the coding/decoding method of the Wifi frame of the present invention.If conversely, It is verified, then it represents that the data to be transmitted that receiving terminal is parsed is correct, the data that this is broadcasted with transmitting terminal are consistent, so that Receiving terminal being determined, this is finished receiving, and can terminate to receive the Wifi frame of broadcast.
For ease of understanding, above-mentioned x=3, y=7, and k=8 application scenarios will be accepted below to receiving terminal restoring data Process is described in detail:
When receiving terminal receives group sequence number i, it is known that the group sequence number where subsequent data is also i.If receiving below Data be k, then organize in Serial No. k>>7 (taking high 3), the global sequence number of the data is i*8+k>>7;
, can be according to last time reception when receiving terminal does not receive group sequence number but receives the corresponding Wifi frame of group Group sequence number be inferred to the group sequence number of the group.If Serial No. k in the group Serial No. i that the last time receives, group, It is currently received Serial No. t in the group of Wifi frame.If t>K, it is believed that the group sequence number of group where current Wifi frame Or for i;If t<=k, then it is believed that current Wifi frame belongs to lower a small group, the group Serial No. i+1 of group where it, entirely The sequence number of office is then (i+1) * 8+t.
Only when the corresponding Wifi frame of the group sequence number of some group and group is all abandoned, receiving terminal can not just infer The global sequence number of data.In addition, the present invention is also by the transmission for the group sequence number for increasing redundancy, it is possible to decrease continual data package dropout causes Receiving terminal can not calculate the probability of global sequence number.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention constitutes any limit with its function and internal logic It is fixed.
A kind of coding method of Wifi frame and a kind of coding/decoding method of Wifi frame are essentially described above, below will be to one kind The code device of Wifi frame and a kind of decoding apparatus of Wifi frame are described in detail.
Fig. 3 shows code device one embodiment structure chart of Wifi frame in the embodiment of the present invention.
In the present embodiment, a kind of code device of Wifi frame includes:
Data coding module 301, for the data to be transmitted of binary format to be encoded into each Wifi frame successively, In each Wifi frame, y designated bit position is used for the coding of data to be transmitted, and x designated bit position is used for sequence number in group Coding;Wherein, sequence number in groups different common k, k≤2^x, sequence number is compiled according to the data to be transmitted in described group Code to the order of each Wifi frame is sequentially allocated to each described Wifi frame;The data to be transmitted includes data check value and had Imitate data length;
Frame grouping module 302, for being divided according to the order of the data to be transmitted carried each described Wifi frame Group, per k Wifi frame as 1 group, obtains each group;
Group sequence number distribute module 303, is respectively that each described small component is matched somebody with somebody with unique for the order according to packet Property group sequence number, when sending, each described group of sequence number is transmitted as an independent Wifi frame;
Sending module 304, for inciting somebody to action each described group and the corresponding described group of sequence number of each group according to described The order of packet gives the transmitting terminal and carries out WiFi broadcast, when WiFi is broadcasted, and each described group of sequence number is corresponding The group it is adjacent send.
Further, the sending module can be used for:When WiFi is broadcasted, each described group of sequence number is corresponding The group it is adjacent send, and each described group of sequence number repeats to send more than twice.
Further, if the number of bits that the transmitting terminal carries out the codified of each Wifi frame of WiFi broadcast is 10, Then x=3, y=7, and k=8;
Or
If the number of bits that the transmitting terminal carries out the codified of each Wifi frame of WiFi broadcast is 10, x=2, y= 8, and k=4.
Further, the code device of the Wifi frame can also include:
Serial number codes module is organized, for inciting somebody to action corresponding each group of serial number codes of each described group into Wifi frame, Value after each group of sequence number is encoded in Wifi frame belongs to default first number range;
Wherein, the value after the data to be transmitted is encoded in Wifi frame belongs to default second value scope, described Without the scope overlapped between one number range and the second value scope.
Fig. 4 is the schematic diagram for the radio reception device that one embodiment of the invention is provided.As shown in figure 4, the nothing of the embodiment Line access device 4 includes:Processor 40, memory 41 and it is stored in the memory 41 and can be on the processor 40 The computer program 42 of operation, the coded program of such as Wifi frame.The processor 40 performs real during the computer program 42 Step in the coding method embodiment of each existing above-mentioned Wifi frame, such as step 101 shown in Fig. 1 to 104.Or, it is described Processor 40 realizes the function of each module/unit in above-mentioned each device embodiment, such as Fig. 2 when performing the computer program 42 The function of shown module 201 to 204.
Exemplary, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are performed by the processor 40, to complete the present invention.Described one Individual or multiple module/units can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used for Implementation procedure of the computer program 42 in the radio reception device 4 is described.
The radio reception device 4 can be mobile terminal, tablet personal computer, notebook computer, wireless router, wireless friendship The computing device such as change planes.The radio reception device may include, but be not limited only to, processor 40, memory 41.Art technology Personnel are appreciated that Fig. 4 is only the example of radio reception device 4, do not constitute the restriction to radio reception device 4, can be with Including than illustrating more or less parts, either combining some parts or different parts, such as described wireless access is set It is standby to include input-output equipment, network access equipment, bus etc..
The processor 40 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 41 can be the internal storage unit of the radio reception device 4, such as radio reception device 4 Hard disk or internal memory.The memory 41 can also be the External memory equipment of the radio reception device 4, such as described wirelessly to connect Enter the plug-in type hard disk being equipped with equipment 4, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 41 can also both include described wireless The internal storage unit of access device 4 also includes External memory equipment.The memory 41 is used to store the computer program And other programs and data needed for the radio reception device.The memory 41 can be also used for temporarily storing Output or the data that will be exported.
Fig. 5 shows a kind of decoding apparatus one embodiment structure chart of Wifi frame in the embodiment of the present invention.
In the present embodiment, a kind of decoding apparatus of Wifi frame includes:
Frame receiving module 501, each Wifi frame broadcasted for receiving end/sending end WiFi;Wherein, each described Wifi frame Including each first Wifi frame and each second Wifi frame;Each described first Wifi frame is used to carry treating for this WiFi broadcast Sequence number in data and respective group is transmitted, each described second Wifi frame is used for the group sequence of group where carrying each Number;
Sequence number determining module 502, appoints if being received for the frame receiving module 501 in each described first Wifi frame One first Wifi frame, and do not receive second Wifi frame adjacent with any first Wifi frame, then according to described any Sequence number in the group of one Wifi frame, in the group of previous first Wifi frame sequence number and previous second Wifi frame group sequence The group sequence number of group where row number determines any first Wifi frame;Previous first Wifi frame refers to receiving The first Wifi frame that any first Wifi frame foregoing description frame receiving module 501 is most recently received, described previous second Wifi frame refers to receiving the 2nd WiFi that any first Wifi frame foregoing description frame receiving module 501 is most recently received Frame;
Frame parsing module 503, for parsing each described first Wifi frame and adjacent with each described first Wifi frame Each second Wifi frame, obtains sequence number and the group sequence number of place group in the group of each first Wifi frame;
Global sequence's computing module 504 is small for sequence number in the group according to each first Wifi frame and place The group sequence number of group calculates the global sequence number of each first Wifi frame, the global sequence number for characterize each first Global order of the Wifi frame in this WiFi broadcast;
Data resolution module 505, for the global sequence number according to the first Wifi frame each described parse it is described each the One Wifi frame obtains the data to be transmitted;
Data Verification module 506, it is long for the data check value and valid data in the data to be transmitted Degree is verified to the data to be transmitted;
Determining module 507 is finished receiving, if being verified for the Data Verification module 506, it is determined that got The whole data to be transmitted.
Further, this WiFi of the transmitting terminal broadcast data to be transmitted encoded successively to it is described each first In Wifi frame, and sequence number in k different groups is sequentially allocated to institute according to the coding orders of the data to be transmitted State each the first Wifi frame;The data to be transmitted includes data check value and valid data length;Each described the first WiFi Frame is grouped according to the order of the data to be transmitted carried, and per k, the first Wifi frame obtains each small as 1 group Group, and be respectively that each described small component matches somebody with somebody the group sequence number with uniqueness according to the order of packet, when sending, Mei Gesuo Group sequence number is stated to be transmitted as second Wifi frame;The transmitting terminal will each described group and each group Corresponding described group of sequence number carries out WiFi broadcast according to the order of the packet, and each described group of sequence number is corresponding The group is adjacent to be sent.
Further, the decoding apparatus of the Wifi frame can also include:
Retain discard module, if for the adjacent reception of frame receiving module 501 to the WiFi of two or more identical the 2nd Frame, then retain any one in the Wifi frame of identical second, and abandon other in the Wifi frame of identical second Two Wifi frames.
Fig. 6 is the schematic diagram for the terminal device that one embodiment of the invention is provided.As shown in fig. 6, the terminal of the embodiment is set Standby 6 include:Processor 60, memory 61 and it is stored in the meter that can be run in the memory 61 and on the processor 60 Calculation machine program 62, for example, perform the program of the coding/decoding method of the Wifi frame.The processor 60 performs the computer program The step in the coding/decoding method embodiment of each above-mentioned Wifi frame, such as step 201 shown in Fig. 2 to 208 are realized when 62.Or Person, the processor 60 realizes the function of each module/unit in above-mentioned each device embodiment when performing the computer program 62, The function of module 501 to 507 for example shown in Fig. 5.
Exemplary, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are performed by the processor 60, to complete the present invention.Described one Individual or multiple module/units can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used for Implementation procedure of the computer program 62 in the terminal device 6 is described.
The terminal device 6 can be the equipment such as intelligent television, intelligent refrigerator, intelligent sound box, intelligent air condition.The terminal Equipment may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 is only terminal The example of equipment 6, does not constitute the restriction to terminal device 6, can include than illustrating more or less parts, or combination Some parts, or different parts, such as described terminal device can also include input-output equipment, network access equipment, Bus etc..
The processor 60 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 61 can be the internal storage unit of the terminal device 6, such as hard disk of terminal device 6 or interior Deposit.The memory 61 can also be the External memory equipment of the terminal device 6, such as is equipped with described terminal device 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodges Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the terminal device 6 Member also includes External memory equipment.The memory 61 is used for needed for storing the computer program and the terminal device Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that each embodiment described with reference to the embodiments described herein Module, unit and/or method and step, can be realized with the combination of electronic hardware or computer software and electronic hardware.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, such as multiple units or component Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-described embodiment side All or part of flow in method, can also instruct the hardware of correlation to complete, described computer by computer program Program can be stored in a computer-readable recording medium, and the computer program can be achieved above-mentioned each when being executed by processor The step of individual embodiment of the method..Wherein, the computer program includes computer program code, the computer program code Can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium can With including:Can carry any entity or device of the computer program code, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer The content that computer-readable recording medium is included can carry out appropriate increase and decrease according to legislation in jurisdiction and the requirement of patent practice, for example In some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and telecommunication signal.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (18)

1. a kind of coding method of Wifi frame, it is characterised in that including:
The data to be transmitted of binary format is encoded into each Wifi frame successively, in each Wifi frame, y designated bit Position is used for the coding of data to be transmitted, and x designated bit position is used for the coding of sequence number in group;Wherein, common k is individual different Sequence number in group, k≤2^x, in described group sequence number according to the data to be transmitted encode to each Wifi frame order successively Distribute to each described Wifi frame;The data to be transmitted includes data check value and valid data length;
Each described Wifi frame is grouped according to the order of the data to be transmitted carried, it is small as 1 per k Wifi frame Group, obtains each group;
Order according to packet is respectively that each described small component matches somebody with somebody the group sequence number with uniqueness, when sending, Mei Gesuo Group sequence number is stated to be transmitted as an independent Wifi frame;
By the corresponding described group of sequence number of each described group and each group the hair is given according to the order of the packet Sending end carries out WiFi broadcast, when WiFi broadcast, the corresponding adjacent transmission of the group of each described group of sequence number.
2. the coding method of Wifi frame according to claim 1, it is characterised in that when WiFi is broadcasted, each described group The corresponding group of sequence number is adjacent to be sent, and each described group of sequence number repeats to send more than twice.
3. the coding method of Wifi frame according to claim 1, it is characterised in that if the transmitting terminal carries out WiFi broadcast The number of bits of codified of each Wifi frame be 10, then x=3, y=7, and k=8;
Or
If the number of bits that the transmitting terminal carries out the codified of each Wifi frame of WiFi broadcast is 10, x=2, y=8, and K=4.
4. the coding method of Wifi frame according to any one of claim 1 to 3, it is characterised in that the Wifi frame Coding method also includes:
By corresponding each group of serial number codes of each described group into Wifi frame, each group of sequence number is in Wifi frame Value after coding belongs to default first number range;
Wherein, the value after the data to be transmitted is encoded in Wifi frame belongs to default second value scope, first number Without the scope overlapped between value scope and the second value scope.
5. a kind of code device of Wifi frame, it is characterised in that including:
Data coding module, for the data to be transmitted of binary format to be encoded into each Wifi frame successively, each In Wifi frame, y designated bit position is used for the coding of data to be transmitted, and x designated bit position is used for the coding of sequence number in group; Wherein, sequence number in groups different common k, k≤2^x, in described group sequence number according to the data to be transmitted encode to The order of each Wifi frame is sequentially allocated to each described Wifi frame;The data to be transmitted includes data check value and significant figure According to length;
Frame grouping module, it is individual per k for being grouped to each described Wifi frame according to the order of the data to be transmitted carried Wifi frame obtains each group as 1 group;
Group sequence number distribute module, is respectively that each described small component matches somebody with somebody the group sequence with uniqueness for the order according to packet Row number, when sending, each described group of sequence number is transmitted as an independent Wifi frame;
Sending module, for by the corresponding described group of sequence number of each described group and each group according to the packet time Sequence gives the transmitting terminal and carries out WiFi broadcast, when WiFi broadcast, and each described group of sequence number is corresponding described small Group is adjacent to be sent.
6. the code device of Wifi frame according to claim 5, it is characterised in that the sending module is used for:In WiFi During broadcast, the corresponding group of each described group of sequence number is adjacent to be sent, and each described group of sequence number repeats to send out Send more than twice.
7. the code device of Wifi frame according to claim 5, it is characterised in that if the transmitting terminal carries out WiFi broadcast The number of bits of codified of each Wifi frame be 10, then x=3, y=7, and k=8;
Or
If the number of bits that the transmitting terminal carries out the codified of each Wifi frame of WiFi broadcast is 10, x=2, y=8, and K=4.
8. the code device of the Wifi frame according to any one of claim 5 to 7, it is characterised in that the Wifi frame Code device also includes:
Group serial number codes module, it is described into Wifi frame for corresponding each group of serial number codes of each group by described in Value after each group of sequence number is encoded in Wifi frame belongs to default first number range;
Wherein, the value after the data to be transmitted is encoded in Wifi frame belongs to default second value scope, first number Without the scope overlapped between value scope and the second value scope.
9. a kind of radio reception device, including memory, processor and it is stored in the memory and can be in the processing The computer program run on device, it is characterised in that realize such as claim 1 described in the computing device during computer program To any one of 4 the step of the coding method of Wifi frame.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In the coding method of realization Wifi frame as any one of Claims 1-4 when the computer program is executed by processor The step of.
11. a kind of coding/decoding method of Wifi frame, it is characterised in that including:
Each Wifi frame of receiving terminal receiving end/sending end WiFi broadcast;Wherein, each described Wifi frame includes each the first WiFi Frame and each second Wifi frame;Each described first Wifi frame is used for the data to be transmitted for carrying this WiFi broadcast and respective Group in sequence number, each described second Wifi frame be used for carry each where group group sequence number;
If receiving any first Wifi frame in each described first Wifi frame, and do not receive and any first Wifi frame The second adjacent Wifi frame, then the receiving terminal is according to sequence number, previous first in the group of any first Wifi frame Sequence number and the group sequence number of previous second Wifi frame determine any first Wifi frame place in the group of Wifi frame The group sequence number of group;Previous first Wifi frame refers to receiving any first Wifi frame foregoing description receiving terminal The first Wifi frame being most recently received, previous second Wifi frame refers to the institute before any first Wifi frame is received State the second Wifi frame that receiving terminal is most recently received;
Each described first Wifi frame of the receiving terminal parsing and each twoth WiFi adjacent with each described first Wifi frame Frame, obtains sequence number and the group sequence number of place group in the group of each first Wifi frame;
The receiving terminal calculates each according to sequence number in the group of each first Wifi frame and the group sequence number of place group The global sequence number of individual first Wifi frame, the global sequence number is wide in this WiFi for characterizing each first Wifi frame Global order in broadcasting;
The receiving terminal parses each described first Wifi frame according to the global sequence number of the first Wifi frame each described and obtains institute State data to be transmitted;
The data check value and valid data length of the receiving terminal in the data to be transmitted are to described to be transmitted Data are verified;
If being verified, the receiving terminal determines to get the complete data to be transmitted.
12. the coding/decoding method of Wifi frame according to claim 11, it is characterised in that the transmitting terminal this WiFi broadcast Data to be transmitted encoded successively into each described first Wifi frame, and according to the data to be transmitted coding orders will Sequence number is sequentially allocated to each described first Wifi frame in k different groups;The data to be transmitted includes data school Test value and valid data length;Each described first Wifi frame is grouped according to the order of the data to be transmitted carried, per k Individual first Wifi frame obtains each group as 1 group, and is respectively that each described small component matches somebody with somebody tool according to the order of packet There is the group sequence number of uniqueness, when sending, each described group of sequence number is transmitted as second Wifi frame;Institute Transmitting terminal is stated to carry out the corresponding described group of sequence number of each described group and each group according to the order of the packet WiFi is broadcasted, and the corresponding group of each described group of sequence number is adjacent to be sent.
13. the coding/decoding method of the Wifi frame according to claim 11 or 12, it is characterised in that the decoding side of the Wifi frame Method also includes:
If the receiving terminal adjacent reception is to the Wifi frame of two or more identical second, the receiving terminal retains the identical Any one in second Wifi frame, and abandon other second Wifi frames in the Wifi frame of identical second.
14. a kind of decoding apparatus of Wifi frame, it is characterised in that including:
Frame receiving module, each Wifi frame broadcasted for receiving end/sending end WiFi;Wherein, each described Wifi frame includes each First Wifi frame and each second Wifi frame;Each described first Wifi frame is used for the data to be transmitted for carrying this WiFi broadcast And sequence number in respective group, the group sequence number of each described second Wifi frame group where for carrying each;
Sequence number determining module, if receiving any first WiFi in each described first Wifi frame for the frame receiving module Frame, and do not receive second Wifi frame adjacent with any first Wifi frame, then according to any first Wifi frame Sequence number and the group sequence number of previous second Wifi frame are determined in the interior sequence number of group, the group of previous first Wifi frame The group sequence number of group where any first Wifi frame;Previous first Wifi frame refers to receiving described any the The first Wifi frame that one Wifi frame foregoing description frame receiving module is most recently received, previous second Wifi frame refers to connecing Receive the second Wifi frame that any first Wifi frame foregoing description frame receiving module is most recently received;
Frame parsing module, for parsing each described first Wifi frame and each adjacent with each described first Wifi frame second Wifi frame, obtains sequence number and the group sequence number of place group in the group of each first Wifi frame;
Global sequence's computing module, the group sequence for sequence number and place group in the group according to each first Wifi frame Row number calculates the global sequence number of each first Wifi frame, and the global sequence number exists for characterizing each first Wifi frame Global order in this WiFi broadcast;
Data resolution module, each described first Wifi frame is parsed for the global sequence number according to the first Wifi frame each described Obtain the data to be transmitted;
Data Verification module, for the data check value and valid data length in the data to be transmitted to described Data to be transmitted is verified;
Determining module is finished receiving, if being verified for the Data Verification module, it is determined that get complete described treat Transmit data.
15. the decoding apparatus of Wifi frame according to claim 14, it is characterised in that the transmitting terminal this WiFi broadcast Data to be transmitted encoded successively into each described first Wifi frame, and according to the data to be transmitted coding orders will Sequence number is sequentially allocated to each described first Wifi frame in k different groups;The data to be transmitted includes data school Test value and valid data length;Each described first Wifi frame is grouped according to the order of the data to be transmitted carried, per k Individual first Wifi frame obtains each group as 1 group, and is respectively that each described small component matches somebody with somebody tool according to the order of packet There is the group sequence number of uniqueness, when sending, each described group of sequence number is transmitted as second Wifi frame;Institute Transmitting terminal is stated to carry out the corresponding described group of sequence number of each described group and each group according to the order of the packet WiFi is broadcasted, and the corresponding group of each described group of sequence number is adjacent to be sent.
16. the decoding apparatus of the Wifi frame according to claims 14 or 15, it is characterised in that the decoding dress of the Wifi frame Putting also includes:
Retain discard module, if being protected for the frame receiving module adjacent reception to the Wifi frame of two or more identical second Any one in the Wifi frame of identical second is stayed, and abandons other 2nd WiFi in the Wifi frame of identical second Frame.
17. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that described in the computing device during computer program realize as claim 11 to The step of coding/decoding method of Wifi frame any one of 13.
18. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In the decoding side of realization Wifi frame as any one of claim 11 to 13 when the computer program is executed by processor The step of method.
CN201710557237.3A 2017-07-10 2017-07-10 WiFi frame encoding method, transmitting end, storage medium and wireless access equipment Active CN107222848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710557237.3A CN107222848B (en) 2017-07-10 2017-07-10 WiFi frame encoding method, transmitting end, storage medium and wireless access equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710557237.3A CN107222848B (en) 2017-07-10 2017-07-10 WiFi frame encoding method, transmitting end, storage medium and wireless access equipment

Publications (2)

Publication Number Publication Date
CN107222848A true CN107222848A (en) 2017-09-29
CN107222848B CN107222848B (en) 2019-12-17

Family

ID=59953236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710557237.3A Active CN107222848B (en) 2017-07-10 2017-07-10 WiFi frame encoding method, transmitting end, storage medium and wireless access equipment

Country Status (1)

Country Link
CN (1) CN107222848B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213017A (en) * 2019-04-30 2019-09-06 普联技术有限公司 A kind of data transmission method, device, system, storage medium and terminal device
CN110324115A (en) * 2019-06-10 2019-10-11 普联技术有限公司 A kind of data transmission method, device, storage medium and terminal device
CN112672400A (en) * 2020-12-15 2021-04-16 成都新潮传媒集团有限公司 Data interaction control method, equipment and storage medium
CN113660057A (en) * 2020-05-12 2021-11-16 深圳市科瑞康实业有限公司 Monitoring data transmission method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110098047A1 (en) * 2009-10-28 2011-04-28 Motorola, Inc. Method for efficiently increasing hand-off and access reliability
CN103986966A (en) * 2014-05-28 2014-08-13 广州视源电子科技股份有限公司 System and method for pushing smart television image to mobile terminal for display
CN105072665A (en) * 2015-07-01 2015-11-18 北京奇虎科技有限公司 Networking control and access method and corresponding terminal and equipment
CN105101102A (en) * 2015-07-01 2015-11-25 北京奇虎科技有限公司 Multicast transmission method, information extraction method and corresponding terminal and equipment
CN105120012A (en) * 2015-07-10 2015-12-02 北京奇虎科技有限公司 Intelligent device, networking access method thereof, information reception method and device
CN105378834A (en) * 2013-07-05 2016-03-02 杜比国际公司 Packet loss concealment apparatus and method, and audio processing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110098047A1 (en) * 2009-10-28 2011-04-28 Motorola, Inc. Method for efficiently increasing hand-off and access reliability
CN105378834A (en) * 2013-07-05 2016-03-02 杜比国际公司 Packet loss concealment apparatus and method, and audio processing system
CN103986966A (en) * 2014-05-28 2014-08-13 广州视源电子科技股份有限公司 System and method for pushing smart television image to mobile terminal for display
CN105072665A (en) * 2015-07-01 2015-11-18 北京奇虎科技有限公司 Networking control and access method and corresponding terminal and equipment
CN105101102A (en) * 2015-07-01 2015-11-25 北京奇虎科技有限公司 Multicast transmission method, information extraction method and corresponding terminal and equipment
CN105120012A (en) * 2015-07-10 2015-12-02 北京奇虎科技有限公司 Intelligent device, networking access method thereof, information reception method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213017A (en) * 2019-04-30 2019-09-06 普联技术有限公司 A kind of data transmission method, device, system, storage medium and terminal device
CN110213017B (en) * 2019-04-30 2021-11-12 普联技术有限公司 Data transmission method, device and system, storage medium and terminal equipment
CN110324115A (en) * 2019-06-10 2019-10-11 普联技术有限公司 A kind of data transmission method, device, storage medium and terminal device
CN110324115B (en) * 2019-06-10 2022-01-04 普联技术有限公司 Data transmission method and device, storage medium and terminal equipment
CN113660057A (en) * 2020-05-12 2021-11-16 深圳市科瑞康实业有限公司 Monitoring data transmission method and device
CN113660057B (en) * 2020-05-12 2024-02-06 深圳市科瑞康实业有限公司 Method and device for transmitting monitored data
CN112672400A (en) * 2020-12-15 2021-04-16 成都新潮传媒集团有限公司 Data interaction control method, equipment and storage medium

Also Published As

Publication number Publication date
CN107222848B (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN107222848A (en) Coding method, transmitting terminal, storage medium and a kind of radio reception device of Wifi frame
CN109194620A (en) Multichannel communication method, intelligent gateway and readable storage medium storing program for executing
CN107948578B (en) The method of adjustment and adjustment device of video conferencing system transmission bandwidth and resolution ratio
CN110113132A (en) A kind of coding and decoding method and terminal
CN101796779B (en) Aggregate data frame generation
CN106464581A (en) Data transmission method and system and data receiving device
CN102045768A (en) Data transmission method, user equipment and system
CN109905205B (en) Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system
CN102957511B (en) Adaptive deceleration method of data transmission
CN106162528A (en) LoRa signal and Bluetooth signal modular converter, conversion method and sender unit
CN108900283A (en) Transmit the method and communication equipment of information
CN108632896A (en) A kind of data transmission method and relevant device
CN108809486A (en) Polar code coding/decoding methods and device
CN204482042U (en) Based on the car crane monitoring system of MHL technology
CN104620650B (en) A kind of method of acquisition of information, terminal, base station and system
CN101257366B (en) Encoding and decoding method, communication system and equipment
CN104683262A (en) Processing method and equipment for data packet
CN104853447B (en) A kind of data information processing method and device
CN111934828B (en) Data transmission method and system based on OFDMA mode
CN106327952A (en) Demonstrator remote control method and demonstrator
CN103346961B (en) The method and system that a kind of data packing is exchanged
CN106681954A (en) Parameter setting method based on bus and controller for robot
US9824044B2 (en) Common public radio interface (CPRI) lane controller coupled to direct memory access (DMA) wherein a time division duplex (TDD) steers control of CPRI
CN104320754A (en) MHL technology based vehicle machine monitoring system
CN107707599A (en) A kind of method and device of Internet of Things communication equipment transmission file

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