A wireless network access method, electronic equipment and medium
By acquiring and filtering the status information of wireless network devices, terminal devices select the optimal router for access, solving the problem of reduced network speed and communication performance caused by overlapping signals from multiple routers, and achieving more efficient data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2022-01-24
- Publication Date
- 2026-06-09
AI Technical Summary
In large areas, overlapping signals from multiple routers can make it difficult for terminal devices to select the optimal router for connection, resulting in a decrease in network speed and overall network communication performance.
Terminal devices acquire status information from multiple wireless network devices, including signal strength, load information, and communication standards, and then perform layer-by-layer filtering to select the optimal wireless network device for access.
It improves the network speed of terminal devices and the overall network communication performance, ensures that the selected router has a low load and is compatible with the communication standard, and improves data transmission efficiency.
Smart Images

Figure CN116528182B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a wireless network access method, electronic device, and medium. Background Technology
[0002] Currently, in large areas such as large offices or homes, multiple routers are often installed because a single router may not be able to cover the entire area or the signal may be weak in certain areas. The presence of multiple routers can create signal overlap areas, which are areas covered by the signals of multiple routers. When a terminal device is in a signal overlap area, it can communicate with any of the multiple routers that can be detected within that area.
[0003] In existing technologies, terminal devices located in areas with overlapping signals typically choose the router with the strongest signal among multiple routers for communication. However, in some cases, the router with a strong signal may already have multiple terminal devices connected to it, the load may be heavy, or the multiple terminal devices connected to the router with a strong signal may support different communication standards than the device to be connected. When a terminal device connects to a router in these situations, it will be difficult for the terminal device to obtain the optimal network speed. If all terminal devices on the entire Internet use the above method to connect to routers, the entire network will also struggle to achieve optimal communication performance. Summary of the Invention
[0004] To address the aforementioned issues, embodiments of this application provide a wireless network access method, an electronic device, and a medium.
[0005] In a first aspect, embodiments of this application provide a wireless network access method, applied to a terminal device, comprising:
[0006] The terminal device acquires status information of multiple wireless network devices, and the status information of each wireless network device includes information on the downstream terminal devices and load information of each wireless network device.
[0007] Based on the status information of each wireless network device and the communication standard information of the terminal device, a wireless network device that meets the preset conditions is selected from the plurality of wireless network devices as the network access device of the terminal device.
[0008] It is understood that in the embodiments of this application, the information of the downstream terminal devices includes the number of downstream terminal devices and the communication standard information of each downstream terminal device.
[0009] Based on the solution provided in this application, the terminal device to be connected can filter through various wireless network devices based on its own communication standard information and the status information of each accessible wireless network device to determine the optimal wireless network device for connection. This allows the terminal device to obtain the optimal network speed and improves the overall network communication performance to a certain extent.
[0010] In one possible implementation of the first aspect above, the method further includes: the status information of the wireless network device further includes signal strength; the step of selecting a wireless network device that meets preset conditions from the plurality of wireless network devices based on the status information of each wireless network device and the communication standard information of the terminal device includes:
[0011] Based on the signal strength of each wireless network device, a first candidate wireless network device with a signal strength greater than or equal to a set strength value is determined.
[0012] Based on the status information of the first candidate wireless network device and the communication standard information of the terminal device, a wireless network device that meets the preset conditions is determined.
[0013] It is understood that in this embodiment of the application, the signal strength can be used to initially filter multiple routers whose signals can be detected by the terminal device to be accessed. This can effectively improve the efficiency of filtering the optimal router.
[0014] The set strength value can be a fixed empirical value that can meet the signal access requirements, such as 80 dBm.
[0015] In one possible implementation of the first aspect above, the method further includes: the status information further includes signal strength and signal-to-noise ratio related information; the step of selecting a wireless network device that meets preset conditions from the plurality of wireless network devices based on the status information of each wireless network device and the communication standard information of the terminal device includes:
[0016] The signal transmission rate of each wireless network device is determined based on the signal-to-noise ratio information of each wireless network device.
[0017] Among the wireless network devices, the wireless network device with a signal transmission rate greater than or equal to a set value is selected as the first candidate wireless network device; or, among the wireless network devices, the wireless network device with a signal transmission rate greater than or equal to a set value and a signal strength greater than or equal to a set strength value is selected as the first candidate wireless network device.
[0018] Based on the status information of the first candidate wireless network device and the communication standard information of the terminal device, a wireless network device that meets the preset conditions is determined.
[0019] It is understood that, by judging the signal transmission rate in this embodiment of the application, a more accurate preliminary screening of multiple routers whose signals can be detected by the terminal device to be accessed can be performed, which can effectively improve the screening efficiency of the optimal router.
[0020] In one possible implementation of the first aspect above, the method further includes: the information of the connected terminal devices of the wireless network device includes the number of connected terminal devices and the communication standard information of each connected terminal device.
[0021] In one possible implementation of the first aspect above, the method further includes: the load information of the wireless network device is the ratio of the used data traffic of the wireless network device to the total data traffic of the wireless network device.
[0022] In one possible implementation of the first aspect above, the method further includes: determining the wireless network device that meets the preset conditions based on the status information of the first candidate wireless network device and the communication standard information of the terminal device, comprising:
[0023] The load status of each first candidate wireless network device is determined based on the load information of each first candidate wireless network device;
[0024] When it is determined that there is a first alternative wireless network device with a light load, the number of downstream terminal devices of the first alternative wireless network device with a light load is determined.
[0025] The first alternative wireless network device with the fewest connected terminal devices among the first alternative wireless network devices with light load conditions is selected as the second alternative wireless network device.
[0026] When the number of the second alternative wireless network devices is one, the second alternative wireless network device is selected as the wireless network device that meets the preset conditions.
[0027] In this embodiment, the load status of the wireless network devices can be determined through their load information. When a lightly loaded wireless network device is identified, the optimal wireless network device is selected from among these lightly loaded devices. This allows the terminal device to connect to the lightly loaded wireless network device, effectively improving the network speed.
[0028] In one possible implementation of the first aspect above, the method further includes: determining the load status of each first candidate wireless network device based on the load information of each first candidate wireless network device; including:
[0029] When the ratio of the used data traffic of the first candidate wireless network device to the total data traffic of the first candidate wireless network device is greater than or equal to a set ratio, the load condition of the first candidate wireless network device is determined to be overloaded.
[0030] When the ratio of the used data traffic of the first candidate wireless network device to the total data traffic of the first candidate wireless network device is less than or equal to or less than the set ratio, the load condition of the first candidate wireless network device is determined to be lightly loaded.
[0031] In one possible implementation of the first aspect above, the method is as follows: when it is determined that the load conditions of the first candidate wireless network devices are all heavily loaded, the number of downstream terminal devices of each of the first candidate wireless network devices is determined.
[0032] The wireless network device with the fewest connected terminal devices among the first candidate wireless network devices is selected as the second candidate wireless network device.
[0033] When the number of the second alternative wireless network devices is one, the second alternative wireless network device is selected as the wireless network device that meets the preset conditions.
[0034] In this embodiment, when it is determined that there is no wireless network device with a light load, the wireless network device with the fewest connected terminal devices is selected as the wireless network device to be connected. This allows terminal devices to connect to wireless network devices with low loads, effectively improving the network speed of the wireless network device.
[0035] In one possible implementation of the first aspect above, the method further includes: when the number of the second alternative wireless network devices is multiple, determining the communication standard information of each terminal device connected to each of the second alternative wireless network devices;
[0036] Obtain the communication standard information of the terminal device, and determine the number of terminal devices connected to each of the second alternative wireless network devices that have the same communication standard information as the terminal device;
[0037] The second alternative wireless network device with the fewest connected terminal devices that have the same communication standard information as the terminal device is selected as the third alternative wireless network device.
[0038] When the number of the third alternative wireless network devices is one, the third alternative wireless network device is selected as the wireless network device that meets the preset conditions.
[0039] In this embodiment, when the wireless network device with the fewest connected terminal devices is not unique, the terminal device to be connected can further select the router with the fewest connected terminal devices and the router with the most connected terminal devices of the same communication standard as the terminal device to be connected for access. In this way, the terminal device can obtain the optimal network speed and the communication performance of the entire network can be improved to a certain extent.
[0040] In one possible implementation of the first aspect above, the method further includes: when there are multiple third alternative wireless network devices, selecting the third alternative wireless network device with the highest signal strength among the multiple third alternative wireless network devices as the wireless network device that meets the preset conditions.
[0041] In one possible implementation of the first aspect above, the method further includes: when there are multiple third alternative wireless network devices, selecting the third alternative wireless network device whose communication standard information is consistent with the communication standard information of the terminal device as the fourth alternative wireless network device.
[0042] When the number of the fourth alternative wireless network devices is one, the fourth alternative wireless network device is selected as the wireless network device that meets the preset conditions.
[0043] It is understandable that in some cases, when the communication standard supported by the terminal device to be accessed is consistent with the communication standard supported by the connected wireless network device, the network speed of the terminal device to be accessed and the throughput of the wireless network device will be improved to some extent. Therefore, in the case of multiple third alternative routers, screening based on the consistency of the communication standard supported by the terminal device to be accessed and the communication standard supported by the wireless network device can improve the network speed of the terminal device to be accessed and the throughput of the wireless network device to some extent.
[0044] In one possible implementation of the first aspect above, the method further includes: when there are multiple fourth alternative wireless network devices, selecting the fourth alternative wireless network device with the highest signal strength among the multiple fourth alternative wireless network devices as the wireless network device that meets the preset conditions.
[0045] In one possible implementation of the first aspect described above, the wireless network device is a wireless router or a wireless access point.
[0046] In a second aspect, this application provides an electronic device, comprising: a memory and a processor; the memory is used to store program instructions; the processor is used to invoke the program instructions in the memory to cause the electronic device to execute the wireless network access method in the first aspect and any possible design of the first aspect.
[0047] Thirdly, this application provides a chip system applied to an electronic device including a memory, a display screen, and a sensor; the chip system includes a processor; when the processor executes computer instructions stored in the memory, the electronic device executes the first aspect and any possible design of the first aspect of the wireless network access method.
[0048] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, the computer program being processed by a processor to cause an electronic device to implement the wireless network access method in the first aspect and any possible design of the first aspect when executed.
[0049] Fifthly, this application provides a computer program product, comprising: execution instructions stored in a readable storage medium, at least one processor of an electronic device being able to read the execution instructions from the readable storage medium, and at least one processor executing the execution instructions causing the electronic device to implement the wireless network access method in the first aspect and any possible design of the first aspect. Attached Figure Description
[0050] Figure 1 According to some embodiments of this application, a schematic diagram of a wireless network coverage area is shown;
[0051] Figure 2 According to some embodiments of this application, a schematic diagram of a wireless network access scenario is shown;
[0052] Figure 3 According to some embodiments of this application, a schematic diagram of a wireless network access scenario is shown;
[0053] Figure 4 According to some embodiments of this application, a schematic diagram of a wireless network access scenario is shown;
[0054] Figure 5a According to some embodiments of this application, a schematic diagram of the hardware structure of a terminal device is shown;
[0055] Figure 5b According to some embodiments of this application, a schematic diagram of the software framework of a terminal device is shown;
[0056] Figure 6 According to some embodiments of this application, a flowchart of a wireless network access method is shown;
[0057] Figure 7 According to some embodiments of this application, a flowchart of a method for determining a first alternative router is shown;
[0058] Figure 8 According to some embodiments of this application, a schematic diagram of the overall process of a terminal device accessing a wireless network is shown, in which the terminal device to be accessed actively sends a scan frame.
[0059] Figure 9 According to some embodiments of this application, a schematic diagram of the overall process of a terminal device accessing a wireless network is shown when a router spontaneously broadcasts its own device information and status information.
[0060] Figure 10 According to some embodiments of this application, a schematic diagram of the wireless network access mechanism for a terminal device during movement is shown. Detailed Implementation
[0061] The illustrative embodiments of this application include, but are not limited to, a wireless network access method for a terminal device, a terminal device, and a medium.
[0062] To more clearly illustrate the solutions in the embodiments of this application, we will first introduce the conventional router classifications, the communication standards supported by terminal devices, and related terminology:
[0063] Routers can be categorized based on the different communication protocols they use, such as Wi-Fi 4, Wi-Fi 5, and Wi-Fi 6.
[0064] Wi-Fi 4 uses the 802.11n communication protocol, meaning that Wi-Fi 4 routers support the 'n' communication standard. Under normal circumstances, Wi-Fi 4 can be represented as 802.11n.
[0065] Wi-Fi 5 uses the 802.11ac communication protocol, meaning that Wi-Fi 5 routers support the ac communication standard; under normal circumstances, Wi-Fi 5 can be represented as 802.11ac.
[0066] Wi-Fi 6 uses the 802.11ax communication protocol, meaning that Wi-Fi 6 routers support the ax communication standard. Under normal circumstances, Wi-Fi 6 can be represented as 802.11ax.
[0067] Communication standards supported by the terminal device: The communication standards supported by the terminal device are determined by the communication protocol used by the terminal device when connecting to the wireless network. For example, if the terminal device uses the 802.11n protocol, then the terminal device supports the 'n' communication standard. If the terminal device uses the 802.11ac protocol, then the terminal device supports the 'ac' communication standard. If the terminal device uses the 802.11ax protocol, then the terminal device supports the 'ax' communication standard.
[0068] Router throughput: Data in a network consists of individual data packets, and processing each packet consumes resources. Throughput refers to the number of data packets that pass through per unit of time; for example, it can be expressed as the number of data packets a router can process per second.
[0069] Router load: The ratio of used data traffic to the total data traffic of the router.
[0070] It's understandable that routers are backward compatible. For example, a router supporting the AX communication standard can connect to terminal devices supporting both AC and AX communication standards; that is, a terminal device supporting AC communication can connect to a router supporting either AX or AC communication. However, when a terminal device supporting AC communication connects to a router supporting AX communication and transmits data, the lower data transmission rate of the AC-supporting terminal device will reduce the throughput of the AX-supporting router. Furthermore, the different data transmission technologies used by AX-supporting routers or terminal devices compared to AC-supporting routers or terminal devices—for example, AC-supporting routers or terminal devices using Orthogonal Frequency Division Multiplexing (OFDM) while AX-supporting routers or terminal devices using Orthogonal Frequency Division Multiple Access (OFDMA)—will also cause a decrease in the throughput of the AX-supporting router when data transmission occurs between it and an AC-supporting terminal device. If many of the above situations exist in the entire network, it will significantly affect the overall network communication performance.
[0071] As mentioned earlier, the presence of multiple routers in some areas can lead to signal overlap zones. Terminal devices in these overlapping zones typically choose the router with the highest signal strength (or Received Signal Strength Indication (RSSI)) among the available routers for communication. However, in some cases, a router with a high signal strength may already have multiple terminal devices connected to it, the load may be heavy, or the multiple terminal devices connected to the router may support different communication standards than the device to be connected. When a terminal device connects to a router in this situation, it will be difficult to obtain the optimal network speed. If all terminal devices on the entire Internet connect to routers in the above manner, the entire network will also struggle to achieve optimal communication performance.
[0072] For example, such as Figure 1 As shown, a user's residence includes three rooms and a living room. To solve the Wi-Fi coverage problem in every corner of each room, the user installed routers in all three rooms and the living room. For example, router 101 is installed in room 1, router 102 in room 2, router 103 in room 3, and router 104 in the living room. The signal coverage area of router 101 is area 201, the signal coverage area of router 102 is area 202, and the signal coverage area of router 104 is area 204.
[0073] Depend on Figure 1 As can be seen, there are multiple signal overlap areas in the user's residence. For example, area 205 is covered by the signals of router 101, router 102, router 103, and router 104; area 206 is covered by the signals of router 101 and router 104; area 207 is covered by the signals of router 101 and router 102; area 208 is covered by the signals of router 102 and router 103; and area 209 is covered by the signals of router 103 and router 104.
[0074] In areas with overlapping signals, terminal devices typically choose the router with the strongest signal among multiple routers for communication. For example, ... Figure 2As shown, when the user holds the terminal device 300 to be connected in area 209, where area 209 is covered by the signals of router 103 and router 104, and the signal strength of router 103 is lower than that of router 104, the terminal device 300 to be connected will automatically select router 104 with higher signal strength for signal connection.
[0075] However, in some cases, such as Figure 2 As shown, router 104 has four devices connected to it: speaker 1041, computer 1042, computer 1043, and speaker 1044. Its load has exceeded the set threshold. On the other hand, router 103 only has one computer 1031 connected to it, and its load is much lower than the set threshold. At this time, when the terminal device 300 connects to the router 104 with a stronger signal, the network speed will be much lower than when the terminal device 300 connects to the router 103 with a weaker signal.
[0076] In other cases, such as Figure 3 As shown, router 104 already has three terminal devices connected to it: computer 1042, computer 1043, and speaker 1044. Router 103 has three terminal devices connected to it: computer 1031, speaker 1032, and tablet 1033. The load on both routers 103 and 104 is below the set threshold, and the total number of devices connected to routers 103 and 104 is the same. However, because the terminal devices connected to router 104 support AC communication standards, while the terminal devices connected to router 103 support AX communication standards, and the terminal device to be connected supports AX communication standards, when the terminal devices connected to a router support the same communication standard... The network speed of the terminal device and the throughput of the router are much greater than those of the terminal device when the communication standards supported by the downstream terminal device are different. Therefore, if the terminal device 300 to be connected to the router 104 with a higher signal strength, the network speed of the terminal device 300 to be connected to the router 103 will be lower than the network speed when the terminal device 300 to be connected to the router 104. Furthermore, after the terminal device 300 to be connected to the router 104, the total throughput of the router 104 will also be lower than the total throughput of the router 104 when the terminal device supporting the AC communication standard is connected to the router 104. Thus, the communication performance of the entire network is reduced to a certain extent.
[0077] To address the aforementioned issues, this application provides a wireless network access method for a terminal device, comprising: acquiring the status information of each router among the routers that the terminal device to be accessed can access; the status information may include the router's signal strength information, communication standard information, load information, and connected terminal device information, etc. The connected terminal device information may include the communication standard supported by each connected terminal device, the number of connected terminal devices, etc. Then, based on the load information of each router, it is determined whether a lightly loaded router exists. If a lightly loaded router exists, the total number of connected terminal devices in each lightly loaded router is determined, and the lightly loaded router with the fewest connected terminal devices is selected as the router to be accessed. If the lightly loaded router with the fewest connected terminal devices is not unique, the number of terminal devices with the same communication standard as the terminal device to be accessed connected to each router in the lightly loaded router with the fewest connected terminal devices is further determined, and the router with the most connected terminal devices with the same communication standard as the terminal device to be accessed is selected as the router to be accessed. If the router with the largest number of terminal devices that share the same communication standard as the terminal device to be connected is not unique, then the signal strength of these multiple routers is obtained, and the router with the strongest signal strength is selected as the router to be connected.
[0078] When no lightly loaded router exists, the router with the fewest connected terminal devices is identified as the router to be accessed. If the router with the fewest connected terminal devices is not unique, then the number of terminal devices connected to each of the routers with the fewest connected terminal devices that share the same communication standard as the terminal device to be accessed is determined, and the router with the largest number of terminal devices sharing the same communication standard as the terminal device to be accessed is identified as the router to be accessed. If the router with the largest number of terminal devices sharing the same communication standard as the terminal device to be accessed is not unique, then the signal strength of these routers is obtained, and the router with the strongest signal strength is identified as the router to be accessed.
[0079] It is understood that the router mentioned in the embodiments of this application is an example of a wireless network device. In some embodiments, the router may also be replaced by other wireless network devices used to provide a wireless network, such as a wireless access point (AP). Furthermore, a terminal device connected to a wireless network may be referred to as a station (STA).
[0080] The router's load information can be the router's load level. The load level is the ratio of the router's used data traffic to its total data traffic. For example, when the ratio of the router's used data traffic to its total data traffic is greater than (or greater than or equal to) a set value, the router is determined to be heavily loaded; when the ratio is less than or equal to (or less than) a set value, the router is determined to be lightly loaded.
[0081] In some embodiments, the router's load information may also be represented in other forms that can characterize the router's load or available load, and this application does not limit this.
[0082] Based on the above scheme, the terminal device to be connected can filter through the available routers according to their status information to determine the optimal router for connection. If the router with the fewest connected terminal devices is not unique, the terminal device can further select the router with the most connected terminal devices (those using the same communication standard) from among the routers with the fewest connected terminal devices. This allows the terminal device to obtain the optimal network speed and can improve the overall network communication performance to a certain extent.
[0083] For example, such as Figure 4 As shown, when a user holding the terminal device 300 to be accessed is in area 209, which is covered by the signals of router 103 and router 104, the terminal device 300 will obtain the status information of router 103 and router 104. This status information may include the signal strength information, communication standard information, load information, and information of the connected terminal devices of router 103 and router 104. The connected terminal device information may include the communication standard supported by each connected terminal device and the number of connected terminal devices.
[0084] Then, the terminal device 300 can determine the load status of routers 103 and 104 based on their load information. When it is determined that both routers 103 and 104 are lightly loaded (i.e., both routers 103 and 104 are lightly loaded routers), the number of connected devices in routers 103 and 104 is determined, and the router with the fewest connected devices is selected as the router to be connected. Since both router 103 and router 104 have three connected terminal devices, meaning the router with the fewest connected terminal devices is not unique, the number of connected terminal devices that match the communication standard supported by the terminal device 300 and connected to routers 103 and 104 is further determined. Figure 4 As shown, the terminal device 300 to be accessed supports the AX communication standard. Router 103 has three terminal devices that support the AX communication standard, and router 104 has three terminal devices that support the AC communication standard. At this time, the terminal device 300 to be accessed will communicate with router 103, which has the most terminal devices that support the AX communication standard.
[0085] Before detailing the wireless network access method for the terminal device of this application, the terminal device provided in the embodiments of this application will be described in detail first. The terminal device provided in the embodiments of this application can be any device capable of communicating with a router, such as a mobile phone, computer, robot vacuum cleaner, speaker, etc. The terminal device provided in this application will be described in detail below.
[0086] As shown in Figure 5, the terminal device may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, buttons 101, and a display screen 102, etc.
[0087] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device. In other embodiments of this application, the terminal device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0088] Processor 110 may include one or more processing units, such as processing modules or circuits of a central processing unit (CPU), graphics processing unit (GPU), digital signal processor (DSP), microprocessor (MCU), AI (Artificial Intelligence) processor, or field programmable gate array (FPGA). Different processing units may be independent devices or integrated into one or more processors. Processor 110 may include storage units for storing instructions and data. In some embodiments, the storage unit in processor 110 is a cache memory 180.
[0089] It is understood that, in the embodiments of this application, the wireless network access method of the terminal device described above can be executed by the processor 110.
[0090] The power module 140 may include a power supply, a power management component, etc. The power supply may be a battery. The power management component manages the charging of the power supply and the power supply to other modules. In some embodiments, the power management component includes a charging management module and a power management module. The charging management module receives charging input from a charger; the power management module connects to the power supply and the processor 110. The power management module receives input from the power supply and / or the charging management module to supply power to the processor 110, the display 102, the camera 170, and the wireless communication module 120, etc.
[0091] The mobile communication module 130 may include, but is not limited to, antennas, power amplifiers, filters, and low-noise amplifiers (LNAs). The mobile communication module 130 can provide solutions for wireless communication applications, including 2G / 3G / 4G / 5G, on terminal devices. The mobile communication module 130 can receive electromagnetic waves via the antenna, filter and amplify the received electromagnetic waves, and transmit them to a modem processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna. In some embodiments, at least some functional modules of the mobile communication module 130 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 130 and at least some modules of the processor 110 may be housed in the same device. Wireless communication technologies can include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), Bluetooth (BT), Global Navigation Satellite System (GNSS), Wireless Local Area Networks (WLAN), Near Field Communication (NFC), Frequency Modulation (FM) and / or Field Communication (NFC), Infrared (IR) technology, etc.
[0092] The wireless communication module 120 may include an antenna, which enables the transmission and reception of electromagnetic waves. The wireless communication module 120 can provide solutions for wireless communication applications on terminal devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. Terminal devices can communicate with networks and other devices through wireless communication technologies.
[0093] In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the terminal device may also be located in the same module.
[0094] The display screen 102 is used to display human-computer interaction interfaces, images, videos, etc. The display screen 102 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0095] The sensor module 190 may include proximity sensors, pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
[0096] The audio module 150 is used to convert digital audio information into analog audio signals for output, or to convert analog audio input into digital audio signals. The audio module 150 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 150 may be located in the processor 110, or some functional modules of the audio module 150 may be located in the processor 110. In some embodiments, the audio module 150 may include a speaker, a handset, a microphone, and a headphone jack.
[0097] Camera 170 is used to capture still images or videos. An object passes through the lens to generate an optical image that is projected onto a photosensitive element. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP (Image Signal Processing) to be converted into a digital image signal. The terminal device can realize the shooting function through the ISP, camera 170, video codec, GPU (Graphics Processing Unit), display screen 102, and application processor.
[0098] Interface module 160 includes an external memory interface, a universal serial bus (USB) interface, and a subscriber identification module (SIM) card interface. The external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 110 through the external memory interface to perform data storage. The USB interface is used for communication between the terminal device and other terminal devices. The SIM card interface is used to communicate with the SIM card installed in the terminal device 10, for example, to read or write phone numbers stored in the SIM card.
[0099] In some embodiments, the terminal device further includes buttons 101, a motor, and indicators. Buttons 101 may include volume buttons, a power button, etc. The motor is used to generate a vibration effect in the terminal device, for example, vibrating when the user's terminal device is called to prompt the user to answer the call. The indicator may include a laser indicator, a radio frequency indicator, an LED indicator, etc.
[0100] Figure 5b A software structure block diagram of a terminal device according to an embodiment of this application is shown.
[0101] In some embodiments, the software architecture of a terminal device can be divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0102] The application layer can include a series of application packages.
[0103] like Figure 5b As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS. The WLAN application can be used to connect the terminal device to a wireless network device.
[0104] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0105] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0106] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0107] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0108] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0109] A phone manager is used to provide communication functions for terminal devices. For example, it manages call status (including connection and disconnection).
[0110] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, etc.
[0111] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0112] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0113] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0114] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0115] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0116] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0117] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0118] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0119] A 2D graphics engine is a graphics engine for 2D drawing.
[0120] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0121] The wireless network access method for the terminal device provided in the embodiments of this application will be described in detail below with reference to the aforementioned terminal device. Figure 6 A schematic diagram of a wireless network access method for a terminal device according to an embodiment of this application is shown. It can be understood that this method can be executed by the processor of the terminal device when it is not connected to a wireless network. Figure 6 As shown, the method includes:
[0122] 601: The first alternative router that the terminal device to be accessed has determined to meet the access conditions.
[0123] In some embodiments, a router may spontaneously and periodically broadcast its own device information, which may include address information (e.g., Media Access Control Address (MAC) address), identification information (e.g., Basic Service Set ID (BSSID)), and signal strength. The terminal device seeking access can receive the device information from nearby routers and determine a first alternative router that meets the access conditions based on the device information.
[0124] In some embodiments, if the information broadcast by the router includes information for calculating the Signal-to-Interference plus Noise Ratio (SINR), the terminal device to be accessed can calculate the SINR of each router and determine the maximum signal transmission rate of each router based on the SINR. Optionally, the access condition can be that the router's signal transmission rate is greater than or equal to a set rate value, that is, a router with a signal transmission rate greater than or equal to the set rate value is selected as the first candidate router.
[0125] In some embodiments, if the information broadcast by the router does not include information for calculating the signal-to-noise ratio, the access condition can be that the router's signal strength is greater than or equal to a set strength value. That is, the method for determining the first candidate router that meets the access condition is: among multiple routers whose signals the terminal device to be accessed can detect, the router with a signal strength greater than or equal to the set strength value is selected as the first candidate router. In other words, this step is a preliminary screening of multiple routers whose signals the terminal device to be accessed can detect. It can be understood that the number of the first candidate routers can be one or more.
[0126] The set strength value can be a fixed empirical value that can meet the signal access requirements, such as 80 dBm.
[0127] In some embodiments, if the information broadcast by the router includes information for calculating the signal-to-noise ratio, the access conditions may also be that the router's signal transmission rate is greater than or equal to a set rate value, and the router's signal strength is greater than or equal to a set strength value.
[0128] In some embodiments, the relevant information for calculating the signal-to-noise ratio (SNR) can be the power density of the signal of each router and the noise power density of the router signal. The terminal device can determine the SNR of each router based on the power density of the signal of each router and the noise power density of the router signal.
[0129] The set rate value can be configured according to the service requirements of the terminal device. Specifically, the set rate value must meet the minimum signal transmission rate required for the terminal device to perform the necessary services. For example, when the terminal device to be accessed is a mobile phone, its services typically include online video playback, music playback, and message sending. Assuming that online video playback requires the highest transmission rate, the set rate value can be the minimum rate required for online video playback.
[0130] 602: The terminal device to be accessed obtains the status information sent by each of the first alternative routers; the status information may include the router's signal strength, communication standard, information on the terminal devices connected to the router, and the router's load information.
[0131] For example, in this embodiment of the application, the terminal device to be accessed can send a scan frame to each alternative router to obtain the status information of the alternative router. When the first alternative router receives the scan frame from the terminal device, it will return the status information to the terminal device. The status information may include the router's signal strength, communication standard, information of the terminal devices connected to the router, and the router's load information, etc. In some embodiments, since the router's own device information broadcast in step 601 already includes the signal strength, the status information at this time may not include the signal strength.
[0132] In some embodiments, the downstream terminal device information of the router may include the number of terminal devices that have been connected to the router and the communication standards supported by each connected terminal device.
[0133] In some embodiments, the router's load information can be the router's load capacity. The load capacity is the ratio of the router's used data traffic to its total data traffic. The router's load information can also be represented in other forms that characterize the router's load capacity or available load capacity; this application does not limit the representation of these forms.
[0134] 603: The terminal device to be accessed determines whether there is a lightly loaded router among the first candidate routers based on the load information of each first candidate router.
[0135] When a lightly loaded router is detected, the process switches to step 6041, where the terminal device to be connected will select the lightly loaded router with the fewest connected terminal devices from the first backup routers as the second backup router.
[0136] If it is determined that there is no lightly loaded router, then proceed to step 6042, and the terminal device to be connected will select the router with the fewest connected terminal devices from the first backup routers as the second backup router.
[0137] It can be understood that a lightly loaded router is a router whose load is less than or equal to a set value. For example, if the set value is 60%, then a router whose load is less than or equal to 60% is a lightly loaded router.
[0138] 6041: The terminal device to be connected will select the lightly loaded router with the fewest connected terminal devices from the first alternative routers as the second alternative router.
[0139] 6042: The terminal device to be connected will select the router with the fewest connected terminal devices among the first backup routers as the second backup router.
[0140] 605: The terminal device to be connected determines whether the number of second alternative routers is one.
[0141] If the judgment result is yes, there is only one second alternative router, then proceed to 6061, and the terminal device to be connected will use the second alternative router as the router to be connected.
[0142] If the judgment result is negative, and there are multiple second alternative routers, then proceed to step 6062. The terminal device to be accessed obtains the communication standard supported by the terminal device itself. Based on the terminal device information connected to each second alternative router, determine the number of terminal devices connected to each second alternative router that have the same communication standard as the terminal device to be accessed. The router with the largest number of terminal devices connected to it that have the same communication standard as the terminal device to be accessed is selected as the third alternative router.
[0143] 6061: The terminal device to be connected uses the second backup router as the router to be connected.
[0144] 6062: The terminal device to be accessed obtains the communication standard supported by the terminal device itself, determines the number of terminal devices with the same communication standard as the terminal device to be accessed connected to each second alternative router based on the terminal device information connected to each second alternative router, and selects the router with the fewest number of terminal devices with the same communication standard as the terminal device to be accessed as the third alternative router.
[0145] For example, if the communication standard supported by the terminal device to be accessed is AC, the number of terminal devices supporting AC connected to each second alternative router is determined based on the terminal device information connected to each second alternative router, and the router with the largest number of terminal devices supporting AC connected to the second alternative router is selected as the third alternative router.
[0146] When the communication standard supported by the terminal device to be accessed is AX, the number of terminal devices supporting AX connected to each second alternative router is determined according to the terminal device information of each second alternative router, and the router with the largest number of terminal devices supporting AX connected to the second alternative router is selected as the third alternative router.
[0147] It is understood that in this embodiment of the application, any communication standard other than the AX communication standard supported by the terminal device to be accessed can be defined as the AC communication standard.
[0148] 607: The terminal device to be connected determines whether the number of third alternative routers is one.
[0149] If the judgment result is yes, there is only one third alternative router, then proceed to step 6081, and the terminal device to be connected will use the third alternative router as the router to be connected.
[0150] If the judgment result is negative, and there are multiple third-option routers, then proceed to step 6082, where the terminal device to be connected will select the router with the highest signal strength among the multiple third-option routers as the router to be connected.
[0151] 6081: The terminal device to be connected selects the third alternative router as the router to be connected.
[0152] 6082: The terminal device to be connected selects the router with the highest signal strength among multiple third-party alternative routers as the router to be connected.
[0153] It's understandable that in some cases, when the communication standard supported by the terminal device to be connected matches the communication standard supported by the connected router, it can improve the network speed of the terminal device and the throughput of the router to some extent. Therefore, in the case of multiple third-party backup routers, the router with the same communication standard as the terminal device can be used as the fourth backup router. If there is only one fourth backup router, it is used as the router to be connected. If there are multiple fourth backup routers, the router with the strongest signal among them is used as the router to be connected.
[0154] It is understood that in the above embodiments, the terminal device to be accessed can obtain status information such as signal strength, communication standard, connected terminal device information, and load information sent by each first candidate router at once. In some embodiments, the above status information can also be obtained multiple times according to actual needs. For example, the terminal device can first obtain the load information of the first candidate router, and then determine whether there is a lightly loaded router among the first candidate routers based on the load information of each first candidate router. After obtaining the result of whether a lightly loaded router exists or not, the device can determine the router with the fewest connected terminal devices and the router with the fewest connected terminal devices of the same communication standard as the terminal device to be accessed, and obtain the connected terminal device information of the corresponding candidate router. Then, the device can determine the need for the router with the highest signal strength and obtain the signal strength of the corresponding candidate router, etc.
[0155] In addition, in some embodiments, the terminal device to be accessed can directly obtain its own device information broadcast by the router in step 601 and the status information broadcast by the router in step 602 at one time, and then determine the first candidate router based on its own device information and the final router to be accessed based on the status information.
[0156] In some embodiments, the device information and status information broadcast by the router can be information that the router spontaneously and periodically broadcasts. When the terminal device to be accessed receives the device information and status information broadcast by the router, it can determine the router to be accessed according to the aforementioned steps. In other embodiments, the terminal device to be accessed can actively send a scan frame, and the router receiving the scan frame will send its own device information and status information to the terminal device to be accessed.
[0157] Based on the above scheme, the terminal device to be connected can choose a router with a smaller load and the largest number of terminal devices with the same communication standard as the terminal device to be connected to for access. In this way, the terminal device to be connected can obtain the optimal network speed and improve the communication performance of the entire network to a certain extent.
[0158] The method for determining the first candidate router in step 601 above will be described in further detail below.
[0159] Figure 7 The diagram shows a flowchart illustrating a method for determining a first candidate router according to an embodiment of this application. Figure 7 As shown, the specific method for determining alternative routers may include:
[0160] 701: Obtain device information of the routers near the terminal device to be connected.
[0161] In some embodiments, a router may spontaneously and periodically broadcast its own device information, which may include address information (e.g., MAC address), identification information (e.g., BSSID identifier), signal strength, and signal-to-noise ratio related information. Accordingly, a terminal device may receive the device information broadcast by a nearby router.
[0162] In some embodiments, the terminal device may also send a scan frame, and the router that receives the scan frame will send its own device information to the terminal device to be accessed.
[0163] It is understood that in some embodiments, the information broadcast by the router includes information for calculating the signal-to-noise ratio (SNR). In this case, the SNR of each router can be calculated based on the router's SNR information, and the maximum transmission rate of each router can be determined based on the SNR. Routers with a maximum transmission rate greater than or equal to a set rate value are selected as the first candidate routers.
[0164] In some embodiments, the relevant information for calculating the signal-to-noise ratio (SNR) can be the power density of the signal of each router and the noise power density of the router signal. The terminal device can determine the SNR of each router based on the power density of the signal of each router and the noise power density of the router signal.
[0165] In some embodiments, if the information broadcast by the router does not include information for calculating the signal-to-noise ratio, the terminal device may use a router with a signal strength greater than or equal to a set strength value as the first alternative router.
[0166] 702: Calculate the signal-to-noise ratio (SNR) of each router based on the SNR-related information, and determine the maximum signal transmission rate of each router based on the SNR.
[0167] 703: Select the router with the highest signal transmission rate greater than or equal to the set rate value as the first alternative router.
[0168] It is understood that in this embodiment of the application, the set rate value can be set according to the service requirements of the terminal device, that is, the set rate value needs to meet the minimum transmission rate at which the terminal device can perform the required service.
[0169] For example, when the terminal device is a mobile phone, its services are generally online video playback, music playback, and information sending. Assuming that the transmission rate required for online video playback is the highest, then the set rate value can be the minimum rate required to watch the video.
[0170] The following example illustrates the overall process of a terminal device accessing a wireless network, using the example that the device to be accessed can directly obtain its own device information and status information broadcast by the router in one go. Figure 8This diagram illustrates the overall process of a terminal device accessing a wireless network when it actively sends a scan frame. Figure 8 As shown, the access method includes the following steps:
[0171] 801: The terminal device to be connected broadcasts a scan frame to router A and router B;
[0172] In this embodiment of the application, the terminal device can actively send scan frames to router A and router B.
[0173] 802: Router A and Router B receive the scan frame and return their own device information and status information.
[0174] It is understandable that the router that receives the scan frame will return its own device information and status information.
[0175] 803: The terminal device to be accessed is based on Figure 6 The description shown indicates that the router to be connected is router A.
[0176] The terminal device to be connected determines that the router to be connected is router A according to the above steps. At this time, the terminal device to be connected will send an authentication request to router A.
[0177] 804: The terminal device to be accessed sends an authentication request to router A.
[0178] 805: Router A sends an authentication response to the terminal device to be connected.
[0179] 806: The terminal device to be connected sends an association request to router A.
[0180] 807: Router A sends an association confirmation to the terminal device.
[0181] 808: The terminal device to be connected establishes a connection with router A.
[0182] It is understood that in some embodiments, the router can periodically broadcast its own device information and status information. When the terminal device to be accessed receives the self-device information and status information broadcast by the router, it can then... Figure 6 The relevant description shown identifies the router to be connected to and establishes a communication connection with the router to be connected to.
[0183] Figure 9 This diagram illustrates the overall process of a terminal device accessing a wireless network when a router spontaneously broadcasts its own device and status information. Figure 9 As shown, the access method includes the following steps:
[0184] 901: Router A and Router B broadcast their own device information and status information.
[0185] In this embodiment, the router can proactively broadcast its own device information and status information. Terminal devices receiving this broadcast information can determine which router to connect to. The device information may include address information (e.g., MAC address), identification information (e.g., BSSID identifier), and signal strength. The router's status information includes its communication standard, information on connected terminal devices, and its load information. In some embodiments, the status information may also include the router's signal strength.
[0186] 902: The terminal device to be accessed is based on... Figure 6 The description shown indicates that the router to be connected is router A.
[0187] It is understood that in this embodiment of the application, when the router’s broadcast information includes its own device information and status information, then in step 602 above, the terminal device to be accessed no longer needs to actively send a scan frame to the first alternative router, and can directly obtain the status information of the first alternative router from the broadcast information received from the router.
[0188] When the terminal device to be connected determines that the router to be connected is router A according to the above steps, the terminal device to be connected will send an authentication request.
[0189] 903: The terminal device to be accessed sends an authentication request to router A.
[0190] 904: Router A sends an authentication response to the terminal device to be connected.
[0191] 905: The terminal device to be connected sends an association request to router A.
[0192] 906: Router A sends an association confirmation to the terminal device to be connected.
[0193] 907: The terminal device to be connected establishes a connection with router A.
[0194] The following explains the access mechanism of wireless networks for terminal devices during movement, such as... Figure 10 As shown, when the user is at position d1, terminal device 300 connects to router A. As the user moves forward, the signal strength of router A detected by terminal device 300 will become weaker and weaker. When the user reaches position d2, the signal strength of router A detected by terminal device 300 is less than a set value. Therefore, according to... Figure 6 The method shown sends a scan frame. When routers B, C, and D near location d2 receive the scan frame sent by terminal device 300, they will send a response signal. At this time, terminal device 300 can... Figure 6 The method shown identifies the router to be accessed from among the routers that send response signals and establishes a communication connection with the router to be accessed. For example, terminal device 300 can determine that the optimal router to be accessed is router D according to the wireless network access method provided in this embodiment of the application, and then terminal device 300 establishes a communication connection with router D.
[0195] The following section uses experimental data to illustrate the changes in router throughput and terminal device network speed when the access devices in the router are different in the embodiments of this application.
[0196] Table 1 shows the changes in router throughput when the number of terminal devices connected to the same router varies in the embodiments of this application. Specifically, Table 1 presents the data results obtained from a network topology test conducted on a network simulator 3 (NS3) with a bandwidth of 80MHz and a distance of 10 meters. As mentioned earlier, the routers supporting the AX communication standard used for testing in Table 1 are compatible with terminal devices supporting both AC and AX communication standards; that is, the routers supporting the AX communication standard used for testing in Table 1 can connect to terminal devices supporting both AC and AX communication standards.
[0197] Table 1
[0198]
[0199] As shown in Table 1, when all four connected devices to the router support the AX standard, the router's total throughput is 336.56 Mbps; when all four connected devices support the AC standard, the total throughput is 321.49 Mbps; when three of the four connected devices support AX and one supports AC, the total throughput is 184.77 Mbps; when three of the four connected devices support AC and one supports AX, the total throughput is 258.14 Mbps; and when two of the four connected devices support AX and two support AC, the total throughput is 225.98 Mbps.
[0200] Therefore, it can be seen that when the four terminal devices connected to the router all support the same communication standard, the router's total throughput is much greater than when the four terminal devices connected to the router support different communication standards.
[0201] Furthermore, as shown in Table 1, when all four terminal devices connected to the router support the AX standard, their network speeds are 83.90 Mbps, 84.36 Mbps, 84.11 Mbps, and 84.17 Mbps, respectively. When all four terminal devices connected to the router support the AC standard, their network speeds are 80.06 Mbps, 80.72 Mbps, 80.58 Mbps, and 80.12 Mbps, respectively. When three of the four terminal devices connected to the router support the AX standard and one supports the AC standard, their network speeds are 46.53 Mbps, 46.91 Mbps, 46.81 Mbps, and 44.51 Mbps, respectively. When two of the four connected devices to the router support AC network standards and two support AX network standards, the network speeds of the four connected devices are 54.73 Mbps, 61.28 Mbps, 58.00 Mbps, and 51.93 Mbps, respectively. When three of the four connected devices to the router support AC network standards and one supports AX network standards, the network speeds of the four connected devices are 65.67 Mbps, 64.67 Mbps, 64.48 Mbps, and 63.30 Mbps, respectively.
[0202] Therefore, it can be seen that when all four terminal devices connected to the router support the same communication standard, the network speed of the terminal devices connected to the router is much greater than that of the terminal devices connected to the router when they support different communication standards.
[0203] Table 2 below shows the simulation results of the changes in the total throughput of the two routers when there are two routers and eight terminal devices in the space, and the access devices of the two routers are different, in the embodiments of this application:
[0204] Table 2
[0205]
[0206] As can be seen from Table 2, when both routers have the same network standard connected to their respective terminal devices, the total throughput of the two routers is significantly greater than when the terminal devices connected to the two routers have different network standards. This demonstrates that using the method provided in this embodiment to select the router for a terminal device can effectively improve the overall network communication performance.
[0207] Using the method in this application embodiment, the terminal device to be accessed can select a router with a lower load for access. Alternatively, if there are multiple routers with the lowest load, the terminal device to be accessed can further select the router with the most connected terminal devices of the same communication standard as the terminal device to be accessed from among the multiple routers with the lowest load. In this way, the terminal device can obtain the optimal network speed and the throughput of the routers in the whole network can be improved to a certain extent, thereby improving the communication performance of the whole network to a certain extent.
[0208] The various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as computer programs or program code executable on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0209] Program code can be applied to input commands , The system performs the functions described in this application and generates output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, the processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application-specific integrated circuit (ASIC), or a microprocessor.
[0210] The program code can be implemented using a high-level procedural language or an object-oriented programming language to communicate with the processing system. Assembly language or machine language can also be used when needed. In fact, the mechanisms described in this application are not limited to any particular programming language. In either case, the language can be a compiled language or an interpreted language.
[0211] In some cases, embodiments of this application may be implemented in hardware, firmware, software, or any combination thereof. Embodiments of this application may also be implemented as instructions carried or stored thereon on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine-readable (e.g., computer-readable) form, including but not limited to floppy disks, optical disks, CD-ROMs, magneto-optical disks, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic cards or optical cards, flash memory, or tangible machine-readable storage for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in the form of electrical, optical, acoustic, or other propagation signals. Therefore, machine-readable media include any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine-readable (e.g., computer-readable) form.
[0212] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.
[0213] It should be noted that all units / modules mentioned in the device embodiments of this application are logical units / modules. Physically, a logical unit / module can be a physical unit / module, a part of a physical unit / module, or a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important factor; the combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed in this application. Furthermore, to highlight the innovative aspects of this application, the above-described device embodiments of this application have not introduced units / modules that are not closely related to solving the technical problems proposed in this application. This does not mean that the above-described device embodiments do not contain other units / modules.
[0214] It should be noted that in the examples and description of this patent, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0215] Although this application has been illustrated and described with reference to certain preferred embodiments thereof, those skilled in the art should understand that various changes in form and detail may be made thereto without departing from the spirit and scope of this application.
Claims
1. A wireless network access method, applied to a terminal device, characterized in that, include: The terminal device acquires status information of multiple wireless network devices, and the status information of each wireless network device includes information on the downstream terminal devices and load information of each wireless network device. Based on the status information of each wireless network device and the communication standard information of the terminal device, a wireless network device that meets the preset conditions is selected from the plurality of wireless network devices as the network access device of the terminal device; The step of selecting a wireless network device that meets preset conditions from the plurality of wireless network devices based on the status information of each wireless network device and the communication standard information of the terminal device includes: The second candidate wireless network device is determined based on the status information of each wireless network device. When there are multiple second alternative wireless network devices, determine the communication standard information of each terminal device connected to each second alternative wireless network device; Obtain the communication standard information of the terminal device, and determine the number of terminal devices connected to each of the second alternative wireless network devices that have the same communication standard information as the terminal device; The second alternative wireless network device with the largest number of connected terminal devices that have the same communication standard information as the terminal device is selected as the third alternative wireless network device. When the number of the third alternative wireless network devices is one, the third alternative wireless network device is used as the wireless network device that meets the preset conditions; The communication standard information of the terminal device is determined based on the communication protocol used by the terminal device when connecting to the wireless network.
2. The wireless network access method according to claim 1, characterized in that, The status information of the wireless network devices also includes signal strength; determining the second candidate wireless network device based on the status information of each wireless network device includes: Based on the signal strength of each wireless network device, a first candidate wireless network device with a signal strength greater than or equal to a set strength value is determined. The second candidate wireless network device is determined based on the load information of the first candidate wireless network device. The load information of the first candidate wireless network device includes the ratio of the used data traffic of the first candidate wireless network device to the total data traffic of the first candidate wireless network device.
3. The wireless network access method according to claim 1, characterized in that, The status information also includes signal strength and signal-to-noise ratio related information; determining the second candidate wireless network device based on the status information of each wireless network device includes: The signal transmission rate of each wireless network device is determined based on the signal-to-noise ratio information of each wireless network device. Among the wireless network devices, the wireless network device with a signal transmission rate greater than or equal to a set value is selected as the first candidate wireless network device; or, among the wireless network devices, the wireless network device with a signal transmission rate greater than or equal to a set value and a signal strength greater than or equal to a set strength value is selected as the first candidate wireless network device. The second candidate wireless network device is determined based on the load information of the first candidate wireless network device.
4. The wireless network access method according to any one of claims 1-3, characterized in that, The information of the connected terminal devices of the wireless network device includes the number of connected terminal devices and the communication standard information of each connected terminal device.
5. The wireless network access method according to claim 2 or 3, characterized in that, The step of determining the second candidate wireless network device based on the load information of the first candidate wireless network device includes: The load status of each of the first candidate wireless network devices is determined based on the load information of each of the first candidate wireless network devices; When it is determined that there is a first alternative wireless network device with a light load, the number of downstream terminal devices of the first alternative wireless network device with a light load is determined. The first alternative wireless network device with the fewest connected terminal devices among the first alternative wireless network devices with light load is selected as the second alternative wireless network device.
6. The wireless network access method according to claim 5, characterized in that, Determining the load status of each of the first candidate wireless network devices based on the load information of each first candidate wireless network device includes: When the ratio of the used data traffic of the first candidate wireless network device to the total data traffic of the first candidate wireless network device is greater than or equal to a set ratio, the load condition of the first candidate wireless network device is determined to be overloaded. When the ratio of the used data traffic of the first candidate wireless network device to the total data traffic of the first candidate wireless network device is less than or equal to or less than the set ratio, the load condition of the first candidate wireless network device is determined to be lightly loaded.
7. The wireless network access method according to any one of claims 5-6, characterized in that, Also includes: When it is determined that the load conditions of the first candidate wireless network devices are all heavy load, the number of downstream terminal devices of each of the first candidate wireless network devices is determined. The wireless network device with the fewest connected terminal devices among the first candidate wireless network devices is selected as the second candidate wireless network device. When the number of the second alternative wireless network devices is one, the second alternative wireless network device is selected as the wireless network device that meets the preset conditions.
8. The wireless network access method according to claim 1, characterized in that, Also includes: When the number of the second alternative wireless network devices is one, the second alternative wireless network device is selected as the wireless network device that meets the preset conditions.
9. The wireless network access method according to claim 1, characterized in that, Also includes: When there are multiple third alternative wireless network devices, the third alternative wireless network device with the highest signal strength among the multiple third alternative wireless network devices is selected as the wireless network device that meets the preset conditions.
10. The wireless network access method according to claim 8, characterized in that, Also includes: When there are multiple third alternative wireless network devices, the third alternative wireless network device whose communication standard information is consistent with the communication standard information of the terminal device is selected as the fourth alternative wireless network device. When the number of the fourth alternative wireless network devices is one, the fourth alternative wireless network device is selected as the wireless network device that meets the preset conditions.
11. The wireless network access method according to claim 10, characterized in that, Also includes: When there are multiple fourth candidate wireless network devices, the fourth candidate wireless network device with the highest signal strength among the multiple fourth candidate wireless network devices is selected as the wireless network device that meets the preset conditions.
12. The wireless network access method according to any one of claims 1-11, characterized in that, The wireless network device is a wireless router or a wireless access point.
13. An electronic device, characterized in that, include: A memory for storing instructions executed by one or more processors of an electronic device, and a processor, one of the one or more processors of the electronic device, for performing the wireless network access method according to any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on an electronic device, cause the electronic device to perform the wireless network access method according to any one of claims 1 to 12.
15. A computer program product, characterized in that, The instructions include, when the computer program product is run on a computer, causing the computer to perform the wireless network access method according to any one of claims 1 to 12.