Data sending and receiving methods and equipment, and data transmission method and system
A data sending method and data technology, applied in the field of communication, can solve problems such as data packet loss, incomplete data transmission, missing packets, etc., and achieve the effect of enhancing completeness and accuracy, and optimizing the data sending process
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] A data sending method, refer to figure 1 , including step S101 to step S103.
[0064] Step S101: Split the long data to be sent into several data packets.
[0065] The long data splitting method is to split according to a fixed size, and when there are other needs, it can also be split according to a specific size as needed. The specific split data packet size and the number of split data packets are set according to the needs and are not limited.
[0066] Step S102: Add a header to each data packet, the header includes header, data length, number of packets, and packet index.
[0067] The header is the task number that distinguishes the long data that the data packet belongs to. The splitting and sending process of a long data should be a task, and different headers indicate different long data to be sent.
[0068] The data length is used to define the length of the data content after the header, which is convenient for checking the data and ensuring the completenes...
Embodiment 2
[0089] A data sending device, refer to figure 2 , including a first processor 1 and a first memory 2, the first memory 2 stores an instruction set for the first processor 1 to call to realize the following functions:
[0090] Split the long data to be sent into several data packets.
[0091] Add a header to each data packet. The header includes the header, data length, number of packets, and packet index; the header is the task number to distinguish the long data to which the data packet belongs, and the data length is used to define the length of the data content after the header, and the number of packets It is used to represent the total number of split data packets, and the packet index is the sequence number of the data packets.
[0092] When data is sent, the data packets are sent sequentially according to the normal order of the packet index.
[0093] When a new header and initial packet index appear in data reception, and the last long data is received completely, i...
Embodiment 3
[0100] A data receiving method, refer to image 3 , including step S201 and step S202.
[0101] Step S201: Receive several data packets into which long data is split in sequence.
[0102] The data packet is added with a header, which includes the header, data length, packet quantity, and packet index; the header is the task number to distinguish the long data to which the data packet belongs, the data length is used to define the length of the data content after the header, and the packet quantity is used to Represents the total number of split data packets, and the packet index is the sequence number of the data packets, which is the basis for the order of data transmission.
[0103] Step S202: According to the packet header information of the received data packet, judge the reception status of the data and feed back the corresponding return command to the receiving end to make the data transmission complete, specifically:
[0104] Situation 1: When a new header and initial...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com