Search

CN-119402913-B - Wireless transmission method, wireless transmission device, electronic equipment and computer readable storage medium

CN119402913BCN 119402913 BCN119402913 BCN 119402913BCN-119402913-B

Abstract

The embodiment of the application discloses a wireless transmission method, a wireless transmission device, electronic equipment and a computer readable storage medium, wherein the method comprises the steps of acquiring the current wireless transmission quality at a target connection interval; and determining the target number of data packets to be transmitted in the target connection interval according to the current wireless transmission quality and the target connection interval, and transmitting the data packets with the target number in the target connection interval. Therefore, the number of the data packets transmitted at the connection interval is reasonable, and the wireless transmission efficiency is improved.

Inventors

  • ZHU FENG
  • ZENG QINGZHONG

Assignees

  • 深圳TCL新技术有限公司

Dates

Publication Date
20260512
Application Date
20241028

Claims (14)

  1. 1. A method of wireless transmission, applied to a first device, comprising: After the first equipment and the second equipment are in wireless connection, acquiring the current wireless transmission quality at a target connection interval; Determining the target quantity of data packets to be transmitted in the target connection interval according to the current wireless transmission quality and the target connection interval; transmitting the target number of data packets to the second device at the target connection interval; The determining, according to the current wireless transmission quality and the target connection interval, a target number of data packets to be transmitted in the target connection interval includes: determining the time length required for transmitting the target data packet under the current wireless transmission quality according to the data quantity of the target data packet, wherein the target data packet is the data packet with the largest data quantity in each data packet to be transmitted or is a virtual data packet determined according to the data quantity of each data packet to be transmitted; And determining the quotient of the target connection interval and the time length required for transmitting the target data packet under the current wireless transmission quality as the target quantity.
  2. 2. The method of claim 1, wherein after the determining the target number of data packets to be transmitted in the target connection interval, the method further comprises: And adjusting the data packet fields of the first packet data packet according to the target number to obtain a first field, wherein the first field is used for notifying a second device to send the number of the test data packets at the target connection interval to be the target number.
  3. 3. The method according to claim 1, wherein the method further comprises: Determining the number of omitted packets according to the target number; according to the omitted number of the back packets, adjusting the data packet field of the first packet data packet to obtain a second field; the second field is used for notifying the second equipment to reduce the sending test data packet according to the omitted packet number; the transmitting the target number of data packets at the target connection interval includes: transmitting the data packets with the omitted number of the back packets to the second device in the target connection interval; And after the data packets with the omitted number of the back packets are sent, receiving the test data packets sent by the second equipment according to the second field.
  4. 4. The method according to claim 1, wherein the method further comprises: determining a predetermined number of receptions based on the target number; According to the preset receiving quantity, the data packet field of the first packet data packet is adjusted to obtain a third field, wherein the third field is used for notifying the second equipment that the quantity of continuously received data packets is the preset receiving quantity; the transmitting the target number of data packets at the target connection interval includes: Continuously transmitting data packets with the number of the preset receiving number to the second equipment in the target connection interval; and after continuously transmitting the data packets with the preset receiving quantity, receiving the test data packets transmitted by the second equipment according to the third field.
  5. 5. The method according to claim 4, wherein the method further comprises: Determining a connection interval adjustment amount according to the preset receiving quantity corresponding to the target connection interval; And determining the next connection interval according to the target connection interval and the connection interval adjustment quantity.
  6. 6. The method according to any one of claims 1 to 5, wherein determining the target number of data packets to be transmitted in the target connection interval according to the current wireless transmission quality and the target connection interval comprises: Determining the time length required for transmitting the target data packet under the current wireless transmission quality; And determining the target number of the data packets to be transmitted in the target connection interval according to the target connection interval and the duration.
  7. 7. A method of wireless transmission, applied to a second device, comprising: After the first equipment and the second equipment are in wireless connection, a first packet data packet sent by the first equipment at a target connection interval is received; analyzing a target field in the first packet of data packet to determine a target number, wherein the target number is the number of data packets to be transmitted in the target connection interval determined according to the current wireless transmission quality and the target connection interval; Receiving the data packets transmitted by the first device according to the target quantity at the target connection interval; The determining of the number of the data packets to be transmitted in the target connection interval includes: determining the time length required for transmitting the target data packet under the current wireless transmission quality according to the data quantity of the target data packet, wherein the target data packet is the data packet with the largest data quantity in each data packet to be transmitted or is a virtual data packet determined according to the data quantity of each data packet to be transmitted; And determining the quotient of the target connection interval and the time length required for transmitting the target data packet under the current wireless transmission quality as the target quantity.
  8. 8. The method of claim 7, wherein the destination field is configured to notify a second device that the number of test packets sent at the destination connection interval is the destination number, and wherein the method further comprises: And sending test data packets at the target connection intervals according to the target quantity.
  9. 9. The method of claim 7, wherein the target field is used to inform the second device to reduce sending test data packets by an omitted number of packets, the omitted number of packets being determined based on the target number; the method further comprises the steps of: determining, according to the target field, to reduce the number of sending the test data packets to the omitted number of packets; And in the target connection interval, after receiving the data packets with the omitted number of the back packets sent by the first device, sending test data packets to the first device.
  10. 10. The method of claim 7, wherein the target field is used to inform the second device that the number of consecutively received data packets is a predetermined number of receptions, the predetermined number of receptions being determined based on the target number; the method further comprises the steps of: Determining the number of the continuously received data packets as the preset receiving number according to the target field; and in the target connection interval, after receiving the data packets with the preset receiving quantity, which are continuously transmitted by the first equipment, transmitting test data packets to the first equipment.
  11. 11. A wireless transmission apparatus, for use with a first device, comprising: The acquisition module is used for acquiring the current wireless transmission quality at a target connection interval after the first equipment and the second equipment are in wireless connection; the determining module is used for determining the target quantity of the data packets to be transmitted in the target connection interval according to the current wireless transmission quality and the target connection interval; a transmission module, configured to transmit the target number of data packets to the second device at the target connection interval; The determining module is specifically configured to: determining the time length required for transmitting the target data packet under the current wireless transmission quality according to the data quantity of the target data packet, wherein the target data packet is the data packet with the largest data quantity in each data packet to be transmitted or is a virtual data packet determined according to the data quantity of each data packet to be transmitted; And determining the quotient of the target connection interval and the time length required for transmitting the target data packet under the current wireless transmission quality as the target quantity.
  12. 12. A wireless transmission apparatus for use with a second device, comprising: The first receiving module is used for receiving a first packet data packet sent by the first equipment at a target connection interval after the first equipment and the second equipment are in wireless connection; The analyzing module is used for analyzing the first packet data packet and determining the target quantity, wherein the target quantity is the quantity of the data packets to be transmitted in the target connection interval determined according to the current wireless transmission quality and the target connection interval; the second receiving module is used for receiving the data packets transmitted by the first equipment according to the target quantity at the target connection interval; The determining of the number of the data packets to be transmitted in the target connection interval includes: determining the time length required for transmitting the target data packet under the current wireless transmission quality according to the data quantity of the target data packet, wherein the target data packet is the data packet with the largest data quantity in each data packet to be transmitted or is a virtual data packet determined according to the data quantity of each data packet to be transmitted; And determining the quotient of the target connection interval and the time length required for transmitting the target data packet under the current wireless transmission quality as the target quantity.
  13. 13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the wireless transmission method according to any one of claims 1 to 10 when the computer program is executed.
  14. 14. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the wireless transmission method according to any of claims 1 to 10.

