Wireless communication chip, control method of wireless communication chip and electronic equipment

By configuring a channel switching mechanism in the wireless communication chip and determining the packet cache method according to the interface type, the problem of high packet loss rate during channel switching is solved, and higher data transmission reliability is achieved.

CN119865861APending Publication Date: 2025-04-22BEIJING ESWIN COMPUTING TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510026984.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-07
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In wireless communication chips where multiple network interfaces coexist with heterochannels, high packet loss rate is likely to occur during channel switching.

Method used

By configuring a channel switching mechanism in the wireless communication chip, the cache method of data packets is determined based on the interface types of different network interfaces before and after channel switching, ensuring the integrity of data packets during channel switching.

Benefits of technology

It effectively reduces the packet loss rate during channel switching and improves the data transmission reliability of wireless communication chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865861A_ABST
    Figure CN119865861A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless communication chip, a control method of the wireless communication chip and electronic equipment, and belongs to the technical field of wireless communication. The wireless communication chip comprises a plurality of network interfaces, different network interfaces correspond to different channels, and the wireless communication chip is configured as follows: when a first channel of a first network interface corresponding to the current work is inconsistent with a second channel of a second network interface corresponding to the next work, the first network interface is communicated with the second network interface; switching the working channel from the first channel to a second channel; before the channel switching is completed, determining a caching mode of a first data packet corresponding to the first network interface according to the interface type of the first network interface, and determining a caching mode of a second data packet corresponding to the second network interface according to the interface type of the second network interface; and after the channel switching is completed, transmitting the cached first data packet and / or the cached second data packet according to different caching modes so as to reduce the packet loss rate of the data packets when the wireless communication chip switches the channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In some application scenarios of wireless communication chips, there are working scenarios where multiple network interfaces coexist in different channels. For example, the multiple network interfaces in the wireless communication chip may include a network interface as a wireless access point and a network interface as a wireless station. Among them, the network interface as a wireless access point works on channel 1 with a frequency of 2412MHz, and the network interface as a wireless station may follow its associated wireless router to work on other channels.

[0003] In the above scenarios, different network interfaces need to transmit data on the channels they work in. When the wireless LAN communication chip has only one set of RF transceiver system, since the wireless LAN communication chip can only work on a single channel at the same time, in order to meet the data transmission needs of multiple network interfaces, the wireless LAN communication chip usually needs to switch between different channels. Summary of the invention

[0004] The present application provides a wireless communication chip, a control method for the wireless communication chip and an electronic device to reduce the packet loss rate of a wireless communication chip with multiple network interfaces and different channels when switching channels.

[0005] Specifically, the following technical solutions are included:

[0006] In a first aspect, the present application provides a wireless communication chip, which includes multiple network interfaces, different network interfaces correspond to different channels, and the wireless communication chip is configured to: when a first channel corresponding to a currently working first network interface is inconsistent with a second channel corresponding to a next working second network interface, switch the working channel from the first channel to the second channel; before the channel switching is completed, determine the caching method of a first data packet corresponding to the first network interface according to the interface type of the first network interface, and determine the caching method of a second data packet corresponding to the second network interface according to the interface type of the second network interface; after the channel switching is completed, transmit the cached first data packet according to the caching method of the first data packet and / or transmit the cached second data packet according to the caching method of the second data packet.

[0007] In some possible implementations, when the wireless communication chip determines the caching method of the first data packet corresponding to the first network interface according to the interface type of the first network interface, it is configured as follows: if the interface type of the first network interface is a data receiving end, a first caching instruction is sent on the first channel to remind the first peer end communicating with the first network interface to cache the first data packet through the first caching instruction.

[0008] In some possible implementations, when the wireless communication chip transmits the cached first data packet according to the cache mode of the first data packet and / or transmits the cached second data packet according to the cache mode of the second data packet, it is configured as follows: if the interface type of the second network interface is a data receiving end, a second wake-up instruction is sent on the second channel, and the second wake-up instruction is used to remind the second peer end communicating with the second network interface to send the second data packet; and receive the second data packet.

[0009] In some possible implementations, when the wireless communication chip determines the caching method of the second data packet corresponding to the second network interface according to the interface type of the second network interface, the configuration is as follows: if the interface type of the second network interface is a data sending end, the second data packet is cached; when the wireless communication chip transmits the cached first data packet according to the caching method of the first data packet and / or transmits the cached second data packet according to the caching method of the second data packet, the configuration is as follows: sending the second data packet on the second channel.

[0010] In some possible implementations, when the wireless communication chip switches the working channel from a first channel to a second channel, it is further configured as follows: if the first channel and the second channel do not overlap, the working channel is switched from the first channel to the second channel according to a first switching mechanism; if the first channel and the second channel overlap, the working channel is switched from the first channel to the second channel according to a second switching mechanism, and the first switching mechanism and the second switching mechanism correspond to different switching times.

