Channel selection method and apparatus, computer device, and storage medium

By detecting and reusing the channel identifier of the last optimal channel, the channel scanning steps are reduced, solving the problem of long ACS scanning time in the existing technology, and improving the startup speed of SoftAP and user experience.

CN122160750APending Publication Date: 2026-06-05RDA MICROELECTRONICS SHANGHAICO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
RDA MICROELECTRONICS SHANGHAICO LTD
Filing Date
2026-03-05
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing ACS technology requires multiple channel scans before enabling SoftAP, resulting in user equipment spending a long time searching for APs and a poor user experience.

Method used

By detecting the channel identifier of the last optimal channel, it is determined whether the usage conditions are met, and if the conditions are met, a directional ACS scan command is sent to start SoftAP, reducing the number of full channel scan steps.

Benefits of technology

It shortens SoftAP startup time, improves user experience, and avoids communication lag and disconnection issues caused by historical channel interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122160750A_ABST
    Figure CN122160750A_ABST
Patent Text Reader

Abstract

The application relates to a channel selection method and device, computer equipment and a storage medium. The method comprises the following steps: detecting an opening operation of a software wireless access point (SoftAP) in a terminal device, and acquiring a channel identifier of a last optimal channel; the last optimal channel is an optimal channel used by the terminal device when the SoftAP was opened last time; in response to determining that the last optimal channel meets a channel use condition according to the channel identifier, an automatic channel selection (ACS) scanning command is sent to a control plane (CP); the ACS scanning command carries first indication information, the first indication information at least includes the channel identifier of the last optimal channel, and the first indication information is used to instruct the CP to send second indication information allowing the last optimal channel to be used to the terminal device in the case that the last optimal channel does not exist cellular co-channel interference; and in response to the second indication information, the SoftAP is started by using the last optimal channel. The method can reduce the ACS scanning process, provide channel selection efficiency, and reduce the SoftAP opening time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and in particular to a channel selection method, apparatus, computer device, and storage medium. Background Technology

[0002] SoftAP (Software Access Point) technology enables even user equipment (UE) with limited hardware to provide AP (Access Point) functionality, lowering the barrier to entry for user configuration and making it suitable for novice users to easily build small wireless networks. However, the presence of other APs in the environment can cause co-channel interference between WiFi (Wireless Fidelity) networks. Furthermore, when cellular and WiFi frequency bands are close together, adjacent-channel interference can also occur. ACS (Auto-Configuration Server) technology enables SoftAP to select the optimal channel for users in environments with various types of interference.

[0003] However, existing ACS technology requires performing five ACS scans for each channel before enabling SoftAP, with the channels to be scanned determined by the country code. This process is time-consuming, causing other UEs that need to connect to SoftAP to be unable to find the AP they want to connect to for an extended period, resulting in a poor user experience. Summary of the Invention

[0004] Therefore, it is necessary to provide a channel selection method, apparatus, computer equipment, and storage medium to address the aforementioned technical problems. This can reduce the ACS scanning process to a certain extent, improve channel selection efficiency, reduce Softap startup time, and optimize user experience.

[0005] In a first aspect, this application provides a channel selection method applied to a driver in a terminal device, comprising:

[0006] An activation operation targeting the Software Access Point (SoftAP) in the terminal device is detected, and the channel identifier of the previous optimal channel is obtained; wherein, the previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time;

[0007] In response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier, an Automatic Channel Selection (ACS) scan command is sent to the control plane (CP); wherein the ACS scan command carries first indication information, the first indication information including at least the channel identifier of the previous optimal channel, and the first indication information is used to instruct the CP to send second indication information allowing the use of the previous optimal channel to the driver if it is determined that there is no adjacent cellular interference on the previous optimal channel;

[0008] In response to the second indication information, SoftAP is initiated using the previous optimal channel.

[0009] In one embodiment, the previous optimal channel is obtained by the terminal device through the ACS scanning process when SoftAP was last enabled;

[0010] The step of determining whether the previous optimal channel meets the channel usage conditions based on the channel identifier includes:

[0011] Based on the channel identifier, determine the completion time of the ACS scan process corresponding to the previous optimal channel, as well as the current spatial characteristics of the previous optimal channel;

[0012] In response to the time difference between the completion time and the current time being less than or equal to a preset time threshold, and / or the current spatial characteristics satisfying preset spatial conditions, it is determined that the previous optimal channel satisfies the channel usage conditions.

[0013] In one embodiment, the current spatial characteristics include the current interference intensity and / or the current Wi-Fi operating frequency band; the method further includes:

[0014] In response to the current interference intensity being less than a preset interference threshold, and / or the current WiFi operating frequency band being consistent with the previous optimal channel's previous operating WiFi frequency band when the SoftAP was last enabled, it is determined that the current spatial characteristics satisfy the preset spatial conditions.

[0015] In one embodiment, the first indication information is further used to instruct the CP to perform an ACS scanning procedure and send the scanned target optimal channel to the driver if it is determined that there is cellular adjacent channel interference in the previous optimal channel; the method further includes:

[0016] Receive the target optimal channel sent by the CP, and start SoftAP using the target optimal channel.

[0017] Secondly, this application provides a channel selection method applied to a CP in a terminal device, comprising:

[0018] The receiver receives an Automatic Channel Selection (ACS) scan command sent by the driver in the receiving terminal device. The ACS scan command is sent by the driver after detecting an activation operation of the Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the driver determines that the previous optimal channel meets the channel usage conditions. The previous optimal channel is the optimal channel used by the terminal device during the last SoftAP activation. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel.

