Communication method, routing device, terminal and medium

By adding fields of access point number information to the message of the routing device, the problem of the terminal accessing other frequency bands when a router is fully connected is solved, and the effect of improving the terminal access success rate and user network experience is achieved.

CN119584244AActive Publication Date: 2025-03-07HUAWEI DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311155953.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-07
Publication Date
2025-03-07
Estimated Expiration
2043-09-07

AI Technical Summary

Technical Problem

When a router has full connection, how to encourage the terminal to access other frequency bands to ensure a good user experience in the network.

Method used

By adding fields to the message of the routing device, indicating the number of access terminals for access points in each frequency band, the terminal is guided to select a wireless access point that is not full of the access band. The specific method includes sending Beacon messages with access point number information, reducing the message signal quality in the full frequency band, or increasing the message transmission period in the full frequency band, so as to reduce the possibility that the terminal discovers the full frequency band AP.

Benefits of technology

Effectively guide the terminal to access the less-full frequency band, improve the terminal access success rate, and improve the user's network usage experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119584244A_ABST
    Figure CN119584244A_ABST
Patent Text Reader

Abstract

The invention provides a communication method, routing equipment, a terminal and a medium. The method is applied to a routing device, the routing device comprises at least two frequency bands, the method comprises the following steps: at least two messages are sent, the messages are used for a terminal to discover the routing device, the at least two messages comprise a first message and a second message, the at least two frequency bands comprise a first frequency band and a second frequency band, and the first frequency band and the second frequency band are used for discovering the routing device. The first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two messages comprise a first field, and the first field of the first message is used for indicating that the number of access terminals of an access point of the first frequency band does not reach a first threshold value; the first field of the second message is used for indicating that the number of access terminals of the access point of the second frequency band reaches a second threshold value. According to the communication method, the routing device, the terminal and the medium, the terminal can be guided to select the AP of the non-fully-connected frequency band, and good network use experience of a user is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and more specifically, to a communication method, a routing device, a terminal and a medium. Background Art

[0002] Terminals can transmit information by connecting to routers. Current routers can support multi-band connections, but the number of terminals that can be connected to each band is limited. When the band is fully connected, the process of the terminal accessing the band will fail, thus affecting the user's network experience.

[0003] Therefore, when a certain frequency band of the router is fully connected, how to encourage the terminal to access other frequency bands to ensure a good network experience for users is an urgent problem to be solved. Summary of the invention

[0004] The present application provides a communication method, a routing device, a terminal and a medium. The method can guide the terminal to select a wireless access point (AP) with an unfilled frequency band, thereby ensuring a good user experience for the user.

[0005] A first aspect provides a communication method, which is applied to a routing device, wherein the routing device includes at least two frequency bands, and the method includes: sending at least two messages, wherein the message is used for a terminal to discover the routing device, wherein the at least two messages include a first message and a second message, the at least two frequency bands include a first frequency band and a second frequency band, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, and the at least two messages include a first field, the first field of the first message is used to indicate that the number of access point access terminals in the first frequency band has not reached a first threshold, and the first field of the second message is used to indicate that the number of access point access terminals in the second frequency band has reached a second threshold.

[0006] It should be noted that the number of access point access terminals in the first frequency band and the number of access point access terminals in the second frequency band are limited. The maximum number of access point access terminals in the first frequency band is the first threshold, and the maximum number of access point access terminals in the second frequency band is the second threshold. The first threshold and the second threshold may be the same or different. For example, the first threshold and the second threshold are 32. It can be understood that when the number of access point terminals in the first frequency band does not reach the first threshold, it indicates that the first frequency band is not fully connected; when the number of access point access terminals in the second frequency band has reached the second threshold, it indicates that the second frequency band is fully connected.

[0007] Exemplarily, the routing device may support a multi-band router that is preferred for the 5 GHz frequency band. The message may be a Beacon message sent by the routing device in a broadcast manner, the number of access point access terminals in the second frequency band has reached the maximum number, the second frequency band is a fully connected 5 GHz frequency band, the number of access point access terminals in the first frequency band has not reached the maximum number, the first frequency band is an incompletely connected 2.4 GHz frequency band. The first field is an information element (IE) field, and the routing device may add an IE field in the Beacon message to indicate whether the AP that sends the Beacon message can be connected. When the first field of the first message indicates that the number of access point access terminals in the first frequency band has not reached the maximum number, it indicates that the AP in the first frequency band can be connected; when the first field of the second message indicates that the number of access point access terminals in the second frequency band has reached the maximum number, it indicates that the AP in the second frequency band cannot be connected.

[0008] It should be noted that APs of multiple frequency bands of the routing device can send messages. The first message is sent by the AP of the first frequency band of the routing device, and the second message is sent by the AP of the second frequency band of the routing device. Exemplarily, the AP of the 2.4 GHz frequency band sends the first message, and the AP of the 5 GHz frequency band sends the second message.

[0009] Based on the above solution, the routing device (router) can add a field in the message to indicate whether the AP sending the message can be connected. When the number of access terminals of a certain frequency band of the multi-frequency router has reached the maximum number, by adding a field in the message, the terminal is guided to find the frequency band where the number of other access terminals has not reached the maximum number, thereby increasing the possibility of the terminal successfully accessing APs of other frequency bands in the future and ensuring a good network experience for users.

[0010] In combination with the first aspect, in certain implementations of the first aspect, before sending the at least two messages, the method further includes: reducing the signal quality of the second message.

[0011] Based on the above solution, when the number of terminals accessing a certain AP has reached the maximum number, the signal quality of the message sent by the AP is reduced, thereby reducing the possibility of the terminal discovering the AP. At this time, the possibility of the terminal discovering other APs will be relatively increased, thereby guiding the terminal to access other APs and ensuring the user's network experience.

[0012] In combination with the first aspect, in certain implementations of the first aspect, before sending the at least two messages, the method also includes: increasing the sending period of the second message; wherein, sending the at least two messages includes: sending the first message with a first period, and sending the second message with a second period, and the second period is greater than the first period.

[0013] Based on the above scheme, increasing the period of the second message sent by the AP in the full frequency band can reduce the possibility of the terminal discovering the AP. At this time, the possibility of the terminal discovering other APs will be relatively increased, thereby guiding the terminal to access other APs and ensuring the user's network experience.

[0014] In combination with the first aspect, in some implementations of the first aspect, the network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

[0015] In combination with the first aspect, in some implementations of the first aspect, the message is a Beacon message.

[0016] The second aspect provides a communication method, which is applied to a routing device, and the routing device includes at least two frequency bands. The method includes: receiving a request message from a terminal; sending a first message, and not sending a second message; wherein the at least two frequency bands include a first frequency band and a second frequency band, the first message is a response message to the request message, the second message is a response message to the request message, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two frequency bands include the first frequency band and the second frequency band, the number of access points and access terminals in the first frequency band has not reached a first threshold, and the number of access points and access terminals in the second frequency band has reached a second threshold.

[0017] It should be noted that the first threshold is the maximum number of access terminals of the access point in the first frequency band, and the second threshold is the maximum number of access terminals of the access point in the second frequency band.

[0018] Exemplarily, the request message is a Probe Request message, and the first message and the second message are Probe Response messages. The first message is a message sent by the routing device through an AP of a first frequency band, and the second message is a message sent by the routing device through an AP of a second frequency band.