[0011] In some possible implementations, when the wireless communication chip switches the working channel from the first channel to the second channel according to the first switching mechanism, the wireless communication chip is configured to: directly switch the working channel from the first channel to the second channel.

[0012] In some possible embodiments, when the wireless communication chip switches the working channel from the first channel to the second channel according to a second switching mechanism, it is configured to: switch to the second channel after the sending time of the nth first beacon frame in the first channel, wherein n is an integer greater than or equal to 1.

[0013] In some possible implementations, if a sending time of a first beacon frame in the first channel and a sending time of a second beacon frame in the second channel are adjacent and a time interval is less than or equal to a time threshold, it is determined that the first channel and the second channel overlap;

[0014] If the sending time of the first beacon frame and the sending time of the second beacon frame are adjacent and the time interval is greater than the time threshold, it is determined that the first channel and the second channel do not overlap.

[0015] In a second aspect, the present application provides a control method for a wireless communication chip, the control method comprising: when a first channel corresponding to a currently working first network interface is inconsistent with a second channel corresponding to a next working second network interface, switching the working channel from the first channel to the second channel; before the channel switching is completed, determining a caching method for a first data packet corresponding to the first network interface according to the interface type of the first network interface, and determining a caching method for a second data packet corresponding to the second network interface according to the interface type of the second network interface; after the channel switching is completed, transmitting the cached first data packet according to the caching method of the first data packet and / or transmitting the cached second data packet according to the caching method of the second data packet.

[0016] In some possible implementations, determining the caching method of the first data packet corresponding to the first network interface according to the interface type of the first network interface includes: if the interface type of the first network interface is a data receiving end, sending a first caching instruction on the first channel to remind the first peer end communicating with the first network interface to cache the first data packet through the first caching instruction.

[0017] In some possible implementations, transmitting the cached first data packet according to the cache mode of the first data packet and / or transmitting the cached second data packet according to the cache mode of the second data packet includes: if the interface type of the second network interface is a data receiving end, sending a second wake-up instruction on the second channel, the second wake-up instruction being used to remind the second peer end communicating with the second network interface to send the second data packet; and receiving the second data packet.

[0018] In some possible implementations, determining the caching method of the second data packet corresponding to the second network interface according to the interface type of the second network interface includes: if the interface type of the second network interface is a data sending end, caching the second data packet; transmitting the cached first data packet according to the caching method of the first data packet and / or transmitting the cached second data packet according to the caching method of the second data packet includes: sending the second data packet on the second channel.

[0019] In some possible implementations, switching the working channel from a first channel to a second channel includes: if the first channel and the second channel do not overlap, switching the working channel from the first channel to the second channel according to a first switching mechanism; if the first channel and the second channel overlap, switching the working channel from the first channel to the second channel according to a second switching mechanism, the first switching mechanism and the second switching mechanism corresponding to different switching times.

[0020] In some possible implementations, switching the working channel from the first channel to the second channel according to a first switching mechanism for when the first channel and the second channel do not overlap includes: directly switching the working channel from the first channel to the second channel.

[0021] In some possible implementations, switching the working channel from the first channel to the second channel according to the second switching mechanism includes: switching to the second channel after the sending time of the nth first beacon frame in the first channel, where n is an integer greater than or equal to 1.

[0022] In some possible implementations, if a sending time of a first beacon frame in the first channel and a sending time of a second beacon frame in the second channel are adjacent and a time interval is less than or equal to a time threshold, it is determined that the first channel and the second channel overlap;

[0023] If the sending time of the first beacon frame and the sending time of the second beacon frame are adjacent and the time interval is greater than the time threshold, it is determined that the first channel and the second channel do not overlap.

[0024] In a third aspect, the present application further provides an electronic device, comprising any one of the wireless communication chips described above.

[0025] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor of an electronic device so that the electronic device implements any of the above-mentioned control methods for the wireless communication chip.

[0026] In a fifth aspect, a computer program product or a computer program is also provided, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes any of the above-mentioned control methods for a wireless communication chip.

[0027] The beneficial effects of the technical solution provided by this application include at least:

[0028] The technical solution provided by the present application can switch channels through a channel switching mechanism when the first channel corresponding to the first network interface currently working is inconsistent with the second channel corresponding to the second network interface working next, so as to meet the data transmission requirements of multiple network interfaces working in different channels in the wireless communication chip. In addition, different caching methods can be formulated for the first data packet corresponding to the first network interface and / or the second data packet corresponding to the second network interface according to network interfaces of different interface types, so as to avoid conflicts between channel switching and data packet transmission of the wireless communication chip, thereby reducing the packet loss rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0031] Figure 2 This is a flow chart of a control method for wireless communication chip communication provided by an embodiment of the present application;

[0032] Figure 3 It is a schematic diagram of a timing diagram of channel switching provided by an embodiment of the present application;

[0033] Figure 4 It is a schematic diagram of another timing diagram of channel switching provided by an embodiment of the present application;

[0034] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0036] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0037] Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 The schematic diagram of the application scenario provided in the embodiment of the present application may include an electronic device 11 and an electronic device 12.

[0038] The electronic device 11 is equipped with a wireless communication chip, and the wireless communication chip may include multiple network interfaces and a control module. Among them, multiple network interfaces correspond to multiple channels, and the multiple channels may be the same or different. When the multiple channels corresponding to the multiple network interfaces of the wireless communication chip are different, the electronic device 11 can communicate with the electronic device 12 on the working channel of any one of the multiple network interfaces at the same time through any one of the multiple network interfaces; the electronic device 11 can also communicate with the electronic device 12 on multiple working channels of the multiple network interfaces at different times through multiple network interfaces by channel switching. For example, the wireless communication chip may include a radio frequency front end at the physical level and multiple network interfaces at the network level. The radio frequency front end in the wireless communication chip can receive / send wireless signals on one channel at the same time, or receive / send wireless signals on multiple different channels at different times by channel switching, so that the electronic device 11 communicates with the electronic device 12 on the working channel of any one of the multiple network interfaces at the same time through any one of the multiple network interfaces, or communicates with the electronic device 12 on multiple working channels of the multiple network interfaces at different times through multiple network interfaces. The control module can be used to control the communication function of the wireless communication chip. For example, it can be used to control the wireless communication chip to switch from the working channel corresponding to the currently working network interface to the working channel corresponding to the next working network interface. Among them, the currently working network interface is used to indicate the network interface that the wireless communication chip is receiving / sending data packets, and the next working network interface is used to indicate the network interface that the wireless communication chip is about to receive / send data packets. For example, the currently working network interface can be the network interface that the wireless communication chip is receiving / sending data packets before the channel switching, and the next working network interface can be the network interface that the wireless communication chip is about to receive / send data packets after the channel switching is completed.

[0039] The electronic device 12 may be, for example, any device capable of wirelessly communicating with the electronic device 11. The electronic device 12 may be the same as or different from the electronic device 11, and the present application does not impose any limitation in this regard.

[0040] Those skilled in the art should understand that the above-mentioned electronic devices 11 and 12 are only examples, and other existing or future electronic devices that are applicable to the present application should also be included in the protection scope of the present application and are included here by reference.

[0041] Since there may be data packets being transmitted on the working channel corresponding to the currently working network interface; or before switching channels, the data packets to be transmitted by the next working network interface have already started to be transmitted, when the wireless communication chip switches from the working channel corresponding to the currently working network interface to the working channel corresponding to the next working network interface, the data packets being transmitted on the working channel corresponding to the currently working network interface may be interrupted, or the data packets to be transmitted on the working channel corresponding to the next working network interface may be incomplete, resulting in data packet loss, thereby affecting the communication quality.

[0042] In view of this, the present application discloses a control method for a wireless communication chip, which can perform targeted processing on data packets corresponding to different network interfaces before and after the channel switching of the wireless communication chip according to the interface types of different network interfaces before and after the channel switching of the wireless communication chip, so as to ensure the integrity of the data packets and reduce the packet loss rate.

[0043] Figure 2 is a flow chart of a control method of a wireless communication chip provided in an embodiment of the present application. The method can be executed by a control module arranged in the wireless communication chip, for example. The present application does not impose any limitation in this regard. Figure 2 The control method of the wireless communication chip provided in the embodiment of the present application may include the following steps:

[0044] Step S210: When a first channel corresponding to a currently working first network interface is inconsistent with a second channel corresponding to a next working second network interface, the working channel is switched from the first channel to the second channel.

[0045] Illustratively, the currently working first network interface may be, for example, the first network interface of the data packet being received / sent in the wireless communication chip before the channel is switched, and the first channel may be, for example, the working channel corresponding to the first network interface corresponding to the data packet being received / sent before the channel is switched. The next working second network interface may be, for example, the second network interface corresponding to the next data packet to be received / sent in the wireless communication chip after the channel is switched, and the second channel may be, for example, the working channel corresponding to the second network interface of the next data packet to be received / sent after the channel is switched.

[0046] As mentioned above, since the wireless communication chip can work on a channel corresponding to a network interface through one of the multiple network interfaces at a single moment, when the second channel of the second network interface corresponding to the next data packet to be transmitted by the wireless communication chip is inconsistent with the first channel corresponding to the currently working first network interface, the wireless communication chip can switch from the first channel to the second channel to meet the data transmission needs of multiple network interfaces.