[0019] In response to determining, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, a second indication information is sent to the driver so that the driver starts SoftAP using the previous optimal channel.

[0020] In one embodiment, determining that there is no adjacent cellular interference in the previous optimal channel based on the first indication information includes:

[0021] Based on the channel identifier in the first indication information, determine the current WiFi operating frequency band of the previous optimal channel;

[0022] Obtain the cellular operating frequency band of the cellular network currently in which the terminal device is located;

[0023] In response to the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band being greater than a preset adjacent frequency threshold, it is determined that there is no adjacent cellular interference in the previous optimal channel.

[0024] Thirdly, this application also provides a channel selection device, configured in a driver of a terminal device, comprising:

[0025] The channel acquisition module is used to detect the activation operation of the Software Wireless Access Point (SoftAP) in the terminal device and acquire the channel identifier of the previous optimal channel; wherein, the previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time.

[0026] The command sending module is configured to send an Automatic Channel Selection (ACS) scan command to the control plane (CP) in response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier; wherein the ACS scan command carries first indication information, the first indication information including at least the channel identifier of the previous optimal channel, and the first indication information is used to instruct the CP to send second indication information allowing the use of the previous optimal channel to the driver if it is determined that there is no adjacent cellular interference on the previous optimal channel;

[0027] The first startup module is used to start SoftAP using the previous optimal channel in response to the second indication information.

[0028] Fourthly, this application also provides a channel selection device, a CP configured in a terminal device, comprising:

[0029] An information receiving module is used to receive an Automatic Channel Selection (ACS) scan command sent by a terminal device. The ACS scan command is sent by the terminal device after detecting an activation operation of a Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the terminal device determines that the previous optimal channel meets the channel usage conditions. The previous optimal channel is the optimal channel used by the terminal device during the previous SoftAP activation. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel.

[0030] The channel selection module is configured to send a second indication to the driver in response to determining, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, so that the driver starts SoftAP using the previous optimal channel.

[0031] Fifthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps involved in the first or second aspect described above.

[0032] Sixthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps involved in the first or second aspect described above.

[0033] In a seventh aspect, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps involved in the first or second aspect described above.

[0034] The aforementioned channel selection method, apparatus, computer equipment, and storage medium allow the terminal device's driver to perform directional operations only on the previous optimal channel. This involves reading the channel identifier of the previous optimal channel, verifying basic usage conditions, sending a directional ACS command, and directly starting the device after receiving the second indication information. This eliminates the need for a full channel scan, reducing the core execution steps at the driver layer, shortening SoftAP startup latency, and eliminating user-perceptible waiting. Furthermore, the previous optimal channel reused by the driver is itself a historically verified low-interference channel, and cellular adjacent-channel interference directional detection is performed via the CP before startup. The driver only starts after receiving the interference-free second indication information, thus reusing the stability of historical optimal channels while avoiding communication lag and disconnection issues caused by newly added cellular adjacent-channel interference on historical channels. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 This is an application environment diagram of the channel selection method in one embodiment;

[0037] Figure 2 This is a flowchart illustrating a channel selection method in one embodiment;

[0038] Figure 3 This is a flowchart illustrating the process of determining the previous optimal channel that satisfies the channel usage conditions in one embodiment.

[0039] Figure 4 This is a flowchart illustrating the channel selection method in another embodiment;

[0040] Figure 5 This is a schematic diagram of the process for determining that there is no adjacent cellular interference in the previous optimal channel in one embodiment;

[0041] Figure 6 This is a signaling diagram of a channel selection method in one embodiment;

[0042] Figure 7 This is a structural block diagram of a channel selection device in one embodiment;

[0043] Figure 8 This is a structural block diagram of the channel selection device in another embodiment;

[0044] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0046] The channel selection method provided in this application can be applied to, for example, Figure 1 The application environment shown is as follows. Terminal device 101 is a device capable of cellular communication and enabling SoftAP. Terminal device 101 integrates a WiFi driver. The CP (Control Plane) is the decision-making layer, used to determine which channel to use, whether to enable it, whether to scan, and whether to be affected by cellular interference. Terminal 101 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, etc.

[0047] In one exemplary embodiment, such as Figure 2 As shown, a channel selection method is provided, which is applied to... Figure 1 Taking the driver in terminal device 101 as an example, the following steps are included:

[0048] S201, An activation operation for the Software Access Point (SoftAP) in the terminal device is detected, and the channel identifier of the previous optimal channel is obtained.

[0049] The previous optimal channel refers to the optimal channel used by the terminal device during the last SoftAP activation. This is the "optimal channel" selected by the terminal device during the last successful activation and use of SoftAP, through channel scanning, interference detection, and rate testing. The channel identifier is used to uniquely identify this optimal channel; it is usually a channel number, but can also be combined with frequency band information to ensure accurate channel location.

[0050] It should be noted that if the terminal is enabling SoftAP for the first time, the channel was not recorded when SoftAP was abnormally shut down last time (such as power failure or crash), or the channel used last time no longer meets the regulatory / hardware requirements, then there will be no "previous best channel". This step will trigger a new channel scanning process.

[0051] SoftAP activation refers to various legitimate operations detected by the terminal device to activate the Software Access Point (SoftAP), including but not limited to: user-initiated operations, system / program automatic triggering, and remote control triggering. User-initiated operations include clicking the "Personal Hotspot" switch on the terminal desktop, activating SoftAP through the system settings interface, and activation via voice command. System / program automatic triggering includes SoftAP activating automatically after the terminal connects to a specific network scenario, third-party applications activating SoftAP through authorized access, and hotspot activation automatically triggered after the vehicle terminal is powered on. Remote control triggering includes SoftAP activation triggered by commands issued by the CP or by a remote management platform.

