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

By obtaining the wireless air interface quality of the target channel during wireless interaction, determining the number of retransmissions and omitting retransmission data packets, the problem of retransmission resource occupation in wireless interaction is solved and the interaction quality is improved.

CN119995799APending Publication Date: 2025-05-13SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510142099.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-08
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

During wireless interaction, the retransmission of data packets occupies a large amount of resources, affecting the quality of the interaction.

Method used

By acquiring the wireless air interface quality of the target channel, the number of retransmissions is determined, and the retransmission packets are omitted according to the number of times.

Benefits of technology

Save wireless interaction resources and reduce the impact on wireless interaction quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119995799A_ABST
    Figure CN119995799A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a wireless interaction method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining the wireless air interface quality of a target channel for retransmission when a data packet is retransmitted; determining retransmission omission times according to the wireless air interface quality of the target channel; and omitting retransmission of the data packet according to the number of times of retransmission omission. According to the scheme, retransmission of the data packet can be omitted, so that wireless interaction resources are saved.
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 interaction technology, and specifically to a wireless interaction method, device, electronic device, and computer-readable storage medium. Background Art

[0002] Wireless interaction gets rid of the constraints of wired connections and improves user experience. However, during the wireless interaction of data packets, packet loss or data packet damage may occur. At this time, the relevant technology will continue to retransmit the lost or damaged data packets until the peer device successfully receives the data packet. However, repeated data packet retransmission will occupy a large amount of wireless interaction resources, thereby affecting the quality of wireless interaction. Summary of the invention

[0003] The embodiments of the present application provide a wireless interaction method, device, electronic device and computer-readable storage medium, which can omit retransmission of data packets, thereby saving wireless interaction resources.

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

[0005] When a data packet is retransmitted, the wireless air interface quality of the target channel for retransmission is obtained;

[0006] Determining the number of retransmissions to be omitted according to the wireless air interface quality of the target channel; and

[0007] According to the number of omitted retransmissions, retransmission of the data packet is omitted.

[0008] In a second aspect, an embodiment of the present application provides a wireless interaction apparatus, applied to a first device, including:

[0009] A first quality acquisition module, used to acquire the wireless air interface quality of the target channel for retransmission when a data packet is retransmitted;

[0010] a first number determination module, configured to determine the number of omitted retransmissions according to the wireless air interface quality of the target channel; and

[0011] The retransmission omitting module is used to omit retransmission of the data packet according to the number of retransmission omitting times.

[0012] In a third 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 interaction method when executed by the processor.

[0013] In a fourth 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 interaction method are implemented.

[0014] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0015] In summary, in the embodiment of the present application, when a data packet is retransmitted, the wireless air interface quality of the 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; and the retransmission of the data packet is omitted 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 THE DRAWINGS

[0016] 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.

[0017] Figure 1 is a schematic diagram of a scenario of a wireless interaction method provided by an embodiment of the present application;

[0018] Figure 2 is a schematic diagram of the steps of a wireless interaction method provided by an embodiment of the present application;

[0019] Figure 3 It is a schematic diagram of interaction of omitting retransmission of data packets in the classic Bluetooth technology provided by an embodiment of the present application;

[0020] Figure 4 It is an interactive schematic diagram of omitting retransmission of data packets in the low-power Bluetooth technology provided by an embodiment of the present application;

[0021] Figure 5 This is an interactive schematic diagram of omitting retransmission of data packets in the star flash technology provided in an embodiment of the present application;

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

[0023] Figure 7This is a schematic diagram of an interaction for switching channels in the classic Bluetooth technology provided by an embodiment of the present application;

[0024] Figure 8 This is an interactive schematic diagram of switching channels in the low-power Bluetooth technology provided by an embodiment of the present application;

[0025] Fig. 9 This is an interactive schematic diagram of switching channels in the star flash technology provided in an embodiment of the present application;

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

[0027] Fig.11 is a schematic diagram of the structure of a wireless interaction device provided by an embodiment of the present application;

[0028] Fig.12 is a schematic diagram of the structure of a wireless interaction device provided by an embodiment of the present application;

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

[0030] 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.

[0031] See also Figure 1 , Figure 1 This is a scenario diagram of a wireless interaction method provided in one embodiment of the present application. The first device and the second device are devices for performing wireless interaction. The first device may be a device for retransmitting data packets, and the second device may be a device for receiving retransmitted data packets.

[0032] The first device can be a master device or a slave device, and the second device can be the other of the master device and the slave device. The master device has the 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 the communication process, and can actively control the slave device to perform corresponding tasks. The slave device is 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 smart watch.

[0033] The first device and the second device may be connected in a single device or in a multi-device manner. The first device and the second device may be connected in a single device manner, which means that the master device in the first device and the second device wirelessly interacts with one slave device; the first device and the second device may be connected in a multi-device manner, which 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 device and the second device can be implemented based on wireless interaction technologies such as classic Bluetooth technology, Bluetooth Low Energy (BLE) technology or Star Flash technology.

[0035] Classic Bluetooth technology is an open global specification for wireless data and voice communications. It is a special short-range wireless technology connection based on low-cost short-range wireless connection to establish a communication environment for fixed and mobile devices.

[0036] Bluetooth Low Energy technology is a technology designed to significantly reduce power consumption and cost while maintaining the same communication range as classic Bluetooth technology. In Bluetooth Low Energy technology, data is exchanged within each connection interval. The connection interval is the time interval between two connection establishments in Bluetooth Low Energy interaction. Multiple data packets can be exchanged within one connection interval.

