CN117041176A - Data transmission method and device, storage medium and electronic equipment - Google Patents

Data transmission method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117041176A
CN117041176A CN202311201073.2A CN202311201073A CN117041176A CN 117041176 A CN117041176 A CN 117041176A CN 202311201073 A CN202311201073 A CN 202311201073A CN 117041176 A CN117041176 A CN 117041176A
Authority
CN
China
Prior art keywords
data packet
data
current
receiving
time information
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.)
Pending
Application number
CN202311201073.2A
Other languages
Chinese (zh)
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.)
Shenzhen Kuangshi Technology Co ltd
Original Assignee
Shenzhen Kuangshi Technology 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 Shenzhen Kuangshi Technology Co ltd filed Critical Shenzhen Kuangshi Technology Co ltd
Priority to CN202311201073.2A priority Critical patent/CN117041176A/en
Publication of CN117041176A publication Critical patent/CN117041176A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/43Assembling or disassembling of packets, e.g. segmentation and reassembly [SAR]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The application discloses a data transmission method, a device, a storage medium and electronic equipment, wherein the data transmission method comprises the steps of obtaining current source data; dividing current source data into at least two data packets, and caching according to time sequence; acquiring time information of a current second data packet, wherein the current second data packet is the next data packet arranged in the current first data packet; performing data processing based on the time information and the current first data packet to generate a target data packet; when receiving the data sending instruction, the target data packet is sent to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information. The scheme can improve the data transmission efficiency.

Description

