CN110677200A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN110677200A
CN110677200A CN201910878232.XA CN201910878232A CN110677200A CN 110677200 A CN110677200 A CN 110677200A CN 201910878232 A CN201910878232 A CN 201910878232A CN 110677200 A CN110677200 A CN 110677200A
Authority
CN
China
Prior art keywords
data packet
sub
data
receiving
sending
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
CN201910878232.XA
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 Wisdom Ocean Science And Technology Co Ltd
Original Assignee
Shenzhen Wisdom Ocean Science And 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 Wisdom Ocean Science And Technology Co Ltd filed Critical Shenzhen Wisdom Ocean Science And Technology Co Ltd
Priority to CN201910878232.XA priority Critical patent/CN110677200A/en
Publication of CN110677200A publication Critical patent/CN110677200A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B13/00Transmission systems characterised by the medium used for transmission, not provided for in groups H04B3/00 - H04B11/00
    • H04B13/02Transmission systems in which the medium consists of the earth or a large mass of water thereon, e.g. earth telegraphy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy

Abstract

The invention provides a data transmission method and a data transmission device, which are applied to a sending end in underwater acoustic communication, wherein the method comprises the following steps: acquiring a current data transmission mode; if the length of the data packet to be sent is not matched with the data transmission mode, generating a plurality of sub data packets according to the data packet to be sent and a preset rule; sending the plurality of sub data packets to a receiving end; receiving reply information sent by the receiving terminal within a first preset time period; and if the reply information indicates that the sub-data packet is completely received, sending the next data packet. The data transmission method can avoid the problem of data loss, and the switching of the data transmission mode is carried out according to the underwater actual environment and the transmission requirement, so that the data transmission efficiency is improved.

Description