[0037] Star Flash technology is a new generation of short-range wireless connection technology with the advantages of low power consumption, high transmission rate, low latency and strong anti-interference ability. In Star Flash technology, data interaction is performed in each interaction interval. The interaction interval in Star Flash technology is similar to the connection interval in low-power Bluetooth technology. Multiple data packets can be interacted in one interaction interval.

[0038] In wireless interaction, a channel can be a wireless frequency band in a certain frequency range. The first device and the second device can have multiple channels for wireless interaction. For example, classic Bluetooth technology uses 79 channels with a bandwidth of 1MHz, and the frequency range is between 2.402-2.480GHz. Low-power Bluetooth technology defines 40 channels with a bandwidth of 2MHz, and its operating frequency band is also 2.402-2.480GHz. Star Flash technology adopts centralized scheduling and transmits data through multiple channels. It can flexibly use multiple channels according to different application scenarios and data transmission requirements to achieve high-speed, low-latency, and high-concurrency data transmission.

[0039] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0040] Figure 2 Schematic diagram of the steps of the wireless interaction method provided by an embodiment of the present application. Figure 2 The wireless interaction method shown is applied to a first device. The method at least includes steps S110 to S130, which are described in detail as follows:

[0041] In step S110, when a data packet is retransmitted, the wireless air interface quality of the target channel for retransmission is obtained.

[0042] The first device may be a device for retransmitting a data packet. When the first device detects that it is retransmitting a data packet, it may determine a target channel for retransmitting the data packet and obtain the wireless air 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. Wireless air interface quality is a performance indicator that measures the transmission of wireless signals from the transmitter to the receiver, and reflects the effectiveness and reliability of wireless signals in the actual transmission environment. In one embodiment, wireless air interface quality can be measured by packet loss rate.

[0044] In step S120, the number of retransmissions to be omitted is determined according to the wireless air interface quality of the target channel.

[0045] If the same data packet is retransmitted multiple times, it means that the multiple retransmissions before the last transmission of the data packet have all failed. Therefore, the multiple retransmissions before the last transmission of the data packet can actually be omitted.

[0046] When the wireless air interface quality of the target channel is worse, the number of retransmissions usually increases; when the wireless air interface quality of the target channel is better, the number of retransmissions usually decreases. Therefore, the number of retransmissions to be omitted can be determined based on the wireless air interface quality of the target channel.

[0047] Optionally, the wireless air interface quality of the target channel is inversely proportional to the number of omitted retransmissions. The worse the wireless air interface quality of the target channel, the more omitted retransmissions are; the better the wireless air interface quality of the target channel, the fewer omitted retransmissions are.

[0048] In step S130, retransmission of the data packet is omitted according to the number of omitted retransmissions.

[0049] When both the first device and the second device support the wireless interaction method provided by an embodiment of the present application, the subsequent multiple retransmissions of the data packet are omitted according to the determined number of omitted retransmissions.

[0050] For example, when the number of omitted retransmissions is 10, the data packet will not be retransmitted for the next 10 times when the data packet should have been retransmitted.

[0051] By adopting the technical solution of the embodiment of the present application, when a data packet is retransmitted, the wireless air interface quality of the 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; and the retransmission of the data packet is omitted 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.

[0052] Based on the above technical solution, as an embodiment, determining the number of retransmissions to be omitted according to the wireless air interface quality of the target channel may include: determining a first calculation method according to the wireless air interface quality of the target channel; wherein different wireless air interface qualities correspond to different first calculation methods; and calculating the number of retransmissions to be omitted according to the first calculation method.

[0053] The first calculation method corresponding to each wireless air interface quality may be preset. When the first device and the second device are connected in a single device, the first calculation method corresponding to the wireless air interface quality of the target channel may be determined according to the wireless air interface quality of the target channel.

[0054] In one embodiment, the quality of the wireless air interface 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% and 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% and 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% and 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% and 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; wherein N represents the number of omitted retransmissions.

[0055] After determining the first calculation method corresponding to the wireless air interface quality of the target channel, parameters required by the first calculation method are obtained, and the number of omitted retransmissions is calculated according to the obtained parameters.

[0056] For example, when the first calculation method corresponding to the wireless air interface quality of the target channel is N=device connection timeout / connection interval / 10, 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, it can be determined that N=2s÷20ms÷10=10.

[0057] By adopting the technical solution of the embodiment of the present application, the first calculation method corresponding to the wireless air interface quality of the target channel can be determined, and the number of omitted retransmissions can be calculated according to the determined first calculation method, so that the retransmission of the data packet can be omitted according to the number of omitted retransmissions, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0058] Based on the above technical solution, as an embodiment, determining the number of retransmissions to be omitted according to the wireless air interface quality of the target channel may include: obtaining the wireless multi-device situation of the first device; determining a second calculation method according to 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 qualities correspond to different second calculation methods; and calculating the number of retransmissions to be omitted according to the second calculation method.

[0059] When the first device and the second device perform a multi-device connection, the calculation method for omitting the number of retransmissions may also be determined, and the wireless multi-device situation of the first device may also be considered. The wireless multi-device situation of the first device may reflect the priority of the first device. The wireless multi-device situation may include, but is not limited to: device type, device interaction frequency level, and / or device connection timeout. The device type may be a mouse, a computer, a handle, or a headset. The device interaction frequency level is determined based on the number of data interactions triggered per unit time.

