Frequency band switching method, ap device, and electronic device

By predicting the signal strength of electronic devices after switching frequency bands using AP devices, the problem of unstable frequency band switching is solved, a stable communication connection is achieved, and the user experience is improved.

CN115802498BActive Publication Date: 2026-03-20HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-09
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In existing technologies, due to the different capabilities of different electronic devices, setting a uniform frequency band switching threshold in the router may not be applicable to all connected electronic devices. This causes some electronic devices to need to switch back to the original frequency band after switching frequency bands, resulting in a ping-pong phenomenon of constantly switching between frequency bands, which affects the user's Internet experience.

Method used

AP devices predict the signal strength after electronic devices switch frequency bands, and determine whether to instruct the devices to switch frequency bands based on the prediction results, thus avoiding repeated switching.

Benefits of technology

This effectively avoids the repeated switching of electronic devices between frequency bands, improving the user's internet experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115802498B_ABST
    Figure CN115802498B_ABST
Patent Text Reader

Abstract

The application provides a frequency band switching method, an AP device and an electronic device, and relates to the technical field of terminals. The AP device can predict the signal strength of the electronic device after the electronic device switches the frequency band according to the received signal strength, and then determine whether to instruct the electronic device to switch the frequency band according to the predicted signal strength, so as to avoid the abnormal phenomenon that the electronic device repeatedly switches the frequency band and improve the online experience of the user. The method comprises the following steps: after determining that the signal strength of the electronic device meets the threshold condition of switching from the first frequency band to the second frequency band, the AP device can predict the signal strength of the electronic device after switching to the second frequency band. If it is determined that the predicted signal strength does not meet the threshold condition of switching from the second frequency band to the first frequency band, the electronic device is instructed to switch the frequency band.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of terminal, and in particular, to a frequency band switching method, an AP device and an electronic device. BACKGROUND

[0002] With the development of communication technology, a router can provide multiple frequency bands of signals for an electronic device to access, thereby improving communication efficiency and signal stability. For example, a dual-frequency router can provide two frequency bands of signals of 2.4G and 5G, where the 2.4G frequency band signal has a large coverage range but a small bandwidth, and the 5G frequency band signal has a small coverage range but a high bandwidth. Assuming that the electronic device first accesses the 5G frequency band of the router, as the electronic device gradually moves away from the router, the electronic device will move out of the coverage range of the 5G frequency band signal of the router; when the router determines that the electronic device moves to the edge area of the coverage range of the 5G frequency band signal, the router can instruct the electronic device to switch to access the 2.4G frequency band, thereby expanding the signal coverage range of the router. Similarly, assuming that the electronic device first accesses the 2.4G frequency band of the router, as the electronic device gradually moves closer to the router, the electronic device will enter the coverage range of the 5G frequency band signal of the router; after the router determines that the electronic device moves to within the coverage range of the 5G frequency band signal, the router can instruct the electronic device to switch to access the 5G frequency band, so that the electronic device obtains a higher bandwidth and improves the communication efficiency. Usually, the signal strength (usually represented by a received signal strength indicator (RSSI) value) received by the electronic device from the router is used to determine whether the electronic device needs to switch the frequency band. For example, a frequency band switching threshold 1 for switching from the 5G frequency band to the 2.4G frequency band and a frequency band switching threshold 2 for switching from the 2.4G frequency band to the 5G frequency band are preset. Assuming that the electronic device accesses the 5G frequency band for communication, and the electronic device moves away from the router, the router determines that the RSSI value reported by the electronic device is less than the frequency band switching threshold 1, and can instruct the electronic device to switch to access the 2.4G frequency band. Then, assuming that the electronic device moves closer to the router, the router determines that the RSSI value reported by the electronic device is greater than or equal to the frequency band switching threshold 2, and can instruct the electronic device to switch to access the 5G frequency band.

[0003] However, because the device capabilities of different electronic devices are different, a uniform frequency band switching threshold set in the router can not be suitable for all accessed electronic devices, resulting in that some electronic devices need to switch back to the original frequency band after switching the frequency band, and a ping-pong phenomenon of repeatedly switching between frequency bands occurs, which affects the online experience of users. SUMMARY

[0004] To solve the above technical problems, the embodiment of the present application provides a frequency band switching method, an AP device and an electronic device. The technical scheme provided by the embodiment of the present application can enable the AP device to predict the signal strength of the electronic device after the electronic device switches the frequency band according to the received signal strength, and then determine whether to instruct the electronic device to switch the frequency band according to the predicted signal strength, thereby avoiding the abnormal phenomenon of repeated switching of the electronic device and improving the user's online experience.

[0005] To achieve the above technical purposes, the embodiment of the present application provides the following technical scheme:

[0006] In a first aspect, a frequency band switching method is provided, applied to an AP device. The AP device provides at least an access point of a first frequency band and a second frequency band. The method comprises: determining that a first signal strength of an electronic device meets a first threshold condition of the electronic device switching from accessing the first frequency band to accessing the second frequency band; wherein the first signal strength is a signal strength reported by the electronic device in the case of accessing the first frequency band. Predicting a second signal strength of the electronic device after the electronic device switches to access the second frequency band. If it is determined that the second signal strength does not meet a second threshold condition of the electronic device switching from accessing the second frequency band to accessing the first frequency band, sending a first frequency band switching request to the electronic device, the first frequency band switching request being used to instruct the electronic device to access the second frequency band.

[0007] In a possible implementation, the first threshold condition comprises that the signal strength reported by the electronic device is less than a first threshold, and the second threshold condition comprises that the signal strength reported by the electronic device is greater than or equal to a second threshold.

[0008] In a possible implementation, the first frequency band is a 5G frequency band, and the second frequency band is a 2.4G frequency band.

[0009] For example, the AP device receives the first signal strength reported by the electronic device in the process that the electronic device accesses the 5G frequency band, and determines that the first signal strength meets the first threshold condition of switching from accessing the 5G frequency band (i.e. the first frequency band) to accessing the 2.4G frequency band (i.e. the second frequency band). Then, the AP device needs to predict the second signal strength of the electronic device after the electronic device switches to access the 2.4G frequency band. If the predicted second signal strength does not meet the second threshold condition of the electronic device switching from accessing the 2.4G frequency band to accessing the 5G frequency band, it indicates that the electronic device can maintain communication in the 2.4G frequency band after switching to access the 2.4G frequency band and will not switch back to the 5G frequency band. Therefore, the AP device can instruct the electronic device to switch from the 5G frequency band to the 2.4G frequency band. Correspondingly, if the second threshold condition is met, it indicates that the electronic device needs to switch back to the original 5G frequency band after switching to the 2.4G frequency band. Therefore, the AP device can not need to instruct the electronic device to switch from the 5G frequency band to the 2.4G frequency band, thereby avoiding the ping-pang phenomenon (i.e. avoiding repeated switching of the frequency band).

[0010] In this way, the AP device predicts the signal strength of the electronic device after the electronic device switches the frequency band, and only when the electronic device can maintain stable communication after switching the frequency band, the AP device guides the electronic device to switch the frequency band. Thus, the ping-pong phenomenon in the process of switching the frequency band of the electronic device is effectively avoided, and the user experience is improved.

[0011] According to the first aspect, the second signal strength of the electronic device after the electronic device switches to access the second frequency band includes: determining a first signal strength difference value recorded in the AP device corresponding to the first signal strength. The second signal strength is determined according to the first signal strength and the first signal strength difference value.

[0012] For example, it is assumed that the AP device receives the RSSI value (i.e., the first signal strength) reported by the electronic device as -50dbm, and the RSSI value after taking the positive is 50, which satisfies the first threshold condition of switching the 5G frequency band to the 2.4G frequency band. The AP device determines that the RSSI value after taking the positive is located in the interval range [20-24) according to the table for recording the signal strength difference value, and corresponds to delta_c. Then, the AP device determines that the RSSI value after taking the positive of the electronic device is (20+delta_c) after the electronic device switches the frequency band to the 2.4G frequency band. That is, the AP device predicts that the RSSI value after taking the positive of the electronic device becomes (20+delta_c) after switching the 2.4G frequency band.

[0013] In this way, the AP device records the signal strength difference value of the electronic device after switching the frequency band, realizes the prediction of the signal strength of the electronic device after switching the frequency band, and improves the prediction efficiency.

[0014] According to the first aspect, or any one of the implementation manners of the first aspect, the method further includes: receiving a third signal strength sent by the electronic device; the third signal strength is a signal strength sent by the electronic device after switching to access the second frequency band. A second signal strength difference value is determined according to the first signal strength and the third signal strength. A third signal strength difference value corresponding to the first signal strength is determined according to the second signal strength difference value and the first signal strength difference value.

[0015] According to the first aspect, or any one of the implementation manners of the first aspect, the second signal strength difference value is determined according to the first signal strength and the third signal strength, including: taking the difference between the first signal strength and the third signal strength as the second signal strength difference value. The third signal strength difference value corresponding to the first signal strength is determined according to the second signal strength difference value and the first signal strength difference value, including: weighted sum of the second signal strength difference value and the first signal strength difference value to obtain the third signal strength difference value.

[0016] According to a first aspect, or any possible implementation mode of the first aspect, the method further comprises: replacing the first signal strength difference value recorded in the AP device corresponding to the first signal strength with the third signal strength difference value.

[0017] For example, assuming that the original RSSI value of the electronic device when accessing the 5G frequency band is 20 after taking the positive value, assuming that the delta_c of the interval range (i.e., [20-24)) corresponding to the RSSI value (i.e., 20) after taking the positive value is 20, and assuming that the new RSSI value of the electronic device when accessing the 2.4G frequency band is 42 after taking the positive value. Then, the AP device can determine that the difference between the new RSSI value of the electronic device when accessing the 2.4G frequency band after taking the positive value and the original RSSI value of the electronic device 200 when accessing the 5G frequency band after taking the positive value is 22 (i.e., 42-20). Thus, the AP device can update the delta_c corresponding to the interval range [20-24) recorded in the original table according to the difference value, to obtain a new delta_c. Assuming that the calculation rule of the new delta value obtained after updating is that the difference value accounts for 85%, and the original delta value accounts for 15%, then the new delta_c obtained after updating is 0.85*22+0.15*20=21.7. The AP device obtains the new delta_c value corresponding to the interval range [20-24) as 21.7, and updates the corresponding record in the table.

[0018] In this way, the AP device maintains a prediction table containing the signal strength difference value by recording the signal strength difference value of the electronic device before and after the frequency band switching. Moreover, the AP device can update the corresponding signal strength difference value according to the signal strength of the electronic device before and after the frequency band switching, so that the adjusted signal strength difference value can better meet the frequency band switching requirement of the electronic device. Furthermore, the AP device can predict the signal strength of the electronic device after the frequency band switching according to the prediction table, so as to determine whether the electronic device can maintain stable communication after the frequency band switching.

[0019] According to the first aspect, or any possible implementation mode of the first aspect, the third signal strength is the signal strength of the electronic device received by the AP device within a preset time after the AP device sends the first frequency band switching request to the electronic device, and the first media access control (MAC) address corresponding to the third signal strength is different from the second MAC address corresponding to the first signal strength.

[0020] In some embodiments, since the RSSI value changes due to the change of the distance between the electronic device and the AP device, after receiving the switching request and determining to switch the frequency band, the electronic device needs to access the target channel of the target frequency band within a preset time and report the RSSI value detected after accessing the target frequency band. The reason is that the electronic device can be a mobile terminal. If the electronic device accesses the target frequency band and reports the RSSI value after the preset time, the electronic device can have moved, and the reported RSSI value cannot correspond to the original RSSI value reported by the electronic device before switching the frequency band, i.e., the new RSSI value reported after switching the frequency band cannot be considered as the RSSI value of the same position in different frequency bands as the original RSSI value reported before switching the frequency band. Therefore, the AP device cannot update the corresponding delta value using the new RSSI value and the original RSSI value. Optionally, the preset time can be 1 second.

[0021] For example, the AP device starts a timer to start timing after sending the switching request to the electronic device or when sending the switching request to the electronic device. If the AP device receives the RSSI value sent by the electronic device and determines that the RSSI value is the RSSI value measured by the electronic device after switching the frequency band (the MAC address carried is different from the MAC address corresponding to the original RSSI value before switching the frequency band), the timer can be stopped, and whether the time length recorded by the timer (such as the time difference between the start time and the stop time) is less than or equal to the preset time (such as less than or equal to 1 second) is determined. If it is determined that the recorded time length is less than or equal to the preset time length, the AP device can determine the corresponding new delta value using the new RSSI value. If it is determined that the recorded time length is greater than the preset time length, the AP device determines not to update the corresponding delta value.

[0022] In this way, the electronic device reports the signal strength within the preset time, so that the AP device can update the recorded signal strength difference.

[0023] According to the first aspect, or any one of the implementation forms of the first aspect, the method further includes: determining that a fourth signal strength of the electronic device satisfies a second threshold condition for switching the electronic device from accessing the second frequency band to accessing the first frequency band; wherein the fourth signal strength is a signal strength reported by the electronic device after switching to access the second frequency band. Predicting a fifth signal strength of the electronic device after switching to access the first frequency band. If it is determined that the fifth signal strength does not satisfy the first threshold condition for switching the electronic device from accessing the first frequency band to accessing the second frequency band, sending a second frequency band switching request to the electronic device, the second frequency band switching request being used to instruct the electronic device to access the first frequency band.

[0024] In some embodiments, the electronic device also reports the signal strength according to a preset rule after switching from accessing the first frequency band to accessing the second frequency band. Then, the AP device can determine whether the signal strength of the electronic device meets the threshold condition for switching the frequency band according to the received signal strength, further predict the signal strength after switching the frequency band, and determine whether to instruct the electronic device to switch the frequency band.

[0025] In this way, the frequency band switching demand of the electronic device can be met while avoiding repeated frequency band switching of the electronic device, and the online experience of the user is improved.

[0026] According to the first aspect, or any one of the implementations of the first aspect, the access points of different frequency bands provided by the AP device correspond to different MAC addresses respectively, and the AP device receives a third MAC address corresponding to the currently accessed frequency band reported by the electronic device when receiving the signal strength reported by the electronic device, and the third MAC address is used by the AP device to determine the currently accessed frequency band of the electronic device.

[0027] In a second aspect, a frequency band switching method applied to an electronic device is provided. The method includes: accessing an access point of a first frequency band provided by an access point (AP) device; wherein the AP device provides at least access points of the first frequency band and a second frequency band. Reporting a first signal strength of the electronic device in the case of accessing the first frequency band to the AP device; wherein the first signal strength is used by the AP device to predict a second signal strength of the electronic device after switching to access the second frequency band. Switching from accessing the first frequency band to accessing the second frequency band in response to a first frequency band switching request sent by the AP device; wherein the first frequency band switching request is a request sent by the AP device to the electronic device in the case that the AP device determines that the first signal strength meets a first threshold condition for the electronic device to switch from accessing the first frequency band to accessing the second frequency band, and the second signal strength does not meet a second threshold condition for the electronic device to switch from accessing the second frequency band to accessing the first frequency band.

[0028] According to the second aspect, the method further includes: reporting a third signal strength of the electronic device after switching to access the second frequency band to the AP device.

[0029] According to the second aspect, or any one of the implementations of the first aspect, the third signal strength is a signal strength sent by the electronic device to the AP device within a preset time after receiving the first frequency band switching request, and a first media access control (MAC) address corresponding to the third signal strength is different from a second MAC address corresponding to the first signal strength.

[0030] According to a second aspect, or any possible implementation mode of the first aspect, the method further comprises: reporting, to the AP device, a fourth signal strength of the electronic device in the case of accessing the second frequency band; wherein the fourth signal strength is used by the AP device to predict a fifth signal strength of the electronic device after switching to access the first frequency band. Switching from accessing the second frequency band to accessing the first frequency band in response to a second frequency band switching request sent by the AP device; wherein the second frequency band switching request is sent by the AP device to the electronic device in the case that the fourth signal strength satisfies a second threshold condition of switching from accessing the second frequency band to accessing the first frequency band of the electronic device, and the fifth signal strength does not satisfy a first threshold condition of switching from accessing the first frequency band to accessing the second frequency band of the electronic device.

[0031] According to the second aspect, or any possible implementation mode of the first aspect, the first threshold condition comprises that the signal strength reported by the electronic device is less than a first threshold, and the second threshold condition comprises that the signal strength reported by the electronic device is greater than or equal to a second threshold.

[0032] According to the second aspect, or any possible implementation mode of the first aspect, the first frequency band is a 5G frequency band, and the second frequency band is a 2.4G frequency band.

[0033] According to the second aspect, or any possible implementation mode of the first aspect, the AP device provides access points of different frequency bands respectively corresponding to different MAC addresses, and the electronic device reports, at the same time of reporting the signal strength, a third MAC address corresponding to a currently accessed frequency band of the electronic device, and the third MAC address is used by the AP device to determine the currently accessed frequency band of the electronic device.

[0034] The technical effects of the second aspect and any possible implementation mode of the second aspect can refer to the technical effects of the first aspect and any possible implementation mode of the first aspect, which will not be described herein again.

[0035] In a third aspect, an AP device is provided. The AP device provides at least an access point of a first frequency band and a second frequency band. The AP device comprises a processor and a memory coupled to the processor, the memory being configured to store computer program codes comprising computer instructions, which, when executed by the processor, cause the AP device to perform the following operations: determining that a first signal strength of the electronic device satisfies a first threshold condition for switching the electronic device from accessing the first frequency band to accessing the second frequency band, wherein the first signal strength is a signal strength reported by the electronic device when the electronic device accesses the first frequency band; predicting a second signal strength of the electronic device after the electronic device switches to access the second frequency band; and sending a first frequency band switching request to the electronic device if it is determined that the second signal strength does not satisfy a second threshold condition for switching the electronic device from accessing the second frequency band to accessing the first frequency band, wherein the first frequency band switching request is configured to instruct the electronic device to access the second frequency band.

[0036] According to the third aspect, predicting the second signal strength of the electronic device after the electronic device switches to access the second frequency band comprises: determining a first signal strength difference value corresponding to the first signal strength recorded in the AP device; and determining the second signal strength according to the first signal strength and the first signal strength difference value.

[0037] According to the third aspect, or any possible implementation of the third aspect, when the computer instructions are executed by the processor, the AP device further performs the following operation: receiving a third signal strength sent by the electronic device, wherein the third signal strength is a signal strength sent by the electronic device after the electronic device switches to access the second frequency band; determining a second signal strength difference value according to the first signal strength and the third signal strength; and determining a third signal strength difference value corresponding to the first signal strength according to the second signal strength difference value and the first signal strength difference value.

[0038] According to the third aspect, or any possible implementation of the third aspect, determining the second signal strength difference value according to the first signal strength and the third signal strength comprises: taking a difference between the first signal strength and the third signal strength as the second signal strength difference value; and determining the third signal strength difference value corresponding to the first signal strength according to the second signal strength difference value and the first signal strength difference value comprises: performing weighted summation on the second signal strength difference value and the first signal strength difference value to obtain the third signal strength difference value.

[0039] According to a third aspect, or any possible implementation mode of the third aspect, when the processor reads the computer instructions from the memory and the computer instructions are executed in the processor, the AP device further performs the following operation: replacing the first signal strength difference recorded in the AP device corresponding to the first signal strength with a third signal strength difference.

[0040] According to the third aspect, or any possible implementation mode of the third aspect, the third signal strength is the signal strength received by the electronic device within a preset time after the AP device sends the first frequency band switching request to the electronic device, and the first MAC address corresponding to the third signal strength is different from the second MAC address corresponding to the first signal strength.

[0041] According to the third aspect, or any possible implementation mode of the third aspect, when the processor reads the computer instructions from the memory and the computer instructions are executed in the processor, the AP device further performs the following operation: determining that a fourth signal strength of the electronic device satisfies a second threshold condition of switching from accessing the second frequency band to accessing the first frequency band; wherein the fourth signal strength is the signal strength reported by the electronic device after switching to access the second frequency band. Predicting a fifth signal strength of the electronic device after switching to access the first frequency band. If it is determined that the fifth signal strength does not satisfy a first threshold condition of switching from accessing the first frequency band to accessing the second frequency band, sending a second frequency band switching request to the electronic device, the second frequency band switching request being used to instruct the electronic device to access the first frequency band.

[0042] According to the third aspect, or any possible implementation mode of the third aspect, the first threshold condition includes that the signal strength reported by the electronic device is less than a first threshold, and the second threshold condition includes that the signal strength reported by the electronic device is greater than or equal to a second threshold.

[0043] According to the third aspect, or any possible implementation mode of the third aspect, the first frequency band is a 5G frequency band, and the second frequency band is a 2.4G frequency band.

[0044] According to the third aspect, or any possible implementation mode of the third aspect, the AP device provides different access points of different frequency bands, each of which corresponds to a different MAC address, and the AP device receives, at the same time of receiving the signal strength reported by the electronic device, a third MAC address corresponding to the currently accessed frequency band reported by the electronic device, the third MAC address being used by the AP device to determine the currently accessed frequency band of the electronic device.

[0045] The technical effects of the third aspect and any possible implementation mode of the third aspect can refer to the technical effects of the first aspect and any possible implementation mode of the first aspect, which will not be described herein.

[0046] In a fourth aspect, an electronic device is provided. The electronic device includes a processor and a memory coupled to the processor, the memory configured to store computer program code comprising computer instructions that, when read by the processor and executed in the processor, cause the electronic device to perform: accessing an access point provided by an access point (AP) device in a first frequency band; wherein the AP device provides access points in at least the first frequency band and a second frequency band. reporting, to the AP device, a first signal strength of the electronic device in the case of accessing the first frequency band; wherein the first signal strength is used by the AP device to predict a second signal strength of the electronic device after the electronic device switches to access the second frequency band. switching from accessing the first frequency band to accessing the second frequency band in response to a first frequency band switching request sent by the AP device; wherein the first frequency band switching request is a request sent by the AP device to the electronic device in a case where the AP device determines that the first signal strength satisfies a first threshold condition for the electronic device to switch from accessing the first frequency band to accessing the second frequency band, and that a second signal strength does not satisfy a second threshold condition for the electronic device to switch from accessing the second frequency band to accessing the first frequency band.

[0047] According to the fourth aspect, when the computer instructions are read by the processor and executed in the processor, the electronic device is further caused to perform: reporting, to the AP device, a third signal strength of the electronic device after the electronic device switches to access the second frequency band.

[0048] According to the fourth aspect, or any one of the implementations of the first aspect, the third signal strength is a signal strength sent by the electronic device to the AP device within a preset time after the electronic device receives the first frequency band switching request, and the third signal strength corresponds to a first media access control (MAC) address that is different from a second MAC address corresponding to the first signal strength.

[0049] According to the fourth aspect, or any one of the implementations of the first aspect, when the computer instructions are read by the processor and executed in the processor, the electronic device is further caused to perform: reporting, to the AP device, a fourth signal strength of the electronic device in the case of accessing the second frequency band; wherein the fourth signal strength is used by the AP device to predict a fifth signal strength of the electronic device after the electronic device switches to access the first frequency band. switching from accessing the second frequency band to accessing the first frequency band in response to a second frequency band switching request sent by the AP device; wherein the second frequency band switching request is a request sent by the AP device to the electronic device in a case where the AP device determines that the fourth signal strength satisfies a second threshold condition for the electronic device to switch from accessing the second frequency band to accessing the first frequency band, and that the fifth signal strength does not satisfy a first threshold condition for the electronic device to switch from accessing the first frequency band to accessing the second frequency band.

[0050] According to a fourth aspect, or any possible implementation of the first aspect, the first threshold condition comprises that the signal strength reported by the electronic device is less than a first threshold, and the second threshold condition comprises that the signal strength reported by the electronic device is greater than or equal to a second threshold.

[0051] According to a fourth aspect, or any possible implementation of the first aspect, the first frequency band is a 5G frequency band, and the second frequency band is a 2.4G frequency band.

[0052] According to a fourth aspect, or any possible implementation of the first aspect, the different frequency bands provided by the AP device correspond to different MAC addresses respectively, and the electronic device reports a third MAC address corresponding to a currently accessed frequency band of the electronic device at the same time of reporting the signal strength, and the third MAC address is used by the AP device to determine the currently accessed frequency band of the electronic device.

[0053] The technical effects of the fourth aspect and any possible implementation of the fourth aspect can refer to the technical effects of the second aspect and any possible implementation of the second aspect, which will not be repeated here.

[0054] In a fifth aspect, an embodiment of the present application provides an AP device, which has a function of implementing the frequency band switching method in the first aspect and any possible implementation of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0055] The technical effects of the fifth aspect and any possible implementation of the fifth aspect can refer to the technical effects of the first aspect and any possible implementation of the first aspect, which will not be repeated here.

[0056] In a sixth aspect, an embodiment of the present application provides an electronic device, which has a function of implementing the frequency band switching method in the second aspect and any possible implementation of the second aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0057] The technical effects of the sixth aspect and any possible implementation of the sixth aspect can refer to the technical effects of the second aspect and any possible implementation of the second aspect, which will not be repeated here.

[0058] In a seventh aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (which can also be referred to as instructions or code), which, when executed by an AP device, causes the AP device to perform the method of the first aspect or any possible implementation of the first aspect.

[0059] The technical effects of the seventh aspect and any of the implementations of the seventh aspect can refer to the technical effects of the first aspect and any of the implementations of the first aspect, which are not repeated here.

[0060] In an eighth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (which can also be referred to as instructions or code), which, when executed by an electronic device, causes the electronic device to perform the method of the second aspect or any of the implementations of the second aspect.

[0061] The technical effects of the eighth aspect and any of the implementations of the eighth aspect can refer to the technical effects of the second aspect and any of the implementations of the second aspect, which are not repeated here.

[0062] In a ninth aspect, an embodiment of the present application provides a computer program product, which, when running on an AP device, causes the AP device to perform the method of the first aspect or any of the implementations of the first aspect.

[0063] The technical effects of the ninth aspect and any of the implementations of the ninth aspect can refer to the technical effects of the first aspect and any of the implementations of the first aspect, which are not repeated here.

[0064] In a tenth aspect, an embodiment of the present application provides a computer program product, which, when running on an electronic device, causes the electronic device to perform the method of the second aspect or any of the implementations of the second aspect.

[0065] The technical effects of the tenth aspect and any of the implementations of the tenth aspect can refer to the technical effects of the second aspect and any of the implementations of the second aspect, which are not repeated here.

[0066] In an eleventh aspect, an embodiment of the present application provides a circuit system, which includes a processing circuit configured to perform the method of the first aspect or any of the implementations of the first aspect; or the processing circuit is configured to perform the method of the second aspect or any of the implementations of the second aspect.

[0067] The technical effects of the eleventh aspect and any of the implementations of the eleventh aspect can refer to the technical effects of the first aspect and any of the implementations of the first aspect, which are not repeated here.

[0068] In a twelfth aspect, an embodiment of the present application provides a chip system, comprising at least one processor and at least one interface circuit, the at least one interface circuit being configured to perform a transceiving function and send an instruction to the at least one processor, and when the at least one processor executes the instruction, the at least one processor executes the method of the first aspect or any one of the implementation forms of the first aspect; or the at least one processor executes the method of the second aspect or any one of the implementation forms of the second aspect.

[0069] The twelfth aspect and the technical effects of any one of the implementation forms of the twelfth aspect can refer to the technical effects of the first aspect and the implementation forms of the first aspect, which will not be repeated here.

[0070] In a thirteenth aspect, an embodiment of the present application provides a frequency band switching system, comprising an AP device and at least one electronic device. The AP device is configured to execute the method of the first aspect or any one of the implementation forms of the first aspect, and the electronic device is configured to execute the method of the second aspect or any one of the implementation forms of the second aspect.

[0071] The thirteenth aspect and the technical effects of any one of the implementation forms of the thirteenth aspect can refer to the technical effects of the first aspect and the implementation forms of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0072] Figure 1 A schematic diagram of a communication system provided by an embodiment of the present application;

[0073] Figure 2 A schematic diagram of a scenario in which a frequency band switching method provided by an embodiment of the present application is applied;

[0074] Figure 3A A hardware structure schematic diagram of an AP device provided by an embodiment of the present application;

[0075] Figure 3B A hardware structure schematic diagram of an electronic device provided by an embodiment of the present application;

[0076] Figure 4 A frequency band switching method flow provided by an embodiment of the present application Figure 1 ;

[0077] Figure 5 A frequency band switching method flow provided by an embodiment of the present application Figure 2 ;

[0078] Figure 6 A structure schematic diagram of an AP device provided by an embodiment of the present application;

[0079] Figure 7 A structure schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0080] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing the specific embodiments and are not intended to be limiting on the present application. As used in the specification and the appended claims of the present application, the singular forms “a,” “an,” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that “at least one” and “one or more” as used in the embodiments herein indicates one or two or more (including two).

[0081] In the present specification, the reference to “one embodiment” or “some embodiments” etc. means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases “in one embodiment”, “in some embodiments”, “in other embodiments”, “in additional embodiments” etc. in various places in the specification are not necessarily all referring to the same embodiment, but can refer to one or more but not all embodiments, unless otherwise specifically stated. The terms “comprising,” “containing,” “including,” “having,” and their variations, mean “including but not limited to,” unless otherwise specifically indicated. The term “connected” includes both direct and indirect connections unless otherwise specifically indicated. “First,” “second,” etc. are used only to describe different instances and do not imply relative importance or an ordering.

[0082] In the embodiments of the present application, the words “exemplary” or “for example” are used to mean serving as an example, instance, or illustration. Any embodiment or design described in the embodiments of the present application as “exemplary” or “for example” should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the exemplary or illustrative embodiments are presented for the purpose of enabling a clear and complete disclosure of the embodiments of the present application, and simplifying the study and understanding of them.

[0083] Figure 1 A schematic diagram of a communication system to which a frequency band switching method provided by the embodiments of the present application is applied is shown in FIG. 1. As shown in FIG. 1, the communication system includes a wireless access access point (AP) device 100 and an electronic device 200. Figure 1

[0084] ​Optionally, the AP device 100 may be, for example, a wireless router for providing a wireless fidelity (Wi-Fi) network. In some embodiments, the electronic device 200 acts as a station (STA) device and can access the Wi-Fi network provided by the AP device 100. The AP device 100 may be a dual-band router, such as supporting the 2.4 GHz band and the 5 GHz band. The AP device 100 may also be a tri-band router, such as supporting the 2.4 GHz band, 5 GHz low frequency, and 5 GHz high frequency. Optionally, the AP device 100 may also support more frequency bands, which is not specifically limited in this embodiment.

[0085] Optionally, the electronic device 200 may be, for example, a mobile phone, a personal computer (PC), a tablet computer, a laptop computer, a desktop computer, a computer with transceiver capabilities, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical care, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a wearable device, an in-vehicle device, an artificial intelligence (AI) device, and other terminal devices. This application does not impose any special limitations on the specific form of the electronic device 200.

[0086] In some embodiments, the electronic device 200 has a frequency band switching capability, enabling it to switch to another frequency band of the AP device 100 for communication when the signal quality of a certain frequency band of the access AP device 100 does not meet the communication requirements. Optionally, the electronic device 200 supports the Institute of Electrical and Electronics Engineers (IEEE) 802.11V protocol.

[0087] In some scenarios, such as Figure 2 As shown, assuming AP device 100 is a dual-band router, the 5G band of the Wi-Fi network it provides covers the area of ​​region 201, and the 2.4G band covers the area of ​​region 202. Electronic device 200 accesses the Wi-Fi network provided by AP device 100.

[0088] Suppose the electronic device 200 first requests to access the Wi-Fi network provided by the AP device 100 at a location A, which is within the signal coverage of the 5G frequency band and the 2.4G frequency band of the AP device 100, the AP device 100 instructs the electronic device 200 to access the 5G frequency band with higher bandwidth, so that the electronic device 200 has better communication effect. After that, suppose the electronic device 200 moves to a location B away from the AP device 100, during the movement, it moves to the edge area of the signal coverage of the 5G frequency band of the AP device 100, the AP device 100 can instruct the electronic device 200 to switch to access the 2.4G frequency band to ensure the communication of the electronic device 200.

[0089] Suppose the electronic device 200 first requests to access the Wi-Fi network provided by the AP device 100 at a location B, which is within the signal coverage of the 2.4G frequency band and outside the signal coverage of the 5G frequency band of the AP device 100, the AP device 100 instructs the electronic device 200 to access the 2.4G frequency band with wider signal coverage, so that the electronic device can access the network provided by the AP device 100 at the location B. After that, suppose the electronic device 200 moves to the location A close to the AP device 100, during the movement, it enters the signal coverage of the 5G frequency band of the AP device 100, the AP device 100 can instruct the electronic device 200 to switch to access the 5G frequency band to obtain higher bandwidth.

[0090] In some implementations, the AP device 100 determines whether to instruct the electronic device 200 to switch the access frequency band by checking whether the RSSI value reported by the electronic device 200 meets the preset threshold condition for frequency band switching.

[0091] For example, suppose the electronic device 200 first accesses the 5G frequency band of the AP device 100 and reports the RSSI value (for example, -80dbm) of the current access to the 5G frequency band to the AP device 100, and the AP device 100 receives the RSSI value -80dbm reported by the electronic device 200.

[0092] Suppose the threshold condition preset in the AP device 100 for instructing the electronic device 200 to switch from the 5G frequency band to the 2.4G frequency band is "RSSI<-79dbm". Since -80dbm is less than -79dbm, the AP device 100 can therefore tend to believe that the current 5G frequency band signal strength available to the electronic device 200 is not good enough, and needs to instruct the electronic device 200 to switch to access the 2.4G frequency band to make the electronic device 200 obtain better signal strength and access the network of the router from a farther distance.

[0093] Therefore, the AP device 100 sends an indication signal to the electronic device 200, instructing the electronic device 200 to switch from accessing the 2.4G frequency band to accessing the 5G frequency band. Assuming that the electronic device 200 successfully switches to access the 5G frequency band in response to the indication signal of the AP device 100, and reports the RSSI value (for example, -50dbm) of the current 5G frequency band to the AP device 100, the AP device 100 receives the RSSI value -50dbm reported by the electronic device 200.

[0094] It should be understood that, in the case that the electronic device 200 is at the same location, the RSSI value when accessing the 2.4G frequency band provided by the AP device 100 is usually greater than the RSSI value when accessing the 5G frequency band provided by the AP device 100.

[0095] Assuming that the threshold condition preset in the AP device 100 for instructing the electronic device 200 to switch from the 2.4G frequency band to the 5G frequency band is "RSSI≥-54dbm". Since -50dbm is greater than -54dbm, the AP device can thus tend to believe that the current 2.4G frequency band signal strength obtained by the electronic device 200 is good enough, and can instruct the electronic device 200 to switch to access the 5G frequency band so that the electronic device 200 obtains greater bandwidth.

[0096] Therefore, the AP device 100 sends an indication signal to the electronic device 200, instructing the electronic device 200 to switch from accessing the 2.4G frequency band back to accessing the 5G frequency band. Assuming that the electronic device 200 successfully switches back to the 5G frequency band in response to the indication signal of the AP device 100.

[0097] However, if the electronic device 200 does not move at this time, the RSSI value of the electronic device 200 accessing the 5G frequency band is still -80dbm, which causes the AP device 100 to instruct the electronic device 200 to switch from the 5G frequency band to the 2.4G frequency band again. This cycle continues, and the electronic device 200 switches between accessing the 5G frequency band and accessing the 2.4G frequency band, resulting in a ping-pong abnormal phenomenon.

[0098] This implementation uses a unified preset threshold condition for all electronic devices 200 to determine whether to instruct the electronic device 200 to switch the access frequency band. However, since the device capabilities (such as transmission power) of different electronic devices 200 are different, the unified threshold condition can cause some electronic devices 200 to switch back to the original frequency band after switching the frequency band, resulting in a ping-pong abnormal phenomenon and affecting communication efficiency. Moreover, in the scenario of switching the frequency band, the electronic device 200 will first disconnect the communication of the original frequency band and then access the new frequency band. Therefore, the ping-pong abnormal phenomenon of repeatedly switching the frequency band of the electronic device 200 can affect the user's online experience.

[0099] Thus, the embodiment of the present application provides a frequency band switching method, the router can predict the RSSI value of the electronic device after switching the frequency band, so as to determine whether the electronic device needs to switch back to the original frequency band after switching the frequency band according to the predicted RSSI value. If needed, the electronic device can no longer be instructed to switch the frequency band, and the ping-pong abnormal phenomenon can be avoided.

[0100] Optionally, the AP device 100 in the embodiment of the present application can be implemented by different devices. For example, the AP device 100 in the embodiment of the present application can be implemented by the communication device in the Figure 3A Figure 3A The AP device 100 provided by the embodiment of the present application is shown in the hardware structure schematic diagram. The AP device 100 includes at least one processor 301, a communication line 302, a memory 303 and at least one communication interface 304. The memory 303 can also be included in the processor 301.

[0101] The processor 301 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs of the present application.

[0102] The communication line 302 can include a channel for transmitting information between the above-mentioned components.

[0103] The communication interface 304 is used for communication with other devices. In the embodiment of the present application, the communication interface can be a module, a circuit, a bus, an interface, a transceiver or other devices capable of realizing the communication function, and is used for communication with other devices. Optionally, when the communication interface is a transceiver, the transceiver can be a separately arranged transmitter, which can be used to send information to other devices. The transceiver can also be a separately arranged receiver, which can be used to receive information from other devices. The transceiver can also be a component integrating the functions of transmitting and receiving information. The embodiment of the present application does not limit the specific implementation of the transceiver.

[0104] ​The memory 303 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via communication line 302. The memory may also be integrated with the processor.

[0105] The memory 303 stores computer execution instructions for implementing the scheme of this application, and the processor 201 controls the execution of these instructions. The processor 301 executes the computer execution instructions stored in the memory 303 to implement the frequency band switching method provided in the following embodiments of this application.

[0106] Optionally, the computer execution instructions in the embodiments of this application may also be referred to as application code, instructions, computer program or other names, and the embodiments of this application do not specifically limit them.

[0107] In a specific implementation, as one example, processor 301 may include one or more CPUs, for example... Figure 3A CPU0 and CPU1 in the CPU.

[0108] In a specific implementation, as one example, the AP device 100 may include multiple processors, for example... Figure 3A Processors 301 and 307 are described herein. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here may refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).

[0109] The AP device 100 described above can be a general-purpose device or a special-purpose device; the embodiments of this application do not limit the type of AP device 100. The AP device 100 can be a device with… Figure 3A Devices with similar structures.

[0110] Exemplary, Figure 3B A structural schematic diagram of the electronic device 200 is shown.

[0111] The electronic device 200 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0112] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0113] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0114] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0115] The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or cycled through. If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. This avoids repeated access and reduces the latency of the processor 110, thus improving the efficiency of the system.

[0116] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0117] The USB interface 130 is an interface that conforms to the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 200, and can also be used to transmit data between the electronic device 200 and a peripheral device. It can also be used to connect earphones to play audio through the earphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0118] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation on the electronic device 200. In some other embodiments of the present application, the electronic device 200 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.

[0119] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some embodiments with wired charging, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some embodiments with wireless charging, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 140 can supply power to the electronic device while charging the battery 142.

[0120] The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be configured to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), and the like. In some other embodiments, the power management module 141 can also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.

[0121] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, and the like.

[0122] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be configured to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0123] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 200. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive an electromagnetic wave by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic wave, and transfer the processed signal to the modem processor for demodulation. The mobile communication module 150 can also amplify a signal modulated by the modem processor, and radiate the amplified signal as an electromagnetic wave through the antenna 1. In some embodiments, at least part of the function modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the function modules of the mobile communication module 150 can be disposed in the same device as at least part of the modules of the processor 110.

[0124] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be disposed in the same device as the mobile communication module 150 or other function modules independently of the processor 110.

[0125] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 200. The wireless communication module 160 can be one or more devices integrated with at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, performs frequency modulation and filtering on the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and radiate the signal as an electromagnetic wave through the antenna 2.

[0126] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 200 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 200 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidu navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).

[0127] In some embodiments, the electronic device 200 accesses the Wi-Fi network provided by the AP device 100 through the wireless communication module 160. And, reports the RSSI value to the AP device 100 through the Wi-Fi connection between the electronic device 200 and the AP device 100. Optionally, the electronic device 200 reports the detected RSSI value to the AP device 100 according to a preset period.

[0128] Correspondingly, the AP device 100 receives the RSSI value reported by the electronic device 200 through the Wi-Fi connection between the AP device 100 and the electronic device 200, and determines whether the electronic device 200 needs to switch the frequency band according to the RSSI value. If the electronic device 200 needs to switch the frequency band, the AP device 100 sends an indication signal to the electronic device 200 through the Wi-Fi connection, to instruct the electronic device 200 to switch the frequency band. After receiving the indication signal, the electronic device 200 determines whether to switch the frequency band.

[0129] The electronic device 200 implements the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.

[0130] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be manufactured by liquid crystal display (LCD), such as organic light-emitting diode (OLED), active-matrix organic light emitting diode (AMOLED), flex light-emitting diode (FLED), Mini-led, Micro-led, Micro-oled, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 200 can include 1 or N display screens 194, N being a positive integer greater than 1.

[0131] The camera 193 is used to capture still images or videos. An object generates an optical image through a lens and projects the optical image onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to an ISP to convert it into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into a standard RGB, YUV, etc. format image signal. In some embodiments, the electronic device 200 can include 1 or N cameras 193, N being a positive integer greater than 1.

[0132] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to extend the memory capacity of the electronic device 200. The external memory card communicates with the processor 110 via the external memory interface 120 to perform data storage functions. For example, files such as music, videos, and the like can be stored in the external memory card.

[0133] The internal memory 121 can be used to store computer-executable program code including instructions. The internal memory 121 can include a program area and a data area. The program area can store an operating system, at least one application program required for a function (such as a sound play function, an image play function, and the like), and the like. The data area can store data created during use of the electronic device 200 (such as audio data, a phonebook, and the like), and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one of a magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 110 performs various function applications and data processing of the electronic device 200 by executing instructions stored in the internal memory 121 and / or instructions stored in a memory disposed in the processor.

[0134] The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some of the functional modules of the audio module 170 can be disposed in the processor 110. The electronic device 200 can perform music play, recording, and the like through the audio module 170. The audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor, and the like to implement audio functions.

[0135] The sensor module 180 can include a pressure sensor, a gyro sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like. The electronic device 200 can detect a touch operation applied to or near the display screen 194 through the touch sensor.

[0136] The key 190 includes a power key, a volume key, and the like. The key 190 can be a mechanical key. It can also be a touch key. The electronic device 200 can receive a key input to generate a key signal input related to user settings and function control of the electronic device 200.

[0137] The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompt, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations acting on different regions of the display screen 194. Different application scenarios (such as time reminders, received messages, alarms, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0138] The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0139] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or pulled out of the SIM card interface 195 to realize contact and separation with the electronic device 200. The electronic device 200 can support one or N SIM card interfaces, and N is a positive integer greater than 1.

[0140] The following describes the frequency band switching method provided by the embodiments of the present application by taking the AP device 100 as a dual-frequency router supporting 2.4G and 5G frequency bands as an example. It can be understood that the frequency band switching method of the AP device 100 supporting more frequency bands can refer to the frequency band switching method provided by the embodiments of the present application, and will not be described here.

[0141] In some embodiments, after the AP device 100 receives the request sent by the electronic device 200 to access the Wi-Fi network, it determines which frequency band the electronic device 200 should access according to whether the electronic device 200 supports 5G communication and whether the electronic device 200 is located within the signal coverage range of the 5G frequency band. For example, if the electronic device 200 supports 5G communication and is located within the 5G signal coverage range, the AP device 100 can instruct the electronic device 200 to access the Wi-Fi network in the 5G frequency band, so that the electronic device 200 can communicate on a high-bandwidth channel and obtain higher communication efficiency. Optionally, the AP device 100 can determine the strength of the signal received by the electronic device 200 by receiving the RSSI value sent by the electronic device 200, and thus determine the distance between the electronic device 200 and the AP device 100.

[0142] In some embodiments, the electronic device 200 can move after accessing the Wi-Fi network provided by the AP device 100, resulting in a change in the distance between the electronic device 200 and the AP device 100. For example, the electronic device 200 moves away from the AP device 100 during the process of accessing the 5G frequency band, resulting in a distance between the electronic device 200 and the AP device 100 being located at the edge of the coverage range of the 5G frequency band. Since the signal coverage range of the 2.4G frequency band is larger than that of the 5G frequency band, the AP device 100 can instruct the electronic device 200 to switch from the 5G frequency band to the 2.4G frequency band. For another example, the electronic device 200 moves close to the AP device 100 during the process of accessing the 2.4G frequency band, resulting in a distance between the electronic device 200 and the AP device 100 being within the coverage range of the 5G frequency band. Since the channel bandwidth of the 5G frequency band is higher than that of the 2.4G frequency band, the AP device 100 can instruct the electronic device 200 to switch from the 2.4G frequency band to the 5G frequency band.

[0143] In some embodiments, the electronic device 200 reports the RSSI value to the AP device 100 at a preset period after accessing the Wi-Fi network provided by the AP device 100. The AP device 100 is pre-stored with a switching threshold corresponding to the RSSI value, which is used to measure whether the frequency band needs to be switched. For example, the switching threshold for switching from the 5G frequency band to the 2.4G frequency band is set as frequency band switching threshold 1, and the switching threshold for switching from the 2.4G frequency band to the 5G frequency band is set as frequency band switching threshold 2. Then, the AP device 100 can determine whether the signal strength meets the threshold condition (i.e., whether the RSSI value meets the switching threshold requirement) according to the frequency band accessed by the electronic device 200 and the received RSSI value, and further determine whether the access frequency band needs to be switched.

[0144] For example, during the process of the electronic device 200 moving away from the AP device 100, the RSSI value will decrease as the distance increases. Then, assuming that the electronic device 200 accesses the 5G frequency band, the RSSI value is less than the frequency band switching threshold 1 during the process of moving away from the AP device 100, it can be determined that the current communication distance can exceed the coverage range of the 5G frequency band, meeting the threshold condition for switching from the 5G frequency band to the 2.4G frequency band, and the frequency band needs to be switched from the 5G frequency band to the 2.4G frequency band. For another example, during the process of the electronic device 200 moving close to the AP device 100, the RSSI value will increase as the distance decreases. Then, assuming that the electronic device 200 accesses the 2.4G frequency band, the RSSI value is greater than or equal to the frequency band switching threshold 2 during the process of moving close to the AP device 100, it can be determined that the current communication distance can be within the coverage range of the 5G frequency band, meeting the threshold condition for switching from the 2.4G frequency band to the 5G frequency band, and the frequency band needs to be switched from the 2.4G frequency band to the 5G frequency band.

[0145] In some embodiments, the switching threshold used in the process of determining whether the signal strength meets the threshold condition is generally a fixed value determined based on the performance of some electronic devices 200. However, this may not be applicable to all electronic devices 200, as the transmission power of the wireless signals of different electronic devices 200 varies. Therefore, to avoid ping-pong phenomena caused by frequent frequency band switching, after determining that the signal strength of the electronic device 200 meets the threshold condition, the AP device 100 does not perform frequency band switching immediately, but instead predicts the possible signal strength of the electronic device 200 after switching frequency bands. Then, the AP device 100 determines whether the predicted signal strength meets the threshold condition for the corresponding frequency band. If the predicted signal strength meets the threshold condition for the corresponding frequency band, it means that after switching frequency bands, the electronic device 200 may need to switch back to the original frequency band, resulting in ping-pong phenomena. Therefore, in the current scenario, even if the AP device 100 determines that the signal strength meets the threshold condition, it does not instruct the electronic device 200 to switch frequency bands. If the predicted signal strength does not meet the threshold condition for the corresponding frequency band, it means that after switching frequency bands, the electronic device 200 can communicate stably and does not need to switch back to the original frequency band, i.e., ping-pong phenomena will not occur. Therefore, in the current scenario, AP device 100 can instruct electronic device 200 to switch frequency bands.

[0146] In some embodiments, after the electronic device 200 accesses the Wi-Fi network provided by the AP device 100, at the same distance from the AP device 100, the RSSI value corresponding to the electronic device 200 accessing the 2.4G frequency band is greater than the RSSI value corresponding to the 5G frequency band.

[0147] For example, such as Figure 2 As shown, when electronic device 200 is located at location A, it can choose to access either the 5G or 2.4G frequency bands of the Wi-Fi network provided by AP device 100. The RSSI value reported by electronic device 200 when accessing the 2.4G frequency band at location A is greater than the RSSI value reported when accessing the 5G frequency band at location A. Therefore, AP device 100 can predict the RSSI value after handover based on the difference between the RSSI values ​​reported by the 2.4G and 5G frequency bands at the same location, thereby determining whether the predicted signal strength meets the threshold condition.

[0148] In some embodiments, the AP device 100 generates a Wi-Fi wireless signal for the electronic device 200 to access, the wireless signal power is in the milliwatt (mw) level, and after polarization processing, it is converted into an RSSI value in decibel-milliwatt (dbm) units, so as to realize the judgment of the communication quality and the distance between the electronic device 200 and the AP device 100 by using the RSSI value reported by the electronic device 200. Wherein, 1 mw is equal to 0 dbm, and the RSSI value corresponding to less than 1 mw of wireless power is negative. Generally, the RSSI value ranges from -15 to -85 dbm. Wherein, when the electronic device 200 is close to the AP device 100, the RSSI value is -15 dbm, which is used to represent that the current signal strength is strong. When the electronic device 200 is far away from the AP device 100, the RSSI value is -85 dbm, which is used to represent that the current signal strength is weak. Optionally, in order to simplify the operation of predicting the RSSI value in the frequency band switching process, the AP device 100 can take the positive of the RSSI value reported by the electronic device 200, and then judge whether the frequency band needs to be switched by using the positive RSSI value. For example, the positive method is to add 100 to the RSSI value. For example, -15 dbm corresponds to 85, and -85 dbm corresponds to 15.

[0149] It should be noted that the embodiments of the present application take the RSSI value range of [-15, -85] dbm, the positive method of adding 100 to the received RSSI value (that is, the RSSI value range of the positive RSSI value is [15, 85]), and the positive RSSI value is used to predict whether the frequency band is switched as an example. It can be understood that there can be other RSSI value ranges and other RSSI value processing methods, and the embodiments of the present application do not make specific examples.

[0150] In some embodiments, as described above, the RSSI value reported by the electronic device 200 will change with the distance between the AP device 100 (and the corresponding positive RSSI value will also change with the distance between the AP device 100), so the preset interval granularity can be used to divide the RSSI value range of the positive RSSI value, and the average difference of the positive RSSI value of the 2.4G frequency band and the 5G frequency band corresponding to each interval range is determined. Therefore, the AP device 100 can predict the RSSI value according to the average difference in the future.

[0151] For example, as shown in Table 1 below, taking the interval granularity of 5 (assuming that the RSSI values after taking the absolute value are all integers) as an example, the cutting results of the RSSI values after taking the absolute value corresponding to some 5G frequency bands and the average difference between the RSSI values after taking the absolute value of the 2.4G frequency band and the 5G frequency band are shown. For example, assuming that the electronic device 200 accesses the 5G frequency band and the RSSI value reported after taking the absolute value is 20. The AP device 100 determines that the electronic device 200 accesses the 5G frequency band of the AP device 100, and the RSSI value after taking the absolute value of the electronic device 200 is located in the interval range of [20-24), so that the AP device 100 can determine the average difference between the RSSI values after taking the absolute value of the electronic device 200 accessing the 2.4G frequency band and the 5G frequency band corresponding to the interval range according to Table 1 below, which is delta_c. Further, the AP device 100 can predict that if the electronic device 200 switches to the 2.4G frequency band at a similar position, the RSSI value after taking the absolute value of the electronic device 200 after switching to access the 2.4G frequency band should be the original RSSI value after taking the absolute value plus the corresponding average difference (the RSSI value of the 2.4G frequency band is greater than that of the 5G frequency band at the same position), that is, (20+delta_c).

[0152] In this way, the AP device 100 can predict the RSSI value of the corresponding 2.4G frequency band after the electronic device 200 accesses the 5G frequency band and obtains the RSSI value of the electronic device 200 at this time. Further, when it is determined that the currently received RSSI value satisfies the threshold condition of switching from the 5G frequency band to the 2.4G frequency band (for example, the RSSI value after taking the absolute value is less than the preset frequency band switching threshold 1 after taking the absolute value of the 5G frequency band switching to the 2.4G frequency band), the RSSI value of the 2.4G frequency band after switching can be predicted by the delta value shown in Table 1 below, and it is further determined whether the predicted RSSI value of the 2.4G frequency band satisfies the threshold condition of switching from the 2.4G frequency band to the 5G frequency band (that is, the predicted RSSI value after taking the absolute value is greater than or equal to the preset frequency band switching threshold 2 after taking the absolute value of the 2.4G frequency band switching to the 5G frequency band). If it is satisfied, the AP device 100 does not instruct the electronic device 200 to switch from accessing the 5G frequency band to accessing the 2.4G frequency band at this time, so that the electronic device 200 can avoid repeatedly switching the access frequency band.

[0153] Table 1

[0154]

[0155] For example, as shown in Table 2, taking the interval granularity of 5 (assuming that the RSSI values after taking the absolute value are all integers) as an example, the cutting results of the RSSI values after taking the absolute value corresponding to part of the 2.4G frequency band and the average difference between the RSSI values after taking the absolute value corresponding to the 2.4G frequency band and the 5G frequency band are shown. For example, assuming that the electronic device 200 accesses the 2.4G frequency band and the RSSI value after taking the absolute value is 45. The AP device 100 determines that the electronic device 200 accesses the 2.4G frequency band of the AP device 100. The RSSI value of the electronic device 200 is located in the interval range of [45-49), and thus the AP device 100 can determine the average difference between the RSSI values after taking the absolute value corresponding to the electronic device 200 accessing the 2.4G frequency band and the 5G frequency band in the interval range according to Table 2. Further, the AP device 100 can predict that if the electronic device 200 switches to the 5G frequency band at a similar position, the RSSI value after taking the absolute value of the electronic device 200 after switching to access the 5G frequency band should be the original RSSI value after taking the absolute value minus the corresponding average difference after taking the absolute value (the RSSI value of the 5G frequency band is smaller than that of the 2.4G frequency band at the same position), that is, (45-delta_F).

[0156] In this way, the AP device 100 can predict the RSSI value of the corresponding 5G frequency band after the electronic device 200 accesses the 2.4G frequency band and obtains the RSSI value of the electronic device 200 at this time. Further, when it is determined that the received RSSI value satisfies the threshold condition of switching the 2.4G frequency band to the 5G frequency band (that is, the RSSI value after taking the absolute value is greater than or equal to the preset frequency band switching threshold 2 after taking the absolute value of switching the 2.4G frequency band to the 5G frequency band), the RSSI value of the 5G frequency band after switching can be predicted by the delta value shown in Table 2, and it is further determined whether the predicted RSSI value of the 5G frequency band satisfies the threshold condition of switching the 5G frequency band to the 2.4G frequency band (that is, the predicted RSSI value after taking the absolute value is less than the preset frequency band switching threshold 1 after taking the absolute value of switching the 5G frequency band to the 2.4G frequency band). If it is satisfied, the AP device 100 does not instruct the electronic device 200 to switch from accessing the 2.4G frequency band to accessing the 5G frequency band at this time, so that the electronic device 200 can avoid repeatedly switching the access frequency band.

[0157] Table 2

[0158]

[0159] It should be noted that the delta values in Table 1 and Table 2 above are all positive values (i.e. the difference between the RSSI value actually reported by the electronic device 200 and the positive difference). It is also possible not to take the positive operation on the RSSI value, and the data table pre-stored in the AP device 100 as shown in Table 1 and Table 2 above can also be the RSSI value without taking the positive operation and the corresponding delta value.

[0160] In some embodiments, the frequency band switching threshold 1, the frequency band switching threshold 2, the delta value corresponding to the switching from the 5G frequency band to the 2.4G frequency band as shown in Table 1 above, and the delta value corresponding to the switching from the 2.4G frequency band to the 5G frequency band as shown in Table 2 above are pre-configured in the AP device 100. Then the AP device 100 can predict the RSSI value after switching according to these pre-configured data, so as to determine whether to instruct the electronic device 200 to switch the frequency band.

[0161] Optionally, the device capabilities of different electronic devices 200 can be different, and therefore the AP device 100 can record the table (such as the table shown in Table 1 and Table 2 above) corresponding to each electronic device 200 accessed, which includes the delta value for predicting the signal strength after switching. Then the AP device 100 can determine whether the electronic device 200 needs to switch the frequency band according to the delta value corresponding to the electronic device 200 after receiving the RSSI value reported by the electronic device 200. Optionally, the AP device 100 can also delete the delta value corresponding to the electronic device 200 as shown in Table 1 and Table 2 above which has not accessed the AP device 100 for more than a preset time, so as to save storage space. For example, one month after a certain electronic device 200 accesses the AP device 100 and disconnects, the AP device 100 still does not detect the access request of the electronic device 200, and the stored delta value corresponding to the electronic device 200 can be deleted.

[0162] In some embodiments, the AP device 100 also needs to maintain the delta value corresponding to each electronic device 200 as shown in Table 1 and Table 2 above. For example, the AP device 100 first presets the delta value corresponding to the electronic device 200 according to the empirical value, and then adjusts the corresponding delta value by using the RSSI value reported by the electronic device 200 after switching the frequency band, so that the adjusted delta value can better meet the frequency band switching requirement of the electronic device 200.

[0163] Specifically, the AP device 100 first obtains the delta value corresponding to the electronic device 200 as shown in Table 1 and Table 2, which is a preset value. Then, after instructing the electronic device 200 to switch the frequency band, the AP device 100 can calculate the RSSI difference between the new RSSI value actually measured after switching the frequency band and the original RSSI value reported by the electronic device 200 before switching the frequency band, so that the AP device 100 can update the original delta value by using the RSSI difference. For example, in an implementation manner, the RSSI difference and the original delta value are weighted and summed according to a percentage to determine the new delta value obtained after updating = 0.85*RSSI difference + 0.15*original delta value (wherein each delta value can be the delta value corresponding to the RSSI value after taking the positive value), wherein the new delta value obtained after updating refers more to the actually measured RSSI difference, so that the new delta value obtained after updating can better meet the needs of the electronic device 200 in the current communication environment. For another example, in another implementation manner, the new delta value obtained after updating = 0.15*RSSI difference + 0.85*original delta value (wherein each delta value can be the delta value corresponding to the RSSI value after taking the positive value) is determined according to a percentage, wherein the new delta value obtained after updating refers more to the original delta value, which can avoid the wrong modification of the original delta value preset according to the experience value when the actually measured RSSI value is an abnormal value. It should be noted that the electronic device 200 will send the RSSI value to the AP device 100 after switching the frequency band, so the AP device 100 will obtain the RSSI value reported by the electronic device 200 after instructing the electronic device 200 to switch the frequency band, and update the original delta value according to the RSSI value. It can be understood that the proportion (0.85, 0.15) applied in the process of determining the new delta value obtained after updating is exemplary, and other proportions can also be used to determine the new delta value obtained after updating, which is not limited in the embodiments of the present application. In other implementation manners, the actually measured RSSI value can be used as the new delta value to directly replace the original delta value.

[0164] The frequency band switching method provided by the embodiments of the present application will be described below in combination with specific examples. It is assumed that the frequency band switching threshold value 1 of switching the 5G frequency band to the 2.4G frequency band in the AP device 100 is -79dbm, which is 21 after taking the positive value, and the frequency band switching threshold value 2 of switching the 2.4G frequency band to the 5G frequency band is -54dbm, which is 45 after taking the positive value. It can be understood that the above frequency band switching threshold values are exemplary, and the frequency band switching threshold values can also be other values.

[0165] Example one, the electronic device 200 accesses the 5G frequency band of the Wi-Fi network provided by the AP device 100.

[0166] Exemplary, Figure 4 The flowchart of the frequency band switching method provided by the embodiment of the present application is shown in the figure. Figure 4 As shown, the method comprises the following steps.

[0167] S401, the electronic device 200 accesses the 5G frequency band of the Wi-Fi network provided by the AP device 100.

[0168] In some embodiments, the electronic device 200 is located in the 5G frequency band signal coverage range of the Wi-Fi network provided by the AP device 100, and accesses the 5G frequency band for communication.

[0169] S402, the AP device determines that the signal strength of the electronic device 200 meets the threshold condition of switching from the 5G frequency band to the 2.4G frequency band.

[0170] In some embodiments, the electronic device 200 is a mobile terminal device, and in the moving process, the RSSI value is reported to the AP device 100 through the wireless connection between the electronic device 200 and the AP device 100. The AP device 100 can determine that the distance between the electronic device 200 and the AP device 100 changes according to the RSSI value, such as the RSSI value becoming smaller, which determines that the electronic device 200 is away from the AP device 100. When the AP device 100 determines that the RSSI value is less than the frequency band switching threshold 1, it can be determined that the signal strength of the electronic device 200 meets the threshold condition of switching from the 5G frequency band to the 2.4G frequency band. Optionally, the electronic device 200 will also carry the media access control (MAC) address corresponding to the accessed frequency band when reporting the RSSI value, and the AP device 100 can determine the frequency band accessed by the electronic device 200 according to the MAC address, so as to determine whether the signal strength received meets the threshold condition corresponding to the frequency band accessed by the electronic device 200.

[0171] It should be noted that the current AP device 100 is a dual-frequency router, which contains two MAC addresses. Among them, the 2.4G frequency band corresponds to one MAC address, and the 5G frequency band corresponds to another MAC address.

[0172] For example, assuming that the AP device 100 receives the RSSI value reported by the electronic device 200 as -80dbm, and the RSSI value after taking the positive is 20. Then, the AP device 100 determines that the current RSSI value after taking the positive is less than the frequency band switching threshold value 1 (for example, 21), and the signal strength of the electronic device 200 meets the threshold condition of switching from the 5G frequency band to the 2.4G frequency band. The AP device 100 can further determine whether frequency band switching is needed. Alternatively, the electronic device 200 can also send the RSSI value after taking the positive to the AP device 100, and then the AP device 100 can no longer perform the taking positive operation, and directly determine whether the received RSSI value meets the threshold condition.

[0173] S403, the AP device 100 predicts the signal strength of the electronic device 200 after switching to the 2.4G frequency band.

[0174] In some embodiments, after determining that the signal strength of the current electronic device 200 meets the threshold condition of switching from the 5G frequency band to the 2.4G frequency band, the AP device 100 predicts the signal strength of the electronic device 200 after switching to the 2.4G frequency band by a preset method.

[0175] For example, as described in the example of step S402, assuming that the AP device 100 determines that the received RSSI value after taking the positive is 20. According to the content shown in Table 1, the AP device 100 determines that the current RSSI value after taking the positive is in the interval range [20-24), which corresponds to delta_c. Then, the AP device 100 determines that the RSSI value after taking the positive of the electronic device 200 after switching to the 2.4G frequency band is (20+delta_c). That is, the AP device 100 predicts that the signal strength after taking the positive of the electronic device 200 after switching to the 2.4G frequency band is larger, which is (20+delta_c).

[0176] S404, the AP device 100 determines that the predicted signal strength of the 2.4G frequency band does not meet the threshold condition of switching from the 2.4G frequency band to the 5G frequency band. If yes, the AP device 100 can perform step S405; if no, the AP device 100 can perform step S406.

[0177] In some embodiments, after the AP device 100 determines the predicted RSSI value of the 2.4G band in step S403, the AP device 100 judges whether the predicted RSSI value of the 2.4G band satisfies a threshold condition for switching from the 2.4G band to the 5G band in step S404. If the threshold condition is not satisfied, it means that the electronic device 200 can maintain communication in the 2.4G band after switching to the 2.4G band and does not need to switch back to the 5G band. Therefore, the AP device 100 can instruct the electronic device 200 to switch from the 5G band to the 2.4G band. If the threshold condition is satisfied, it means that the electronic device 200 needs to switch back to the 5G band after switching to the 2.4G band. Therefore, the AP device 100 can not need to instruct the electronic device 200 to switch from the 5G band to the 2.4G band, thereby avoiding ping-pang phenomenon (i.e., avoiding repeatedly switching between the 2.4G band and the 5G band).

[0178] For example, as described in the above examples of step S402 and step S403, assuming that the RSSI value of the 5G band to which the electronic device 200 currently accesses is 20 after being taken positive, and delta_c is 20. Then, the AP device 100 predicts that the RSSI value of the 2.4G band after the electronic device 200 switches to the 2.4G band is 40 (i.e., 20+20) after being taken positive. Assuming that the band switching threshold 2 for switching from the 2.4G band to the 5G band is 45 after being taken positive, since the predicted RSSI value after being taken positive is less than the band switching threshold 2 after being taken positive (i.e., 40 is less than 45), the threshold condition for switching from the 2.4G band to the 5G band is not satisfied. Then, the AP device 100 does not need to instruct the electronic device 200 to switch back to the 5G band after the electronic device 200 switches to the 2.4G band, and the electronic device 200 can maintain communication in the 2.4G band. Therefore, in the current scenario, the AP device 100 performs step S405 described below to instruct the electronic device 200 to switch bands.

[0179] For example, as described in the above examples of step S402 and step S403, assuming that the RSSI value of the 5G band to which the electronic device 200 currently accesses is 20 after being taken positive, and delta_c is 30. Then, the AP device 100 predicts that the RSSI value of the 2.4G band after the electronic device 200 switches to the 2.4G band is 50 (i.e., 20+30) after being taken positive. Assuming that the band switching threshold 2 for switching from the 2.4G band to the 5G band is 45 after being taken positive, since the predicted RSSI value after being taken positive is greater than the band switching threshold 2 after being taken positive (i.e., 50 is greater than 45), the threshold condition for switching from the 2.4G band to the 5G band is satisfied. Then, the AP device 100 can need to instruct the electronic device 200 to switch back to the 5G band after the electronic device 200 switches to the 2.4G band. Therefore, in the current scenario, the AP device 100 performs step S406 described below and does not instruct the electronic device 200 to switch bands.

[0180] S405, the AP device 100 instructs the electronic device 200 to switch the frequency band to the 2.4G frequency band.

[0181] In some embodiments, after determining the need to instruct the electronic device 200 to switch to the 2.4G frequency band, the AP device 100 sends a switching request to the electronic device 200 according to the communication protocol, for requesting the electronic device 200 to switch to the 2.4G frequency band. After receiving the switching request, the electronic device 200 determines whether to switch the frequency band.

[0182] For example, the AP device 100 sends a switching request to the electronic device 200 according to the IEEE802.11V protocol, such as a basic service set (BSS) Transition Management Request message. In addition, the request message also carries the target frequency band and the target channel in the target frequency band that the electronic device 200 is suggested to switch to. Correspondingly, after receiving the switching request, the electronic device 200 determines whether to switch to the target channel in the target frequency band, and sends a switching response to the AP device 100. For example, a BSS Transition Management Response message is sent. If it is determined to switch the frequency band, the electronic device 200 carries a confirmation switching response in the response message; if it is determined not to switch the frequency band, the electronic device 200 carries the reason for refusing to switch in the response message.

[0183] In some embodiments, since the distance between the electronic device 200 and the AP device 100 changes, which causes the RSSI value to change, after receiving the switching request and determining to switch the frequency band, the electronic device 200 needs to access the target channel in the target frequency band within a preset time, and report the RSSI value detected after accessing the target frequency band. The reason is that the electronic device 200 can be a mobile terminal. If the electronic device 200 accesses the target frequency band and reports the RSSI value after exceeding the preset time, the electronic device 200 can have moved, and the reported RSSI value cannot correspond to the original RSSI value reported by the electronic device 200 before switching the frequency band, that is, it cannot be considered that the new RSSI value reported after switching the frequency band and the original RSSI value reported before switching the frequency band are RSSI values corresponding to the same position in different frequency bands, so that the AP device cannot update the corresponding delta value using the new RSSI value and the original RSSI value. Optionally, the preset time can be 1 second.

[0184] In some embodiments, after switching the frequency band, the electronic device 200 reports the current actual measured RSSI value to the AP device 100, and carries the MAC address of the accessed frequency band. After receiving the new MAC address reported by the electronic device 200, the AP device 100 determines that the electronic device 200 has accessed the target frequency band (such as the 2.4G frequency band), and can subtract the new RSSI value from the original RSSI value (i.e. the RSSI value reported by the electronic device 200 when it is determined that the frequency band needs to be switched). According to the difference, a new delta value corresponding to the current interval range is determined (in the embodiments of the present application, the delta value is the difference between the positive new RSSI value and the positive original RSSI value).

[0185] For example, after sending the switching request to the electronic device 200, or when sending the switching request to the electronic device 200, the AP device 100 starts the timer to start timing. If the AP device 100 receives the RSSI value sent by the electronic device 200, and determines that the RSSI value is the RSSI value measured by the electronic device 200 after switching the frequency band (the MAC address is different from the MAC address corresponding to the frequency band before switching), the timer can be stopped, and it is determined whether the time length recorded by the timer (such as the time difference between the start time and the stop time) is less than or equal to the preset time (such as less than or equal to 1 second). If it is determined that the recorded time length is less than or equal to the preset time length, the AP device 100 can determine the corresponding new delta value using the new RSSI value. If it is determined that the recorded time length is greater than the preset time length, the AP device 100 determines not to update the corresponding delta value.

[0186] Exemplarily, as described in the above examples of step S402 and step S403, assuming that the original RSSI value of the electronic device 200 after taking the positive is 20 when the electronic device 200 accesses the 5G frequency band, assuming that the delta_c of the interval range (i.e., [20-24)) corresponding to the RSSI value (i.e., 20) after taking the positive is 20 as shown in Table 1, and assuming that the new RSSI value actually measured by the electronic device 200 after switching to access the 2.4G frequency band after taking the positive is 42. Then, the AP device 100 can determine that the difference between the new RSSI value actually measured by the electronic device 200 after switching to access the 2.4G frequency band after taking the positive and the original RSSI value of the electronic device 200 when previously accessing the 5G frequency band after taking the positive is 22 (i.e., 42-20). Thus, the AP device 100 can update the delta_c corresponding to the interval range [20-24) in the original Table 1 according to the difference to obtain a new delta_c. Assuming that the calculation rule of the new delta value obtained after updating is that the difference accounts for 85% and the original delta value accounts for 15%, then the new delta_c obtained after updating is 0.85*22+0.15*20=21.7. The AP device 100 obtains the new delta_c value corresponding to the interval range [20-24) as 21.7.

[0187] It should be noted that in some embodiments, if it is desired to update the original delta value using the actually measured RSSI difference value, it is necessary to first determine whether the electronic device 200 completes the frequency band switching within a preset time (for example, within 1 second). For example, assuming that the AP device 100 obtains the time t1 at which the electronic device 200 last reports the original RSSI value before switching the frequency band, and obtains the time t2 at which the electronic device 200 first reports the new RSSI value after switching the frequency band, the AP device 100 needs to first determine that the time difference between t1 and t2 is less than 1 second. This is because, if it is greater than 1 second, it is possible that the electronic device 200 has moved, and it cannot be considered that the new RSSI value reported after switching the frequency band and the original RSSI value reported before switching the frequency band are RSSI values of different frequency bands corresponding to the same position. If it is less than 1 second, it can be considered that the electronic device 200 does not move or moves within a preset distance, and it can be considered that the new RSSI value reported after switching the frequency band and the original RSSI value reported before switching the frequency band are RSSI values of different frequency bands corresponding to the same position, so the actual measured RSSI difference value can be used to update the original delta value in this case.

[0188] S406, the AP device 100 does not instruct the electronic device 200 to switch the frequency band.

[0189] In some embodiments, after determining that the electronic device 200 does not need to switch the frequency band, the AP device 100 can not send a switching request to the electronic device 200 even if the current RSSI value meets the threshold condition of switching from the 2.4G frequency band to the 5G frequency band, thereby avoiding the ping-pong abnormal phenomenon. Thereafter, the AP device 100 can continue to monitor the RSSI value of the electronic device 200 accessing the 5G frequency band, and cyclically execute the steps S402-S404 until it is determined that the electronic device 200 needs to switch to the 2.4G frequency band (step S405), and the electronic device 200 successfully switches to the 2.4G frequency band, and then the AP device 100 continues to monitor the RSSI value of the electronic device 200 accessing the 2.4G frequency band by the method shown in Example II below.

[0190] Example II, the electronic device 200 accesses the 2.4G frequency band of the Wi-Fi network provided by the AP device 100.

[0191] Example, Figure 5 The flowchart of the frequency band switching method provided by the embodiments of the present application is shown in FIG. 1. As shown in the figure, the method comprises the following steps. Figure 5

[0192] S501, the electronic device 200 accesses the 2.4G frequency band of the Wi-Fi network provided by the AP device 100.

[0193] In some embodiments, the electronic device 200 is located within the signal coverage range of the 2.4G frequency band of the Wi-Fi network provided by the AP device 100, but not within the signal coverage range of the 5G frequency band, and accesses the 2.4G frequency band for communication.

[0194] S502, the AP device 100 determines that the signal strength of the electronic device 200 meets the threshold condition of switching from the 2.4G frequency band to the 5G frequency band.

[0195] In some embodiments, the electronic device 200 is a mobile terminal device, and during the movement, the electronic device 200 reports the RSSI value to the AP device 100 through the wireless connection between the electronic device 200 and the AP device 100. The AP device 100 can determine that the distance between the AP device 100 and the electronic device 200 changes according to the RSSI value, for example, the RSSI value becomes larger, which indicates that the electronic device 200 is close to the AP device 100. When the AP device 100 determines that the RSSI value is greater than or equal to the frequency band switching threshold 2, it can be determined that the signal strength of the electronic device 200 meets the threshold condition of switching from the 2.4G frequency band to the 5G frequency band. Optionally, the electronic device 200 carries the MAC address corresponding to the accessed frequency band when reporting the RSSI value, and the AP device 100 can determine that the electronic device 200 accesses the 2.4G frequency band according to the MAC address, thereby determining whether the received signal strength meets the threshold condition corresponding to the 2.4G frequency band accessed by the electronic device 200.​

[0196] For example, assuming that the AP device 100 receives the RSSI value reported by the electronic device 200 as -50dbm, the RSSI value after taking the positive is 50. Then, the AP device 100 determines that the current RSSI value after taking the positive is greater than the frequency band switching threshold 2 (e.g., 45) after taking the positive, and the signal strength of the electronic device 200 meets the threshold condition of switching the 2.4G frequency band to the 5G frequency band. The AP device 100 can further determine whether frequency band switching is needed.

[0197] S503, the AP device 100 predicts the signal strength of the electronic device 200 after switching to the 5G frequency band.

[0198] In some embodiments, after determining that the current signal strength of the electronic device 200 meets the threshold condition of switching the 2.4G frequency band to the 5G frequency band, the signal strength of the electronic device 200 after switching to the 5G frequency band is predicted by a preset method.

[0199] For example, as described in the example of step S502, assuming that the AP device 100 determines that the current received RSSI value after taking the positive is 50. According to the content shown in Table 2, the AP device 100 determines that the current RSSI value after taking the positive is in the interval range [50-54), which corresponds to delta_G. Then, the AP device 100 determines that the RSSI value after taking the positive of the electronic device 200 after switching to the 5G frequency band is (50-delta_G). That is, the AP device 100 predicts that the RSSI value after taking the positive of the electronic device 200 after switching to the 5G frequency band is (50-delta_G), which is smaller than the current value.

[0200] S504, the AP device 100 determines that the predicted signal strength of the 5G frequency band does not meet the threshold condition of switching the 5G frequency band to the 2.4G frequency band. If yes, the AP device 100 can perform step S505; if no, the AP device 100 can perform step S506.

[0201] In some embodiments, after the AP device 100 determines the predicted RSSI value of the 5G band at step S503, the AP device 100 determines whether the predicted RSSI value of the 5G band satisfies the threshold condition corresponding to the 5G band after the switch (i.e., whether the threshold condition for switching from the 5G band to the 2.4G band is satisfied) at step S504. If the threshold condition is not satisfied, it means that the electronic device 200 can maintain communication in the 5G band after switching to the 5G band and will not switch back to the 2.4G band. Therefore, the AP device 100 can instruct the electronic device 200 to switch from the 2.4G band to the 5G band. If the threshold condition is satisfied, it means that the electronic device 200 needs to switch back to the 2.4G band after switching to the 5G band. Therefore, the AP device 100 can not need to instruct the electronic device 200 to switch from the 2.4G band to the 5G band, thereby avoiding ping-pang phenomenon (i.e., avoiding repeated switching between bands).

[0202] For example, as described in the above examples of step S502 and step S503, assume that the RSSI value of the electronic device 200 currently accessing the 2.4G band is 50 after being taken positive, and delta_G is 20. Then, the AP device 100 predicts that the RSSI value of the electronic device 200 after switching to the 5G band is 30 (i.e., 50-20) after being taken positive. Assume that the band switching threshold 1 after the 5G band switching to the 2.4G band is taken positive is 21. Since the predicted RSSI value after being taken positive is greater than the band switching threshold 1 after being taken positive (i.e., 30 is greater than 21), the threshold condition for switching from the 5G band to the 2.4G band is not satisfied. Then, the AP device 100 does not need to instruct the electronic device 200 to switch back to the 2.4G band after the electronic device 200 switches to the 5G band, and the electronic device 200 can maintain communication in the 5G band. Therefore, in the current scenario, the AP device 100 performs step S505 described below to instruct the electronic device 200 to switch bands.

[0203] For example, as described in the above examples of step S502 and step S503, assume that the RSSI value of the electronic device 200 currently accessing the 2.4G band is 50 after being taken positive, and delta_G is 30. Then, the AP device 100 predicts that the RSSI value of the electronic device 200 after switching to the 5G band is 20 (i.e., 50-30) after being taken positive. Assume that the band switching threshold 1 after the 5G band switching to the 2.4G band is taken positive is 21. Since the predicted RSSI value after being taken positive is less than the band switching threshold 1 after being taken positive (i.e., 20 is less than 21), the threshold condition for switching from the 5G band to the 2.4G band is satisfied. Then, if the electronic device 200 switches to the 5G band, the AP device 100 can need to instruct the electronic device 200 to switch back to the 2.4G band. Therefore, in the current scenario, the AP device 100 performs step S506 described below and does not instruct the electronic device 200 to switch bands.

[0204] S505, the AP device 100 instructs the electronic device 200 to switch the frequency band to the 5G frequency band.

[0205] In some embodiments, after determining that the electronic device 200 needs to be instructed to switch to the 5G frequency band, the AP device 100 sends a switching request to the electronic device 200 according to the communication protocol, for requesting the electronic device 200 to switch to the 5G frequency band. After receiving the switching request, the electronic device 200 determines whether to switch the frequency band.

[0206] For example, the AP device 100 sends a switching request to the electronic device 200 according to the IEEE 802.11V protocol, such as a BSS Transition Management Request message. In addition, the request message also carries the target frequency band and the target channel in the target frequency band that the electronic device 200 is suggested to switch to. Correspondingly, after receiving the switching request, the electronic device 200 determines whether to switch to the target channel in the target frequency band, and sends a switching response to the AP device 100. For example, a BSS Transition Management Response message is sent. If it is determined to switch the frequency band, the electronic device 200 carries a confirmation switching response in the response message; if it is determined not to switch the frequency band, the electronic device 200 carries the reason for refusing switching in the response message.

[0207] Optionally, other contents of step S505 can refer to the related contents of step S405 described above, which will not be repeated here.

[0208] S506, the AP device 100 does not instruct the electronic device 200 to switch the frequency band.

[0209] In some embodiments, after determining that the electronic device 200 does not need to be instructed to switch the frequency band, even if the current RSSI value meets the threshold condition of switching from the 2.4G frequency band to the 5G frequency band, the AP device 100 can not need to send a switching request to the electronic device 200, thereby avoiding the ping-pong abnormal phenomenon. Thereafter, the AP device 100 can continue to monitor the RSSI value of the electronic device 200 accessing the 2.4G frequency band, and cyclically execute the above steps S502-S504, until it is determined to instruct the electronic device 200 to switch to the 5G frequency band (step S505) and the electronic device 200 successfully switches to the 5G frequency band. The AP device 100 continues to monitor the RSSI value of the electronic device 200 accessing the 5G frequency band by the method shown in the above example one.

[0210] Thus, this embodiment of the application maintains a prediction table containing the RSSI difference of the electronic device 200 before and after frequency band switching by recording the RSSI difference. The AP device 100 can predict the RSSI value of the electronic device 200 after frequency band switching based on this prediction table, thereby determining whether the electronic device 200 can maintain stable communication after switching frequency bands. The AP device 100 will only guide the electronic device 200 to switch frequency bands if it determines that stable communication can be maintained after switching frequency bands. This effectively avoids ping-pong phenomena during the frequency band switching process of the electronic device 200, improving the user experience.

[0211] The above combination Figure 4 and Figure 5 The frequency band switching method provided in the embodiments of this application is described in detail below. Figure 6 and Figure 7 This application provides a detailed description of the frequency band switching device provided in its embodiments.

[0212] In one possible design, Figure 6 This is a schematic diagram of the structure of an AP device provided in an embodiment of this application. Figure 6 As shown, the AP device 600 may include a processing unit 601 and a transceiver unit 602. The AP device 600 can serve as a frequency band switching device to implement the functions of the AP device 100 involved in the above method embodiments.

[0213] Optionally, the processing unit 601 is used to support the AP device 600 in performing operations. Figure 4 S402, S403, and S404; and / or, for supporting AP device 600 to perform Figure 5 S502, S503, and S504.

[0214] Optionally, the transceiver unit 602 is used to support the AP device 600 in performing... Figure 4 S401 and S405, or S401 and S406; and / or, for supporting AP device 600 to perform Figure 5 S501 and S505, or S501 and S506.

[0215] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the AP device 600 are respectively to implement the corresponding process of the frequency band switching method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and will not be repeated here for the sake of brevity.

[0216] Optionally, Figure 6The AP device 600 shown may also include a storage unit ( Figure 6 (Not shown in the image), this storage unit stores a program or instruction. When the processing unit 601 and the transceiver unit 602 execute the program or instruction, it causes... Figure 6 The AP device 600 shown can perform the frequency band switching method described in the above method embodiments.

[0217] Figure 6 The technical effects of the AP device 600 shown can be referred to the technical effects of the frequency band switching method described in the above method embodiments, and will not be repeated here.

[0218] Besides being in the form of AP device 600, the technical solution provided in this application can also be a functional unit or chip in an AP device, or a device used in conjunction with an AP device.

[0219] In one possible design, Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 7 As shown, the electronic device 700 may include a transceiver unit 701 and a processing unit 702. The electronic device 700 can serve as a frequency band switching device to implement the functions of the electronic device 200 involved in the above method embodiments.

[0220] Optionally, the transceiver unit 701 is used to support the electronic device 700 in performing... Figure 4 S401 and S405, or S401 and S406; and / or, for supporting the electronic device 700 to perform Figure 5 S501 and S505, or S501 and S506.

[0221] Optionally, the processing unit 702 is configured to support the electronic device 700 in determining whether to perform frequency band switching after receiving a switching request sent by the AP device.

[0222] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the electronic device 700 are respectively to implement the corresponding process of the frequency band switching method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.

[0223] Optionally, Figure 7 The illustrated electronic device 700 may also include a storage unit ( Figure 7 (Not shown in the image), this storage unit stores a program or instruction. When the transceiver unit 701 and the processing unit 702 execute the program or instruction, it causes... Figure 7The electronic device 700 shown can perform the frequency band switching method described in the method embodiments.

[0224] Figure 7 The technical effects of the electronic device 700 shown can refer to the technical effects of the frequency band switching method described in the method embodiments, which will not be repeated here.

[0225] In addition to the form of the electronic device 700, the technical solutions provided in the present application can also be a functional unit or a chip in the electronic device, or a device matched with the electronic device.

[0226] The embodiments of the present application also provide a chip system, comprising: a processor, the processor is coupled with a memory, the memory is used to store programs or instructions, when the programs or instructions are executed by the processor, the chip system realizes the method in any one of the method embodiments.

[0227] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which realizes by reading software codes stored in the memory.

[0228] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor, or can be separately arranged from the processor, and the embodiments of the present application are not limited. Illustratively, the memory can be a non-transient processor, for example, a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be separately arranged on different chips, and the embodiments of the present application do not make specific limitations on the type of memory and the arrangement of the memory and the processor.

[0229] Exemplarily, the chip system can be a field programmable gate array (FPGA), can be an application specific integrated circuit (ASIC), can also be a system on chip (SoC), can also be a central processor unit (CPU), can also be a network processor (NP), can also be a digital signal processor (DSP), can also be a micro controller unit (MCU), can also be a programmable logic device (PLD) or other integrated chip.

[0230] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits of hardware in the processor or instructions in the form of software. The method steps disclosed in combination with the embodiments of the present application can be directly embodied as hardware processor execution, or executed by a combination of hardware and software modules in the processor.

[0231] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program. When the computer program is executed on a computer, the computer is caused to execute the above related steps to implement the frequency band switching method in the above embodiments.

[0232] The embodiments of the present application also provide a computer program product. When the computer program product is executed on a computer, the computer is caused to execute the above related steps to implement the frequency band switching method in the above embodiments.

[0233] In addition, the embodiments of the present application also provide a device. The device can be specifically a component or a module, and the device can include one or more processors and memories connected thereto. The memory is used to store a computer program. When the computer program is executed by the one or more processors, the device executes the frequency band switching method in the above method embodiments.

[0234] Among them, the device, computer readable storage medium, computer program product or chip provided by the embodiments of the present application are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved thereby can refer to the beneficial effects in the corresponding method provided above, which will not be described here again.

[0235] The steps of methods or algorithms described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, a removable media, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium can be integral to the processor. The processor and the storage medium can reside in an ASIC.

[0236] Those skilled in the art can clearly understand the method provided by the above embodiments. For the convenience and brevity of description, only the above division of functional modules is taken as an example. In actual application, the above functions can be completed by different functional modules according to needs; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

[0237] In several embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. The above-described device embodiments are only schematic. For example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner; for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, module or unit, which can be electrical, mechanical or other forms.

[0238] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0239] The computer readable storage medium includes, but is not limited to, any one of the following: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.

[0240] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any change or replacement within the technical scope disclosed by the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A frequency band switching method, applied to an access point (AP) device, characterized in that, The AP device provides access points for at least a first frequency band and a second frequency band, and the method includes: The first signal strength of the electronic device is determined to satisfy a first threshold condition for the electronic device to switch from accessing the first frequency band to accessing the second frequency band; wherein, the first signal strength is the signal strength reported by the electronic device when it accesses the first frequency band; Determine the first signal strength difference recorded in the AP device corresponding to the first signal strength; Based on the first signal strength and the difference between the first signal strength and the second signal strength, predict the second signal strength of the electronic device after it switches to access the second frequency band; If it is determined that the second signal strength does not meet the second threshold condition for the electronic device to switch from accessing the second frequency band to accessing the first frequency band, then a first frequency band switching request is sent to the electronic device. The first frequency band switching request is used to instruct the electronic device to access the second frequency band.

2. The method according to claim 1, characterized in that, The method further includes: Receive a third signal strength transmitted by the electronic device; the third signal strength is the signal strength transmitted by the electronic device after switching to access the second frequency band; The second signal strength difference is determined based on the first signal strength and the third signal strength; Based on the second signal strength difference and the first signal strength difference, a third signal strength difference corresponding to the first signal strength is determined.

3. The method according to claim 2, characterized in that, Determining the second signal strength difference based on the first signal strength and the third signal strength includes: The difference between the first signal strength and the third signal strength is taken as the second signal strength difference; The step of determining the third signal strength difference corresponding to the first signal strength based on the second signal strength difference and the first signal strength difference includes: The second signal strength difference and the first signal strength difference are weighted and summed to obtain the third signal strength difference.

4. The method according to claim 3, characterized in that, The method further includes: The first signal strength difference value recorded in the AP device corresponding to the first signal strength is replaced with the third signal strength difference value.

5. The method according to any one of claims 2-4, characterized in that, The third signal strength is the signal strength received by the electronic device within a preset time after the AP device sends the first frequency band switching request to the electronic device, and the first media access control MAC address corresponding to the third signal strength is different from the second MAC address corresponding to the first signal strength.

6. The method according to any one of claims 1-4, characterized in that, The method further includes: The fourth signal strength of the electronic device is determined to satisfy the second threshold condition for the electronic device to switch from accessing the second frequency band to accessing the first frequency band; wherein, the fourth signal strength is the signal strength reported by the electronic device after it switches to accessing the second frequency band; Predict the fifth signal strength of the electronic device after it switches to access the first frequency band; If it is determined that the strength of the fifth signal does not meet the first threshold condition for the electronic device to switch from accessing the first frequency band to accessing the second frequency band, then a second frequency band switching request is sent to the electronic device, the second frequency band switching request being used to instruct the electronic device to access the first frequency band.

7. The method according to any one of claims 1-4, characterized in that, The first threshold condition includes the signal strength reported by the electronic device being less than a first threshold, and the second threshold condition includes the signal strength reported by the electronic device being greater than or equal to a second threshold.

8. The method according to any one of claims 1-4, characterized in that, The first frequency band is the 5G frequency band, and the second frequency band is the 2.4G frequency band.

9. The method according to any one of claims 1-4, characterized in that, The access points provided by the AP device for different frequency bands correspond to different MAC addresses. While receiving the signal strength reported by the electronic device, the AP device also receives the third MAC address corresponding to the current access frequency band reported by the electronic device. The third MAC address is used by the AP device to determine the frequency band currently accessed by the electronic device.

10. A frequency band switching method, applied to electronic equipment, characterized in that, The method includes: Access point (AP) devices provide access points in a first frequency band; wherein the AP devices provide access points in at least the first frequency band and the second frequency band. The AP device reports the first signal strength of the electronic device when it accesses the first frequency band; wherein, the first signal strength is used by the AP device to predict the second signal strength of the electronic device after it switches to access the second frequency band based on the first signal strength and the first signal strength difference recorded in the AP device corresponding to the first signal strength; In response to a first frequency band switching request sent by the AP device, the access device switches from accessing the first frequency band to accessing the second frequency band; wherein, the first frequency band switching request is a request sent by the AP device to the electronic device when it determines that the first signal strength meets a first threshold condition for the electronic device to switch from accessing the first frequency band to accessing the second frequency band, and the second signal strength does not meet a second threshold condition for the electronic device to switch from accessing the second frequency band to accessing the first frequency band.

11. The method according to claim 10, characterized in that, The method further includes: The third signal strength after the electronic device switches to access the second frequency band is reported to the AP device.

12. The method according to claim 11, characterized in that, The third signal strength is the signal strength sent by the electronic device to the AP device within a preset time after the electronic device receives the first frequency band switching request, and the first media access control MAC address corresponding to the third signal strength is different from the second MAC address corresponding to the first signal strength.

13. The method according to claim 10, characterized in that, The method further includes: The AP device reports a fourth signal strength of the electronic device when it accesses the second frequency band; wherein the fourth signal strength is used by the AP device to predict the fifth signal strength of the electronic device after it switches to access the first frequency band; In response to a second frequency band switching request sent by the AP device, the access device switches from accessing the second frequency band to accessing the first frequency band; wherein, the second frequency band switching request is a request sent by the AP device to the electronic device when it determines that the fourth signal strength meets the second threshold condition for the electronic device to switch from accessing the second frequency band to accessing the first frequency band, and the fifth signal strength does not meet the first threshold condition for the electronic device to switch from accessing the first frequency band to accessing the second frequency band.

14. The method according to any one of claims 10-13, characterized in that, The first threshold condition includes the signal strength reported by the electronic device being less than a first threshold, and the second threshold condition includes the signal strength reported by the electronic device being greater than or equal to a second threshold.

15. The method according to any one of claims 10-13, characterized in that, The first frequency band is the 5G frequency band, and the second frequency band is the 2.4G frequency band.

16. The method according to any one of claims 10-13, characterized in that, The access points provided by the AP device for different frequency bands correspond to different MAC addresses. When reporting the signal strength, the electronic device also reports the third MAC address corresponding to the frequency band currently accessed by the electronic device. The third MAC address is used by the AP device to determine the frequency band currently accessed by the electronic device.

17. An access point (AP) device, characterized in that, include: A processor and a memory, the memory being coupled to the processor, the memory being used to store computer program code, the computer program code including computer instructions, which, when the processor reads the computer instructions from the memory and executes the computer instructions in the processor, cause the AP device to perform the method as described in any one of claims 1-9.

18. An electronic device, characterized in that, include: A processor and a memory, the memory being coupled to the processor, the memory being used to store computer program code, the computer program code including computer instructions, which, when the processor reads the computer instructions from the memory and executes the computer instructions in the processor, cause the electronic device to perform the method as described in any one of claims 10-16.

19. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an access point (AP) device, causes the AP device to perform the method as described in any one of claims 1-9.

20. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 10-16.

21. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-9; or causes the computer to perform the method as described in any one of claims 10-16.

22. A chip system, characterized in that, The chip system includes at least one processor and at least one interface circuit. The at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor. When the at least one processor executes the instructions, the at least one processor performs the method as described in any one of claims 1-9; or, the at least one processor performs the method as described in any one of claims 10-16.

Citation Information

Patent Citations

  • Cell switching method and terminal

    CN112449393A