[0047] Step S220, before the channel switching is completed, determine the cache mode of the first data packet corresponding to the first network interface according to the interface type of the first network interface, and determine the cache mode of the second data packet corresponding to the second network interface according to the interface type of the second network interface.

[0048] Optionally, the interface types of the multiple network interfaces in the wireless communication chip may include, for example, a data receiving end and / or a data sending end, and the present application does not impose any restrictions in this regard. In some embodiments, the data sending end may be, for example, an AP (Access Point) in a wireless network, which may be used to create a wireless network coverage area; the data receiving end may be, for example, a STA (Station) in a wireless network, which may be used to access a wireless network to access network resources.

[0049] As mentioned above, during the channel switching process, the first data packet may be being transmitted in the first channel corresponding to the first network interface currently working on the wireless communication chip; or before the channel is switched, the second data packet to be transmitted in the second channel corresponding to the next working second network interface may have already started to be transmitted. At this time, switching the channel will cause the first data packet and / or the second data packet to be incomplete. In view of this, during the channel switching process, the data packets that may be affected by the channel switching can be cached and transmitted after the communication is stable to ensure the communication quality.

[0050] As mentioned above, the multiple network interfaces in the wireless communication chip can be both data receiving ends and data sending ends. Since the interface types of the first network interface and the second network interface may be different, the first data packet corresponding to the first network interface and the second data packet corresponding to the second network interface may be at the wireless communication chip end or at the other end communicating with the wireless communication chip. In view of this, during the channel switching process, different caching strategies can also be formulated according to the interface types of the network interfaces before and after the channel switching to ensure the integrity of the data packets in different communication scenarios.

[0051] Considering that when the interface type of the first network interface currently working on the wireless communication chip is a data receiving end, in order to ensure the integrity of the first data packet corresponding to the first network interface, it is necessary to enable the first peer end communicating with the first network interface of the wireless communication chip to help cache the first data packet. In view of this, in some embodiments, the caching method of the first data packet corresponding to the first network interface is determined according to the interface type of the first network interface, for example, it may include: if the interface type of the first network interface is a data receiving end, sending a first caching instruction on the first channel to remind the first peer end communicating with the first network interface to cache the first data packet through the first caching instruction. Among them, the first caching instruction may be, for example, any communication protocol formulated between the wireless communication chip and the first peer end for reminding the first peer end to assist the wireless communication chip in caching the first data packet, or any other form of instruction; the first peer end communicating with the first network interface may be, for example, a communication device, a network interface in the wireless communication chip, and any other device or equipment that can communicate with the first network interface of the wireless communication chip according to the first caching instruction, and the present application does not impose any restrictions in this regard.

[0052] In some embodiments, if the interface type of the first network interface is a data receiving end, a first cache instruction is sent on a first channel to remind a first peer end communicating with the first network interface to cache a first data packet through the first cache instruction. For example, the first peer end may be informed through a power saving mechanism in the IEEE802.11 protocol that the first network interface is about to enter a power saving mode, so that the first peer end may cache the data packets that the first network interface is to send to the first network interface during the power saving mode according to the power saving mode of the first network interface.

[0053] In some other embodiments, after the wireless communication chip switches back to the first channel again, the first wake-up instruction can also be used to remind the first peer end communicating with the first network interface of the wireless communication chip to send the first data packet corresponding to the first cache instruction to the first network interface. The first wake-up instruction can be, for example, any communication protocol or any other form of instruction proposed between the wireless communication chip and the first peer end to remind the first peer end communicating with the first network interface of the wireless communication chip to send the first data packet cached by the first cache instruction to the first network interface of the wireless communication chip, and the present application does not impose any restrictions in this regard.

[0054] It is also considered that when the interface type of the next working second network interface of the wireless communication chip is a data transmitter, in order to avoid the transmission of the second data packet corresponding to the second network interface from conflicting with the channel switching and to ensure the integrity of the second data packet, the sequence of the transmission of the second data packet and the channel switching can be set. In view of this, in some embodiments, the caching method of the second data packet corresponding to the second network interface is determined according to the interface type of the second network interface, for example, it may include: if the interface type of the second network interface is a data transmitter, caching the second data packet; transmitting the cached first data packet and / or second data packet according to the caching method, for example, it may include: sending the second data packet on the second channel.

[0055] Considering that when the interface type of the second network interface of the next working wireless communication chip is a data receiving end, the second peer end communicating with the second network interface may not know the current working status of the second network interface, resulting in the second network interface being unable to receive the second data packet in time. In view of this, in some embodiments, the first data packet cached is transmitted according to the caching method of the first data packet and / or the second data packet cached is transmitted according to the caching method of the second data packet, for example, it may include: if the interface type of the second network interface is a data receiving end, a second wake-up instruction is sent on the second channel; a second data packet is received; wherein the second wake-up instruction is used to remind the second peer end communicating with the second network interface to send the second data packet. The second wake-up instruction may be, for example, any communication protocol proposed between the wireless communication chip and the second peer end for reminding the second peer end to send the second data packet to the second network interface, or any other form of instruction; the second peer end communicating with the second network interface may be, for example, a communication device, a network interface in the wireless communication chip, or any other device or equipment that can communicate with the second network interface of the wireless communication chip according to the second wake-up instruction, and the present application does not impose any restrictions in this regard.