[0060] Different device types, device interaction frequency levels and / or device connection timeouts may be preset, and the corresponding priorities may be determined according to various parameters included in the wireless multi-device situation of the first device.

[0061] A second calculation method corresponding to different priorities and different wireless air interface qualities is preset. In one embodiment, the quality of the wireless air interface is measured by the packet loss rate; when the priority of the first device is the first priority and the packet loss rate of the target channel is greater than 10%, the corresponding second calculation method N=device connection timeout time / connection interval / 3; when the priority of the first device is the 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 time / connection interval / 6; when the priority of the first device is the second priority and the packet loss rate of the target channel is greater than 10%, the corresponding second calculation method N=device connection timeout time / connection interval / 10; when the priority of the first device is the 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 time / connection interval / 20; when the priority of the first device is the third priority and the packet loss rate of the target channel is greater than 10%, the corresponding second calculation method N=1; when the priority of the first device is the third priority and the packet loss rate of the target channel is not greater than 10%, the corresponding second calculation method N=0; wherein N represents the number of omitted retransmissions, the first priority is lower than the second priority, and the second priority is lower than the third priority.

[0062] The priority of the first device can be determined according to the wireless multi-device situation of the first device, and the corresponding second calculation method can be determined according to the priority of the first device and the wireless air interface quality of the target channel. According to the determined second calculation method, the parameters required for calculation are obtained, and the number of omitted retransmissions is calculated according to the second calculation method and the required parameters.

[0063] 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, the device connection timeout and connection interval are obtained, and N is calculated according to the device connection timeout and connection interval. If the device connection timeout is 2s and the connection interval is 20ms, it can be determined that N=2s÷20ms÷10=10.

[0064] By adopting the technical solution of the embodiment of the present application, when a first device and a second device establish a multi-device connection, the priority of the first device can be determined according to the wireless multi-device situation of the first device, and the second calculation method can be determined according to the priority of the first device and the wireless air interface quality of the target channel, and the number of omitted retransmissions can be calculated according to the determined second calculation method, so that the retransmission of the data packet can be omitted according to the number of omitted retransmissions, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0065] 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.

[0066] 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.

[0067] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on classic Bluetooth technology, omitting retransmission of the data packet according to the omitted retransmission number may include: reducing the retransmission of the data packet by the omitted retransmission number.

[0068] Figure 3 FIG. 1 is a schematic diagram of an interaction in which retransmission of data packets is omitted in the classic Bluetooth technology provided by an embodiment of the present application. Figure 3 As shown, after determining to omit the number of retransmissions N, the classic Bluetooth technology can directly omit the next N retransmissions of data packets. During the period of omitting the retransmissions of data packets, the second device sends a test data packet to the first device, but because the N retransmissions of data packets are omitted, the first device omits to retransmit the data packet to the second device.

[0069] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on the low-power Bluetooth technology, the number of times of retransmission of the data packet is omitted according to the number of omitted retransmissions, which may include: omitting the wireless interaction for the number of connection intervals where the number of omitted retransmissions is equal to or greater than the number of omitted retransmissions.

[0070] Figure 4 FIG. 1 is a schematic diagram of an interaction in which retransmission of data packets is omitted in a low-power Bluetooth technology provided by an embodiment of the present application. Figure 4 As shown, after determining to omit the number of retransmissions, the next N connection interval interactions are omitted in the low-power Bluetooth technology. During the period of omitting the retransmission data packet, the second device sends a test data packet to the first device, but because the N connection interval interactions are omitted, the first device omits to retransmit the data packet to the second device in the next N connection intervals.

[0071] On the basis of the above technical solution, as an embodiment, when the first device performs wireless interaction based on the Star Flash technology, the number of times of retransmission of the data packet is omitted according to the number of omitted retransmissions, which may include: omitting wireless interaction for the number of interaction intervals where the number of omitted retransmissions is equal to or greater than the number of omitted retransmissions.

[0072] Figure 5 FIG. 1 is a schematic diagram of an interaction of omitting retransmission of data packets in the Star Flash technology provided in an embodiment of the present application. Figure 5 As shown, after determining to omit the number of retransmissions, the next N interaction interval interactions will be omitted in the Star Flash technology. During the period of omitting the retransmission data packet, the second device sends a test data packet to the first device, but because the N interaction interval interactions are omitted, the first device omits to retransmit the data packet to the second device in the next N interaction intervals.

[0073] Figure 6 Schematic diagram of the steps of the wireless interaction method provided by an embodiment of the present application. Figure 6 The wireless interaction method shown, after omitting retransmission of the data packet according to the number of omitted retransmissions, the method may further include at least steps S210 to S220, which are described in detail as follows:

[0074] In step S210, it is detected whether the data packet still has retransmission.

[0075] 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.

[0076] After omitting retransmission of the data packet according to the number of omitted retransmissions, if it is detected that the data packet is still being retransmitted, the channel for the interaction between the first device and the second device can be switched from the target channel to the high-quality channel. The data packet is still being retransmitted means that after omitting retransmission of the data packet according to the number of omitted retransmissions, the data packet has been retransmitted 2 times or more.