[0019] For example, when the 5 GHz band is fully connected, the AP in the 5 GHz band does not send Probe Response messages; when the 2.4 GHz band is not fully connected, the AP in the 2.4 GHz band can send Probe Response messages.

[0020] Based on the above solution, after receiving the request message from the terminal, the routing device does not send the Probe Response message through the AP whose number of access terminals has reached the maximum number, but can send the Probe Response message through the AP whose number of access terminals has not reached the maximum number, so that after the terminal receives the Probe Response message sent by the AP whose number of access terminals has not reached the maximum number, it can initiate a connection to the AP whose number of access terminals has not reached the maximum number, thereby increasing the possibility of the terminal successfully accessing the routing device and ensuring a good network experience for users.

[0021] In combination with the second aspect, in certain implementations of the second aspect, before sending the first message, the method also includes: adding a first field in the first message, the first field in the first message being used to indicate that the number of access terminals in the first frequency band has not reached a first threshold.

[0022] Exemplarily, the first field is an IE field. The routing device may add an IE field to the Probe Response message to indicate whether the AP sending the Probe Response message can be connected.

[0023] Based on the above solution, the routing device can add a field in the Probe Response message to indicate whether the AP sending the message is connectable, and guide the terminal to connect to the AP whose number of access terminals does not reach the maximum number, thereby ensuring a good network experience for users.

[0024] In combination with the second aspect, in some implementations of the second aspect, the request message is a broadcast message, and the first message is a unicast message.

[0025] In combination with the second aspect, in some implementations of the second aspect, the network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

[0026] In combination with the second aspect, in some implementations of the second aspect, the request message is a Probe Request message, and the first message is a Probe Response message.

[0027] A third aspect provides a communication method, which is applied to a terminal, and the method includes: receiving at least two messages, the two messages are used by the terminal to discover a routing device, the routing device includes at least two frequency bands, wherein the at least two messages include a first message and a second message, the at least two frequency bands include a first frequency band and a second frequency band, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two messages include a first field, the first field of the first message is used to indicate that the number of access point access terminals of the first frequency band has not reached a first threshold, and the first field of the second message is used to indicate that the number of access point access terminals of the second frequency band has reached a second threshold; initiating a connection to the access point of the first frequency band according to the at least two messages.

[0028] It should be noted that the first threshold is the maximum number of access terminals of the access point in the first frequency band; the second threshold is the maximum number of access terminals of the access point in the second frequency band.

[0029] Exemplarily, the terminal receives a Beacon message from a routing device. The Beacon message includes an IE field. The terminal receives a first message sent from an AP of a first frequency band of the routing device, and receives a second message sent from an AP of a second frequency band of the routing device.

[0030] Based on the above solution, the terminal receives messages sent by APs of multiple frequency bands from the routing device, determines the frequency band where a connection can be initiated based on the messages, and initiates a connection to the frequency band, ensuring that the terminal can successfully access the routing device and ensuring a good network experience for the user.

[0031] In combination with the third aspect, in certain implementations of the third aspect, a signal quality of the second message is lower than a signal quality of the first message.

[0032] Based on the above scheme, the signal quality of the messages received by the terminal from different frequency bands of the routing device may also be different. The terminal can not only determine whether the AP sending the message is connectable based on the fields in the message, but also determine whether to initiate a connection to the AP based on the signal quality of the message.

[0033] In combination with the third aspect, in certain implementations of the third aspect, a sending period of the second message is greater than a sending period of the first message.

[0034] Based on the above scheme, the terminal can also determine whether to initiate a connection to the AP according to the message sending period. That is, the terminal can select an AP whose number of access terminals does not reach the maximum number according to the fields in the message, the signal quality of the message and / or the message sending period, and initiate a connection to the AP, thereby increasing the possibility of successfully accessing the routing device and ensuring a good network experience for users.

[0035] In combination with the third aspect, in certain implementations of the third aspect, when the terminal supports parsing the first field, before initiating a connection to the first frequency band based on the at least two messages, the method also includes: parsing the at least two messages, determining that the number of access point access terminals in the first frequency band has not reached a first threshold, and the number of access point access terminals in the second frequency band has reached a second threshold.

[0036] Based on the above solution, when the terminal supports IE parsing, it can parse the message received from the routing device, and determine the accessible AP according to the parsing result, so as to initiate a connection to the AP, thereby improving the user's network experience.

[0037] In combination with the third aspect, in certain implementations of the third aspect, the network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

[0038] In combination with the third aspect, in some implementations of the third aspect, the message is a Beacon message.

[0039] A fourth aspect provides a communication method, which is applied to a terminal, and the method includes: sending a request message to a routing device, the routing device includes at least two frequency bands, the at least two frequency bands include a first frequency band and a second frequency band; receiving a first message from the routing device; wherein the first message is a response message to the request message, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two frequency bands include the first frequency band and the second frequency band, the number of access point access terminals of the first frequency band has not reached a first threshold, and the number of access point access terminals of the second frequency band has reached a second threshold; initiating a connection to the access point of the first frequency band according to the first message.

[0040] It should be noted that the first threshold is the maximum number of access points and access terminals in the first frequency band; the second threshold is the maximum number of access points and access terminals in the second frequency band.

[0041] Exemplarily, the request message is a Probe Request message, and the first message and the second message are Probe Response messages. The terminal receives a first message sent by an AP of a first frequency band from a routing device.

[0042] Based on the above solution, after the terminal sends a request message to the routing device, it will only receive a response message from the AP whose number of terminals connected to the routing device has not reached the maximum number. Based on the response message, the terminal can initiate a connection to the AP of the frequency band that sent the response message, thereby increasing the possibility of the terminal successfully accessing the routing device and ensuring a good network experience for users.

[0043] In combination with the fourth aspect, in certain implementations of the fourth aspect, the first message includes a first field, and the first field in the first message is used to indicate that the number of access point access terminals in the first frequency band has not reached a first threshold.

[0044] Based on the above solution, the terminal can further determine to initiate a connection to the AP that sends the first message according to the first field in the received first message, thereby ensuring a good network experience for the user.

[0045] In combination with the fourth aspect, in certain implementations of the fourth aspect, the request message is a broadcast message, and the first message is a unicast message.

[0046] In combination with the fourth aspect, in certain implementations of the fourth aspect, the network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

[0047] In combination with the fourth aspect, in some implementations of the fourth aspect, the request message is a Probe Request message, and the first message is a Probe Response message.

[0048] In a fifth aspect, a communication device is provided, which includes at least two frequency bands, and the device includes: a transceiver unit, used to send at least two messages, the messages are used for a terminal to discover the device, wherein the at least two messages include a first message and a second message, the at least two frequency bands include a first frequency band and a second frequency band, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two messages include a first field, the first field of the first message is used to indicate that the number of access terminals of the access point of the first frequency band has reached a first threshold, and the first field of the second message is used to indicate that the number of access terminals of the access point of the second frequency band has reached a second threshold.

[0049] In combination with the fifth aspect, in certain implementations of the fifth aspect, the device further includes: a processing unit, configured to reduce the signal quality of the second message.

[0050] In combination with the fifth aspect, in certain implementations of the fifth aspect, the processing unit is also used to increase the sending period of the second message; the transceiver unit is specifically used to send the first message with a first period and to send the second message with a second period, and the second period is greater than the first period.

