Household intelligent gateway and channel diagnosis method

By using WiFi chips and processors in home smart gateways, the channel scanning strategy is dynamically adjusted according to the terminal's transmission traffic volume and channel quality, the problem of channel quality fluctuations in the intelligent gateway is solved and the user's WiFi experience is improved.

CN119997045APending Publication Date: 2025-05-13HISENSE BROADBAND MULTIMEDIA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311505590.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The channel quality of the current smart gateway is constantly changing due to interference from home appliances, Bluetooth and other devices and business changes, resulting in large channel interference and serious congestion, affecting the user's WiFi Internet experience.

Method used

By introducing WiFi chips and processors into the home intelligent gateway, scanning mechanisms for different channels are realized, and the current channel scanning, full-channel scanning or partial channel scanning is triggered according to the terminal's transmission traffic volume and channel quality to optimize channel selection and reduce the impact on terminal data services.

Benefits of technology

Effectively take into account terminal data services and user experience, improve channel quality, reduce interference and congestion, and improve users' WiFi Internet experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119997045A_ABST
    Figure CN119997045A_ABST
Patent Text Reader

Abstract

According to the home intelligent gateway and the channel diagnosis method provided by the invention, if the transmission service volume of at least one terminal is greater than a first threshold value, the transmission service volumes of all terminals are smaller than a second threshold value, and the current channel quality meets a preset condition, the current channel scanning is triggered; and if the transmission traffic of at least one terminal is greater than the first threshold value, the transmission traffic of all terminals is less than the second threshold value, and the current channel quality does not meet the preset condition, triggering full-channel scanning. If the transmission service volume of at least one terminal is greater than a second threshold value and the current channel quality meets a preset condition, not triggering channel scanning; if the transmission service volume of at least one terminal is greater than a second threshold value and the current channel quality accords with a preset condition, triggering current channel scanning of a preset number of times, and then selecting not to trigger channel scanning, or triggering full channel scanning or triggering partial channel scanning so as to reduce the influence on the terminal data service as much as possible, thereby improving the user experience. And meanwhile, the channel quality and the user experience are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent gateways, and in particular to a home intelligent gateway and a channel diagnosis method. Background Art

[0002] Smart gateways that support WiFi can be divided into dual-band smart gateways and single-band smart gateways. Dual-band smart gateways can open two frequency band networks, 2.4GHz and 5GHz, which do not interfere with each other; single-band smart gateways generally only open the 2.4GHz band. In the 2.4GHz and 5GHz wireless bands, multiple channels are divided, and each channel has its own frequency range.

[0003] The existence of home appliances, Bluetooth, radar, and other smart gateways, as well as changes in the services performed by wireless terminals connected to other smart gateways, will cause the signal quality on each WiFi channel to change continuously. The current working channel will become highly interfered and congested, affecting the user's WiFi Internet experience. Summary of the invention

[0004] The present application provides a home smart gateway and a channel diagnosis method, which take into account both terminal data services and user experience through different channel scanning mechanisms.

[0005] The home smart gateway provided by this application includes:

[0006] A WiFi chip, used to monitor the transmission traffic of the terminal connected to the home smart gateway, and also used to perform channel scanning;

[0007] The processor is configured as:

[0008] Among the terminals accessing the current frequency band, if the transmission traffic volume of at least one terminal is greater than a first threshold, the transmission traffic volume of all terminals is less than a second threshold, and the current channel quality meets a preset condition, the current channel scan is triggered, and a scan score result of the current channel is obtained; if the scan score result is lower than a preset value, a full channel scan is triggered; wherein the first threshold is less than the second threshold;

[0009] If the transmission traffic volume of at least one terminal is greater than the first threshold, the transmission traffic volume of all terminals is less than the second threshold, and the current channel quality does not meet the preset condition, triggering a full channel scan;

[0010] If the transmission traffic volume of at least one terminal is greater than the second threshold and the current channel quality meets the preset condition, channel scanning is not triggered;

[0011] If the transmission traffic of at least one terminal is greater than the second threshold and the current channel quality does not meet the preset conditions, the current channel scan is triggered for a preset number of times, and based on the scoring results of the current channel scan for the preset number of times, the channel scan is not triggered, or a full channel scan is triggered, or a partial channel scan is triggered.

[0012] In the home smart gateway and channel diagnosis method provided by the present application, the home smart gateway includes a WiFi chip and a processor. Since the radio frequency resources of WiFi focus on the electromagnetic wave interception on the scanned channel frequency during channel scanning, the data service of the terminal will be temporarily suspended. Therefore, in order to reduce the impact on the terminal data service, different channel scanning mechanisms are triggered according to the different transmission traffic volumes of the terminal to take into account the terminal data service and user experience at the same time. In the present application, when the terminal connected to the current frequency band, if the transmission traffic volume of at least one terminal is greater than the first threshold, the transmission traffic volume of all terminals is less than the second threshold, and the current channel quality meets the preset conditions, it means that the transmission traffic volume of some terminals is moderate and there is no terminal with a large transmission traffic volume, and the current channel quality is initially judged to be good. At this time, the current channel scan is triggered and the scanning score result of the current channel is obtained. If the scanning score result of the current channel is lower than the preset value, it indicates that the quality of the current channel is actually poor. At this time, the full channel scan is triggered in order to obtain a channel with better quality and ensure user experience; if the scanning score result of the current channel is higher than the preset value, it indicates that the quality of the current channel is actually good, then it is maintained in the current channel. If the transmission traffic volume of at least one terminal is greater than the first threshold, the transmission traffic volume of all terminals is less than the second threshold, and the current channel quality does not meet the preset conditions, it means that the transmission traffic volume of some terminals is moderate and there is no terminal with a large transmission traffic volume, and the current channel quality is initially judged to be poor. At this time, full channel scanning is triggered in order to obtain a channel with better quality. If the transmission traffic volume of at least one terminal is greater than the second threshold, and the current channel quality meets the preset conditions, it means that the transmission traffic volume of some terminals is large, and the current channel quality is initially judged to be good, then channel scanning is not triggered at this time to avoid affecting the terminal data service; if the transmission traffic volume of at least one terminal is greater than the second threshold, and the current channel quality does not meet the preset conditions, it means that the transmission traffic volume of some terminals is large, and the current channel quality is initially judged to be poor. In order to ensure user experience, it is necessary to trigger the current channel scan for a preset number of times at this time, and choose not to trigger the channel scan, or trigger the full channel scan, or trigger the partial channel scan according to the current channel scan scoring results of the preset number of times, so as to minimize the impact on the terminal data service, and at the same time ensure the channel quality and user experience. In the present application, different channel scanning mechanisms are triggered according to different transmission traffic volumes of the terminal, so as to take into account both the terminal data service and the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required to be used in some embodiments of the present disclosure. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams, and are not limitations on the actual size of the product involved in the embodiments of the present disclosure, the actual process of the method, the actual timing of the signal, etc.

