[go: up one dir, main page]

CN106454998B - Wireless local area network access method, device and terminal - Google Patents

Wireless local area network access method, device and terminal Download PDF

Info

Publication number
CN106454998B
CN106454998B CN201610867048.1A CN201610867048A CN106454998B CN 106454998 B CN106454998 B CN 106454998B CN 201610867048 A CN201610867048 A CN 201610867048A CN 106454998 B CN106454998 B CN 106454998B
Authority
CN
China
Prior art keywords
node
ssid
access node
relay
access
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.)
Active
Application number
CN201610867048.1A
Other languages
Chinese (zh)
Other versions
CN106454998A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610867048.1A priority Critical patent/CN106454998B/en
Publication of CN106454998A publication Critical patent/CN106454998A/en
Application granted granted Critical
Publication of CN106454998B publication Critical patent/CN106454998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • 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
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Landscapes

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

Abstract

The disclosure relates to a wireless local area network access method, a device and a terminal, wherein the method comprises the following steps: sending a wireless local area network access broadcast message; receiving a response message sent by at least one receiving node, wherein the response message comprises an SSID of the at least one receiving node; determining an access node list according to the SSID of the at least one receiving node, wherein the access node list comprises an AP and at least one relay, and the SSID of the at least one relay is calculated and obtained by using a preset algorithm according to the SSID of the AP; and determining a target access node according to the RSSI of the AP and the RSSI of the relay corresponding to the access node list. The method provides more optional access nodes for the terminal through the SSID, thereby ensuring that the terminal selects the node with the best signal transmission quality, and improving the effect of accessing the terminal into the wireless local area network.

Description

