Wireless transmission method and device, electronic equipment and computer readable storage medium

By determining the target number of data packets based on the current wireless transmission quality and target connection interval, the problem of difficult to guarantee the number of data packets in wireless transmission is solved, and the data transmission efficiency is improved.

CN119402913AActive Publication Date: 2025-02-07SHENZHEN TCL NEW-TECH CO LTD

Patent Information

Application Number
CN202411514060.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-07
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

During wireless transmission, the number of data packets transmitted in the connection interval is difficult to guarantee, resulting in inefficient data transmission.

Method used

By obtaining the current wireless transmission quality and the target connection interval, the number of packets to be transmitted is determined, and the target number of packets is transmitted in the target connection interval.

Benefits of technology

It effectively ensures that sufficient data packets can be transmitted in the connection interval and improves data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402913A_ABST
    Figure CN119402913A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a wireless transmission method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining the 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 target number of data packets at the target connection interval. According to the scheme, the number of the data packets transmitted at the connection interval is relatively reasonable, so that the wireless transmission efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of wireless transmission technology, and specifically to a wireless transmission method, device, electronic device, and computer-readable storage medium. Background Art

[0002] Wireless transmission gets rid of the constraints of wired connections, greatly improving the user experience. Wireless transmission performs data exchange in each connection interval. The number of data packets transmitted in each connection interval is determined by multiple factors such as device design and application requirements. The number of data packets transmitted in each connection interval is difficult to guarantee; Figure 1 As shown, sometimes only one data packet may be transmitted in one connection interval, which greatly limits the data transmission efficiency. Summary of the invention

[0003] The embodiments of the present application provide a wireless transmission method, device, electronic device and computer-readable storage medium, which can ensure that there are enough data packets for transmission during the connection interval.

[0004] In a first aspect, an embodiment of the present application provides a wireless transmission method, which is applied to a first device, including:

[0005] In the target connection interval, obtain the current wireless transmission quality;

[0006] 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;

[0007] During the target connection interval, the target number of data packets are transmitted.

[0008] In one of the embodiments, after determining the target number of data packets to be transmitted in the target connection interval, the method further comprises:

[0009] According to the target number, the data packet field of the first data packet is adjusted to obtain a first field; the first field is used to: notify the second device that the number of test data packets sent in the target connection interval is the target number.

[0010] In one embodiment, the method further comprises:

[0011] According to the target quantity, determine the number of omitted return packets;

[0012] According to the omitted return packet number, the data packet field of the first data packet is adjusted to obtain a second field; the second field is used to: notify the second device to reduce the number of test data packets sent according to the omitted return packet number;

[0013] The transmitting the target number of data packets at the target connection interval comprises:

[0014] In the target connection interval, sending the data packet with the number of returned packets omitted to the second device;

[0015] After sending the data packet with the number of returned packets omitted, receiving a test data packet sent by the second device according to the second field.

[0016] In one embodiment, the method further comprises:

[0017] Determining a predetermined receiving quantity according to the target quantity;

[0018] According to the predetermined receiving quantity, adjusting the data packet field of the first data packet to obtain a third field; the third field is used to: notify the second device that the number of continuously received data packets is the predetermined receiving quantity;

[0019] The transmitting the target number of data packets at the target connection interval comprises:

[0020] In the target connection interval, continuously sending to the second device a number of data packets equal to the predetermined number of received packets;

[0021] After continuously sending the predetermined number of received data packets, a test data packet sent by the second device according to the third field is received.

[0022] In one embodiment, the method further comprises:

[0023] Determining a connection interval adjustment amount according to a predetermined number of receptions corresponding to the target connection interval;

[0024] A next connection interval is determined according to the target connection interval and the connection interval adjustment amount.

[0025] In one of the embodiments, 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 includes:

[0026] Determine the time required to transmit the target data packet under the current wireless transmission quality;

[0027] According to the target connection interval and the duration, a target number of data packets to be transmitted in the target connection interval is determined.

[0028] In a second aspect, an embodiment of the present application provides a wireless transmission method, which is applied to a second device, including:

[0029] receiving a first data packet sent by a first device in a target connection interval;

[0030] Parsing the target field in the first data packet to determine a target quantity; the target quantity 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;

[0031] During the target connection interval, data packets transmitted by the first device are received according to the target quantity.

[0032] In one embodiment, the target field is used to: notify the second device that the number of test data packets sent in the target connection interval is the target number; the method further includes:

[0033] According to the target number, test data packets are sent at the target connection interval.

[0034] In one embodiment, the target field is used to: notify the second device to reduce the number of test data packets to be sent according to the number of omitted return packets; the number of omitted return packets is determined according to the target number;

[0035] The method further comprises:

[0036] According to the target field, determining to reduce the number of the test data packets to be sent to be the number of omitted return packets;

[0037] In the target connection interval, after receiving the data packet with the number of returned packets omitted sent by the first device, a test data packet is sent to the first device.

[0038] In one of the embodiments, the target field is used to: notify the second device that the number of consecutively received data packets is a predetermined receiving number; the predetermined receiving number is determined according to the target number;

[0039] The method further comprises:

[0040] According to the target field, determining the number of continuously received data packets to be the predetermined number of received packets;

[0041] In the target connection interval, after receiving the predetermined number of data packets continuously sent by the first device, a test data packet is sent to the first device.

[0042] In a third aspect, an embodiment of the present application provides a wireless transmission device, applied to a first device, including:

[0043] An acquisition module, used to obtain the current wireless transmission quality at a target connection interval;

[0044] A determination module, configured to determine 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;

[0045] The transmission module is used to transmit the target number of data packets in the target connection interval.

[0046] In one of the embodiments, after determining the target number of data packets to be transmitted in the target connection interval, the apparatus further comprises:

[0047] The first adjustment module is used to adjust the data packet field of the first data packet according to the target number to obtain a first field; the first field is used to: notify the second device to send the target number of test data packets in the target connection interval.

[0048] In one embodiment, the device further comprises:

[0049] An omission determination module, used to determine the number of omitted return packets according to the target number;

[0050] A second adjustment module is used to adjust the data packet field of the first data packet according to the number of omitted return packets to obtain a second field; the second field is used to: notify the second device to reduce the number of test data packets sent according to the number of omitted return packets;

[0051] The transmission module comprises:

[0052] A first sending unit, configured to send the data packet with the number of returned packets omitted to the second device in the target connection interval;

[0053] The first receiving unit is configured to receive a test data packet sent by the second device according to the second field after sending the data packet with the number of return packets omitted.

[0054] In one embodiment, the device further comprises:

[0055] A reservation determination module, used to determine a predetermined receiving quantity according to the target quantity;

[0056] A third adjustment module is used to adjust the data packet field of the first data packet according to the predetermined receiving quantity to obtain a third field; the third field is used to: notify the second device that the number of continuously received data packets is the predetermined receiving quantity;

[0057] The transmission module comprises:

[0058] A second sending unit, configured to continuously send data packets having a number equal to the predetermined receiving number to the second device during the target connection interval;

[0059] The second receiving unit is configured to receive a test data packet sent by the second device according to the third field after continuously sending the predetermined number of received data packets.

[0060] In one embodiment, the device further comprises:

[0061] An adjustment amount determination module, configured to determine a connection interval adjustment amount according to a predetermined number of receptions corresponding to the target connection interval;

[0062] The interval determination module is used to determine a next target connection interval according to the target connection interval and the connection interval adjustment amount.

[0063] In one embodiment, the determining module includes:

[0064] A duration determination unit, used to determine the duration required to transmit a target data packet under the current wireless transmission quality;

[0065] A quantity determination unit is used to determine a target quantity of data packets to be transmitted in the target connection interval according to the target connection interval and the duration.

[0066] In a fourth aspect, an embodiment of the present application provides a wireless transmission device, applied to a second device, including:

[0067] A first receiving module, configured to receive a first data packet sent by a first device in a target connection interval;

[0068] A parsing module, configured to parse the first data packet to determine a target quantity; the target quantity is: the quantity of data packets to be transmitted in the target connection interval determined according to the current wireless transmission quality and the target connection interval;

[0069] The second receiving module is used to receive the data packets transmitted by the first device according to the target quantity during the target connection interval.

[0070] In one embodiment, the target field is used to: notify the second device that the number of test data packets sent in the target connection interval is the target number; the apparatus further includes:

[0071] The test sending module is used to send test data packets at the target connection interval according to the target quantity.

[0072] In one embodiment, the target field is used to: notify the second device to reduce the number of test data packets to be sent according to the number of omitted return packets; the number of omitted return packets is determined according to the target number;

[0073] The device also includes:

[0074] An omitted return packet number determination module, used for determining, according to the target field, to reduce the number of the test data packets to be sent as the omitted return packet number;

[0075] The first test data packet sending module is used to send a test data packet to the first device after receiving the data packet with the number of returned packets omitted sent by the first device in the target connection interval.

[0076] In one of the embodiments, the target field is used to: notify the second device that the number of consecutively received data packets is a predetermined receiving number; the predetermined receiving number is determined according to the target number;

[0077] The device also includes:

[0078] A predetermined receiving quantity determining module, used for determining the number of continuously received data packets as the predetermined receiving quantity according to the target field;

[0079] The test data packet second sending module is used to send a test data packet to the first device after receiving the predetermined number of data packets continuously sent by the first device in the target connection interval.

[0080] In a fifth aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the above-mentioned wireless transmission method when executed by the processor.

[0081] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned wireless transmission method are implemented.

[0082] In a seventh aspect, the embodiments of the present application further provide a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various optional implementations described in the embodiments of the present application.

[0083] In summary, in the embodiments of the present application, the target number of data packets to be transmitted in the target connection interval can be determined based on the current wireless transmission quality and the target connection interval, and then the target number of data packets are transmitted in the target connection interval, effectively ensuring that sufficient data packets can be transmitted in the target connection interval, thereby improving data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0085] Figure 1 It is a schematic diagram of interaction for wireless transmission in related technologies;

[0086] Figure 2 is a schematic diagram of a scenario of a wireless transmission method provided by an embodiment of the present application;

[0087] Figure 3 It is a schematic diagram of the steps of a wireless transmission method provided by an embodiment of the present application;

[0088] Figure 4 It is a schematic diagram of the steps of a wireless transmission method provided by an embodiment of the present application;

[0089] Figure 5 It is a flowchart of a wireless transmission method provided by an embodiment of the present application;

[0090] Figure 6 It is a schematic diagram of the steps of a wireless transmission method provided by an embodiment of the present application;

[0091] Figure 7 It is a flowchart of a wireless transmission method provided by an embodiment of the present application;

[0092] Figure 8 It is a schematic diagram of the steps of a wireless transmission method provided by an embodiment of the present application;

[0093] Fig. 9 It is a flowchart of a wireless transmission method provided by an embodiment of the present application;

[0094] Fig.10 It is a schematic diagram of the steps of a wireless transmission method provided by an embodiment of the present application;

[0095] Fig.11 It is a schematic diagram of the steps of a wireless transmission method provided by an embodiment of the present application;

[0096] Fig.12 It is a schematic diagram of the steps of a wireless transmission method provided by an embodiment of the present application;

[0097] Fig.13 It is a schematic diagram of the steps of a wireless transmission method provided by an embodiment of the present application;

[0098] Fig.14 is a structural schematic diagram of a wireless transmission device provided by an embodiment of the present application;

[0099] Fig.15 is a structural schematic diagram of a wireless transmission device provided by an embodiment of the present application;

[0100] Fig.16 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0101] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0102] See also Figure 2 , Figure 2 1 is a schematic diagram of a wireless transmission method provided in an embodiment of the present application, wherein the first device and the second device are devices for wireless transmission, wherein the first device may be multiple. The wireless transmission between the first device and the second device may be implemented based on wireless transmission technologies such as Star Flash technology or Bluetooth technology.

[0103] In one embodiment, the first device is a slave device (Slave), and the second device is a master device (Master). The master device has initiative and control rights, and can actively initiate requests and control the slave device to complete tasks. The master device is responsible for initiating communication requests, managing communication processes, and can actively control the slave device to perform corresponding tasks. The slave device refers to a device that accepts requests from the master device and completes corresponding tasks according to the request. The slave device responds to the request of the master device and performs corresponding operations. In the computer field, the master device can be a computer, and the corresponding slave device can be a printer or scanner managed by the computer; in the mobile phone field, the master device can be a mobile phone, and the corresponding slave device can be a headset or a smart watch.

[0104] In one embodiment, the identities of the first device and the second device can be interchanged, and bidirectional data interaction can be performed between the first device and the second device.

[0105] In one embodiment, for example, in Bluetooth communication, each RF transceiver is assigned a unique address, and after a wireless connection is established, one of the Bluetooth devices is selected as a master device, and the others are called slave devices.

[0106] The first device sends a data packet to the second device, and the second device sends a test data packet to the first device, as required by the protocol or to confirm reliable data transmission. In one embodiment, the second device first sends a test data packet to the first device each time, and the first device receives the test data packet to prove that the wireless transmission link is reliable, so the first device sends a data packet to the second device. In another embodiment, the first device sends a data packet to the second device, and after the second device receives the data packet, it sends a test data packet to the first device to inform the first device that the second device has received the data packet.

[0107] The test data packet is a data packet that ensures the reliability of the transmission link. In different situations, the test data packet may be different. The test data packet may be an empty packet, a 1-bit data packet, a data packet that informs the first device that the data packet has been received, or a data packet that informs the first device that the data packet can be sent, etc.

[0108] Figure 3 This is a step diagram of a wireless transmission method provided in an embodiment of the present application. The wireless transmission method is applied to a first device. Although a logical order is shown in the step diagram, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.

[0109] according to Figure 3 The wireless transmission method shown in the figure includes at least steps S110 to S130, which are described in detail as follows:

