Wireless interaction method, electronic device, and computer-readable storage medium
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-12-31
- Publication Date
- 2026-08-13
Smart Images

Figure CN2025148372_13082026_PF_FP_ABST
Abstract
Description
Wireless interaction method, electronic device and computer readable storage medium
[0001] The present application claims priority to the Chinese patent application No. 2025101420997, filed on February 8, 2025, entitled "Wireless interaction method, device, electronic device and computer readable storage medium", the entire content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the technical field of wireless interaction, in particular to a wireless interaction method, device, electronic device and computer readable storage medium. BACKGROUND
[0003] Wireless interaction breaks free from the shackles of wired and improves user experience. However, in the process of wireless interaction of data packets, packet loss or data packet damage may occur. At this time, the related technology will continue to retransmit the lost or damaged data packet until the opposite end device successfully receives the data packet. TECHNICAL PROBLEM
[0004] However, repeated data packet retransmission occupies a large amount of wireless interaction resources, thereby affecting the quality of wireless interaction. TECHNICAL SOLUTION
[0005] Embodiments of the present application provide a wireless interaction method, device, electronic device and computer readable storage medium, which can omit data packet retransmission, thereby saving wireless interaction resources.
[0006] In a first aspect, embodiments of the present application provide a wireless interaction method applied to a first device, comprising:
[0007] When data packet retransmission occurs, obtaining the wireless air interface quality of a target channel for retransmission;
[0008] According to the wireless air interface quality of the target channel, determining the number of omitted retransmissions; and
[0009] According to the number of omitted retransmissions, omitting retransmission of the data packet.
[0010] In a second aspect, embodiments of the present application provide a wireless interaction device applied to a first device, comprising:
[0011] A first quality obtaining module is configured to obtain the wireless air interface quality of a target channel for retransmission when data packet retransmission occurs; a first number determining module is configured to determine the number of omitted retransmissions according to the wireless air interface quality of the target channel; and an omitted retransmission module is configured to omit retransmission of the data packet according to the number of omitted retransmissions.
[0012] In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the wireless interaction method described above are implemented.
[0013] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the wireless interaction method described above are implemented.
[0014] In a fifth aspect, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a 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 method provided in various optional implementation manners described in the embodiments of the present application. Advantages
[0015] To sum up, in the embodiments of the present application, when a data packet is retransmitted, the wireless air interface quality of a target channel for retransmission can be obtained, and the number of omitted retransmissions is determined according to the wireless air interface quality of the target channel. The data packet is omitted for retransmission according to the number of omitted retransmissions. In this way, by omitting the retransmission of the data packet, wireless interaction resources can be saved, thereby reducing the impact on the quality of wireless interaction. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0017] FIG. 1 is a schematic diagram of a scene of a wireless interaction method according to an embodiment of the present application;
[0018] FIG. 2 is a schematic diagram of steps of a wireless interaction method according to an embodiment of the present application;
[0019] FIG. 3 is an interaction diagram of omitting retransmission of a data packet in a classic Bluetooth technology according to an embodiment of the present application;
[0020] FIG. 4 is an interaction diagram of omitting retransmission of a data packet in a Bluetooth low energy technology according to an embodiment of the present application;
[0021] FIG. 5 is an interaction diagram of omitting retransmission of a data packet in a star flash technology according to an embodiment of the present application;
[0022] Figure 6 is a schematic diagram of the steps of a wireless interaction method provided in an embodiment of this application;
[0023] Figure 7 is a schematic diagram of channel switching interaction in a classic Bluetooth technology provided in an embodiment of this application;
[0024] Figure 8 is a schematic diagram of channel switching interaction in a low-power Bluetooth technology provided in an embodiment of this application;
[0025] Figure 9 is a schematic diagram of the channel switching interaction in the star flash technology provided in an embodiment of this application;
[0026] Figure 10 is a schematic diagram of the steps of a wireless interaction method provided in an embodiment of this application;
[0027] Figure 11 is a schematic diagram of the structure of a wireless interaction device provided in an embodiment of this application;
[0028] Figure 12 is a schematic diagram of the structure of a wireless interaction device provided in an embodiment of this application;
[0029] Figure 13 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Embodiments of the present invention
[0030] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0031] Please refer to Figure 1. Figure 1 is a schematic diagram of a wireless interaction method provided in an embodiment of this application. The first device and the second device are devices for wireless interaction. The first device can be a device for retransmitting data packets, and the second device can be a device for receiving retransmitted data packets.
[0032] The first device can be either a master or a slave, and the second device can be either a master or a slave. The master device has initiative and control, and can proactively initiate requests and control the slave device to complete tasks. The master device is responsible for initiating communication requests, managing the communication process, and proactively controlling the slave device to execute corresponding tasks. The slave device is the device that receives requests from the master device and completes corresponding tasks based on those requests. The slave device responds to the master device's requests and executes 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 that 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 smartwatch.
[0033] The first device and the second device can be connected as a single device or in multiple devices. A single device connection between the first device and the second device means that the master device in the first device and the second device wirelessly interacts with one slave device; a multi-device connection between the first device and the second device means that the master device in the first device and the second device wirelessly interacts with multiple slave devices.
[0034] The wireless interaction between the first and second devices can be achieved based on wireless interaction technologies such as classic Bluetooth, Bluetooth Low Energy (BLE), or Starlink technology.
[0035] Bluetooth Classic is an open global standard for wireless data and voice communication. It is a special short-range wireless technology that establishes a communication environment for fixed and mobile devices based on low-cost short-range wireless connectivity.
[0036] Bluetooth Low Energy (BLE) is a technology designed to significantly reduce power consumption and cost while maintaining the same communication range as classic Bluetooth. Data exchange occurs within each connection interval. The connection interval is the time interval between the establishment of two connections in a BLE interaction; multiple data packets can be exchanged within a single connection interval.
[0037] StarScan is a next-generation short-range wireless connectivity technology with advantages such as low power consumption, high transmission rate, low latency, and strong anti-interference capabilities. Data exchange occurs within each interaction interval in StarScan. The interaction interval in StarScan is similar to the connection interval in Bluetooth Low Energy technology; multiple data packets can be exchanged within one interaction interval.
[0038] In wireless interaction, a channel can be a wireless frequency band within a certain frequency range. Multiple channels can be used for wireless interaction between a first device and a second device. For example, classic Bluetooth technology uses 79 channels with a bandwidth of 1MHz, operating in the 2.402-2.480GHz frequency range. Bluetooth Low Energy technology defines 40 channels with a bandwidth of 2MHz, also operating in the 2.402-2.480GHz frequency band. StarScan technology employs centralized scheduling, transmitting data through multiple channels. It can flexibly utilize multiple channels according to different application scenarios and data transmission requirements to achieve high-speed, low-latency, and high-concurrency data transmission.
[0039] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0040] Figure 2 is a schematic diagram of the steps of a wireless interaction method provided in an embodiment of this application. According to the wireless interaction method shown in Figure 2, the method is applied to a first device, and the method includes at least steps S110 to S130, which are described in detail below:
[0041] In step S110, when a data packet is retransmitted, the radio interface quality of the target channel for the retransmission is obtained.
[0042] The first device can be a device that retransmits data packets. When the first device detects that it is retransmitting data packets, it can determine the target channel for retransmitting the data packets and obtain the radio interface quality of the target channel.
[0043] Wireless air interface quality refers to the quality of data transmission through a wireless transmission link in a wireless communication system. It is a performance indicator that measures the wireless signal's performance during transmission from the transmitter to the receiver, reflecting the effectiveness and reliability of the wireless signal in a real transmission environment. In one embodiment, the packet loss rate can be used to measure wireless air interface quality. In step S120, the number of retransmissions to be omitted is determined based on the wireless air interface quality of the target channel.
[0044] The occurrence of multiple retransmissions of the same data packet indicates that all retransmissions prior to the final transmission of that data packet failed. Therefore, all retransmissions prior to the final transmission of that data packet can actually be omitted.
[0045] The worse the radio interface quality of the target channel, the more retransmissions usually occur; conversely, the better the radio interface quality of the target channel, the fewer retransmissions usually occur. Therefore, the number of retransmissions to be omitted can be determined based on the radio interface quality of the target channel.
[0046] Optionally, the radio interface quality of the target channel is inversely proportional to the number of retransmissions omitted. The worse the radio interface quality of the target channel, the more retransmissions are omitted; the better the radio interface quality of the target channel, the fewer retransmissions are omitted.
[0047] In step S130, the retransmission of the data packet is omitted in accordance with the omitted retransmission count.
[0048] When both the first device and the second device support the wireless interaction method provided in an embodiment of this application, multiple subsequent retransmissions of data packets are omitted based on a determined number of omitted retransmissions.
[0049] For example, if the number of retransmissions is 10, then the data packet that should have been retransmitted in the next 10 retransmissions will not be retransmitted.
[0050] By employing the technical solution of this application embodiment, when a data packet is retransmitted, the radio air interface quality of the target channel for retransmission can be obtained; and based on the radio air interface quality of the target channel, the number of retransmissions to be omitted can be determined; and the data packet is omitted from retransmission according to the number of retransmissions to be omitted. Thus, by omitting the retransmission of the data packet, radio interaction resources can be saved, thereby reducing the impact on radio interaction quality.
[0051] Based on the above technical solution, as an embodiment, determining the number of omitted retransmissions according to the radio air interface quality of the target channel may include: determining a first calculation method according to the radio air interface quality of the target channel; wherein different radio air interface qualities correspond to different first calculation methods; and calculating the number of omitted retransmissions according to the first calculation method.
[0052] A first calculation method corresponding to the quality of each wireless air interface can be preset. When the first device and the second device establish a single-device connection, the first calculation method corresponding to the wireless air interface quality of the target channel can be determined according to the wireless air interface quality of the target channel. In one embodiment, the wireless air interface quality is measured by the packet loss rate; when the packet loss rate is greater than 20%, the corresponding first calculation method is N = device connection timeout time / connection interval / 3; when the packet loss rate is greater than 15% but not greater than 20%, the corresponding first calculation method is N = device connection timeout time / connection interval / 6; when the packet loss rate is greater than 10% but not greater than 15%, the corresponding first calculation method is N = device connection timeout time / connection interval / 10; when the packet loss rate is greater than 5% but not greater than 10%, the corresponding first calculation method is N = device connection timeout time / connection interval / 20; when the packet loss rate is greater than 2% but not greater than 5%, the corresponding first calculation method is N = 1; when the packet loss rate is not greater than 2%, the corresponding first calculation method is N = 0; where N represents the number of retransmissions omitted.
[0053] After determining the first calculation method corresponding to the wireless air interface quality of the target channel, the parameters required by the first calculation method are obtained, and the number of omitted retransmissions is calculated based on the obtained parameters.
[0054] For example, if the first calculation method for the wireless air interface quality of the target channel is N = device connection timeout / connection interval / 10, then the device connection timeout and connection interval are obtained, and N is calculated based on the device connection timeout and connection interval. If the device connection timeout is 2s and the connection interval is 20ms, then N = 2s ÷ 20ms ÷ 10 = 10.
[0055] By adopting the technical solution of the embodiments of this application, a first calculation method corresponding to the wireless air interface quality of the target channel can be determined, and the number of retransmissions to be omitted can be calculated according to the determined first calculation method, so that the data packets to be retransmitted can be omitted according to the number of retransmissions to be omitted, thereby saving wireless interaction resources and reducing the impact on wireless interaction quality.
[0056] Based on the above technical solution, as an embodiment, determining the number of omitted retransmissions according to the wireless air interface quality of the target channel may include: obtaining the wireless multi-device status of the first device; determining a second calculation method based on the wireless multi-device status of the first device and the wireless air interface quality of the target channel; wherein different wireless multi-device statuses and wireless air interface qualities correspond to different second calculation methods; and calculating the number of omitted retransmissions according to the second calculation method.
[0057] When multiple devices are connected (first and second devices), the calculation method for omitting retransmission counts can also consider the wireless multi-device situation of the first device. The wireless multi-device situation of the first device can reflect its priority. This situation may include, but is not limited to: device type, device interaction frequency level, and / or device connection timeout. Device type can be a mouse, computer, gamepad, or headset, etc. The device interaction frequency level is determined based on the number of data interactions triggered per unit time.
[0058] Different device types, device interaction frequency levels, and / or device connection timeouts can be preset, along with their corresponding priorities. The priority of the first device is determined based on the various parameters included in the wireless multi-device scenario of the first device.
[0059] A second calculation method is preset for different priorities and different wireless air interface qualities. In one embodiment, the wireless air interface quality is measured by the packet loss rate. When the first device has a first priority and the packet loss rate of the target channel is greater than 10%, the corresponding second calculation method N = device connection timeout / connection interval / 3; when the first device has a first priority and the packet loss rate of the target channel is not greater than 10%, the corresponding second calculation method N = device connection timeout / connection interval / 6; when the first device has a second priority and the packet loss rate of the target channel is greater than 10%, the corresponding second calculation method N = device connection timeout / connection interval / 10; when the first device has a second priority and the packet loss rate of the target channel is not greater than 10%, the corresponding second calculation method N = device connection timeout / connection interval / 20; when the first device has a third priority and the packet loss rate of the target channel is greater than 10%, the corresponding second calculation method N = 1; when the first device has a third priority and the packet loss rate of the target channel is not greater than 10%, the corresponding second calculation method N = 0; where N represents the number of retransmissions omitted, the first priority is lower than the second priority, and the second priority is lower than the third priority. Based on the wireless multi-device situation of the first device, the priority of the first device can be determined. Based on the priority of the first device and the wireless air interface quality of the target channel, a corresponding second calculation method can be determined. Following the determined second calculation method, the parameters required for calculation are obtained, and the number of omitted retransmissions is calculated based on the second calculation method and the required parameters.
[0060] For example, when the second calculation method corresponding to the priority of the first device and the packet loss rate of the target channel is N = device connection timeout / connection interval / 10, then the device connection timeout and connection interval are obtained, and N is calculated based on the device connection timeout and connection interval. If the device connection timeout is 2s and the connection interval is 20ms, then N = 2s ÷ 20ms ÷ 10 = 10 can be determined. Using the technical solution of this application embodiment, when the first device and the second device are connected to multiple devices, the priority of the first device can be determined according to the wireless multi-device situation of the first device. The second calculation method is determined according to the priority of the first device and the wireless air interface quality of the target channel, and the number of retransmissions to be omitted is calculated according to the determined second calculation method. This allows subsequent retransmissions of the data packets to be omitted based on the number of retransmissions to be omitted, thereby saving wireless interaction resources and reducing the impact on wireless interaction quality. As required by the protocol or to confirm reliable data transmission, the first device sends data packets to the second device, and the second device sends test data packets to the first device. In one embodiment, the second device first sends test data packets to the first device each time. The first device receives the test data packets to prove that the wireless transmission link is reliable, and then the first device sends data packets to the second device. In another embodiment, the first device sends a data packet to the second device, and after receiving the data packet, the second device sends a test data packet to the first device to inform the first device that the second device has received the data packet.
[0061] Test packets are packets used to ensure the reliability of the transmission link. Test packets may differ depending on the circumstances. A test packet can be an empty packet, a 1-bit packet, a packet informing the first device that it has received the packet, or a packet informing the first device that it can send the packet, etc.
[0062] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on classic Bluetooth technology, the step of omitting the retransmission of the data packet according to the number of omitted retransmissions may include: reducing the number of data packets retransmitted according to the number of omitted retransmissions.
[0063] Figure 3 is an interactive schematic diagram of omitting retransmission data packets in the classic Bluetooth technology provided in an embodiment of this application. As shown in Figure 3, after determining the number of retransmissions to be omitted N, the classic Bluetooth technology can directly omit the next N retransmission data packets. During the period of omitting retransmission data packets, the second device sends a test data packet to the first device, but because N retransmission data packets are omitted, the first device omits retransmitting data packets to the second device.
[0064] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on Bluetooth Low Energy technology, the step of omitting the number of times the data packet is retransmitted according to the number of times the retransmission is omitted may include: wireless interaction omitting the number of times the retransmission is omitted for connection intervals.
[0065] Figure 4 is a schematic diagram illustrating the interaction of omitting retransmission data packets in Bluetooth Low Energy technology according to an embodiment of this application. As shown in Figure 4, after determining the number of retransmissions to be omitted, the Bluetooth Low Energy technology will omit the next N connection interval interactions. During the period of omitting retransmission data packets, the second device sends test data packets to the first device, but because N connection interval interactions are omitted, the first device omits retransmitting data packets to the second device in the next N connection intervals.
[0066] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on Star Flash technology, the step of omitting the number of times the data packet is retransmitted according to the number of times the retransmission is omitted may include: wireless interaction omitting the number of times the retransmission is omitted for an interaction interval.
[0067] Figure 5 is a schematic diagram illustrating the omission of retransmission data packets in the StarScan technology provided in an embodiment of this application. As shown in Figure 5, after determining the number of retransmissions to be omitted, the StarScan technology will omit the next N interaction intervals. During the period of omitting retransmission data packets, the second device sends test data packets to the first device, but because N interaction intervals are omitted, the first device omits retransmitting data packets to the second device in the next N interaction intervals.
[0068] Figure 6 is a schematic diagram of the steps of a wireless interaction method provided in an embodiment of this application. According to the wireless interaction method shown in Figure 6, after omitting the retransmission of the data packet according to the omitted retransmission count, the method may further include at least steps S210 to S220, which are described in detail below:
[0069] In step S210, it is detected whether the data packet still needs to be retransmitted.
[0070] In step S220, when it is detected that the data packet is still being retransmitted, the target channel for retransmission is switched to a high-quality channel.
[0071] After omitting the retransmission count as described above, if the data packet is still being retransmitted, the channel through which the first and second devices interact can be switched from the target channel to a superior channel. Here, "still being retransmitted" means that the data packet has been retransmitted two or more times after omitting the retransmission count as described above.
[0072] A high-quality channel can be a channel with better air interface quality than the target channel, a channel whose air interface quality meets the requirements of a high-quality channel, or the channel with the best air interface quality among multiple unused channels. Using the technical solution of this application embodiment, when retransmission of data packets is detected, the target channel is switched to a high-quality channel. On the high-quality channel, data packets can be successfully sent to the second device as quickly as possible, thereby avoiding repeated retransmissions, saving wireless interaction resources, and reducing the impact on wireless interaction quality.
[0073] Based on the above technical solution, as an embodiment, when it is detected that the data packet is still being retransmitted, switching the target channel for retransmission to a high-quality channel may include: generating a high-quality channel request when it is detected that the data packet is still being retransmitted; sending the high-quality channel request to a second device receiving the data packet; obtaining the target identifier of the high-quality channel determined by the second device in response to the high-quality channel request; and switching the target channel for retransmission to the high-quality channel corresponding to the target identifier.
[0074] A premium channel request is used to request a peer device to switch the channel used for wireless interaction from the target channel to a premium channel. A premium channel request can be generated by the first device. When the first device detects that it is still retransmitting the same data packet, it generates a premium channel request and sends it to the second device receiving the data packet.
[0075] In response to a superior channel request, the second device can determine the superior channel by detecting the radio interface quality of each channel and obtain the target identifier of the superior channel. The second device sends the target identifier of the determined superior channel to the first device, so as to inform the first device to switch the channel for wireless interaction with the second device from the target channel to the superior channel corresponding to the target identifier.
[0076] By adopting the technical solution of this application embodiment, when it is detected that there is still retransmission of data packets, the first device can generate a high-quality channel request and send it to the second device, thereby obtaining the target identifier of the high-quality channel returned by the second device, so as to switch the channel for wireless interaction from the target channel to the high-quality channel corresponding to the target identifier, thereby realizing the successful transmission of data packets to the second device as soon as possible on the high-quality channel, avoiding repeated retransmission of data packets, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.
[0077] Based on the above technical solution, as an embodiment, when it is detected that the data packet is still being retransmitted, switching the target channel for retransmission to a high-quality channel may include: when it is detected that the data packet is still being retransmitted, obtaining a high-quality channel request sent by the second device receiving the data packet; in response to the high-quality channel request, determining the target identifier of the high-quality channel; returning the target identifier of the high-quality channel to the second device; and switching the target channel for retransmission to the high-quality channel corresponding to the target identifier.
[0078] A premium channel request is used to request a peer device to switch the channel used for wireless interaction from the target channel to a premium channel. A premium channel request can be generated by a second device. When the second device detects that the first device is still retransmitting the same data packet, it generates a premium channel request and sends it to the first device.
[0079] In response to a premium channel request, the first device can determine the premium channel by detecting the radio interface quality of each channel and obtain the target identifier of the premium channel. The first device sends the target identifier of the determined premium channel to the second device, informing the second device to switch the channel through which it wirelessly interacts with the first device from the target channel to the premium channel corresponding to the target identifier.
[0080] Using the technical solution of this application embodiment, when retransmission of data packets is detected, the first device can respond to the high-quality channel request sent by the second device by returning a target identifier of a high-quality channel to the second device. This switches the channel for wireless interaction from the target channel to the high-quality channel corresponding to the target identifier, thereby enabling the data packet to be successfully sent to the second device as quickly as possible on the high-quality channel, avoiding repeated retransmissions of data packets, thus saving wireless interaction resources and reducing the impact on wireless interaction quality. Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on classic Bluetooth technology, switching the target channel for retransmission to the high-quality channel may include: switching the target channel to the high-quality channel from the next retransmission of the data packet.
[0081] Figure 7 is a schematic diagram of channel switching in the classic Bluetooth technology provided in an embodiment of this application. As shown in Figure 7, when it is necessary to switch the target channel to a superior channel, the classic Bluetooth technology can directly switch the target channel to a superior channel during the next retransmission of data packets, and use the superior channel to retransmit the next data packet.
[0082] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on Bluetooth Low Energy technology, the step of switching the target channel for retransmission to a high-quality channel may include: starting from the next connection interval, switching the target channel to the high-quality channel.
[0083] Figure 8 is a schematic diagram of channel switching interaction in Bluetooth Low Energy technology according to an embodiment of this application. As shown in Figure 8, when it is necessary to switch the target channel to a superior channel, Bluetooth Low Energy technology can switch the target channel to a superior channel in the next connection interval, and the first device and the second device will interact based on the superior channel in the next connection interval.
[0084] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on Star Flash technology, the step of switching the target channel for retransmission to a high-quality channel may include: starting from the next interaction interval, switching the target channel to the high-quality channel.
[0085] Figure 9 is a schematic diagram of channel switching interaction in the StarSignal technology provided in an embodiment of this application. As shown in Figure 9, when it is necessary to switch the target channel to a superior channel, the StarSignal technology can switch the target channel to the superior channel in the next interaction interval, and the first device and the second device interact based on the superior channel in the next interaction interval.
[0086] Figure 10 is a schematic diagram of the steps of a wireless interaction method provided in an embodiment of this application. According to the wireless interaction method shown in Figure 10, the method is applied to a second device, and the method includes at least steps S310 to S330, which are described in detail below:
[0087] In step S310, when a data packet is retransmitted, the radio interface quality of the target channel for the retransmission is obtained.
[0088] In step S320, the number of retransmissions to be omitted is determined based on the radio interface quality of the target channel.
[0089] In step S330, the number of retransmissions omitted is sent to the first device that retransmits the data packet.
[0090] The omitted retransmission count is used to instruct the first device to omit retransmissions of the data packet according to the omitted retransmission count. The second device can be a device that receives data packets retransmitted by the first device. When the second device detects that the first device is retransmitting data packets, it can determine the target channel for retransmitting the data packet and obtain the radio interface quality of the target channel.
[0091] The occurrence of multiple retransmissions of the same data packet indicates that all retransmissions prior to the final transmission of that data packet failed. Therefore, all retransmissions prior to the final transmission of that data packet can actually be omitted.
[0092] The worse the radio interface quality of the target channel, the more retransmissions usually occur; conversely, the better the radio interface quality of the target channel, the fewer retransmissions usually occur. Therefore, the number of retransmissions to be omitted can be determined based on the radio interface quality of the target channel.
[0093] Optionally, the radio interface quality of the target channel is inversely proportional to the number of retransmissions omitted. The worse the radio interface quality of the target channel, the more retransmissions are omitted; the better the radio interface quality of the target channel, the fewer retransmissions are omitted.
[0094] After determining the number of retransmissions to be omitted, the second device sends the number of retransmissions to be omitted to the first device, instructing the first device to omit retransmissions of the data packet according to the number of retransmissions to be omitted.
[0095] By employing the technical solution of this application embodiment, when a data packet is retransmitted, the radio air interface quality of the target channel for retransmission can be obtained; and based on the radio air interface quality of the target channel, the number of retransmissions to be omitted can be determined; so that the first device omits retransmissions of the data packet according to the number of retransmissions to be omitted. Thus, by omitting retransmissions of the data packet, radio interaction resources can be saved, thereby reducing the impact on radio interaction quality.
[0096] Based on the above technical solution, as an embodiment, determining the number of omitted retransmissions according to the radio air interface quality of the target channel may include: determining a first calculation method according to the radio air interface quality of the target channel; wherein different radio air interface qualities correspond to different first calculation methods; and calculating the number of omitted retransmissions according to the first calculation method.
[0097] A first calculation method corresponding to the wireless air interface quality can be preset. When the first device and the second device establish a single-device connection, the first calculation method corresponding to the wireless air interface quality of the target channel can be determined according to the wireless air interface quality of the target channel. After determining the first calculation method corresponding to the wireless air interface quality of the target channel, the parameters required for the first calculation method are obtained, and the number of retransmissions to be omitted is calculated based on the obtained parameters.
[0098] By adopting the technical solution of the embodiments of this application, a first calculation method corresponding to the wireless air interface quality of the target channel can be determined, and the number of retransmissions to be omitted can be calculated according to the determined first calculation method, so that the data packets to be retransmitted can be omitted according to the number of retransmissions to be omitted, thereby saving wireless interaction resources and reducing the impact on wireless interaction quality.
[0099] Based on the above technical solution, as an embodiment, determining the number of omitted retransmissions according to the wireless air interface quality of the target channel may include: obtaining the wireless multi-device status of the first device; determining a second calculation method based on the wireless multi-device status of the first device and the wireless air interface quality of the target channel; wherein different wireless multi-device statuses and wireless air interface qualities correspond to different second calculation methods; and calculating the number of omitted retransmissions according to the second calculation method.
[0100] When multiple devices are connected (first and second devices), the calculation method for omitting retransmission counts can also consider the wireless multi-device situation of the first device. The wireless multi-device situation of the first device can reflect its priority. This situation may include, but is not limited to: device type, device interaction frequency level, and / or device connection timeout. Device type can be a mouse, computer, gamepad, or headset, etc. The device interaction frequency level is determined based on the number of data interactions triggered per unit time.
[0101] Different device types, device interaction frequency levels, and / or device connection timeouts can be preset, along with their corresponding priorities. The priority of the first device is determined based on various parameters included in the wireless multi-device scenario. A second calculation method corresponding to different priorities and different wireless air interface qualities is preset.
[0102] Based on the wireless multi-device situation of the first device, the priority of the first device can be determined. Based on the priority of the first device and the wireless air interface quality of the target channel, a corresponding second calculation method can be determined. Following the determined second calculation method, the parameters required for calculation are obtained, and the number of omitted retransmissions is calculated based on the second calculation method and the required parameters.
[0103] Using the technical solution of this application embodiment, when the first device and the second device are connected to multiple devices, the priority of the first device can be determined according to the wireless multi-device situation of the first device. A second calculation method is determined based on the priority of the first device and the wireless air interface quality of the target channel. The number of retransmissions to be omitted is calculated according to the determined second calculation method, so that subsequent retransmissions of the data packets can be omitted based on the number of retransmissions to be omitted, thereby saving wireless interaction resources and reducing the impact on wireless interaction quality. In one embodiment, when the second device performs wireless interaction based on classic Bluetooth technology, omitting the retransmission of the data packets according to the number of retransmissions to be omitted may include: reducing the number of data packets retransmitted by the number of retransmissions to be omitted.
[0104] In one embodiment, when the second device performs wireless interaction based on Bluetooth Low Energy technology, the step of omitting the number of times the data packet is retransmitted according to the number of times the retransmission is omitted may include: wireless interaction with a connection interval omitting the number of times the retransmission is omitted.
[0105] In one embodiment, when the second device performs wireless interaction based on StarFlash technology, the step of omitting the number of times the data packet is retransmitted according to the number of times the retransmission is omitted may include: wireless interaction omitting the number of times the retransmission is omitted for an interaction interval.
[0106] Based on the above technical solution, as an embodiment, after sending the omitted retransmission count to the first device for retransmitting the data packet, the method may further include: detecting whether the data packet still needs to be retransmitted; when the data packet still needs to be retransmitted, switching the target channel for retransmission to a high-quality channel.
[0107] If, after the first device omits retransmissions of the data packet according to the omits retransmission count, it detects that the data packet is still being retransmitted, the channel through which the first and second devices interact can be switched from the target channel to a superior channel. Here, "still being retransmitted" means that the data packet has been retransmitted two or more times after the omits retransmission count.
[0108] A high-quality channel can be a channel with better air interface quality than the target channel, a channel whose air interface quality meets the requirements of a high-quality channel, or the channel with the best air interface quality among multiple unused channels. Using the technical solution of this application embodiment, when retransmission of data packets is detected, the target channel is switched to a high-quality channel. On the high-quality channel, data packets can be successfully sent to the second device as quickly as possible, thereby avoiding repeated retransmissions, saving wireless interaction resources, and reducing the impact on wireless interaction quality.
[0109] Based on the above technical solution, as an embodiment, when it is detected that the data packet is still being retransmitted, switching the target channel for retransmission to a high-quality channel may include: generating a high-quality channel request when it is detected that the data packet is still being retransmitted; sending the high-quality channel request to the first device; obtaining the target identifier of the high-quality channel determined by the first device in response to the high-quality channel request; and switching the target channel for retransmission to the high-quality channel corresponding to the target identifier.
[0110] A premium channel request is used to request a peer device to switch the channel used for wireless interaction from the target channel to a premium channel. A premium channel request can be generated by a second device. When the second device detects that the first device is still retransmitting the same data packet, it generates a premium channel request and sends it to the first device.
[0111] In response to a premium channel request, the first device can determine the premium channel by detecting the radio interface quality of each channel and obtain the target identifier of the premium channel. The first device sends the target identifier of the determined premium channel to the second device, informing the second device to switch the channel through which it wirelessly interacts with the first device from the target channel to the premium channel corresponding to the target identifier.
[0112] Using the technical solution of this application embodiment, when retransmission of data packets is detected, the first device can respond to a high-quality channel request sent by the second device by returning a target identifier of a high-quality channel to the second device. This switches the channel for wireless interaction from the target channel to the high-quality channel corresponding to the target identifier, thereby enabling the data packets to be successfully sent to the second device as quickly as possible on the high-quality channel, avoiding repeated retransmissions, saving wireless interaction resources, and reducing the impact on wireless interaction quality. Based on the above technical solution, as an embodiment, switching the target channel for retransmission to a high-quality channel when retransmission of the data packets is detected may include: obtaining a high-quality channel request sent by the first device when retransmission of the data packets is detected; determining the target identifier of the high-quality channel in response to the high-quality channel request; returning the target identifier of the high-quality channel to the first device; and switching the target channel for retransmission to the high-quality channel corresponding to the target identifier.
[0113] A premium channel request is used to request a peer device to switch the channel used for wireless interaction from the target channel to a premium channel. A premium channel request can be generated by the first device. When the first device detects that it is still retransmitting the same data packet, it generates a premium channel request and sends it to the second device receiving the data packet.
[0114] In response to a superior channel request, the second device can determine the superior channel by detecting the radio interface quality of each channel and obtain the target identifier of the superior channel. The second device sends the target identifier of the determined superior channel to the first device, so as to inform the first device to switch the channel for wireless interaction with the second device from the target channel to the superior channel corresponding to the target identifier.
[0115] By adopting the technical solution of this application embodiment, when it is detected that there is still retransmission of data packets, the first device can generate a high-quality channel request and send it to the second device, thereby obtaining the target identifier of the high-quality channel returned by the second device, so as to switch the channel for wireless interaction from the target channel to the high-quality channel corresponding to the target identifier, thereby realizing the successful transmission of data packets to the second device as soon as possible on the high-quality channel, avoiding repeated retransmission of data packets, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.
[0116] Optionally, when the second device performs wireless interaction based on classic Bluetooth technology, switching the target channel for retransmission to a superior channel may include: switching the target channel to the superior channel from the next retransmission of the data packet.
[0117] Optionally, when the first device performs wireless interaction based on Bluetooth Low Energy technology, switching the target channel for retransmission to a superior channel may include: switching the target channel to the superior channel starting from the next connection interval. Optionally, when the first device performs wireless interaction based on StarFlash technology, switching the target channel for retransmission to a superior channel may include: switching the target channel to the superior channel starting from the next interaction interval. To facilitate better implementation of the wireless interaction method of this application, this application also provides a wireless interaction device based on the above wireless interaction method. The meanings of the terms are the same as in the above wireless interaction method, and specific implementation details can be found in the description of the method embodiments.
[0118] Please refer to Figure 11, which is a schematic diagram of the structure of a wireless interaction device provided in an embodiment of this application. The wireless interaction device is applied to a first device and includes:
[0119] The first quality acquisition module 101 is used to acquire the radio air interface quality of the target channel for retransmission when a data packet is retransmitted.
[0120] The first number determination module 102 is used to determine the number of retransmissions to be omitted based on the radio air interface quality of the target channel; and the retransmission omission module 103 is used to omit the retransmission of the data packet according to the number of retransmissions to be omitted.
[0121] In one embodiment, the first number determination module 102 includes:
[0122] The first method determination unit is used to determine a first calculation method based on the radio air interface quality of the target channel; wherein different radio air interface qualities correspond to different first calculation methods;
[0123] The first calculation unit is used to calculate the number of omitted retransmissions according to the first calculation method.
[0124] In one embodiment, the first number determination module 102 includes:
[0125] The situation acquisition unit is used to acquire the wireless multi-device situation of the first device;
[0126] The second method determination unit is used to determine a second calculation method based on the wireless multi-device situation of the first device and the wireless air interface quality of the target channel; wherein different wireless multi-device situations and wireless air interface quality correspond to different second calculation methods;
[0127] The second calculation unit is used to calculate the number of omitted retransmissions according to the second calculation method.
[0128] In one embodiment, when the first device performs wireless interaction based on classic Bluetooth technology, the retransmission omission module 103 includes:
[0129] The reduction unit is used to reduce the number of data packets that are omitted from the retransmission count.
[0130] In one embodiment, when the first device performs wireless interaction based on Bluetooth Low Energy technology, the retransmission omission module 103 includes:
[0131] The first omission unit is used to omit the wireless interaction of the number of connection intervals for the omitted retransmissions.
[0132] In one embodiment, when the first device performs wireless interaction based on StarFlash technology, the omitted retransmission module 103 includes:
[0133] The second omission unit is used to omit the wireless interaction of the number of interaction intervals for the omitted retransmissions.
[0134] In one embodiment, after omitting the retransmission of the data packet according to the omitted retransmission count, the apparatus further includes:
[0135] The retransmission detection module is used to detect whether the data packet still needs to be retransmitted;
[0136] The channel switching module is used to switch the target channel being retransmitted to a higher quality channel when it is detected that the data packet is still being retransmitted.
[0137] In one embodiment, the channel switching module includes:
[0138] The request generation unit is used to generate a quality channel request when it is detected that the data packet is still being retransmitted.
[0139] A request sending unit is used to send the premium channel request to a second device that receives the data packet;
[0140] The identifier acquisition unit is used to acquire the target identifier of the high-quality channel determined by the second device in response to the high-quality channel request;
[0141] A first switching unit is configured to switch the target channel undergoing retransmission to the high-quality channel corresponding to the target identifier. In one embodiment, the channel switching module includes:
[0142] The request acquisition unit is used to acquire a quality channel request sent by the second device receiving the data packet when it is detected that there is still a retransmission of the data packet;
[0143] The identifier determination unit is used to determine the target identifier of the high-quality channel in response to the high-quality channel request;
[0144] An identifier return unit is used to return the target identifier of the high-quality channel to the second device;
[0145] The second switching unit is used to switch the target channel undergoing retransmission to the superior channel corresponding to the target identifier. In one embodiment, when the first device performs wireless interaction based on classic Bluetooth technology, the channel switching module includes:
[0146] A third switching unit is configured to switch the target channel to the superior channel starting from the next retransmission of the data packet. In one embodiment, when the first device performs wireless interaction based on Bluetooth Low Energy technology, the channel switching module includes:
[0147] The fourth switching unit is used to switch the target channel to the superior channel starting from the next connection interval.
[0148] In one embodiment, when the first device performs wireless interaction based on StarFlash technology, the channel switching module includes: a fifth switching unit, used to switch the target channel to the high-quality channel starting from the next interaction interval.
[0149] By employing the technical solution of this application embodiment, when a data packet is retransmitted, the radio air interface quality of the target channel for retransmission can be obtained; and based on the radio air interface quality of the target channel, the number of retransmissions to be omitted can be determined; and the data packet is omitted from retransmission according to the number of retransmissions to be omitted. Thus, by omitting the retransmission of the data packet, radio interaction resources can be saved, thereby reducing the impact on radio interaction quality.
[0150] Referring to Figure 12, which is a schematic diagram of the structure of a wireless interaction device provided in an embodiment of this application, the wireless interaction device is applied to a second device and includes:
[0151] The second quality acquisition module 201 is used to acquire the radio air interface quality of the target channel for retransmission when a data packet is retransmitted.
[0152] The second retransmission determination module 202 is used to determine the number of retransmissions to be omitted based on the radio air interface quality of the target channel; and the retransmission sending module 203 is used to send the number of retransmissions to be omitted to the first device retransmitting the data packet; the number of retransmissions to be omitted is used to: instruct the first device to omit retransmission of the data packet according to the number of retransmissions to be omitted.
[0153] In one embodiment, the second number determination module 202 includes:
[0154] The third method determination unit is used to determine a first calculation method based on the radio air interface quality of the target channel; wherein different radio air interface qualities correspond to different first calculation methods;
[0155] The third calculation unit is used to calculate the number of omitted retransmissions according to the first calculation method.
[0156] In one embodiment, the second number determination module 202 includes:
[0157] A device status acquisition unit is used to acquire the wireless multi-device status of the first device;
[0158] The fourth method determination unit is used to determine the second calculation method based on the wireless multi-device situation and wireless air interface quality of the first device; wherein different wireless multi-device situations and wireless air interface quality correspond to different second calculation methods;
[0159] The fourth calculation unit is used to calculate the number of omitted retransmissions according to the second calculation method.
[0160] In one embodiment, after sending the omitted retransmission count to the first device for retransmitting the data packet, the apparatus further includes:
[0161] The detection module is used to detect whether the data packet still needs to be retransmitted;
[0162] The switching module is used to switch the target channel that is being retransmitted to a higher quality channel when it is detected that the data packet is still being retransmitted.
[0163] In one embodiment, the switching module includes:
[0164] The generation unit is used to generate a quality channel request when it is detected that the data packet is still being retransmitted;
[0165] A sending unit is used to send the premium channel request to the first device;
[0166] The acquisition unit is used to acquire the target identifier of the high-quality channel determined by the first device in response to the high-quality channel request; the sixth switching unit is used to switch the target channel for retransmission to the high-quality channel corresponding to the target identifier.
[0167] In one embodiment, the switching module includes:
[0168] A high-quality channel request acquisition unit is used to acquire a high-quality channel request sent by the first device when it is detected that the data packet is still being retransmitted.
[0169] A target identifier determination unit is configured to determine the target identifier of the high-quality channel in response to the high-quality channel request.
[0170] A target identifier return unit is used to return the target identifier of the high-quality channel to the first device;
[0171] The seventh switching unit is used to switch the target channel undergoing retransmission to the high-quality channel corresponding to the target identifier. Using the technical solution of this application embodiment, when a data packet is retransmitted, the radio interface quality of the target channel undergoing retransmission can be obtained; and based on the radio interface quality of the target channel, the number of retransmissions to be omitted can be determined; and the data packet is omitted from retransmission according to the number of retransmissions to be omitted. Thus, by omitting the retransmission of the data packet, radio interaction resources can be saved, thereby reducing the impact on radio interaction quality.
[0172] For specific limitations regarding the wireless interactive device, please refer to the limitations on the wireless interactive method above, which will not be repeated here. Each module in the aforementioned wireless interactive device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the computer device, or stored in software in the memory of the computer device, so that the processor can call and execute the operations corresponding to each module.
[0173] In addition, this application also provides an electronic device, as shown in FIG13, which illustrates a schematic diagram of the structure of the electronic device involved in this application. Specifically:
[0174] The electronic device may include components such as a processor 301 with one or more processing cores and a memory 302 of one or more computer-readable storage media. Those skilled in the art will understand that the electronic device structure shown in FIG13 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0175] The processor 301 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 302, and by calling data stored in the memory 302, thereby providing overall monitoring of the electronic device. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 301.
[0176] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, 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 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
[0177] In one embodiment, the electronic device further includes a power supply 303 for supplying power to the various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0178] In one embodiment, the electronic device may further include an input unit 304, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0179] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302, thereby implementing the steps in any of the wireless interaction methods provided in the embodiments of this application.
[0180] Those skilled in the art will understand that the structure shown in Figure 13 is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or may combine certain components, or may have different component arrangements.
[0181] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the methods described in any embodiment of this application.
[0182] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of this application.
[0183] In some embodiments, a computer program product is also provided, including a computer program or instructions that, when executed by a processor, implement the methods described in any embodiment of this application.
[0184] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0185] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0186] Therefore, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the wireless interaction methods provided in this application. Specific implementations of the above operations can be found in the preceding embodiments and will not be repeated here.
[0187] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0188] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the wireless interaction methods provided in this application, the beneficial effects that any of the wireless interaction methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0189] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0190] The foregoing has provided a detailed description of a wireless interaction method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A wireless interaction method, wherein, Applied to the first device, including: When a data packet is retransmitted, the radio interface quality of the target channel for retransmission is obtained; based on the radio interface quality of the target channel, the number of retransmissions to be omitted is determined; and According to the rule of omitting retransmissions, the retransmission of the data packet is omitted.
2. The method according to claim 1, wherein, The step of determining the number of retransmissions to be omitted based on the radio interface quality of the target channel includes: A first calculation method is determined based on the radio air interface quality of the target channel; wherein different radio air interface qualities correspond to different first calculation methods. The number of omitted retransmissions is calculated according to the first calculation method.
3. The method according to claim 1, wherein, The step of determining the number of retransmissions to be omitted based on the radio interface quality of the target channel includes: Obtain the wireless multi-device status of the first device; A second calculation method is determined based on the wireless multi-device situation of the first device and the wireless air interface quality of the target channel; wherein, different wireless multi-device situations and wireless air interface quality correspond to different second calculation methods; The number of omitted retransmissions is calculated according to the second calculation method.
4. The method according to claim 1, wherein, When the first device performs wireless interaction based on classic Bluetooth technology, the step of omitting retransmissions of the data packet according to the omitted retransmission count includes: Reduce the number of retransmissions by omitting the number of data packets.
5. The method according to claim 1, wherein, When the first device performs wireless interaction based on Bluetooth Low Energy technology, the step of omitting the number of times the data packet is retransmitted according to the omitted retransmission count includes: The wireless interaction of the connection interval with the number of retransmissions omitted.
6. The method according to claim 1, wherein, When the first device performs wireless interaction based on StarFlash technology, the step of omitting the number of times the data packet is retransmitted according to the omitted retransmission count includes: The wireless interaction with the number of retransmissions and the interaction intervals mentioned above are omitted.
7. The method according to claim 1, wherein, After omitting the retransmission of the data packet according to the omitted retransmission count, the method further includes: Detect whether the data packet still needs to be retransmitted; When it is detected that the data packet is still being retransmitted, the target channel for retransmission will be switched to a higher quality channel.
8. The method according to claim 7, wherein, The step of switching the target channel for retransmission to a premium channel when it is detected that the data packet is still being retransmitted includes: generating a premium channel request when it is detected that the data packet is still being retransmitted. The premium channel request is sent to the second device receiving the data packet; Obtain the target identifier of the premium channel determined by the second device in response to the premium channel request; The target channel for retransmission will be switched to the high-quality channel corresponding to the target identifier.
9. The method according to claim 7, wherein, The step of switching the target channel for retransmission to a premium channel when it is detected that the data packet is still being retransmitted includes: obtaining a premium channel request sent by the second device receiving the data packet when it is detected that the data packet is still being retransmitted. In response to the premium channel request, determine the target identifier of the premium channel; The target identifier of the high-quality channel is returned to the second device; The target channel for retransmission will be switched to the high-quality channel corresponding to the target identifier.
10. The method according to claim 7, wherein, When the first device performs wireless interaction based on classic Bluetooth technology, switching the target channel for retransmission to a superior channel includes: Starting from the next retransmission of the data packet, the target channel will be switched to the premium channel.
11. The method according to claim 7, wherein, When the first device performs wireless interaction based on Bluetooth Low Energy technology, switching the target channel for retransmission to a superior channel includes: Starting from the next connection interval, the target channel is switched to the premium channel.
12. The method according to claim 7, wherein, When the first device performs wireless interaction based on StarFlash technology, switching the target channel for retransmission to a superior channel includes: Starting from the next interaction interval, the target channel will be switched to the premium channel.
13. A wireless interaction method, wherein, Applied to a second device, including: When a data packet is retransmitted, obtain the radio air interface quality of the target channel for the retransmission. The number of retransmissions to be omitted is determined based on the radio interface quality of the target channel; and The omitted retransmission count is sent to the first device that retransmits the data packet; the omitted retransmission count is used to: instruct the first device to omit retransmission of the data packet according to the omitted retransmission count.
14. The method according to claim 13, wherein, The step of determining the number of retransmissions to be omitted based on the radio interface quality of the target channel includes: A first calculation method is determined based on the radio air interface quality of the target channel; wherein different radio air interface qualities correspond to different first calculation methods. The number of omitted retransmissions is calculated according to the first calculation method.
15. The method according to claim 13, wherein, The step of determining the number of retransmissions to be omitted based on the radio interface quality of the target channel includes: Obtain the wireless multi-device status of the first device; The second calculation method is determined based on the wireless multi-device situation and wireless air interface quality of the first device; wherein, different wireless multi-device situations and wireless air interface quality correspond to different second calculation methods; The number of omitted retransmissions is calculated according to the second calculation method.
16. The method according to claim 13, wherein, After sending the omitted retransmission count to the first device retransmitting the data packet, the method further includes: Detect whether the data packet still needs to be retransmitted; When it is detected that the data packet is still being retransmitted, the target channel for retransmission will be switched to a higher quality channel.
17. The method according to claim 16, wherein, The step of switching the target channel for retransmission to a premium channel when it is detected that the data packet is still being retransmitted includes: generating a premium channel request when it is detected that the data packet is still being retransmitted. Send the premium channel request to the first device; Obtain the target identifier of the premium channel determined by the first device in response to the premium channel request; The target channel for retransmission will be switched to the high-quality channel corresponding to the target identifier.
18. The method according to claim 16, wherein, The step of switching the target channel for retransmission to a premium channel when retransmission of the data packet is detected includes: obtaining a premium channel request sent by the first device when retransmission of the data packet is detected. In response to the premium channel request, determine the target identifier of the premium channel; Return the target identifier of the high-quality channel to the first device; The target channel for retransmission will be switched to the high-quality channel corresponding to the target identifier.
19. An electronic device, wherein, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the wireless interaction method as described in any one of claims 1 to 18.
20. A computer-readable storage medium, wherein, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the wireless interaction method as described in any one of claims 1 to 18.