[0051] In combination with the fifth aspect, in certain implementations of the fifth aspect, the network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

[0052] In combination with the fifth aspect, in certain implementations of the fifth aspect, the message is a Beacon message.

[0053] In combination with the fifth aspect, in some implementations of the fifth aspect, the apparatus is a routing device.

[0054] In a sixth aspect, a communication device is provided, which includes at least two frequency bands, and the device includes: a transceiver unit, used to receive a request message from a terminal; and also used to send a first message, and not send a second message; wherein the at least two frequency bands include a first frequency band and a second frequency band, the first message is a response message to the request message, the second message is a response message to the request message, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two frequency bands include the first frequency band and the second frequency band, the number of access points and access terminals in the first frequency band has not reached a first threshold, and the number of access points and access terminals in the second frequency band has reached a second threshold.

[0055] In combination with the sixth aspect, in certain implementations of the sixth aspect, the device also includes: a processing unit, used to add a first field in the first message, and the first field in the first message is used to indicate that the number of access terminals in the first frequency band has not reached a first threshold.

[0056] In combination with the sixth aspect, in certain implementations of the sixth aspect, the request message is a broadcast message, and the first message is a unicast message.

[0057] In combination with the sixth aspect, in certain implementations of the sixth aspect, the network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

[0058] In combination with the sixth aspect, in some implementations of the sixth aspect, the request message is a Probe Request message, and the first message is a Probe Response message.

[0059] In combination with the sixth aspect, in some implementations of the sixth aspect, the apparatus is a routing device.

[0060] In a seventh aspect, a communication device is provided, comprising: a transceiver unit, configured to receive at least two messages, the two messages being used by the device to discover a routing device, the routing device comprising at least two frequency bands, wherein the at least two messages comprise a first message and a second message, the at least two frequency bands comprise a first frequency band and a second frequency band, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two messages comprise a first field, the first field of the first message is used to indicate that the number of terminals accessed by an access point of the first frequency band has not reached a first threshold, and the first field of the second message is used to indicate that the number of terminals accessed by an access point of the second frequency band has reached a second threshold; and a processing unit, configured to initiate a connection to the access point of the first frequency band according to the at least two messages.

[0061] In combination with the seventh aspect, in certain implementations of the seventh aspect, the signal quality of the second message is lower than the signal quality of the first message.

[0062] In combination with the seventh aspect, in certain implementations of the seventh aspect, a sending period of the second message is greater than a sending period of the first message.

[0063] In combination with the seventh aspect, in certain implementations of the seventh aspect, when the device supports parsing the first field, the processing unit is also used to parse the at least two messages to determine that the number of access point access terminals in the first frequency band has not reached a first threshold, and the number of access point access terminals in the second frequency band has reached a second threshold.

[0064] In combination with the seventh aspect, in certain implementations of the seventh aspect, the network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

[0065] In combination with the seventh aspect, in certain implementations of the seventh aspect, the message is a Beacon message.

[0066] In combination with the seventh aspect, in some implementations of the seventh aspect, the device is a terminal.

[0067] In an eighth aspect, a communication device is provided, comprising: a transceiver unit, used to send a request message to a routing device, the routing device comprising at least two frequency bands, the at least two frequency bands comprising a first frequency band and a second frequency band; and also used to receive a first message from the routing device; wherein the first message is a response message to the request message, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two frequency bands comprise the first frequency band and the second frequency band, the number of access point access terminals of the first frequency band has not reached a first threshold, and the number of access point access terminals of the second frequency band has reached a second threshold; and a processing unit, used to initiate a connection to the access point of the first frequency band according to the first message.

[0068] In combination with the eighth aspect, in certain implementations of the eighth aspect, the first message includes a first field, and the first field in the first message is used to indicate that the number of access point access terminals in the first frequency band has not reached a first threshold.

[0069] In combination with the eighth aspect, in certain implementations of the eighth aspect, the request message is a broadcast message, and the first message is a unicast message.

[0070] In combination with the eighth aspect, in certain implementations of the eighth aspect, the network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

[0071] In combination with the eighth aspect, in certain implementations of the eighth aspect, the request message is a Probe Request message, and the first message is a Probe Response message.

[0072] In combination with the eighth aspect, in certain implementations of the eighth aspect, the device is a terminal.

[0073] In a ninth aspect, a routing device is provided, comprising: a transceiver for receiving and sending messages; a memory for storing programs; and a processor for executing the programs stored in the memory, so that the routing device performs the method in the first aspect and any possible implementation thereof, or performs the method in the second aspect and any possible implementation thereof.

[0074] In the tenth aspect, a terminal is provided, comprising: a transceiver for receiving and sending messages; a memory for storing one or more programs; and a processor for executing one or more programs stored in the memory, so that the terminal executes the method as in the third aspect and any possible implementation thereof, or executes the method as in the fourth aspect and any possible implementation thereof.

[0075] In the eleventh aspect, a readable storage medium is provided, on which one or more programs are stored. When the one or more programs are executed by a device, the device implements the method as described in the first aspect and any possible implementation thereof, or implements the method as described in the second aspect and any possible implementation thereof, or implements the method as described in the third aspect and any possible implementation thereof, or implements the method as described in the fourth aspect and any possible implementation thereof.

[0076] In the twelfth aspect, a program product is provided, characterized in that when the program product runs on a device, the device executes the method as described in the first aspect and any possible implementation thereof, or executes the method as described in the second aspect and any possible implementation thereof, or executes the method as described in the third aspect and any possible implementation thereof, or executes the method as described in the fourth aspect and any possible implementation thereof.

[0077] In the thirteenth aspect, a chip system is provided, which includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface to execute the method as described in the first aspect and any possible implementation thereof, or execute the method as described in the second aspect and any possible implementation thereof, or execute the method as described in the third aspect and any possible implementation thereof, or execute the method as described in the fourth aspect and any possible implementation thereof.

[0078] In combination with the thirteenth aspect, in a possible implementation, the processor is coupled to the memory through an interface.

[0079] In combination with the thirteenth aspect, in a possible implementation, the chip system also includes a memory, in which programs or instructions are stored. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 It is a structural diagram of a device.

[0081] Figure 2 It is a software structure diagram of a device.

[0082] Figure 3 It is a scene graph provided in an embodiment of the present application.

[0083] Figure 4 It is a set of GUIs provided by the embodiments of the present application.

[0084] Figure 5 It is a schematic flow chart of a communication method provided in an embodiment of the present application.

[0085] Figure 6 It is a schematic flow chart of a communication method provided in an embodiment of the present application.

[0086] Figure 7 It is a schematic flow chart of a communication method provided in an embodiment of the present application.

[0087] Figure 8 It is a schematic block diagram of a routing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0088] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0089] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0090] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0091] The following describes a terminal, a user interface for such a terminal, and embodiments for using such a terminal. In some embodiments, the terminal may be a portable device that also includes other functions such as a personal digital assistant and / or a music player, such as a mobile phone, a tablet computer, a wearable device with wireless communication functions (such as a smart watch), etc. Exemplary embodiments of the terminal include but are not limited to a device equipped with Or a portable device with other operating systems. The portable device may also be other portable devices, such as a laptop computer. It should also be understood that in some other embodiments, the terminal may not be a portable device, but a smart home device such as a desktop computer, a smart screen, a smart host, a smart speaker, a smart refrigerator, etc. In some other embodiments, the terminal may be an instrument for measurement, such as an oscilloscope.