[0077] The high-quality channel may be a channel whose radio air interface quality is better than that of the target channel, or a channel whose radio air interface quality meets the requirements of a high-quality channel, or may be a channel with the best radio air interface quality among multiple unused channels.

[0078] By adopting the technical solution of the embodiment of the present application, when it is detected that the data packet is still being retransmitted, the target channel is switched to a high-quality channel, and the data packet can be successfully sent to the second device as soon as possible on the high-quality channel, thereby avoiding repeated retransmission of the data packet, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0079] On the basis of the above technical solution, as an embodiment, when it is detected that the data packet still needs to be 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 still needs to be retransmitted; sending the high-quality channel request to a second device that receives the data packet; obtaining a 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 a high-quality channel corresponding to the target identifier.

[0080] The high-quality channel request is used to request the peer device to switch the channel for wireless interaction from the target channel to the high-quality channel. The high-quality channel request can be generated by the first device. When it is detected that the first device is still retransmitting the same data packet, the first device generates a high-quality channel request and sends the high-quality channel request to the second device that receives the data packet.

[0081] In response to the high-quality channel request, the second device can determine the high-quality channel by detecting the wireless air interface quality of each channel and obtain the target identifier of the high-quality channel. The second device sends the target identifier of the determined high-quality channel to the first device to inform the first device to switch the channel for wireless interaction with the second device from the target channel to the high-quality channel corresponding to the target identifier.

[0082] By adopting the technical solution of the embodiment of the present application, when it is detected that a data packet is still being retransmitted, 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 successfully sending the data packet to the second device on the high-quality channel as soon as possible, avoiding repeated retransmission of the data packet, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0083] On the basis of the above technical solution, as an embodiment, when it is detected that the data packet still needs to be retransmitted, switching the target channel for retransmission to a high-quality channel may include: when it is detected that the data packet still needs to be retransmitted, obtaining a high-quality channel request sent by a second device that receives the data packet; in response to the high-quality channel request, determining a 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 a high-quality channel corresponding to the target identifier.

[0084] The high-quality channel request is used to request the peer device to switch the channel for wireless interaction from the target channel to the high-quality channel. The high-quality channel request can be generated by the second device. When it is detected that the first device is still retransmitting the same data packet, the second device generates a high-quality channel request and sends the high-quality channel request to the first device.

[0085] In response to the high-quality channel request, the first device can determine the high-quality channel by detecting the wireless air interface quality of each channel and obtain the target identifier of the high-quality channel. The first device sends the target identifier of the determined high-quality channel to the second device to inform the second device to switch the channel for wireless interaction with the first device from the target channel to the high-quality channel corresponding to the target identifier.

[0086] By adopting the technical solution of the embodiment of the present application, when it is detected that the data packet is still being retransmitted, the first device can respond to the high-quality channel request sent by the second device and return the target identifier of the high-quality channel to 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 successfully sending the data packet to the second device on the high-quality channel as soon as possible, avoiding repeated retransmission of the data packet, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0087] 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 to be retransmitted to a high-quality channel may include: starting from the next retransmission of the data packet, switching the target channel to the high-quality channel.

[0088] Figure 7 1 is a schematic diagram of the interaction of switching channels in the classic Bluetooth technology provided by an embodiment of the present application. Figure 7 As shown, when the target channel needs to be switched to a high-quality channel, the classic Bluetooth technology can directly switch the target channel to the high-quality channel when the data packet is retransmitted next time, and use the high-quality channel to retransmit the next data packet.

[0089] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on low-power Bluetooth technology, switching the target channel to be retransmitted to a high-quality channel may include: starting from the next connection interval, switching the target channel to the high-quality channel.

[0090] Figure 8 1 is a schematic diagram of an interaction for switching channels in a low-power Bluetooth technology provided by an embodiment of the present application. Figure 8 As shown, when the target channel needs to be switched to a high-quality channel, the low-power Bluetooth technology can switch the target channel to the high-quality channel in the next connection interval, and the first device and the second device interact based on the high-quality channel in the next connection interval.

[0091] Based on the above technical solution, as an embodiment, when the first device performs wireless interaction based on the Star Flash technology, the target channel to be retransmitted is switched to a high-quality channel, which may include: starting from the next interaction interval, the target channel is switched to the high-quality channel.

[0092] Fig. 9 FIG. 1 is a schematic diagram of the interaction of switching channels in the star flash technology provided in an embodiment of the present application. Fig. 9 As shown, when the target channel needs to be switched to a high-quality channel, the Star Flash technology can switch the target channel to the high-quality channel in the next interaction interval, and in the next interaction interval, the first device and the second device interact based on the high-quality channel.

[0093] Fig.10 Schematic diagram of the steps of the wireless interaction method provided by an embodiment of the present application. Fig.10 The wireless interaction method shown is applied to the second device. The method at least includes steps S310 to S330, which are described in detail as follows:

[0094] In step S310, when a data packet is retransmitted, the wireless air interface quality of the target channel for retransmission is obtained.

[0095] In step S320, the number of retransmissions to be omitted is determined according to the wireless air interface quality of the target channel.

[0096] In step S330, the number of omitted retransmissions is sent to the first device that retransmits the data packet.

[0097] The number of omitted retransmissions is used to instruct the first device to omit retransmission of the data packet according to the number of omitted retransmissions.