Wireless local area network access method, device and terminal
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a terminal for accessing a wireless local area network.
Background
With the development of wireless local area networks, intelligent devices can access the internet by accessing the wireless local area networks to meet various requirements of the intelligent devices.
In the related art, the intelligent device is mainly accessed to the wireless local area network through the router in the wireless local area network, and if the distance between the router and the intelligent device in the wireless local area network is long, the signal transmission quality between the intelligent device and the router is affected.
Disclosure of Invention
The embodiment of the disclosure provides a wireless local area network access method, a wireless local area network access device and a wireless local area network access terminal. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a wireless local area network access method, including:
sending a wireless local area network access broadcast message;
receiving a response message sent by at least one receiving node, wherein the response message comprises a Service Set Identifier (SSID) of the at least one receiving node;
determining an access node list according to the SSID of the at least one receiving node, wherein the access node list comprises a wireless access node (AP) and at least one relay, and the SSID of the at least one relay is calculated and obtained by using a preset algorithm according to the SSID of the AP;
and determining a target access node according to the Received Signal Strength Indication (RSSI) of the AP and the RSSI of the relay corresponding to the access node list.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when a terminal needs to access a wireless local area network, firstly, nodes which can be used as access nodes in the wireless local area network are determined according to the SSID, wherein the nodes not only comprise the AP, but also comprise the relay, and then, the node with the best signal transmission quality is selected from the nodes. Namely, more optional access nodes are provided for the terminal through the SSID, so that the terminal is ensured to select the node with the best signal transmission quality, and the effect of accessing the terminal to the wireless local area network is improved.
Further, the determining a target access node according to the RSSI of the received signal strength indication of the AP and the RSSI of the relay corresponding to the access node list includes:
obtaining a maximum value of the RSSI of the AP and the RSSI of the relay in the access node list, and taking the AP or the relay with the maximum RSSI as the target access node.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
by selecting the node with the maximum RSSI as the access node, the quality of signal transmission after the terminal accesses the access node can be greatly improved.
Further, the determining a list of access nodes according to the SSID of the at least one receiving node comprises:
adding an AP in the at least one receiving node into the access node list;
if the first receiving node is a relay, judging whether the SSID of the first receiving node is obtained by using the preset algorithm according to the SSID of the AP, if so, adding the first receiving node into the access node list;
wherein the first receiving node is any one of the at least one receiving node except the AP.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the terminal determines whether the node is an optional access node or not through the same preset algorithm as that of the relay when the SSID is generated, so that the selected nodes are guaranteed to be relays in the current wireless local area network, and the correctness of the selected nodes is guaranteed.
Further, the determining whether the SSID of the first receiving node is obtained by using the preset algorithm according to the SSID of the AP, and if so, adding the first receiving node to the access node list includes:
and judging whether the SSID of the first receiving node is the combination of the SSID of the AP and a preset suffix name or not, and if so, adding the first receiving node into the access node list.
Further, still include:
and if the RSSI of at least one node in the access node list is greater than the RSSI of the target access node, updating the target access node to the node with the maximum RSSI in the at least one node.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
after the terminal accesses the current target access node, a new target access node can be further determined according to the RSSI, so that the signal transmission quality between the node accessed by the terminal and the terminal is optimal.
Further, before the sending the wireless local area network access broadcast message, the method further includes:
and acquiring the SSID and the password of the AP in the wireless local area network through configuration.
Further, after determining a target access node according to the RSSI of the AP and the RSSI of the relay corresponding to the access node list, the method further includes:
and if the target access node is the relay, establishing connection with the relay through the SSID of the relay and the password of the AP.
Further, the relay is any terminal establishing a connection relationship with the AP.
According to a second aspect of the embodiments of the present disclosure, there is provided a wireless local area network access apparatus, including:
a transmitting module configured to transmit a wireless local area network access broadcast message;
a receiving module configured to receive a response message sent by at least one receiving node, wherein the response message includes a Service Set Identifier (SSID) of the at least one receiving node;
a first determining module, configured to determine an access node list according to an SSID of the at least one receiving node, where the access node list includes a wireless access node AP and at least one relay, and the SSID of the at least one relay is calculated according to the SSID of the AP by using a preset algorithm;
a second determining module configured to determine a target access node according to the RSSI of the AP and the RSSI of the relay corresponding to the access node list.
Further, the second determining module includes:
a second determining sub-module configured to obtain a maximum value of the RSSI of the AP and the RSSI of the relay in the access node list, and take the AP or the relay with the maximum RSSI as the target access node.
Further, the first determination submodule includes:
a first adding submodule configured to add an AP of the at least one receiving node to the access node list;
a second adding submodule configured to determine, when a first receiving node is a relay, whether an SSID of the first receiving node is obtained by using the preset algorithm according to an SSID of the AP, and if so, add the first receiving node to the access node list;
wherein the first receiving node is any one of the at least one receiving node except the AP.
Further, the second adding submodule is specifically configured to:
and judging whether the SSID of the first receiving node is the combination of the SSID of the AP and a preset suffix name or not, and if so, adding the first receiving node into the access node list.
Further, still include:
an updating module configured to update the target access node to a node with a maximum RSSI among the at least one node when the RSSI of the at least one node in the access node list is greater than the RSSI of the target access node.
Further, still include:
an obtaining module configured to obtain, by configuration, an SSID and a password of the AP in a wireless local area network before the sending module sends a wireless local area network access broadcast message.
Further, still include:
an establishing module configured to establish a connection with the relay through an SSID of the relay and a password of the AP if the target access node is the relay after the second determining module determines the target access node.
Further, the relay is any terminal establishing a connection relationship with the AP.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
sending a wireless local area network access broadcast message;
receiving a response message sent by at least one receiving node, wherein the response message comprises a Service Set Identifier (SSID) of the at least one receiving node;
determining an access node list according to the SSID of the at least one receiving node, wherein the access node list comprises a wireless access node (AP) and at least one relay, and the SSID of the at least one relay is calculated and obtained by using a preset algorithm according to the SSID of the AP;
and determining a target access node according to the Received Signal Strength Indication (RSSI) of the AP and the RSSI of the relay corresponding to the access node list.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when a terminal needs to access a wireless local area network, firstly, nodes which can be used as access nodes in the wireless local area network are determined according to the SSID, wherein the nodes not only comprise the AP, but also comprise the relay, and then, the node with the best signal transmission quality is selected from the nodes. Namely, more optional access nodes are provided for the terminal through the SSID, so that the terminal is ensured to select the node with the best signal transmission quality, and the effect of accessing the terminal to the wireless local area network is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a system architecture diagram of a wireless local area network access method of the present disclosure;
fig. 2 is a flow chart illustrating a wireless local area network access method according to an example embodiment;
fig. 3 is a flow chart illustrating a wireless local area network access method according to an example embodiment;
fig. 4 is a complete flow diagram illustrating a method of wireless local area network access in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating a wireless local area network access device in accordance with an exemplary embodiment;
fig. 6 is a block diagram illustrating a wireless local area network access device in accordance with an exemplary embodiment;
fig. 7 is a block diagram illustrating a wireless local area network access device in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating a wireless local area network access device in accordance with an exemplary embodiment;
fig. 9 is a block diagram illustrating a wireless local area network access device in accordance with an exemplary embodiment;
fig. 10 is a block diagram illustrating a wireless local area network access device in accordance with an exemplary embodiment;
FIG. 11 is a block diagram illustrating entities of a terminal in accordance with an exemplary embodiment;
fig. 12 is a block diagram illustrating a terminal 1300 according to an example embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 1 is a system architecture diagram of a wlan access method of the present disclosure, as shown in fig. 1, the method is applied to a wlan, for example, a wlan in a home, where the method relates to a wireless access node (AP), a relay, and a terminal, where the AP may be a wireless router, and the relay may be a device that has successfully accessed to the wlan, that is, the relay is any terminal that establishes a connection relationship with the AP. The terminal is a device to be accessed to the wireless local area network. After the terminal successfully accesses the wireless lan, the terminal may also assume the role of a relay in addition to completing its own function, and further, as shown in fig. 1, when a new terminal desires to access the wireless lan, the new terminal may access the wireless lan through the access AP or through the access relay, so as to achieve flexibility of access and ensure quality of transmission signals.
The station is described in terms of a terminal, and mainly relates to a process of determining that an access device is selected as an AP or a specific relay when the terminal accesses a wireless local area network.
Fig. 2 is a flowchart illustrating a wlan access method according to an exemplary embodiment, where as shown in fig. 2, the method is performed as follows:
in step S101, the terminal transmits a wireless local area network access broadcast message.
Taking an example of a mobile phone accessing a wireless local area network, when a mobile phone located in a home needs to access the wireless local area network of the home, an access node scan is performed first, that is, a wireless local area network access broadcast message is sent to surrounding nodes, and a Service SetIdentifier (SSID) of an AP of the wireless local area network of the home is carried in the broadcast message.
The mobile phone may obtain the SSID of the AP of the wireless lan of the home in advance by a configuration method or the like, which will be described in detail below.
In step S102, the terminal receives a response message sent by at least one receiving node, where the response message includes an SSID of the at least one receiving node.
After the terminal sends out the wireless local area network access broadcast message, the node receiving the message judges according to the condition of the node, if a receiving node determines that the receiving node has the function of the access node, the receiving node sends a response message to the terminal, and the response message contains the SSID of the receiving node.
In step S103, the terminal determines an access node list according to the SSID of at least one receiving node, where the access node list includes an AP and at least one relay, and the SSID of the at least one relay is calculated by using a preset algorithm according to the SSID of the AP.
After the terminal sends out the access broadcast message of the wireless local area network, as long as the AP in the wireless local area network is in a normal working state, the AP sends out a response message to the terminal, and meanwhile, the node which is used as a relay in the wireless local area network also sends out the response message to the terminal. In addition, some nodes in non-current wireless local area networks may also receive the broadcast message and send a response message to the terminal.
When the terminal receives the response messages, the optional access nodes are screened out according to the SSID, and an access node list is formed. The method comprises the steps that in a specific wireless local area network, an AP has a unique SSID, and further, after a certain node accesses the wireless local area network and serves as a relay, the node serving as the relay also has the unique SSID, and the SSID is generated on the basis of the SSID of the AP according to a preset algorithm. Because the terminal has previously acquired the SSID of the AP of the current wireless local area network, the terminal can identify the AP and the relay in the current wireless local area network according to the SSID and a preset algorithm, and filter out nodes that do not meet requirements, such as nodes in other wireless local area networks.
Through the screening, the access nodes in the access node list determined by the terminal are all nodes which are located in the current wireless local area network and can be accessed by the terminal.
In step S104, the terminal determines a target access node according to a Received Signal Strength Indication (RSSI) of the AP corresponding to the access node list and the RSSI of the relay.
After the terminal screens out the nodes which are positioned in the current wireless local area network and can be accessed by the terminal, a node which can ensure the optimal signal transmission quality can be selected according to the RSSI of the nodes, and the connection with the node is established.
In this embodiment, when a terminal needs to access a wireless local area network, a node that can be an access node in the wireless local area network is determined according to an SSID, where the node includes not only an AP but also a relay, and then a node with the best signal transmission quality is selected from the nodes. Namely, more optional access nodes are provided for the terminal through the SSID, so that the terminal is ensured to select the node with the best signal transmission quality, and the effect of accessing the terminal to the wireless local area network is improved.
On the basis of the foregoing embodiment, the present embodiment relates to a specific method for a terminal to determine a target access node, that is, a specific implementation manner of the step S104 is as follows:
and acquiring the maximum value of the RSSI of the AP and the RSSI of the relay in the access node list, and taking the AP or the relay with the maximum RSSI as the target access node.
The RSSI is an index used for measuring the strength of a received signal, and after the terminal determines the access node list, the RSSI of each node in the access node list is obtained one by one, and the greater the RSSI is, the better the transmission effect is when the terminal transmits a signal with the access node.
For example, assuming that the current terminal is a mobile phone, the mobile phone is currently located in a certain bedroom corner of a home, and the AP of the wireless lan of the home is located in another bedroom corner with a longer distance, at this time, if the mobile phone directly accesses to the AP, the signal quality will be weaker, and if the method disclosed by the present disclosure is used, a plurality of devices have previously accessed to the wireless lan of the home and have a relay function, the mobile phone will select a node with the largest RSSI from the AP and the relays, for example, a smart lamp located in a middle living room of the home, and after the mobile phone accesses to the smart lamp, the quality of signal transmission will be greatly improved compared with that of signal transmission directly accessing to the AP.
In this embodiment, by selecting the node with the largest RSSI as the access node, the quality of signal transmission after the terminal accesses the access node can be greatly improved.
On the basis of the foregoing embodiments, the present embodiment relates to a specific method in which a terminal determines an access node list according to an SSID of at least one receiving node, that is, fig. 3 is a flowchart illustrating a wireless local area network access method according to an exemplary embodiment, and as shown in fig. 3, the foregoing step S103 specifically includes:
in step S201, the terminal adds the AP in the at least one receiving node to the access node list.
Referring to the foregoing description of fig. 1, an AP may be regarded as a router in a wireless local area network, that is, the wireless local area network performs data interaction with the internet through the AP, and therefore, in this step, the AP is first added to an access node list as one of the alternative access nodes of the terminal.
In step S202, if the first receiving node is a relay, it is determined whether the SSID of the first receiving node is obtained according to the SSID of the AP by using a predetermined algorithm, and if so, the first receiving node is added to the access node list.
Wherein the first receiving node is any one of the at least one receiving node except the AP.
The node currently serving as the relay needs to be accessed into the wireless local area network in advance and assumes the role of the relay, and as the relay, the node needs to have its own SSID like an AP.
When the terminal is screening the access nodes, whether the SSID of a certain node meets the requirement of the relay SSID in the current wireless local area network is judged according to the SSID of the AP based on the same preset algorithm, namely whether the SSID of the node is obtained according to a specific preset algorithm on the basis of the SSID of the AP is judged.
In this embodiment, the terminal determines whether the node is an optional access node through the same preset algorithm as that of the relay when generating the SSID, so as to ensure that the selected nodes are all relays in the current wireless local area network and ensure the correctness of the selected nodes.
In another embodiment, a preferred implementation manner of the step S202 is as follows:
and judging whether the SSID of the first receiving node is the combination of the SSID of the AP and a preset suffix name or not, and if so, adding the first receiving node into the access node list.
That is, after a certain node is connected to the wireless lan and acts as a relay, the node first acquires the SSID of the AP and adds a preset suffix name to the SSID of the AP. For example, assuming that the SSID of the AP is "TEST" and the preset algorithm is "add suffix-IOT after the SSID of the AP", after a certain node a is used as a relay, the node a generates its SSID as "TEST-IOT" according to the preset algorithm. Since the SSID is a unique identifier of the node, node a needs to send the generated SSID to the surrounding nodes in a broadcast manner, and after another node B also serves as a relay session, although the preset algorithm is the same, the SSID of node B needs to be different from the SSID of node a, so node B may add a corresponding number on the basis of "TEST-IOT" as its own SSID, for example, the SSID generated by node B is "TEST-IOT 1", and node B may also broadcast the generated SSID. By analogy, the SSIDs of other nodes as relays can generate respective SSIDs on the basis of the node B according to the principle of numerical increment.
After the terminal receives the response message of each node, it only needs to judge whether the node is an optional access node according to a preset algorithm "add suffix-IOT after SSID of AP", that is, the terminal only judges whether the SSID of the node includes the SSID of AP and whether includes the suffix "-IOT", as long as the two conditions are satisfied, and the terminal does not need to judge for other fields in the SSID of the node.
In another embodiment, the method further comprises:
and if the RSSI of at least one node in the access node list is greater than the RSSI of the target access node, updating the target access node to the node with the maximum RSSI in the at least one node.
In this embodiment, the method is performed after the terminal has successfully accessed the wireless lan, that is, after the terminal has successfully accessed the AP or a relay of the wireless lan, when the location of the terminal is changed, the terminal may determine the RSSI of each node in the access node list again, and if the RSSI of a certain node C is greater than the RSSI of the current target access node, it may be determined that the signal transmission quality of the terminal and the node C is higher than that of the current target access node, so that the target access node is updated to the node C, and the terminal establishes a connection with the node C.
In addition to updating the target access node when the terminal location changes, the terminal may also perform periodic RSSI determination according to a certain period.
In this embodiment, after the terminal accesses the current target access node, a new target access node may be further determined according to the RSSI, thereby ensuring that the signal transmission quality between the node to which the terminal accesses and the terminal is optimal.
On the basis of the foregoing embodiment, the present embodiment relates to a specific method for a terminal to acquire an SSID of an AP in a wireless local area network, that is, before step S101, the method further includes:
and the terminal acquires the SSID and the password of the AP in the wireless local area network through configuration.
Since the terminal determines the access node according to the SSID of the AP, the terminal needs to acquire the SSID of the AP in the wireless lan before that, so as to ensure that the access node is determined according to the SSID of the AP subsequently. Meanwhile, the terminal also needs to acquire the password of the AP for subsequent use in establishing connection with the access node.
As an alternative, the terminal may obtain the SSID and password of the AP in a specific SmartConfig manner. For example, for an intelligent camera, a user may use an Application (APP) provided by a manufacturer of the intelligent camera to input an SSID and a password of an AP of a wireless lan in the APP, so that the intelligent camera may obtain the SSID and the password of the AP of the wireless lan.
On the basis of the foregoing embodiments, the present embodiment relates to a process in which the terminal establishes a connection with the target access node after determining the target access node, that is, after the foregoing step S104, the method further includes:
and if the target access node is the relay, establishing connection with the relay through the SSID of the relay and the password of the AP.
When the relay accesses the wireless local area network, the relay already acquires the password of the AP of the wireless local area network, wherein the relay can also acquire the password of the AP of the wireless local area network by the configured method. Furthermore, if a terminal needs to access the relay, the relay needs to provide the password of the AP of the wlan to the relay, and the relay determines whether the terminal can access successfully according to the password of the AP provided by the terminal.
Therefore, on the basis of the aforementioned configuration to acquire the password of the AP of the wireless local area network, when the terminal has determined that the target access node is the relay and needs to establish a connection with the relay, the terminal establishes a connection with the relay by the SSID of the relay and the password of the AP of the current wireless local area network.
Fig. 4 is a flowchart illustrating a wlan access method according to an exemplary embodiment, where, as shown in fig. 4, the method is performed in a complete manner:
in step S301, the terminal acquires the SSID and the password of the AP in the wireless lan by configuration.
In step S302, the terminal transmits a wireless local area network access broadcast message.
In step S303, the terminal receives a response message sent by at least one receiving node, where the response message includes an SSID of the at least one receiving node.
In step S304, the terminal adds the AP in the at least one receiving node to the access node list.
In step S305, if the first receiving node is a relay, it is determined whether the SSID of the first receiving node is obtained according to the SSID of the AP by using a predetermined algorithm, and if so, the first receiving node is added to the access node list.
In step S306, the terminal determines the target access node according to the RSSI of the AP and the RSSI of the relay corresponding to the access node list.
In step S307, if the target access node is the relay, a connection is established with the relay by the SSID of the relay and the password of the AP.
The specific execution method of the above steps can refer to the foregoing embodiments, and details are not described here.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating a wlan access apparatus according to an exemplary embodiment, where, as shown in fig. 5, the apparatus includes:
a sending module 501 configured to send a wireless local area network access broadcast message.
A receiving module 502 configured to receive a response message sent by at least one receiving node, where the response message includes an SSID of the at least one receiving node.
The first determining module 503 is configured to determine an access node list according to the SSID of the at least one receiving node, where the access node list includes an AP and at least one relay, and the SSID of the at least one relay is calculated according to the SSID of the AP by using a preset algorithm.
The second determining module 504 is configured to determine the target access node according to the RSSI of the AP corresponding to the access node list and the RSSI of the relay.
Fig. 6 is a block diagram illustrating a wireless lan access apparatus according to an exemplary embodiment, where as shown in fig. 6, the second determining module 504 includes:
a second determining sub-module 5041 configured to obtain the maximum value of the RSSI of the AP and the RSSI of the relay in the access node list, and to regard the AP or the relay having the maximum RSSI as the target access node.
Fig. 7 is a block diagram of a wireless local area network access device according to an exemplary embodiment, where as shown in fig. 7, the first determining submodule 503 includes:
a first adding sub-module 5031 configured to add an AP in at least one receiving node to the access node list.
The second adding sub-module 5032 is configured to, when the first receiving node is a relay node, determine whether an SSID of the first receiving node is obtained by using a preset algorithm according to an SSID of an AP, and if so, add the first receiving node to the access node list.
Wherein the first receiving node is any one of the at least one receiving node except the AP.
In another embodiment, the second adding submodule 5032 is specifically configured to:
and judging whether the SSID of the first receiving node is the combination of the SSID of the AP and a preset suffix name or not, and if so, adding the first receiving node into the access node list.
Fig. 8 is a block diagram illustrating a wlan access apparatus according to an exemplary embodiment, where, as shown in fig. 8, the apparatus further includes:
an updating module 505 configured to update the target access node to a node with the highest RSSI among the at least one node when the RSSI of the at least one node in the access node list is greater than the RSSI of the target access node.
Fig. 9 is a block diagram illustrating a wlan access apparatus according to an exemplary embodiment, where, as shown in fig. 9, the apparatus further includes:
an obtaining module 506 configured to obtain, before the sending module 501 sends the wlan access broadcast message, an SSID and a password of an AP in the wlan through configuration.
Fig. 10 is a block diagram illustrating a wlan access apparatus according to an exemplary embodiment, where, as shown in fig. 10, the apparatus further includes:
an establishing module 507 configured to, after the second determining module 504 determines the target access node, establish a connection with the relay through the SSID of the relay and the password of the AP if the target access node is the relay.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating an entity of a terminal according to an exemplary embodiment, as shown in fig. 11, the terminal includes:
a memory 91 and a processor 92.
The memory 91 is used for storing executable instructions of the processor 92.
The processor 92 is configured to:
sending a wireless local area network access broadcast message;
receiving a response message sent by at least one receiving node, wherein the response message comprises a Service Set Identifier (SSID) of the at least one receiving node;
determining an access node list according to the SSID of the at least one receiving node, wherein the access node list comprises a wireless access node (AP) and at least one relay, and the SSID of the at least one relay is calculated and obtained by using a preset algorithm according to the SSID of the AP;
and determining a target access node according to the Received Signal Strength Indication (RSSI) of the AP and the RSSI of the relay corresponding to the access node list.
In the above terminal embodiments, it should be understood that the Processor 92 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. SIM cards, also known as subscriber identity cards, smart cards, must be installed in a digital mobile phone for use. That is, the information of the digital mobile phone client, the encrypted key and the contents of the user's phone book are stored on the computer chip. The steps of a method disclosed in connection with the embodiments of the present disclosure may be embodied directly in a hardware processor, or in a combination of hardware and software modules.
Fig. 12 is a block diagram illustrating a terminal 1300 according to an example embodiment. Among other things, terminal 1300 may be a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
Referring to fig. 12, terminal 1300 can include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input/output (I/O) interface 1312, a sensor component 1314, and a communication component 1316.
Processing component 1302 generally controls overall operation of terminal 1300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1302 can include one or more modules that facilitate interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate interaction between the multimedia component 1308 and the processing component 1302.
Memory 1304 is configured to store various types of data to support operation at terminal 1300. Examples of such data include instructions for any application or method operating on terminal 1300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1304 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 1306 provides power to the various components of terminal 1300. Power components 1306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 1300.
The multimedia component 1308 includes a touch-sensitive display screen between the terminal 1300 and the user that provides an output interface. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 1300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1310 is configured to output and/or input audio signals. For example, audio component 1310 includes a Microphone (MIC) configured to receive external audio signals when terminal 1300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.
The I/O interface 1312 provides an interface between the processing component 1302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 1314 includes one or more sensors for providing various aspects of state assessment to terminal 1300. For example, sensor assembly 1314 can detect an open/closed state of terminal 1300, the relative positioning of components, such as a display and keypad of terminal 1300, sensor assembly 1314 can also detect a change in position of terminal 1300 or a component of terminal 1300, the presence or absence of user contact with terminal 1300, orientation or acceleration/deceleration of terminal 1300, and a change in temperature of terminal 1300. The sensor assembly 1314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1316 is configured to facilitate communications between the terminal 1300 and other devices in a wired or wireless manner. The terminal 1300 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1316 also includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 1300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described wireless local area network access methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1304 comprising instructions, executable by the processor 1320 of the terminal 1300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of terminal 1300, enable terminal 1300 to perform a wireless local area network access method. The method comprises the following steps:
sending a wireless local area network access broadcast message;
receiving a response message sent by at least one receiving node, wherein the response message comprises a Service Set Identifier (SSID) of the at least one receiving node;
determining an access node list according to the SSID of the at least one receiving node, wherein the access node list comprises a wireless access node (AP) and at least one relay, and the SSID of the at least one relay is calculated and obtained by using a preset algorithm according to the SSID of the AP;
and determining a target access node according to the Received Signal Strength Indication (RSSI) of the AP and the RSSI of the relay corresponding to the access node list.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. A wireless local area network access method, comprising:
sending a wireless local area network access broadcast message, wherein the broadcast message carries a Service Set Identifier (SSID) of a wireless access node (AP);
receiving a response message sent by at least one receiving node, wherein the receiving node sending the response message is a receiving node with an access node function, and the response message comprises a Service Set Identifier (SSID) of the at least one receiving node;
determining an access node list according to the SSID of the at least one receiving node, wherein the access node list comprises a wireless access node (AP) and at least one relay, and the SSID of the at least one relay is calculated and obtained by using a preset algorithm according to the SSID of the AP;
determining a target access node according to the Received Signal Strength Indication (RSSI) of the AP and the RSSI of the relay corresponding to the access node list;
the determining a list of access nodes according to the SSID of the at least one receiving node comprises:
adding an AP in the at least one receiving node into the access node list;
if the first receiving node is a relay, judging whether the SSID of the first receiving node is obtained by using the preset algorithm according to the SSID of the AP, if so, adding the first receiving node into the access node list;
wherein the first receiving node is any one of the at least one receiving node except the AP.
2. The method of claim 1, wherein the determining a target access node according to the Received Signal Strength Indication (RSSI) of the AP and the RSSI of the relay corresponding to the access node list comprises:
obtaining a maximum value of the RSSI of the AP and the RSSI of the relay in the access node list, and taking the AP or the relay with the maximum RSSI as the target access node.
3. The method of claim 1, wherein the determining whether the SSID of the first receiving node is obtained from the SSID of the AP using the predetermined algorithm, and if so, adding the first receiving node to the access node list comprises:
and judging whether the SSID of the first receiving node is the combination of the SSID of the AP and a preset suffix name or not, and if so, adding the first receiving node into the access node list.
4. The method of claim 1, further comprising:
and if the RSSI of at least one node in the access node list is greater than the RSSI of the target access node, updating the target access node to the node with the maximum RSSI in the at least one node.
5. The method of any of claims 1-4, wherein prior to sending the WLAN access broadcast message, further comprising:
and acquiring the SSID and the password of the AP in the wireless local area network through configuration.
6. The method of claim 5, wherein after determining a target access node according to the Received Signal Strength Indication (RSSI) of the AP and the RSSI of the relay corresponding to the access node list, further comprising:
and if the target access node is the relay, establishing connection with the relay through the SSID of the relay and the password of the AP.
7. The method according to any of claims 1-4, wherein the relay is any terminal that establishes a connection with the AP.
8. A wireless local area network access device, comprising:
the wireless access node comprises a sending module, a receiving module and a sending module, wherein the sending module is configured to send a wireless local area network access broadcast message, and the broadcast message carries a Service Set Identifier (SSID) of a wireless access node (AP);
a receiving module configured to receive a response message sent by at least one receiving node, where the receiving node sending the response message is a receiving node having an access node function, and the response message includes a service set identifier SSID of the at least one receiving node;
a first determining module, configured to determine an access node list according to an SSID of the at least one receiving node, where the access node list includes a wireless access node AP and at least one relay, and the SSID of the at least one relay is calculated according to the SSID of the AP by using a preset algorithm;
a second determining module, configured to determine a target access node according to a received signal strength indication RSSI of the AP and an RSSI of the relay corresponding to the access node list;
the first determination submodule includes:
a first adding submodule configured to add an AP of the at least one receiving node to the access node list;
a second adding submodule configured to determine, when a first receiving node is a relay, whether an SSID of the first receiving node is obtained by using the preset algorithm according to an SSID of the AP, and if so, add the first receiving node to the access node list;
wherein the first receiving node is any one of the at least one receiving node except the AP.
9. The apparatus of claim 8, wherein the second determining module comprises:
a second determining sub-module configured to obtain a maximum value of the RSSI of the AP and the RSSI of the relay in the access node list, and take the AP or the relay with the maximum RSSI as the target access node.
10. The apparatus of claim 8, wherein the second adding submodule is specifically configured to:
and judging whether the SSID of the first receiving node is the combination of the SSID of the AP and a preset suffix name or not, and if so, adding the first receiving node into the access node list.
11. The apparatus of claim 8, further comprising:
an updating module configured to update the target access node to a node with a maximum RSSI among the at least one node when the RSSI of the at least one node in the access node list is greater than the RSSI of the target access node.
12. The apparatus of any one of claims 8-11, further comprising:
an obtaining module configured to obtain, by configuration, an SSID and a password of the AP in a wireless local area network before the sending module sends a wireless local area network access broadcast message.
13. The apparatus of claim 12, further comprising:
an establishing module configured to establish a connection with the relay through an SSID of the relay and a password of the AP if the target access node is the relay after the second determining module determines the target access node.
14. The apparatus according to any of claims 8-11, wherein the relay is any terminal that establishes a connection relationship with the AP.
15. A terminal, characterized in that the terminal comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
sending a wireless local area network access broadcast message, wherein the broadcast message carries a Service Set Identifier (SSID) of a wireless access node (AP);
receiving a response message sent by at least one receiving node, wherein the receiving node sending the response message is a receiving node with an access node function, and the response message comprises a Service Set Identifier (SSID) of the at least one receiving node;
determining an access node list according to the SSID of the at least one receiving node, wherein the access node list comprises a wireless access node (AP) and at least one relay, and the SSID of the at least one relay is calculated and obtained by using a preset algorithm according to the SSID of the AP;
determining a target access node according to the Received Signal Strength Indication (RSSI) of the AP and the RSSI of the relay corresponding to the access node list;
wherein,
the determining a list of access nodes according to the SSID of the at least one receiving node comprises:
adding an AP in the at least one receiving node into the access node list;
if the first receiving node is a relay, judging whether the SSID of the first receiving node is obtained by using the preset algorithm according to the SSID of the AP, if so, adding the first receiving node into the access node list;
wherein the first receiving node is any one of the at least one receiving node except the AP.
CN201610867048.1A 2016-09-29 2016-09-29 Wireless local area network access method, device and terminal Active CN106454998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610867048.1A CN106454998B (en) 2016-09-29 2016-09-29 Wireless local area network access method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610867048.1A CN106454998B (en) 2016-09-29 2016-09-29 Wireless local area network access method, device and terminal