[0014] Figure 1 A schematic diagram of an application scenario of a home smart gateway provided according to some embodiments of the present disclosure;

[0015] Figure 2 A schematic diagram of the structure of a home smart gateway provided according to some embodiments of the present disclosure;

[0016] Figure 3 A schematic diagram of channels corresponding to a 2.4 GHz frequency band of a home smart gateway provided according to some embodiments of the present disclosure;

[0017] Figure 4 A schematic diagram of channels corresponding to a 5 GHz frequency band of a home smart gateway provided according to some embodiments of the present disclosure;

[0018] Figure 5 A schematic diagram of channel scanning in the 2.4 GHz frequency band of a home smart gateway provided according to some embodiments of the present disclosure;

[0019] Figure 6 A schematic diagram of channel scanning in the 5 GHz frequency band of a home smart gateway provided according to some embodiments of the present disclosure;

[0020] Figure 7 A schematic diagram of a relative relationship between a first threshold and a second threshold provided according to some embodiments of the present disclosure;

[0021] Figure 8 A method for scanning a channel of a home smart gateway according to some embodiments of the present disclosure is provided. Figure 1 ;

[0022] Fig. 9 A method for scanning a channel of a home smart gateway according to some embodiments of the present disclosure is provided. Figure 2 ;

[0023] Fig.10 A schematic diagram of a home smart gateway channel scanning embodiment provided according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0024] 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 only 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.

[0025] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "an" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0026] Figure 1 Schematic diagram of an application scenario of a home smart gateway provided according to some embodiments of the present disclosure. Figure 1 As shown, when the terminal 100 is connected to the home smart gateway 200, the terminal 100 scans and finds the home smart gateway 200, and the terminal 100 and the home smart gateway 200 mutually authenticate each other to see if the other party is an 802.11 device to confirm its legitimacy. Then the terminal 100 sends a request packet, the home smart gateway 200 receives the request packet, responds to the request packet, establishes a wireless link between the terminal 100 and the home smart gateway 200, and realizes the association between the terminal 100 and the home smart gateway 200.

[0027] The home smart gateway 200 is used to provide a WiFi network for each terminal. The terminal device can be a wireless terminal. The wireless terminal can be a device that provides voice and / or other business data connectivity to the user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. The wireless terminal can communicate with one or more core network devices via a wireless access network. The wireless terminal can be a mobile terminal, such as a mobile phone, a computer with a mobile terminal, and other terminal devices.

[0028] The home smart gateway 200 can be a dual-band smart gateway or a single-band smart gateway. The dual-band smart gateway can open two frequency band networks, namely the 2.4 GHz frequency band and the 5 GHz frequency band, which do not interfere with each other; the single-band smart gateway generally only opens the 2.4 GHz frequency band.

[0029] In the 2.4GHz and 5GHz wireless frequency bands, multiple channels are divided, each with its own frequency range. WiFi signals are transmitted in the air through electromagnetic waves. The surrounding air is open to the public. Electromagnetic waves emitted by some home appliances, Bluetooth, etc. also work in the 2.4GHz frequency band, which will interfere with the 2.4GHz WiFi of the smart gateway. Electromagnetic waves emitted by radars, etc. work in the 5GHz frequency band, which will interfere with the 5GHz WiFi of the smart gateway. In addition, if there are other routers in use nearby, due to the limited number of channels, the WiFi channels used by these devices may overlap with the channels used by their own routers, which will also interfere with the WiFi signals of their own smart gateways. When there are many routers working on a certain channel, it will cause wireless network congestion, affecting the slow WiFi access of their own smart gateways or difficulty in wireless terminal access, thereby reducing the experience.

[0030] In the present disclosure, different channel scanning mechanisms are used to take into account both terminal data services and user experience.

[0031] Figure 2 FIG. 1 is a schematic diagram of the structure of a home smart gateway provided according to some embodiments of the present disclosure. Figure 2 As shown, in some embodiments, the home smart gateway includes a WiFi chip and a processor. The WiFi chip is configured to monitor the transmission traffic of each terminal connected to the home smart gateway and perform channel scanning. In some embodiments, the transmission traffic can be characterized by the number of data transmission bytes received plus the number of data transmission bytes sent within a certain period of time; in some embodiments, the transmission traffic can also be characterized by the receiving rate plus the sending rate within a certain period of time. Diagnosing the quality of the channel through channel scanning is conducive to providing the terminal with a channel of better quality, thereby improving the user experience.