[0098] The second device may be a device that receives a data packet retransmitted by the first device. When the second device detects that the first device is retransmitting a data packet, it may determine a target channel for retransmitting the data packet and obtain the wireless air interface quality of the target channel.

[0099] If the same data packet is retransmitted multiple times, it means that the multiple retransmissions before the last transmission of the data packet have all failed. Therefore, the multiple retransmissions before the last transmission of the data packet can actually be omitted.

[0100] When the wireless air interface quality of the target channel is worse, the number of retransmissions usually increases; when the wireless air interface quality of the target channel is better, the number of retransmissions usually decreases. Therefore, the number of retransmissions to be omitted can be determined based on the wireless air interface quality of the target channel.

[0101] Optionally, the wireless air interface quality of the target channel is inversely proportional to the number of omitted retransmissions. The worse the wireless air interface quality of the target channel, the more omitted retransmissions are; the better the wireless air interface quality of the target channel, the fewer omitted retransmissions are.

[0102] After determining the number of retransmissions to be omitted, the second device sends the number of retransmissions to be omitted to the first device, so as to instruct the first device to omit retransmission of the data packet according to the number of retransmissions to be omitted.

[0103] By adopting the technical solution of the embodiment of the present application, when a data packet is retransmitted, the wireless air interface quality of the 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; so that the first device omits retransmission of the data packet according to the number of omitted retransmissions. In this way, by omitting retransmission of the data packet, wireless interaction resources can be saved, thereby reducing the impact on the quality of wireless interaction.

[0104] Based on the above technical solution, as an embodiment, determining the number of retransmissions to be omitted according to the wireless air interface quality of the target channel may include: determining a first calculation method according to the wireless air interface quality of the target channel; wherein different wireless air interface qualities correspond to different first calculation methods; and calculating the number of retransmissions to be omitted according to the first calculation method.

[0105] The first calculation method corresponding to each wireless air interface quality may be preset. When the first device and the second device are connected in a single device, the first calculation method corresponding to the wireless air interface quality of the target channel may 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 by the first calculation method are obtained, and the number of omitted retransmissions is calculated based on the obtained parameters.

[0106] By adopting the technical solution of the embodiment of the present application, the first calculation method corresponding to the wireless air interface quality of the target channel can be determined, and the number of omitted retransmissions can be calculated according to the determined first calculation method, so that the retransmission of the data packet can be omitted according to the number of omitted retransmissions, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0107] Based on the above technical solution, as an embodiment, determining the number of retransmissions to be omitted according to the wireless air interface quality of the target channel may include: obtaining the wireless multi-device situation of the first device; determining a second calculation method according to 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 qualities correspond to different second calculation methods; and calculating the number of retransmissions to be omitted according to the second calculation method.

[0108] When the first device and the second device perform a multi-device connection, the calculation method for omitting the number of retransmissions may also be determined, and the wireless multi-device situation of the first device may also be considered. The wireless multi-device situation of the first device may reflect the priority of the first device. The wireless multi-device situation may include, but is not limited to: device type, device interaction frequency level, and / or device connection timeout. The device type may be a mouse, a computer, a handle, or a headset. The device interaction frequency level is determined based on the number of data interactions triggered per unit time.

[0109] The priorities corresponding to different device types, device interaction frequency levels and / or device connection timeouts can be preset. The priority of the first device is determined according to various parameters included in the wireless multi-device situation of the first device. A second calculation method corresponding to different priorities and different wireless air interface qualities is preset.

[0110] The priority of the first device can be determined according to the wireless multi-device situation of the first device, and the corresponding second calculation method can be determined according to the priority of the first device and the wireless air interface quality of the target channel. According to the determined second calculation method, the parameters required for calculation are obtained, and the number of omitted retransmissions is calculated according to the second calculation method and the required parameters.

[0111] By adopting the technical solution of the embodiment of the present application, when a first device and a second device establish a multi-device connection, the priority of the first device can be determined according to the wireless multi-device situation of the first device, and the second calculation method can be determined according to the priority of the first device and the wireless air interface quality of the target channel, and the number of omitted retransmissions can be calculated according to the determined second calculation method, so that the retransmission of the data packet can be omitted according to the number of omitted retransmissions, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0112] In one of the embodiments, when the second device performs wireless interaction based on classic Bluetooth technology, omitting retransmission of the data packet according to the omitted retransmission number may include: reducing the number of data packets to be retransmitted by the omitted retransmission number.

[0113] In one of the embodiments, when the second device performs wireless interaction based on the low-power Bluetooth technology, omitting the retransmission of the data packet according to the omitted retransmission number may include: omitting the wireless interaction for the omitted retransmission number of connection intervals.

[0114] In one of the embodiments, when the second device performs wireless interaction based on the Star Flash technology, omitting the retransmission of the data packet according to the omitted retransmission number may include: omitting wireless interaction for the omitted retransmission number of interaction intervals.

[0115] Based on the above technical solution, as an embodiment, after sending the number of omitted retransmissions to the first device that retransmits the data packet, the method may further include: detecting whether the data packet still has retransmissions; when it is detected that the data packet still has retransmissions, switching the target channel for retransmission to a high-quality channel.

[0116] After the first device omits retransmission of the data packet according to the number of omitted retransmissions, if it is detected that the data packet is still being retransmitted, the channel for the interaction between the first device and the second device can be switched from the target channel to the high-quality channel. The data packet is still being retransmitted means that after the data packet is omitted from retransmission according to the number of omitted retransmissions, the data packet is retransmitted 2 times or more.