[0110] In step S110, the current wireless transmission quality is obtained during the target connection interval.

[0111] The target connection interval is any one of multiple connection intervals during the wireless transmission process. The connection interval is the time interval between two connection establishments in wireless transmission, and multiple data interactions can be performed in one connection interval. The connection interval affects the data transmission efficiency and the power consumption of the device. A shorter connection interval can provide a faster interaction speed, but may also increase power consumption, while a longer connection interval can reduce power consumption but may delay the interaction response. The connection interval can be determined when the first device establishes a connection with the second device. For example, the connection interval can be configured by the second device to the second device.

[0112] In one embodiment, some wireless protocols allow for dynamic adjustment of the connection interval to adapt to network conditions or device requirements. For example, the connection interval may be shortened when data transmission is frequent and extended when idle.

[0113] In another embodiment, some wireless transmission protocols define a fixed connection interval, or some specific applications design a fixed connection interval to ensure performance in a specific environment or situation. In both cases, the connection interval cannot be dynamically adjusted after configuration.

[0114] Wireless transmission quality refers to the transmission effect of data from the sender to the receiver in wireless transmission. Wireless transmission quality can reflect the reliability, stability and effectiveness of wireless transmission. Parameters that can be used to evaluate wireless transmission quality include but are not limited to: signal strength, signal-to-noise ratio, packet loss rate, delay, bandwidth, connection stability, data transmission rate, etc.

[0115] The quality of wireless transmission is affected by many factors, and the quality of wireless transmission at different times may be different. Different connection intervals are at different times, so the wireless transmission quality corresponding to each connection interval may also be different. The number of data packets that can be transmitted in each connection interval is affected by the current wireless transmission quality corresponding to the connection interval. Therefore, in the target connection interval, the current wireless transmission quality corresponding to the target connection interval is obtained.

[0116] After the first device and the second device are wirelessly connected, the first device and the second device may first negotiate whether both support the wireless transmission method of the embodiment of the present application. If both support it, the first device may start a dynamic determination queue thread when starting to transmit data. The dynamic determination thread may obtain the current wireless transmission quality based on a command line tool or a network monitoring tool.

[0117] In step S120, a target number of data packets to be transmitted in the target connection interval is determined according to the current wireless transmission quality and the target connection interval.

[0118] According to the current wireless transmission quality, the number of data packets that can be transmitted per unit time can be determined. In combination with the target connection interval, the number of data packets that can be transmitted in the target connection interval under the current wireless transmission quality can be determined, and the number is determined as the target number.

[0119] Based on the above technical solution, as an embodiment, Figure 4 As shown, step S120 may include steps S121 to S122.

[0120] In step S121, the time required to transmit the target data packet under the current wireless transmission quality is determined.

[0121] Because different data packets have different data volumes, the time required to transmit different data packets under the same wireless transmission quality is also different.

[0122] In one embodiment, the target data packet may be the data packet with the largest data volume among the data packets to be transmitted, so as to ensure that the target number of data packets can be transmitted in the target connection interval under the current wireless transmission quality.

[0123] In another embodiment, the target data packet may be a virtual data packet determined according to the data volume of each data packet to be transmitted. The data volume of the virtual data packet may be the mean, median or mode of the data volume of each data packet to be transmitted, so as to meet different user needs for different situations.

[0124] When the data volume of the target data packet is known, the time required to transmit the target data packet under the current wireless transmission quality can be calculated. When the wireless transmission quality is the data transmission rate, the time required to transmit the target data packet under the current wireless transmission quality is the quotient of the data volume of the target data packet and the data transmission rate. When the wireless transmission quality is the bandwidth, the time required to transmit the target data packet under the current wireless transmission quality is the quotient of the data volume of the target data packet and the bandwidth. It can be understood that in some embodiments, the units of the data volume and the wireless transmission quality need to be converted when calculating the time.

[0125] In step S122, a target number of data packets to be transmitted in the target connection interval is determined according to the target connection interval and the duration.

[0126] Optionally, because the first device sends a data packet to the second device, the second device needs to send a test data packet to the first device, and each sending of a data packet involves two data transmissions. Therefore, when determining the target number of data packets to be transmitted in the target connection interval, half of the quotient of the target connection interval and the duration required to transmit the target data packet under the current wireless transmission quality is determined as the target number of data packets to be transmitted in the target connection interval.

[0127] As an embodiment, assuming that the connection interval is 10 ms, and the time required to transmit the target data packet under the current wireless transmission quality is 1 ms, then the target number of data packets to be transmitted in the connection interval = 10 ms / 1 ms / 2 = 5.

[0128] By adopting the technical solution of the embodiment of the present application, the target number of data packets to be transmitted in the target connection interval is determined based on the current wireless transmission quality and the target connection interval, thereby ensuring the rationality of the determined target number. In addition, different target numbers can be determined according to the data volume of different target data packets to meet different user needs.

[0129] In step S130, the target number of data packets are transmitted during the target connection interval.

[0130] After determining the target number of data packets to be transmitted in the target connection interval, the first device may transmit data packets to the second device according to the target number in the target connection interval.

[0131] By adopting the technical solution of the embodiment of the present application, the target number of data packets to be transmitted in the target connection interval can be determined based on the current wireless transmission quality and the target connection interval, and then the target number of data packets can be transmitted in the target connection interval, effectively ensuring that sufficient data packets can be transmitted in the target connection interval, thereby improving data transmission efficiency.

[0132] Based on the above technical solution, as an embodiment, after determining the target number of data packets to be transmitted in the target connection interval, the method may also include: adjusting the data packet field of the first packet according to the target number to obtain a first field; the first field is used to: notify the second device that the number of test data packets sent in the target connection interval is the target number.

[0133] After determining the target number corresponding to the target connection interval, the first device can inform the second device so that the second device knows the number of data packets that the first device will transmit in the target connection interval. The number of test data packets sent by the second device is equal to the number of data packets sent by the first device, so the second device can know that the number of test data packets sent in the target connection interval is the target number.

[0134] The first data packet refers to the first data packet sent by the first device to the second device in each connection interval. The first device can obtain the first field by adjusting the data packet field of the first data packet. After receiving the first data packet sent by the first device, the second device parses the first data packet to obtain the first field, and then determines that the number of test data packets sent in the target connection interval is the target number according to the first field. The second device sends the test data packet according to the first field.

[0135] In one embodiment, Figure 5 As shown, the target number corresponding to the two connection intervals is 4. In each connection interval, the second device first sends a test data packet and then the first device sends a data packet. At this time, the second device first sends a test data packet, and then the first device sends the first packet of data. The second device parses the first field of the first packet of data to know that the number of test data packets sent in the connection interval is 4. The second device sends a total of 4 test data packets in the current connection interval. TX represents the sending of data, and RX represents the receiving of data.

[0136] By adopting the technical solution of the embodiment of the present application, the second device can be notified of the number of test data packets sent based on the first field, without the second device calculating the number of test data packets sent, and the consistency of the number of test data packets sent by the first device and the second device is ensured.