[0052] Optionally, the terminal listens for the SoftAP enable trigger signal in real time. When it detects the "Enable SoftAP" command issued by the user / system / remote, it reads the channel identifier of the last optimal channel recorded when SoftAP was last disabled from the local storage management module.

[0053] S202, in response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier, sends an Automatic Channel Selection (ACS) scan command to the control plane CP.

[0054] The channel usage condition refers to whether the previous optimal channel can support the activation of this SoftAP. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel. This first indication information instructs the CP to send a second indication message to the driver, allowing the use of the previous optimal channel, if it is determined that there is no adjacent cellular interference on the previous optimal channel. In other words, the first indication information is a control signaling field carried in the ACS scan command, instructing the control plane CP to prioritize cellular adjacent channel interference detection for this channel, rather than performing a full channel scan. The second indication information is a response message returned by the CP to the driver, indicating that there is no adjacent cellular interference on the previous optimal channel, and that SoftAP can be directly activated using this channel.

[0055] Among them, the ACS scan command is a control command sent by the driver to the CP to trigger automatic channel selection. In this scheme, it is a directional ACS command with priority channel.

[0056] In this embodiment, channel usage conditions may include whether the channel is in the 2.4G / 5G support list, whether it complies with regional regulations, and whether it does not conflict with current WiFi / Bluetooth / cellular services. Based on the channel identifier, the channel information of the previous optimal channel is obtained. If, based on the channel information, the previous optimal channel meets all the above conditions, an ACS scan command is constructed, carrying first indication information, including at least the channel identifier of the previous optimal channel. The driver sends this ACS scan command to the CP.

[0057] After receiving the command, the CP performs directional interference detection based on the first indication information. Optionally, the CP parses the ACS scan command, obtains the first indication information, and extracts the identifier of the previous optimal channel from the first indication information; further, the CP performs directional cellular adjacent channel interference detection on the channel, and if it is determined that there is no cellular adjacent channel interference on the previous optimal channel, it generates and sends second indication information to the terminal.

[0058] S203, in response to the second indication information, initiate SoftAP using the previous optimal channel.

[0059] Optionally, the driver receives the second indication information from the CP, parses the information content, confirms that the previous optimal channel has passed the cellular adjacent channel interference detection, and that the CP has allowed the terminal to use this channel to enable SoftAP. The driver sets the previous optimal channel as the working channel for this SoftAP and completes the configuration of relevant SoftAP parameters. It then configures the radio frequency to the specified channel and starts the SoftAP process.

[0060] Furthermore, after the driver completes startup, it reports to the CP that SoftAP has started successfully. The CP updates its local status and saves the current channel as the latest effective and optimal channel for reuse the next time it is started.

[0061] In the aforementioned channel selection method, the driver in the terminal device only performs directional operations for the previous optimal channel. That is, it only reads the channel identifier of the previous optimal channel → verifies the basic usage conditions → sends a directional ACS command → and starts directly after receiving the second indication information. There is no need for full channel scanning, the core execution steps of the driver layer are reduced, the SoftAP startup latency can be shortened, and the user does not feel the waiting. In addition, the previous optimal channel reused by the driver is itself a historically verified low-interference channel, and cellular adjacent channel interference directional detection is completed by CP before startup. The driver only starts after receiving the interference-free second indication information. This not only reuses the stability of the historical optimal channel, but also avoids the communication lag and disconnection problems caused by the addition of cellular adjacent channel interference to the historical channel.

[0062] Optionally, the previous optimal channel is the one obtained by the terminal device during the last SoftAP activation process via the ACS scanning procedure; in an exemplary embodiment, such as... Figure 3 As shown, a method for determining the channel usage conditions of the previous optimal channel is provided, which specifically includes the following steps:

[0063] S301, based on the channel identifier, determine the completion time of the ACS scan process corresponding to the previous optimal channel, as well as the current spatial characteristics of the previous optimal channel.

[0064] The completion time of the ACS scan process refers to the timestamp of the last time the terminal device completed an ACS scan for the previous optimal channel. This timestamp is updated and stored locally on the terminal device after each ACS scan is completed. Current spatial features refer to a set of feature information used to characterize the current physical location, wireless environment, and mobility status of the terminal device.

[0065] Optionally, the current status data of the terminal device can be obtained, namely the completion time of the ACS scan process corresponding to the previous optimal channel and the current spatial characteristics of the previous optimal channel.

[0066] S302, in response to the time difference between the completion time and the current time being less than or equal to a preset time threshold, and / or the current spatial characteristics satisfying preset spatial conditions, determine that the previous optimal channel satisfies the channel usage conditions.

[0067] Here, "current time" refers to the system timestamp when the terminal device's driver detects the SoftAP activation operation and prepares to determine channel usage conditions. "Preset spatial conditions" are predefined rules for determining whether the spatial environment has not changed significantly.

[0068] Optionally, in the time dimension, the time difference between the current time and the completion time can be calculated; if the time difference is less than or equal to a preset time threshold, the time dimension is determined to meet the conditions; if the time difference is greater than the preset time threshold, the time dimension is determined not to meet the conditions. Furthermore, in the spatial dimension, the current spatial characteristics can be compared with historical spatial characteristics to verify whether preset spatial conditions are met, such as whether the location deviation is less than a threshold, whether the base station cell identifier has changed, and whether the number of surrounding interference sources has changed.

[0069] In one optional embodiment, a method is provided to determine if current spatial characteristics meet preset spatial conditions. This method determines that the current spatial characteristics meet the preset spatial conditions in response to the current interference intensity being less than a preset interference threshold, and / or the current WiFi operating frequency band being consistent with the previous optimal channel's operating WiFi frequency band when the SoftAP was last activated. The current interference intensity refers to the signal strength, such as noise floor, interference power, and channel occupancy rate, currently detected in real-time by the terminal device on the previous optimal channel, which can be directly measured by the driver chip. The preset interference threshold is a pre-set interference limit. The current WiFi operating frequency band is the frequency band that the terminal now intends to use; the previous WiFi operating frequency band is the frequency band used when the SoftAP was last activated. Optionally, if the current interference intensity is less than the preset interference threshold, it indicates that the previous optimal channel is still clean; if the current WiFi operating frequency band is consistent with the previous operating WiFi frequency band, it indicates that the environment, location, and usage scenario have likely not changed. The current spatial characteristics are determined to meet the preset spatial conditions if and only if any one or all of the above conditions are met, and the previous optimal channel continues to be reused. In this embodiment, the spatial environment is determined by the dual conditions of current interference intensity and consistency of WiFi operating frequency band. This allows for a more accurate identification of whether the current wireless environment is still suitable for using the previous optimal channel, avoiding the situation where the historical optimal channel is no longer applicable due to environmental changes or frequency band switching, thereby improving the reliability of channel reuse.

[0070] In one optional embodiment, the previous optimal channel is determined to meet the usage conditions only if both the time dimension and the preset spatial conditions are met. In another optional embodiment, the previous optimal channel is determined to meet the conditions as long as either the time dimension or the preset spatial conditions are met. If the communication quality requirements are high, both the time and spatial dimension conditions need to be met simultaneously; if the communication quality requirements are low, only one of the conditions needs to be met.

[0071] In this embodiment, the wireless environment has time-sensitivity and spatial correlation. If the terminal device moves to a new location after several hours (exceeding the time threshold) or changes spatial characteristics, the previous optimal channel may have become invalid due to increased interference or environmental changes. By judging the time difference and spatial characteristics, the reuse of invalid historical channels can be avoided.

[0072] Optionally, in one embodiment, the first indication information is further used to instruct the CP to perform an ACS scan procedure when it is determined that the previous optimal channel is subject to cellular adjacent channel interference, and to send the scanned target optimal channel to the driver. The target optimal channel is the channel that the CP re-determines through ACS scanning when it detects that the previous optimal channel is unavailable, and is currently the most suitable for starting the SoftAP. If the CP detects that the previous optimal channel is subject to cellular adjacent channel interference, the CP will not allow the use of the previous optimal channel and will automatically perform a complete ACS scan procedure, traversing available channels and re-selecting the target optimal channel. The CP sends the channel identifier of the scanned target optimal channel to the driver in the terminal device. Further, the driver receives the target optimal channel sent by the CP and uses the target optimal channel to start the SoftAP. In this embodiment, when the previous optimal channel is subject to cellular adjacent channel interference, the first indication information triggers the CP to re-execute the ACS scan, automatically switching to the new target optimal channel, ensuring that the SoftAP can still start normally and avoiding startup failure or communication abnormalities due to channel interference.

[0073] In one exemplary embodiment, such as Figure 4 As shown, a channel selection method is provided, which is applied to... Figure 1 Taking the CP in terminal device 101 as an example, the following steps are included:

[0074] S401, Receive Automatic Channel Selection (ACS) scan command sent by the driver in the terminal device.

[0075] The ACS scan command is sent by the driver after detecting an activation operation of the Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the driver determines that the previous optimal channel meets the channel usage conditions and then sends the command. The previous optimal channel is the optimal channel used by the terminal device when the SoftAP was last activated. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel.

[0076] Optionally, the diver monitors SoftAP enabling operations in real time. When a SoftAP enabling command triggered by a user / system / remote system is detected, the diver reads the channel identifier of the previous optimal channel from the local storage of the terminal device. Based on the channel identifier, the diver verifies whether the previous optimal channel meets the channel usage conditions. If the verification passes, the diver constructs an ACS scan command, encapsulates the first indication information in the command, and sends the ACS scan command to the CP. If the verification fails, the driver directly sends an ACS scan command without the first indication information to the CP to instruct the CP to directly start the ACS scan process.

[0077] S402, in response to determining from the first indication information that there is no adjacent cellular interference on the previous optimal channel, a second indication information is sent to the driver so that the driver starts SoftAP using the previous optimal channel.

[0078] After receiving the ACS scan command carrying the first indication information, the CP parses the ACS scan command, extracts the first indication information carried in the ACS scan command, and accurately obtains the channel identifier of the previous optimal channel from the first indication information, thus identifying the channel that needs to be focused on for detection. Further, based on the parsed previous optimal channel identifier, the CP initiates a directional interference detection process. The core detection content is to determine whether the previous optimal channel causes adjacent channel interference with the cellular network's frequency band and whether there is spurious interference from cellular signals, ensuring that channel usage will not conflict with cellular services. Only when it is determined that the previous optimal channel does not have adjacent channel interference is a second indication information generated, instructing the driver to use the previous optimal channel to start SoftAP.

[0079] In the above embodiments, the CP performs directional cellular adjacent-channel interference detection only on the previous optimal channel. Upon successful detection, it immediately sends an allow feedback, and the driver directly reuses the channel to start SoftAP, eliminating the need to wait for a full-channel scan and reducing SoftAP startup latency. The CP performs directional interference detection without traversing all channels, reducing computational overhead and RF resource usage. Compared to traditional full-channel scanning, the CP's computational load is reduced, and terminal startup power consumption is lowered.

[0080] Optionally, in one embodiment, such as Figure 5 As shown, a method for determining whether there is no adjacent cellular interference in the previous optimal channel is provided, which specifically includes the following steps:

[0081] S501, based on the channel identifier in the first instruction information, determine the current WiFi operating frequency band of the previous optimal channel.

[0082] Optionally, after the CP extracts the channel identifier of the previous optimal channel from the first indication information, it determines the current WiFi operating frequency band to which the previous optimal channel belongs based on the correspondence between the channel identifier and the WiFi frequency band.

[0083] S502, obtain the cellular operating frequency band of the cellular network where the terminal device is currently located.

[0084] Cellular operating frequency bands refer to the operating frequency bands corresponding to the cellular networks that the terminal devices are currently residing in, accessing, or using.

[0085] Optionally, the CP obtains the cellular operating frequency band corresponding to the cellular network currently accessed and hosted by the terminal device.

[0086] S503, in response to the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band being greater than the preset adjacent frequency threshold, determines that there is no adjacent cellular interference in the previous optimal channel.

[0087] The frequency interval refers to the frequency difference between the center frequency / edge frequency of the current WiFi operating frequency band and the center frequency / edge frequency of the cellular operating frequency band. The preset adjacent frequency threshold is a pre-configured frequency interval threshold value.

[0088] Optionally, the CP calculates the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band, and compares the calculated frequency interval with a preset adjacent frequency threshold. If the frequency interval is greater than the preset adjacent frequency threshold, it is determined that there is no cellular adjacent frequency interference in the previous optimal channel; if the frequency interval is less than or equal to the preset adjacent frequency threshold, it is determined that there is cellular adjacent frequency interference in the previous optimal channel.

[0089] In this embodiment, interference can be determined simply by the frequency interval between the WiFi operating frequency band and the cellular operating frequency band, without the need for complex spectrum scanning and power detection. The determination time is extremely short, which greatly improves the CP processing efficiency. By comparing the frequency interval with the preset adjacent frequency threshold, it is possible to accurately and stably distinguish whether there are problems such as adjacent frequency leakage, spurious interference, and receiver blocking, thus ensuring that SoftAP and cellular services can coexist without interference from the frequency band planning level.

[0090] Optionally, to clearly characterize the effectiveness of the channel selection method provided in this application embodiment, in one embodiment, an effectiveness test is performed using a script. Before the test, the execution code of the channel selection method is added to a temporary test CP file and imported into the test device. This is compared with a control device that previously only performed the complete ACS process. The probability of the two devices selecting the same channel under the same interference environment is compared until a set number of executions is reached. After repeated optimization, the probability of the same channel reaches the expected level, proving that the channel selection method provided in this application embodiment is effective.

[0091] Figure 6 This is a signaling diagram for a channel selection method in another embodiment. Based on the above embodiments, this embodiment provides an optional example of a channel selection method. (Combined with...) Figure 6 The specific implementation process is as follows:

[0092] S601, the driver detects the activation operation of SoftAP in the terminal device and obtains the channel identifier of the previous optimal channel.

[0093] Among them, the previous optimal channel is the optimal channel used by the terminal device when SoftAP was last enabled.

[0094] S602, the driver determines whether the previous optimal channel meets the channel usage conditions; if yes, then execute S603; if no, then execute S610.

[0095] Optionally, based on the channel identifier, determine the completion time of the ACS scanning process corresponding to the previous optimal channel, as well as the current spatial characteristics of the previous optimal channel; in response to the time difference between the completion time and the current time being less than or equal to a preset time threshold, and / or the current spatial characteristics satisfying preset spatial conditions, determine that the previous optimal channel meets the channel usage conditions.

[0096] S603, the driver sends an ACS scan command carrying the first instruction information to the control plane CP.

[0097] The first indication information includes at least the channel identifier of the previous optimal channel.

[0098] Optional,

[0099] S604, the CP receives an ACS scan command carrying first instruction information sent by the driver in the terminal device.

[0100] S605, CP determines the current WiFi operating frequency band of the previous optimal channel based on the channel identifier in the first instruction information.

[0101] S606, CP obtains the cellular operating frequency band of the cellular network where the terminal device is currently located.

[0102] S607, CP determines whether the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band is greater than the preset adjacent frequency threshold; if yes, then execute S608; if no, then execute S611.

[0103] S608, sends a second instruction message to the driver.

[0104] S609, in response to the second indication information, initiates SoftAP using the previous optimal channel.

[0105] S610, the driver sends an ACS scan command without carrying the first indication information to the control plane CP, and executes S611.

[0106] S611, CP executes the ACS scanning process and sends the target optimal channel obtained from the scan to the driver.

[0107] S612, the driver starts SoftAP using the target optimal channel.

[0108] The specific processes of S601-S612 described above can be found in the description of the above method embodiments. Their implementation principles and technical effects are similar, and will not be repeated here.

[0109] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0110] Based on the same inventive concept, this application also provides a channel selection device for implementing the channel selection method described above. This device can be applied to or integrated into a chip or chip module, for example. The solution provided by this device is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more channel selection device embodiments provided below can be found in the limitations of the channel selection method above, and will not be repeated here.

[0111] In one exemplary embodiment, such as Figure 7 As shown, a channel selection device 700 is provided, configured in the driver of a terminal device, including: a channel acquisition module 710, a command sending module 720, and a first startup module 730, wherein:

[0112] The channel acquisition module 710 is used to detect the activation operation of the software wireless access point (SoftAP) in the terminal device and acquire the channel identifier of the previous optimal channel; wherein, the previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time.