[0092] For example, Figure 1 The schematic diagram of the structure of the terminal 100 is shown. The terminal 100 may include a processor 110, an internal memory 121, 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 speaker 170A, a microphone 170C, a sensor module 180, a camera 193, and a display screen 194. The sensor module 180 may include an acceleration sensor 180E, a touch sensor 180K, and the like.

[0093] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, the terminal 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0094] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0095] The controller may be the nerve center and command center of the device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0096] The processor 110 may 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 may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0097] In some embodiments, the processor 110 may include one or more interfaces. The interface may 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.

[0098] The wireless communication function of the device 100 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.

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

[0100] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0101] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a microphone 170C, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be arranged in the same device as the mobile communication module 150 or other functional modules.

[0102] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0103] In some embodiments, antenna 1 of device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that device 100 can communicate with the network and other devices through wireless communication technology.

[0104] The device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0105] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0106] The ISP is used to process the data fed back by the camera 193. In some embodiments, the ISP can be set in the camera 193.

[0107] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0108] The digital signal processor is used to process digital signals, and in addition to processing digital image signals, it can also process other digital signals. For example, when the device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0109] Video codecs are used to compress or decompress digital videos. Device 100 may support one or more video codecs. Thus, device 100 may play or record videos in multiple coding formats.

[0110] NPU is a neural network (NN) computing processor, which can quickly process input information and continuously self-learn by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain. NPU can realize applications such as intelligent cognition of device 100.

[0111] The internal memory 121 can be used to store program codes, which include instructions. The processor 110 executes various functional applications and data processing of the device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function), etc. The data storage area can store data (such as audio data, etc.) created during the use of the device 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, etc.

[0112] The device 100 can implement audio functions, such as music playback, through the audio module 170, the speaker 170A, the microphone 170C, and the application processor.

[0113] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0114] The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals.

[0115] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0116] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the device 100, which is different from the position of the display screen 194.

[0117] Figure 2 1 is a software structure diagram of the terminal 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.

[0118] like Figure 2 As shown, the application layer may include a camera, a user interface (UI), third-party applications, etc. Among them, the third-party applications may include, for example, a gallery, a calendar, a map, etc.

[0119] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions.

[0120] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0121] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0122] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. The display interface can be composed of one or more views.

[0123] The notification manager allows applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the device vibrates, the indicator light flashes, etc.

[0124] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0125] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0126] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0127] The surface manager is used to manage the display subsystem and provide the fusion of two-dimensional and three-dimensional layers for multiple applications.

[0128] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats.

[0129] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0130] A 2D graphics engine is a drawing engine for 2D drawings.

[0131] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0132] The hardware layer can include various types of sensors, such as Figure 1 Various types of sensors introduced in.

[0133] Before introducing the technical solution of the present application, some professional terms that may be involved in the present application are briefly introduced.

[0134] Routing Devices

[0135] A hardware device used to perform "routing". "Routing" refers to the action or behavior of data transmission. Routing devices act as gateways between networks and can determine the best path for network communications to pass through. Routing devices can understand different protocols, such as Ethernet protocol and transmission control protocol / internet protocol (TCP / IP) protocol. Routing devices can store and forward packets between different networks. It should be understood that routing devices in this article include routers (e.g., home routers, enterprise routers) and customer premise equipment (CPE). The following description takes the routing device as a router and the terminal as a mobile phone as an example.

[0136] Service set identifier (SSID)

[0137] The SSID of the router is the network name of the wireless network. SSID technology can divide a wireless LAN into multiple sub-networks that require different authentications. Each sub-network requires independent authentication. Only users who pass the authentication can enter the corresponding sub-network, preventing unauthorized users from entering the network.

[0138] Beacon message

[0139] The router can broadcast Beacon messages at a certain period. The Beacon messages include SSID and can be discovered by the terminal. The terminal can be understood as having Figure 1 As shown or Figure 2 Devices with the structure shown, for example, mobile phones, smart watches, etc.

[0140] like Figure 3 , a schematic diagram showing an applicable scenario of a communication method provided by an embodiment of the present application is shown. The method is applicable to the access process between a terminal and a router.

[0141] Currently, routers include 2.4GHz band, 5GHz band and even more bands. The Wi-Fi signal of the 2.4GHz band has strong wall penetration ability, but it is easily interfered with, resulting in unstable Internet access experience. It is suitable for terminals such as mobile phones and tablets that need to move frequently between rooms. Frequently moving terminals can take advantage of the strong wall penetration ability of the 2.4GHz band to ensure that mobile terminals such as mobile phones and tablets can access the Internet normally in every room. The Wi-Fi signal of the 5GHz band has a fast transmission speed and is not easily interfered with, but it has weak wall penetration ability. Generally, the Wi-Fi signal of the 5GHz band will become weak after passing through a wall. It is suitable for devices that are in the same room as the router and do not require high wall penetration ability. Take advantage of the fast speed and strong anti-interference ability of the Wi-Fi signal of the 5GHz band to ensure that the device has a faster and more stable user experience.

[0142] The router can support 5GHz band preference. In the scenario of 5GHz band preference, the SSID of 2.4GHz band and 5GHz band are the same by default, and the terminal is preferentially connected to the router of 5GHz band. Generally speaking, the number of devices that can be accessed by each band of the router is limited. For example, the maximum number of access terminals of the access point (AP) of the 2.4GHz band is 32 devices, and the maximum number of access terminals of the AP of the 5GHz band is 32 devices. For a dual-band router that supports 5GHz band preference, the maximum number of access terminals is 64 devices, and in the Wi-Fi configuration interface of the device, the SSID of 2.4GHz band and 5GHz band is the same. When a user establishes a connection with a certain band of the router through the Wi-Fi configuration interface, since it is unclear whether the number of access terminals of the AP of the band has reached the maximum number of access terminals, there may be access failures, thereby affecting the user experience.

[0143] For ease of understanding, Figure 4 As shown, a set of graphical user interfaces (GUIs) is shown, and a mobile phone is taken as an example to introduce the main process of a user sending an access request to a router through the user interface.

[0144] like Figure 4 As shown in (a) of FIG. 4 , the setting interface of the mobile phone is shown. The setting interface displays multiple options, wherein the multiple options include wireless LAN, Bluetooth, display and sound options. In response to the user's operation on the wireless LAN option 401, the mobile phone displays the following Figure 4 GUI shown in (b).

[0145] like Figure 4As shown in (b), in response to the user's operation on the wireless LAN option 401, the mobile phone displays the wireless LAN interface. The wireless LAN displays a wireless LAN control 402. Among them, the control is a visual graphical interface element presented to the user. It is a software component included in the application, which controls the data processed by the application and the interactive operations on these data. The user can interact with the control through touch, slide and other operations to read and edit the relevant information of the application. In general, the control may include icons, buttons, menus, tabs, text boxes, status bars and other visual interface elements. In response to the user's operation on different controls (for example: touch operation, or click operation), different interfaces may be displayed on the screen of the device or different functions may be triggered. In response to the user clicking the wireless LAN control 402, the mobile phone can turn on the function of connecting to the wireless LAN. The wireless LAN interface also includes the network names of each wireless LAN within the communication range of the mobile phone. Figure 4 The wireless LAN interface shown in (b) also includes a network name option, wherein the network name option includes an "ID123" option 403. It can be seen that the mobile phone user cannot determine the specific frequency band of the router corresponding to the network name from the network name displayed on the wireless LAN interface. In other words, from the user's perspective, the APs corresponding to multiple frequency bands of the router that supports the 5GHz frequency band preference only display the same network name on the user interface, and the user cannot distinguish them. In response to the user's operation on the "ID123" option 403, the mobile phone displays something like Figure 4 GUI shown in (c) in FIG.