Publications (2)

Publication Number Publication Date
CN106454998A CN106454998A (en) 2017-02-22
CN106454998B true CN106454998B (en) 2020-10-09

Family

ID=58171312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610867048.1A Active CN106454998B (en) 2016-09-29 2016-09-29 Wireless local area network access method, device and terminal

Country Status (1)

Country Link
CN (1) CN106454998B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109068339B (en) * 2018-07-12 2022-02-01 胡文强 Repeater and communication method, device and system based on mesh network
CN109039890A (en) * 2018-09-25 2018-12-18 韩剑坡 A kind of communication link establishes, switching method and relevant apparatus and system
CN110351695B (en) * 2019-08-12 2022-04-29 中南大学湘雅医院 Bidirectional communication method, control method and device, communication system and storage medium
CN111182560B (en) * 2019-12-27 2023-08-08 普联技术有限公司 Wireless network expansion method, wireless network system, intelligent terminal and router
CN111698693B (en) * 2020-06-08 2023-08-01 浙江大华技术股份有限公司 Wireless distribution network method, device and storage medium
CN113055976A (en) * 2021-03-15 2021-06-29 深圳乐播科技有限公司 Wireless screen projection method, device, equipment and storage medium based on local area network
CN114051274B (en) * 2021-11-09 2024-11-15 青岛海信宽带多媒体技术有限公司 A router and a router relay connection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1768508A (en) * 2003-04-04 2006-05-03 皇家飞利浦电子股份有限公司 Discovering proximate apparatuses and services in a wireless network
CN105307226A (en) * 2015-11-25 2016-02-03 小米科技有限责任公司 Method, device and system for selecting signal source
CN105578569A (en) * 2015-12-26 2016-05-11 小米科技有限责任公司 Network adjustment method and device
CN105933899A (en) * 2016-04-14 2016-09-07 北京小米移动软件有限公司 Access method and device of wireless access point

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7864742B2 (en) * 2006-03-22 2011-01-04 Broadcom Corporation Cell network using friendly relay communication exchanges
US9137727B2 (en) * 2012-03-30 2015-09-15 Hewlett-Packard Development Company, L.P. Controlled client roaming

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1768508A (en) * 2003-04-04 2006-05-03 皇家飞利浦电子股份有限公司 Discovering proximate apparatuses and services in a wireless network
CN105307226A (en) * 2015-11-25 2016-02-03 小米科技有限责任公司 Method, device and system for selecting signal source
CN105578569A (en) * 2015-12-26 2016-05-11 小米科技有限责任公司 Network adjustment method and device
CN105933899A (en) * 2016-04-14 2016-09-07 北京小米移动软件有限公司 Access method and device of wireless access point