[0113] The command sending module 720 is used to send an Automatic Channel Selection (ACS) scan command to the control plane CP in response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier; wherein the ACS scan command carries first indication information, the first indication information including at least the channel identifier of the previous optimal channel, and the first indication information is used to instruct the CP to send second indication information allowing the use of the previous optimal channel to the driver if it is determined that there is no adjacent cellular interference on the previous optimal channel.

[0114] The first startup module 730 is used to start SoftAP using the previous optimal channel in response to the second indication information.

[0115] In one embodiment, the previous optimal channel is obtained by the terminal device through the ACS scanning process when SoftAP was last enabled; the command sending module 720 includes:

[0116] The information determination unit is used to determine the completion time of the ACS scanning process corresponding to the previous optimal channel and the current spatial characteristics of the previous optimal channel based on the channel identifier.

[0117] The condition judgment unit is used to determine the channel usage conditions of the previous optimal channel in response to the time difference between the completion time and the current time being less than or equal to a preset time threshold, and / or the current spatial characteristics satisfying the preset spatial conditions.

[0118] In one embodiment, the current spatial characteristics include the current interference intensity and / or the current Wi-Fi operating frequency band; the condition judgment unit is specifically used for:

[0119] In response to the current interference intensity being less than a preset interference threshold, and / or the current WiFi operating frequency band being consistent with the previous operating WiFi frequency band of the previous optimal channel when the SoftAP was last enabled, it is determined that the current spatial characteristics meet the preset spatial conditions.

[0120] In one embodiment, the first indication information is further used to instruct the CP to perform an ACS scanning procedure when it is determined that there is cellular adjacent channel interference in the previous optimal channel, and to send the target optimal channel obtained by the scan to the driver; the channel selection device 700 further includes a second startup module, used for:

[0121] Receive the target optimal channel sent by the CP and start SoftAP using the target optimal channel.

[0122] In one exemplary embodiment, such as Figure 8 As shown, a channel selection device 800 is provided, configured in the CP of a terminal device, including: an information receiving module 810 and a channel selection module 820, wherein:

[0123] The information receiving module 810 is used to receive an Automatic Channel Selection (ACS) scan command sent by the terminal device. The ACS scan command is sent by the terminal device after detecting an activation operation of the Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the terminal device determines that the previous optimal channel meets the channel usage conditions. The previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel.

[0124] The channel selection module 820 is used to send a second indication to the driver in response to determining, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, so that the driver starts SoftAP using the previous optimal channel.

[0125] In one embodiment, the channel selection module 820 is used for:

[0126] Based on the channel identifier in the first instruction information, determine the current WiFi operating frequency band of the previous optimal channel; obtain the cellular operating frequency band of the cellular network where the terminal device is currently located; in response to the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band being greater than a preset adjacent frequency threshold, determine that there is no adjacent cellular interference in the previous optimal channel.

[0127] Regarding the modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, hardware modules / units, or a combination of both. For example, for various devices and products applied to or integrated into a chip, all of their modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits; for various devices and products applied to or integrated into a chip module, all of their modules / units can be implemented using hardware methods such as circuits, and different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The components can be implemented using software programs that run on the processor integrated within the chip module. The remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, each of its components / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or in different components within the terminal. Alternatively, at least some modules / units can be implemented using software programs that run on the processor integrated within the terminal, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits.

[0128] In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as follows: Figure 9As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a channel selection method.

[0129] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0130] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0131] An activation operation targeting the Software Access Point (SoftAP) in the terminal device is detected, and the channel identifier of the previous optimal channel is obtained; wherein, the previous optimal channel is the optimal channel used by the terminal device when the SoftAP was last activated.

[0132] In response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier, an Automatic Channel Selection (ACS) scan command is sent to the control plane (CP). The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel. The first indication information is used to instruct the CP to send second indication information allowing the use of the previous optimal channel to the driver if it is determined that there is no adjacent cellular interference on the previous optimal channel.

[0133] In response to the second indication information, SoftAP is initiated using the previous optimal channel.

[0134] In one embodiment, the previous optimal channel is obtained by the terminal device through the ACS scanning process when SoftAP was last enabled; when the processor executes the computer program to determine that the previous optimal channel meets the channel usage conditions based on the channel identifier, it also performs the following steps:

[0135] Based on the channel identifier, determine the completion time of the ACS scan process corresponding to the previous optimal channel, as well as the current spatial characteristics of the previous optimal channel; in response to the time difference between the completion time and the current time being less than or equal to a preset time threshold, and / or the current spatial characteristics satisfying the preset spatial conditions, determine that the previous optimal channel meets the channel usage conditions.

[0136] In one embodiment, the current spatial characteristics include the current interference intensity and / or the current Wi-Fi operating frequency band; the processor, when executing the computer program, also performs the following steps:

[0137] In response to the current interference intensity being less than a preset interference threshold, and / or the current WiFi operating frequency band being consistent with the previous operating WiFi frequency band of the previous optimal channel when the SoftAP was last enabled, it is determined that the current spatial characteristics meet the preset spatial conditions.

[0138] In one embodiment, the first indication information is further used to instruct the CP to perform an ACS scanning procedure and send the scanned target optimal channel to the driver if it is determined that there is cellular adjacent channel interference in the previous optimal channel; the processor also implements the following steps when executing the computer program:

[0139] Receive the target optimal channel sent by the CP and start SoftAP using the target optimal channel.

[0140] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0141] An activation operation targeting the Software Access Point (SoftAP) in the terminal device is detected, and the channel identifier of the previous optimal channel is obtained; wherein, the previous optimal channel is the optimal channel used by the terminal device when the SoftAP was last activated.

[0142] In response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier, an Automatic Channel Selection (ACS) scan command is sent to the control plane (CP). The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel. The first indication information is used to instruct the CP to send second indication information allowing the use of the previous optimal channel to the driver if it is determined that there is no adjacent cellular interference on the previous optimal channel.

[0143] In response to the second indication information, SoftAP is initiated using the previous optimal channel.

[0144] In one embodiment, the previous optimal channel is obtained by the terminal device through the ACS scanning process when SoftAP was last enabled; when the processor executes the computer program to determine that the previous optimal channel meets the channel usage conditions based on the channel identifier, it also performs the following steps:

[0145] Based on the channel identifier, determine the completion time of the ACS scan process corresponding to the previous optimal channel, as well as the current spatial characteristics of the previous optimal channel; in response to the time difference between the completion time and the current time being less than or equal to a preset time threshold, and / or the current spatial characteristics satisfying the preset spatial conditions, determine that the previous optimal channel meets the channel usage conditions.

[0146] In one embodiment, the current spatial characteristics include the current interference intensity and / or the current Wi-Fi operating frequency band; the processor, when executing the computer program, also performs the following steps:

[0147] In response to the current interference intensity being less than a preset interference threshold, and / or the current WiFi operating frequency band being consistent with the previous operating WiFi frequency band of the previous optimal channel when the SoftAP was last enabled, it is determined that the current spatial characteristics meet the preset spatial conditions.

[0148] In one embodiment, the first indication information is further used to instruct the CP to perform an ACS scanning procedure and send the scanned target optimal channel to the driver if it is determined that there is cellular adjacent channel interference in the previous optimal channel; the processor also implements the following steps when executing the computer program:

[0149] Receive the target optimal channel sent by the CP and start SoftAP using the target optimal channel.

[0150] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0151] An activation operation targeting the Software Access Point (SoftAP) in the terminal device is detected, and the channel identifier of the previous optimal channel is obtained; wherein, the previous optimal channel is the optimal channel used by the terminal device when the SoftAP was last activated.

[0152] In response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier, an Automatic Channel Selection (ACS) scan command is sent to the control plane (CP). The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel. The first indication information is used to instruct the CP to send second indication information allowing the use of the previous optimal channel to the driver if it is determined that there is no adjacent cellular interference on the previous optimal channel.

[0153] In response to the second indication information, SoftAP is initiated using the previous optimal channel.

[0154] In one embodiment, the previous optimal channel is obtained by the terminal device through the ACS scanning process when SoftAP was last enabled; when the processor executes the computer program to determine that the previous optimal channel meets the channel usage conditions based on the channel identifier, it also performs the following steps:

[0155] Based on the channel identifier, determine the completion time of the ACS scan process corresponding to the previous optimal channel, as well as the current spatial characteristics of the previous optimal channel; in response to the time difference between the completion time and the current time being less than or equal to a preset time threshold, and / or the current spatial characteristics satisfying the preset spatial conditions, determine that the previous optimal channel meets the channel usage conditions.

[0156] In one embodiment, the current spatial characteristics include the current interference intensity and / or the current Wi-Fi operating frequency band; the processor, when executing the computer program, also performs the following steps:

[0157] In response to the current interference intensity being less than a preset interference threshold, and / or the current WiFi operating frequency band being consistent with the previous operating WiFi frequency band of the previous optimal channel when the SoftAP was last enabled, it is determined that the current spatial characteristics meet the preset spatial conditions.

[0158] In one embodiment, the first indication information is further used to instruct the CP to perform an ACS scanning procedure and send the scanned target optimal channel to the driver if it is determined that there is cellular adjacent channel interference in the previous optimal channel; the processor also implements the following steps when executing the computer program:

[0159] Receive the target optimal channel sent by the CP and start SoftAP using the target optimal channel.

[0160] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0161] The driver in the receiving terminal device sends an Automatic Channel Selection (ACS) scan command. The ACS scan command is sent by the driver after detecting an activation operation of the Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the driver determines that the previous optimal channel meets the channel usage conditions and sends the command. The previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel.

[0162] In response to determining, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, a second indication information is sent to the driver so that the driver can start SoftAP using the previous optimal channel.

[0163] In one embodiment, when the processor executes a computer program to determine, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, it further performs the following steps:

[0164] Based on the channel identifier in the first instruction information, determine the current WiFi operating frequency band of the previous optimal channel; obtain the cellular operating frequency band of the cellular network where the terminal device is currently located; in response to the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band being greater than a preset adjacent frequency threshold, determine that there is no adjacent cellular interference in the previous optimal channel.

[0165] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0166] The driver in the receiving terminal device sends an Automatic Channel Selection (ACS) scan command. The ACS scan command is sent by the driver after detecting an activation operation of the Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the driver determines that the previous optimal channel meets the channel usage conditions and sends the command. The previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel.

[0167] In response to determining, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, a second indication information is sent to the driver so that the driver can start SoftAP using the previous optimal channel.

[0168] In one embodiment, when the processor executes a computer program to determine, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, it further performs the following steps:

[0169] Based on the channel identifier in the first indication information, determine the current WiFi operating frequency band of the previous optimal channel; obtain the cellular operating frequency band of the cellular network currently in which the terminal device is located; in response to the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band being greater than a preset adjacent frequency threshold, determine that there is no adjacent frequency interference on the previous optimal channel. In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0170] The driver in the receiving terminal device sends an Automatic Channel Selection (ACS) scan command. The ACS scan command is sent by the driver after detecting an activation operation of the Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the driver determines that the previous optimal channel meets the channel usage conditions and sends the command. The previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel.

[0171] In response to determining, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, a second indication information is sent to the driver so that the driver can start SoftAP using the previous optimal channel.

[0172] In one embodiment, when the processor executes a computer program to determine, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, it further performs the following steps:

[0173] Based on the channel identifier in the first instruction information, determine the current WiFi operating frequency band of the previous optimal channel; obtain the cellular operating frequency band of the cellular network where the terminal device is currently located; in response to the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band being greater than a preset adjacent frequency threshold, determine that there is no adjacent cellular interference in the previous optimal channel.

[0174] It should be noted that the data involved in this application (including but not limited to data used for analysis, data stored, data displayed, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0175] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0176] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0177] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A channel selection method, characterized in that, The method, applied to a driver in a terminal device, includes: An activation operation targeting the Software Access Point (SoftAP) in the terminal device is detected, and the channel identifier of the previous optimal channel is obtained; wherein, the previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time; In response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier, an Automatic Channel Selection (ACS) scan command is sent to the control plane (CP); wherein the ACS scan command carries first indication information, the first indication information including at least the channel identifier of the previous optimal channel, and the first indication information is used to instruct the CP to send second indication information allowing the use of the previous optimal channel to the driver if it is determined that there is no adjacent cellular interference on the previous optimal channel; In response to the second indication information, SoftAP is initiated using the previous optimal channel.

2. The method according to claim 1, characterized in that, The previous optimal channel was obtained by the terminal device through the ACS scanning process when SoftAP was first enabled. The step of determining whether the previous optimal channel meets the channel usage conditions based on the channel identifier includes: Based on the channel identifier, determine the completion time of the ACS scan process corresponding to the previous optimal channel, as well as the current spatial characteristics of the previous optimal channel; In response to the time difference between the completion time and the current time being less than or equal to a preset time threshold, and / or the current spatial characteristics satisfying preset spatial conditions, it is determined that the previous optimal channel satisfies the channel usage conditions.

3. The method according to claim 2, characterized in that, The current spatial characteristics include the current interference intensity and / or the current Wi-Fi operating frequency band; the method further includes: In response to the current interference intensity being less than a preset interference threshold, and / or the current WiFi operating frequency band being consistent with the previous optimal channel's previous operating WiFi frequency band when the SoftAP was last enabled, it is determined that the current spatial characteristics satisfy the preset spatial conditions.

4. The method according to claim 1, characterized in that, The first indication information is further used to instruct the CP to perform an ACS scanning procedure when it is determined that there is cellular adjacent channel interference in the previous optimal channel, and to send the target optimal channel obtained by the scan to the driver; the method further includes: Receive the target optimal channel sent by the CP, and start SoftAP using the target optimal channel.

5. A channel selection method, characterized in that, The method, which is applied to a CP in a terminal device, includes: The receiver receives an Automatic Channel Selection (ACS) scan command sent by the driver in the receiving terminal device. The ACS scan command is sent by the driver after detecting an activation operation of the Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the driver determines that the previous optimal channel meets the channel usage conditions. The previous optimal channel is the optimal channel used by the terminal device during the last SoftAP activation. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel. In response to determining, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, a second indication information is sent to the driver so that the driver starts SoftAP using the previous optimal channel.

6. The method according to claim 5, characterized in that, The step of determining that there is no adjacent cellular interference in the previous optimal channel based on the first indication information includes: Based on the channel identifier in the first indication information, determine the current WiFi operating frequency band of the previous optimal channel; Obtain the cellular operating frequency band of the cellular network currently in which the terminal device is located; In response to the frequency interval between the current WiFi operating frequency band and the cellular operating frequency band being greater than a preset adjacent frequency threshold, it is determined that there is no adjacent cellular interference in the previous optimal channel.

7. A channel selection device, characterized in that, The driver configured in a terminal device includes: The channel acquisition module is used to detect the activation operation of the Software Wireless Access Point (SoftAP) in the terminal device and acquire the channel identifier of the previous optimal channel; wherein, the previous optimal channel is the optimal channel used by the terminal device when the SoftAP was activated last time. The command sending module is configured to send an Automatic Channel Selection (ACS) scan command to the control plane (CP) in response to determining that the previous optimal channel meets the channel usage conditions based on the channel identifier; wherein the ACS scan command carries first indication information, the first indication information including at least the channel identifier of the previous optimal channel, and the first indication information is used to instruct the CP to send second indication information allowing the use of the previous optimal channel to the driver if it is determined that there is no adjacent cellular interference on the previous optimal channel; The first startup module is used to start SoftAP using the previous optimal channel in response to the second indication information.

8. A channel selection device, characterized in that, The CP configured in the terminal device, the device comprising: An information receiving module is used to receive an Automatic Channel Selection (ACS) scan command sent by a terminal device. The ACS scan command is sent by the terminal device after detecting an activation operation of a Software Access Point (SoftAP) in the terminal device and obtaining the channel identifier of the previous optimal channel. Based on the channel identifier, the terminal device determines that the previous optimal channel meets the channel usage conditions. The previous optimal channel is the optimal channel used by the terminal device during the previous SoftAP activation. The ACS scan command carries first indication information, which includes at least the channel identifier of the previous optimal channel. The channel selection module is configured to send a second indication to the driver in response to determining, based on the first indication information, that there is no adjacent cellular interference on the previous optimal channel, so that the driver starts SoftAP using the previous optimal channel.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.