[0146] like Figure 4 As shown in (c) of FIG. 1 , in response to the user's operation on the "ID123" option 403, the wireless LAN interface of the mobile phone displays a prompt message 404. The prompt message 404 is used to prompt the user to enter the password of "ID123". When the user completes the input of the "ID123" password, the mobile phone may display the following Figure 4 GUI shown in (d).

[0147] like Figure 4 As shown in (d) in FIG. 1 , in response to the user completing the input of the "ID123" password, the wireless LAN interface of the mobile phone displays a prompt message 405. The prompt message 405 is used to prompt that the mobile phone fails to connect to the "ID123" wireless LAN.

[0148] It should be noted that the wireless LAN interface of a mobile phone can be understood as the Wi-Fi configuration interface.

[0149] Exemplarily, the "ID123" option 403 corresponds to multiple frequency bands of a router that supports 5GHz frequency band preference, and the multiple frequency bands can be 5GHz frequency bands or 2.4GHz frequency bands. The user cannot distinguish which frequency band is to be accessed through the user interface, but because the router supports 5GHz frequency band preference, the number of AP access terminals in the 5GHz frequency band of the router has reached the second threshold. Even if the user enters the password correctly, it is obviously possible that the terminal fails to access the router. Alternatively, the mobile phone has successfully accessed the 5GHz frequency band and the 2.4GHz frequency band of the router. When the mobile phone needs to access the router again, it is not necessary to enter the password. The router sets the mobile phone to give priority to accessing the 5GHz frequency band. When the number of 5GHz AP access terminals has reached the second threshold, access failure may also occur. The user's failure to access the router will affect the user's subsequent network experience. Among them, the second threshold can be understood as the maximum number of AP access terminals in the 5GHz frequency band of the router.

[0150] Based on this, the embodiment of the present application provides a communication method, a routing device, a terminal and a medium. The method is applicable to a routing device supporting multiple frequency bands. When the number of AP access terminals of a certain frequency band of the routing device has reached the maximum number, the routing device can guide the terminal to access other APs whose number of access terminals has not reached the maximum number, so that the terminal can smoothly establish a communication connection with the router, which is convenient for users to use the network.

[0151] It should be noted that in the process of establishing a communication connection through Wi-Fi, the terminal needs to discover the existence of wireless fidelity (Wi-Fi) (or router). Among them, the process of the terminal discovering the existence of the router can be understood as scanning, and the scanning can include active scanning and passive scanning. It can be understood that the communication method provided in the embodiment of the present application can be applied to the scanning stage between the terminal and the router.

[0152] For example, during passive scanning, the terminal is in a receiving state, scanning available wireless channels. The terminal can receive Beacon messages sent by different APs. It is understandable that a router can include multiple APs, for example, one AP for each frequency band, and each AP has an identifier for user identification, such as SSID. For a multi-band router that supports the preferred 5GHz frequency band, the AP identifiers corresponding to multiple frequency bands of the router are the same, and the Beacon message can carry the SSID.

[0153] For another example, during active scanning, the terminal actively sends a Probe Request message and waits for an AP within the communication range of the terminal to respond with a Probe Response message.

[0154] Based on this, the communication method provided by the embodiments of the present application in passive scanning and active scanning scenarios are introduced below respectively.

[0155] like Figure 5 As shown, a communication method provided in an embodiment of the present application is shown. The method can be applicable to a communication system in a passive scanning scenario. The following takes the communication system including a router and a mobile phone as an example to introduce the communication method provided in the present application.

[0156] S501: The router determines the Beacon message.

[0157] It should be noted that the Beacon message may include the SSIDs of APs corresponding to multiple frequency bands of the router. It is understandable that the SSIDs of APs corresponding to multiple frequency bands of the router are the same.

[0158] In one implementation, an information element (IE) field may be added to the Beacon message, and the IE field is used to indicate whether the AP that sends the Beacon message can be connected.

[0159] For example, a multi-band router includes a 2.4GHz band and a 5GHz band. The AP corresponding to the 2.4GHz band sends Beacon message 1, in which an IE field can be added, and the IE field in Beacon message 1 is used to indicate whether the 2.4GHz band can be connected; the AP corresponding to the 5GHz band sends Beacon message 2, in which an IE field can be added, and the IE field in Beacon message 2 is used to indicate whether the 5GHz band can be connected.

[0160] It can be understood that if the current AP can be connected, it means that the number of access terminals in the frequency band corresponding to the current AP has not reached the maximum access number; if the current AP cannot be connected, it means that the number of access terminals in the frequency band corresponding to the current AP has reached the maximum number. For example, when the number of AP access terminals in the 5GHz band has reached the second threshold, the IE field in Beacon message 2 indicates that the AP corresponding to the 5GHz band cannot be connected; when the number of AP access terminals in the 2.4GHz band has not reached the first threshold, the IE field in Beacon message 1 indicates that the AP corresponding to the 2.4GHz band can be connected. It should be understood that the first threshold and the second threshold can be the same or different. The first threshold is the maximum number of AP access terminals in the 2.4GHz band, and the second threshold is the maximum number of AP access terminals in the 5GHz band. It should be noted that when the number of AP access terminals has reached the maximum number, it means that the frequency band corresponding to the AP is fully connected; when the number of AP access terminals has not yet reached the maximum number, it means that the frequency band corresponding to the AP is not fully connected.

[0161] In one implementation, when the number of terminals accessing a certain AP has reached the maximum number of access terminals, the signal quality of the AP's Beacon message can be reduced. The Beacon message with reduced signal quality will reduce the possibility of the terminal scanning (or discovering) the AP. At this time, the possibility of the terminal initiating a connection to other APs (with the same SSID as the current AP) increases.

[0162] In one implementation, Beacon messages are sent by broadcasting. Therefore, when the number of terminals accessing a certain AP has reached the maximum number of access terminals, the period of sending Beacon messages for the AP can be increased. Increasing the period of sending Beacon messages will reduce the possibility of terminals scanning (or discovering) the AP. At this time, the possibility of the terminal initiating a connection to other APs (with the same SSID as the current AP) increases.

[0163] S502: The router sends a Beacon message, and correspondingly, the mobile phone receives the Beacon message.

[0164] Exemplarily, the router sends Beacon messages at a certain period, wherein the Beacon messages may be sent in a broadcasting manner. The mobile phone may be one of a plurality of terminals within the communication range of the router.

[0165] According to the introduction of step S501 above, the router can adjust the sending period of Beacon messages according to whether the number of terminals accessing the AP has reached the maximum number of accesses. When the number of terminals accessing the current AP has reached the maximum number of accesses, the period of the AP broadcast message can be increased to reduce the possibility of the terminal scanning the AP. At this time, the possibility of the terminal initiating a connection to other APs, especially to the AP with the same SSID as the current AP, increases.