Data transmission method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a data transmission device, a storage medium, and an electronic device.
Background
Ultra Wide Band (UWB) technology is a wireless communication technology that uses ultra short pulses or ultra wide Band continuous waves for data transmission. The method has the advantages of high interference resistance, accurate positioning capability, excellent data transmission rate and the like, and is gradually applied to intelligent equipment.
However, the current UWB technology is not mature enough, and when the UWB technology is applied to a scenario of high-definition audio and low-delay transmission, the advantages of the UWB technology cannot be exerted due to low transmission efficiency, and the development of the UWB technology in the audio transmission field is restricted.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device, a storage medium and electronic equipment, which can improve the data transmission efficiency.
In a first aspect, an embodiment of the present application provides a data transmission method, including:
acquiring current source data;
dividing the current source data into at least two data packets, and caching according to a time sequence;
acquiring time information of a current second data packet, wherein the current second data packet is the next data packet arranged in a current first data packet;
performing data processing based on the time information and the current first data packet to generate a target data packet;
and when receiving a data sending instruction, sending the target data packet to a receiving end so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information.
In the data transmission method provided by the embodiment of the present application, the obtaining the time information of the current second data packet includes:
Acquiring the data packet length of the current second data packet;
and acquiring time information of the current second data packet according to the data packet length, wherein the time information comprises the sending preparation time and the air transmission time of the current second data packet.
In the data transmission method provided by the embodiment of the present application, the generating a target data packet based on the time information and the current first data packet includes:
encapsulating the sending preparation time and the air transmission time to generate identification information;
and combining the identification information with the current first data packet to generate a target data packet.
In the data transmission method provided by the embodiment of the present application, when the data transmission instruction is received, the target data packet is sent to a receiving end, so that after the receiving end adjusts a receiving time sequence of a next data packet according to the time information, the method further includes:
when acknowledgement information fed back by the receiving end is received, acquiring first transmission efficiency and second transmission efficiency of the target data packet;
and after the data packet length of the remaining data packets is adjusted or when the data packet length of the remaining data packets is determined not to be adjusted, returning to the step of acquiring the time information of the current second data packet until all the data packets are transmitted.
In a second aspect, an embodiment of the present application provides another data transmission method, including:
receiving a target data packet sent by a sending end;
acquiring the identification information of the target data packet;
decapsulating the identification information to generate time information of the target data packet;
and adjusting the receiving time sequence of the next data packet according to the time information so as to align the receiving time sequence of the next data packet with the transmitting time sequence of the transmitting end.
In the data transmission method provided by the embodiment of the present application, after the receiving timing sequence of the next data packet is adjusted according to the time information, so that the receiving timing sequence of the data packet aligns with the transmitting timing sequence of the transmitting end, the method further includes:
generating confirmation information and feeding back the confirmation information to the sending end.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, including:
the first acquisition unit is used for acquiring current source data;
the data segmentation unit is used for segmenting the current source data into at least two data packets and caching according to a time sequence;
the second acquisition unit is used for acquiring time information of a current second data packet, wherein the current second data packet is a next data packet arranged in the current first data packet;
The data processing unit is used for carrying out data processing based on the time information and the current first data packet to generate a target data packet;
and the data transmitting unit is used for transmitting the target data packet to a receiving end when receiving a data transmitting instruction, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information.
In a fourth aspect, an embodiment of the present application provides another data transmission apparatus, including:
the data receiving unit is used for receiving the target data packet sent by the sending end;
a third obtaining unit, configured to obtain identification information of the target data packet;
the data unpacking unit is used for unpacking the identification information and generating time information of the target data packet;
and the time sequence adjusting unit is used for adjusting the receiving time sequence of the next data packet according to the time information so as to align the receiving time sequence of the time sequence adjusting unit with the transmitting time sequence of the transmitting end.
In a fifth aspect, the present application provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform a data transmission method according to any one of the preceding claims.
In a sixth aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the data transmission method of any one of the above when executing the computer program.
In summary, the data transmission method provided by the embodiment of the present application includes obtaining current source data; dividing the current source data into at least two data packets, and caching according to a time sequence; acquiring time information of a current second data packet, wherein the current second data packet is the next data packet arranged in a current first data packet; performing data processing based on the time information and the current first data packet to generate a target data packet; and when receiving a data sending instruction, sending the target data packet to a receiving end so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information. According to the scheme, the time information of the current second data packet can be acquired before the current first data packet is transmitted, the target data packet is generated according to the time information and the current first data packet, and then the target data packet is transmitted to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information, the transmitting time sequence of the transmitting end is aligned with the receiving time sequence of the receiving end, the total time required by data transmission is saved, and the data transmission efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a data transmission system according to an embodiment of the present application.
Fig. 2 is a flow chart of a data transmission method according to an embodiment of the present application.
Fig. 3 is a flowchart of another data transmission method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of another data transmission device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element, and furthermore, elements having the same name in different embodiments of the application may have the same meaning or may have different meanings, the particular meaning of which is to be determined by its interpretation in this particular embodiment or by further combining the context of this particular embodiment.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
In the description of the present application, it should be noted that the positional or positional relationship indicated by the terms such as "upper", "lower", "left", "right", "inner", "outer", etc. are based on the positional or positional relationship shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the apparatus or element in question must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The existing UWB technology is not mature enough, and when the UWB technology is applied to the scene of high-definition audio and low-delay transmission, the advantages of the UWB technology cannot be exerted due to low transmission efficiency, and the development of the UWB technology in the field of audio transmission is restricted.
Based on this, the embodiment of the application provides a data transmission method, a data transmission device, a storage medium and an electronic device, wherein the data transmission device can be integrated in the electronic device, and the electronic device can be a server or a terminal and other devices; the terminal can comprise a mobile phone, a wearable intelligent device, a tablet computer, a notebook computer, a personal computer (Personal Computer, PC) and the like; the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms and the like.
The technical schemes shown in the application will be respectively described in detail through specific examples. The following description of the embodiments is not intended to limit the priority of the embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data transmission system according to an embodiment of the application. The data transmission system may include at least one transmitting end 1000 and at least one receiving end 2000.
Wherein the transmitting terminal 1000 may be connected to different receiving terminals 2000 through a network. The transmitting end 1000 and the receiving end 2000 may be electronic devices having computing hardware capable of supporting and executing software products corresponding to multimedia. The network may be a wireless network or a wired network, for example, the wireless network may be a Wireless Local Area Network (WLAN), a Local Area Network (LAN), a cellular network, bluetooth, a 2G network, a 3G network, a 4G network, a 5G network, or the like.
In the embodiment of the present application, the transmitting end 1000 and the receiving end 2000 are connected to each other through UWB. The transmitting end 1000 is a UWB transmitting device, and the receiving end 2000 is a UWB receiving device. The UWB transmitting device and the UWB receiving device may be electronic devices having UWB functions.
In a specific implementation process, the transmitting end 1000 is configured to transmit a data packet to the receiving end 2000, and the receiving end 2000 is configured to receive the data packet transmitted by the transmitting end 1000 and feed back acknowledgement information to the transmitting end 1000.
In some embodiments, the transmitting end 1000 may be configured to acquire audio data, and then segment the audio data to generate a plurality of data packets arranged according to time sequence. And then, carrying out data processing on the current first data packet to generate a target data packet. Then, the transmitting end 1000 transmits the target packet to the receiving end 20000. It should be noted that the target data packet includes time information of the current first data packet and the current second data packet. The current first data packet is the current header data packet, and the current second data packet is the next data packet arranged in the current first data packet. After the receiving end 2000 receives the target data packet, the receiving timing of the next data packet may be adjusted according to the time information in the target data packet, so that the sending timing of the sending end 1000 is aligned with the receiving timing of the receiving end 2000.
That is, when the transmitting end 1000 starts transmitting a packet, the receiving end 2000 is ready to receive the packet; when the receiving end 2000 starts to feed back the acknowledgement information, the transmitting end 1000 is ready to receive the acknowledgement information.
In summary, in the data transmission system provided by the embodiment of the present application, the transmitting end 1000 may transmit the target data packet carrying the time information to the receiving end 2000, so that the receiving end 2000 adjusts the receiving time sequence of the next data packet according to the time information, thereby aligning the transmitting time sequence of the transmitting end 1000 and the receiving time sequence of the receiving end 2000, saving the total time required for data transmission, and improving the data transmission efficiency.
Referring to fig. 2, fig. 2 is a flow chart of a data transmission method according to an embodiment of the application. It should be noted that, the data transmission method is applied to the transmitting end, and the specific flow of the data transmission method may be as follows:
101. and acquiring current source data.
In the embodiment of the present application, the current source data is audio data. The audio data refers to data transmitted through an audio manner. It should be noted that the audio data includes, but is not limited to, original lossless audio recorded in real time for an audio recording device having a networking function.
The audio recording device can be integrated in the transmitting end, and the transmitting end can directly acquire the audio data through the audio recording device. The audio recording device may also be a device independent of the transmitting end, and the audio data may be acquired by the audio recording device, and then the transmitting end acquires the audio data from the audio recording device through data interaction.
102. And dividing the current source data into at least two data packets, and caching according to the time sequence.
In some embodiments, the current source data may be randomly segmented to obtain a plurality of data packets with equal or unequal data packet lengths, and then compressing each data packet according to a first target compression ratio, and buffering the compressed data packets according to a time sequence.
It can be understood that, in the embodiment of the present application, the current source data is audio data, so that each data packet obtained by slicing has a corresponding timing sequence. In the specific implementation process, each data packet can be sequentially stored in the corresponding buffer area according to the sequence of the time sequence. For example, a data packet with a first time sequence is stored in the first buffer, a data packet with a second time sequence is stored in the second buffer, and a data packet with a third time sequence is stored in the third buffer.
The timings of the first timing, the second timing, and the third timing are sequentially increased. When the transmitting end transmits the data packets, the data packets of the first buffer area, the data packets of the second buffer area and the data packets of the third buffer area are sequentially transmitted according to the sequence.
103. And acquiring time information of a current second data packet, wherein the current second data packet is the next data packet arranged in the current first data packet.
Specifically, the packet length of the current second packet may be obtained; and acquiring time information of the current second data packet according to the length of the data packet.
In some embodiments, time information of a large number of data packets with different data packet lengths may be sampled in advance, then a data lookup table is constructed according to a correspondence between the data packet lengths and the time information, and then the data packet lengths may be input into the data lookup table for matching, so as to obtain corresponding time information.
It will be appreciated that the current first data packet refers to the data packet of the first current timing and the current second data packet is the data packet of the second current timing.
The time information includes a transmission preparation time and an air transmission time.
104. And carrying out data processing based on the time information and the current first data packet to generate a target data packet.
Specifically, the transmission preparation time and the air transmission time can be encapsulated to generate the identification information; and combining the identification information with the current first data packet to generate a target data packet.
In the embodiment of the present application, the identification information is header (header) information, that is, information placed at the header of the data packet.
105. When receiving the data sending instruction, the target data packet is sent to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information.
When the sending preparation time of the target data packet arrives, the sending end receives a data sending instruction to instruct the sending end to send the target data packet, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information, that is, the sending time sequence of the sending end is aligned with the receiving time sequence of the receiving end, thereby saving the total time required by data transmission and improving the data transmission efficiency.
In some embodiments, after the destination packet is sent, the sender may prepare to send the next packet. That is, after the transmission of the target packet is completed, step 103 may be performed back until all packets are transmitted.
In another embodiment, after the receiving end receives the target data packet, the receiving end generates corresponding acknowledgement information and feeds the acknowledgement information back to the sending end. The sending end can judge the current transmission condition by counting the confirmation information of the receiving end in a preset time period, so as to confirm whether the data packet length of the rest data packets needs to be adjusted. The acknowledgement information carries the first transmission efficiency of the target data packet.
In the implementation process, after the receiving end receives the confirmation information, the second transmission efficiency of the target data packet can be obtained, so as to judge whether the first transmission efficiency is consistent with the second transmission efficiency, and confirm whether the data transmission efficiency reaches the best.
Specifically, after step 105, it may further include: when acknowledgement information fed back by a receiving end is received, acquiring first transmission efficiency and second transmission efficiency of a target data packet; comparing the first transmission efficiency with the second transmission efficiency, and confirming whether to adjust the data packet length of the rest data packets according to the comparison result; and after the data packet length of the remaining data packets is adjusted or when the data packet length of the remaining data packets is determined not to be adjusted, returning to the step of acquiring the time information of the current second data packet until all the data packets are transmitted.
The first transmission efficiency is a target data transmission efficiency calculated by the receiving end according to the receiving period of the target data packet, the size of the data packet, the index continuity in the identification information, and the like. The second transmission efficiency is the data transmission efficiency of the transmitting end itself.
It will be appreciated that when the first transmission efficiency and the second transmission efficiency are consistent, the data transmission efficiency between the receiving end and the transmitting end is optimal, and the data packet length of the remaining data packets is not required to be adjusted at this time, and the process may directly return to the execution step 103. When the first transmission efficiency and the second transmission efficiency are inconsistent, the data transmission efficiency between the receiving end and the transmitting end is not optimal, at this time, the inconsistent times may be counted, and when the inconsistent times reach the threshold value, the packet length of the remaining packets is adjusted, and after the packet length of the remaining packets is adjusted, the execution returns to step 103.
That is, when the number of times that the first transmission efficiency and the second transmission efficiency are inconsistent does not reach the threshold, the step 103 may be executed directly without adjusting the packet length of the remaining packets.
It should be noted that, the threshold may be set according to practical situations, which is not limited by the embodiment of the present application. For example, the threshold may be 1, 2, 3, 4, 5, etc.
It can be understood that in the specific implementation process, the length of the data packet can be adjusted by decompressing or recompressing the remaining data packet according to the second target compression ratio, so that the dynamic adjustment of the compression ratio of the data packet according to the current transmission condition is realized, the flexibility of data transmission is improved, a plurality of data packets can be transmitted in time, the efficiency of data transmission is improved, and the problem of lower data transmission efficiency in the related art is further solved.
It should be noted that the compression ratio includes, but is not limited to, a compression format. That is, when compressing or decompressing the data packet, the compression format used is adjusted so as to realize a target compression format (having a target compression ratio) in which the compression ratio is determined to be appropriate for the current transmission condition by employing a different compression format.
In summary, the data transmission method provided by the embodiment of the application includes obtaining current source data; dividing current source data into at least two data packets, and caching according to time sequence; acquiring time information of a current second data packet, wherein the current second data packet is the next data packet arranged in the current first data packet; performing data processing based on the time information and the current first data packet to generate a target data packet; when receiving the data sending instruction, the target data packet is sent to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information. According to the scheme, the time information of the current second data packet can be acquired before the current first data packet is transmitted, the target data packet is generated according to the time information and the current first data packet, and then the target data packet is transmitted to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information, the transmitting time sequence of the transmitting end is aligned with the receiving time sequence of the receiving end, the total time required by data transmission is saved, and the data transmission efficiency is improved.
Referring to fig. 3, the embodiment of the present application further provides another data transmission method, which needs to be described, and the specific flow of the data transmission method is as follows:
201. And receiving the target data packet sent by the sending end.
202. And acquiring the identification information of the target data packet.
203. And de-encapsulating the identification information to generate time information of the target data packet.
204. And adjusting the receiving time sequence of the next data packet according to the time information so as to align the receiving time sequence of the next data packet with the transmitting time sequence of the transmitting end.
In some embodiments, after the receiving end receives the target data packet, the receiving end generates corresponding acknowledgement information and feeds the acknowledgement information back to the sending end. The sending end can judge the current transmission condition by counting the confirmation information of the receiving end in a preset time period, so as to confirm whether the data packet length of the rest data packets needs to be adjusted. The acknowledgement information carries the first transmission efficiency of the target data packet. That is, after step 104, it may further include:
generating confirmation information and feeding back the confirmation information to the transmitting end.
The first transmission efficiency is a target data transmission efficiency calculated by the receiving end according to the receiving period of the target data packet, the size of the data packet, the index continuity in the identification information, and the like.
In summary, the data transmission method provided by the embodiment of the application includes receiving a target data packet sent by a sending end, obtaining identification information of the target data packet, performing decapsulation processing on the identification information, generating time information of the target data packet, and adjusting a receiving time sequence of a next data packet according to the time information so as to align a receiving time sequence of the next data packet with a sending time sequence of the sending end. According to the scheme, after the target data packet is received, the receiving time sequence of the next data packet is adjusted according to the time information in the target data packet, so that the sending time sequence of the sending end is aligned with the receiving time sequence of the receiving end, the total time required by data transmission is saved, and the data transmission efficiency is improved.
In order to facilitate better implementation of the data transmission method provided by the embodiment of the application, the embodiment of the application also provides a data transmission device. Wherein the meaning of the terms is the same as in the above data transmission method, specific implementation details can be referred to in the description of the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the application. The data transmission apparatus may include a first acquisition unit 301, a data slicing unit 302, a second acquisition unit 303, a data processing unit 304, and a data transmitting unit 305. Wherein,
a first obtaining unit 301, configured to obtain current source data;
the data splitting unit 302 is configured to split the current source data into at least two data packets, and cache the data packets according to a time sequence;
a second obtaining unit 303, configured to obtain time information of a current second data packet, where the current second data packet is a next data packet arranged in the current first data packet;
a data processing unit 304, configured to perform data processing based on the time information and the current first data packet, and generate a target data packet;
the data sending unit 305 is configured to send, when receiving the data sending instruction, the target data packet to the receiving end, so that the receiving end adjusts a receiving timing of the next data packet according to the time information.
The specific embodiments of the above units may be referred to the above embodiments of the data transmission method, and will not be described herein.
In summary, the data transmission device provided in the embodiment of the present application may acquire current source data through the first acquiring unit 301; the data segmentation unit 302 segments the current source data into at least two data packets and caches the data packets according to time sequence; the second obtaining unit 303 obtains time information of a current second data packet, where the current second data packet is a next data packet arranged in the current first data packet; performing data processing by the data processing unit 304 based on the time information and the current first data packet to generate a target data packet; upon receiving the data transmission instruction, the data transmission unit 305 transmits the target data packet to the receiving end, so that the receiving end adjusts the receiving timing of the next data packet according to the time information. According to the scheme, the time information of the current second data packet can be acquired before the current first data packet is transmitted, the target data packet is generated according to the time information and the current first data packet, and then the target data packet is transmitted to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information, the transmitting time sequence of the transmitting end is aligned with the receiving time sequence of the receiving end, the total time required by data transmission is saved, and the data transmission efficiency is improved.
Referring to fig. 5, another data transmission device is provided in the embodiment of the present application. Wherein the meaning of the terms is the same as in the above data transmission method, specific implementation details can be referred to in the description of the method embodiment. The data transmission apparatus may include a data receiving unit 401, a third acquiring unit 402, a data decapsulating unit 403, and a timing adjustment unit 404. Wherein,
a data receiving unit 401, configured to receive a target data packet sent by a sending end;
a third obtaining unit 402, configured to obtain identification information of the target data packet;
a data decapsulation unit 403, configured to perform decapsulation processing on the identification information, and generate time information of the target data packet;
the timing adjustment unit 404 is configured to adjust the receiving timing of the next data packet according to the time information, so as to align the receiving timing of the next data packet with the transmitting timing of the transmitting end.
The specific embodiments of the above units may be referred to the above embodiments of the data transmission method, and will not be described herein.
In summary, the data transmission device provided by the embodiment of the present application may receive, through the data receiving unit 401, a target data packet sent by a sending end; acquiring, by the third acquiring unit 402, identification information of the target packet; the data decapsulation unit 403 performs decapsulation processing on the identification information to generate time information of the target data packet; the timing adjustment unit 404 adjusts the receiving timing of the next packet according to the time information so that the receiving timing of the next packet is aligned with the transmitting timing of the transmitting end. According to the scheme, after the target data packet is received, the receiving time sequence of the next data packet is adjusted according to the time information in the target data packet, so that the sending time sequence of the sending end is aligned with the receiving time sequence of the receiving end, the total time required by data transmission is saved, and the data transmission efficiency is improved.
The embodiment of the present application further provides an electronic device, in which the data transmission apparatus of the embodiment of the present application may be integrated, as shown in fig. 6, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, specifically:
the electronic device may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, wireless fidelity (Wireless Fidelity, wiFi) module 607, processor 608 including one or more processing cores, and power supply 609. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 6 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (Subscriber Identity Module, SIM) card, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 601 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 may execute various functional applications and information processing by executing the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 by the processor 608 and the input unit 603.
The input unit 603 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 603 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 608, and can receive commands from the processor 608 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may comprise other input devices in addition to a touch sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 604 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, which may alternatively be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 6 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The electronic device may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
Audio circuitry 606, speakers, and a microphone may provide an audio interface between the user and the electronic device. The audio circuit 606 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 606 and converted into audio data, which are processed by the audio data output processor 608 for transmission via the RF circuit 601 to, for example, another electronic device, or which are output to the memory 602 for further processing. The audio circuit 606 may also include an ear bud jack to provide communication of the peripheral ear bud with the electronic device.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 607, so that wireless broadband Internet access is provided for the user. Although fig. 6 shows a WiFi module 607, it is understood that it does not belong to the necessary constitution of the electronic device, and can be omitted entirely as needed within the scope of not changing the essence of the invention.
The processor 608 is a control center of the electronic device that uses various interfaces and lines to connect the various parts of the overall handset, performing various functions of the electronic device and processing the data by running or executing software programs and/or modules stored in the memory 602, and invoking data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The electronic device also includes a power supply 609 (e.g., a battery) for powering the various components, which may be logically connected to the processor 608 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The power supply 609 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the processor 608 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 608 executes the application programs stored in the memory 602, so as to implement various functions, for example:
acquiring current source data;
dividing current source data into at least two data packets, and caching according to time sequence;
acquiring time information of a current second data packet, wherein the current second data packet is the next data packet arranged in the current first data packet;
Performing data processing based on the time information and the current first data packet to generate a target data packet;
when receiving the data sending instruction, the target data packet is sent to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information.
Or such as:
receiving a target data packet sent by a sending end;
acquiring identification information of a target data packet;
decapsulating the identification information to generate time information of the target data packet;
and adjusting the receiving time sequence of the next data packet according to the time information so as to align the receiving time sequence of the next data packet with the transmitting time sequence of the transmitting end.
In summary, the electronic device provided by the embodiment of the application acquires the current source data; dividing current source data into at least two data packets, and caching according to time sequence; acquiring time information of a current second data packet, wherein the current second data packet is the next data packet arranged in the current first data packet; performing data processing based on the time information and the current first data packet to generate a target data packet; when receiving the data sending instruction, the target data packet is sent to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information. According to the scheme, the time information of the current second data packet can be acquired before the current first data packet is transmitted, the target data packet is generated according to the time information and the current first data packet, and then the target data packet is transmitted to the receiving end, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information, the transmitting time sequence of the transmitting end is aligned with the receiving time sequence of the receiving end, the total time required by data transmission is saved, and the data transmission efficiency is improved.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of an embodiment that are not described in detail in the foregoing embodiments may be referred to in the foregoing detailed description of the data transmission method, which is not repeated herein.
It should be noted that, for the data transmission method in the embodiment of the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the data transmission method in the embodiment of the present application may be implemented by controlling related hardware by a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal, and the execution may include the flow of the embodiment of the data transmission method.
For the data transmission device of the embodiment of the application, each functional module can be integrated in one processing chip, each module can exist alone physically, and two or more modules can be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented as software functional modules and sold or used as a stand-alone product.
To this end, an embodiment of the present application provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the data transmission methods provided by the embodiments of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only MeMory (ROM), a random access MeMory (Random Access Memory, RAM), or the like.
The data transmission method, the device, the storage medium and the electronic equipment provided by the application are respectively described in detail, and specific examples are applied to the description of the principle and the implementation mode of the application, and the description of the above examples is only used for helping to understand the core idea of the application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.

Claims (10)

1. A data transmission method, comprising:
acquiring current source data;
dividing the current source data into at least two data packets, and caching according to a time sequence;
acquiring time information of a current second data packet, wherein the current second data packet is the next data packet arranged in a current first data packet;
Performing data processing based on the time information and the current first data packet to generate a target data packet;
and when receiving a data sending instruction, sending the target data packet to a receiving end so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information.
2. The data transmission method as claimed in claim 1, wherein the acquiring time information of the current second data packet includes:
acquiring the data packet length of the current second data packet;
and acquiring time information of the current second data packet according to the data packet length, wherein the time information comprises the sending preparation time and the air transmission time of the current second data packet.
3. The data transmission method as claimed in claim 2, wherein said generating a target data packet based on said time information and said current first data packet comprises:
encapsulating the sending preparation time and the air transmission time to generate identification information;
and combining the identification information with the current first data packet to generate a target data packet.
4. The data transmission method according to claim 1, wherein upon receiving the data transmission instruction, the method further comprises, after transmitting the target data packet to a receiving end so that the receiving end adjusts a receiving timing of a next data packet according to the time information:
When acknowledgement information fed back by the receiving end is received, acquiring first transmission efficiency and second transmission efficiency of the target data packet;
comparing the first transmission efficiency with the second transmission efficiency, and confirming whether to adjust the data packet length of the rest data packets according to the comparison result;
and after the data packet length of the remaining data packets is adjusted or when the data packet length of the remaining data packets is determined not to be adjusted, returning to the step of acquiring the time information of the current second data packet until all the data packets are transmitted.
5. A data transmission method, comprising:
receiving a target data packet sent by a sending end;
acquiring the identification information of the target data packet;
decapsulating the identification information to generate time information of the target data packet;
and adjusting the receiving time sequence of the next data packet according to the time information so as to align the receiving time sequence of the next data packet with the transmitting time sequence of the transmitting end.
6. The data transmission method according to claim 5, further comprising, after said adjusting the reception timing of the next packet according to said time information so that the own reception timing is aligned with the transmission timing of said transmitting end:
Generating confirmation information and feeding back the confirmation information to the sending end.
7. A data transmission apparatus, comprising:
the first acquisition unit is used for acquiring current source data;
the data segmentation unit is used for segmenting the current source data into at least two data packets and caching according to a time sequence;
the second acquisition unit is used for acquiring time information of a current second data packet, wherein the current second data packet is a next data packet arranged in the current first data packet;
the data processing unit is used for carrying out data processing based on the time information and the current first data packet to generate a target data packet;
and the data transmitting unit is used for transmitting the target data packet to a receiving end when receiving a data transmitting instruction, so that the receiving end adjusts the receiving time sequence of the next data packet according to the time information.
8. A data transmission apparatus, comprising:
the data receiving unit is used for receiving the target data packet sent by the sending end;
a third obtaining unit, configured to obtain identification information of the target data packet;
the data unpacking unit is used for unpacking the identification information and generating time information of the target data packet;
And the time sequence adjusting unit is used for adjusting the receiving time sequence of the next data packet according to the time information so as to align the receiving time sequence of the time sequence adjusting unit with the transmitting time sequence of the transmitting end.
9. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the data transmission method of any one of claims 1-4 or 5-6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data transmission method according to any of claims 1-4 or 5-6 when the computer program is executed by the processor.
CN202311201073.2A 2023-09-15 2023-09-15 Data transmission method and device, storage medium and electronic equipment Pending CN117041176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311201073.2A CN117041176A (en) 2023-09-15 2023-09-15 Data transmission method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311201073.2A CN117041176A (en) 2023-09-15 2023-09-15 Data transmission method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117041176A true CN117041176A (en) 2023-11-10