Data transmission method and device
Technical Field
The application relates to the technical field of underwater communication, in particular to a data transmission method and device.
Background
The acoustic wave is an energy form capable of carrying out long-distance transmission in a water medium, so that underwater acoustic communication is the most suitable underwater wireless communication mode at present, is a main means for realizing underwater comprehensive information perception and information interaction, and is widely used for ocean development and military application.
Although the sound wave has the advantages of high propagation speed and long propagation distance underwater, the sound wave has the disadvantages of high attenuation, long delay, high packet loss rate, narrow available bandwidth and the like underwater, so that the data delay and data loss frequently occur in underwater sound communication in the prior art during data transmission, and data transmission cannot be adjusted according to the actual underwater environment, so that the transmission efficiency is not high.
Therefore, the problem of data loss frequently occurs in underwater acoustic communication in the prior art during data transmission, data transmission cannot be adjusted according to the underwater actual environment, and transmission efficiency is reduced.
Disclosure of Invention
The data transmission method and the data transmission device provided by the invention can solve the problem that data are frequently lost in the underwater acoustic communication in the prior art, and can not adjust the data transmission according to the underwater actual environment, thereby reducing the transmission efficiency.
In a first aspect, the present invention provides a data transmission method, applied to a sending end in underwater acoustic communication, where the method includes: acquiring a current data transmission mode; if the length of the data packet to be sent is not matched with the data transmission mode, generating a plurality of sub data packets according to the data packet to be sent and a preset rule; sending the plurality of sub data packets to a receiving end; receiving reply information sent by the receiving terminal within a first preset time period; and if the reply information indicates that the sub-data packet is completely received, sending the next data packet.
Preferably, the method further comprises: if the reply information indicates that the sub-data packet is lost, obtaining the lost sub-data packet information; and according to the lost sub-data packet information, retransmitting the lost sub-data packet.
Preferably, if the reply message sent by the receiving end is not received within the first preset time period, the method further includes: and retransmitting all the sub-packets to the receiving end.
Preferably, if the length of the data packet to be transmitted does not match the data transmission mode, generating a plurality of sub data packets according to the data packet to be transmitted and a preset rule, including: splitting the data packet to be sent into a plurality of first subdata segments according to the maximum byte number sent by the current transmission mode; and adding a second sub data segment into each first sub data segment to form the sub data packet, wherein the second sub data segment is information matched with each first sub data segment, and the matched information at least comprises the total number of sub packets, sub packet codes and data packet codes to be sent.
Preferably, the acquiring the current data transmission mode includes: acquiring a current default data transmission mode from the initialized configuration; or/and acquiring the current data transmission mode from the data packet to be transmitted.
In a second aspect, the present invention provides a data transmission method, which is applied to a receiving end in underwater acoustic communication, and the method includes: receiving a plurality of sub data packets sent by a sending end, wherein the sub data packets are generated by the sending end according to a preset rule; storing the plurality of sub data packets into a receiving queue; after receiving the last sub data packet in a second preset time period, judging whether a lost sub data packet exists or not; and if the lost sub data packet does not exist, sending the receiving success information to the sending end.
Preferably, the method further comprises: if the lost sub data packet exists, sending the lost sub data packet information to the sending end, and enabling the sending end to resend the lost sub data packet; and/or if the last sub data packet is not received in a second preset time period, sending lost sub data packet information to the sending end, and enabling the sending end to resend the lost sub data packet.
Preferably, after receiving the plurality of sub packets sent from the sending end, before storing the plurality of sub packets in a receiving queue, the method further includes: judging whether the currently received sub data packet is a repeated data packet; if not, storing the sub data packet into the receiving queue; and if the data packet is repeated, covering the data packet repeated with the data packet in the receiving queue by the sub data packet.
In a third aspect, the present invention provides a data transmission apparatus, applied to a transmitting end in underwater acoustic communication, where the apparatus includes: the acquisition module is used for acquiring the current data transmission mode; the generating module is used for generating a plurality of sub data packets according to the data packet to be sent and a preset rule if the length of the data packet to be sent is not matched with the data transmission mode; the first sending module is used for sending the plurality of sub data packets to a receiving end; the first receiving module is used for receiving reply information sent by the receiving end in a first preset time period; and the second sending module is used for sending the next data packet if the reply information indicates that the sub data packet is completely received.
In a fourth aspect, the present invention provides a data transmission apparatus, which is applied to a receiving end in underwater acoustic communication, and the apparatus includes: a second receiving module, configured to receive multiple subpackets sent from a sending end, where the subpackets are subpackets generated by the sending end according to a preset rule for a data packet to be sent; the storage module is used for storing the plurality of sub data packets into a receiving queue; the judging module is used for judging whether the lost sub data packet exists or not after the last sub data packet is received in a second preset time period; and the third sending module is used for sending the receiving success information to the sending end if the lost sub data packet does not exist.
The invention provides a data transmission method and a data transmission device, which are applied to a sending end in underwater acoustic communication, wherein the method comprises the following steps: acquiring a current data transmission mode; if the length of the data packet to be sent is not matched with the data transmission mode, generating a plurality of sub data packets according to the data packet to be sent and a preset rule; sending the plurality of sub data packets to a receiving end; receiving reply information sent by the receiving terminal within a first preset time period; and if the reply information indicates that the sub-data packet is completely received, sending the next data packet. The data transmission method can unpack and send the user data packet according to the currently used transmission mode, when the length of the sent data packet is not matched with the previously used transmission mode, for example, the length exceeds the number of bytes sent by the currently used transmission mode, the data packet to be sent is split, each split sub-data packet can meet the capacity of sending data in the currently used transmission mode, after receiving the information of receiving completion of the sub-data packet sent by a receiving end within a certain time period, the next data packet is prepared to be sent, the problem of data loss is avoided, the data transmission mode is switched according to the underwater actual environment and the transmission requirement, and the data transmission efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 4 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 5 is a block diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a data transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention; as shown in fig. 1, when the data transmission method in the embodiment of the present invention is applied to a transmitting end in underwater acoustic communication, the method specifically includes the following steps:
step S101, acquiring a current data transmission mode.
Specifically, underwater acoustic communication is realized by the underwater sensor based on a Sealinx structure network protocol stack framework, and SeaLinx is a set of cooperative processes rather than an integral process. The process includes a core module, a modem driver, and a protocol module. The SeaLinx protocol modules classify protocols into four categories: a MAC layer protocol, a network layer protocol, a transport layer protocol and an application layer protocol; the invention provides a reliable data transmission method on a transmission layer, and mainly provides two main functions of unpacking a big data packet and retransmitting a lost packet.
At present, underwater acoustic communication equipment has different transmission modes, the transmission capability of each transmission mode is different, and the mode with stronger data transmission capability indicates that the transmission efficiency is higher, but the requirement on the underwater environment is higher, so that the current data mode can be set or selected according to the current underwater environment and the transmission requirement during data transmission, and the transmitting end in the underwater acoustic communication needs to acquire the current data transmission mode.
Step S102, if the length of the data packet to be sent is not matched with the data transmission mode, a plurality of sub data packets are generated according to the data packet to be sent and a preset rule.
Specifically, the length of a data packet to be sent in an application layer is acquired, whether unpacking sending is needed or not is confirmed according to the transmission capability of the current data transmission mode, and if the length of the data packet is less than or equal to the maximum number of bytes capable of being sent in the current transmission mode, a source data packet is directly sent; and if the length of the data packet is greater than the maximum byte number which can be sent in the current transmission mode, splitting the data packet to be sent so that each split sub-data packet can meet the data sending capability in the currently used sending mode.
Step S103, sending the plurality of sub-packets to a receiving end.
Specifically, the generated sub-packets are sequentially sent to the receiving end.
And step S104, receiving the reply message sent by the receiving end in a first preset time period.
Specifically, the first preset time period is a certain time period after the time when all the sub-packets are sent is finished, and the time period may be set according to an actual situation, for example, within 1 second or within 10 seconds after the time when all the sub-packets are sent, reply information sent by the receiving end needs to be received.
Step S105, if the reply information indicates that the sub-data packet has been received, sending the next data packet.
Specifically, after receiving a plurality of subpackets sent by the sending end, the receiving end needs to analyze and confirm whether correct receiving is completed or not within a certain time period, and sends the received subpacket information to the sending end. If the reply information indicates that the sub-data packets are correctly received, the sending end needs to prepare to send the next data packet, and the receiving end needs to combine all the sub-data packets into the completed data and upload the data to the application layer at the other end, so that the data packets received by the receiving end are complete, and the problem of loss of the sub-data packets is avoided.
The invention provides a data transmission method, which is applied to a sending end in underwater acoustic communication and comprises the following steps: acquiring a current data transmission mode; if the length of the data packet to be sent is not matched with the data transmission mode, generating a plurality of sub data packets according to the data packet to be sent and a preset rule; sending the plurality of sub data packets to a receiving end; receiving reply information sent by the receiving terminal within a first preset time period; and if the reply information indicates that the sub-data packet is completely received, sending the next data packet. The data transmission method can unpack and send the user data packet according to the currently used transmission mode, when the length of the sent data packet is not matched with the previously used transmission mode, for example, the length exceeds the number of bytes sent by the currently used transmission mode, the data packet to be sent is split, each split sub-data packet can meet the capacity of sending data in the currently used transmission mode, after receiving the information of receiving completion of the sub-data packet sent by a receiving end within a certain time period, the next data packet is prepared to be sent, the problem of data loss is avoided, the data transmission mode is switched according to the underwater actual environment and the transmission requirement, and the data transmission efficiency is improved.
Fig. 2 is a flowchart of a data transmission method according to an embodiment of the present invention; as shown in fig. 2, when the data transmission method in the embodiment of the present invention is applied to a transmitting end in underwater acoustic communication, the method further includes the following steps:
step S201, a current data transmission mode is acquired.
Step S202, according to the maximum number of bytes sent in the current transmission mode, splitting the to-be-sent data packet into a plurality of first sub-data segments.
Step S203, adding a second sub data segment in each first sub data segment to form a sub data packet.
Step S204, a plurality of sub-packets are sent to the receiving end.
Step S205, determining whether the reply message sent by the receiving end is received within a first preset time period, if not, performing step S206, and if so, performing step S207.
Step S206, all the sub-packets are retransmitted to the receiving end.
Step S207, determining whether the reply message has a missing sub-packet, if so, executing step S208, and if not, executing step S210.
Step S208, obtaining the lost sub-packet information.
Step S209, resending the lost sub-packets.
Step S210, sending the next data packet, and continuing to execute step S201.
In one embodiment of the invention, different transmission modes of 7 are provided, each mode having a transmission capability as in table 1.
Table 1 ability to transmit data for different transmission modes
Figure BDA0002205050010000071
It should be noted that, after the data packet is split according to the transmission capability of the current transmission mode, each split sub-packet will add a plurality of fields, except for normal data, to indicate the relevant information of the sub-packet, including the sub-packet type, the total packet number, the sub-packet ID, the remaining sub-packet number, the sub-packet length, and the original data packet ID.
For example, the length of the data packet to be sent is 1280 bytes, if the transmission mode 1 is used for data transmission, since the maximum number of bytes sent by the transmission mode 1 is 608 bytes, the original data packet of 1280 bytes needs to be disassembled into at least three sub-packets, and according to the added field information, the data formats of the three sub-packets are: 001 of 3-01-02-500, 001 of 3-02-01-500, and 001 of 3-03-00-280, wherein the first field 3 represents that the total number of the sub-packets is 3; the second field 01 indicates the first sub-packet, 02 indicates the second sub-packet, and 03 indicates the third sub-packet; the third field 02 indicates that the number of remaining sub-packets is 2, 01 indicates that the number of remaining sub-packets is 1, and 00 indicates that the number of remaining sub-packets is 0; the fourth field 500 indicates that the sub-packet length is 500, where the sub-packet length may be the length obtained by splitting the original data packet into data segments, or may be the length obtained by adding all the fields; the fifth field 001 indicates the ID of the original packet.
The field is added after the data packet is split so as to perform retransmission operation when packet loss occurs, after a sender sends a plurality of sub-data packets of one split original data packet each time, the sender waits for ACK reply information of a receiver within a preset time period, wherein the ACK reply information comprises: (1) if the receiver receives all the data packets in sequence, the receiver immediately replies an ACK packet which does not contain any information, and the sender performs the next round of data packet transmission after receiving the ACK packet; (2) if the receiver has the data packet loss condition, the sender is informed of retransmitting some data packets through the ACK packet; and if the ACK reply information of the receiving party is not received within the preset time period, retransmitting all the sub-data packets to the receiving terminal.
In an embodiment of the present invention, the acquiring the current data transmission mode includes: acquiring a current default data transmission mode from the initialized configuration; or/and acquiring the current data transmission mode from the data packet to be transmitted.
Fig. 3 is a flowchart of a data transmission method according to an embodiment of the present invention; as shown in fig. 3, when the data transmission method in the embodiment of the present invention is applied to a receiving end in underwater acoustic communication, the method specifically includes the following steps:
step S301, receiving a plurality of subpackets sent from a sending end, where the subpackets are subpackets generated by the sending end according to a preset rule for a data packet to be sent.
Step S302, storing the plurality of sub-data packets into a receiving queue.
Step S303, after receiving the last subpacket within the second preset time period, determining whether there is a missing subpacket.
Step S304, if there is no missing sub-data packet, sending the receiving success information to the sending end.
Specifically, the sending end splits the data packet into a plurality of sub-data packets according to the manner of the above embodiment, the receiving end sequentially receives the plurality of sub-data packets sent by the sending end and stores the sub-data packets into the receiving queue, according to the identification of the field information in the sub-data packet, judging whether the last sub-data packet is received, because the sending end sequentially sends the sub-packets, theoretically receiving the last sub-packet indicates that the sending end has sent all the sub-packets completely, but actually, the condition of sub-packet loss or mistransmission may exist, after receiving the last sub-packet, it needs to judge whether there is a lost sub-packet, and the judgment can be made according to the number of the sub-packet, and if the lost sub data packet does not exist, sending the information of successful receiving to the sending end, so that the sending end is ready to send the data packet of the next round.
Fig. 4 is a flowchart of a data transmission method according to an embodiment of the present invention; as shown in fig. 4, when the data transmission method in the embodiment of the present invention is applied to a receiving end in underwater acoustic communication, the method further includes the following steps:
step S401, receiving a plurality of subpackets sent from a sending end.
Step S402, determining whether the currently received sub-data packet is a duplicate data packet, if so, performing step S403, and if not, performing step S404.
Step S403, covering the sub data packet with a data packet in the receiving queue that is repeated with the sub data packet.
Step S404, storing the sub data packet into the receiving queue.
Step S405, determining whether the last sub-packet is received within a second preset time period, if yes, executing step S407, and if not, executing step S406.
Step S406, sending the lost sub-packet information to the sending end.
Step 407, determining whether there is a missing sub-packet, if there is a missing sub-packet, executing step 408, and if there is no missing sub-packet, executing step 409.
Step S408, sending the lost sub-packet information to the sending end.
Step S409, sending the receiving success information to the sending end.
Specifically, a receiving end needs to judge whether the sub data packet has repeated data while receiving the sub data packet, and if the sub data packet is the repeated data packet, the repeated data packet can be directly discarded or the sub data packet covers the data packet which is repeated with the sub data packet in the receiving queue; identifying field information in the sub-data packets according to whether the last sub-data packet is received or not and whether the last sub-data packet is received or not in a second preset time period or not, wherein the second preset time period refers to a certain time length after the last sub-data packet is received, so that the last sub-data packet is not received in the certain time length after the last sub-data packet is received, namely, the missing sub-data packet is shown, and then the missing sub-data packet information is sent to the sending end; if the last sub-data packet is judged to be received, whether other lost sub-data packets exist needs to be judged, if the lost sub-data packets exist, the lost sub-data packet information is sent to the sending end, the sending end is enabled to resend the lost sub-data packets, and the integrity of the received data packets is ensured; and if the lost sub data packet does not exist, sending the receiving success information to the sending end, so that the sending end sends the next data packet.
Fig. 5 is a block diagram of a data transmission apparatus according to an embodiment of the present invention; as shown in fig. 4, when the data transmission apparatus provided in the embodiment of the present invention is applied to a transmitting end in underwater acoustic communication, the data transmission apparatus specifically includes:
an obtaining module 510, configured to obtain a current data transmission mode.
A generating module 520, configured to generate a plurality of sub data packets according to the data packet to be sent and a preset rule if the length of the data packet to be sent does not match the data transmission mode.
A first sending module 530, configured to send the multiple subpackets to a receiving end.
The first receiving module 540 is configured to receive the reply message sent by the receiving end within a first preset time period.
A second sending module 550, configured to send a next data packet if the reply information indicates that the sub data packet has been received.
Fig. 6 is a block diagram of a data transmission apparatus according to an embodiment of the present invention; as shown in fig. 6, when the data transmission device provided in the embodiment of the present invention is applied to a receiving end in underwater acoustic communication, the data transmission device specifically includes:
a second receiving module 610, configured to receive multiple subpackets sent from a sending end, where the subpackets are subpackets generated by the sending end according to a preset rule for a data packet to be sent.
A storing module 620, configured to store the multiple sub data packets into a receiving queue.
The determining module 630 is configured to determine whether there is a missing subpacket after receiving the last subpacket within a second preset time period.
A third sending module 640, configured to send a receiving success message to the sending end if there is no missing sub packet.
The invention provides a data transmission method and a data transmission device, which are applied to a sending end in underwater acoustic communication, wherein the method comprises the following steps: acquiring a current data transmission mode; if the length of the data packet to be sent is not matched with the data transmission mode, generating a plurality of sub data packets according to the data packet to be sent and a preset rule; sending the plurality of sub data packets to a receiving end; receiving reply information sent by the receiving terminal within a first preset time period; and if the reply information indicates that the sub-data packet is completely received, sending the next data packet. The data transmission method can unpack and send the user data packet according to the currently used transmission mode, when the length of the sent data packet is not matched with the previously used transmission mode, for example, the length exceeds the number of bytes sent by the currently used transmission mode, the data packet to be sent is split, each split sub-data packet can meet the capacity of sending data in the currently used transmission mode, after receiving the information of receiving completion of the sub-data packet sent by a receiving end within a certain time period, the next data packet is prepared to be sent, the problem of data loss is avoided, the data transmission mode is switched according to the underwater actual environment and the transmission requirement, and the data transmission efficiency is improved.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A data transmission method, applied to a transmitting end in underwater acoustic communication, the method comprising:
acquiring a current data transmission mode;
if the length of the data packet to be sent is not matched with the data transmission mode, generating a plurality of sub data packets according to the data packet to be sent and a preset rule;
sending the plurality of sub data packets to a receiving end;
receiving reply information sent by the receiving terminal within a first preset time period;
and if the reply information indicates that the sub-data packet is completely received, sending the next data packet.
2. The method of claim 1, further comprising:
if the reply information indicates that the sub-data packet is lost, obtaining the lost sub-data packet information;
and according to the lost sub-data packet information, retransmitting the lost sub-data packet.
3. The method of claim 1, wherein if the reply message sent by the receiving end is not received within the first predetermined time period, the method further comprises:
and retransmitting all the sub-packets to the receiving end.
4. The method of claim 1, wherein if the length of the data packet to be transmitted does not match the data transmission mode, generating a plurality of sub data packets according to the data packet to be transmitted and a preset rule, includes:
splitting the data packet to be sent into a plurality of first subdata segments according to the maximum byte number sent by the current transmission mode;
and adding a second sub data segment into each first sub data segment to form the sub data packet, wherein the second sub data segment is information matched with each first sub data segment, and the matched information at least comprises the total number of sub packets, sub packet codes and data packet codes to be sent.
5. The method of claim 1, wherein obtaining the current data transmission mode comprises:
acquiring a current default data transmission mode from the initialized configuration; and/or the first and/or second light sources,
and acquiring the current data transmission mode from the data packet to be transmitted.
6. A data transmission method, applied to a receiving end in underwater acoustic communication, the method comprising:
receiving a plurality of sub data packets sent by a sending end, wherein the sub data packets are generated by the sending end according to a preset rule;
storing the plurality of sub data packets into a receiving queue;
after receiving the last sub data packet in a second preset time period, judging whether a lost sub data packet exists or not;
and if the lost sub data packet does not exist, sending the receiving success information to the sending end.
7. The method of claim 6, further comprising:
if the lost sub data packet exists, sending the lost sub data packet information to the sending end, and enabling the sending end to resend the lost sub data packet; and/or the first and/or second light sources,
and if the last sub-data packet is not received in a second preset time period, sending lost sub-data packet information to the sending end, and enabling the sending end to resend the lost sub-data packet.
8. The method of claim 7, wherein after receiving the plurality of subpackets sent from the sender, and before storing the plurality of subpackets in a receive queue, the method further comprises:
judging whether the currently received sub data packet is a repeated data packet;
if not, storing the sub data packet into the receiving queue;
and if the data packet is repeated, covering the data packet repeated with the data packet in the receiving queue by the sub data packet.
9. A data transmission apparatus, applied to a transmitting end in underwater acoustic communication, the apparatus comprising:
the acquisition module is used for acquiring the current data transmission mode;
the generating module is used for generating a plurality of sub data packets according to the data packet to be sent and a preset rule if the length of the data packet to be sent is not matched with the data transmission mode;
the first sending module is used for sending the plurality of sub data packets to a receiving end;
the first receiving module is used for receiving reply information sent by the receiving end in a first preset time period;
and the second sending module is used for sending the next data packet if the reply information indicates that the sub data packet is completely received.
10. A data transmission apparatus, applied to a receiving end in underwater acoustic communication, the apparatus comprising:
a second receiving module, configured to receive multiple subpackets sent from a sending end, where the subpackets are subpackets generated by the sending end according to a preset rule for a data packet to be sent;
the storage module is used for storing the plurality of sub data packets into a receiving queue;
the judging module is used for judging whether the lost sub data packet exists or not after the last sub data packet is received in a second preset time period;
and the third sending module is used for sending the receiving success information to the sending end if the lost sub data packet does not exist.
CN201910878232.XA 2019-09-17 2019-09-17 Data transmission method and device Pending CN110677200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910878232.XA CN110677200A (en) 2019-09-17 2019-09-17 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910878232.XA CN110677200A (en) 2019-09-17 2019-09-17 Data transmission method and device

Publications (1)

Publication Number Publication Date
CN110677200A true CN110677200A (en) 2020-01-10

Family

ID=69078014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910878232.XA Pending CN110677200A (en) 2019-09-17 2019-09-17 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN110677200A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885564A (en) * 2020-07-03 2020-11-03 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium
CN112867063A (en) * 2020-12-31 2021-05-28 努比亚技术有限公司 Data transmission method, data receiving method, base station and electronic price tag
CN113923656A (en) * 2021-10-18 2022-01-11 深圳市一号楼科技发展有限公司 Anti-interception wireless encryption transmission method and device
CN114337921A (en) * 2021-12-24 2022-04-12 海光信息技术股份有限公司 Data transmission method, data transmission device and related equipment
CN114339850A (en) * 2021-11-30 2022-04-12 浙江三维利普维网络有限公司 Base station data transmission method and device, storage medium and electronic device
CN114615164A (en) * 2022-03-09 2022-06-10 网易(杭州)网络有限公司 Packet loss rate detection method and device, storage medium and electronic equipment
CN115083136A (en) * 2022-06-22 2022-09-20 珠海格力电器股份有限公司 Remote control signal processing method and device, storage medium and controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202604A (en) * 2007-08-14 2008-06-18 深圳市同洲电子股份有限公司 Method, system and equipment for transmitting and receiving network data
CN105245317A (en) * 2015-10-20 2016-01-13 北京小鸟听听科技有限公司 Data transmission method, transmitting end, receiving end and data transmission system
CN107155204A (en) * 2017-07-20 2017-09-12 广东工业大学 The method and system that a kind of bluetooth switches with Wifi
CN107566808A (en) * 2017-09-30 2018-01-09 深圳市智慧海洋科技有限公司 A kind of underwater image transmission method and system based on wireless water sound communication technique
CN109474642A (en) * 2019-01-08 2019-03-15 郑州云海信息技术有限公司 Based on Ethernet udp protocol data transmission method, apparatus, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202604A (en) * 2007-08-14 2008-06-18 深圳市同洲电子股份有限公司 Method, system and equipment for transmitting and receiving network data
CN105245317A (en) * 2015-10-20 2016-01-13 北京小鸟听听科技有限公司 Data transmission method, transmitting end, receiving end and data transmission system
CN107155204A (en) * 2017-07-20 2017-09-12 广东工业大学 The method and system that a kind of bluetooth switches with Wifi
CN107566808A (en) * 2017-09-30 2018-01-09 深圳市智慧海洋科技有限公司 A kind of underwater image transmission method and system based on wireless water sound communication technique
CN109474642A (en) * 2019-01-08 2019-03-15 郑州云海信息技术有限公司 Based on Ethernet udp protocol data transmission method, apparatus, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苏毅珊: "认知水声网络MAC机制与关键技术研究", 《中国博士学位论文全文数据库 信息科技辑》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885564A (en) * 2020-07-03 2020-11-03 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium
CN111885564B (en) * 2020-07-03 2024-03-22 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium
CN112867063A (en) * 2020-12-31 2021-05-28 努比亚技术有限公司 Data transmission method, data receiving method, base station and electronic price tag
CN113923656A (en) * 2021-10-18 2022-01-11 深圳市一号楼科技发展有限公司 Anti-interception wireless encryption transmission method and device
CN113923656B (en) * 2021-10-18 2023-11-10 深圳市一号楼科技发展有限公司 Interception-preventing wireless encryption transmission method and apparatus
CN114339850A (en) * 2021-11-30 2022-04-12 浙江三维利普维网络有限公司 Base station data transmission method and device, storage medium and electronic device
CN114339850B (en) * 2021-11-30 2023-08-25 浙江三维利普维网络有限公司 Base station data transmission method and device, storage medium and electronic device
CN114337921A (en) * 2021-12-24 2022-04-12 海光信息技术股份有限公司 Data transmission method, data transmission device and related equipment
CN114337921B (en) * 2021-12-24 2024-01-19 海光信息技术股份有限公司 Data transmission method, data transmission device and related equipment
CN114615164A (en) * 2022-03-09 2022-06-10 网易(杭州)网络有限公司 Packet loss rate detection method and device, storage medium and electronic equipment
CN114615164B (en) * 2022-03-09 2023-12-29 网易(杭州)网络有限公司 Packet loss rate detection method and device, storage medium and electronic equipment
CN115083136A (en) * 2022-06-22 2022-09-20 珠海格力电器股份有限公司 Remote control signal processing method and device, storage medium and controller

Similar Documents

Publication Publication Date Title
CN110677200A (en) Data transmission method and device
JP4510104B2 (en) Wireless packet communication method and wireless packet communication device
CN102685204B (en) Method and equipment for transmitting data resource
CN106330414B (en) Message transmission method and device
JP3914558B2 (en) Wireless packet communication method
RU2460218C2 (en) Status report method in wireless communication system
CN102217258B (en) Detection processing method, data sending terminal, data receiver and communication system
CN103269260A (en) Data transmission method, data receiving terminal, data sending terminal and data transmission system
CN107682434B (en) Underwater sensor network architecture and implementation method thereof
RU2460214C2 (en) Status message initiation in wireless communication system
CN101931514B (en) Communication method, system and equipment for hybrid automatic repeat request
CN109150421A (en) A kind of method and terminal device of repetition transmission
CN103607264A (en) 3G network-based in-band data transmission method
CN111431672A (en) Data retransmission method and device, storage medium and electronic device
WO2022083371A1 (en) Data transmission method and device
CN107548104B (en) Data transmission method, access point and station
JP5609443B2 (en) Apparatus and method for performing retransmission control
WO2017067224A1 (en) Packet processing method and apparatus
WO2015077960A1 (en) Transmission method and device for data packet
CN108667563A (en) A kind of forward error correction packet number acquisition methods and device
CN116963175A (en) Data transmission method, device and system
JPH1070523A (en) Method and equipment for packet transmission
CN113115365A (en) Data packet transmission method based on LoRaWAN communication protocol
US20180139013A1 (en) Method, User Equipment, and Base Station for Transmitting Data
WO2007020944A1 (en) Short distance wireless communication apparatus, short distance wireless communication method and program

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200110

RJ01 Rejection of invention patent application after publication