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

CN109905205AActive Publication Date: 2019-06-18SUZHOU GOLD MANTIS EXHIBITION DESIGN ENG
7 Cites 5 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2019-06-18

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a data sending and receiving method and device and a data transmission method and system, and relates to the communication technology. The method comprises the following steosof splitting long data to be sent into a plurality of data packets; adding a packet header to each data packet, wherein the packet header comprises a header, a data length, a packet number and a packet index; when the data is sent, the data packets are sequentially sent according to the normal sequence of the packet indexes; when a new header and an initial packet index appear in data receiving and the last long data is completely received, responding to a first return command fed back by a receiving end, and sending a next data packet according to a normal packet index sequence of the currentlong data; when a new header and a non-initial packet index appear in data receiving and the previous long data is completely received, responding to a second return command fed back by the receivingend, and sending a next data packet according to the sequence of the initial packet index of the current long data; The whole data sending process is more optimized, and information loss caused by data splitting sending due to packet loss and packet leakage can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to communication technology, more specifically, it relates to a data sending and receiving method and equipment, data transmission method and system. Background technique

[0002] In activities or places such as exhibitions, exhibitions, museums, concerts, etc., it is often necessary to create suitable and harmonious visual effects, auditory effects, and on-site atmosphere to complement each other. Existing solutions usually use a large number of lighting, audio, etc. Audio-visual equipment is connected to form a local area network to form a complete audio-visual system.

[0003] The realization of Udp communication mode is an ideal technical means to realize LAN communication. However, for larger data packets, the data transmission cannot be completed at one time, and it needs to be divided into multiple data packets for transmission.

[0004] At present, the Chinese patent application number 201110070410.X discloses a ...

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...