Family

ID=88631950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311201073.2A Pending CN117041176A (en) 2023-09-15 2023-09-15 Data transmission method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117041176A (en)

Similar Documents

Publication Publication Date Title
JP2021518723A (en) Sidelink transmission method and terminal
CN109151494B (en) Multimedia data transmission method, multimedia acquisition equipment and server
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
US11089539B2 (en) Data processing method, terminal, and base station
US20210014716A1 (en) Method for processing communication range information and terminal
CN110022592B (en) Network access method, mobile terminal and server
CN107992822B (en) Image processing method and apparatus, computer device, computer-readable storage medium
CN108337533B (en) Video compression method and device
US20160142431A1 (en) Session processing method and device, server and storage medium
CN111800794B (en) Method and equipment for determining demodulation reference signal position
US20190132899A1 (en) Direct mode operation communication method and terminal
CN111278124B (en) Resource allocation method, resource determination method, network side equipment and terminal
CN106815077B (en) Data processing method based on intelligent device architecture and intelligent device
CN112888024A (en) Data processing method, data processing device, storage medium and electronic equipment
CN109565645B (en) Multicast service transmission method, terminal, base station and communication system
CN107798008B (en) Content pushing system, method and device
CN106330875B (en) Message display method and device
CN117041176A (en) Data transmission method and device, storage medium and electronic equipment
CN117527771B (en) Audio transmission method and device, storage medium and electronic equipment
CN117545054B (en) UWB communication method, device, storage medium and electronic equipment
CN114245427B (en) Network switching method and device and mobile terminal
CN106358070B (en) Multimedia file uploading method and device
CN110831060A (en) Method and equipment for carrying MAC CE of data packet
CN111405649B (en) Information transmission method and device and mobile terminal
CN112367685B (en) Method, device and mobile terminal for improving NR eMBB service transmission performance

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