[0166] For example, when the number of AP access terminals in the 5 GHz band has reached the second threshold, the AP can increase the period of broadcasting Beacon message 2. Of course, when the number of AP access terminals in the 2.4 GHz band has reached the first threshold, the AP can increase the period of broadcasting Beacon message 1.

[0167] It is understandable that in the above step S501, an IE field can be added to the Beacon broadcast message of the router. The terminal can determine whether the AP that sends the Beacon message broadcast message can be connected through the IE field in the Beacon message broadcast message, but not all terminals can support IE parsing. Based on this, the communication method provided in the embodiment of the present application can be applied to the following scenarios:

[0168] Scenario 1: The mobile phone supports IE parsing.

[0169] S503, the mobile phone parses the Beacon message.

[0170] It should be noted that the mobile phone can receive Beacon messages broadcast from APs in multiple frequency bands of the router. When the mobile phone supports IE parsing, it can parse the IE field in the Beacon message to determine whether the AP that sent the message can be connected.

[0171] For example, a router that supports multiple frequencies includes the 2.4GHz band and the 5GHz band. The mobile phone determines that the number of AP access terminals in the 5GHz band has reached the second threshold by parsing Beacon message 2 broadcast by the AP in the 5GHz band, indicating that the AP in the 5GHz band cannot be connected; or, the mobile phone determines that the 2.4GHz band is not fully connected by parsing Beacon message 1 broadcast by the AP in the 2.4GHz band, indicating that the AP in the 2.4GHz band can be connected.

[0172] S504, the mobile phone initiates a connection according to the parsed Beacon message.

[0173] Exemplarily, when the mobile phone parses the IE field in the message and determines that the number of AP access terminals in the 5 GHz band has reached the second threshold and the number of AP access terminals in the 2.4 GHz band has not reached the first threshold, the mobile phone can initiate a connection to the AP in the 2.4 GHz band.

[0174] It should be noted that when the mobile phone determines that a certain AP can be connected by parsing the Beacon message, it will further initiate a connection with the AP. The mobile phone can complete the access process through the authentication and association process with the AP.

[0175] For example, when the mobile phone parses the Beacon message and determines that the AP in the 2.4 GHz frequency band can be connected, the mobile phone can send an authentication request, an association request, etc. to the AP corresponding to the 2.4 GHz frequency band to complete the access process of the mobile phone and the AP.

[0176] Scenario 2: The mobile phone does not support IE parsing.

[0177] S505, the mobile phone initiates a connection according to the Beacon message.

[0178] It should be noted that for mobile phones that do not support IE parsing, it is impossible to determine whether the number of AP access terminals in a certain frequency band has reached the maximum number of access terminals based on the Beacon message broadcast by the router. However, the mobile phone can initiate a connection based on other information in the Beacon message.

[0179] In one implementation, the mobile phone initiates a connection according to a Beacon message sending cycle.

[0180] For example, the router increases the sending period of Beacon messages sent by APs in the 5 GHz band, and the possibility that the mobile phone discovers or scans Beacon messages sent by APs in the 5 GHz band decreases. Correspondingly, the possibility that the mobile phone discovers or scans Beacon messages sent by APs in the 2.4 GHz band increases. Therefore, the mobile phone selects the AP in the 2.4 GHz band to initiate a connection.

[0181] In one implementation, the mobile phone initiates a connection based on the signal quality of the Beacon message.

[0182] For example, the router reduces the signal quality of the Beacon message sent by the AP in the 5 GHz band, and the possibility of the mobile phone discovering or scanning the Beacon message sent by the AP in the 5 GHz band decreases. Correspondingly, the possibility of the mobile phone discovering or scanning the Beacon message sent by the AP in the 2.4 GHz band increases. Therefore, the mobile phone selects the AP in the 2.4 GHz band to initiate a connection.

[0183] It should be noted that the mobile phone can initiate a connection based on the Beacon message sending cycle and signal quality.

[0184] In other words, the sending period and signal quality of Beacon messages affect the possibility of mobile phones discovering or scanning APs. By adjusting the sending period and signal quality of Beacon messages, the mobile phone is guided to select an AP whose number of access terminals has not reached the maximum number, thereby guiding the mobile phone to access the AP.

[0185] like Figure 6 As shown, a communication method provided in an embodiment of the present application is shown. The method can be applicable to a communication system in an active scanning scenario. The communication method provided in the present application is introduced below by taking the communication system including a router and a mobile phone as an example.

[0186] S601: The mobile phone sends a Probe Request message, and correspondingly, the router receives the Probe Request message.

[0187] It should be noted that the mobile phone can send the Probe Request message in broadcast mode.

[0188] S602: The router confirms the Probe Response message.

[0189] In one implementation, an IE field may be added to the Probe Response message, and the IE field is used to indicate whether the AP that sends the Beacon message can be connected.

[0190] For example, a multi-band router includes a 2.4 GHz band and a 5 GHz band. The AP corresponding to the 2.4 GHz band sends a ProbeResponse message 1, in which an IE field can be added, and the IE field in the ProbeResponse message 1 is used to indicate whether the 2.4 GHz band can be connected; the AP corresponding to the 5 GHz band sends a ProbeResponse message 2, in which an IE field can be added, and the IE field in the ProbeResponse message 2 is used to indicate whether the 5 GHz band can be connected.

[0191] It is understandable that if the current AP can be connected, it means that the number of access terminals in the frequency band corresponding to the current AP has not reached the maximum access number; if the current AP cannot be connected, it means that the number of access terminals in the frequency band corresponding to the current AP has reached the maximum access number. For example, when the number of AP access terminals in the 5GHz frequency band has reached the second threshold, the IE field in Probe Response message 2 indicates that the AP corresponding to the 5GHz frequency band cannot be connected; when the number of AP access terminals in the 2.4GHz frequency band has not reached the first threshold, the IE field in Probe Response message 1 indicates that the AP corresponding to the 2.4GHz frequency band can be connected.

[0192] S603: The router sends a Probe Response message, and correspondingly, the mobile phone receives the Probe Response message.

[0193] It is understandable that the AP of the frequency band in which the number of router access terminals has reached the maximum access number does not send the Probe Response message, and the AP of the frequency band in which the number of router access terminals has not reached the maximum access number can send the Probe Response message.

[0194] Exemplarily, when the number of AP access terminals in the 5 GHz band has reached the second threshold, the AP in the 5 GHz band does not send a Probe Response message; when the number of AP access terminals in the 2.4 GHz band has not reached the first threshold, the AP in the 2.4 GHz band may send a Probe Response message.

[0195] Similar to the above method 500, the method 600 may also be applicable to the following scenarios:

[0196] Scenario 1: The mobile phone supports IE parsing.

[0197] S604: The mobile phone parses the Probe Response message.

[0198] It should be noted that the mobile phone receives a Probe Response message sent from an AP in a frequency band where the number of access terminals does not reach the maximum access number, and further, the mobile phone parses the IE field in the Probe Response message to determine that the AP that sent the message can be connected.

[0199] It is understandable that, for a mobile phone that supports IE parsing, step S604 is optional.