[0056] In some embodiments, if the interface type of the second network interface is a data receiving end, sending a second wake-up instruction on the second channel can, for example, be through the power saving mechanism in the IEEE802.11 protocol to inform the second peer end that the second network interface is about to enter the wake-up mode, so that the second peer end can send a data packet to the second network interface according to the wake-up mode of the second network interface.

[0057] In some other embodiments, after the wireless communication chip is cut off from the second channel, the second cache instruction can also be used to remind the second peer end communicating with the second network interface of the wireless communication chip to assist the wireless communication chip in caching the second data packet. The second cache instruction can be, for example, any communication protocol formulated between the wireless communication chip and the second peer end to remind the second peer end to assist the wireless communication chip in caching the second data packet, or any other form of instruction, and the present application does not impose any limitation in this regard.

[0058] Step S230: after the channel switching is completed, the cached first data packet is transmitted according to the cache mode of the first data packet and / or the cached second data packet is transmitted according to the cache mode of the second data packet.

[0059] As mentioned above, in order to meet the data transmission needs of multiple network interfaces in the wireless communication chip, the wireless communication chip needs to switch between the working channels corresponding to different network interfaces. After the wireless communication chip switches to a different channel, it needs to successfully establish a communication connection with the other end based on the management frame (for example, beacon frame) on the channel to perform data transmission. When the time interval between the beacon frame transmission and reception times in the first channel and the second channel before and after the channel switching of the wireless communication chip is small, the beacon frame in the second channel may be missed after switching to the second channel, resulting in the wireless communication chip being unable to transmit the second data packet on the second channel, and then switching back to the first channel again to reduce the data throughput in the second channel.

[0060] refer to Figure 3 , a timing diagram of channel switching provided by an embodiment of the present application includes: the sending time T1 of the first beacon frame periodically sent in the first channel corresponding to the first network interface currently working on the wireless communication chip, and the sending time T2 of the second beacon frame periodically sent in the second channel corresponding to the second network interface working next on the wireless communication chip. Among them, the sending period of the sending time T1 of the first beacon frame is t1, the sending period of the sending time T2 of the second beacon frame is t2, and the working time of the first network interface of the wireless communication chip in the first channel is t3.

[0061] When the sending time T1 of the first beacon frame and the sending time T2 of the second beacon frame are adjacent and the time interval is greater than the working time t3 of the first network interface of the wireless communication chip on the first channel, the wireless communication chip will not miss the sending time T2 of the second beacon frame in the second channel during the process of switching to the second channel of the second network interface and switching back to the first channel from the second channel.

[0062] refer to Figure 4 , another channel switching timing diagram provided by an embodiment of the present application includes: the sending time T1 of the first beacon frame periodically sent in the first channel corresponding to the first network interface currently working on the wireless communication chip, and the sending time T2 of the second beacon frame periodically sent in the second channel corresponding to the second network interface working next on the wireless communication chip. Among them, the sending period of the sending time T1 of the first beacon frame is t1, the sending period of the sending time T2 of the second beacon frame is t2, and the working time of the first network interface of the wireless communication chip in the first channel is t3.

[0063] When the sending time T1 of the first beacon frame and the sending time T2 of the second beacon frame are adjacent and the time interval is less than or equal to the working time t3 of the first network interface of the wireless communication chip on the first channel, the wireless communication chip may miss the sending time T2 of the second beacon frame in the second channel when switching to the second channel of the second network interface and switching back to the first channel from the second channel.

[0064] In view of this, in order to ensure that the wireless communication chip does not miss the beacon frame in the first channel or the second channel when switching channels, so as to further ensure the integrity of the data packets received / sent by the wireless communication chip when switching channels, the embodiment of the present application can divide the channel switching scenarios into: a channel overlapping scenario in which the sending time of the first beacon frame is adjacent to the sending time of the second beacon frame and the time interval is less than or equal to the time threshold, and a non-overlapping scenario in which the sending time of the first beacon frame is adjacent to the sending time of the second beacon frame and the time interval is greater than the time threshold, so as to distinguish the overlapping situations of the first channel and the second channel, and design channel switching mechanisms for different situations.

[0065] In some embodiments, the method for determining whether the first channel and the second channel overlap may be, for example: if the sending time of the first beacon frame in the first channel and the sending time of the second beacon frame in the second channel are adjacent and the time interval is less than or equal to the time threshold, then it is determined that the first channel and the second channel overlap; if the sending time of the first beacon frame in two adjacent first channels and the sending time of the second beacon frame in the second channel are adjacent and the time interval is greater than the time threshold, then it is determined that the first channel and the second channel do not overlap. Among them, the sending time of the first beacon frame may be, for example, multiple times corresponding to the first beacon frame periodically transmitted on the first channel, and the sending time of the second beacon frame may be, for example, multiple times corresponding to the second beacon frame periodically transmitted on the second channel, which can be used for but not limited to determining whether the first channel and the second channel overlap. In some embodiments, the time threshold may be set to 15ms, for example.

[0066] In some embodiments, the control method of the wireless communication chip provided in the embodiments of the present application switches the working channel from the first channel to the second channel, including: if the first channel and the second channel do not overlap, switching the working channel of the wireless communication chip from the first channel to the second channel according to the first switching mechanism; if the first channel and the second channel overlap, switching the working channel of the wireless communication chip from the first channel to the second channel according to the second channel switching mechanism. The first switching mechanism is a switching mechanism used when the first channel and the second channel do not overlap, and the second switching mechanism is a switching mechanism used when the first channel and the second channel overlap, and the switching moments corresponding to the first switching mechanism and the second switching mechanism are different.

[0067] In some embodiments, the method of switching the working channel of the wireless communication chip from the first channel to the second channel according to the first switching mechanism may include, for example: directly switching the working channel from the first channel to the second channel.

[0068] In some other embodiments, the working channel is switched from the first channel to the second channel according to the second switching mechanism, for example, it may include: switching to the second channel after the sending time of the nth first beacon frame in the first channel corresponding to the current work, wherein n is an integer greater than or equal to 1. In some embodiments, the value of n may be, for example, 1, 2, 3, 4, 5, 6, 7, etc., and the present application does not impose any restrictions in this regard. As described above, the sending time of the first beacon frame may include multiple, for example. The sending time of the first beacon frame corresponding to the current work may be, for example, the sending time of the first beacon frame corresponding to the wireless communication chip currently receiving / sending a data packet among multiple first beacon frame moments. Through the above method, the time interval for the wireless communication chip to switch between the first channel and the second channel can be lengthened, so that the first channel and the second channel of the wireless communication chip can communicate effectively in different time periods, avoiding the situation where the wireless communication chip always misses the sending time of the second beacon frame when switching back and forth between the first channel and the second channel due to overlapping beacon frames, and effectively reducing the loss rate of data packets of the wireless communication chip when switching channels.

[0069] The present application can use a channel switching mechanism to enable the wireless communication chip to switch channels when the first channel currently working is inconsistent with the second channel of the next working, so as to meet the data transmission requirements of multiple network interfaces working in different channels in the wireless communication chip. In addition, the present application can also check the interface type of the first network interface corresponding to the first channel and the second network interface corresponding to the second channel, and cache the first data packet corresponding to the first network interface and / or the second data packet corresponding to the second network interface with different strategies for network interfaces of different interface types, so as to avoid conflicts between the channel switching and data packet transmission of the wireless communication chip, thereby reducing the packet loss rate.

[0070] In some possible implementations, the present application also provides a wireless communication chip. The wireless communication chip includes multiple network interfaces, and different network interfaces correspond to different channels. The wireless communication chip is configured to: when the first channel corresponding to the currently working first network interface is inconsistent with the second channel corresponding to the next working second network interface, the working channel is switched from the first channel to the second channel; before the channel switching is completed, the caching method of the first data packet corresponding to the first network interface is determined according to the interface type of the first network interface, and the caching method of the second data packet corresponding to the second network interface is determined according to the interface type of the second network interface; after the channel switching is completed, the cached first data packet is transmitted according to the caching method of the first data packet and / or the cached second data packet is transmitted according to the caching method of the second data packet.

[0071] In some possible implementations, when the wireless communication chip determines the caching method of the first data packet corresponding to the first network interface according to the interface type of the first network interface, it is configured as follows: if the interface type of the first network interface is a data receiving end, a first caching instruction is sent on a first channel to remind the first peer end communicating with the first network interface to cache the first data packet through the first caching instruction.

[0072] In some possible embodiments, when the wireless communication chip transmits a cached first data packet according to a cache method of the first data packet and / or transmits a cached second data packet according to a cache method of the second data packet, it is configured as follows: if the interface type of the second network interface is a data receiving end, a second wake-up instruction is sent on a second channel, and the second wake-up instruction is used to remind the second peer end communicating with the second network interface to send a second data packet; and receive the second data packet.