[0117] The high-quality channel may be a channel whose radio air interface quality is better than that of the target channel, or a channel whose radio air interface quality meets the requirements of a high-quality channel, or may be a channel with the best radio air interface quality among multiple unused channels.

[0118] By adopting the technical solution of the embodiment of the present application, when it is detected that the data packet is still being retransmitted, the target channel is switched to a high-quality channel, and the data packet can be successfully sent to the second device as soon as possible on the high-quality channel, thereby avoiding repeated retransmission of the data packet, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0119] On the basis of the above technical solution, as an embodiment, when it is detected that the data packet still needs to be 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 still needs to be 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 a high-quality channel corresponding to the target identifier.

[0120] The high-quality channel request is used to request the peer device to switch the channel for wireless interaction from the target channel to the high-quality channel. The high-quality channel request can be generated by the second device. When it is detected that the first device is still retransmitting the same data packet, the second device generates a high-quality channel request and sends the high-quality channel request to the first device.

[0121] In response to the high-quality channel request, the first device can determine the high-quality channel by detecting the wireless air interface quality of each channel and obtain the target identifier of the high-quality channel. The first device sends the target identifier of the determined high-quality channel to the second device to inform the second device to switch the channel for wireless interaction with the first device from the target channel to the high-quality channel corresponding to the target identifier.

[0122] By adopting the technical solution of the embodiment of the present application, when it is detected that the data packet is still being retransmitted, the first device can respond to the high-quality channel request sent by the second device and return the target identifier of the high-quality channel to 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 successfully sending the data packet to the second device on the high-quality channel as soon as possible, avoiding repeated retransmission of the data packet, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0123] On the basis of the above technical solution, as an embodiment, when it is detected that the data packet still needs to be retransmitted, switching the target channel for retransmission to a high-quality channel may include: when it is detected that the data packet still needs to be retransmitted, obtaining a high-quality channel request sent by the first device; in response to the high-quality channel request, determining a target identifier of the high-quality channel; returning the target identifier of the high-quality channel to the first device; and switching the target channel for retransmission to a high-quality channel corresponding to the target identifier.

[0124] The high-quality channel request is used to request the peer device to switch the channel for wireless interaction from the target channel to the high-quality channel. The high-quality channel request can be generated by the first device. When it is detected that the first device is still retransmitting the same data packet, the first device generates a high-quality channel request and sends the high-quality channel request to the second device that receives the data packet.

[0125] In response to the high-quality channel request, the second device can determine the high-quality channel by detecting the wireless air interface quality of each channel and obtain the target identifier of the high-quality channel. The second device sends the target identifier of the determined high-quality channel to the first device to inform the first device to switch the channel for wireless interaction with the second device from the target channel to the high-quality channel corresponding to the target identifier.

[0126] By adopting the technical solution of the embodiment of the present application, when it is detected that a data packet is still being retransmitted, 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 successfully sending the data packet to the second device on the high-quality channel as soon as possible, avoiding repeated retransmission of the data packet, thereby saving wireless interaction resources and reducing the impact on the quality of wireless interaction.

[0127] Optionally, when the second device performs wireless interaction based on classic Bluetooth technology, switching the target channel to be retransmitted to a high-quality channel may include: starting from the next retransmission of the data packet, switching the target channel to the high-quality channel.

[0128] Optionally, when the first device performs wireless interaction based on the low-power Bluetooth technology, switching the target channel to be retransmitted to a high-quality channel may include: switching the target channel to the high-quality channel starting from the next connection interval.

[0129] Optionally, when the first device performs wireless interaction based on the Star Flash technology, switching the target channel to be retransmitted to a high-quality channel may include: starting from the next interaction interval, switching the target channel to the high-quality channel.

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

[0131] See also Fig.11 , Fig.11 : is a schematic diagram of the structure of a wireless interaction device provided by an embodiment of the present application, wherein the wireless interaction device is applied to a first device, and the wireless interaction device includes:

[0132] The first quality acquisition module 101 is used to acquire the wireless air interface quality of the target channel for retransmission when the data packet is retransmitted;

[0133] A first number determination module 102, configured to determine the number of omitted retransmissions according to the wireless air interface quality of the target channel; and

[0134] The retransmission omitting module 103 is configured to omit retransmission of the data packet according to the number of retransmission omitting times.

[0135] In one embodiment, the first number determination module 102 includes:

[0136] A first method determination unit, configured to determine a first calculation method according to the wireless air interface quality of the target channel; wherein different wireless air interface qualities correspond to different first calculation methods;

[0137] The first calculation unit is used to calculate the number of omitted retransmissions according to the first calculation method.

[0138] In one embodiment, the first number determination module 102 includes:

[0139] A situation acquisition unit, configured to acquire a wireless multi-device situation of the first device;

[0140] A second method determination unit, configured to determine a second calculation method according to a wireless multi-device situation of the first device and a wireless air interface quality of the target channel; wherein different wireless multi-device situations and wireless air interface qualities correspond to different second calculation methods;

[0141] The second calculation unit is used to calculate the number of omitted retransmissions according to the second calculation method.

[0142] In one embodiment, when the first device performs wireless interaction based on classic Bluetooth technology, the retransmission omitting module 103 includes:

[0143] The reducing unit is used to reduce the number of retransmissions of the data packets omitted by the number of retransmissions.

