CN115551053A - Network access method, device, terminal equipment and access point equipment - Google Patents

Network access method, device, terminal equipment and access point equipment Download PDF

Info

Publication number
CN115551053A
CN115551053A CN202211174729.1A CN202211174729A CN115551053A CN 115551053 A CN115551053 A CN 115551053A CN 202211174729 A CN202211174729 A CN 202211174729A CN 115551053 A CN115551053 A CN 115551053A
Authority
CN
China
Prior art keywords
access point
connection information
information
devices
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211174729.1A
Other languages
Chinese (zh)
Inventor
张雄伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211174729.1A priority Critical patent/CN115551053A/en
Publication of CN115551053A publication Critical patent/CN115551053A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a network access method, a network access device, terminal equipment and access point equipment, and belongs to the technical field of communication. The method comprises the following steps: receiving beacon frames broadcasted by at least two access point devices, wherein the beacon frames contain device connection information of the access point devices, and the device connection information is used for representing the number of connected terminal devices of the access point devices; determining a target access point device from the at least two access point devices according to the device connection information and the signal strength information of each of the at least two access point devices; and connecting the target access point device.

Description

Network access method, device, terminal equipment and access point equipment
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a network access method, apparatus, terminal device, and access point device.
Background
In the prior art, when a wireless terminal user connects to a public wireless network (WIFI), a Basic Service Set Identifier (BSSID) with a strongest signal is generally selected according to a WIFI scanning result in a current environment to perform network connection. When the number of wireless terminal users is large, according to the current BSSID selection strategy, the wireless terminal users may select the same BSSID at a high probability, which may cause an excessive number of terminals connected to a single Access Point (AP), and further cause a low average bandwidth and a low uplink and downlink throughput rate of each terminal connected to the AP.
Disclosure of Invention
The embodiment of the application aims to provide a network access method, which can solve the problem that in the existing wireless network connection technology, the number of terminals connected by a single AP is easily excessive, so that the average bandwidth and the uplink and downlink throughput rate of each terminal are low.
In a first aspect, an embodiment of the present application provides a network access method, which is executed by a terminal device, and the method includes:
receiving beacon frames broadcasted by at least two access point devices, wherein the beacon frames contain device connection information of the access point devices, and the device connection information is used for representing the number of connected terminal devices of the access point devices;
determining a target access point device from the at least two access point devices according to the device connection information and the signal strength information of each of the at least two access point devices;
and connecting the target access point device.
In a second aspect, an embodiment of the present application provides a network access method, which is performed by an access point device, and the method includes:
determining the equipment connection information of the access point equipment according to the quantity information of the terminal equipment currently connected with the access point equipment, wherein the equipment connection information is used for representing the quantity of the terminal equipment connected with the access point equipment;
and sending a beacon frame, wherein the beacon frame comprises the equipment connection information, and the beacon frame is used for enabling the terminal equipment to determine the target access point equipment needing to be connected.
In a third aspect, an embodiment of the present application provides a network access apparatus, which is disposed in a terminal device, and the network access apparatus includes:
a receiving module, configured to receive a beacon frame broadcast by at least two access point devices, where the beacon frame includes device connection information of the access point devices, and the device connection information is used to characterize the number of connected terminal devices of the access point devices;
a first determining module, configured to determine a target access point device from the at least two access point devices according to the device connection information and the signal strength information of each of the at least two access point devices;
a connection module, configured to connect to the target access point device.
In a fourth aspect, an embodiment of the present application provides a network access apparatus, which is disposed in an access point device, and the network access apparatus includes:
a second determining module, configured to determine, according to information about the number of terminal devices currently connected to the access point device, device connection information of the access point device, where the device connection information is used to represent the number of terminal devices connected to the access point device;
and the broadcast module is used for sending a beacon frame, wherein the beacon frame comprises the equipment connection information, and the beacon frame is used for enabling the terminal equipment to determine the target access point equipment needing to be connected.
In a fifth aspect, the present application provides a terminal device, where the electronic device includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the network access method according to the first aspect.
In a sixth aspect, the present application provides an access point device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the network access method according to the second aspect.
In a seventh aspect, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the network access method according to the first aspect; or implementing the steps of the network access method as described in the second aspect.
In an eighth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement the network access method according to the first aspect; or implementing a network access method as described in the second aspect.
In a ninth aspect, the present application provides a computer program product, which is stored in a storage medium and is executed by at least two processors to implement the network access method according to the first aspect; or implementing a network access method as described in the second aspect.
In the embodiment of the application, the terminal device receives the beacon frames of the at least two access point devices, and then confirms the target access point device of the at least two access point devices according to the device connection information and the signal strength information carried in the beacon frames, so that the number of the terminal devices connected by the access point devices is relatively balanced, the situation that one access point device is connected with too many terminal devices is avoided, and the average bandwidth and the uplink and downlink throughput rate of the terminal device are improved.
Drawings
Fig. 1 is a flowchart of a network access method according to an embodiment of the present application;
fig. 2 is a basic structure diagram of a beacon frame provided in an embodiment of the present application;
fig. 3 is a basic structure diagram of element information provided in an embodiment of the present application;
fig. 4 is a flowchart of a network access method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a network access apparatus according to an embodiment of the present application;
fig. 6 is a structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a network access apparatus according to an embodiment of the present application;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The network access method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In the prior art, when a terminal device performs wireless connection in a public WIFI environment, all BSSIDs in the current WIFI environment are scanned, and each BSSID corresponds to a Received Signal Strength Indication (RSSI). And after the scanning is finished, selecting BSSID corresponding to the strongest RSSI for connection.
In this case, if the number of terminal devices connected in the public WIFI environment is large, a plurality of terminal devices may be simultaneously connected to an AP of one BSSID, which may further cause the following problems:
first, the load of a single Ap is high. The higher load causes the overall delay of the Ap when forwarding various data packets to be increased, and even abnormal phenomena such as packet loss, no forwarding, slow forwarding, wrong forwarding and the like occur, which causes unnecessary retransmission in the network and reduces the network smoothness rate of the terminal device.
Second, the average bandwidth and throughput rate are lower. It will be appreciated that the average bandwidth of the end devices is equal to the total bandwidth divided by the number of connected end devices. Since a large number of connections of a single Ap will result in a low average bandwidth of all wireless terminals below the Ap, especially in a scenario such as video and download, which requires a high throughput, the average bandwidth is significantly affected.
And thirdly, the WIFI second-layer link has large competition. Because all wireless terminal users are connected with the same BSSID, and the Ap corresponding to the BSSID only works in one channel, only one wireless device can transmit or receive a packet in the same time period according to a specified competition strategy, and other devices have to retreat back to wait for the next time slot in which the packet can be transmitted or received. Therefore, the more devices working in the same channel, the longer the backoff waiting time is, and the time delay of the whole terminal device below the Ap is increased.
The average bandwidth and the uplink and downlink throughput rate of each terminal device connected to the AP device are low.
The embodiment of the present application provides a network access method to solve the above problem.
And configuring the broadcasted beacon frame and the device connection information at the AP device. The terminal equipment scans the beacon frame of the AP equipment in a public WIFI environment, and then determines equipment connection information. And the terminal equipment performs comprehensive judgment through the equipment connection information and the signal intensity information and selects one AP equipment for connection. The AP equipment updates the equipment connection information after being connected with the terminal equipment, so that the equipment connection information received by other terminal equipment is changed, and then other AP equipment is selected when the other terminal equipment carries out comprehensive judgment according to the connection information and the signal intensity information. By the method, the quantity balance of the terminal equipment connected with each AP equipment in the plurality of AP equipment is realized, the condition that one AP equipment is connected with too many terminal equipment is avoided, the average bandwidth and the uplink and downlink throughput rate of the terminal equipment are further improved, and the time delay is reduced.
The network access method provided by the embodiment of the present application is described in detail below with respect to a terminal and an access point device.
Referring to fig. 1, fig. 1 is a flowchart of a network access method provided in an embodiment of the present application, which is executed by a terminal device, and as shown in fig. 1, the method includes the following steps:
step S101, receiving beacon frames broadcasted by at least two access point devices, wherein the beacon frames comprise device connection information of the access point devices, and the device connection information is used for representing the number of connected terminal devices of the access point devices.
The device connection Information is Downlink Control Information (DCI). The device connection information is used to characterize the terminal device conditions to which the access point device is connected, i.e. including the number of connected terminal devices.
It should be understood that the WIFI to which the terminal device is connected is divided into a home personal AP and a public network AP. The terminal Device may be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or a vehicle-mounted Device. When the terminal equipment starts to be connected, firstly, the indication information is continuously received or the WIFI environment is scanned, and the current public WIFI environment is determined. After determining that the current access point device is in the public WIFI environment, the terminal device scans and confirms BSSIDs of all AP devices, and records DCI information and RSSI information corresponding to each BSSID, that is, receives a beacon frame broadcast by each access point device of the at least two access point devices in this step.
The beacon frame includes DCI information and RSSI information.
Step S102, determining a target access point device from the at least two access point devices according to the device connection information and the signal strength information of each access point device of the at least two access point devices.
It should be understood that the terminal device determines the target access point device according to the DCI information and the RSSI information, but the RSSI information of the access point device does not change significantly, so that the DCI information broadcasted by the access point device has different values at different times or under different conditions, and the terminal device determines the target access point device according to the DCI information. For example, the terminal device receives a beacon frame broadcast by the first access point device, where the beacon frame includes DCI information carrying the number of connected terminal devices, and when the number of terminal devices is less than a set number, the first access point device satisfies an access condition, and the access point device is a target access point device; and under the condition that the number of the terminal devices is greater than or equal to the set number, the first access point device does not meet the access condition, and the access point device is not the target access point device.
In this embodiment, the content of the DCI information is defined as the number of terminal devices connected to the access point device, which is described in detail in the following embodiments.
And step S103, connecting the target access point equipment.
In the embodiment of the application, the terminal device receives the beacon frames of the at least two access point devices, and then confirms the target access point device of the at least two access point devices according to the device connection information and the signal strength information carried in the beacon frames, so that the number of the terminal devices connected by the access point devices is relatively balanced, the situation that one access point device is connected with too many terminal devices is avoided, and the average bandwidth and the uplink and downlink throughput rate of the terminal device are improved.
Optionally, the determining, according to the device connection information and the signal strength information of each of the at least two access point devices, a target access point device from the at least two access point devices includes:
respectively carrying out weighted calculation on the equipment connection information and the signal strength information of each access point equipment to determine the score of each access point equipment;
determining an access point device with the highest score of the at least two access point devices as the target access point device.
It should be understood that the score of the access point device is related to the RSSI of the access point device, but there is still a difference. For example, the terminal device includes a first access point device and a second access point device in a public WIFI environment, where the RSSI corresponding to the first access point device is 50, the RSSI corresponding to the second access point device is 40, but the score of the first access point device is 20, and the score of the second access point device is 30, and at this time, the terminal device is connected to the second access point device.
The score of each access point device represents the comprehensive situation of the device connection information and the signal strength information of each access point, and the higher the score is, the higher the speed of the terminal device and the access point device after connection is.
In this embodiment, when the terminal device receives beacon frames broadcast by at least two access point devices, the terminal device determines that one access point device is a target access point device from the at least two access point devices. In this embodiment, the device connection information and the signal strength information of each access point device are respectively weighted and calculated, the score of each access point device is determined, and the access point device with the highest score is determined as the target access point device, so that the average bandwidth and the uplink and downlink throughput rate of the terminal device are improved.
Optionally, the device connection information includes a connected number and a maximum connectable number;
the performing a weighted calculation on the device connection information and the signal strength information of each access point device, and determining a score of each access point device includes:
determining a ratio of the number of connected to the maximum number of connectable devices of each access point device as a connection rate of each access point device;
and performing weighted calculation on the signal strength information and the connection rate of each access point device according to the first weight corresponding to the signal strength information and the second weight corresponding to the device connection information, and determining the score of each access point device.
Illustratively, the terminal device performs weighted calculation on the device connection information and the signal strength information of each access point device, and the calculation process is represented by the following formula:
m=i×RSSI+j×(1-r)×100
wherein m is used to characterize the score; the RSSI is used for representing the value of the RSSI; r is used for representing the connection rate of the access point equipment to the terminal equipment; i and j are used to characterize the weighting coefficients, i and j being constants.
For example, the terminal device scans three BSSIDs, where parsing the first BSSID confirms that the first RSSI is 70, r is 0.2; analyzing the second BSSID to confirm that the second RSSI is 80 and r is 0.7; the third BSSID was analyzed to confirm that the third RSSI was 70, and r was 0.1. In this example, assuming that i = j =0.5, it is confirmed that the score of each BSSID is:
m =75 for the first BSSID; m =50 for the second BSSID; m =80 for the third BSSID.
If the terminal equipment adopts the prior art when confirming the target access point equipment, the terminal equipment is connected with the access point equipment corresponding to the second BSSID; if the terminal device adopts the method provided by the embodiment of the application when confirming the target access point device, the terminal device is connected with the access point device corresponding to the third BSSID.
As can be seen from the above data, for the access point device corresponding to the second BSSID, the connected terminal device is much more than the terminal devices connected to the access point devices corresponding to the other two BSSIDs, and the average bandwidth and the uplink and downlink throughput rate are lower; for the access point device corresponding to the third BSSID, although the RSSI of the access point device is weaker than that of the access point device corresponding to the second BSSID, the number of the connected terminal devices is smaller, and the average bandwidth and the uplink and downlink throughput rate of the connected terminal devices are higher.
Compared with the prior art, the network access method provided by the embodiment of the application is more reasonable, and the average bandwidth and the uplink and downlink throughput rate of each terminal device can be effectively improved.
Optionally, the information element of the beacon frame includes a target number position, a field of the target number position is used to indicate the device connection information, and the target number position is an unused number position in the information element.
Referring to fig. 2, fig. 2 is a basic structure diagram of a beacon frame provided in the embodiment of the present application. The Media Access Control (MAC) headers of all beacon frames are the same, and the Information Element (IE) is an Element formed by the beacon frames, and the length of the Element is not constant, and usually includes an Element identification code (Element ID), a length of the Element ID, and a length of the Element ID, as shown in fig. 3. In the beacon frame, the element identification codes 43 to 49 are not used, and some of them may be used as device connection information.
For example, the element id 44 is set to the connected number and the maximum terminal access number, and the structure thereof is shown in table 1 below:
TABLE 1
Element identification code Length of Number of connected Maximum number of terminal accesses
44 2
In the above table, the device connection information only needs to store the information of two basic fields, so the length padding is 2; for the access point equipment, the self system supports to acquire the number of the connected terminal equipment, and the number generally does not exceed 255, so one byte is adopted for storage; for the access point device, its own system supports obtaining the maximum terminal access number, and the number generally does not exceed 255, so one byte is used for storage.
It should be understood that the access point device broadcasts the beacon frame carrying the element identification code, the terminal device analyzes and confirms the connected number and the maximum terminal access number of the access point device after receiving the beacon frame, and the terminal device performs weighting calculation to select an access point device with better average bandwidth and RSSI, thereby improving the internet experience of the user.
Referring to fig. 3, fig. 3 is a flowchart of a network access method provided in an embodiment of the present application, which is executed by an access point device, and as shown in fig. 3, the method includes the following steps:
step S301, determining the device connection information of the access point device according to the number information of the terminal devices currently connected to the access point device, wherein the device connection information is used for representing the number of the terminal devices connected to the access point device.
The access point device updates the device connection information when the number of the terminal devices connected to the access point device changes.
The access point device may be configured to determine the connection number of the terminal device once in a set period, update the device connection information when the number changes, and directly enter the next period without updating when the number does not change.
Step S302, sending a beacon frame, wherein the beacon frame includes the device connection information, and the beacon frame is used for enabling the terminal device to determine a target access point device to be connected.
The device connection information carried by the beacon frame is the latest device connection information.
It should be understood that the beacon frame includes device connection information and also includes RSSI information for each access point device. And after receiving the beacon frames of the multiple devices, the terminal device confirms the target access point device and connects the target access point device according to the device connection information and the RSSI information.
In the embodiment of the application, the access point device confirms the device connection information according to the number of the terminal devices, continuously updates the device connection information, and broadcasts the beacon frame carrying the device connection information, so that the terminal devices can select the access point device according to the device connection information and the RSSI information, the situation that one access point device is connected with too many terminal devices is avoided, and the effects of improving the average bandwidth and the uplink and downlink throughput rate of the terminal devices are achieved.
Optionally, the device connection information includes a connected number and a maximum connectable number, or the device connection information includes a remaining connectable number.
The connected number and the maximum connectable number may indicate the connection confirmation rate of the terminal device, and are not described herein again.
The device connection information includes the remaining connectable number, and the terminal device may confirm the score of the access point device through the remaining connectable number and the RSSI strength.
Illustratively, the score of the access point device is determined by the following equation:
n=f 1 ×RSSI+f 2 ×k
wherein n is used to characterize the access point score; the RSSI is used for representing the RSSI information of the access point equipment, and the k is used for representing the residual connectable number; f. of 1 And f 2 For characterizing the coefficients, f 1 And f 2 Is a constant.
For example, the remaining connectable number of the first access point device is 20, the rssi strength is 50; the remaining number of connectable second access point devices is 80, the rssi strength is 45, f 1 =1,f 2 =0.5. In this case, the first access point device is given a score of 60, the second access point device is given a score of 85, and the terminal device connects to the second access point device.
Optionally, after determining the device connection information and before sending the beacon frame, the method further includes:
adding a field for indicating the device connection information at a target number position in an information element of the beacon frame, wherein the target number position is an unused number position in the information element.
It should be understood that a field for indicating device connection information is added to an unused label position of a beacon frame broadcast by the access point device, the terminal device analyzes and confirms the connected number and the maximum terminal access number of the access point device after receiving the beacon frame, and then performs weighted calculation on the terminal device, so as to select an access point device with better average bandwidth and RSSI, thereby improving the internet experience of a user.
In the network access method provided by the embodiment of the present application, the execution subject may be a network access device. In the embodiments of the present application, a method for a network access device to perform network access is taken as an example, and a device of the network access method provided in the embodiments of the present application is described.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a network access apparatus provided in an embodiment of the present application, and the network access apparatus 500 is disposed in a terminal device, as shown in fig. 5, and includes:
a receiving module 501, configured to receive a beacon frame broadcasted by at least two access point devices, where the beacon frame includes device connection information of the access point devices, and the device connection information is used to characterize the number of connected terminal devices of the access point devices;
a first determining module 502, configured to determine a target access point device from the at least two access point devices according to the device connection information and the signal strength information of each of the at least two access point devices;
a connecting module 503, configured to connect to the target access point device.
Optionally, the first determining module 502 includes:
the first determining submodule is used for respectively carrying out weighted calculation on the device connection information and the signal strength information of each access point device and determining the score of each access point device;
a second determining sub-module, configured to determine, as the target access point device, an access point device with a highest score among the at least two access point devices.
Optionally, the device connection information includes a connected number and a maximum connectable number;
the first determination submodule includes:
a first determining unit configured to determine a ratio of the number of connected devices to a maximum number of connectable devices as a connection rate of each access point device;
and a second determining unit, configured to perform weighted calculation on the signal strength information and the connection rate of each access point device according to the first weight corresponding to the signal strength information and the second weight corresponding to the device connection information, and determine a score of each access point device.
Optionally, the information element of the beacon frame includes a target number position, a field of the target number position is used to indicate the device connection information, and the target number position is an unused number position in the information element.
In the embodiment of the application, the terminal device receives the beacon frame broadcast by each access point device in the plurality of access point devices, and then confirms the target access point device in the plurality of access point devices according to the device connection information and the signal strength information carried in the beacon frame, so that the number of the terminal devices connected by the plurality of access point devices is relatively balanced, the situation that one access point device is connected with too many terminal devices is avoided, and the average bandwidth and the uplink and downlink throughput rate of the terminal device are further improved.
The network access device in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet Computer, a notebook Computer, a palm top Computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (Television, TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The network access device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The network access device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601 and a memory 602, where the memory 602 stores a program or an instruction that can be executed on the processor 601, and when the program or the instruction is executed by the processor 601, the steps of the foregoing embodiment of the network access method are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The network module 702 is configured to receive a beacon frame broadcast by at least two access point devices, where the beacon frame includes device connection information of the access point devices, and the device connection information is used to characterize the number of connected terminal devices of the access point devices;
a processor 710 configured to determine a target access point device from the at least two access point devices according to the device connection information and the signal strength information of each of the at least two access point devices;
and connecting the target access point device.
The processor 710 is further configured to perform weighted calculation on the device connection information and the signal strength information of each access point device, respectively, and determine a score of each access point device;
determining an access point device with the highest score of the at least two access point devices as the target access point device.
Wherein the processor 710 is further configured to determine a ratio of the connected number to the maximum connectable number of each access point device as the connection rate of each access point device;
and performing weighted calculation on the signal strength information and the connection rate of each access point device according to the first weight corresponding to the signal strength information and the second weight corresponding to the device connection information, and determining the score of each access point device.
In the embodiment of the application, the beacon frame broadcasted by each access point device in the multiple access point devices is received, and then the target access point device in the multiple access point devices is confirmed according to the device connection information and the signal strength information carried in the beacon frame, so that the connection quantity of the multiple access point devices is balanced, the condition that one access point device is connected too much is avoided, and the average bandwidth and the uplink and downlink throughput rate are improved.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two portions, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in further detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area for storing a program or an instruction and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. Further, the memory 709 can include volatile memory or nonvolatile memory, or the memory 709 can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 709 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor, which mainly handles operations related to the operating system, user interface, application programs, etc., and a modem processor, which mainly handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 710.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a network access apparatus provided in an embodiment of the present application, and the network access apparatus 800 is disposed in an access point device, as shown in fig. 8, and includes:
a second determining module 801, configured to determine device connection information of the access point device according to information about the number of terminal devices currently connected to the access point device, where the device connection information is used to characterize the number of terminal devices connected to the access point device;
a broadcasting module 802, configured to send a beacon frame, where the beacon frame includes the device connection information, and the beacon frame is used to enable a terminal device to determine a target access point device that needs to be connected.
Optionally, the device connection information includes a connected number and a maximum connectable number, or the device connection information includes a remaining connectable number.
Optionally, the network access apparatus further includes:
an adding module, configured to add a field for indicating the device connection information at a target number position in an information element of the beacon frame, where the target number position is an unused number position in the information element.
In the embodiment of the application, the access point device confirms the device connection information according to the number of the terminal devices, updates continuously, and broadcasts the beacon frame carrying the device connection information, so that the terminal devices can select the access point device according to the device connection information and the RSSI information, the situation that one access point device is connected with too many terminal devices is avoided, and the effects of improving the average bandwidth and the uplink and downlink throughput rate of the terminal devices are achieved.
The network access device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet Computer, a notebook Computer, a palm top Computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (Television, TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The network access device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The network access device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 4, and is not described here again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in the embodiment of the present application, and includes a processor M01 and a memory 902, where the memory 902 stores a program or an instruction that can be executed on the processor 901, and when the program or the instruction is executed by the processor 901, the steps of the foregoing network access method embodiment are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation to the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to determine device connection information of the access point device according to information about the number of terminal devices currently connected to the access point device, where the device connection information is used to represent the number of terminal devices connected to the access point device;
a radio frequency unit 1001, configured to send a beacon frame, where the beacon frame includes the device connection information, and the beacon frame is used to enable a terminal device to determine a target access point device that needs to be connected.
Optionally, the processor 1010 is configured to add a field indicating the device connection information to a target number position in an information element of the beacon frame, where the target number position is an unused number position in the information element.
In the embodiment of the application, the access point device confirms the device connection information according to the number of the terminal devices, updates continuously, and broadcasts the beacon frame carrying the device connection information, so that the terminal devices can select the access point device according to the device connection information and the RSSI information, the situation that one access point device is connected with too many terminal devices is avoided, and the effects of improving the average bandwidth and the uplink and downlink throughput rate of the terminal devices are achieved.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or non-volatile memory, or the memory 1009 may include both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct bus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations related to the operating system, user interface, applications, etc., and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
An embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and the program or the instruction, when executed by the processor, implements each process of the network access method embodiment shown in fig. 1, or the program or the instruction, when executed by the processor, implements each process of the network access method embodiment shown in fig. 4, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process in the network access method embodiment shown in fig. 1, or to implement each process in the network access method embodiment shown in fig. 4, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement various processes of the network access method embodiment shown in fig. 1, or the program product is executed by at least one processor to implement various processes of the network access method embodiment shown in fig. 1, and the same technical effects can be achieved, and are not described herein again to avoid repetition.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (17)

1. A network access method, performed by a terminal device, the method comprising:
receiving beacon frames broadcasted by at least two access point devices, wherein the beacon frames contain device connection information of the access point devices, and the device connection information is used for representing the number of connected terminal devices of the access point devices;
determining a target access point device from the at least two access point devices according to the device connection information and the signal strength information of each of the at least two access point devices;
and connecting the target access point device.
2. The method of claim 1, wherein determining a target access point device from the at least two access point devices based on the device connection information and the signal strength information of each of the at least two access point devices comprises:
respectively carrying out weighted calculation on the equipment connection information and the signal strength information of each access point equipment to determine the score of each access point equipment;
determining an access point device with the highest score of the at least two access point devices as the target access point device.
3. The method of claim 2, wherein the device connection information comprises a connected number and a maximum connectable number;
the performing a weighted calculation on the device connection information and the signal strength information of each access point device, and determining a score of each access point device includes:
determining a ratio of the number of connected to the maximum number of connectable devices of each access point device as a connection rate of each access point device;
and performing weighted calculation on the signal strength information and the connection rate of each access point device according to the first weight corresponding to the signal strength information and the second weight corresponding to the device connection information, and determining the score of each access point device.
4. The method of claim 1, wherein an information element of the beacon frame comprises a target number position, and wherein a field of the target number position is used for indicating the device connection information, and wherein the target number position is an unused number position in the information element.
5. A network access method, performed by an access point device, the method comprising:
determining the equipment connection information of the access point equipment according to the quantity information of the terminal equipment currently connected with the access point equipment, wherein the equipment connection information is used for representing the quantity of the terminal equipment connected with the access point equipment;
and sending a beacon frame, wherein the beacon frame comprises the equipment connection information, and the beacon frame is used for enabling the terminal equipment to determine the target access point equipment needing to be connected.
6. The method of claim 5, wherein the device connection information comprises a connected number and a maximum connectable number, or wherein the device connection information comprises a remaining connectable number.
7. The method of claim 5, wherein after determining the device connection information and before transmitting the beacon frame, the method further comprises:
adding a field for indicating the device connection information at a target number position in an information element of the beacon frame, wherein the target number position is an unused number position in the information element.
8. A network access device is arranged in a terminal device, and is characterized in that the network access device comprises:
a receiving module, configured to receive a beacon frame broadcast by at least two access point devices, where the beacon frame includes device connection information of the access point devices, and the device connection information is used to characterize the number of connected terminal devices of the access point devices;
a first determining module, configured to determine a target access point device from the at least two access point devices according to the device connection information and the signal strength information of the at least two access point devices;
a connection module, configured to connect to the target access point device.
9. The network access apparatus of claim 8, wherein the first determining module comprises:
the first determining submodule is used for respectively carrying out weighted calculation on the equipment connection information and the signal strength information of each access point equipment and determining the score of each access point equipment;
a second determining sub-module, configured to determine, as the target access point device, an access point device with a highest score among the at least two access point devices.
10. The network access apparatus of claim 9, wherein the device connection information comprises a connected number and a maximum connectable number;
the first determination submodule includes:
a first determining unit, configured to determine a ratio of the connected number to a maximum connectable number of each access point device as a connection rate of each access point device;
and a second determining unit, configured to perform weighted calculation on the signal strength information and the connection rate of each access point device according to the first weight corresponding to the signal strength information and the second weight corresponding to the device connection information, and determine a score of each access point device.
11. The network access apparatus of claim 8, wherein the information element of the beacon frame comprises a target number position, and wherein a field of the target number position is used to indicate the device connection information, and wherein the target number position is an unused number position in the information element.
12. A network access apparatus disposed in an access point device, the network access apparatus comprising:
a second determining module, configured to determine, according to information about the number of terminal devices currently connected to the access point device, device connection information of the access point device, where the device connection information is used to represent the number of terminal devices connected to the access point device;
and the broadcast module is used for sending a beacon frame, wherein the beacon frame comprises the equipment connection information, and the beacon frame is used for enabling the terminal equipment to determine the target access point equipment needing to be connected.
13. The network access apparatus of claim 12, wherein the device connection information comprises a connected number and a maximum connectable number, or the device connection information comprises a remaining connectable number.
14. The network access apparatus of claim 12, wherein the network access apparatus further comprises:
an adding module, configured to add a field for indicating the device connection information at a target number position in an information element of the beacon frame, where the target number position is an unused number position in the information element.
15. A terminal device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the network access method of any of claims 1-4.
16. An access point device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the network access method of any of claims 5-7.
17. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the network access method according to any one of claims 1-4; or implementing the steps of the network access method according to any of claims 5-7.
CN202211174729.1A 2022-09-26 2022-09-26 Network access method, device, terminal equipment and access point equipment Pending CN115551053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211174729.1A CN115551053A (en) 2022-09-26 2022-09-26 Network access method, device, terminal equipment and access point equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211174729.1A CN115551053A (en) 2022-09-26 2022-09-26 Network access method, device, terminal equipment and access point equipment

Publications (1)

Publication Number Publication Date
CN115551053A true CN115551053A (en) 2022-12-30

Family

ID=84729347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211174729.1A Pending CN115551053A (en) 2022-09-26 2022-09-26 Network access method, device, terminal equipment and access point equipment

Country Status (1)

Country Link
CN (1) CN115551053A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030139197A1 (en) * 2001-11-19 2003-07-24 At&T Corp. WLAN having load balancing based on access point loading
CN103686938A (en) * 2012-09-26 2014-03-26 中国移动通信集团上海有限公司 Method, device and system for determining load state of access point (AP)
CN104469973A (en) * 2013-09-23 2015-03-25 联想(北京)有限公司 Information processing method and device and signal frame generating method and device
CN106879008A (en) * 2017-03-13 2017-06-20 联想(北京)有限公司 Cordless communication network information acquisition method and electronic equipment
CN107306436A (en) * 2016-04-25 2017-10-31 中兴通讯股份有限公司 The sending method of broadcast frame, access point determine method and device
CN109104753A (en) * 2017-06-21 2018-12-28 中兴通讯股份有限公司 wireless local area network access method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030139197A1 (en) * 2001-11-19 2003-07-24 At&T Corp. WLAN having load balancing based on access point loading
CN103686938A (en) * 2012-09-26 2014-03-26 中国移动通信集团上海有限公司 Method, device and system for determining load state of access point (AP)
CN104469973A (en) * 2013-09-23 2015-03-25 联想(北京)有限公司 Information processing method and device and signal frame generating method and device
CN107306436A (en) * 2016-04-25 2017-10-31 中兴通讯股份有限公司 The sending method of broadcast frame, access point determine method and device
CN106879008A (en) * 2017-03-13 2017-06-20 联想(北京)有限公司 Cordless communication network information acquisition method and electronic equipment
CN109104753A (en) * 2017-06-21 2018-12-28 中兴通讯股份有限公司 wireless local area network access method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11212743B2 (en) Apparatus and method for connecting to a local area communication in a portable terminal
US9922546B2 (en) Remote control system and method for portable terminals
US7877085B2 (en) Portable electronic device capable of receiving distributed contents, content information server, and content list providing method for content distribution system and recording medium recording program for providing content list
US7536451B2 (en) Method for increasing standby time using access history to 1x ev-do network with access terminal and device thereof
CN109089261B (en) Method, apparatus, computer device and storage medium for wireless roaming triggering
US20230180112A1 (en) Access control method and apparatus, and communication device
US11178624B2 (en) Method of adjusting transmission power of terminal, mobile terminal, and storage device
CN109379498B (en) Electromagnetic interference control method and related device
CN108055687B (en) Wireless network connection method and device and terminal equipment
JP2007074730A (en) Method for connecting mobile communication terminal to its wireless data network
CN109548104B (en) Wireless network optimization method and mobile terminal
CN111866976A (en) Network switching method and device
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN111918288B (en) Communication method, communication device and electronic equipment
CN114585067B (en) SRS power control indication method, resource cluster division method and equipment
CN113727298B (en) Layer two identification determining method, device and terminal
CN115551053A (en) Network access method, device, terminal equipment and access point equipment
CN108337715B (en) Wireless network connection method, device, terminal equipment and storage medium
US7957338B2 (en) Apparatus and method for providing data service in portable terminal
CN112929065B (en) Electronic equipment control method and device and electronic equipment
CN114710804A (en) Data transmission adjusting method and device, electronic equipment and readable storage medium
CN114125739A (en) Network switching method and device, electronic equipment and storage medium
US20080153514A1 (en) Apparatus and method for providing real-time information in portable communication system
CN108337718B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN114071749A (en) Monitoring method, device and equipment of physical downlink control channel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination