Wireless communication method, chip, electronic equipment and router

By using sleep and wake-up instruction packets to manage data packet transmission in a communication chip with multi-protocol coexistence, the data retransmission and physical layer speed reduction problems caused by unreasonable channel resource allocation are solved, and the transmission rate performance of WiFi protocols is significantly improved.

CN118945779APending Publication Date: 2024-11-12XIAN ESWIN COMPUTING TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411045762.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

When the channel resource allocation of multi-protocol coexistence is unreasonable, it may lead to problems such as lower communication rate and data packet loss, especially when the low-power Bluetooth and wireless network protocol coexist, BLE scanning service occupies too long air ports, resulting in WiFi protocol Packet retransmission and physical layer slowdown.

Method used

By sending a sleep command packet when the target service of the first protocol starts to occupy the air interface, stopping or cacheing the packet transmission of the second protocol, and sending a wake-up command packet to resume packet transmission until the target service is over, avoiding data retransmission and physical layer Slow down.

Benefits of technology

It effectively avoids data retransmission, improves the data transmission rate performance of WiFi protocols, and significantly improves the communication efficiency of multi-protocol coexistence. Especially after the end of the BLE scanning window period, the data transmission rate of WiFi protocols has been increased by more than 500%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945779A_ABST
    Figure CN118945779A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a wireless communication method, a chip, electronic equipment and a router. The wireless communication method comprises the following steps: in response to a target service of a first protocol, starting to occupy an air interface, and sending a dormancy instruction packet to a router; wherein the dormancy instruction packet is used for indicating to stop sending or receiving a data packet of a second protocol; sending a wake-up instruction packet to the router in response to the fact that the target service of the first protocol ends and occupies the air interface; wherein the wake-up instruction packet is used for indicating to start to send or receive the data packet of the second protocol.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a wireless communication method, chip, electronic device and router. Background Art

[0002] Communication chips that support multiple protocols can support multiple communication protocols and adapt to more application scenarios. At the same time, they can reduce development costs and shorten development cycles. They are currently a mainstream product development and production method.

[0003] However, communication chips with multiple protocols coexisting may cause different protocols to compete for channel resources, which requires coexistence debugging. Coexistence debugging is to coordinate and arbitrate the use of channel resources by services of different protocols to meet the optimal solution for actual application scenarios. If the allocation of channel resources is unreasonable, it may lead to reduced communication rate, or even packet loss and disconnection. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a wireless communication method, chip, electronic device and router, which can avoid data retransmission and avoid physical layer speed reduction.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] An embodiment of the present application provides a wireless communication method, the method comprising: in response to a target service of a first protocol starting to occupy an air interface, sending a sleep instruction packet to a router; wherein the sleep instruction packet is used to instruct to stop sending or receiving data packets of a second protocol; in response to the target service of the first protocol ending to occupy the air interface, sending a wake-up instruction packet to the router; wherein the wake-up instruction packet is used to instruct to start sending or receiving data packets of the second protocol.

[0007] In the above scheme, the method further includes: in response to sending the sleep instruction packet to the router, caching the data packet of the second protocol to be sent; in response to sending the wake-up instruction packet to the router, sending the cached data packet of the second protocol.

[0008] In the above solution, the method further includes: other services of the first protocol periodically occupy the air interface at preset intervals.

[0009] In the above scheme, the air interface occupancy rate of the target service of the first protocol is greater than 10%; the time slice of the air interface occupied by the target service of the first protocol each time is greater than or equal to 10 ms.

[0010] In the above solution, the air interface occupancy rate of the other services of the first protocol is less than or equal to 10%.

[0011] In the above solution, the first protocol includes: low-power Bluetooth protocol; the second protocol includes: wireless network protocol; and the target service includes: scanning service.

[0012] An embodiment of the present application also provides a wireless communication method, which includes: in response to receiving a sleep instruction packet, stopping sending or receiving data packets of a second protocol; in response to receiving a wake-up instruction packet, starting sending or receiving data packets of the second protocol.

[0013] In the above scheme, the method further includes: in response to receiving the sleep instruction packet, caching the data packet of the second protocol to be sent; in response to receiving the wake-up instruction packet, sending the cached data packet of the second protocol.

[0014] An embodiment of the present application also provides a multi-protocol coexistence communication chip, which supports a first protocol and a second protocol; the communication chip is configured to execute a computer program to implement the steps in the above solution.

[0015] An embodiment of the present application further provides an electronic device, comprising: a multi-protocol coexistence communication chip as described in the above solution.

[0016] An embodiment of the present application also provides a router chip, which is configured to execute a computer program to implement the steps in the above solution.

[0017] An embodiment of the present application also provides a router, which includes: the router chip described in the above solution.

[0018] It can be seen that the embodiments of the present application provide a wireless communication method, chip, electronic device and router. When the target service of the first protocol starts to occupy the air interface, a sleep instruction packet is sent to instruct to stop sending or receiving data packets of the second protocol, until the target service of the first protocol stops occupying the air interface, and then a wake-up instruction packet is sent to instruct to continue sending or receiving data packets of the second protocol. In this way, it is avoided that the router repeatedly executes the sending of data packets of the second protocol during the time slice when the target service of the first protocol occupies the air interface, that is, data retransmission is avoided, and further, the problem of speed reduction of the second protocol physical layer caused by data retransmission is avoided, thereby improving the rate performance of the second protocol. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A wireless communication method according to an embodiment of the present invention is provided. Figure 1 ;

[0020] Figure 2 A wireless communication method according to an embodiment of the present invention is provided. Figure 2 ;

[0021] Figure 3 The timing diagram of occupying the air interface provided in the embodiment of the present application Figure 1 ;

[0022] Figure 4 The timing diagram of occupying the air interface provided in the embodiment of the present application Figure 2 ;

[0023] Figure 5 The timing diagram of occupying the air interface provided in the embodiment of the present application Figure 3 ;

[0024] Figure 6 The timing diagram of occupying the air interface provided in the embodiment of the present application Figure 4 ;

[0025] Figure 7 The timing diagram of occupying the air interface provided in the embodiment of the present application Figure 5 ;

[0026] Figure 8 A wireless communication method according to an embodiment of the present invention is provided. Figure 3 ;

[0027] Fig. 9 A wireless communication method according to an embodiment of the present invention is provided. Figure 4 ;

[0028] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 1 ;

[0029] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 2 ;

[0030] Fig.12 A schematic diagram of the structure of a router provided in an embodiment of the present application;

[0031] Fig.13 A schematic diagram of the architecture of a wireless communication system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0033] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0034] If similar descriptions of "first / second" appear in the application documents, the following description is added. In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0036] The following is an explanation of the nouns and terms involved in the embodiments of the present application. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:

[0037] Air Interface: refers to the interface of wireless communication. Each end of wireless communication is connected to each other through the air interface.

[0038] Air interface occupancy rate: the ratio of the air interface occupancy time to the total time;

[0039] Time Division Multiplexing (TDM): A communication technology that allows multiple signals to be transmitted simultaneously on the same channel by dividing the total channel time into multiple time slices and allocating multiple time slices to different signals.

[0040] Time Slice: A divided time period;

[0041] RF (radio frequency);

[0042] WiFi (wireless network);

[0043] BLE (Bluetooth Low Energy);

[0044] combo (coexistence);

[0045] SOC chip (system on chip).

[0046] Figure 1 A schematic diagram of an implementation flow of a wireless communication method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes steps S101 to S102.

[0047] S101. In response to a target service of a first protocol starting to occupy an air interface, sending a sleep instruction packet to a router; wherein the sleep instruction packet is used to instruct to stop sending or receiving data packets of a second protocol.

[0048] In the embodiment of the present application, when the first protocol enters the target service, that is, when the target service of the first protocol begins to occupy the air interface, the multi-protocol coexisting communication chip can send a sleep instruction packet (power save packet) to the router. The sleep instruction packet can instruct the router to enter the sleep state, so that the router will stop sending or receiving data packets of the second protocol.

[0049] S102: In response to the target service of the first protocol ending the occupation of the air interface, sending a wake-up instruction packet to the router; wherein the wake-up instruction packet is used to instruct to start sending or receiving data packets of the second protocol.

[0050] In the embodiment of the present application, when the window period of the target service of the first protocol ends, that is, when the target service of the first protocol ends occupying the air interface, the multi-protocol coexisting communication chip can send a wakeup instruction packet (wakeup packet) to the router. The wakeup instruction packet can instruct the router to end the sleep state, so that the router can continue to send or receive data packets of the second protocol.

[0051] It can be understood that when the target service of the first protocol starts to occupy the air interface, a sleep instruction packet is sent to instruct to stop sending or receiving the data packets of the second protocol, until the target service of the first protocol stops occupying the air interface, and then a wake-up instruction packet is sent to instruct to continue sending or receiving the data packets of the second protocol. In this way, the router is prevented from repeatedly sending the data packets of the second protocol during the time slice when the target service of the first protocol occupies the air interface, that is, data retransmission is avoided, and further, the problem of the second protocol physical layer speed reduction caused by data retransmission is avoided, thereby improving the rate performance of the second protocol.

[0052] In some embodiments of the present application, the wireless communication method further includes: Figure 2 Steps S103 to S104 are shown and will be described in conjunction with each step.

[0053] S103 : In response to sending the sleep instruction packet to the router, buffering the data packet of the second protocol to be sent.

[0054] S104: In response to sending the wake-up instruction packet to the router, sending the cached second protocol data packet.

[0055] In the embodiment of the present application, in response to sending a sleep instruction packet to the router, the multi-protocol coexistence communication chip will cache the data packet of the second protocol to be sent during the window period of the target service of the first protocol. Furthermore, in response to sending a wake-up instruction packet to the router, that is, after the window period of the target service of the first protocol ends, the multi-protocol coexistence communication chip will resend the cached data packet of the second protocol.

[0056] It is understandable that the data packets of the second protocol to be sent are cached, so that after the window period of the target service of the first protocol ends, the cached data packets of the second protocol are sent again. In this way, the integrity of the transmitted data packets is guaranteed and the loss of data packets is avoided.

[0057] Optionally, in some embodiments of the present application, the first protocol includes: a Bluetooth Low Energy (BLE) protocol; the second protocol includes: a wireless network (WiFi) protocol; and the target service includes: a scan service.

[0058] It should be noted that the WiFi and BLE combo chip is a SOC chip that integrates the WiFi protocol and the BLE protocol, and can be used for application scenarios where WiFi and BLE coexist. In the WiFi and BLE combo chip, the WiFi protocol and the BLE protocol share RF channel resources. Therefore, whether a single antenna or dual antennas are used, there is a problem of WiFi protocol and BLE protocol competing for RF channel resources.

[0059] The services of WiFi protocol include: idle, scan, connecting and connected. The services of BLE protocol include: idle, adv (advertising), scan, connect, and coexistence of multiple scenarios (such as BLE mesh).

[0060] Furthermore, all services of the WiFi protocol and the BLE protocol are decomposed into the use of RF channels, and there are three states, namely idle, tx (transmit) and rx (receive). Among them, when the WiFi protocol or the BLE protocol is not working, that is, they are both in the idle state. At this time, there is no coexistence problem of competing for RF resources. When the WiFi protocol is working, the rx state is always open and only switches to the tx state when sending a packet. When the BLE protocol is working, except for the scan service, only occasional instantaneous tx and rx are performed at the set time point, and the rest of the time is in the idle state, and the scan service will be in the rx state for a long time.

[0061] refer to Figure 3For BLE's adv (broadcast) service, since the adv event (broadcast event) takes a very short time, each adv event does not require a long time slice. Even if adv events are frequent, the interval between adv events (broadcast interval + broadcast delay) is short, and it will not cause excessive air interface occupancy.

[0062] Continue to refer Figure 3 Compared with the broadcast service of BLE protocol, the scanning service of BLE protocol occupies a longer time slice of the air interface, that is, the scanning window period is longer. When executing the scanning service of BLE protocol, rx needs to be always open, which will occupy the air interface all the time. During this period, the WiFi protocol cannot use the RF channel; and the WiFi protocol cannot use the RF channel for a long time, which will cause problems with the WiFi protocol service.

[0063] refer to Figure 4 , pulling it high means using the RF channel (i.e. occupying the air interface), and pulling it low means not using the RF channel (i.e. not occupying the air interface). Even if the time slice used by the RF channel is configured for the scanning service of the BLE protocol, that is, setting the time slice of the BLE scanning window period and the time slice of the BLE scanning interval, it is difficult to alleviate the problems of the WiFi protocol service. Since the BLE protocol occupies the air interface for a long time, the WiFi protocol will not receive data packets during this period, and then a large number of retransmissions will be generated, resulting in problems such as a reduction in the physical layer rate of the WiFi protocol. At the same time, multiple retransmissions will also waste the time for sending and receiving packets, and the physical layer rate reduction and increase of the WiFi protocol also require a time period to complete, which will result in a large amount of waste of the RF time slice of the WiFi protocol. In severe cases, the rate of the WiFi protocol will drop rapidly, and even cause the application of the WiFi protocol to lose data.

[0064] In the present application, continue to refer to Figure 4 At the beginning of the BLE scanning window, the combo chip can send a sleep instruction packet to the router, instructing the router to stop sending or receiving WiFi protocol data packets. At the same time, the combo chip will cache the WiFi protocol data packets to be sent; and the router will also cache the WiFi protocol data packets to be sent in response to the sleep instruction packet.

[0065] Furthermore, at the end of the BLE scanning window, the combo chip can send a wake-up instruction packet to the router, instructing the router to start sending or receiving WiFi protocol data packets. The combo chip will send the cached WiFi protocol data packets to the router; and the router will also respond to the wake-up instruction packet and send the cached WiFi protocol data packets to the combo chip device.

[0066] In this way, data retransmission is avoided, and further, the physical layer of the WiFi protocol will not be slowed down due to data retransmission, thereby significantly improving the rate performance of the WiFi protocol. After actual measurement, when the time slice configuration ratio of the BLE protocol and the WiFi protocol using the RF channel is 30:70, the data transmission rate of the WiFi protocol is greater than 60% of the data transmission rate of the single WiFi protocol. Compared with the prior art, in the solution provided in the embodiment of the present application, the data transmission rate of the WiFi protocol of the BLE protocol and WiFi protocol combo chip is increased by more than 500%.

[0067] In some embodiments of the present application, the wireless communication method further includes step S105, which will be described in conjunction with each step.

[0068] S105: Other services of the first protocol periodically occupy the air interface according to a preset interval.

[0069] In the embodiment of the present application, other services are services other than the target service in the first protocol.

[0070] Taking the combo chip of WiFi and BLE as an example, the target service of the first protocol may be the scan service of the BLE protocol, and the other services of the first protocol may be the broadcast (adv) service and the connection (connect) service of the BLE protocol. For the broadcast (adv) service and the connection (connect) service, each event occupies the RF channel for a short time, so the air interface can be occupied regularly without the need for sleep instruction packets and wake-up instruction packets.

[0071] Combine the following Figure 5 and Figure 6 The adv service of the BLE protocol is described.

[0072] refer to Figure 5 , the interval of adv event is T_advEvent = advInterval (broadcast interval) + advDelay (broadcast delay). Among them, advInterval value range: 20ms ~ 10.24s; advDelay value range: 0 ~ 10ms. Each adv event sends a data packet on the three channels 37, 38 and 39 respectively. The time interval for sending data packets on different channels is 2*T_IFS (data frame time interval) + RxWindow (receive window time).

[0073] refer to Figure 6, pulling it high means using the RF channel (i.e. occupying the air interface), and pulling it low means not using the RF channel (i.e. not occupying the air interface). When BLE's adv events are frequent, its air interface occupancy rate is about 10%. In actual application scenarios, since the adv packet length is less than or equal to 376us, and the advInterval can be adjusted between 20ms and 10.24s, the air interface occupancy rate of BLE's adv service is much less than 10%, and has little impact on WiFi's services. In other words, when BLE's adv service and WiFi's service coexist, BLE's adv service occupies the RF channel for a short time, which will not affect WiFi's service, and the measured results are consistent with the theory.

[0074] Combine the following Figure 7 This section describes the connect service of the BLE protocol.

[0075] refer to Figure 7 , in the state of the connect service, data packets will be sent and received regularly according to the set connection interval (connectinterval); the connect interval value range is 7.5ms~4000ms. In general application scenarios, when the connect service is carried out normally, the data volume of the BLE protocol is small, and the data packet length is also small (23B). Therefore, the connection interval is 30ms, and the air interface occupancy is only for occasional data and empty packets for synchronization (sync). For the connect service of the BLE protocol, the air interface occupancy rate is about 2.7% when there is data, and the air interface occupancy rate is about 1.5% when there is no data. In the most extreme case, when the 7.5ms connection interval is used, the air interface occupancy rate is about 6% when BLE maintains the connection without packet filling; that is, the air interface occupancy rate of the connect service of the BLE protocol does not exceed 6%. Therefore, when the BLE connect service and the WiFi service coexist, the short-term occupation of the RF channel by the BLE connect service will not have a significant impact on the WiFi service, and the measured results are consistent with the theory.

[0076] In some embodiments of the present application, the air interface occupancy rate of the target service of the first protocol is greater than 10%. The air interface occupancy rate of other services of the first protocol is less than or equal to 10%. The target service of the first protocol occupies the air interface for a time slice greater than or equal to 10 ms each time.

[0077] In the embodiment of the present application, taking the combo chip of WiFi and BLE as an example, the air interface occupancy rate of the scan service of the BLE protocol is greater than 10%, and the time slice of each air interface occupancy is greater than or equal to 10ms; while the air interface occupancy rate of the adv service and connect service of the BLE protocol is less than or equal to 10%.

[0078] It can be understood that, on the one hand, for services with a large air interface occupancy rate and a large time slice each time the air interface is occupied, such as the scan service of the BLE protocol, sleep instruction packets and wake-up instruction packets can be used to control the router to send and receive data packets. In this way, data retransmission can be avoided, and then, the physical layer speed reduction problem caused by data retransmission can be avoided.

[0079] On the other hand, for services with low air interface occupancy and small air interface time slices each time, such as the BLE protocol adv service and connect service, the air interface can be occupied regularly at preset intervals, which has little impact on actual operation. On the contrary, if sleep instruction packets and wake-up instruction packets are used, additional data transmission and calculation may be required, which will reduce the rate.

[0080] In summary, for different services in the first protocol, an appropriate method is adopted to occupy the air interface, thereby effectively improving the performance of the communication chip in which multiple protocols coexist.

[0081] Figure 8 A schematic diagram of an implementation flow of a wireless communication method provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the method includes steps S201 to S202.

[0082] S201 . In response to receiving a sleep instruction packet, stop sending or receiving data packets of a second protocol.

[0083] S202: In response to receiving the wake-up instruction packet, start sending or receiving data packets of the second protocol.

[0084] In the embodiment of the present application, after receiving the sleep instruction packet, the router will enter the sleep state, thereby stopping sending or receiving data packets of the second protocol. Correspondingly, after receiving the wake-up instruction packet, the router will end the sleep state, thereby starting to send or receive data packets of the second protocol.

[0085] It can be understood that when the target service of the first protocol starts to occupy the air interface, in response to the sleep instruction packet, the sending or receiving of the data packets of the second protocol stops, until the target service of the first protocol stops occupying the air interface, and then in response to the wake-up instruction packet, the sending or receiving of the data packets of the second protocol continues. In this way, it is avoided that the router repeatedly executes the sending of the data packets of the second protocol during the time slice when the target service of the first protocol occupies the air interface, that is, data retransmission is avoided, and then the speed reduction problem of the second protocol physical layer caused by data retransmission is avoided, thereby improving the rate performance of the second protocol.

[0086] In some embodiments of the present application, the wireless communication method further includes: Fig. 9 Steps S203 to S204 are shown and will be described in conjunction with each step.

[0087] S203 : In response to receiving the sleep instruction packet, buffer the data packet of the second protocol to be sent.

[0088] S204: In response to receiving the wake-up instruction packet, send the cached second protocol data packet.

[0089] In the embodiment of the present application, in response to receiving the sleep instruction packet, the router will cache the data packet of the second protocol to be sent during the window period of the target service of the first protocol. Further, in response to receiving the wake-up instruction packet, that is, after the window period of the target service of the first protocol ends, the router will send the cached data packet of the second protocol again.

[0090] It is understandable that the data packets of the second protocol to be sent are cached, so that after the window period of the target service of the first protocol ends, the cached data packets of the second protocol are sent again. In this way, the integrity of the transmitted data packets is guaranteed and the loss of data packets is avoided.

[0091] The present application also provides a multi-protocol coexistence communication chip, such as Fig.10 As shown, the communication chip 310 is configured to execute a computer program to implement steps S101 to S104 in the above solution. The communication chip 310 may be a combo chip of WiFi and BLE.

[0092] The present application also provides an electronic device, such as Fig.10 As shown, the electronic device 300 includes a communication chip 310 with multiple protocols coexisting. The electronic device 300 can be a terminal, a server, a router or other device. The electronic device 300 can be any electronic product that can interact with the user through one or more methods such as a keyboard, a touch pad, a touch screen, a remote control, voice interaction or a handwriting device, such as a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, etc. The server can be a single server or a server cluster consisting of multiple servers.

[0093] Fig.11 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.11As shown, the electronic device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors 320 and one or more memories 330. Among them, at least one computer program is stored in the one or more memories 330, and the at least one computer program is loaded and executed by the one or more processors 320, so that the electronic device 300 implements the wireless communication methods provided by the above-mentioned various method embodiments. Of course, the electronic device 300 may also have components such as a wired or wireless network interface and an input and output interface for input and output, and the electronic device may also include other components for implementing device functions, which will not be repeated here.

[0094] Combination Fig.10 and Fig.11 The multi-protocol coexistence communication chip 310 at least includes a processor 320. The memory 330 may be integrated into the multi-protocol coexistence communication chip 310, or may be disposed outside the multi-protocol coexistence communication chip 310.

[0095] The present application also provides a router chip, such as Fig.12 As shown, the router chip 410 is configured to execute a computer program to implement steps S201 to S204 in the above solution.

[0096] The present application also provides a router, such as Fig.12 As shown, router 400 includes a router chip 410 .

[0097] Fig.13 The following is a schematic diagram of the architecture of a wireless communication system provided in an embodiment of the present application. Fig.13 As shown, data is exchanged between the electronic device 300 and the router 400 via wireless communication.

[0098] In an embodiment of the present application, the multi-protocol coexistence communication chip 310 in the electronic device 300 can execute steps S101 to S104 in the above scheme, and the router chip 410 in the router 400 can correspondingly execute steps S201 to S204 in the above scheme, thereby completing the target service of the first protocol occupying the air interface.

[0099] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0100] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.

[0101] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.

[0102] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.

[0103] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A wireless communication method, characterized in that: The method comprises: In response to the target service of the first protocol starting to occupy the air interface, sending a sleep instruction packet to the router; wherein the sleep instruction packet is used to instruct to stop sending or receiving data packets of the second protocol; In response to the target service of the first protocol ending the occupation of the air interface, sending a wake-up instruction packet to the router; wherein the wake-up instruction packet is used to instruct the start of sending or receiving data packets of the second protocol.

2. The wireless communication method according to claim 1, characterized in that: The method further comprises: In response to sending the sleep instruction packet to the router, caching the data packet of the second protocol to be sent; In response to sending the wake-up instruction packet to the router, the cached data packet of the second protocol is sent.

3. The wireless communication method according to claim 1, characterized in that: The method further comprises: According to the preset interval time, other services of the first protocol periodically occupy the air interface.

4. The wireless communication method according to claim 1, characterized in that: The air interface occupancy rate of the target service of the first protocol is greater than 10%; The target service of the first protocol occupies an air interface for a time slice greater than or equal to 10 ms each time.

5. The wireless communication method according to claim 3, characterized in that: The air interface occupancy rate of the other services of the first protocol is less than or equal to 10%.

6. The wireless communication method according to any one of claims 1 to 5, characterized in that: The first protocol includes: low power Bluetooth protocol; The second protocol includes: a wireless network protocol; The target service includes: scanning service.

7. A wireless communication method, characterized in that: The method comprises: In response to receiving the sleep instruction packet, stop sending or receiving data packets of the second protocol; In response to receiving the wake-up instruction packet, starting to send or receive data packets of the second protocol.

8. The wireless communication method according to claim 7, characterized in that: The method further comprises: In response to receiving the sleep instruction packet, buffering the data packet of the second protocol to be sent; In response to receiving the wake-up instruction packet, the cached data packet of the second protocol is sent.

9. A multi-protocol coexistence communication chip, characterized in that: The communication chip supports a first protocol and a second protocol; the communication chip is configured to execute a computer program to implement the steps in the method according to any one of claims 1 to 6.

10. An electronic device, characterized in that: The electronic device comprises: the multi-protocol coexistence communication chip as claimed in claim 9.

11. A router chip, characterized in that: The router chip is configured to execute a computer program to implement the steps in the method of claim 7 or 8.

12. A router, characterized in that: The router comprises: the router chip according to claim 11.