[0144] In one embodiment, when the first device performs wireless interaction based on low-power Bluetooth technology, the retransmission omission module 103 includes:

[0145] The first omission unit is used to omit the wireless interaction of the connection intervals with the number of omitted retransmissions.

[0146] In one embodiment, when the first device performs wireless interaction based on the Star Flash technology, the retransmission omission module 103 includes:

[0147] The second omission unit is configured to omit the wireless interaction of the interaction intervals equal to the number of omitted retransmissions.

[0148] In one of the embodiments, after omitting retransmission of the data packet according to the number of omitted retransmissions, the apparatus further comprises:

[0149] A retransmission detection module, used to detect whether the data packet still has retransmission;

[0150] The channel switching module is used to switch the target channel for retransmission to a high-quality channel when detecting that the data packet is still being retransmitted.

[0151] In one embodiment, the channel switching module includes:

[0152] A request generating unit, configured to generate a high-quality channel request when detecting that the data packet still has retransmission;

[0153] A request sending unit, configured to send the high-quality channel request to a second device that receives the data packet;

[0154] an identifier acquisition unit, configured to acquire a target identifier of the high-quality channel determined by the second device in response to the high-quality channel request;

[0155] The first switching unit is used to switch the target channel for retransmission to a high-quality channel corresponding to the target identifier.

[0156] In one embodiment, the channel switching module includes:

[0157] A request acquisition unit, configured to acquire a high-quality channel request sent by a second device receiving the data packet when detecting that the data packet is still being retransmitted;

[0158] an identifier determining unit, configured to determine a target identifier of the high-quality channel in response to the high-quality channel request;

[0159] an identification returning unit, configured to return the target identification of the high-quality channel to the second device;

[0160] The second switching unit is used to switch the target channel for retransmission to a high-quality channel corresponding to the target identifier.

[0161] In one embodiment, when the first device performs wireless interaction based on classic Bluetooth technology, the channel switching module includes:

[0162] The third switching unit is configured to switch the target channel to the high-quality channel starting from the next retransmission of the data packet.

[0163] In one embodiment, when the first device performs wireless interaction based on low-power Bluetooth technology, the channel switching module includes:

[0164] The fourth switching unit is used to switch the target channel to the high-quality channel starting from the next connection interval.

[0165] In one embodiment, when the first device performs wireless interaction based on the Star Flash technology, the channel switching module includes:

[0166] The fifth switching unit is used to switch the target channel to the high-quality channel starting from the next interaction interval.

[0167] By adopting the technical solution of the embodiment of the present application, when a data packet is retransmitted, the wireless air interface quality of the 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; and the retransmission of the data packet is omitted 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.

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

[0169] The second quality acquisition module 201 is used to acquire the wireless air interface quality of the target channel for retransmission when the data packet is retransmitted;

[0170] A second number determination module 202 is configured to determine the number of omitted retransmissions according to the wireless air interface quality of the target channel; and

[0171] The number sending module 203 is used to send the number of omitted retransmissions to the first device that retransmits the data packet; the number of omitted retransmissions is used to instruct the first device to omit retransmission of the data packet according to the number of omitted retransmissions.

[0172] In one embodiment, the second number determination module 202 includes:

[0173] A third method determination unit, configured to determine a first calculation method according to the wireless air interface quality of the target channel; wherein different wireless air interface qualities correspond to different first calculation methods;

[0174] The third calculation unit is used to calculate the number of omitted retransmissions according to the first calculation method.

[0175] In one embodiment, the second number determination module 202 includes:

[0176] A device status acquisition unit, configured to acquire a wireless multi-device status of the first device;

[0177] A fourth method determination unit, configured to determine a second calculation method according to a wireless multi-device situation and a wireless air interface quality of the first device; wherein different wireless multi-device situations and wireless air interface qualities correspond to different second calculation methods;

[0178] The fourth calculation unit is used to calculate the number of omitted retransmissions according to the second calculation method.

[0179] In one of the embodiments, after sending the number of omitted retransmissions to the first device that retransmits the data packet, the apparatus further comprises:

[0180] A detection module, used to detect whether the data packet still has retransmission;

[0181] The switching module is used to switch the target channel for retransmission to a high-quality channel when detecting that the data packet is still being retransmitted.

[0182] In one embodiment, the switching module includes:

[0183] A generating unit, configured to generate a high-quality channel request when detecting that the data packet still has retransmission;

[0184] A sending unit, configured to send the high-quality channel request to the first device;

[0185] an acquiring unit, configured to acquire a target identifier of the high-quality channel determined by the first device in response to the high-quality channel request;

[0186] The sixth switching unit is used to switch the target channel for retransmission to a high-quality channel corresponding to the target identifier.

[0187] In one embodiment, the switching module includes:

[0188] A high-quality channel request acquisition unit, configured to acquire a high-quality channel request sent by the first device when detecting that the data packet is still being retransmitted;

[0189] a target identifier determining unit, configured to determine a target identifier of the high-quality channel in response to the high-quality channel request;

[0190] a target identifier returning unit, configured to return the target identifier of the high-quality channel to the first device;

[0191] The seventh switching unit is used to switch the target channel for retransmission to a high-quality channel corresponding to the target identifier.

[0192] By adopting the technical solution of the embodiment of the present application, when a data packet is retransmitted, the wireless air interface quality of the 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; and the retransmission of the data packet is omitted 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.