Also Published As

Publication number Publication date
CN106454998A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106454998B (en) Wireless local area network access method, device and terminal
CN112166634B (en) Paging cause sending method and device, and paging cause obtaining method and device
JP6186508B2 (en) Network connection method and terminal
US20160295625A1 (en) Method and apparatus for network access
CN109565451B (en) Method and device for using network slice
US20210360489A1 (en) Methods and devices for reducing temperature for user equipment
CN109451847B (en) Paging message receiving method and device and paging configuration method and device
CN104684106B (en) The method and device of network connection
CN106376057A (en) Wireless network access method and device
CN107094094B (en) Application networking method and device and terminal
CN107926000B (en) Information receiving and transmitting method, device and system
CN110383891B (en) Network switching resource determining method and network switching resource configuration method
KR101793621B1 (en) Method, apparatus, program and recording medium for accessing base station
CN112586077A (en) Method and device for determining available state of designated reference signal and communication equipment
US11310694B2 (en) Method and device for receiving downlink data during RRC inactive state
CN113796110B (en) A method, device, equipment and storage medium for executing small data packet transmission and determining random access message transmission mode
CN110945883A (en) Method and device for receiving paging signaling, and method and device for sending paging signaling
KR102436552B1 (en) Cell type indication method, apparatus and computer readable storage medium
CN104618987B (en) Access the method and device of network
CN109451878B (en) Unmanned aerial vehicle indication method and device
CN108156272B (en) Associated frequency band determination method and device and electronic equipment
CN106792570B (en) Positioning method and device
CN107070707B (en) Method and device for determining initialization mode of router
CN110731090B (en) System message processing method and device
CN110036681B (en) Resource determination method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant