CN109905205A - Data transmission, received method and apparatus, data transmission method and system - Google Patents

Data transmission, received method and apparatus, data transmission method and system Download PDF

Info

Publication number
CN109905205A
CN109905205A CN201910267219.0A CN201910267219A CN109905205A CN 109905205 A CN109905205 A CN 109905205A CN 201910267219 A CN201910267219 A CN 201910267219A CN 109905205 A CN109905205 A CN 109905205A
Authority
CN
China
Prior art keywords
packet
data
index
gauge outfit
receiver
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
CN201910267219.0A
Other languages
Chinese (zh)
Other versions
CN109905205B (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.)
Suzhou Jintanglang Cultural Development Ltd By Share Ltd
Original Assignee
Suzhou Jintanglang Cultural Development Ltd By Share 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 Suzhou Jintanglang Cultural Development Ltd By Share Ltd filed Critical Suzhou Jintanglang Cultural Development Ltd By Share Ltd
Priority to CN201910267219.0A priority Critical patent/CN109905205B/en
Publication of CN109905205A publication Critical patent/CN109905205A/en
Application granted granted Critical
Publication of CN109905205B publication Critical patent/CN109905205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of transmission of data, received method and apparatus, data transmission method and systems, are related to the communication technology, and long data to be sent are split into several data packets;Add to each data packet and compile packet header, packet header includes gauge outfit, data length, packet quantity, packet index;When data are sent, data packet is successively sent according to the normal sequence of packet index;Occur the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, in response to the first return command of receiving end feedback, sends next data packet according to the normal packet indexed sequential of current long data;Occur the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, in response to the second return command of receiving end feedback, sends next data packet according to the packet indexed sequential of current long data starting;Entire data transmission procedure more optimizes, and helps avoid data caused by packet loss, bottom pour ladle and splits the information loss sent.

Description