[0073] In some possible implementations, when the wireless communication chip determines the caching method of the second data packet corresponding to the second network interface according to the interface type of the second network interface, the wireless communication chip is configured as follows: if the interface type of the second network interface is a data sending end, the second data packet is cached; when the wireless communication chip transmits the cached first data packet according to the caching method of the first data packet and / or transmits the cached second data packet according to the caching method of the second data packet, the wireless communication chip is configured as follows: sending the second data packet on the second channel.

[0074] In some possible implementations, when the wireless communication chip switches the working channel from a first channel to a second channel, it is configured as follows: if the first channel and the second channel do not overlap, the working channel is switched from the first channel to the second channel according to a first switching mechanism; if the first channel and the second channel overlap, the working channel is switched from the first channel to the second channel according to a second switching mechanism, and the first switching mechanism and the second switching mechanism correspond to different switching times.

[0075] In some possible implementations, when the wireless communication chip switches the working channel from the first channel to the second channel according to the first switching mechanism, the wireless communication chip is configured to: directly switch the working channel from the first channel to the second channel.

[0076] In some possible embodiments, when the wireless communication chip switches the working channel from the first channel to the second channel according to the second switching mechanism, it is configured to: switch to the second channel after the sending time of the nth first beacon frame in the first channel, where n is an integer greater than or equal to 1.

[0077] In some possible implementations, if the sending time of the first beacon frame in the first channel and the sending time of the second beacon frame in the second channel are adjacent and the time interval is less than or equal to a time threshold, it is determined that the first channel and the second channel overlap; if the sending time of the first beacon frame and the sending time of the second beacon frame are adjacent and the time interval is greater than the time threshold, it is determined that the first channel and the second channel do not overlap.

[0078] It should be noted that the wireless communication chip provided in the above embodiment is only used as an example to illustrate the implementation of its functions. In actual functions, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the wireless communication chip is divided into different functional modules to complete all or part of the functions described above. In addition, the wireless communication chip provided in the above embodiment and the method embodiment belong to the same concept, and the specific implementation process can be found in the method embodiment.

[0079] In some other possible implementations, the present application also provides a structural schematic diagram of an electronic device. Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 The electronic device includes a wireless communication chip 301, which is used to execute the above Figure 2 The control method of the wireless communication chip provided by the method embodiment. Of course, the electronic device may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input and output, and the electronic device may also include other components for realizing the functions of the device, which will not be described in detail here.

[0080] In some other possible implementations, the present application further provides a computer-readable storage medium having at least one computer program stored thereon, the at least one computer program being loaded and executed by a processor of an electronic device to enable the electronic device to implement the above Figure 2A control method for a wireless communication chip provided in a method embodiment. Depending on the implementation, the computer-readable storage medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0081] In some other possible implementations, the present application further provides a computer program (product), which includes a computer program / instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device implements the above Figure 2 A method for controlling a wireless communication chip is provided in a method embodiment.

[0082] In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The term "plurality" refers to two or more, unless otherwise clearly defined.

[0083] It should be noted that the electronic device in this application may also be referred to as a display device. In addition, the information, data (including but not limited to image data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the grayscale values ​​involved in this application are obtained with full authorization.

[0084] The term "and / or" in the embodiments of the present application is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone.

[0085] The above description is only for the purpose of facilitating the technical solution of the present application to be understood by those skilled in the art, and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A wireless communication chip, characterized in that: The wireless communication chip includes a plurality of network interfaces, the plurality of network interfaces correspond to a plurality of channels, and the wireless communication chip is configured as follows: When a first channel corresponding to a currently working first network interface is inconsistent with a second channel corresponding to a next working second network interface, switching the working channel from the first channel to the second channel; Before the channel switching is completed, determining a cache mode of a first data packet corresponding to the first network interface according to the interface type of the first network interface, and determining a cache mode of a second data packet corresponding to the second network interface according to the interface type of the second network interface; After the channel switching is completed, the cached first data packet is transmitted according to the cache mode of the first data packet and / or the cached second data packet is transmitted according to the cache mode of the second data packet.

2. The wireless communication chip according to claim 1, characterized in that: When the wireless communication chip determines the cache mode of the first data packet corresponding to the first network interface according to the interface type of the first network interface, the wireless communication chip is configured as follows: If the interface type of the first network interface is a data receiving end, a first cache instruction is sent on the first channel to remind a first peer end communicating with the first network interface to cache the first data packet through the first cache instruction.

3. The wireless communication chip according to claim 1, characterized in that: When the wireless communication chip transmits the cached first data packet according to the cache mode of the first data packet and / or transmits the cached second data packet according to the cache mode of the second data packet, the wireless communication chip is configured as follows: If the interface type of the second network interface is a data receiving end, sending a second wake-up instruction on the second channel, where the second wake-up instruction is used to remind a second peer end communicating with the second network interface to send the second data packet; The second data packet is received.

4. The wireless communication chip according to claim 1, characterized in that: When the wireless communication chip determines the cache mode of the second data packet corresponding to the second network interface according to the interface type of the second network interface, the wireless communication chip is configured as follows: If the interface type of the second network interface is a data sending end, cache the second data packet; When the wireless communication chip transmits the cached first data packet according to the cache mode of the first data packet and / or transmits the cached second data packet according to the cache mode of the second data packet, the wireless communication chip is configured as follows: The second data packet is sent on the second channel.

5. The wireless communication chip according to claim 1, characterized in that: When the wireless communication chip switches the working channel from the first channel to the second channel, the wireless communication chip is configured as follows: If the first channel and the second channel do not overlap, switching the working channel from the first channel to the second channel according to a first switching mechanism; If the first channel and the second channel overlap, the working channel is switched from the first channel to the second channel according to a second switching mechanism, and the first switching mechanism and the second switching mechanism correspond to different switching moments.

6. The wireless communication chip according to claim 5, characterized in that: When the wireless communication chip switches the working channel from the first channel to the second channel according to the first switching mechanism, the wireless communication chip is configured as follows: The working channel is directly switched from the first channel to the second channel.

7. The wireless communication chip according to claim 5, characterized in that: When the wireless communication chip switches the working channel from the first channel to the second channel according to the second switching mechanism, the wireless communication chip is configured as follows: Switch to the second channel after the sending time of the nth first beacon frame in the first channel, where n is an integer greater than or equal to 1.

8. The wireless communication chip according to claim 5, characterized in that: If the sending time of the first beacon frame in the first channel and the sending time of the second beacon frame in the second channel are adjacent and the time interval is less than or equal to the time threshold, it is determined that the first channel and the second channel overlap; If the sending time of the first beacon frame and the sending time of the second beacon frame are adjacent and the time interval is greater than the time threshold, it is determined that the first channel and the second channel do not overlap.

9. A control method for a wireless communication chip, characterized in that: The control method comprises: When a first channel corresponding to a currently working first network interface is inconsistent with a second channel corresponding to a next working second network interface, switching the working channel from the first channel to the second channel; Before the channel switching is completed, determining a cache mode of a first data packet corresponding to the first network interface according to the interface type of the first network interface, and determining a cache mode of a second data packet corresponding to the second network interface according to the interface type of the second network interface; After the channel switching is completed, the cached first data packet is transmitted according to the cache mode of the first data packet and / or the cached second data packet is transmitted according to the cache mode of the second data packet.

10. The control method according to claim 9, characterized in that: The determining, according to the interface type of the first network interface, a caching method of the first data packet corresponding to the first network interface includes: If the interface type of the first network interface is a data receiving end, a first cache instruction is sent on the first channel to remind a first peer end communicating with the first network interface to cache the first data packet through the first cache instruction.

11. The control method according to claim 9, characterized in that: The transmitting the cached first data packet according to the cache mode of the first data packet and / or the transmitting the cached second data packet according to the cache mode of the second data packet includes: If the interface type of the second network interface is a data receiving end, sending a second wake-up instruction on the second channel, where the second wake-up instruction is used to remind a second peer end communicating with the second network interface to send the second data packet; The second data packet is received.

12. The control method according to claim 9, characterized in that: The determining, according to the interface type of the second network interface, a cache mode of the second data packet corresponding to the second network interface includes: If the interface type of the second network interface is a data sending end, cache the second data packet; The transmitting the cached first data packet according to the cache mode of the first data packet and / or the transmitting the cached second data packet according to the cache mode of the second data packet includes: The second data packet is sent on the second channel.

13. The control method according to claim 9, characterized in that: The step of switching the working channel from the first channel to the second channel includes: If the first channel and the second channel do not overlap, switching the working channel from the first channel to the second channel according to a first switching mechanism; If the first channel and the second channel overlap, the working channel is switched from the first channel to the second channel according to a second switching mechanism, and the first switching mechanism and the second switching mechanism correspond to different switching moments.

14. The control method according to claim 13, characterized in that: The step of switching the working channel from the first channel to the second channel according to the first switching mechanism includes: The working channel is directly switched from the first channel to the second channel.

15. The control method according to claim 13, characterized in that: The switching of the working channel from the first channel to the second channel according to the second switching mechanism includes: After the transmission time of the nth first beacon frame in the first channel, the second channel is switched, wherein n is an integer greater than or equal to 1.

16. The control method according to claim 13, characterized in that: If the sending time of two adjacent first beacon frames in the first channel and the sending time of the second beacon frame in the second channel are adjacent and the time interval is less than or equal to the time threshold, it is determined that the first channel and the second channel overlap; If the sending time of the first beacon frame and the sending time of the second beacon frame are adjacent and the time interval is greater than the time threshold, it is determined that the first channel and the second channel do not overlap.

17. An electronic device, characterized in that: Comprising the wireless communication chip described in any one of claims 1 to 8.