[0137] Based on the above technical solution, as an embodiment, Figure 6 As shown, the wireless transmission method may further include steps S140 to S150, and step S130 may include steps S131 to S132.

[0138] In step S140, the number of omitted return packets is determined according to the target number.

[0139] The number of omitted reply packets refers to the number of test data packets that the second device may not reply to in response to the data packets sent by the first device.

[0140] When the usage scenario does not require high data accuracy, for example, when the loss of a data packet does not affect the use of the function, in order to improve the wireless transmission efficiency, the second device can reduce the sending of test data packets.

[0141] Because the first data packet and the last data packet in each connection interval can provide information about the establishment and release of the connection interval, the first data packet and the last data packet need to be guaranteed to be transmitted reliably. Therefore, the corresponding test data packets of the first data packet and the last data packet are not omitted.

[0142] In one embodiment, when the data accuracy requirement is not high, the adverse effects caused by the loss of non-first and last data packets in the connection interval are relatively small. Therefore, the test data packets corresponding to the non-first and last data packets in the connection interval can be omitted. The maximum number of omitted return packets corresponding to the connection interval can be the number of non-first and last data packets in the connection interval. At this time, the maximum number of omitted return packets = target number - 2. The minimum number of omitted return packets can be 0. Therefore, the value range of the number of omitted return packets is any integer from 0 to the maximum number of omitted return packets, including 0 or the maximum number of omitted return packets.

[0143] In step S150, the data packet field of the first data packet is adjusted according to the number of omitted return packets to obtain a second field; the second field is used to: notify the second device to reduce the sending of test data packets according to the number of omitted return packets.

[0144] After determining the number of omitted return packets, the first device can adjust the data packet field of the first data packet according to the number of omitted return packets to obtain the second field. The second field is used to notify the second device to reduce the number of test data packets sent according to the number of omitted return packets. The second device maintains the first state according to the second field, reduces the number of test data packets sent in the first state, and the number of test data packets sent is reduced by the number of omitted return packets. The first state can be a state with lower power consumption.

[0145] In one embodiment, the first data packet includes not only the second field but also the first field.

[0146] In step S131, in the target connection interval, the data packet with the number of returned packets omitted is sent to the second device.

[0147] After the second device receives the first data packet sent by the first device, it parses the first data packet to obtain the second field. The second device adjusts its own state to the first state according to the second field, and receives the data packet sent by the first device in the first state without replying the test data packet, until the number of data packets sent by the first device is equal to the number of omitted reply packets, the first state is adjusted to the normal state, and the test data packet is sent to the first device for the data packet that needs to be replied.

[0148] After the first device sends the first data packet, it informs the second device that it does not need to send test data packets for the data packets with the number of omitted return packets. Therefore, when the first device sends subsequent data packets, it does not need to wait for the second device to send the test data packet and can directly send the data packet to the second device.

[0149] In step S132, after sending the data packet with the number of return packets omitted, a test data packet sent by the second device according to the second field is received.

[0150] The first device sends a first data packet containing a second field, and the second device needs to send a test data packet for the first data packet. Then the first device sends a second data packet omitting the number of return packets, and the second device does not need to send a test data packet for the second data packet. Then the first device sends a third data packet, and the second device needs to send a test data packet for the third data packet. It can be understood that the second device sends a test data packet for a data packet, which can be sent to the first device before receiving the data packet, or sent to the first device after receiving the data packet.

[0151] In one embodiment, Figure 7 As shown, the number of omitted return packets is the maximum number of omitted return packets, the maximum number of omitted return packets is 2, and the second device sends a test data packet first and then the first device sends a data packet. At this time, the second device sends a test data packet first, and the first device sends the first data packet. The second device parses the second field of the first data packet to know that the subsequent number of data packets that are the number of omitted return packets does not need to send a test data packet. At this time, the first device does not need to receive the test data packet sent by the second device, and directly sends 2 data packets to the second device until the last data packet is to be sent. It is only necessary to send the last data packet after receiving the test data packet sent by the second device.

[0152] In another embodiment, the number of omitted return packets is the maximum number of omitted return packets, the maximum number of omitted return packets is 2, and the first device sends a data packet first and then the second device sends a test data packet. At this time, the first device sends the first data packet first, and the second device sends a test data packet for the first data packet. The second device parses the second field of the first data packet to know that the subsequent number of data packets equal to the number of omitted return packets does not need to send a test data packet. Subsequently, the first device directly sends 2 data packets to the second device without receiving the test data packet until the first device sends the last data packet to the second device, and needs to receive the test data packet sent by the second device for the last data packet.

[0153] It should be understood that omitting the number of return packets may also be configured by the second device to the first device.

[0154] By adopting the technical solution of the embodiment of the present application, the second field can be used to inform the second device to reduce the sending of test data packets, so that the first device does not need to receive test data packets with the number of return packets omitted, but directly sends data packets, which can greatly improve transmission efficiency.

[0155] Based on the above technical solution, as an embodiment, Figure 8 As shown, the wireless transmission method may further include steps S160 to S170, and step S130 may include steps S133 to S134.

[0156] In step S160, a predetermined receiving quantity is determined according to the target quantity.

[0157] The scheduled receiving quantity refers to the number of data packets that the first device is scheduled to send continuously to the second device. When the first device sends data packets continuously to the second device, the second device does not need to reply with test data packets for these continuously sent data packets.

[0158] When the chip capability of the first device is stronger than the threshold and the usage scenario does not require high data accuracy, in order to significantly improve the wireless transmission efficiency, the first device can continuously send data packets to the second device without waiting for the second device to reply with a test data packet for the data packet. The chip capability of the first device can be determined by the number of cores, clock frequency and / or thread scheduling efficiency of the chip.

[0159] The first data packet and the last data packet need to be guaranteed to be transmitted reliably, therefore, the test data packets corresponding to the first data packet and the last data packet need to be sent, and the first device can determine the non-first and last data packets as continuously sent data packets. Therefore, the range of the predetermined receiving number is any integer from 0 to the maximum predetermined receiving number, including 0 or the maximum predetermined receiving number. The maximum predetermined receiving number is the target number - 2.

[0160] In step S170, the data packet field of the first data packet is adjusted according to the predetermined receiving quantity to obtain a third field; the third field is used to: notify the second device that the number of continuously received data packets is the predetermined receiving quantity.

[0161] After determining the predetermined number of received packets, the first device may adjust the data packet field of the first data packet according to the predetermined number of received packets to obtain a third field. The third field is used to notify the second device that the number of continuously received data packets is the predetermined number of received packets. The second device maintains the second state according to the third field, and continuously receives the predetermined number of received data packets continuously sent by the first device in the second state, and does not need to reply to the test data packet for the predetermined number of received data packets continuously sent by the first device. The second state may be a relatively active state.

[0162] In one embodiment, the first data packet includes not only the third field but also the first field.

[0163] In step S133, data packets having a number equal to the predetermined receiving number are continuously sent to the second device during the target connection interval.

[0164] After receiving the first data packet sent by the first device, the second device parses the first data packet to obtain the third field. The second device adjusts its own state to the second state according to the second field, and continuously receives data packets sent by the first device in the second state without replying to test data packets, until the number of data packets continuously sent by the first device reaches a predetermined number of received data packets, and then adjusts the second state to a normal state, and sends test data packets to the first device for data packets that need to be replied.

[0165] After the first device sends the first data packet, it informs the second device that it needs to continuously receive a predetermined number of data packets, and there is no need to send test data packets for the predetermined number of data packets. Therefore, when the first device continuously sends data packets, it does not need to wait for the second device to send a test data packet, and can directly send data packets to the second device.

[0166] In step S134, after continuously sending the predetermined number of received data packets, a test data packet sent by the second device according to the third field is received.

[0167] The first device sends a fourth data packet containing a third field, and the second device needs to send a test data packet for the fourth data packet. Then the first device continuously sends a predetermined number of fifth data packets, and the second device does not need to send a test data packet for the fifth data packet. Then the first device sends a sixth data packet, and the second device needs to send a test data packet for the sixth data packet. It can be understood that the second device sends a test data packet for a data packet, which can be sent to the first device before receiving the data packet, or sent to the first device after receiving the data packet.

[0168] In one embodiment, Fig. 9 As shown, the predetermined receiving number is the maximum predetermined receiving number, the maximum predetermined receiving number is 3, the second device sends a test data packet first and then the first device sends a data packet. At this time, the second device sends a test data packet first, and the first device sends the first data packet. The second device parses the third field of the first data packet to know that the predetermined number of data packets will be received continuously. There is no need to send a test data packet for the subsequent continuously received data packets. The first device does not need to receive the test data packet sent by the second device at this time, and directly sends 3 data packets to the second device continuously until the last data packet is to be sent. Only after receiving the test data packet sent by the second device, the last data packet needs to be sent.

[0169] In another embodiment, the predetermined receiving number is the maximum predetermined receiving number, the maximum predetermined receiving number is 3, the first device sends a data packet first and then the second device sends a test data packet. In this case, the first device sends the first data packet first, the second device sends a test data packet for the first data packet, the second device parses the third field of the first data packet to know that the predetermined receiving number of data packets are subsequently received continuously, and there is no need to send a test data packet for the subsequent continuously received data packets. The first device directly sends 3 data packets to the second device continuously without receiving a test data packet until the first device sends the last data packet to the second device, and it needs to receive the test data packet sent by the second device for the last data packet.

[0170] Compared to the case where the first data packet includes the second field, when the first data packet includes the third field, the first device generally sends data packets continuously at a faster rate, and thus the transmission efficiency is higher.

[0171] By adopting the technical solution of the embodiment of the present application, the second device can be informed through the third field that the first device will continuously send a predetermined number of received data packets, and the second device does not need to reply with test data packets for the continuously sent predetermined number of received data packets; in this way, the first device continuously sends data packets and does not need to receive a predetermined number of received test data packets, which can greatly improve the transmission efficiency.

[0172] Based on the above technical solution, as an embodiment, Fig.10 As shown, the wireless transmission method may further include steps S180 to S190.

[0173] In step S180, a connection interval adjustment amount is determined according to a predetermined number of receptions corresponding to the target connection interval;

[0174] In step S190, a next connection interval is determined according to the target connection interval and the connection interval adjustment amount.

[0175] When the connection interval supports dynamic adjustment, the next connection interval can be adjusted based on the predetermined number of receptions in the connection interval. When the predetermined number of receptions is determined, it proves that the chip capability of the first device is relatively strong and the data transmission between the first device and the second device is relatively frequent. At this time, the connection interval can be shortened to make the interaction between the first device and the second device more compact.

[0176] In one embodiment, the time required to transmit the predetermined number of received data packets can be determined according to the current wireless transmission quality, and the time is determined as the connection interval adjustment amount. When determining the time, the amount of data contained in the data packet can be the mean, median or mode of the amount of data of each data packet to be transmitted.

[0177] In another embodiment, the average duration required to transmit a data packet may be determined based on experience or big data, and then the product of the predetermined reception quantity and the average duration may be directly determined as the connection interval adjustment amount.

[0178] The difference between the current connection interval and the connection interval adjustment amount corresponding to the current connection interval is determined as the next connection interval.

[0179] In one embodiment, the current connection interval is 10 ms, the predetermined receiving quantity is 2, and the average time required to transmit one quantity is 1 ms, then: the next connection interval = 10 ms - 2*1 ms = 8 ms.

[0180] By adopting the technical solution of the embodiment of the present application, the next connection interval is adjusted based on the predetermined number of receptions in the connection interval, so that the connection interval can be shortened. The short connection interval can send and receive data more frequently and reduce idle time, thereby improving the overall data throughput and optimizing the use of wireless transmission resources.

[0181] In one embodiment, the first device may be a TV remote controller supporting a voice function, the second device may be a smart TV wirelessly connected to the TV remote controller, and the data packet sent by the first device may be a voice data packet.

[0182] The above technical solution can be applied to a scenario where a first device is wirelessly connected to a second device, or to a scenario where multiple first devices are wirelessly connected to a second device. In a scenario where multiple first devices are wirelessly connected to a second device, the anti-interference performance of a wireless transmission method that improves transmission efficiency by omitting the number of return packets or the predetermined number of received packets may be affected.

[0183] In order to improve the anti-interference performance of a wireless transmission method based on omitting the number of return packets or the predetermined number of received packets to improve transmission efficiency in a scenario where multiple first devices are wirelessly connected to a second device, multi-link scheduling optimization can be performed. Multi-link scheduling optimization may include: determining a target first device from multiple first devices; and reducing link resources corresponding to each first device of a non-target first device.

[0184] The target first device may be the first device corresponding to the user's current core operation scenario, which may be selected by the user or determined intelligently by the system. The target first device may also be the device with the highest priority among multiple first devices, and the priority of the first device may be preset.

[0185] For different first devices, the method of reducing the corresponding link resources may be different. In one embodiment, the data packet transmitted by the first device is an audio data packet, and the link resources corresponding to the first device can be reduced by reducing the encoding quality (bitpool) of the audio data packet and / or reducing the maximum transmission unit (Maximum Transmission Unit, MTU). In another embodiment, the first device is a Bluetooth game controller and the second device is a game console, and the link resources corresponding to the first device can be reduced by adjusting the connection interval between the Bluetooth game controller and the game console, thereby reducing the interaction frequency between the two.

[0186] In one embodiment, there are two first devices that are wirelessly connected to a second device, one first device is a Bluetooth speaker, the other first device is a Bluetooth game controller, and the second device is a smart TV. When the user's current core operation scenario is playing games using a Bluetooth game controller, the sound quality of the Bluetooth speaker can be reduced or the size of the audio transmission packet can be reduced to achieve multi-link scheduling optimization. When the user's current core operation scenario is listening to music using a Bluetooth speaker, the frequency of interaction between the Bluetooth game controller and the smart TV can be reduced to achieve multi-link scheduling optimization.

[0187] When multi-link scheduling optimization is implemented, a wireless transmission method based on omitting the number of return packets or the predetermined number of received packets to improve transmission efficiency is performed on the wireless transmission between the target first device and the second device, which can improve the anti-interference performance of the wireless transmission between the target first device and the second device.

[0188] Fig.11 It is a step diagram of a wireless transmission method provided in one embodiment of the present application. The wireless transmission method is applied to a second device. Although a logical order is shown in the step diagram, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.

[0189] according to Fig.11 The wireless transmission method shown in the figure includes at least steps S210 to S230, which are described in detail as follows:

[0190] In step S210, a first data packet sent by a first device in a target connection interval is received.

[0191] In step S220, the target field in the first data packet is parsed to determine the target quantity; the target quantity is: the number of data packets to be transmitted in the target connection interval determined based on the current wireless transmission quality and the target connection interval.

[0192] In step S230, during the target connection interval, data packets transmitted by the first device are received according to the target quantity.

[0193] The first data packet sent by the first device in the target connection interval includes a target field, and the target field can be the first field, the second field and / or the third field described above. The target field in the first data packet is determined according to the target quantity. The method for determining the target quantity can refer to the above.

[0194] After parsing the target field in the first data packet, the second device can determine the target number of data packets sent by the first device in the target connection interval according to the target field. The second device receives the target number of data packets sent by the first device in the target connection interval.

[0195] By adopting the technical solution of the embodiment of the present application, the second device can determine the target number of data packets to be transmitted in the target connection interval based on the first data packet sent by the first device in the target connection interval, and then receive the target number of data packets in the target connection interval, effectively ensuring that sufficient data packets can be transmitted in the target connection interval, thereby improving data transmission efficiency.

[0196] Based on the above technical solution, as an embodiment, the target field is the first field described above, and the target field is used to: notify the second device to send the target number of test data packets in the target connection interval. The wireless transmission method also includes: sending the test data packets in the target connection interval according to the target number.

[0197] When the second device parses the first field, it can determine the target number of data packets sent by the first device in the target connection interval according to the first field. Because the second device needs to send a test data packet for each data packet, the second device can send the test data packet in the target connection interval according to the target number.

[0198] By adopting the technical solution of the embodiment of the present application, the second device can be notified of the number of test data packets sent based on the first field, without the second device calculating the number of test data packets sent, and the consistency of the number of test data packets sent by the first device and the second device is ensured.

[0199] Based on the above technical solution, as an embodiment, the target field is the second field mentioned above, and the target field is used to: notify the second device to reduce the sending of test data packets according to the number of omitted return packets; the number of omitted return packets is determined according to the target number;

[0200] like Fig.12 As shown, the wireless transmission method may further include steps S240 to S250.

[0201] In step S240, according to the target field, it is determined that the number of the test data packets to be sent is reduced to the number of omitted return packets.

[0202] In step S250, in the target connection interval, after receiving the data packet with the number of returned packets omitted sent by the first device, a test data packet is sent to the first device.

[0203] The number of omitted response packets refers to the number of test packets that the second device can not reply to for the data packets sent by the first device. The method for determining the number of omitted response packets can refer to the above. When the usage scenario does not require high data accuracy, for example, when the loss of a data packet does not affect the use of the function, in order to improve the wireless transmission efficiency, the second device can reduce the sending of test data packets.

[0204] After the second device receives the first data packet sent by the first device, it parses the first data packet to obtain the second field. The second device adjusts its own state to the first state according to the second field, and receives the data packet sent by the first device in the first state without replying the test data packet, until the number of data packets sent by the first device is equal to the number of omitted reply packets, the first state is adjusted to the normal state, and the test data packet is sent to the first device for the data packet that needs to be replied.

[0205] After the first device sends the first data packet, it informs the second device that it does not need to send test data packets for the data packets with the number of omitted return packets. Therefore, when the first device sends subsequent data packets, it does not need to wait for the second device to send the test data packet and can directly send the data packet to the second device.

[0206] The first device sends a first data packet containing a second field, and the second device needs to send a test data packet for the first data packet. Then the first device sends a second data packet omitting the number of return packets, and the second device does not need to send a test data packet for the second data packet. Then the first device sends a third data packet, and the second device needs to send a test data packet for the third data packet. It can be understood that the second device sends a test data packet for a data packet, which can be sent to the first device before receiving the data packet, or sent to the first device after receiving the data packet.

[0207] By adopting the technical solution of the embodiment of the present application, the second device can reduce the sending of test data packets through the second field, so that the first device does not need to receive test data packets with the number of return packets omitted, but directly sends data packets, which can greatly improve transmission efficiency.

[0208] Based on the above technical solution, as an embodiment, the target field is the third field mentioned above, and the target field is used to: notify the second device that the number of continuously received data packets is a predetermined receiving number; the predetermined receiving number is determined based on the target number.

[0209] like Fig.13 As shown, the wireless transmission method may further include steps S260 to S270.

[0210] In step S260, the number of continuously received data packets is determined to be the predetermined receiving number according to the target field.

[0211] In step S270, in the target connection interval, after receiving the predetermined number of data packets continuously sent by the first device, a test data packet is sent to the first device.

[0212] The predetermined number of received packets refers to the number of packets that the first device is scheduled to send continuously to the second device. When the first device continuously sends packets to the second device, the second device does not need to reply with test packets for these continuously sent packets. The method for determining the predetermined number of received packets can refer to the above.

[0213] When the chip capability of the first device is stronger than the threshold and the usage scenario does not require high data accuracy, in order to significantly improve the wireless transmission efficiency, the first device can continuously send data packets to the second device without waiting for the second device to reply with a test data packet for the data packet. The chip capability of the first device can be determined by the number of cores, clock frequency and / or thread scheduling efficiency of the chip.

[0214] After determining the predetermined number of received packets, the first device may adjust the data packet field of the first data packet according to the predetermined number of received packets to obtain a third field. The third field is used to notify the second device that the number of continuously received data packets is the predetermined number of received packets. The second device maintains the second state according to the third field, and continuously receives the predetermined number of received data packets continuously sent by the first device in the second state, and does not need to reply to the test data packet for the predetermined number of received data packets continuously sent by the first device. The second state may be a relatively active state.

[0215] After receiving the first data packet sent by the first device, the second device parses the first data packet to obtain the third field. The second device adjusts its own state to the second state according to the second field, and continuously receives data packets sent by the first device in the second state without replying to test data packets, until the number of data packets continuously sent by the first device reaches a predetermined number of received data packets, and then adjusts the second state to a normal state, and sends test data packets to the first device for data packets that need to be replied.

[0216] After the first device sends the first data packet, it informs the second device that it needs to continuously receive a predetermined number of data packets, and there is no need to send test data packets for the predetermined number of data packets. Therefore, when the first device continuously sends data packets, it does not need to wait for the second device to send a test data packet, and can directly send data packets to the second device.

[0217] The first device sends a fourth data packet containing a third field, and the second device needs to send a test data packet for the fourth data packet. Then the first device continuously sends a predetermined number of fifth data packets, and the second device does not need to send a test data packet for the fifth data packet. Then the first device sends a sixth data packet, and the second device needs to send a test data packet for the sixth data packet. It can be understood that the second device sends a test data packet for a data packet, which can be sent to the first device before receiving the data packet, or sent to the first device after receiving the data packet.

[0218] Compared to the case where the first data packet includes the second field, when the first data packet includes the third field, the first device generally sends data packets continuously at a faster rate, and thus the transmission efficiency is higher.

[0219] By adopting the technical solution of the embodiment of the present application, the second device can know according to the third field that the first device will continuously send a predetermined number of received data packets, and the second device does not need to reply with test data packets for the continuously sent predetermined number of received data packets; in this way, the first device continuously sends data packets and does not need to receive a predetermined number of received test data packets, which can greatly improve the transmission efficiency.

[0220] Based on the above technical solution, as an embodiment, the wireless transmission method may further include: determining a connection interval adjustment amount according to a predetermined reception quantity corresponding to the target connection interval; and determining a next connection interval according to the target connection interval and the connection interval adjustment amount.

[0221] When the connection interval supports dynamic adjustment, the next connection interval can be adjusted based on the predetermined number of receptions in the connection interval. When the predetermined number of receptions is determined, it proves that the chip capability of the first device is relatively strong and the data transmission between the first device and the second device is relatively frequent. At this time, the connection interval can be shortened to make the interaction between the first device and the second device more compact.

[0222] By adopting the technical solution of the embodiment of the present application, the next connection interval is adjusted based on the predetermined number of receptions in the connection interval, so that the connection interval can be shortened. The short connection interval can send and receive data more frequently and reduce idle time, thereby improving the overall data throughput and optimizing the use of wireless transmission resources.

[0223] In order to improve the anti-interference performance of a wireless transmission method based on omitting the number of return packets or the predetermined number of received packets to improve transmission efficiency in a scenario where multiple first devices are wirelessly connected to a second device, multi-link scheduling optimization can be performed. Multi-link scheduling optimization may include: determining a target first device from multiple first devices; and reducing link resources corresponding to each first device of a non-target first device.

[0224] The target first device may be the first device corresponding to the user's current core operation scenario, which may be selected by the user or determined intelligently by the system. The target first device may also be the device with the highest priority among multiple first devices, and the priority of the first device may be preset.

[0225] For different first devices, the method of reducing the corresponding link resources may be different. In one embodiment, the data packet transmitted by the first device is an audio data packet, and the link resources corresponding to the first device can be reduced by reducing the encoding quality of the audio data packet and / or reducing the maximum transmission unit. In another embodiment, the first device is a Bluetooth game controller and the second device is a game console, and the link resources corresponding to the first device can be reduced by adjusting the connection interval between the Bluetooth game controller and the game console, thereby reducing the interaction frequency between the two.

[0226] In order to better implement the wireless transmission method of the present application, the present application also provides a wireless transmission device based on the wireless transmission method. The meanings of the terms are the same as those in the wireless transmission method, and the specific implementation details can refer to the description in the method embodiment.

[0227] See also Fig.14 , Fig.14 : is a schematic diagram of the structure of a wireless transmission device provided in an embodiment of the present application, wherein the wireless transmission device is applied to a first device, and the wireless transmission device includes:

[0228] The acquisition module 101 is used to acquire the current wireless transmission quality in the target connection interval;

[0229] A determination module 102, configured to determine 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;

[0230] The transmission module 103 is configured to transmit the target number of data packets in the target connection interval.

[0231] In one of the embodiments, after determining the target number of data packets to be transmitted in the target connection interval, the apparatus further comprises:

[0232] The first adjustment module is used to adjust the data packet field of the first data packet according to the target number to obtain a first field; the first field is used to: notify the second device to send the target number of test data packets in the target connection interval.

[0233] In one embodiment, the device further comprises:

[0234] An omission determination module, used to determine the number of omitted return packets according to the target number;

[0235] A second adjustment module is used to adjust the data packet field of the first data packet according to the number of omitted return packets to obtain a second field; the second field is used to: notify the second device to reduce the number of test data packets sent according to the number of omitted return packets;

[0236] The transmission module 103 includes:

[0237] A first sending unit, configured to send the data packet with the number of returned packets omitted to the second device in the target connection interval;

[0238] The first receiving unit is configured to receive a test data packet sent by the second device according to the second field after sending the data packet with the number of return packets omitted.

[0239] In one embodiment, the device further comprises:

[0240] A reservation determination module, used to determine a predetermined receiving quantity according to the target quantity;

[0241] A third adjustment module is used to adjust the data packet field of the first data packet according to the predetermined receiving quantity to obtain a third field; the third field is used to: notify the second device that the number of continuously received data packets is the predetermined receiving quantity;

[0242] The transmission module 103 includes:

[0243] A second sending unit, configured to continuously send data packets having a number equal to the predetermined receiving number to the second device during the target connection interval;

[0244] The second receiving unit is configured to receive a test data packet sent by the second device according to the third field after continuously sending the predetermined number of received data packets.

[0245] In one embodiment, the device further comprises:

[0246] An adjustment amount determination module, configured to determine a connection interval adjustment amount according to a predetermined number of receptions corresponding to the target connection interval;

[0247] The interval determination module is used to determine a next connection interval according to the target connection interval and the connection interval adjustment amount.

[0248] In one embodiment, the determining module 102 includes:

[0249] A duration determination unit, used to determine the duration required to transmit a target data packet under the current wireless transmission quality;

[0250] A quantity determination unit is used to determine a target quantity of data packets to be transmitted in the target connection interval according to the target connection interval and the duration.

[0251] By adopting the technical solution of the embodiment of the present application, the target number of data packets to be transmitted in the target connection interval can be determined based on the current wireless transmission quality and the target connection interval, and then the target number of data packets can be transmitted in the target connection interval, effectively ensuring that sufficient data packets can be transmitted in the target connection interval, thereby improving data transmission efficiency.

[0252] See also Fig.15 , Fig.15 : is a schematic diagram of the structure of a wireless transmission device provided in an embodiment of the present application, wherein the wireless transmission device is applied to a second device, and the wireless transmission device includes:

[0253] The first receiving module 201 is used to receive a first data packet sent by a first device in a target connection interval;

[0254] The parsing module 202 is used to parse the first data packet to determine a target number; 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;

[0255] The second receiving module 203 is configured to receive data packets transmitted by the first device according to the target quantity during the target connection interval.

[0256] In one embodiment, the target field is used to: notify the second device that the number of test data packets sent in the target connection interval is the target number; the apparatus further comprises:

[0257] The test sending module is used to send test data packets at the target connection interval according to the target quantity.

[0258] In one embodiment, the target field is used to: notify the second device to reduce the number of test data packets to be sent according to the number of omitted return packets; the number of omitted return packets is determined according to the target number;