Data transmission, received method and apparatus, data transmission method and system
Technical field
The present invention relates to the communication technologys, more specifically, it relates to which a kind of data are sent, received method and apparatus, number According to transmission method and system.
Background technique
In the activity such as exhibition, exhibition, museum, concert or place, often need that case scenarios construction is cooperated to be suitble to melt Visual effect, auditory effect and the live atmosphere being in harmony, play the effect to bring out the best in each other, existing scheme generallys use a large amount of lamp The audio-visual devices such as light, sound equipment connect constructing local network, constitute a whole set of complete audio-video system.
It is the ideal technological means for realizing local area network communication that Udp communication mode, which is realized,.But for biggish number Data transmission then can not be disposably completed according to packet, needs to be divided into multiple data packets and is transmitted.
Currently, application No. is the Chinese patents of 201110070410.X to disclose a kind of data transmission method and system, it It include: that first terminal splits the data information for needing to be sent to second terminal, and is packaged as data packet, data packet includes: packet Head and backpack body;First terminal sends data packet to second terminal, and the reception response for waiting second terminal to feed back;If first terminal The reception response that second terminal feedback is received within the preset time limit, then send next data packet to second terminal, until will All data packets are sent to second terminal;If the reception that first terminal does not receive second terminal feedback within the preset time limit is rung The repeating transmission request for answering or receiving second terminal feedback, then retransmit the last data packet sent to second terminal, until retransmitting Number is more than preset threshold value.
The data transmission method and system that invention offer is provided, although can be during serial communication, quickly and effectively Error correction and mistake is remedied, but in display and demonstration field, due to communication environment complexity and disturbing factor it is various, Often there is the case where data packetloss, bottom pour ladle, cause data to transmit imperfect, it is therefore desirable to which a kind of data transmission of optimization is more square Method.
Summary of the invention
Send in view of the deficiencies of the prior art, the present invention intends to providing a kind of data, received method and Equipment, data transmission method and system implement technical solution disclosed by the invention, have the advantages that the long data of transmission are more complete.
To achieve the above object, the present invention provides the following technical scheme that
In a first aspect, providing a kind of data transmission method for uplink, it is based on coding techniques, including
Long data to be sent are split into several data packets;
Add to each data packet and compile packet header, packet header includes gauge outfit, data length, packet quantity, packet index;Gauge outfit is to distinguish data packet The task number of affiliated long data, data length are used to define the length of data content behind packet header, and packet quantity is split for characterizing The total quantity of data packet afterwards, packet index are the serial number of place data packet;
When data are sent, data packet is successively sent according to the normal sequence of packet index;
Occurs the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, in response to receiving end First return command of feedback sends next data packet according to the normal packet indexed sequential of current long data;
Occurs the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, in response to receiving The second return command for holding feedback sends next data packet according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, is returned in response to the third of receiving end feedback Order is returned, retransmits next data packet according to the correct packet indexed sequential of upper one long data;
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, response In the 4th return command of receiving end feedback, next data packet is sent according to the normal sequence of packet index;
It is consistent with the gauge outfit of last data packet in data receiver, and when packet index and the discontinuous packet index of last data packet, it rings The 5th return command that should be fed back in receiving end retransmits next data according to next packet indexed sequential of last data packet Packet.
By adopting the above technical scheme, long data are split into single data packet to send one by one, realizes the transmission of long data, gives Each data packet, which adds, compiles packet header, for specification, complete transmission count off evidence.Situation one does not receive other when data are sent Order is first successively sent according to packet indexed sequential, avoids sending chaotic.Situation two receives new gauge outfit in receiving end and rises The packet of beginning indexes, while a upper long data finish receiving, when sending new long data, at this time in response to the first of receiving end feedback Return command sends next data packet according to the packet indexed sequential of the long data currently newly sent, to realize the long data in front and back Uninterrupted transmission.Situation three receives the packet index of new gauge outfit and non-starting, while a upper long data receiver in receiving end When completion, active or the case where omit the initial data packets of the long data out is returned in response to the second of receiving end feedback at this time Order is returned, next data packet is sent according to the packet indexed sequential of the starting of current new long data, to solve the packet of starting Index corresponding data-bag lost problem.Situation four occurs new gauge outfit in data receiver, but a upper long data have not received At, that is, there is a upper long data packetloss, bottom pour ladle, and the data packet situation of the next long data sent has been directly received, at this time In response to the third return command of receiving end feedback, sent out again according to the packet indexed sequential that should correctly send of upper one long data Next data packet is sent, to solve the problems, such as a long data packetloss, bottom pour ladle.Situation five, in data receiver and last data packet Gauge outfit it is consistent, and wrap index and index consecutive hours with the packet of last data packet, be at this time normal and correct packet sequence transmission shape State.Situation six, receiving, data are consistent with the gauge outfit of last data packet, and wrap index and do not connect with the packet of last data packet index When continuous, that is, there is packet loss, the bottom pour ladle in same long data, at this time in response to the 5th return command of receiving end feedback, according to preceding Next packet indexed sequential of one data packet retransmits next data packet, that is, retransmits correct data packet, avoid data It loses.Entire data transmission procedure more optimizes, and helps avoid the information that the fractionation of data caused by packet loss, bottom pour ladle is sent and loses It loses.
Further, further include adding volume error check code to each data packet, carry out error checking and correction in data receiver and do not pass through When, in response to the 6th return command of receiving end feedback, retransmit the data packet of error.
By adopting the above technical scheme, using error check code, further progress error checking and correction is sent to data, and be directed to The data of error retransmit, and further enhance the complete and accurate of data transmission.
Second aspect provides a kind of data transmitting equipment, including first processor and first memory, first memory are deposited Instruction set is contained to call for first processor to implement function such as:
Long data to be sent are split into several data packets;
Add to each data packet and compile packet header, packet header includes gauge outfit, data length, packet quantity, packet index;Gauge outfit is to distinguish data packet The task number of affiliated long data, data length are used to define the length of data content behind packet header, and packet quantity is split for characterizing The total quantity of data packet afterwards, packet index are the serial number of place data packet;
When data are sent, data packet is successively sent according to the normal sequence of packet index;
Occurs the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, in response to receiving end First return command of feedback sends next data packet according to the normal packet indexed sequential of current long data;
Occurs the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, in response to receiving The second return command for holding feedback sends next data packet according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, is returned in response to the third of receiving end feedback Order is returned, retransmits next data packet according to the correct packet indexed sequential of upper one long data;
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, response In the 4th return command of receiving end feedback, next data packet is sent according to the normal sequence of packet index;
It is consistent with the gauge outfit of last data packet in data receiver, and when packet index and the discontinuous packet index of last data packet, it rings The 5th return command that should be fed back in receiving end retransmits next data according to next packet indexed sequential of last data packet Packet.
Further, locating instruction set is also called for first processor to implement function such as:
Add volume error check code to each data packet, it is anti-in response to receiving end when data receiver progress error checking and correction does not pass through 6th return command of feedback, retransmits the data packet of error.
The third aspect provides a kind of data receiver method, including
Successively receive several data packets that long data are split into;Data packet, which adds, is composed of packet header, packet header include gauge outfit, data length, Packet quantity, packet index;Gauge outfit is to distinguish the task number of long data belonging to data packet, and data length is for defining behind packet header in data The length of appearance, packet quantity are the serial number of place data packet for characterizing the total quantity for being split rear data packet, packet index, are The sequence foundation that data are sent;
Occur the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, generate request according to The normal packet indexed sequential of current long data sends the first return command of next data packet;
Occur the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, generates request and press The second return command of next data packet is sent according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, generates request according to upper one long data Correct packet indexed sequential retransmits the third return command of next data packet;
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, generates Request sends the 4th return command of next data packet according to the normal sequence of packet index;
It is consistent with the gauge outfit of last data packet in data receiver, and when packet index and the discontinuous packet index of last data packet, it is raw The 5th return command of next data packet is retransmitted according to next packet indexed sequential of last data packet at request.
It further, further include adding the error check code error checking and correction of volume not pass through to each data packet is located in data receiver When, generate the 6th return command for retransmitting error data packet.
Fourth aspect provides a kind of data receiver, including second processor and second memory, second memory are deposited Instruction set is contained to call for second processor to implement function such as:
Successively receive several data packets that long data are split into;Data packet, which adds, is composed of packet header, packet header include gauge outfit, data length, Packet quantity, packet index;Gauge outfit is to distinguish the task number of long data belonging to data packet, and data length is for defining behind packet header in data The length of appearance, packet quantity are the serial number of place data packet for characterizing the total quantity for being split rear data packet, packet index, are The sequence foundation that data are sent;
Occur the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, generate request according to The normal packet indexed sequential of current long data sends the first return command of next data packet;
Occur the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, generates request and press The second return command of next data packet is sent according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, generates request according to upper one long data Correct packet indexed sequential retransmits the third return command of next data packet;
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, generates Request sends the 4th return command of next data packet according to the normal sequence of packet index;
It is consistent with the gauge outfit of last data packet in data receiver, and when packet index and the discontinuous packet index of last data packet, it is raw The 5th return command of next data packet is retransmitted according to next packet indexed sequential of last data packet at request.
Further, instruction set is also called for second processor to implement function such as:
In data receiver to when adding the error check code error checking and correction of volume not pass through positioned at each data packet, generation is retransmitted out 6th return command of wrong data packet.
5th aspect provides a kind of data transmission method, including data transmission method for uplink as described above, and as described above Data receiver method.
6th aspect provides a kind of data transmission system, including data transmitting equipment as described above, and as described above Data receiver.
The second to the 6th aspect of aforementioned present invention technical effect technical solution corresponding with first aspect obtained is obtained Technical effect it is approximate, repeat no more.
In conclusion the invention has the following advantages:
1. entire data transmission procedure more optimizes, helps avoid the information that the fractionation of data caused by packet loss, bottom pour ladle is sent and lose It loses;
2. utilizing error check code, further progress error checking and correction is sent to data, and retransmit for the data of error, Further enhance the complete and accurate of data transmission.
Detailed description of the invention
Fig. 1 is the flow chart of data transmission method for uplink in the present invention;
Fig. 2 is the schematic diagram of data transmitting equipment in the present invention;
Fig. 3 is the flow chart of data receiver method in the present invention;
Fig. 4 is the schematic diagram of data receiver in the present invention;
Fig. 5 is the schematic diagram of data transmission system in the present invention.
In figure: 1, first processor;2, first memory;3, second processor;4, second memory.
Specific embodiment
With reference to the accompanying drawings and embodiments, the present invention will be described in detail.
This specific embodiment is only explanation of the invention, is not limitation of the present invention, those skilled in the art Member can according to need the modification that not creative contribution is made to the present embodiment after reading this specification, but as long as at this All by the protection of Patent Law in the scope of the claims of invention.
Embodiment 1
A kind of data transmission method for uplink, referring to Fig.1, including step S101 to step S103.
Step S101: long data to be sent are split into several data packets.
It is to be split according to fixed size that long data, which split mode, when there is other demands, can also as needed according to Particular size is split.The data package size specifically split, and the data packet number split into set according to needing, do not limit It is fixed.
Step S102: adding to each data packet and compile packet header, and packet header includes gauge outfit, data length, packet quantity, packet index.
Gauge outfit is to distinguish the task number of long data belonging to data packet, and the fractionation transmission process of a long data should be one Task, gauge outfit difference indicate that different long data are sent.
Data length is used to define the length of data content behind packet header, facilitates verification data, guarantees the complete and accurate of data.
Packet quantity wraps whether the long data of index verifying receive for characterizing the total quantity for being split rear data packet, for combining Completely.
Packet index is the serial number of place data packet, for being numbered to data packet, facilitate data packet in order with And sent, in addition combined with packet quantity, it can be used for verifying whether long data receive completely, verifying principle is same length Under the reception task of data, whether it is equal to packet quantity according to the total amount of packet indexed sequential successively received data packet
By taking long data AA 00 01 02 03 00 01 00 00 00 00 00 as an example, in which:
The packet header that AA 00 01 02 03 00 01 00 is plus compiles;
00 00 00 00 be the data content for needing to send;
AA is gauge outfit;
00 01 02 03 be the data length of data content in current data packet;
The 00 01 packet quantity being split into for long data;
00 indexes for the packet of current data packet;
00 00 00 00 be the data content of current data packet.
Step S103: receiving the return command of feedback end, according to the type of return command, sends next number of corresponding sequence According to packet:
Situation one: when data start to send, other orders are not received, first successively sends according to packet indexed sequential, avoids sending out Send confusion.
Situation two: the packet index of new gauge outfit and starting is received in receiving end, while a upper long data finish receiving, hair When sending new long data, at this time in response to the first return command of receiving end feedback, according to the packet of the long data currently newly sent Indexed sequential sends next data packet, to realize the uninterrupted transmission of the long data in front and back.
Situation three: the packet index of new gauge outfit and non-starting is received in receiving end, while a upper long data finish receiving When, active or the case where omit the initial data packets of the long data out, second in response to receiving end feedback, which returns, at this time orders It enables, sends next data packet according to the packet indexed sequential of the starting of current new long data, to solve the packet index of starting Corresponding data-bag lost problem.
Situation four: occurring new gauge outfit in data receiver, but a upper long data do not finish receiving, that is, a upper long data occurs Packet loss, bottom pour ladle, and the data packet situation of the next long data sent has been directly received, at this time in response to the of receiving end feedback Three return commands retransmit next data packet according to the packet indexed sequential that should correctly send of upper one long data, to solve The problem of certainly upper long data packetloss, bottom pour ladle.
Situation five: it is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes Consecutive hours sends next data packet according to the normal sequence of packet index in response to the 4th return command of receiving end feedback.At this time State is sent for normal and correct packet sequence.
Situation six: receiving, data are consistent with the gauge outfit of last data packet, and wrap index and the packet rope with last data packet When drawing discontinuous, that is, there is packet loss, the bottom pour ladle in same long data, the 5th return command fed back at this time in response to receiving end, Next data packet is retransmitted according to next packet indexed sequential of last data packet, that is, retransmits correct data packet, avoids The loss of data.
Further, method further includes adding volume error check code to each data packet, carries out error checking and correction not in data receiver By when, in response to receiving end feedback the 6th return command, retransmit the data packet of error.
Using error check code, further progress error checking and correction is sent to data, and send out again for the data of error It send, further enhances the complete and accurate of data transmission.Error check code can be the classes such as CRC16 check code or CRC32 check code Like check code.
Embodiment 2
A kind of data transmitting equipment is stored with finger referring to Fig. 2, including first processor 1 and first memory 2, first memory 2 Collection is enabled to call for first processor 1 to implement function such as:
Long data to be sent are split into several data packets.
Add to each data packet and compile packet header, packet header includes gauge outfit, data length, packet quantity, packet index;Gauge outfit is to distinguish number According to the task number for wrapping affiliated long data, data length is used to define the length of data content behind packet header, and packet quantity is for characterizing quilt The total quantity of data packet after fractionation, packet index are the serial number of place data packet.
When data are sent, data packet is successively sent according to the normal sequence of packet index.
Occurs the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, in response to connecing First return command of receiving end feedback sends next data packet according to the normal packet indexed sequential of current long data.
Occur the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, in response to Second return command of receiving end feedback sends next data packet according to the packet indexed sequential of current long data starting.
Occurs new gauge outfit in data receiver, and when a upper long data do not receive complete, in response to the of receiving end feedback Three return commands retransmit next data packet according to the correct packet indexed sequential of upper one long data.
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, In response to the 4th return command of receiving end feedback, next data packet is sent according to the normal sequence of packet index.
It is consistent with the gauge outfit of last data packet in data receiver, and the packet index for wrapping index and last data packet is discontinuous When, in response to the 5th return command of receiving end feedback, retransmitted according to next packet indexed sequential of last data packet next Data packet.
Add volume error check code to each data packet, when data receiver progress error checking and correction does not pass through, in response to receiving The 6th return command for holding feedback, retransmits the data packet of error.
Embodiment 3
A kind of data receiver method, referring to Fig. 3, including step S201 and step S202.
Step S201: several data packets that long data are split into successively are received.
Data packet, which adds, is composed of packet header, and packet header includes gauge outfit, data length, packet quantity, packet index;Gauge outfit is to distinguish data packet The task number of affiliated long data, data length are used to define the length of data content behind packet header, and packet quantity is split for characterizing The total quantity of data packet afterwards, packet index are the serial number of place data packet, the sequence foundation sent for data.
Step S202: according to the header packet information of the data packet received, judge the reception condition of data and anti-to receiving end It is complete to promote data to send to present corresponding return command, specifically:
Situation one: occurring the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, this state It is completely sent for previous long data, starts to send next long data, at this point, indexed in response to new gauge outfit and the packet of starting, New data receiver task is established, and empties data buffer area for caching new long data, meanwhile, request is generated according to working as The normal packet indexed sequential of preceding long data sends the first return command of next data packet.
Situation two: the packet index of new gauge outfit and non-starting is received in receiving end, while a upper long data finish receiving When, active or the case where omit the initial data packets of the long data out, second in response to receiving end feedback, which returns, at this time orders It enables, sends next data packet according to the packet indexed sequential of the starting of current new long data, to solve the packet index of starting Corresponding data-bag lost problem.
Situation three: occurring new gauge outfit in data receiver, but a upper long data do not finish receiving, that is, a upper long data occurs Packet loss, bottom pour ladle, and the data packet situation of the next long data sent has been directly received, at this time in response to the of receiving end feedback Three return commands retransmit next data packet according to the packet indexed sequential that should correctly send of upper one long data, to solve The problem of certainly upper long data packetloss, bottom pour ladle.
Situation four: it is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes Consecutive hours sends next data packet according to the normal sequence of packet index in response to the 4th return command of receiving end feedback.At this time State is sent for normal and correct packet sequence.
Situation five: receiving, data are consistent with the gauge outfit of last data packet, and wrap index and the packet rope with last data packet When drawing discontinuous, that is, there is packet loss, the bottom pour ladle in same long data, the 5th return command fed back at this time in response to receiving end, Next data packet is retransmitted according to next packet indexed sequential of last data packet, that is, retransmits correct data packet, avoids The loss of data.
Further, method further includes adding the error check code error checking and correction of volume not to each data packet is located in data receiver By when, generate retransmit error data packet the 6th return command.
Using error check code, further progress error checking and correction is sent to data, and send out again for the data of error It send, further enhances the complete and accurate of data transmission.Error check code can be the classes such as CRC16 check code or CRC32 check code Like check code.
Embodiment 4
A kind of data receiver is stored with finger referring to Fig. 4, including second processor 3 and second memory 4, second memory 4 Collection is enabled to call for second processor 3 to implement function such as:
Successively receive several data packets that long data are split into;Data packet, which adds, is composed of packet header, packet header include gauge outfit, data length, Packet quantity, packet index;Gauge outfit is to distinguish the task number of long data belonging to data packet, and data length is for defining behind packet header in data The length of appearance, packet quantity are the serial number of place data packet for characterizing the total quantity for being split rear data packet, packet index, are The sequence foundation that data are sent.
Occur the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, generates request The first return command of next data packet is sent according to the normal packet indexed sequential of current long data.
Occurs the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, generation is asked Seek the second return command that next data packet is sent according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, generates request according to upper one long data Correct packet indexed sequential retransmits the third return command of next data packet.
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, Generate the 4th return command that request sends next data packet according to the normal sequence of packet index.
It is consistent with the gauge outfit of last data packet in data receiver, and the packet index for wrapping index and last data packet is discontinuous When, generate the 5th return command that request retransmits next data packet according to next packet indexed sequential of last data packet.
In data receiver to when adding the error check code error checking and correction of volume not pass through positioned at each data packet, generation is sent out again Send out the 6th return command of wrong data packet.
Embodiment 5
A kind of data transmission method, including data transmission method for uplink provided by embodiment 1, and the data such as the offer of embodiment 3 Method of reseptance.
Embodiment 6
A kind of data transmission system, referring to Fig. 5, including the data transmitting equipment that such as embodiment 2 provides, and as embodiment 4 mentions The data receiver of confession.
The above is only a preferred embodiment of the present invention, protection scope of the present invention is not limited merely to above-mentioned implementation Example, all technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the art Those of ordinary skill for, several improvements and modifications without departing from the principles of the present invention, these improvements and modifications It should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of data transmission method for uplink is based on coding techniques, it is characterised in that: including
Long data to be sent are split into several data packets;
Add to each data packet and compile packet header, packet header includes gauge outfit, data length, packet quantity, packet index;Gauge outfit is to distinguish data packet The task number of affiliated long data, data length are used to define the length of data content behind packet header, and packet quantity is split for characterizing The total quantity of data packet afterwards, packet index are the serial number of data packet;
When data are sent, data packet is successively sent according to the normal sequence of packet index;
Occurs the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, in response to receiving end First return command of feedback sends next data packet according to the normal packet indexed sequential of current long data;
Occurs the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, in response to receiving The second return command for holding feedback sends next data packet according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, is returned in response to the third of receiving end feedback Order is returned, retransmits next data packet according to the correct packet indexed sequential of upper one long data;
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, response In the 4th return command of receiving end feedback, next data packet is sent according to the normal sequence of packet index;
It is consistent with the gauge outfit of last data packet in data receiver, and when packet index and the discontinuous packet index of last data packet, it rings The 5th return command that should be fed back in receiving end retransmits next data according to next packet indexed sequential of last data packet Packet.
2. data transmission method according to claim 1, it is characterised in that: further include adding to compile mistake school to each data packet Code is tested, when data receiver progress error checking and correction does not pass through, in response to the 6th return command of receiving end feedback, is retransmitted out Wrong data packet.
3. a kind of data transmitting equipment, it is characterised in that: including first processor (1) and first memory (2), first memory (2) instruction set is stored with to call for first processor (1) to implement function such as:
Long data to be sent are split into several data packets;
Add to each data packet and compile packet header, packet header includes gauge outfit, data length, packet quantity, packet index;Gauge outfit is to distinguish data packet The task number of affiliated long data, data length are used to define the length of data content behind packet header, and packet quantity is split for characterizing The total quantity of data packet afterwards, packet index are the serial number of data packet;
When data are sent, data packet is successively sent according to the normal sequence of packet index;
Occurs the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, in response to receiving end First return command of feedback sends next data packet according to the normal packet indexed sequential of current long data;
Occurs the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, in response to receiving The second return command for holding feedback sends next data packet according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, is returned in response to the third of receiving end feedback Order is returned, retransmits next data packet according to the correct packet indexed sequential of upper one long data;
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, response In the 4th return command of receiving end feedback, next data packet is sent according to the normal sequence of packet index;
It is consistent with the gauge outfit of last data packet in data receiver, and when packet index and the discontinuous packet index of last data packet, it rings The 5th return command that should be fed back in receiving end retransmits next data according to next packet indexed sequential of last data packet Packet.
4. data transmitting equipment according to claim 3, it is characterised in that: locating instruction set is also for first processor (1) It calls to implement function such as:
Add volume error check code to each data packet, it is anti-in response to receiving end when data receiver progress error checking and correction does not pass through 6th return command of feedback, retransmits the data packet of error.
5. a kind of data receiver method, it is characterised in that: including
Successively receive several data packets that long data are split into;Data packet, which adds, is composed of packet header, packet header include gauge outfit, data length, Packet quantity, packet index;Gauge outfit is to distinguish the task number of long data belonging to data packet, and data length is for defining behind packet header in data The length of appearance, packet quantity are the serial number of data packet for characterizing the total quantity for being split rear data packet, packet index, are data The sequence foundation of transmission;
Occur the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, generate request according to The normal packet indexed sequential of current long data sends the first return command of next data packet;
Occur the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, generates request and press The second return command of next data packet is sent according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, generates request according to upper one long data Correct packet indexed sequential retransmits the third return command of next data packet;
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, generates Request sends the 4th return command of next data packet according to the normal sequence of packet index;
It is consistent with the gauge outfit of last data packet in data receiver, and when packet index and the discontinuous packet index of last data packet, it is raw The 5th return command of next data packet is retransmitted according to next packet indexed sequential of last data packet at request.
6. data receiver method according to claim 5, it is characterised in that: further include in data receiver to positioned at each number When not passing through according to packet plus the error check code error checking and correction compiled, the 6th return command for retransmitting error data packet is generated.
7. a kind of data receiver, it is characterised in that: including second processor (3) and second memory (4), second memory (4) instruction set is stored with to call for second processor (3) to implement function such as:
Successively receive several data packets that long data are split into;Data packet, which adds, is composed of packet header, packet header include gauge outfit, data length, Packet quantity, packet index;Gauge outfit is to distinguish the task number of long data belonging to data packet, and data length is for defining behind packet header in data The length of appearance, packet quantity are the serial number of data packet for characterizing the total quantity for being split rear data packet, packet index, are data The sequence foundation of transmission;
Occur the packet index of new gauge outfit and starting in data receiver, and when a upper long data receiver is complete, generate request according to The normal packet indexed sequential of current long data sends the first return command of next data packet;
Occur the packet index of new gauge outfit and non-starting in data receiver, and when a upper long data receiver is complete, generates request and press The second return command of next data packet is sent according to the packet indexed sequential of current long data starting;
Occur new gauge outfit in data receiver, and when a upper long data do not receive complete, generates request according to upper one long data Correct packet indexed sequential retransmits the third return command of next data packet;
It is consistent with the gauge outfit of last data packet in data receiver, and the packet for wrapping index and last data packet indexes consecutive hours, generates Request sends the 4th return command of next data packet according to the normal sequence of packet index;
It is consistent with the gauge outfit of last data packet in data receiver, and when packet index and the discontinuous packet index of last data packet, it is raw The 5th return command of next data packet is retransmitted according to next packet indexed sequential of last data packet at request.
8. data receiver according to claim 7, it is characterised in that: instruction set is also called for second processor (3) To implement function such as:
In data receiver to when adding the error check code error checking and correction of volume not pass through positioned at each data packet, generation is retransmitted out 6th return command of wrong data packet.
9. a kind of data transmission method, it is characterised in that: including data transmission method for uplink as claimed in claim 1 or 2, Yi Jiru Data receiver method described in claim 5 or 6.
10. a kind of data transmission system, it is characterised in that: including data transmitting equipment as described in claim 3 or 4, and Data receiver as claimed in claim 7 or 8.
CN201910267219.0A 2019-04-03 2019-04-03 Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system Active CN109905205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910267219.0A CN109905205B (en) 2019-04-03 2019-04-03 Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910267219.0A CN109905205B (en) 2019-04-03 2019-04-03 Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system