Description

Wireless transmission method, wireless transmission device, electronic equipment and computer readable storage medium Technical Field The embodiment of the application relates to the technical field of wireless transmission, in particular to a wireless transmission method, a wireless transmission device, electronic equipment and a computer readable storage medium. Background The wireless transmission gets rid of the wired constraint, and the user experience is greatly improved. The wireless transmission performs data interaction at each connection interval, the number of data packets transmitted at each connection interval is determined by a plurality of factors such as equipment design and application requirements, the number of data packets transmitted at each connection interval is difficult to ensure, and as shown in fig. 1, only one data packet may be transmitted at one connection interval in some cases, so that the data transmission efficiency is greatly limited. Disclosure of Invention The embodiment of the application provides a wireless transmission method, a wireless transmission device, electronic equipment and a computer readable storage medium, which can ensure that enough data packets are transmitted at a connection interval. In a first aspect, an embodiment of the present application provides a wireless transmission method, which is applied to a first device, including: acquiring current wireless transmission quality at a target connection interval; Determining a target number of data packets to be transmitted in the target connection interval according to the current wireless transmission quality and the target connection interval; and transmitting the data packets with the target number at the target connection interval. In one embodiment, after the determining the target number of data packets to be transmitted in the target connection interval, the method further includes: And adjusting the data packet fields of the first packet data packet according to the target number to obtain a first field, wherein the first field is used for notifying a second device to send the number of the test data packets at the target connection interval to be the target number. In one embodiment, the method further comprises: Determining the number of omitted packets according to the target number; according to the omitted number of the back packets, adjusting the data packet field of the first packet data packet to obtain a second field; the second field is used for notifying the second equipment to reduce the sending test data packet according to the omitted packet number; the transmitting the target number of data packets at the target connection interval includes: transmitting the data packets with the omitted number of the back packets to the second device in the target connection interval; And after the data packets with the omitted number of the back packets are sent, receiving the test data packets sent by the second equipment according to the second field. In one embodiment, the method further comprises: determining a predetermined number of receptions based on the target number; According to the preset receiving quantity, the data packet field of the first packet data packet is adjusted to obtain a third field, wherein the third field is used for notifying the second equipment that the quantity of continuously received data packets is the preset receiving quantity; the transmitting the target number of data packets at the target connection interval includes: Continuously transmitting data packets with the number of the preset receiving number to the second equipment in the target connection interval; and after continuously transmitting the data packets with the preset receiving quantity, receiving the test data packets transmitted by the second equipment according to the third field. In one embodiment, the method further comprises: Determining a connection interval adjustment amount according to the preset receiving quantity corresponding to the target connection interval; And determining the next connection interval according to the target connection interval and the connection interval adjustment quantity. In one embodiment, the determining, according to the current wireless transmission quality and the target connection interval, the target number of data packets to be transmitted in the target connection interval includes: Determining the time length required for transmitting the target data packet under the current wireless transmission quality; And determining the target number of the data packets to be transmitted in the target connection interval according to the target connection interval and the duration. In a second aspect, an embodiment of the present application provides a wireless transmission method, which is applied to a second device, including: receiving a first packet data packet sent by first equipment at a target connection interval; Analyzing a target field in the first packet