[0032] Figure 3 A schematic diagram of channels corresponding to a 2.4 GHz frequency band of a home smart gateway provided according to some embodiments of the present disclosure; Figure 4 Schematic diagram of channels corresponding to the 5 GHz frequency band of a home smart gateway provided according to some embodiments of the present disclosure. Figure 3 and Figure 4 As shown, in some embodiments, different countries have different channel divisions for frequency bands. For example, the 2.4 GHz frequency band uses 1 to 13 WiFi channels, and the 5 GHz frequency band uses 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, and 165 WiFi channels.

[0033] Figure 5A schematic diagram of channel scanning in the 2.4 GHz frequency band of a home smart gateway provided according to some embodiments of the present disclosure; Figure 6 FIG. 1 is a schematic diagram of channel scanning in the 5 GHz frequency band of a home smart gateway according to some embodiments of the present disclosure. Figure 5 and Figure 6 As shown, in some embodiments, the quality of the channel can be diagnosed through channel scanning, so as to know the channel quality of the current working channel and whether there are channels with better quality that can be used. When there are channels with better quality, the system can autonomously optimize to work on the better channel.

[0034] In some embodiments, when scanning channels, the radio frequency resources of WiFi focus on the electromagnetic wave listening on the frequency of the scanned channel, which will temporarily suspend the data service of the wireless terminal and have a certain impact on the data service of the terminal. Therefore, in the present disclosure, the data service and user experience of the wireless terminal should be taken into account at the same time to achieve a balance between the data service of the wireless terminal and channel scanning.

[0035] Figure 7 A schematic diagram of the relative relationship between a first threshold and a second threshold provided according to some embodiments of the present disclosure. In some embodiments, different channel scanning mechanisms are triggered according to different transmission traffic volumes of the terminal to take into account both the terminal data service and the user experience. To this end, a first threshold M1 and a second threshold M2 are set, wherein the first threshold M1 is less than the second threshold M2. In some embodiments, different channel scanning mechanisms are triggered according to the relationship between the transmission traffic volume of the terminal, the first threshold M1, and the second threshold M2. Different channel scanning mechanisms include full channel scanning, partial channel scanning, and single channel scanning.

[0036] Figure 8 A method for scanning a channel of a home smart gateway according to some embodiments of the present disclosure is provided. Figure 1 ; Fig. 9 A method for scanning a channel of a home smart gateway according to some embodiments of the present disclosure is provided. Figure 2 .like Figure 8 and Fig. 9 As shown, in some embodiments, different channel scanning mechanisms are triggered according to the different transmission traffic volumes of the terminal, so as to take into account both the terminal data service and the user experience. Since the full channel scan takes several seconds and has a certain impact on the terminal service interruption, when there is no wireless terminal hanging under the frequency band, or the transmission traffic volume of all hanging terminals is less than the first threshold M1, the full channel scan of the corresponding frequency band is triggered. When the transmission traffic volume of all hanging terminals is less than the first threshold M1, it means that the transmission traffic volume of all hanging terminals is small, and the impact of channel scanning is small. Therefore, it is also suitable to do full channel scanning at this time, in order to obtain the channel with the best quality.

[0037] In some embodiments, when the transmission traffic of the downlink wireless terminal is greater than the first threshold M1, the quality of the current channel is diagnosed to determine whether it is necessary to perform full-channel WiFi diagnosis. If the quality score of the current channel is low to a certain extent, it will have a significant impact on the user's Internet experience, and the user will notice it. In this case, full-channel diagnosis and optimization must be performed.

[0038] When performing a full channel scan of the current frequency band, the quality factor is calculated based on the parameter results obtained from the scan, and then the channel scan score result is obtained based on the weight ratio of different quality factors. The channel with the best quality score is set as the working channel. In order to ensure the continuity of the wireless terminal connection, the Channel Switch Announcement frame can be sent to each downstream wireless terminal to switch to the new channel.

[0039] In some embodiments of the present disclosure, when the transmission traffic volume of not all wireless terminals is less than the first threshold M1, it means that the transmission traffic volume of at least one terminal is greater than the first threshold M1. When the transmission traffic volume of at least one terminal is greater than the first threshold M1 and the transmission traffic volume of all terminals is less than the second threshold M2, the channel scanning trigger mechanism includes:

[0040] S110: If the transmission traffic volume of at least one terminal is greater than the first threshold, the transmission traffic volume of all terminals is less than the second threshold, and the current channel quality meets the preset conditions, the current channel scan is triggered and the scan score result of the current channel is obtained; if the scan score result is lower than the preset value, the full channel scan is triggered.

[0041] When the transmission traffic volume of at least one terminal is greater than the first threshold M1 and the transmission traffic volume of all terminals is less than the second threshold M2, it indicates that the transmission traffic volume of some terminals is moderate and there is no terminal with a large transmission traffic volume. At this time, the current channel is preliminarily diagnosed to be moderate. If the current channel quality meets the preset conditions, it means that the current channel quality is initially judged to be good. In order to ensure user experience, the current channel quality status can be confirmed at this time. Since single-channel scanning has little effect on terminal service transmission interruption, the current channel scan can be triggered at this time, and the current channel scan score result can be obtained. If the scan score result is lower than the preset value, it indicates that the current channel quality status is actually poor. At this time, since the transmission traffic volume of some terminals is moderate and there is no terminal with a large transmission traffic volume, the transmission traffic volume is not very large, so the full channel scan can be triggered at this time; if the scan score result is higher than the preset value, it indicates that the current channel quality status is actually good, and the terminal can be maintained on the current channel at this time.

[0042] In some embodiments, when performing a full channel scan, some wireless terminals are sensitive to the time of service interruption caused by channel scanning. Too long an interruption may cause these wireless terminals to disconnect from the intelligent gateway. Therefore, when performing a full channel scan, the intelligent gateway performs a K-segment scan (exemplarily, K can be 2 or 3): first scan the first segment of the channel and then return to the working channel, then scan the second segment of the channel and then return to the working channel, and scan all channels that should be scanned according to this scanning method.

[0043] In some embodiments, preliminarily diagnosing the current channel quality status includes:

[0044] The wireless terminals with signal strength greater than the strength threshold are taken as monitoring objects, and the quality of the current working channel is preliminarily diagnosed by monitoring the data error rate and negotiation rate of each monitoring object. Among them, the data error rate is used to measure the accuracy of data transmission within a specified time. The error rate = error in transmission / total number of transmitted codes * 100%. The data error rate is often used to indicate the channel transmission quality of the signal. The negotiation rate refers to the theoretical fastest rate supported by the wireless router and the terminal in the wireless environment of the current channel. The negotiation rate is used to reflect the speed of WiFi network transmission. For example, the negotiation rate can be 54Mbit / s. Of course, other parameters of the monitoring object can also be monitored to preliminarily diagnose the quality of the current working channel.

[0045] The weighted score corresponding to the monitored object is obtained according to the data bit error rate and negotiation rate of the monitored object. If the weighted scores of a preset number of monitored objects are all greater than the first weighted threshold, it indicates that the current channel quality meets the preset conditions, that is, the current channel quality is in good condition, and the terminal can be maintained in the current channel. Exemplarily, it is determined whether there are more than A% of monitored objects whose bit error rates and negotiation rate weighted scores are greater than the first weighted threshold. If so, it indicates that the current channel quality meets the preset conditions, that is, the current channel quality is in good condition, and the terminal can be maintained in the current channel.

[0046] The weighted score corresponding to the monitored object is obtained according to the data bit error rate and negotiation rate of the monitored object. If there is no preset number of monitored objects whose weighted scores are all greater than the first weighted threshold, it indicates that the current channel quality does not meet the preset conditions, that is, the current channel quality is poor, and the full channel scan of the current frequency band is triggered. Exemplarily, it is determined whether there are more than A% of monitored objects whose bit error rate and negotiation rate weighted scores are greater than the first weighted threshold. If not, it indicates that the current channel quality does not meet the preset conditions, that is, the current channel quality is poor, and the full channel scan of the current frequency band is triggered.

[0047] S120: If the transmission traffic volume of at least one terminal is greater than the first threshold, the transmission traffic volumes of all terminals are less than the second threshold, and the current channel quality does not meet the preset condition, triggering full channel scanning.

[0048] When the transmission traffic volume of at least one terminal is greater than the first threshold M1 and the transmission traffic volume of all terminals is less than the second threshold M2, it indicates that the transmission traffic volume of some terminals is moderate and there is no terminal with a large transmission traffic volume. At this time, the current channel is preliminarily diagnosed to be moderate. If the current channel quality does not meet the preset conditions, it means that the current channel quality is initially judged to be poor. At this time, since the transmission traffic volume of some terminals is moderate and there is no terminal with a large transmission traffic volume, and the current channel quality is poor, a full channel scan can be triggered at this time to select a channel with better quality for the terminal, thereby improving the user experience.

[0049] In some embodiments, wireless terminals with signal strength greater than a strength threshold are taken as monitoring objects, and the quality status of the current working channel is preliminarily diagnosed by monitoring the data bit error rate and negotiation rate of each monitoring object. Exemplarily, a weighted score corresponding to the monitoring object is obtained according to the data bit error rate and negotiation rate of the monitoring object. If there is no preset number of monitoring objects whose weighted scores are all greater than the first weighted threshold, it indicates that the current channel quality does not meet the preset conditions, that is, the current channel quality is poor, which will have a significant impact on the user's Internet experience, and the user's perception is obvious. In this case, full channel diagnosis and optimization must be performed, so the full channel scan of the current frequency band is triggered at this time.

[0050] In some embodiments, when performing a full channel scan, some wireless terminals are sensitive to the time of service interruption caused by channel scanning. Too long an interruption may cause these wireless terminals to disconnect from the intelligent gateway. Therefore, when performing a full channel scan, the intelligent gateway performs a K-segment scan (exemplarily, K here can be 2 or 3): first scan the first segment of the channel and then return to the working channel, then scan the second segment of the channel and then return to the working channel, and scan all channels that should be scanned according to this scanning method.

[0051] In some embodiments of the present disclosure, when the transmission traffic volume of at least one terminal is greater than the first threshold, and the transmission traffic volume of not all terminals is less than the second threshold, that is, when the transmission traffic volume of at least one terminal is greater than the second threshold M2, the channel scanning trigger mechanism includes:

[0052] S210: If the transmission traffic of at least one terminal is greater than the second threshold and the current channel quality meets the preset condition, channel scanning is not triggered.

[0053] If the transmission traffic of at least one terminal is greater than the second threshold M2, it means that the transmission traffic of some terminals is large and may not be suitable for channel scanning. At this time, by obtaining the weighted score of the data bit error rate and the negotiation rate of the monitored object, it is diagnosed whether the quality of the current channel is good. If the quality of the current channel is good, that is, the quality of the current channel meets the preset conditions, the channel scan is not triggered.

[0054] S220: If the transmission traffic of at least one terminal is greater than the second threshold and the current channel quality does not meet the preset conditions, a preset number of current channel scans are triggered, and based on the preset number of current channel scan scoring results, channel scanning is not triggered, or full channel scanning is triggered, or partial channel scanning is triggered.

[0055] If the transmission traffic volume of at least one terminal is greater than the second threshold value M2, it means that the transmission traffic volume of some terminals is large and may not be suitable for channel scanning. If the quality of the current channel is poor by obtaining the weighted score of the monitored object, that is, the quality of the current channel does not meet the preset conditions, the frequency band is triggered to perform the current channel scan for a preset number of times. Exemplarily, the frequency band is triggered to perform the current channel scan 2 or 3 times.

[0056] Then obtain the scan score results of the current channel for these 2 or 3 times. If one of the scan score results of the current channel for these 2 or 3 times is greater than the preset value, it is assumed that the current channel quality is good. In order to reduce the interruption impact on terminals with large transmission traffic, the channel scan is not triggered at this time; if the scan score results of the current channel for these 2 or 3 times are all lower than the preset value, it means that the current channel quality is poor, which will have a great impact on the user's Internet experience, and the user will notice it. In this case, diagnosis and optimization of the entire channel or a portion of the channel must be performed. At this time, it is necessary to continue to decide to perform a full channel scan, or a partial channel scan. Among them, continuing to decide to perform a full channel scan, or a partial channel scan, includes:

[0057] Determine whether there is a wireless terminal whose transmission traffic volume is less than the first threshold M1 and supports the measurement function. Exemplarily, determine whether there is a wireless terminal whose number of sent + received bytes is less than the first threshold M1, and the terminal supporting the measurement function refers to a terminal supporting the 802.11k function. If there is no wireless terminal whose transmission traffic volume is less than the first threshold M1 and supports the measurement function, since the quality score of the current channel is low to a certain extent, it will have a great impact on the user's Internet experience, and the user will perceive it obviously. In this case, a full channel scan must be performed, that is, a decision is made to perform a full channel scan at this time; if there is a wireless terminal whose transmission traffic volume is less than the first threshold M1 and supports the measurement function, a decision is made to perform a partial channel scan at this time. The specific channel selection method in the partial channel scan includes: sending a Radio measurement request message to these wireless terminals to trigger these terminals to perform a full channel scan and feedback a measurement report, and obtaining the channel utilization rate of each channel and the number of access points of each channel from the measurement report fed back by the terminal; calculating the weighted score of each channel according to the channel utilization rate and the number of access points; triggering a channel scan for a channel whose weighted score is greater than a second weighted threshold. Compared with full channel scanning, this partial channel scanning can shorten the scanning time, thereby reducing the impact of terminal service transmission interruption, thereby ensuring both terminal service transmission and the quality of the working channel.

[0058] Exemplarily, if there are wireless terminals whose transmission traffic volume is less than the first threshold M1 and which support the measurement function, a Radio measurement request message is sent to these wireless terminals to trigger these terminals to perform full channel scan and feed back a Radio measurement report message including a Channel load report and a Beacon report. The dual-band router can obtain the channel utilization of each channel and the number of APs on each channel from the measurement report fed back by the terminal, and then calculate the weighted score of each channel according to the utilization of each channel and the number of APs, and then sort the weighted score of each channel, filter out the channels with the worst weighted scores of B% of the total number of channels, and perform channel scanning on the remaining channels.

[0059] In some embodiments, when performing a full channel scan, some wireless terminals are sensitive to the time of service interruption caused by channel scanning. Too long an interruption may cause these wireless terminals to disconnect from the intelligent gateway. Therefore, when performing a full channel scan, the intelligent gateway performs a K-segment scan (exemplarily, K can be 2 or 3): first scan the first segment of the channel and then return to the working channel, then scan the second segment of the channel and then return to the working channel, and scan all channels that should be scanned according to this scanning method.

[0060] Similarly, in some embodiments, when performing partial channel scanning, considering that some wireless terminals are sensitive to the time of service interruption caused by channel scanning, a long interruption time may cause these wireless terminals to disconnect from the intelligent gateway. Therefore, when performing partial channel scanning, the intelligent gateway performs K-segment scanning (exemplarily, K can be 2 or 3): first scan the first segment of the channel and then return to the working channel, then scan the second segment of the channel and then return to the working channel, and scan all the channels to be scanned according to this scanning method.

[0061] It can be seen that when the number of bytes sent and received by all wireless terminals is less than the first threshold M1, the full channel scan is triggered.

[0062] When there is a wireless terminal whose number of sent+received bytes is greater than or equal to the first threshold M1, and the number of sent+received bytes of all wireless terminals is less than the second threshold M2, the current single channel scan or full channel scan is triggered according to the initial judgment of the quality result of the current channel.

[0063] When there is a wireless terminal whose number of sent + received bytes is greater than or equal to the second threshold M2, a decision is made based on the initial judgment of the quality result of the current channel to decide whether to trigger channel scanning or not. Wherein, when it is necessary to trigger channel scanning, if there is a wireless terminal whose number of sent + received bytes is less than the first threshold M1 and supports the measurement function, a partial channel scan is performed according to the measurement report fed back by the wireless terminal; if there is no wireless terminal whose number of sent + received bytes is less than the first threshold M1 and supports the measurement function, a full channel scan is triggered. That is, when there is a wireless terminal whose number of sent + received bytes is greater than or equal to the second threshold M2, a channel scan is not triggered, a full channel scan is triggered, or a partial channel scan is triggered.

[0064] In some embodiments, different quality factors are obtained according to the parameters obtained by scanning. Exemplarily, the quality factors include channel congestion, channel interference intensity, number of channel access points, access point signal strength, and number of wireless terminals connected to the access point, a total of 5 quality factors. Of course, other quality factors may also be included, and this disclosure does not specifically limit them.

[0065] Exemplarily, the degree of channel congestion can be obtained by calculating the ratio of the time of scanning and detecting WiFi electromagnetic waves / scanning time. The larger the ratio, the larger the data transmission volume of other routers around the router. The channel interference intensity can be obtained by measuring the signal strength of noise + invalid electromagnetic waves during scanning. The larger the signal strength, the stronger the interference, and the more retransmissions the router will perform for data transmission services. The number of channel access points can be obtained by calculating the number of APs that send beacon frames detected by scanning. The larger the value, the more other routers there are around the router, and the greater the potential congestion or interference risk. The access point signal strength can be obtained by measuring the signal strength when the beacon frame is detected. The larger the signal strength, the closer the distance between other routers and the router is, and the greater the potential congestion or interference risk. The number of wireless terminals attached to the access point can be obtained by parsing the Station Count carried in the QBSS Load Element in the beacon frame. The larger the value, the more wireless terminals are attached to other routers, and the greater the potential congestion or interference risk.

[0066] In some embodiments, the channel scanning score result is obtained according to the weight ratio of different quality factors. The five quality factors are assigned a single maximum score according to different weight ratios based on a total score of 100 points. Exemplarily, the weight ratio is channel congestion level>=channel interference intensity>>(much greater than) the number of channel access points>=access point signal strength>number of wireless terminals under the access point, and the priority of the quality factors is sorted in this order. Each quality factor is then scored individually, and the principle is that the larger the factor value, the lower the score. Finally, the five factor scores are added together to obtain the channel quality score result, that is, the scanning score result.

[0067] In some embodiments, the channel with the best score in the scanning score result is set as the working channel. In order to ensure the continuity of the wireless terminal connection, a Channel Switch Announcement frame may be sent to each connected wireless terminal to switch to a new channel.

[0068] In some embodiments, when there is more than one channel with the highest quality score, the scores of the individual factors will be compared in order from high to low according to the priority of the quality factor, and the channel with a high individual score of the high-priority quality factor will be finally determined as the channel with the best quality. The priority of the quality factor is sorted from high to low according to the channel congestion level, channel interference intensity, number of channel access points, access point signal strength, and number of wireless terminals under the access point. Since the center frequency interval of each channel in the 2.4GHz frequency band is short, there will be overlapping parts between channels. Therefore, after the quality score of each 2.4GHz channel is calculated, the quality score of each channel must be added with Delta*N score, Delta is the benchmark difference, N is the number of channels between the channel and the channel with the worst quality score, N is 0 for the worst-scoring channel, N is 1 for the adjacent channel, and so on.

[0069] Fig.10 FIG. 1 is a schematic diagram of a home smart gateway channel scanning embodiment provided according to some embodiments of the present disclosure. Fig.10 As shown, in some embodiments, the home smart gateway channel scanning method includes:

[0070] In some embodiments, the home smart gateway turns on the WiFi diagnosis and optimization function, and then starts a timer with a period of T1. When the timer times out, it is determined whether there is a wireless terminal connected to each frequency band, that is, whether there is a wireless terminal connected to the home smart gateway. Exemplarily, T1 can be 2 hours or 3 hours.

[0071] When there is no wireless terminal hanging down in the frequency band, the full channel scan of the corresponding frequency band is triggered. Since there is no wireless terminal hanging down at this time, the channel scan will not affect the data transmission service of the wireless terminal. Therefore, it is suitable to do full channel scan at this time. When scanning each channel, the quality factor is calculated according to the parameter results obtained by the scan, and then the channel scan score result is obtained according to the weight ratio of different quality factors. The channel with the best quality score is set as the working channel. In order to ensure the continuity of the wireless terminal connection, the Channel Switch Announcement frame can be sent to each wireless terminal hanging down to switch to the new channel.

[0072] When there are wireless terminals in the frequency band, the number of bytes sent and received and the uplink signal strength of each wireless terminal in the T2 time period are continuously counted. Then, it is determined whether there is a wireless terminal whose number of bytes sent and received is greater than or equal to the first threshold M1. If not, it means that the number of bytes sent and received by all wireless terminals is less than the first threshold M1, and the transmission traffic of all wireless terminals is small, so they are less affected by channel scanning, so it is also suitable to perform full channel scanning at this time.

[0073] When there is a wireless terminal whose number of sent + received bytes is greater than or equal to the first threshold M1, the data bit error rate and negotiation rate of each wireless terminal whose signal strength is greater than the strength threshold in the T3 time period are continuously counted. In the present disclosure, the wireless terminal whose signal strength is greater than the strength threshold is taken as the monitoring object, and the quality of the current working channel is preliminarily judged by monitoring the data bit error rate and negotiation rate of each monitoring object, so as to diagnose whether the quality of the current working channel is good. Among them, the data bit error rate is used to measure the accuracy of data transmission within a specified time, and the bit error rate = bit error in transmission / total number of codes transmitted * 100%. The data bit error rate is often used to indicate the channel transmission quality of the signal. The negotiation rate is used to reflect the speed of WiFi network transmission. For example, the negotiation rate can be 54Mbit / s. Of course, other parameters of the monitoring object can also be monitored to preliminarily diagnose the quality of the current working channel.

[0074] Continue to determine whether there is a wireless terminal whose number of sent and received bytes is greater than or equal to the second threshold M2.

[0075] If there are wireless terminals whose number of sent + received bytes is greater than or equal to the second threshold M2, it means that the transmission traffic of some terminals is large and may not be suitable for channel scanning. At this time, by obtaining the weighted score of the data bit error rate and the negotiation rate of the monitored object, it is diagnosed whether the quality of the current channel is good. If the quality of the current channel is good, the channel scan is not triggered. If it is known that the quality of the current channel is poor by obtaining the weighted score of the monitored object, the current channel scan is triggered for a preset number of times. Then the scanning score results of the current channel for the preset number of times are obtained. If there is one result greater than the preset value among the scanning score results of the current channel for the preset number of times, it is assumed that the quality of the current channel is good, and the channel scan is not triggered; if the scanning score results of the current channel for the preset number of times are all lower than the preset value, it is determined whether there is a wireless terminal whose number of sent + received bytes is less than the first threshold M1 and supports the measurement function. If there is no wireless terminal whose number of sent+received bytes is less than the first threshold M1 and which supports the measurement function, since the quality score of the current channel is low to a certain extent, it will have a great impact on the user's Internet experience, and the user will feel it obviously. In this case, full channel scanning must be performed; if there are wireless terminals whose number of sent+received bytes is less than the first threshold M1 and which support the measurement function, a Radiomeasurement request message is sent to these wireless terminals to trigger these terminals to perform full channel scanning and feed back a measurement report including a Radio measurement report message including a Channel load report and a Beacon report. The intelligent gateway can obtain the channel utilization rate of each channel and the number of APs on each channel from the measurement report fed back by the terminal, and then calculate the weighted score of each channel according to the utilization rate of each channel and the number of APs, and then sort the weighted scores of each channel, filter out the channels with the worst weighted scores of B% of the total number of channels, and perform channel scanning on the remaining channels.

[0076] If there is no wireless terminal whose number of sent + received bytes is greater than or equal to the second threshold M2, that is, the number of sent + received bytes of all wireless terminals is less than the second threshold M2, it means that the transmission traffic of some terminals is moderate and there is no terminal with a large transmission traffic. Then, by obtaining the weighted score of the data bit error rate and the negotiation rate of the monitored object, a preliminary diagnosis is made as to whether the quality of the current channel is good. If the quality of the current channel is good, the current channel scan is triggered in the frequency band, and the scan is a single channel scan. Next, the quality score of the current channel is obtained. If the quality score is less than the preset value, it means that the transmission traffic of some terminals is moderate and there is no terminal with a large transmission traffic, and the current channel quality is initially judged to be poor. At this time, a full channel scan is triggered in order to obtain a channel with better quality. If the quality score is greater than the preset value, it means that the quality of the current channel is indeed good, so the full channel scan is no longer triggered at this time, and the current working channel can be maintained.

[0077] When performing channel scanning, different quality factors are obtained according to the parameters obtained by scanning. Exemplarily, the quality factors include channel congestion degree, channel interference intensity, number of channel access points, access point signal strength, and number of wireless terminals connected to the access point, a total of 5 quality factors. Of course, other quality factors may also be included.

[0078] The channel scanning score results are obtained according to the weight ratios of different quality factors. The five quality factors are assigned a single maximum score based on a total score of 100 points according to different weight ratios. Exemplarily, the weight ratio is channel congestion level>=channel interference intensity>>(much greater than) the number of channel access points>=access point signal strength>number of wireless terminals under the access point, and the priority of the quality factors is sorted in this order. Each quality factor is then scored individually, and the principle is that the larger the factor value, the lower the score. Finally, the scores of the five factors are added together to obtain the channel quality score result, that is, the scanning score result.

[0079] The channel with the best scan score result is set as the working channel. In order to ensure the continuity of the wireless terminal connection, a Channel Switch Announcement frame can be sent to each downstream wireless terminal to switch to a new channel.

[0080] In the home smart gateway and channel diagnosis method provided by the present application, since the radio frequency resources of WiFi focus on the electromagnetic wave listening on the scanned channel frequency during channel scanning, the data service of the terminal will be temporarily suspended. Therefore, in order to reduce the impact on the terminal data service, different channel scanning mechanisms are triggered according to the different transmission traffic of the terminal to take into account the terminal data service and user experience at the same time. When the number of bytes sent + received by all wireless terminals is less than the first threshold M1, the full channel scan is triggered. When there is a wireless terminal whose number of bytes sent + received is greater than or equal to the first threshold M1, and the number of bytes sent + received by all wireless terminals is less than the second threshold M2, the current single channel scan or full channel scan is triggered according to the initial judgment of the quality result of the current channel. When there is a wireless terminal whose number of bytes sent + received is greater than or equal to the first threshold M1, and there is a wireless terminal whose number of bytes sent + received is greater than or equal to the second threshold M2, that is, there is a wireless terminal whose number of bytes sent + received is greater than or equal to the second threshold M2, the channel scan is not triggered or the channel scan is triggered according to the initial judgment of the quality result of the current channel. Wherein, when it is necessary to trigger channel scanning, if there is a wireless terminal whose number of sent + received bytes is less than the first threshold M1 and supports the measurement function, a partial channel scan is performed according to the measurement report fed back by the wireless terminal; if there is no wireless terminal whose number of sent + received bytes is less than the first threshold M1 and supports the measurement function, a full channel scan is triggered. That is, when there is a wireless terminal whose number of sent + received bytes is greater than or equal to the second threshold M2, channel scanning is not triggered, full channel scanning is triggered, or partial channel scanning is triggered.

[0081] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the disclosure of the invention herein. The present application is intended to cover any modification, use or adaptation of the present invention, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the content of the claims. The above-described embodiments of the present application do not constitute a limitation on the scope of protection of the present application.

Claims

1. A home smart gateway, characterized in that: include: A WiFi chip, used to monitor the transmission traffic of the terminal connected to the home smart gateway, and also used to perform channel scanning; The processor is configured as: Among the terminals accessing the current frequency band, if the transmission traffic volume of at least one terminal is greater than a first threshold, the transmission traffic volume of all terminals is less than a second threshold, and the current channel quality meets a preset condition, the current channel scan is triggered, and a scan score result of the current channel is obtained; if the scan score result is lower than a preset value, a full channel scan is triggered; wherein the first threshold is less than the second threshold; If the transmission traffic volume of at least one terminal is greater than the first threshold, the transmission traffic volume of all terminals is less than the second threshold, and the current channel quality does not meet the preset condition, triggering a full channel scan; If the transmission traffic volume of at least one terminal is greater than the second threshold and the current channel quality meets the preset condition, channel scanning is not triggered; If the transmission traffic of at least one terminal is greater than the second threshold and the current channel quality does not meet the preset conditions, the current channel scan is triggered for a preset number of times, and based on the scoring results of the current channel scan for the preset number of times, the channel scan is not triggered, or a full channel scan is triggered, or a partial channel scan is triggered.

2. The home smart gateway according to claim 1, characterized in that: The triggering of the preset number of current channel scans, and not triggering the channel scan, or triggering the full channel scan, or triggering the partial channel scan according to the preset number of current channel scan scoring results, includes: In the preset number of current channel scans, if there is a scan score result greater than the preset value, the channel scan will not be performed; If the scan score result of each scan is less than the preset value and there is no preset terminal, perform full channel scan; wherein the preset terminal includes a terminal whose transmission traffic volume is less than the first threshold and supports the measurement function; If the scan score result each time is less than the preset value and there is a preset terminal, a measurement request is sent to the terminal, and partial channel scanning is performed according to the measurement report fed back by the terminal.

3. The home smart gateway according to claim 1, characterized in that: The current channel quality meets the preset conditions, including: When the transmission traffic volume of at least one terminal is greater than a first threshold, selecting a terminal whose signal strength is greater than the strength threshold as a monitoring object; Obtaining a data bit error rate and a negotiation rate of each of the monitored objects, and calculating a weighted score corresponding to each of the monitored objects according to the data bit error rate and the negotiation rate; If the weighted scores of a preset number of monitoring objects are all greater than the first weighted threshold, it indicates that the current channel quality meets the preset condition.

4. The home smart gateway according to claim 1, characterized in that: The current channel quality does not meet the preset conditions, including: When the transmission traffic volume of at least one terminal is greater than a first threshold, selecting a terminal whose signal strength is greater than the strength threshold as a monitoring object; Obtaining a data bit error rate and a negotiation rate of each of the monitored objects, and calculating a weighted score corresponding to each of the monitored objects according to the data bit error rate and the negotiation rate; If there is not a preset number of monitored objects whose weighted scores are all greater than the first weighted threshold, it indicates that the current channel quality does not meet the preset condition.

5. The home smart gateway according to claim 2, characterized in that: The performing partial channel scanning according to the measurement report fed back by the terminal includes: The channel utilization rate of each channel and the number of access points of each channel are obtained from the measurement report fed back by the terminal; Calculating a weighted score for each channel according to the channel utilization and the number of access points; Channel scanning is triggered for channels whose weighted scores are greater than a second weighted threshold.

6. The home smart gateway according to claim 1, characterized in that: The WiFi chip is also used to monitor the channel congestion level, channel interference intensity, number of channel access points, access point signal strength, and number of wireless terminals under the access point; wherein, the channel scanning score result is obtained according to the respective weight ratios of the channel congestion level, channel interference intensity, number of channel access points, access point signal strength, and number of wireless terminals under the access point.

7. A method for diagnosing a channel of a home intelligent gateway, characterized in that: include: Among the terminals accessing the current frequency band, if the transmission traffic volume of at least one terminal is greater than the first threshold, the transmission traffic volume of all terminals is less than the second threshold, and the current channel quality meets the preset conditions, the current channel is scanned and the scanning score result of the current channel is obtained; if the scanning score result is lower than the preset value, all channels are scanned; If the transmission traffic volume of at least one terminal is greater than the first threshold, the transmission traffic volume of all terminals is less than the second threshold, and the current channel quality does not meet the preset condition, triggering a full channel scan; The first threshold is less than the second threshold; If the transmission traffic volume of at least one terminal is greater than the second threshold and the current channel quality meets the preset condition, channel scanning is not triggered; If the transmission traffic of at least one terminal is greater than the second threshold and the current channel quality does not meet the preset conditions, the current channel scan is triggered a preset number of times, and according to the scoring result of each current channel scan, the channel scan is not triggered, or the full channel scan is triggered, or a partial channel scan is triggered.

8. The method for diagnosing a home intelligent gateway channel according to claim 7, characterized in that: The triggering of the current channel scan for a preset number of times, and not triggering the channel scan, or triggering the full channel scan, or triggering the partial channel scan according to the scoring result of each current channel scan, includes: If the result of at least one scan score in the preset number of current channel scans is greater than the preset value, no channel scan is performed; If the scan score result of each scan is less than the preset value and there is no preset terminal, perform full channel scan; wherein the preset terminal includes a terminal whose transmission traffic volume is less than the first threshold and supports the measurement function; If the scan score result each time is less than the preset value and there is a preset terminal, a measurement request is sent to the terminal, and partial channel scanning is performed according to the measurement report fed back by the terminal.

9. The method for diagnosing a home intelligent gateway channel according to claim 7, characterized in that: The current channel quality meets the preset conditions, including: When the transmission traffic volume of at least one terminal is greater than a first threshold, selecting a terminal whose signal strength is greater than the strength threshold as a monitoring object; Obtaining a data bit error rate and a negotiation rate of each of the monitored objects, and calculating a weighted score corresponding to each of the monitored objects according to the data bit error rate and the negotiation rate; If the weighted scores of a preset number of monitoring objects are all greater than the weighted threshold, it indicates that the current channel quality meets the preset conditions.

10. The method for diagnosing a home intelligent gateway channel according to claim 7, characterized in that: The method further comprises: Monitor the channel congestion level, channel interference intensity, number of channel access points, access point signal strength, and number of wireless terminals connected to the access point; The scanning score result of the channel is obtained according to the respective weight proportions of the channel congestion degree, channel interference intensity, number of channel access points, access point signal strength, and number of wireless terminals connected to the access point.