Publications (2)

Publication Number Publication Date
CN109905205A true CN109905205A (en) 2019-06-18
CN109905205B CN109905205B (en) 2022-06-24

Family

ID=66955177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910267219.0A Active CN109905205B (en) 2019-04-03 2019-04-03 Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system

Country Status (1)

Country Link
CN (1) CN109905205B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110311721A (en) * 2019-06-19 2019-10-08 海丰通航科技有限公司 Data transmission method, transmitting terminal, receiving end and data transmission system
CN111246428A (en) * 2019-11-20 2020-06-05 广东纬德信息科技股份有限公司 Network reliable communication method, system, device and storage medium
CN111917531A (en) * 2020-07-28 2020-11-10 厦门亿联网络技术股份有限公司 Single-wire bidirectional communication system and communication method thereof
CN112769708A (en) * 2019-11-05 2021-05-07 北京华为数字技术有限公司 Data transmission method and device and computer readable storage medium
CN113360435A (en) * 2021-06-03 2021-09-07 三川智慧科技股份有限公司 Serial port communication optimization method, device, equipment and medium for intelligent water meter
CN115606236A (en) * 2020-10-28 2023-01-13 京东方科技集团股份有限公司(Cn) Data transmission method, device, terminal and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193312A (en) * 2006-11-22 2008-06-04 中兴通讯股份有限公司 Self-adapted error recovery device, video communication system and method based on feedback
US20100165992A1 (en) * 2008-12-29 2010-07-01 Moxa Inc. Transmission system, device and method that prevent data loss
CN102273176A (en) * 2009-01-14 2011-12-07 熵敏通讯股份有限公司 System and method for retransmission and fragmentation in a communication network
CN105245317A (en) * 2015-10-20 2016-01-13 北京小鸟听听科技有限公司 Data transmission method, transmitting end, receiving end and data transmission system
CN106453233A (en) * 2016-08-10 2017-02-22 深圳市中兴物联科技股份有限公司 Data transmission method and apparatus based on UDP
CN108848197A (en) * 2018-09-19 2018-11-20 江苏瑞中数据股份有限公司 A kind of method and system of file transmission

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193312A (en) * 2006-11-22 2008-06-04 中兴通讯股份有限公司 Self-adapted error recovery device, video communication system and method based on feedback
US20100165992A1 (en) * 2008-12-29 2010-07-01 Moxa Inc. Transmission system, device and method that prevent data loss
CN102273176A (en) * 2009-01-14 2011-12-07 熵敏通讯股份有限公司 System and method for retransmission and fragmentation in a communication network
CN105245317A (en) * 2015-10-20 2016-01-13 北京小鸟听听科技有限公司 Data transmission method, transmitting end, receiving end and data transmission system
CN106453233A (en) * 2016-08-10 2017-02-22 深圳市中兴物联科技股份有限公司 Data transmission method and apparatus based on UDP
CN108848197A (en) * 2018-09-19 2018-11-20 江苏瑞中数据股份有限公司 A kind of method and system of file transmission

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110311721A (en) * 2019-06-19 2019-10-08 海丰通航科技有限公司 Data transmission method, transmitting terminal, receiving end and data transmission system
CN112769708A (en) * 2019-11-05 2021-05-07 北京华为数字技术有限公司 Data transmission method and device and computer readable storage medium
CN111246428A (en) * 2019-11-20 2020-06-05 广东纬德信息科技股份有限公司 Network reliable communication method, system, device and storage medium
CN111917531A (en) * 2020-07-28 2020-11-10 厦门亿联网络技术股份有限公司 Single-wire bidirectional communication system and communication method thereof
CN115606236A (en) * 2020-10-28 2023-01-13 京东方科技集团股份有限公司(Cn) Data transmission method, device, terminal and system
CN113360435A (en) * 2021-06-03 2021-09-07 三川智慧科技股份有限公司 Serial port communication optimization method, device, equipment and medium for intelligent water meter