[0259] The device also includes:

[0260] An omitted return packet number determination module, used for determining, according to the target field, to reduce the number of the test data packets to be sent as the omitted return packet number;

[0261] The first test data packet sending module is used to send a test data packet to the first device after receiving the data packet with the number of returned packets omitted sent by the first device in the target connection interval.

[0262] In one of the embodiments, the target field is used to: notify the second device that the number of consecutively received data packets is a predetermined receiving number; the predetermined receiving number is determined according to the target number;

[0263] The device also includes:

[0264] A predetermined receiving quantity determining module, used for determining the number of continuously received data packets as the predetermined receiving quantity according to the target field;

[0265] The test data packet second sending module is used to send a test data packet to the first device after receiving the predetermined number of data packets continuously sent by the first device in the target connection interval.

[0266] By adopting the technical solution of the embodiment of the present application, the second device can determine the target number of data packets to be transmitted in the target connection interval based on the first data packet sent by the first device in the target connection interval, and then receive the target number of data packets in the target connection interval, effectively ensuring that sufficient data packets can be transmitted in the target connection interval, thereby improving data transmission efficiency.

[0267] For the specific definition of the wireless transmission device, please refer to the definition of the wireless transmission method above, which will not be repeated here. Each module in the above wireless transmission device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0268] In addition, the present application also provides an electronic device, such as Fig.16 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:

[0269] The electronic device may include one or more processors 601 of processing cores and one or more computer-readable storage media memories 602 and other components. Those skilled in the art will appreciate that Fig.16 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0270] The processor 601 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0271] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0272] In one embodiment, the electronic device further includes a power supply 603 for supplying power to various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 603 can also include any components such as one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, and power status indicators.

[0273] In one embodiment, the electronic device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0274] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the electronic device will load the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application program stored in the memory 602, thereby implementing the steps in any one of the wireless transmission methods provided in the embodiments of the present application.

[0275] Those skilled in the art will understand that Fig.16 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0276] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in any embodiment of the present application is implemented.

[0277] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present application is implemented.

[0278] In one embodiment, a computer program product is also proposed, including a computer program or instructions, which implement the method described in any embodiment of the present application when executed by a processor.

[0279] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0280] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0281] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any wireless transmission method provided in the present application.

[0282] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0283] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0284] Since the instructions stored in the computer-readable storage medium can execute the steps in any one of the wireless transmission methods provided in the present application, the beneficial effects that can be achieved by any one of the wireless transmission methods provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0285] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0286] The wireless transmission method, device, electronic device and computer-readable storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A wireless transmission method, characterized in that: Applied to a first device, comprising: In the target connection interval, obtain the current wireless transmission quality; 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; During the target connection interval, the target number of data packets are transmitted.

2. The method according to claim 1, characterized in that After determining the target number of data packets to be transmitted in the target connection interval, the method further comprises: According to the target number, the data packet field of the first data packet is adjusted to obtain a first field; the first field is used to: notify the second device that the number of test data packets sent in the target connection interval is the target number.

3. The method according to claim 1, characterized in that The method further comprises: According to the target quantity, determine the number of omitted return packets; According to the omitted return packet number, the data packet field of the first data packet is adjusted to obtain a second field; the second field is used to: notify the second device to reduce the number of test data packets sent according to the omitted return packet number; The transmitting the target number of data packets at the target connection interval comprises: In the target connection interval, sending the data packet with the number of returned packets omitted to the second device; After sending the data packet with the number of returned packets omitted, receiving a test data packet sent by the second device according to the second field.

4. The method according to claim 1, characterized in that: The method further comprises: Determining a predetermined receiving quantity according to the target quantity; According to the predetermined receiving quantity, adjusting the data packet field of the first data packet to obtain a third field; the third field is used to: notify the second device that the number of continuously received data packets is the predetermined receiving quantity; The transmitting the target number of data packets at the target connection interval comprises: In the target connection interval, continuously sending to the second device a number of data packets equal to the predetermined number of received packets; After continuously sending the predetermined number of received data packets, a test data packet sent by the second device according to the third field is received.

5. The method according to claim 4, characterized in that The method further comprises: Determining a connection interval adjustment amount according to a predetermined number of receptions corresponding to the target connection interval; A next connection interval is determined according to the target connection interval and the connection interval adjustment amount.

6. The method according to any one of claims 1 to 5, characterized in that: The step of 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 includes: Determine the time required to transmit the target data packet under the current wireless transmission quality; According to the target connection interval and the duration, a target number of data packets to be transmitted in the target connection interval is determined.

7. A wireless transmission method, characterized in that: Applied to the second device, comprising: receiving a first data packet sent by a first device in a target connection interval; Parsing the target field in the first data packet to determine a target quantity; the target quantity 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; During the target connection interval, data packets transmitted by the first device are received according to the target quantity.

8. The method according to claim 7, characterized in that The target field is used to notify the second device that the number of test data packets sent in the target connection interval is the target number; the method further includes: According to the target number, test data packets are sent at the target connection interval.

9. The method according to claim 7, characterized in that: The target field is used to notify the second device to reduce the number of test data packets to be sent according to the number of omitted return packets; the number of omitted return packets is determined according to the target number; The method further comprises: According to the target field, determining to reduce the number of the test data packets to be sent to be the number of omitted return packets; In the target connection interval, after receiving the data packet with the number of returned packets omitted sent by the first device, a test data packet is sent to the first device.

10. The method according to claim 7, characterized in that The target field is used to: notify the second device that the number of continuously received data packets is a predetermined receiving number; the predetermined receiving number is determined according to the target number; The method further comprises: According to the target field, determining the number of continuously received data packets to be the predetermined number of received packets; In the target connection interval, after receiving the predetermined number of data packets continuously sent by the first device, a test data packet is sent to the first device.

11. A wireless transmission device, characterized in that: Applied to a first device, comprising: An acquisition module, used to obtain the current wireless transmission quality at a target connection interval; A determination module, configured to determine 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; The transmission module is used to transmit the target number of data packets in the target connection interval.

12. A wireless transmission device, characterized in that: Applied to the second device, comprising: A first receiving module, configured to receive a first data packet sent by a first device in a target connection interval; A parsing module, configured to parse the first data packet to determine a target quantity; the target quantity is: the quantity of 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 to receive the data packets transmitted by the first device according to the target quantity during the target connection interval.

13. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the wireless transmission method according to any one of claims 1 to 10 when executing the computer program.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the wireless transmission method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Low power consumption transmission method for large data information in wireless sensor network

    CN103391603A

  • Network quality test method and device, storage medium and electronic equipment

    CN115086199A

  • Data transmission method and device, equipment and storage medium

    CN115884258A

  • Data transmission method and device, electronic equipment and readable storage medium

    CN116321290A

  • Data packet transmission method, electronic equipment and readable storage medium

    CN116545579A

Cited By

  • Wireless transmission method, electronic device, and computer-readable storage medium

    WO2026092238A1