[0193] For the specific definition of the wireless interaction device, please refer to the definition of the wireless interaction method above, which will not be repeated here. Each module in the above wireless interaction device can be implemented in whole or in part by software, hardware and a combination thereof. Each of 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 each of the above modules.

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

[0195] The electronic device may include one or more processors 301 of processing cores and one or more computer-readable storage media memories 302 and other components. Those skilled in the art will appreciate that Fig.13 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.

[0196] The processor 301 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 302, and calling data stored in the memory 302, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. 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 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 301.

[0197] 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, 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 302 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 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0198] In one embodiment, the electronic device further includes a power supply 303 for supplying power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 303 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.

[0199] In one embodiment, the electronic device may further include an input unit 304, 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.

[0200] 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 301 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application programs stored in the memory 302, thereby implementing the steps in any one of the wireless interaction methods provided in the embodiments of the present application.

[0201] Those skilled in the art will understand that Fig.13 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.

[0202] 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.

[0203] 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.

[0204] In some embodiments, 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.

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

[0206] 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.

[0207] 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 interaction method provided in the present application.

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

[0209] 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.

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

[0211] 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.

[0212] The wireless interaction 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 interaction method, characterized in that: Applied to a first device, comprising: When a data packet is retransmitted, the wireless air interface quality of the target channel for retransmission is obtained; Determining the number of retransmissions to be omitted according to the wireless air interface quality of the target channel; and According to the number of omitted retransmissions, retransmission of the data packet is omitted.

2. The method according to claim 1, characterized in that The step of determining the number of retransmissions to be omitted according to the wireless air interface quality of the target channel includes: Determining a first calculation method according to the wireless air interface quality of the target channel; wherein different wireless 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, characterized in that The step of determining the number of retransmissions to be omitted according to the wireless air interface quality of the target channel includes: Acquire wireless multi-device status of the first device; Determine a second calculation method according to 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 qualities correspond to different second calculation methods; According to the second calculation method, the number of omitted retransmissions is calculated.

4. The method according to claim 1, characterized in that: When the first device performs wireless interaction based on the classic Bluetooth technology, the step of omitting retransmission of the data packet according to the number of omitted retransmissions includes: The number of retransmissions omitted is reduced by the number of data packets.

5. The method according to claim 1, characterized in that When the first device performs wireless interaction based on the low-power Bluetooth technology, the number of times of omitting retransmission of the data packet according to the number of omitted retransmissions includes: The wireless interaction for the connection intervals corresponding to the number of omitted retransmissions is omitted.

6. The method according to claim 1, characterized in that When the first device performs wireless interaction based on the Star Flash technology, the number of times of omitting retransmission of the data packet according to the number of omitted retransmissions includes: The wireless interaction of the interaction interval corresponding to the number of omitted retransmissions is omitted.

7. The method according to any one of claims 1 to 6, characterized in that: After omitting retransmission of the data packet according to the number of omitted retransmissions, the method further includes: Detecting whether the data packet still has retransmission; When it is detected that the data packet is still being retransmitted, the target channel for retransmission is switched to a high-quality channel.

8. The method according to claim 7, characterized in that When detecting that the data packet still has to be retransmitted, switching the target channel for retransmission to a high-quality channel comprises: When it is detected that the data packet is still being retransmitted, generating a high-quality channel request; Sending the high-quality channel request to a second device that receives the data packet; Acquire a target identifier of the high-quality channel determined by the second device in response to the high-quality channel request; The target channel for retransmission is switched to a high-quality channel corresponding to the target identifier.

9. The method according to claim 7, characterized in that: When detecting that the data packet still has to be retransmitted, switching the target channel for retransmission to a high-quality channel comprises: When it is detected that the data packet is still being retransmitted, obtaining a high-quality channel request sent by a second device that receives the data packet; In response to the high-quality channel request, determining a target identifier of the high-quality channel; Returning the target identifier of the high-quality channel to the second device; The target channel for retransmission is switched to a high-quality channel corresponding to the target identifier.

10. The method according to claim 7, characterized in that When the first device performs wireless interaction based on the classic Bluetooth technology, switching the target channel for retransmission to a high-quality channel includes: Starting from the next retransmission of the data packet, the target channel is switched to the high-quality channel.

11. The method according to claim 7, characterized in that When the first device performs wireless interaction based on the low-power Bluetooth technology, switching the target channel for retransmission to a high-quality channel includes: Starting from the next connection interval, the target channel is switched to the high-quality channel.

12. The method according to claim 7, characterized in that When the first device performs wireless interaction based on the Star Flash technology, switching the target channel for retransmission to a high-quality channel includes: Starting from the next interaction interval, the target channel is switched to the high-quality channel.

13. A wireless interactive device, characterized in that: Applied to a first device, comprising: A first quality acquisition module, used to acquire the wireless air interface quality of the target channel for retransmission when a data packet is retransmitted; a first number determination module, configured to determine the number of omitted retransmissions according to the wireless air interface quality of the target channel; and The retransmission omitting module is used to omit retransmission of the data packet according to the number of retransmission omitting times.

14. An electronic device, characterized in that: It 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 interaction method as claimed in any one of claims 1 to 12 when executing the computer program.

15. 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 interaction method according to any one of claims 1 to 12 are implemented.

Citation Information

Cited By

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

    WO2026166253A1