Also Published As

Publication number Publication date
CN109905205B (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN109905205A (en) Data transmission, received method and apparatus, data transmission method and system
KR101279827B1 (en) Synchronous data communication
US10721759B2 (en) Method for transmitting uplink data, user equipment, and base station
CN107104782B (en) Data transmission method and device
CN109474642A (en) Based on Ethernet udp protocol data transmission method, apparatus, equipment and medium
CN101188477B (en) A data packet sequence receiving method and device
KR20080078051A (en) Synchronous data communication
KR20080086503A (en) Multi-priority messaging
CN108429979A (en) A kind of charging box upgrade method, charging box, wireless headset and TWS earphones
JP6574301B2 (en) Information transmission method, information reception method, and device
CN111756493A (en) Resource determining and receiving method and device
JP2018504830A (en) Method, apparatus and communication system for generating buffer status report
CN106130696A (en) A kind of method of forward error correction, device and electronic equipment
CN111435893A (en) HARQ-ACK codebook, and information determination method and device
CN109151245A (en) Image data transfer method, system, storage medium and FPGA based on FPGA
CN106791908B (en) A kind of live video stream storage method for supporting cloud platform to use double buffering
US10856297B2 (en) Pre-calculation of sub-event RF channel
JPH01218148A (en) Information distributing system, its transmission station and terminal equipment
CN112312465B (en) Method, device, terminal and equipment for reporting and receiving random access report
CN102217237A (en) Method and device for medium stream performance monitoring
CN104298630B (en) Communication means, device and equipment based on Serial Peripheral Interface (SPI)
CN104519574B (en) A kind of enhancing transmission time interval (tti) bundle transmission method and device
EP4224809A1 (en) Message transmission method, terminals and storage medium
CN109167888A (en) Image transmitting and storage system and relevant device based on PCI-E capture card
CN109391605A (en) Data transmission method, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant