Data transmission method and device and storage medium
View Patent ↗A data transmission method and device and a storage medium are provided. The method comprises: in a process of triggering a blind retransmission mechanism, obtaining retransmission times circularly ( 101 ); and when the retransmission times are less than a preset retransmission times threshold, retransmitting data to a receiving terminal and updating the retransmission times ( 102 ).
1 . A data transmission method applied to a mobile terminal, comprising:
in a process of triggering a blind retransmission mechanism, obtaining retransmission times circularly; and
when the retransmission times are less than a preset retransmission time threshold, retransmitting data to a receiving terminal and updating the retransmission times, so as to limit the retransmission times of the data through updating the retransmission times;
wherein a retransmission is triggered when the retransmission times are less than the preset retransmission time threshold;
wherein the mobile terminal sets a counter having an initial value of 0 for calculating blind retransmission times, and the counter is increased by 1 each time the mobile terminal performs a blind retransmission, such that the mobile terminal stops retransmitting when the counter reaches the preset retransmission time threshold; and
wherein the mobile terminal obtains current retransmission times when triggering the blind retransmission mechanism, calculates remaining retransmission times according to the current retransmission times and the preset retransmission time threshold, and performs retransmissions according to the remaining retransmission times;
wherein the retransmission times include the blind retransmission times and Hybrid Automatic Repeat Request (HARQ) retransmission times, and the retransmission time threshold includes a blind retransmission time threshold and an HARQ retransmission time threshold; and
when the retransmission times are less than the preset retransmission time threshold, retransmitting the data to the receiving terminal and updating the retransmission times comprises:
when the blind retransmission times are less than the blind retransmission time threshold, and a sum of the blind retransmission times and the HARQ retransmission times is less than the HARQ retransmission time threshold, retransmitting the data to the receiving terminal and updating the blind retransmission times.
2 . The data transmission method as claimed in claim 1 , wherein the method further comprises:
detecting a communication distance between the mobile terminal and the receiving terminal in real time; and
when it is detected that the communication distance is greater than a preset communication distance threshold, triggering the blind retransmission mechanism.
3 . The data transmission method as claimed in claim 1 , wherein the method further comprises:
when the blind retransmission times are not less than the blind retransmission time threshold, or the sum of the blind retransmission times and the HARQ retransmission times is not less than the HARQ retransmission time threshold, stopping the retransmitting of the data to the receiving terminal.
4 . The data transmission method as claimed in claim 1 , wherein an initial value of the blind retransmission times is 0; and
updating the blind retransmission times comprises:
increasing the blind retransmission times by 1.
5 . The data transmission method as claimed in claim 1 ,
wherein the retransmission times include blind retransmission times, and the retransmission time threshold includes a blind retransmission time threshold; and
when the retransmission times are less than the preset retransmission time threshold, retransmitting the data to the receiving terminal and updating the retransmission times comprises:
when the blind retransmission times are less than the blind retransmission time threshold, retransmitting the data to the receiving terminal and updating the blind retransmission times.
6 . The data transmission method as claimed in claim 5 ,
wherein the method further comprises:
when the blind retransmission times are not less than the blind retransmission time threshold, stopping the retransmitting of the data to the receiving terminal.
7 . The data transmission method as claimed in claim 5 ,
wherein an initial value of the blind retransmission times is 0; and
updating the blind retransmission times comprises:
increasing the blind retransmission times by 1.
8 . The data transmission method as claimed in claim 1 , wherein if the remaining retransmission times are determined as greater than one, the mobile terminal performs the retransmissions sequentially with the same data for each retransmission.
9 . A non-transitory computer-readable storage medium storing a plurality of instructions, and the instructions are suitable to be loaded by a processor to perform following operations:
in a process of triggering a blind retransmission mechanism, obtaining retransmission times circularly; and
when the retransmission times are less than a preset retransmission time threshold, retransmitting data to a receiving terminal and updating the retransmission times, so as to limit the retransmission times of the data through updating the retransmission times;
wherein a retransmission is triggered when the retransmission times are less than the preset retransmission time threshold;
wherein the instructions further cause the processor to set a counter having an initial value of 0 for calculating blind retransmission times, and to increase the counter by 1 each time the mobile terminal performs a blind retransmission, such that retransmitting is stopped when the counter reaches the preset retransmission time threshold; and
wherein the instructions further cause the processor to obtain current retransmission times when triggering the blind retransmission mechanism, calculate remaining retransmission times according to the current retransmission times and the preset retransmission time threshold, and perform retransmissions according to the remaining retransmission times;
wherein the retransmission times include the blind retransmission times and Hybrid Automatic Repeat Request (HARQ) retransmission times, and the retransmission time threshold includes a blind retransmission time threshold and an HARQ retransmission time threshold; and
when the retransmission times are less than the preset retransmission time threshold, retransmitting the data to the receiving terminal and updating the retransmission times comprises:
when the blind retransmission times are less than the blind retransmission time threshold, and a sum of the blind retransmission times and the HARQ retransmission times is less than the HARQ retransmission time threshold, retransmitting the data to the receiving terminal and updating the blind retransmission times.
10 . The non-transitory computer-readable storage medium as claimed in claim 9 , wherein the instructions are suitable to be loaded by the processor to further perform following operations:
detecting a communication distance between a mobile terminal and the receiving terminal in real time; and
when it is detected that the communication distance is greater than a preset communication distance threshold, triggering the blind retransmission mechanism.
11 . The non-transitory computer-readable storage medium as claimed in claim 9 , wherein the instructions are suitable to be loaded by the processor to further perform following operations:
when the blind retransmission times are not less than the blind retransmission time threshold, or the sum of the blind retransmission times and the HARQ retransmission times is not less than the HARQ retransmission time threshold, stopping the retransmitting of the data to the receiving terminal.
12 . The non-transitory computer-readable storage medium as claimed in claim 9 , wherein an initial value of the blind retransmission times is 0; and
updating the blind retransmission times comprises:
increasing the blind retransmission times by 1.
13 . A mobile terminal, comprising:
a memory storing one or more programs; and
a processor connected with the memory and configured to perform following operations by running the one or more programs stored in the memory:
in a process of triggering a blind retransmission mechanism, obtaining retransmission times circularly; and
when the retransmission times are less than a preset retransmission time threshold, retransmitting data to a receiving terminal and updating the retransmission times, so as to limit the retransmission times of the data through updating the retransmission times;
wherein a retransmission is triggered when the retransmission times are less than the preset retransmission time threshold;
wherein the processor is further configured to set a counter having an initial value of 0 for calculating blind retransmission times, and to increase the counter by 1 each time the mobile terminal performs a blind retransmission, such that retransmitting is stopped when the counter reaches the preset retransmission time threshold; and
wherein the processor is further configured to obtain current retransmission times when triggering the blind retransmission mechanism, calculate remaining retransmission times according to the current retransmission times and the preset retransmission time threshold, and perform retransmissions according to the remaining retransmission times;
wherein the retransmission times include the blind retransmission times and Hybrid Automatic Repeat Request (HARQ) retransmission times, and the retransmission time threshold includes a blind retransmission time threshold and a HARQ retransmission time threshold; and
when the retransmission times are less than the preset retransmission time threshold, retransmitting the data to the receiving terminal and updating the retransmission times comprises:
when the blind retransmission times are less than the blind retransmission time threshold, and a sum of the blind retransmission times and the HARQ retransmission times is less than the HARQ retransmission time threshold, retransmitting the data to the receiving terminal and updating the blind retransmission times.
14 . The mobile terminal as claimed in claim 13 , wherein the processor is further configured to perform following operations by running the one or more programs stored in the memory:
detecting a communication distance between the mobile terminal and the receiving terminal in real time; and
when it is detected that the communication distance is greater than a preset communication distance threshold, triggering the blind retransmission mechanism.
15 . The mobile terminal as claimed in claim 13 , wherein the processor is further configured to perform following operations by running the one or more programs stored in the memory:
when the blind retransmission times are not less than the blind retransmission time threshold, or the sum of the blind retransmission times and the HARQ retransmission times is not less than the HARQ retransmission time threshold, stopping the retransmitting of the data to the receiving terminal.
16 . The mobile terminal as claimed in claim 13 , wherein an initial value of the blind retransmission times is 0; and
updating the blind retransmission times comprises:
increasing the blind retransmission times by 1.