[0200] For example, a router that supports multiple frequencies includes a 2.4 GHz band and a 5 GHz band. The number of AP access terminals in the 5 GHz band has reached the second threshold, and the number of AP access terminals in the 2.4 GHz band has not reached the first threshold. The mobile phone only receives Probe Response messages from APs in the 2.4 GHz band, based on which the mobile phone determines that the APs in the 2.4 GHz band can be connected. Alternatively, when the mobile phone receives a Probe Response message from an AP in the 2.4 GHz band, for greater security, the Probe Response message can be further parsed to determine that the APs in the 2.4 GHz band can be connected.

[0201] S605: The mobile phone initiates a connection according to the parsed Probe Response message.

[0202] It should be noted that when the mobile phone determines that a certain AP can be connected by parsing the Probe Response message, it will further initiate a connection with the AP. The mobile phone can complete the access process through the authentication and association process with the AP.

[0203] It is understandable that, when the mobile phone does not execute the above step S604, it can directly initiate a connection to the AP that sends the Probe Response message.

[0204] Scenario 2: The mobile phone does not support IE parsing.

[0205] S606: The mobile phone initiates a connection according to the Probe Response message.

[0206] It should be noted that for mobile phones that do not support IE parsing, they can directly initiate a connection to the AP that sends the Probe Response message.

[0207] Based on the above scheme, the communication method provided in the embodiment of the present application can be applicable to the scenario where the terminal accesses a multi-band router that supports the 5 GHz frequency band preference. When the number of AP access terminals of a certain frequency band of the router has reached the maximum access number, by modifying the router broadcast message (for example, adding an IE field, adjusting the signal quality of the broadcast message, or modifying the broadcast period of the message), or providing feedback on the router side based on whether the number of frequency band access terminals has reached the maximum access number, the terminal can successfully access other frequency bands when the number of terminals that have accessed a certain frequency band of the router has reached the maximum access number, thereby improving the user's network experience.

[0208] like Figure 7 As shown, a communication method provided by an embodiment of the present application is shown, and the method can be applied to Figure 3 In the scenario shown, the method is described in detail below. It should be noted that the execution order of the steps of the communication method provided in the embodiment of the present application is not limited to Figure 7 The order shown is limited.

[0209] It should be noted that the message sent by the routing device to the terminal may be a Beacon message or a ProbeResponse message. Depending on the message type, the communication method 700 provided in the embodiment of the present application may be different.

[0210] It should be noted that the communication method provided in the embodiment of the present application can be applied to a routing device including at least two frequency bands, the at least two frequency bands include a first frequency band and a second frequency band, and the routing device supports the terminal to prefer a certain frequency band.

[0211] Exemplarily, the routing device is a multi-band router that supports the 5 GHz frequency band, wherein the first frequency band is the 2.4 GHz frequency band and the second frequency band is the 5 GHz frequency band.

[0212] In one implementation, when the message sent by the routing device to the terminal is a Beacon message, the method 700 may include step S702 and step S704.

[0213] S702: The routing device sends at least two messages, and correspondingly, the terminal receives at least two messages.

[0214] Specifically, at least two messages are used for the terminal to discover the routing device. The at least two messages include a first message and a second message, the first message corresponds to the first frequency band, and the second message corresponds to the second frequency band.

[0215] It should be noted that APs of multiple frequency bands of the routing device can send messages. The first message is sent through the AP of the first frequency band of the routing device, and the second message is sent through the AP of the second frequency band of the routing device. Exemplarily, the AP of the 2.4GHz frequency band sends the first message, and the AP of the 5GHz frequency band sends the second message. Both the first message and the second message can be sent by broadcasting.

[0216] In one implementation, at least two messages include a first field, the first field of the first message is used to indicate that the number of access point access terminals in the first frequency band has not reached a first threshold, and the first field of the second message is used to indicate that the number of access point access terminals in the second frequency band has reached a second threshold.

[0217] That is, the first frequency band is a non-fully connected frequency band, and the second frequency band is a fully connected frequency band. It should be understood that the first threshold and the second threshold can be the same or different. The first threshold is the maximum number of access terminals of the access point of the first frequency band, and the second threshold is the maximum number of access terminals of the access point of the second frequency band.

[0218] Exemplarily, the first field is an IE field. The routing device may add an IE field to the Beacon message to indicate whether the AP that sends the Beacon message can be connected.

[0219] In one implementation, the routing device may reduce the signal quality of the second message before sending the at least two messages.

[0220] It should be noted that the number of access terminals of the second frequency band corresponding to the second message has reached the second threshold, and reducing the signal quality of the second message can reduce the possibility of the terminal discovering the AP of the second frequency band.

[0221] In one implementation, before sending at least two messages, the routing device may increase the period of the second message. The routing device sends the first message at a first period and sends the second message at a second period, and the second period is greater than the first period.

[0222] It should be noted that increasing the sending period of the second message for an AP whose maximum number of access terminals has been reached can reduce the possibility of the terminal discovering the AP in the second frequency band, thereby increasing the possibility of the terminal discovering the AP in the first frequency band, and helping to guide the terminal to access the AP in the first frequency band.

[0223] It should be noted that the SSID of the first frequency band is the same as the SSID of the second frequency band. Figure 4 As shown in (b) in the figure, in the user interface, the SSIDs of multiple frequency band APs supporting 5 GHz frequency band preference are only displayed as one "ID123".

[0224] S704: The terminal initiates a connection to an access point of the first frequency band.

[0225] It should be noted that when the terminal supports parsing the first field, before the terminal initiates a connection, it can first parse at least two received messages, and determine based on the first field in the at least two messages that the number of access point access terminals in the first frequency band has not reached the first threshold, and the number of access point access terminals in the second frequency band has reached the second threshold.

[0226] When the terminal supports parsing the first field, the terminal can determine to initiate a connection to the access point of the first frequency band by parsing the first field. Of course, the terminal can also determine to initiate a connection to the access point of the first frequency band based on the message sending period and / or the signal quality of the message.

[0227] When the terminal does not support parsing the first field, the terminal cannot directly determine to initiate a connection to the access point of the first frequency band by parsing the first field. At this time, the terminal needs to determine to initiate a connection to the access point of the first frequency band by the message sending period and / or the signal quality of the message.

[0228] In an implementation manner, when the message sent by the routing device to the terminal is a Probe Response message, the method 700 may include steps S701, S703, and S704.

[0229] S701, the terminal sends a request message, and correspondingly, the routing device receives the request message.

[0230] It should be noted that the request message can be sent by broadcasting.

[0231] S703: The routing device sends a first message, and correspondingly, the terminal receives the first message.

[0232] It should be noted that the routing device sends the first message and does not send the second message. The routing device sends the first message in a unicast manner.

[0233] It should be noted that when the request message is a Probe Request message, the first message and the second message are response messages to the request message, and the first message and the second message are Probe Response messages. The first message is a message sent by the routing device through the AP of the first frequency band, and the second message is a message sent by the routing device through the AP of the second frequency band.

[0234] That is, after receiving the request message from the terminal, the routing device does not send the Probe Response message through the AP to which the number of access terminals has reached the maximum number, but can send the Probe Response message through the AP to which the number of access terminals has not reached the maximum number.

[0235] Exemplarily, when the 5 GHz band is fully connected, the AP in the 5 GHz band does not send a Probe Response message; when the 2.4 GHz band is not fully connected, the AP in the 2.4 GHz band may send a Probe Response message.

[0236] In one implementation, before sending the first message, the routing device may add a first field in the first message, where the first field in the first message is used to indicate that the number of access point access terminals in the first frequency band does not reach a first threshold.

[0237] S704: The terminal initiates a connection to an access point of the first frequency band.

[0238] Based on step S703, the routing device sends the first message through the first frequency band and does not send the second message through the second frequency band. The terminal will also receive the first message but not the second message. The terminal can initiate a connection to the access point of the first frequency band according to the received first message.

[0239] The communication method provided in the embodiment of the present application can be applied to a multi-band router that supports a preferred 5GHz frequency band. When the 5GHz frequency band of the router is fully connected, the possibility of the terminal discovering (or scanning) the 5GHz frequency band AP is reduced by increasing the sending period of the 5GHz frequency band AP sending the message, reducing the signal quality of the 5GHz frequency band AP sending the message, or adding a field for indicating whether the AP can be connected in the message sent by the router, thereby reducing the possibility of the terminal discovering (or scanning) the 5GHz frequency band AP, and guiding the terminal to select an AP whose number of other access terminals has not reached the maximum number, thereby ensuring a good network experience for users.

[0240] Figure 8 It is a schematic block diagram of a routing device according to an embodiment of the present application. Figure 8 The routing device 800 shown may include: a processor 810, a transceiver 820, and a memory 830. The processor 810, the transceiver 820, and the memory 830 are connected via an internal connection path, the memory 830 is used to store one or more programs, the processor 810 is used to execute one or more programs stored in the memory 830, and the transceiver 820 receives / sends messages. Optionally, the memory 830 may be coupled to the processor 810 via an interface, or may be integrated with the processor 810.

[0241] It should be noted that the transceiver 820 may include but is not limited to a transceiver device such as an input / output interface to achieve communication between the routing device 800 and the terminal.

[0242] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 810 or an instruction in the form of software. The method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 830, and the processor 810 reads the information in the storage 830 and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0243] It should also be understood that in the embodiment of the present application, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A part of the processor may also include a non-volatile random access memory.

[0244] The embodiment of the present application provides a program product, when the program product is run on a device, the device executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.

[0245] The embodiment of the present application provides a readable storage medium, which contains one or more programs. When the one or more programs are run on a device, the device executes the technical solution of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0246] The embodiment of the present application provides a chip, which is used to execute instructions. When the chip is running, the technical solution in the above embodiment is executed. The implementation principle and technical effect are similar and will not be repeated here.

[0247] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0248] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units (modules) can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0249] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A communication method, characterized in that: The method is applied to a routing device, the routing device includes at least two frequency bands, and the method includes: Send at least two messages, the messages are used for the terminal to discover the routing device, Among them, the at least two messages include a first message and a second message, the at least two frequency bands include a first frequency band and a second frequency band, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, and the at least two messages include a first field, the first field of the first message is used to indicate that the number of access point access terminals in the first frequency band has not reached a first threshold, and the first field of the second message is used to indicate that the number of access point access terminals in the second frequency band has reached a second threshold.

2. The method according to claim 1, characterized in that Before sending at least two messages, the method further includes: The signal quality of the second message is reduced.

3. The method according to claim 1 or 2, characterized in that: Before sending at least two messages, the method further includes: Increasing the sending period of the second message; The sending of the at least two messages includes: The first message is sent in a first cycle, and The second message is sent in a second period, where the second period is greater than the first period.

4. A communication method, characterized in that: The method is applied to a routing device, the routing device includes at least two frequency bands, and the method includes: Receive a request message from a terminal; Send the first message, and do not send the second message; Among them, the at least two frequency bands include a first frequency band and a second frequency band, the first message is a response message to the request message, the second message is a response message to the request message, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two frequency bands include the first frequency band and the second frequency band, the number of access point access terminals in the first frequency band has not reached a first threshold, and the number of access point access terminals in the second frequency band has reached a second threshold.

5. The method according to claim 4, characterized in that Before sending the first message, the method further includes: A first field is added to the first message, where the first field in the first message is used to indicate that the number of access point access terminals in the first frequency band does not reach the first threshold.

6. A communication method, characterized in that: The method is applied to a terminal, and the method includes: receiving at least two messages, the two messages being used by the terminal to discover a routing device, the routing device including at least two frequency bands, The at least two messages include a first message and a second message, the at least two frequency bands include a first frequency band and a second frequency band, the first message corresponds to the first frequency band, the second message corresponds to the second frequency band, the at least two messages include a first field, the first field of the first message is used to indicate that the number of access point access terminals in the first frequency band has not reached a first threshold, and the first field of the second message is used to indicate that the number of access point access terminals in the second frequency band has reached a second threshold; A connection is initiated to an access point of the first frequency band according to the at least two messages.

7. The method according to claim 6, characterized in that The signal quality of the second message is lower than the signal quality of the first message.

8. The method according to claim 6 or 7, characterized in that: The sending period of the second message is greater than the sending period of the first message.

9. The method according to any one of claims 6 to 8, characterized in that When the terminal supports parsing the first field, before initiating a connection to the first frequency band according to the at least two messages, the method further includes: Parse the at least two messages to determine that the number of access point access terminals in the first frequency band has not reached the first threshold, and the number of access point access terminals in the second frequency band has reached the second threshold.

10. A communication method, characterized in that: The method is applied to a terminal, and the method includes: Sending a request message to a routing device, where the routing device includes at least two frequency bands, and the at least two frequency bands include a first frequency band and a second frequency band; receiving a first message from the routing device; The first message is a response message to the request message, the first message corresponds to the first frequency band, the at least two frequency bands include the first frequency band and the second frequency band, the number of access point access terminals in the first frequency band does not reach a first threshold, and the number of access point access terminals in the second frequency band has reached a second threshold; Initiate a connection to an access point of the first frequency band according to the first message.

11. The method according to claim 10, characterized in that The first message includes a first field, and the first field in the first message is used to indicate that the number of access point access terminals in the first frequency band does not reach the first threshold.

12. The method according to any one of claims 4, 5, 10 and 11, characterized in that The request message is a broadcast message, and the first message is a unicast message.

13. The method according to any one of claims 1 to 12, characterized in that The network name SSID of the first frequency band is the same as the network name SSID of the second frequency band.

14. A routing device, characterized in that: include: a transceiver, for receiving and sending messages; A memory for storing one or more programs; A processor, configured to execute one or more programs stored in the memory, so that the routing device executes the method according to any one of claims 1 to 5.

15. A terminal, characterized in that: include: a transceiver, for receiving and sending messages; Memory, used to store programs; A processor, configured to execute a program stored in a memory so that the terminal executes the method according to any one of claims 6 to 13.

16. A readable storage medium, characterized in that: One or more programs are stored thereon, and when the one or more programs are executed by the device, the device implements the method as claimed in any one of claims 1 to 3, 4 or 5, 6 to 9, 10 to 13.

Citation Information

Patent Citations

  • Message processing method and equipment in wireless local area network (WLAN)

    CN102256337A

  • Data processing method and terminal

    CN111919505A

  • Auxiliary roaming method and device, electronic equipment and storage medium

    CN116419398A

  • Establishing wireless connection based on network status

    US20140126388A1