CN106717107B - Network connection method and terminal - Google Patents

Network connection method and terminal Download PDF

Info

Publication number
CN106717107B
CN106717107B CN201580046580.0A CN201580046580A CN106717107B CN 106717107 B CN106717107 B CN 106717107B CN 201580046580 A CN201580046580 A CN 201580046580A CN 106717107 B CN106717107 B CN 106717107B
Authority
CN
China
Prior art keywords
identifier
terminal
application name
access point
network
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
CN201580046580.0A
Other languages
Chinese (zh)
Other versions
CN106717107A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN106717107A publication Critical patent/CN106717107A/en
Application granted granted Critical
Publication of CN106717107B publication Critical patent/CN106717107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to a method and a terminal for connecting a network, wherein the method comprises the following steps: a terminal receives at least one beacon message sent by at least one access point, wherein each beacon message carries a first identifier which is related to a first application and corresponds to the access point sending the beacon message; the terminal acquires at least one first identifier according to at least one beacon message; the terminal determines whether the identifier of the historical binding in the first application installed on the terminal comprises at least one first identifier; and when the identifier of the historical binding in the first application comprises at least one first identifier, the terminal is connected with the network according to the first identifier. Therefore, the method for connecting the network provided by the invention has the advantages that the terminal receives the beacon message sent by the access point, the identifier of the appointed application name is obtained according to the beacon message, and the network is connected according to the identifier of the appointed application name, so that the operation process of connecting the network by a user is simplified, the network can be quickly connected by the user, and meanwhile, the user experience is enhanced.

Description

Network connection method and terminal
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a terminal for connecting a network.
Background
At present, a free WiFi network is provided in many places, a user is connected with the WiFi network, the user needs to manually select a designated application name on a WiFi interface, input a password for connecting the designated application name with the WiFi network, or connect the WiFi network through a WeChat provided in the WeChat, search two-dimensional code information of the designated application name, connect the WiFi network through 'scanning', or search the designated application name, manually record the designated application name, and connect the WiFi network through the designated application name.
The user can connect the WiFi network through the mode, but the operation process of connecting the WiFi network by the user is complex, and user experience is further influenced.
Disclosure of Invention
The embodiment of the invention provides a method and a terminal for connecting a network, wherein the terminal receives a beacon message sent by an access point, acquires an identifier of a designated application name according to the beacon message, and connects the network according to the identifier of the designated application name, so that the operation process of connecting the network by a user is simplified, the network is quickly connected by the user, and simultaneously, the user experience is enhanced.
In a first aspect, an embodiment of the present invention provides a method for connecting a network, where the method includes:
a terminal receives at least one beacon message sent by at least one access point, wherein each beacon message carries a first identifier which is related to a first application and corresponds to the access point sending the beacon message;
the terminal acquires at least one first identifier according to the at least one beacon message;
the terminal determines whether the identifier of the historical binding in the first application installed on the terminal comprises at least one first identifier;
and when the historical bound identifiers in the first application comprise at least one first identifier, the terminal is connected with the network according to the first identifier.
With reference to the first aspect, in a first possible implementation manner of the first aspect, when the identifier of the historical binding in the first application includes at least one first identifier, the connecting, by the terminal, to the network through the first identifier includes:
when the historical bound identifier in the first application only comprises one first identifier, the terminal prompts a designated application name corresponding to the first identifier on a first interface so that a user can determine to connect to a network through the first identifier corresponding to the designated application name according to the designated application name.
With reference to the first aspect, in a second possible implementation manner of the first aspect, when the identifier of the historical binding in the first application includes at least one first identifier, the connecting, by the terminal, the network through the first identifier includes:
when the identifier of the historical binding in the first application comprises a plurality of first identifiers, the terminal prompts a plurality of specified application names corresponding to the first identifiers on the first interface, so that a user can determine to connect to a network through the first identifier corresponding to one specified application name in the specified application names according to the specified application names.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the prompting, by the terminal, a plurality of specified application names corresponding to the plurality of first identifiers on the first interface includes:
the terminal determines the priority of a plurality of appointed application names corresponding to the first identifications according to the first identifications;
and the terminal prompts a plurality of appointed application names corresponding to the first identifications on the first interface according to the priority.
With reference to the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, before the terminal connects to the network through the first identifier, the method further includes:
and the terminal prompts a first identifier which is not included by the plurality of first identifiers or the historical bound identifiers in the first application to be connected with the network on a second interface.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the method includes:
when the network is connected through the first identifier which is not included in the identifier of the historical binding in the first application, the terminal prompts at least one appointed application name corresponding to the first identifier which is not included in the identifier of the historical binding in the first application on the first interface, so that the user can determine to connect the network through the first identifier corresponding to one appointed application name in the at least one appointed application name according to the at least one appointed application name.
With reference to the first possible implementation manner of the first aspect or the second possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the method further includes:
when the identifier of the historical binding in the first application does not include the first identifier, the terminal prompts at least one appointed application name corresponding to the at least one first identifier on a second interface, so that the user can determine to connect to the network through the first identifier corresponding to one appointed application name in the at least one appointed application name according to the at least one appointed application name.
In a second aspect, an embodiment of the present invention provides a method for connecting a network, where the method includes:
the terminal determines the identification of at least one first access point;
the terminal receives at least one beacon message sent by at least one second access point, wherein each beacon message carries an identifier of the second access point which sends the beacon message;
the terminal acquires the identifier of the at least one second access point according to the at least one beacon message;
when the identification of the at least one first access point comprises the identification of the at least one second access point, determining at least one first specified application name corresponding to the identification of the at least one second access point;
the terminal prompts the at least one first appointed application name on a first interface;
and the terminal accesses the network according to the identifier of the second access point corresponding to one first appointed application name in the at least one first appointed application name.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the determining, by the terminal, an identifier of at least one first access point includes:
the terminal acquires at least one piece of third access point information from the map, wherein the at least one piece of third access point information comprises at least one second specified application name corresponding to the at least one third access point;
when the designated application name which is historically bound in the first application and is installed on the terminal comprises at least one second designated application name, the terminal determines the identifier of the third access point corresponding to the second designated application name which is included in the designated application name which is historically bound in the first application as the identifier of the at least one first access point.
In a third aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
a receiving module, configured to receive at least one beacon message sent by at least one access point, where each beacon message carries a first identifier that is related to a first application and corresponds to the access point that sent the beacon message;
an obtaining module, configured to obtain at least one first identifier according to the at least one beacon message;
a determining module, configured to determine whether an identifier of a historical binding in the first application installed on the terminal includes at least one first identifier;
and the connection module is used for connecting a network according to the first identifier when the identifier of the historical binding in the first application comprises at least one first identifier.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the terminal further includes a prompting module, where the prompting module is configured to prompt, on a first interface, a specified application name corresponding to the first identifier when an identifier of a historical binding in the first application includes only one first identifier, so that a user determines, according to the specified application name, to connect to a network through the first identifier corresponding to the specified application name.
With reference to the third aspect, in a second possible implementation manner of the third aspect, the prompting module is further configured to prompt, when the identifier of the historical binding in the first application includes a plurality of first identifiers, a plurality of specified application names corresponding to the plurality of first identifiers on the first interface, so that a user determines, according to the plurality of specified application names, to connect to a network through a first identifier corresponding to a specified application name in the plurality of specified application names.
With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect,
the determining module is specifically configured to determine, according to the plurality of first identifiers, priorities of a plurality of designated application names corresponding to the plurality of first identifiers;
the prompting module is specifically configured to prompt, on the first interface, a plurality of designated application names corresponding to the plurality of first identifiers according to the priority.
With reference to the second possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect,
the prompting module is further configured to prompt, on a second interface, to connect to a network through the first identifiers that are not included in the plurality of first identifiers or the identifiers that are historically bound in the first application.
With reference to the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, the prompting module is further configured to, when connecting to a network through a first identifier that is not included in the identifier of the historical binding in the first application, prompt, at the first interface, at least one specified application name corresponding to the first identifier that is not included in the identifier of the historical binding in the first application, so that the user determines, according to the at least one specified application name, to connect to the network through the first identifier that is corresponding to one specified application name in the at least one specified application name.
With reference to the first possible implementation manner of the third aspect or the second possible implementation manner of the third aspect, in a sixth possible implementation manner of the third aspect, the prompting module is further configured to prompt, on a second interface, at least one specified application name corresponding to the at least one first identifier when the identifier of the historical binding in the first application does not include the first identifier, so that the user determines, according to the at least one specified application name, to connect to the network through the first identifier corresponding to one specified application name in the at least one specified application name.
In a fourth aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
a determining module for determining an identity of at least one first access point;
a receiving module, configured to receive at least one beacon message sent by at least one second access point, where each beacon message carries an identifier of the second access point that sent the beacon message;
an obtaining module, configured to obtain an identifier of the at least one second access point according to the at least one beacon message;
the determining module is further configured to determine, when the identifier of the at least one first access point includes the identifier of the at least one second access point, at least one first specified application name corresponding to the identifier of the at least one second access point;
the prompting module is used for prompting the at least one first appointed application name on a first interface;
and the connection module is used for connecting the network according to the identifier of the second access point corresponding to one first appointed application name in the at least one first appointed application name.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the determining module is specifically configured to,
obtaining at least one piece of third access point information from the map, wherein the at least one piece of third access point information comprises at least one second specified application name corresponding to the at least one third access point;
when the designated application name of the historical binding in the first application installed on the terminal comprises at least one second designated application name, determining the identifier of the third access point corresponding to the second designated application name included in the designated application name of the historical binding in the first application as the identifier of the at least one first access point.
Based on the technical scheme, the method and the terminal for connecting the network in the embodiment of the invention receive the beacon message sent by the access point through the terminal, obtain the identifier of the designated application name according to the beacon message, prompt the identifier of the designated application name to correspond to the designated application name on the interface, and connect the network according to the identifier of the designated application name through the terminal, thereby simplifying the operation process of connecting the network by a user, realizing the quick network connection of the user and enhancing the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for connecting a network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a Beacon frame signal structure provided in the embodiment of the present invention;
fig. 3 is a flowchart of a method for connecting to a network according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of a connection network interface in an application according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a system interface provided by an embodiment of the present invention;
FIG. 6 is a schematic flow chart diagram of a method of connecting networks according to yet another embodiment of the present invention;
FIG. 7 is a diagram illustrating a network interface for connection in an application according to another embodiment of the present invention;
FIG. 8 is a schematic diagram of a system interface provided in accordance with another embodiment of the present invention;
FIG. 9 is a schematic interaction diagram of a method of connecting to a WiFi network in accordance with another embodiment of the present invention;
FIG. 10 is a schematic interaction diagram of a method of connecting to a WiFi network in accordance with yet another embodiment of the present invention;
fig. 11 is a flowchart of a method for connecting to a network according to an embodiment of the present invention;
FIG. 12 is a flow chart of a method of connecting to a network according to another embodiment of the invention;
FIG. 13 is a schematic interaction diagram of a method of connecting to a WiFi network in accordance with yet another embodiment of the present invention;
fig. 14 is a schematic configuration diagram of a terminal connected to a network according to an embodiment of the present invention;
fig. 15 is a schematic configuration diagram of a terminal connected to a network according to an embodiment of the present invention;
fig. 16 is a schematic configuration diagram of a terminal connected to a network according to another embodiment of the present invention;
fig. 17 is a schematic configuration diagram of a terminal connected to a network according to still another embodiment of the present invention;
fig. 18 is a schematic configuration diagram of a terminal connected to a network according to still another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
In the implementation of the present invention, a User Equipment (UE) is also called a Terminal. The terminal can perform wireless communication with a wireless Access Point (AP) to acquire a unique identifier of a designated application name, prompts the designated application name corresponding to the identifier of the designated application name through an interface used for connecting a network in the designated application or a system interface of the terminal, connects a network according to a determination instruction which is input by a user and is connected with the network through the identifier of the designated application name corresponding to the designated application name, and connects the network through the identifier of the designated application name.
The specified Application name refers to a name applied to a certain Application program (APP) installed in the terminal. The specified application name may be a business name of the connection network or a service number of the specified application name corresponding to the business name, and the service number of the specified application name may be the business name or a nickname set by the user for the business name. The terminal may be a smartphone, tablet, or other device with wireless communication. The interface used for connecting the network in the specified application is specifically an interface for displaying the name of the specified application when the terminal is connected with the network.
For the convenience of understanding the embodiment of the present invention, the technical solution of the embodiment of the present invention will be described in detail with reference to fig. 1. It should be understood that this is only an example for illustrating the technical solutions of the embodiments of the present invention, and does not constitute any limitation to the embodiments of the present invention.
Fig. 1 is a flowchart of a method for connecting a network according to an embodiment of the present invention. An executing subject of the method 100 for connecting a network as shown in fig. 1 may be a terminal, and the method 100 includes:
110, a terminal receives at least one beacon message sent by at least one access point, wherein each beacon message carries a first identifier which is related to a first application and corresponds to the access point sending the beacon message;
120, the terminal obtains at least one first identifier according to at least one beacon message;
130, the terminal determines whether the identifier of the historical binding in the first application installed on the terminal comprises at least one first identifier;
140, when the identifier of the historical binding in the first application comprises at least one first identifier, the terminal connects to the network according to the first identifier.
Specifically, in 110, the Beacon message received by the terminal may be a Beacon frame signal sent by the access point. The first Application may be an Application program (APP) installed on the terminal, for example: other applications such as QQ, WeChat, whatsapp, line, twitter, facebook, etc. The first identification may be a unique identification of a specified application name applied to the first application.
In the embodiment of the invention, the terminal receives at least one beacon message transmitted by one or more access points. Each beacon message carries an identification of a specified application name that can be applied to the first application. Each beacon message may have a one-to-one correspondence with the access point that transmitted the beacon message.
In 120, each of the at least one beacon message may include an identification specifying an application name. The terminal acquires the identifier of the specified application name from each beacon message.
Optionally, in this embodiment of the present invention, the beacon message includes an extension field, and the acquiring, by the terminal, the identifier of the at least one specified application name according to the at least one beacon message specifically includes:
and the terminal analyzes the extension field of each beacon message in at least one beacon message and acquires the identifier of the appointed application name in each beacon message.
Specifically, in the implementation of the present invention, the Beacon message includes an extension field, and in the case where the Beacon message is a Beacon frame signal, as shown in fig. 2, the extension field is an end field of each Beacon frame signal, a method for carrying an identifier of a specified application name in the Beacon frame signal may be to add a vector specific element at the end of the Beacon frame signal, where the identifier of the specified application name may be carried in the end field of the vector specific element, and the terminal parses the end field of the vector specific element in each Beacon frame signal, so as to obtain the identifier of the specified application name in each Beacon frame signal.
It should be understood that the identifier specifying the application name may also be carried in the first field of the extension field in each Beacon frame signal, or carried outside the extension field of the Beacon frame signal, and is not limited in this invention.
It should also be understood that, in the embodiment of the present invention, the Beacon message is taken as an example of a Beacon frame signal, which is only for illustrating the technical solution of the embodiment of the present invention, but does not limit the technical solution of the embodiment of the present invention.
It should also be understood that the beacon message may also include signal strength information of the beacon message and an identification of the access point, which is not limited in any way in the embodiments of the present invention.
In 130, the identifier of the historical binding is an identifier of a designated application name, which is a network connection identifier in which the terminal and the designated application name are stored before the terminal connects to the network at the current time, and records the corresponding designated application name of the designated application name. It can also be said that the terminal "focuses on" the designated application name corresponding to the identifier of the designated application name. The identification of the historical binding may be an identification of one or more specified application names.
In the embodiment of the invention, the terminal judges whether the identifiers of the one or more specified application names of the historical binding comprise the identifiers of the one or more specified application names in at least one identifier of the specified application name acquired by the terminal.
In 140, when some or all of the historically bound identifiers of the specified application names include one or more of the identifiers of the specified application names acquired by the terminal, the terminal connects to the network according to the identifier of one of the specified applications.
In the embodiment of the present invention, the terminal may receive a determination instruction input by the user, where the determination instruction is used to instruct the terminal to connect to the network through the identifier of the specified application name corresponding to the specified application name determined by the user.
By adopting the method for connecting the network provided by the embodiment of the invention, the terminal receives the beacon message sent by the access point, the identifier of the appointed application name is obtained according to the beacon message, and the network is connected according to the identifier of the appointed application name, so that the operation process of connecting the network by a user is simplified, the network can be quickly connected by the user, and meanwhile, the user experience is enhanced.
Optionally, as another embodiment of the present invention, as shown in fig. 3, when the identifier of the historical binding in the first application includes at least one first identifier, the connecting, by the terminal, to the network through the first identifier includes:
1410, when the identifier of the historical binding in the first application only includes one first identifier, the terminal prompts a designated application name corresponding to the first identifier on a first interface, so that the user determines to connect to the network through the first identifier corresponding to the designated application name according to the designated application name.
Specifically, when the terminal receives a beacon message or acquires a first identifier from the received beacon message, that is, acquires an identifier of a specific application name, and the identifier of one or more specific application names bound in the history includes the identifier of the specific application name, the terminal prompts the specific application name corresponding to the identifier of the specific application name, so that the user can determine whether to connect to the network through the identifier of the specific application name.
In step 1410, the first interface may be an interface for connecting to a network in the first application. When the terminal determines that the identifier of the designated application name bound in the history includes the acquired identifier of the designated application name, the terminal prompts the designated application name corresponding to the identifier of the designated application name on an interface connected with the network in the first application, so that a user can determine whether to connect the network through the identifier of the designated application name corresponding to the designated application name or not according to the prompted designated application name.
And when the terminal receives a confirmation instruction which is input by the user and is connected with the network through the identifier of the specified application name, the terminal is connected with the network according to the identifier of the specified application name.
It should be understood that, in the implementation of the present invention, the terminal may also receive a confirmation instruction that is input by the user and is not connected to the network through the identifier of the specified application name, and when the terminal receives the confirmation instruction, the terminal exits from the network connection interface and does not perform network connection.
In the embodiment of the present invention, as shown in fig. 4, the terminal prompts the user to connect to the network through mcdonald's duty on the interface of the first application for connecting to the network. And when the terminal receives a determination instruction which is input by the user and is connected with the network through the McDonald's mark, the terminal is connected with the network through the McDonald's mark.
It should be understood that, in the embodiments of the present invention, only "mcdonald" is used as an example, and the technical solutions of the embodiments of the present invention are described in detail, and the scope of the embodiments of the present invention is not limited at all.
It should be further understood that, in the embodiment of the present invention, when the terminal prompts to specify an application name on the interface of the first specified application, content information related to the specified application name may also be prompted, for example: what type of content is published on a specified application name. This is not a limitation in the present invention.
In the embodiment of the present invention, the terminal may query the designated application name corresponding to the identifier of the designated application name through a relationship table of the correspondence between the identifier of the designated application name and the designated application name. For example, table 1 is a relationship table of correspondence between the identification of a specified application name and the specified application name. The identification for specifying the application name comprises an identification 1 and an identification 2, and the specified application names corresponding to the identification 1 and the identification 2 for specifying the application name are McDonald's and Boss men's clothing respectively.
TABLE 1
Figure GPA0000238290590000141
It should be understood that, in the embodiment of the present invention, the terminal determines, according to the identifier of the specified application name, the specified application name corresponding to the identifier of the specified application name in a table lookup manner, and the terminal may also determine the specified application name in other internal logical relationships between the identifier of the specified application name and the specified application name, which is not limited in the present invention.
It should also be understood that, in the examples of the present invention, the technical solutions of the present invention are described in detail by taking the application names mcdonald's and Boss's men's clothing as examples, but the scope of the embodiments of the present invention is not limited in any way.
Optionally, as another embodiment of the present invention, as shown in fig. 3, the method 100 further includes:
1420, when the identifier of the historical binding in the first application does not include the first identifier, the terminal prompts the designated application name corresponding to the identifier of the designated application name on a second interface, so that the user can determine the network connected through the identifier of the designated application name corresponding to the designated application name according to the designated application name.
Specifically, the second interface is a system interface of the terminal. When the identification of the appointed application name acquired from the beacon message is not included in the identification of one or more appointed application names in the historical binding, the terminal prompts the appointed application name corresponding to the identification of the appointed application name on a system interface, prompts whether the binding relationship between the terminal and the identification of the appointed application name is added or not, and records the appointed application name so that a user can determine whether to connect a network according to the identification of the appointed application name corresponding to the appointed application name or not.
When the terminal receives a determination instruction which is input by a user and is connected with the network through the identifier of the appointed application name, namely the terminal receives the binding relationship which is input by the user and is added with the identifier of the appointed application name, and the identifier of the appointed application name is recorded, the network is determined to be connected through the identifier of the appointed application name; and when the terminal receives a cancel instruction which is input by the user and is connected with the network through the identifier of the appointed application name, the terminal cancels the prompt and does not carry out network connection.
As shown in fig. 5, the terminal prompts whether to pay attention to mcdonald's duty to connect to the network on the system interface. In the embodiment of the present invention, the "paying attention" may include that the terminal records the binding relationship between mcdonald's dutch and the terminal, and records mcdonald's dutch. When the terminal receives a determination key that the user clicks ' yes ', the terminal is connected with the network through the McDonald's mark; and when the terminal receives the confirmation key of no clicked by the user, the terminal exits the interface and is not connected with the network.
It should be understood that, in the embodiment of the present invention, only the schematic content shown in fig. 5 is taken as an example to describe the technical solution of the present invention in detail, but not to limit the scope of the embodiment of the present invention in any way.
It should be further understood that, in the implementation of the present invention, when the terminal prompts the specified application name in the system interface, the terminal may also prompt content information related to the specified application name, for example: what type of content is published under a given application name is not a limitation of the present invention.
By adopting the method for connecting the network provided by the embodiment of the invention, when the terminal only acquires the identifier of the appointed application name, the terminal prompts the user to determine whether to connect the network through the identifier of the appointed application name, so that the operation process of connecting the network by the user is simplified, the network can be quickly connected by the user, and the user experience is enhanced.
Optionally, as another embodiment of the present invention, as shown in fig. 6, when the identifier of the historical binding in the first application includes at least one first identifier, the connecting, by the terminal, to the network through the first identifier includes:
1430, when the identifier of the historical binding in the first application includes a plurality of first identifiers, the terminal prompts a plurality of specified application names corresponding to the plurality of first identifiers on a first interface, so that the user determines to connect to the network through the first identifier corresponding to one specified application name in the plurality of specified application names according to the plurality of specified application names.
Specifically, the first identifier is an identifier specifying an application name. The first interface may be an interface for connecting to a network in a first specified application. The terminal receives at least one beacon message sent by a plurality of access points, acquires identifiers of a plurality of specified application names from the at least one beacon message, and prompts the terminal to acquire one or more specified application names corresponding to the identifiers of the one or more specified application names matched with the identifiers of the at least one specified application name historically bound in the interface of the network connected in the first application when judging that the identifiers of the at least one specified application name historically bound in the first application are matched with the identifiers of the plurality of specified application names acquired by the terminal, so that a user can determine the network connected by the identifiers of the specified application names corresponding to the one specified application name in the at least one specified application name according to the prompted specified application name of the terminal.
And when the terminal receives a determination instruction input by the user, the terminal connects the network according to the determination instruction. The determining instructions are for indicating that the network is connected by an identification of a specified application name corresponding to one of the one or more specified application names that matches the identification of the at least one specified application name that is historically bound in the first application.
As shown in fig. 7, the terminal prompts, at the network connection interface of the first application, a designated application name that can connect to the network: and marking a WiFi character at the upper right of the McDonald's and Boss men's clothing mark for prompting a user to connect with a network through the identifier of the specific application corresponding to the McDonald's and Boss men's clothing respectively. In fig. 7, a record of the designated application name corresponding to the identifier of the designated application name connecting to the network through the identifier of the other designated application name in the past time is also included under the Boss man's wear.
It should be understood that, in the embodiment of the present invention, in fig. 7, the prompting word "WiFi" that can be connected to the network and the specified application name corresponding to the identifier of the specified application name that is recorded historically and connected to the network through other specified application identifiers are used as examples, which are only for describing the technical solution of the embodiment of the present invention in detail, and do not limit the scope of the embodiment of the present invention at all.
It should be understood that, in the implementation of the present invention, when the terminal prompts the user to connect to the network according to the identifier of one or more specified application names matching with the identifier of at least one specified application name historically bound in the first application on the interface for connecting to the network in the first specified application, the terminal may also prompt content information related to the at least one specified application name, for example: what type of content is published under a given application name is not a limitation of the present invention.
By adopting the method for connecting the network provided by the embodiment of the invention, when the terminal acquires the identifiers of the multiple specified application names, whether the identifiers of the historical bound specified application names in the first application comprise the identifiers of the acquired multiple specified application names is determined through the terminal, and when the identifiers of the historical bound specified application names in the first application comprise one or more specified application names in the identifiers of the multiple specified application names acquired by the terminal, the terminal prompts the user to connect the network through the identifier of the specified application name corresponding to one specified application name in the one or more specified application names, so that the operation process of connecting the network by the user is simplified, the user can quickly connect the network, and meanwhile, the user experience is enhanced.
Preferably, as another embodiment of the present invention, the prompting, by the terminal, a plurality of specified application names corresponding to the plurality of first identifiers on the first interface includes:
the terminal determines the priority of a plurality of appointed application names corresponding to the first identifications according to the first identifications;
and the terminal prompts a plurality of appointed application names corresponding to the first identifications on a first interface according to the priority.
Specifically, when the identifier of the at least one designated application name historically bound in the first application includes identifiers of a plurality of designated application names acquired by the terminal, the terminal prompts, on an interface of a connection network in the first application, the at least one designated application name corresponding to the identifier of the at least one designated application name matching with the identifier of the at least one designated application name acquired by the terminal, and when the terminal prompts the at least one designated application name, the terminal can judge the priority of the at least one designated application name through a set condition and prompt the connection network through the identifier of the designated application name corresponding to the designated application name in the at least one designated application name according to the sequence arrangement of the priority.
When the terminal prompts at least one appointed application name matched with the identifier of the at least one appointed application name bound in the history to a user on a network connection interface of the first application, the arrangement sequence of the at least one appointed application name is determined according to a certain preset condition, so that the user can determine which identifier of the appointed application name corresponding to the appointed application name is preferentially selected to connect with the network according to the arrangement sequence of the appointed application names. As shown in fig. 7, the terminal display may connect to the network through mcdonald and Boss men's clothing, with the priority order of mcdonald connection network ranked first and the priority order of Boss men's clothing connection network ranked second.
It should be understood that, in the embodiment of the present invention, the priority order of the "mcdonald' and the" Boss man clothing "shown in fig. 7 is taken as an example, and is only for describing the technical solution of the embodiment of the present invention in detail, and does not limit the scope of the embodiment of the present invention in any way.
It should also be understood that, in the embodiment of the present invention, the terminal may also arrange the priority order of the specified application names according to other ways used by the user, which is not limited in any way in the embodiment of the present invention.
For example, as shown in table 2 and table 3, table 2 is a relationship table of a correspondence relationship between at least one specific application name and at least one specific application name access network times, and fig. 3 is a relationship table of a correspondence relationship between at least one specific application name and at least one specific application name priority ranking. The at least one designated application name is a designated application name corresponding to the identifier of the at least one designated application name, which is in the first application and is in the historical binding, and the identifier of the plurality of designated application names is matched with the identifier of the at least one designated application name acquired by the terminal.
TABLE 2
Specifying application names Specifying number of times an application name accesses a network
Apple (Malus pumila) 5
Root of beautiful Sweetclover 6
Boss men's clothing 3
TABLE 3
Specifying application names Priority level
Root of beautiful Sweetclover 1
Apple (Malus pumila) 2
Boss men's clothing 3
The terminal can arrange the priority order of the application names to access the network into McDonald's, apple and Boss men's dresses according to the times 5, 6 and 3 of the historically bound apples, McDonald's and Boss men's dresses to access the network.
It should be understood that, in the embodiment of the present invention, the application names of mcdonald's, apple and Boss's men's clothing are given as examples, which are only for describing the technical solutions of the embodiment of the present invention in detail and do not limit the scope of the embodiment of the present invention in any way.
In the embodiment of the invention, the terminal prompts at least one second specified application name corresponding to the identifier of at least one specified application name, which is obtained by the terminal and is matched with the identifier of at least one specified application name which is historically bound, of the identifiers of a plurality of specified application names which can be connected with the network in the first application on the interface which is connected with the network in accordance with the priority, so that a user can select one specified application name from the at least one specified application name in accordance with the prompt of the terminal, and after receiving a selection instruction of the user, the terminal connects the network in accordance with the identifier of the specified application name corresponding to the selected specified application name. For example, as shown in fig. 3, the user may select the highest priority mcdonald connection network.
It should be understood that, in the embodiment of the present invention, a technical solution for determining the priority of at least one designated application name by a terminal is described by taking the number of times of accessing a network through at least one designated application name as an example.
Therefore, with the method for connecting a network provided by the embodiment of the present invention, when the terminal acquires the identifiers of the multiple specified application names, the terminal determines whether the identifiers of the historical bound specified application names in the first application include the acquired identifiers of the multiple specified application names, and when the identifier of at least one historical bound specified application name matches the identifier of the multiple specified application names acquired by the terminal, the terminal prompts the user to connect the network through the identifier of the specified application name corresponding to one specified application name in the multiple matched specified application names, thereby simplifying the operation process of connecting the network by the user, realizing fast network connection by the user, and enhancing user experience. Meanwhile, the terminal conducts priority ranking on at least one appointed application name which is bound with the history and can be connected with the network, and prompts a user to select an identification connection network of the appointed application name corresponding to the appointed application name from the at least one appointed application name according to the priority ranking of the at least one appointed application name, so that the speed of connecting the network is improved efficiently, and the user experience is enhanced.
It should be further understood that, in the embodiment of the present invention, the contents of the user connection network shown in fig. 4 and fig. 7, and fig. 5 and fig. 8 are only used to describe the technical solution of the embodiment of the present invention in detail, and do not limit the scope of the embodiment of the present invention in any way.
Optionally, as another embodiment of the present invention, as shown in fig. 6, before the terminal connects to the network through the first identifier, the method 100 further includes:
1440, the terminal prompts, on the second interface, to connect to the network via the first identifier not included by the plurality of first identifiers or the identifier of the historical binding in the first application.
Specifically, when one or more identifiers of the at least one identifier of the historically-bound specified application name in the first application are matched with one or more identifiers of the plurality of identifiers of the specified application name acquired by the terminal, the terminal prompts a user at a system interface whether the identifier of the historically-bound specified application name acquired by the terminal is connected to a network or the identifier of the historically-unbound specified application name acquired by the terminal is connected to a network.
In the embodiment of the present invention, for example: the terminal can display a dialog box on the system interface, wherein the dialog box comprises two buttons, one button is connected with the network through the identifier of the historical bound specified application name, and the other button is connected with the network through the identifier of other specified application names.
It should be understood that, in the embodiment of the present invention, the technical solution of the present invention is described by taking a "dialog box" as an example, and no limitation is made to this in the example of the present invention.
By adopting the method for connecting the network provided by the embodiment of the invention, when the terminal determines that the one or more identifiers of the historical bound identifiers of the designated application names in the first application comprise the one or more identifiers of the plurality of identifiers of the designated application names acquired by the terminal, the terminal prompts the user to select the identifier of the historical bound designated application names to be connected with the network or the identifier of the historical unbound designated application names to be connected with the network through the system interface, so that the operation process of connecting the network by the user is simplified, the quick network connection by the user is realized, and the user experience is enhanced.
Optionally, as another embodiment of the present invention, as shown in fig. 6, the method 100 further includes:
1450, when the network is connected through the first identifier which is not included in the identifier of the historical binding in the first application, the terminal prompts at least one appointed application name corresponding to the first identifier which is not included in the identifier of the historical binding in the first application on the first interface, so that the user can determine to connect the network through the first identifier corresponding to one appointed application name in the at least one appointed application name according to the at least one appointed application name.
Specifically, the first identifier is an identifier of a specified application name acquired by the terminal. After a terminal prompts a user to obtain an identifier connection network of a designated application name which is historically bound through the terminal or an identifier connection network of a designated application name which is obtained through the terminal and is historically unbound, when the terminal receives an identifier connection network determining instruction which is input by the user and is obtained through the terminal and is historically unbound, the terminal prompts the user to obtain the designated application name which is corresponding to the identifier of the designated application name which is historically unbound on an interface of a connection network in a designated application, receives a determining instruction which is input by the user and is connected with the network through the identifier of the designated application name which is corresponding to one designated application name, and connects the network according to the identifier of the designated application name.
Optionally, as another embodiment of the present invention, as shown in fig. 6, the method 100 further includes:
1460, when the identifier of the at least one designated application name historically bound in the first application does not include the identifiers of the plurality of designated application names, the terminal prompts the plurality of designated application names corresponding to the identifiers of the plurality of designated application names on a second interface, so that the user can determine to connect to the network through the identifier of the designated application name corresponding to the designated application name in the plurality of designated application names according to the plurality of designated application names.
Specifically, when the identifier of each specified application name in the identifiers of the specified application names acquired by the terminal is not included in the identifiers of the specified application names historically bound in the first application, the terminal prompts the plurality of specified application names corresponding to the identifiers of the specified application names on a system interface, so that a user can conveniently connect to a network through the identifier of the specified application name corresponding to one specified application name in the plurality of specified application names.
When the terminal receives a confirmation instruction input by a user, the terminal connects with the network according to the confirmation instruction. The confirmation instruction is used for indicating the terminal to be connected with the network through an identifier corresponding to one of the specified application names, adding a binding relation between the identifier of the specified application name and the terminal, and recording the specified application name corresponding to the identifier of the specified application name.
In the embodiment of the invention, when the corresponding specified application name of the specified application name acquired by the terminal is the identifier of the McMaho and Boss men's clothing which is not bound in history, as shown in FIG. 8, the terminal prompts the attention of the McMaho or the attention of the Boss men's clothing to connect with the network on a system interface of the terminal.
It should be understood that, in the embodiment of the present invention, the content shown in fig. 8 is taken as an example to describe the technical solution of the embodiment of the present invention in detail, but the content shown in fig. 8 does not limit the scope of the embodiment of the present invention.
In the embodiment of the invention, when the terminal can also receive a cancel instruction which is input by a user and is connected with the network through the identifier of the appointed application name, the terminal cancels the prompt and does not carry out network connection.
Therefore, with the method for connecting a network provided by the embodiment of the present invention, when the terminal obtains the identifiers of the multiple specified application names, the terminal determines whether the identifiers of the historical bound specified application names in the first application include the identifiers of the obtained multiple specified application names, and when the identifiers of the historical bound specified application names include the identifiers of the multiple specified application names obtained by the terminal, the terminal prompts the user to determine that the network is connected through the identifier of the specified application name corresponding to one specified application name in the multiple specified application names, thereby simplifying the operation process of the user for connecting the network, realizing fast network connection of the user, and enhancing user experience.
It should be noted that, in the embodiment of the present invention, the specified application name may be applied to a corresponding variety of social applications, for example: QQ, WeChat, whatcapp, line, twitter, facebook, and the like.
For convenience of description, the following takes as an example that the specified application name is specifically a wechat public number, that is, the name of a wechat account, the specified application name identifier is specifically an identifier (english: IDentity, abbreviated as ID) of the wechat public number, the access point is a merchant access point, and the WiFi network is connected, and the technical solution of the embodiment of the present invention is described in detail with reference to fig. 4 and 5. It should be understood that this is only an example for illustrating the technical solutions of the embodiments of the present invention, and does not constitute any limitation to the embodiments of the present invention.
Fig. 9 is a schematic interaction diagram of a method for connecting a WiFi network when receiving access point information sent by an access point according to the present invention; fig. 10 is a schematic interaction diagram of a method for connecting a WiFi network when receiving access point information sent by a plurality of access points according to the present invention.
The method for connecting to the network when the terminal receives an access point information is described in detail below, and the method 400 shown in fig. 9 includes:
the terminal receives 410 a beacon message sent by an access point.
And 420, the terminal acquires the identification ID of the WeChat public number according to the beacon message.
430, the terminal determines whether the ID of the at least one wechat public number of the history binding includes the ID of the wechat public number, 440 is performed when the ID of the at least one wechat public number of the history binding does not include the ID of the wechat public number, and 435 is performed otherwise.
And 440, the terminal prompts and records the binding relationship between the ID of the WeChat public number and the terminal on a system interface, and connects the WiFi network through the WeChat public number corresponding to the ID of the WeChat public number.
450, the terminal records the binding relationship between the ID of the WeChat public number and the terminal according to the input of the user, and connects the WiFi network through the ID of the WeChat public number and the determined instruction of the network through the ID of the WeChat public number.
455, the terminal sends a WiFi connection request message to the access point, where the request message includes an ID source code OpenID of the terminal wechat public number and a Service Set Identifier (SSID) of the access point;
460, the access point sends the WiFi connection request message to the access point server through the wechat server;
465, the access point server carries out identity verification on the ID source code OpenID of the terminal WeChat public number and the SSID of the access point;
470, when the identity authentication is passed, the access point server sends authentication passing information to the access point through the wechat server, wherein the authentication passing information comprises login address information and WiFi password information of the access point;
475, the terminal receiving the verification passing information sent by the access point;
478, the terminal sends login request message to the access point according to the login address information and WiFi password information;
480, the access point sends response information to the terminal after receiving the login request message, namely, the login is successful.
485, the terminal records the public number of the WeChat.
In the embodiment of the invention, in the process that the terminal is connected with the WiFi network through the ID of the WeChat public number which is not bound historically, the terminal needs to carry the binding request of the terminal and the ID of the WeChat public number in the network connection request message, so that the WeChat server establishes the binding relationship between the ID of the WeChat public number and the terminal after receiving the binding request, records the WeChat public number, carries the binding confirmation information of the terminal and the ID of the WeChat public number in the verification result sent to the terminal by the access point server, and records the WeChat public number when the terminal is connected with the WiFi network.
In an embodiment of the invention, in the method 400, when the ID of the at least one WeChat public number of the history includes the ID of the WeChat public number, 435 and 445 are performed,
435, the terminal prompts the wechat public number corresponding to the ID of the wechat public number on the interface connected to the WiFi network, so that the user can determine whether to connect to the WiFi network through the ID of the wechat public number corresponding to the wechat public number according to the prompted wechat public number.
445, the terminal connects to the WiFi network through the wechat public number according to the determination instruction input by the user to connect to the WiFi network through the wechat public number corresponding to the ID of the wechat public number.
Specifically, in the embodiment of the present invention, in step 460, the access point sends the WiFi connection request message to the access point server through the wechat server, which specifically includes step 461, the wechat server receives the WiFi connection request message sent by the access point, and forwards the WiFi connection request message to the access point server.
It should be understood that, in the embodiment of the present invention, when the terminal connects to the WiFi network through the ID of the wechat public number that is historically bound, and when the terminal connects to the WiFi network through the ID of the wechat public number that is historically bound, the terminal does not need to carry the binding request of the terminal and the ID of the wechat public number when sending the network connection request to the access point, that is, the binding relationship between the terminal and the ID of the wechat public number does not need to be added again. Other procedures are the same as the procedure of connecting to the WiFi network via the ID of the wechat public number which is not bound in history, and steps 455 to 480 are performed, which are not described herein again for brevity of description.
In this embodiment of the present invention, before the terminal receives access point information sent by one access point, the method further includes:
490, the access point sends a request message for applying for the WeChat public number to the WeChat Server;
at 495, the wechat server sends the ID of the wechat public number to the access point.
Specifically, the WeChat server determines the ID of the WeChat public number according to the request information of the WeChat public number.
By adopting the method for connecting the WiFi network provided by the embodiment of the invention, the terminal receives the access point information sent by the access point, and when the ID of one WeChat public number is acquired from the access point information, the terminal prompts the WeChat public number corresponding to the ID of the WeChat public number so that a user can determine whether to connect the WiFi network through the ID of the WeChat public number through the WeChat public number, thereby simplifying the operation process of connecting the WiFi network by the user, realizing the quick connection of the WiFi network by the user and enhancing the user experience.
It should be noted that, steps 435 and 445 included in the method 400 in the embodiment of the present invention may specifically implement step 1410 included in the method 100 shown in fig. 3, and steps 440 and 450 included in the method 400 in the embodiment of the present invention may specifically implement step 1420 included in the method 100 shown in fig. 3, and for brevity of description, details are not described here again.
It should be noted that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
The method for connecting to the WiFi network when the terminal receives the information of the plurality of access points is described in detail below, and as shown in fig. 10, the method 500 includes:
the terminal receives 510 a plurality of beacon messages transmitted by a plurality of access points.
And 520, the terminal acquires the identification IDs of the micro-information public numbers according to the beacon messages.
530, determining whether the ID of the historically bound at least one WeChat public number includes IDs of a plurality of WeChat public numbers, when at least one second WeChat public number among the IDs of the historically bound at least one WeChat public number includes IDs of the plurality of WeChat public numbers, 540, and when the ID of the historically bound at least one designated application name does not include IDs of the plurality of WeChat public numbers, the terminal prompts connection to the WiFi network through one of the IDs of the plurality of WeChat public numbers, 535.
And 540, the terminal prompts to connect the WiFi network through the ID of the at least one second WeChat public number which is bound in the history, or to connect the WiFi network through the ID of the WeChat public number except the ID of the at least one second WeChat public number in the IDs of the plurality of WeChat public numbers.
And 550, the terminal determines the priority of the at least one wechat public number corresponding to the ID of the at least one second wechat public number according to a first instruction input by the user, wherein the first instruction is a determination instruction for connecting the WiFi network through the at least one second wechat public number.
560, the terminal prompts the user to connect to the WiFi network through the ID of the WeChat public number corresponding to one of the at least one second WeChat public number on the interface connecting to the WiFi network according to the priority of the at least one second WeChat public number.
570, the terminal determines the ID of the first WeChat public number according to a second instruction input by the user, wherein the second instruction is a determination instruction for connecting the WiFi network through the ID of the WeChat public number corresponding to one WeChat public number in at least one second WeChat public number, and the WiFi network is connected through the ID of the first WeChat public number.
It should be noted that, steps 540, 550, 560, and 570 included in the method 500 in the embodiment of the present invention may be specifically configured to implement steps 1440 and 1430 included in the method 100 shown in fig. 6, and steps 535 and 545 included in the method 500 in the embodiment of the present invention may be specifically configured to implement step 1460 included in the method 100 shown in fig. 6, and for brevity of description, no further description is provided here.
In the embodiment of the invention, when the WiFi network is connected by the ID of the wechat public number except for at least one ID of the second wechat public number in the IDs of the wechat public numbers, 555 is executed, the terminal determines the ID of the first wechat public number according to a fourth instruction input by the user, and connects the WiFi network by the ID of the first wechat public number, wherein the fourth instruction is a determination instruction for selecting the ID of the wechat public number corresponding to one wechat public number from the wechat public numbers except for the second wechat public number to connect the WiFi network.
It should be noted that, in the embodiment of the present invention, steps 571 to 580 of the terminal connecting to the WiFi network according to the wechat public number corresponding to the ID of the first wechat public number are the same as steps 455 to 480 of the method 400 in fig. 9, and for brevity of description, details are not repeated herein.
In this embodiment of the present invention, when the ID of the at least one designated application name of the historical binding does not include the IDs of the plurality of designated application names, the terminal prompts a plurality of wechat public numbers corresponding to the IDs of the plurality of designated application names for the user to select one wechat public number from the plurality of wechat public numbers through the prompt of the terminal, connects the WiFi network through the ID of the wechat public number corresponding to the selected wechat public number, executes 535 and 545,
535, the terminal prompts a plurality of wechat public numbers corresponding to the IDs of the plurality of wechat public numbers on a system interface, so that the user can determine the ID of the wechat public number corresponding to one of the plurality of wechat public numbers to connect to the WiFi network according to the plurality of prompted wechat public numbers.
And 545, the terminal determines the ID of the first WeChat public number according to a third instruction input by the user, and connects to the WiFi network through the ID of the first WeChat public number.
It should be noted that, in the embodiment of the present invention, when the terminal connects to the WiFi network through one of the IDs of any one of the past unbound wechat public numbers, the wechat public number corresponding to the wechat public number is recorded, and the binding relationship between the ID of the wechat public number and the terminal is recorded.
In the implementation of the present invention, before the terminal receives the information of the plurality of access points sent by the plurality of access points, the method further includes:
585, the access point sends a request message for applying for the WeChat public number to the WeChat server;
590, the WeChat server determines the ID of the WeChat public number according to the request information of the WeChat public number;
595, the wechat server sends the ID of the wechat public number to the access point.
By adopting the method for connecting the WiFi network provided by the embodiment of the invention, the terminal receives the access point information sent by the access point, when the ID of at least one WeChat public number is acquired from the access point information, the terminal prompts at least one WeChat public number corresponding to the ID of the at least one WeChat public number, so that a user can determine to connect the WiFi network through the ID of the WeChat public number corresponding to one WeChat public number in the at least one WeChat public number according to the prompt of the terminal for the at least one WeChat public number, the operation process of connecting the WiFi network by the user is simplified, the WiFi network can be quickly connected by the user, and meanwhile, the user experience is enhanced.
It should be understood that, in the embodiment of the present invention, the ID of the second wechat public number is the ID of one or more wechat public numbers in which the ID of at least one wechat public number historically bound in the wechat matches the IDs of a plurality of wechat public numbers acquired by the terminal. In the embodiment of the present invention, the ID of the one or more wechat public numbers matching the ID of the at least one wechat public number historically bound in the wechat with the IDs of the multiple wechat public numbers acquired by the terminal is named as "ID of the second wechat public number" merely to illustrate the technical scheme of the embodiment of the present invention, and does not limit the technical scheme of the embodiment of the present invention.
It should also be understood that, in the embodiment of the present invention, the reference to the "first instruction", the "second instruction", the "third instruction", and the "fourth instruction" is only to distinguish the confirmation instruction input by the user in the embodiment of the present invention, and does not limit the technical solution in the embodiment of the present invention.
It should be noted that, in the embodiments of the present invention, the technical solutions of the present invention are described by using the wechat bulletin, which is only for clearly describing the technical solutions of the present invention and does not limit the embodiments of the present invention at all.
It should also be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Fig. 11 is a flowchart of a method for connecting to a network according to another embodiment of the present invention. An execution subject of the method 600 for connecting a network as shown in fig. 11 may be a terminal, and the method 600 includes:
610, the terminal determines the identification of at least one first access point;
620, the terminal receives at least one beacon message sent by at least one second access point, where each beacon message carries an identifier of the second access point sending the beacon message;
630, the terminal obtains an identifier of at least one second access point according to the at least one beacon message;
640, the terminal determining whether the identity of the at least one first access point comprises the identity of the at least one second access point;
650, when the identity of the at least one first access point comprises the identity of the at least one second access point, determining at least one first specified application name corresponding to the identity of the at least one second access point;
660, the terminal prompts at least one first appointed application name on a first interface;
and 670, the terminal accesses the network according to the identifier of the second access point corresponding to one first appointed application name in the at least one first appointed application name.
Specifically, in embodiment 610 of the present invention, the first access point is an access point that is determined by the terminal and corresponds to the currently-receivable access point information. The terminal may obtain information of the access point from a certain Application program (APP for short) installed in the terminal, and obtain an identifier of the access point according to the access point information. In the embodiment of the present invention, the Identifier is information that uniquely represents an Access point, and the Identifier may specifically be a Media Access Control (MAC) address, an Internet Protocol (Internet Protocol Version 6, IPv6), a Service Set Identifier (SSID), and the like.
In 620, the Beacon message may be embodied as a Beacon frame signal transmitted by the access point. The second access point is an access point corresponding to the beacon message which can be currently received by the terminal. And the terminal receives a beacon message sent by the second access point, wherein the beacon message carries the identification of the access point corresponding to the access point sending the beacon message.
At 630, the terminal obtains the identity of the second access point from the currently received beacon message.
At 640, the terminal determines whether the identity of the first access point and the identity of the second access point match.
In 650, when the identities of one or more first access points of the identities of at least one first access point include the identities of one or more second access points of the identities of at least one second access point, the terminal needs to determine a specified application name corresponding to the identity of the second access point according to the relationship table of the correspondence between the identities of the second access points and the specified application name.
In 660, the first interface is an interface that can connect to a network in an application installed in the terminal. The first designated application name is a designated application name corresponding to the identity of the second access point. When the identifications of one or more first access points in the identifications of the at least one first access point are matched with the identifications of one or more access points in the identifications of the at least one second access point, the terminal prompts one or more first specified application names corresponding to the identifications of the matched one or more second access points on the first interface, so that the user can select one identification of the second access point corresponding to one specified application name from the one or more first specified application names according to the prompted one or more first specified application names of the terminal to connect to the network.
In 670, when the terminal receives a determination instruction input by the user, the terminal connects to the network according to the determination instruction. And the determining instruction is used for indicating the terminal to connect with the network through the identification of the second access point corresponding to the appointed application name selected by the user.
In the embodiment of the invention, the terminal can acquire the identifier of the designated application name to connect with the network by inquiring the relation table of the corresponding relation between the identifier of the access point and the identifier of the designated application name, which is pre-stored by the terminal.
In the embodiment of the present invention, the terminal may further obtain the identifier of the specified application name through other internal logical relationships between the specified application name and the identifier of the specified application name, which is not limited in any way in the embodiment of the present invention.
By adopting the method for connecting the network provided by the embodiment of the invention, the identifier of the access point is obtained according to the beacon message sent by the access point, the identifier of the access point which can be connected with the network and is determined by the terminal is matched with the received identifier of the current access point, the appointed application name corresponding to the identifier of the connection network is determined, and the network is connected through the identifier of the access point corresponding to the appointed application name, so that the operation process of connecting the network by a user is simplified, the quick network connection of the user is realized, and the user experience is enhanced.
Optionally, as another embodiment of the present invention, as shown in fig. 12, the determining, by the terminal, an identifier of at least one first access point includes:
6110, the terminal obtains at least one third access point information from the map, the at least one third access point information includes at least one second designated application name corresponding to the at least one third access point;
6120, when the designated application name of the historical binding in the first application installed on the terminal includes at least one second designated application name, the terminal determines the identifier of the third access point corresponding to the second designated application name included in the designated application name of the historical binding in the first application as the identifier of the at least one first access point.
Specifically, the map is map application software installed in the terminal itself. The terminal may obtain the identification of the access point from the mapping application software.
It should be understood that, in the embodiment of the present invention, the map may also be a map stored in advance by the terminal, or a map acquired by the terminal to the access point according to the beacon information sent by the access point, where the map includes the location information of at least one access point, the identifier of the access point, and the specified application name corresponding to the identifier of the access point. And the terminal acquires the identifier of at least one access point in the map according to the map.
In this embodiment of the present invention, the third access point information is information of all access points on the map, and includes the designated application names corresponding to all access points in the map, where the designated application name is the named second designated application name in 6110. The terminal may obtain all the access point information from the map, that is, the terminal obtains the designated application names corresponding to all the access points.
In 6120, the first Application may be an Application program (APP) installed on the terminal, such as: other applications such as QQ, WeChat, whatsapp, line, twitter, facebook, etc. The historical binding identifier is the binding relationship between the terminal and the identifier of the second access point, which is stored before the terminal is connected with the network at the current moment, and the specified application name corresponding to the identifier of the second access point is recorded. The identification of the historical binding may be an identification of one or more access points. In an embodiment of the invention, the first access point comprises a second access point.
Optionally, as another embodiment of the present invention, the determining, by the terminal, an identifier of at least one first access point further includes:
the terminal determines whether the terminal is in a network service range of at least one first specified application name; wherein,
the terminal determines the identity of at least one first access point, comprising:
the terminal determines an identity of at least one first access point when the terminal is within a network service range of at least one first specified application name.
Specifically, the terminal judges whether the terminal is currently in the network service range of the first specified application name. In the embodiment of the present invention, the terminal may determine whether the terminal is in the network service range according to the location information of the terminal itself, or the terminal may determine whether the terminal is in the network service range according to the location information of the terminal itself and the signal strength of the signal transmitted by the access point corresponding to the first specified application name, that is, when the terminal may receive the signal transmitted by the access point corresponding to the first specified application name, the terminal is in the network service range of the first specified application name.
When the terminal is in the network service range of one or more specified application names in the at least one first specified application name, prompting the user to connect the network through the access point identification corresponding to the one or more specified application names or the identification of the specified application names.
When the terminal receives a determination instruction input by a user, the terminal connects the network according to the determination instruction, wherein the determination instruction is used for indicating the terminal to connect the network according to an access point identifier corresponding to a specified application name selected by the user.
By adopting the method for connecting the network provided by the embodiment of the invention, the terminal acquires the identifier according to the beacon message sent by the access point, the appointed application name corresponding to the identifier of the connected network is determined by matching the identifier acquired in the map with the received identifier of the current access point, and the network is connected by the identifier of the appointed application name corresponding to the appointed application name, so that the operation process of connecting the network by a user is simplified, and the user can quickly connect the network. And meanwhile, determining the access point which can be connected with the network by matching the specified application name corresponding to the identifier of the first access point with the specified application name bound in the history. If the terminal is further determined to enter the network service range of the specified application name, the network can be efficiently connected, and the user experience is enhanced.
It should be understood that, in the embodiment of the present invention, the specified application name may be applied to a corresponding variety of social applications, for example: QQ, WeChat, whatcapp, line, twitter, facebook, and the like.
For convenience of description, the following takes an example of specifying that an application name is a wechat public number, an access point is a merchant access point, and a WiFi network is connected, and details of the technical solution of the example of the present invention are described with reference to fig. 13. It should be understood that this is only an example for illustrating the technical solutions of the embodiments of the present invention, and does not constitute any limitation to the embodiments of the present invention.
Fig. 13 is a schematic interaction diagram of a method for connecting to a WiFi network according to another embodiment of the present invention; as shown in fig. 13, the method 800 includes:
805, the terminal receives a first signal sent by at least one first access point;
810, acquiring a map according to the first signal;
815, the terminal obtains information of at least one second access point from the map, wherein the information of the at least one second access point comprises at least one first appointed application name corresponding to the at least one second access point.
820, the terminal determines whether the at least one designated application name of the historical binding includes at least one first designated application name;
825, when the historically bound at least one designated application name comprises at least one first designated application name, the terminal determines an identity of the third access point;
830, the terminal receives at least one beacon message sent by at least one fourth access point, and each beacon message carries an identifier of the fourth access point sending the beacon message;
835, the terminal acquires the identifier of at least one fourth access point according to the at least one beacon message;
840, the terminal determines whether the identifier of the at least one third access point includes an identifier of the at least one fourth access point, and when the identifier of the at least one third access point includes an identifier of at least one fourth access point among the identifiers of the at least one fourth access point, the terminal determines at least one second specified application name corresponding to the identifier of the at least one fourth access point;
845 the terminal prompts the at least one second designated application name on the first interface, so that the user can connect to the WiFi network through the ID of the designated application name corresponding to one of the at least one second designated application name.
850, the terminal sends a Service query request message to the access point, where the Service query request message includes an ID source code OpenID of the terminal wechat public number, a Service Set Identifier (SSID) of the access point, and an Identifier (Identity, ID) of the wechat public number;
855, the access point sends a service query request message to the WeChat Server;
860, the WeChat Server sends a service query request message to the Access Point Server;
865, the access point server performs authentication on the ID source code OpenID of the terminal wechat public number and the SSID of the access point;
870, when the identity authentication is passed, the access point server sends authentication passing information to the wechat server, wherein the authentication passing information comprises login address information of the access point and WiFi password information;
875, the wechat server sends an authentication pass message to the access point.
880, the access point sends verification passing information to the terminal;
885, the terminal sends login request information to the access point according to the login address information and the WiFi password information;
890, the access point sends response information to the terminal after receiving the login request information, namely, the login is successful.
895, the terminal records the WeChat public number.
Specifically, in the embodiment of the present invention, when the terminal just enters a mall, the terminal may receive a signal sent by an access point, where a first access point is an access point that sends a signal; the second access point is an access point of all shops acquired by the terminal from the map; the third access point is an access point corresponding to the appointed application name which is historically bound in the WeChat and is matched with the appointed application name which is the first appointed application name; the fourth access point is an access point corresponding to a signal which can be received by the terminal at the current moment and is sent by the access point. The Beacon message may be a Beacon frame signal transmitted by the access point.
In the embodiment of the invention, the terminal acquires the access point information of all shops from the map, and acquires the appointed application name corresponding to the shop access point from all the access point information; the method comprises the steps that a terminal matches appointed application names which are historically bound in the WeChat with appointed application names which are obtained by the terminal from a map, when one or more appointed application names in the appointed application names which are historically bound are matched with one or more appointed application names in a plurality of appointed application names which are obtained from the map, the terminal determines that a shop access point corresponding to at least one appointed application name which is matched is an access point which can be connected with a network, the terminal searches and receives a Beacon frame signal sent by the shop access point, and obtains the identification of the corresponding access point from the Beacon frame signal; the terminal matches the mark of the shop access point obtained by self judgment with the mark of the shop access point obtained from the Beacon frame signal; when the identifications of part of the business access points in the two business access points are matched, navigating to at least one appointed application name corresponding to the matched at least one business access point, and prompting the at least one appointed application name on an interface which can be connected with the network in the WeChat so that a user can select the identification of the appointed application name corresponding to the appointed application name from the at least one appointed application name to be connected with the WiFi network.
It should be noted that, in embodiment 881 of the present invention, the SSID of the access point is specifically obtained by the terminal from the access point information of the first access point.
In an embodiment of the present invention, before the terminal receives at least one first signal transmitted by at least one first access point, the method further includes:
896, multiple access points send request message for applying for WeChat public number to WeChat server;
899, the WeChat Server assigns the ID of the WeChat public number to the access point.
By adopting the method for connecting the WiFi network provided by the embodiment of the invention, the designated application name corresponding to the identifier acquired from the map is matched with the designated application name bound in the history, the designated application name connected with the WiFi network is determined, and the WiFi network is connected through the identifier of the designated application name corresponding to the designated application name, so that the operation process of connecting the user with the WiFi network is simplified, and the user can quickly connect the WiFi network.
The method of connecting a network according to an embodiment of the present invention is described in detail above with reference to fig. 1 to 13, and the terminal according to an embodiment of the present invention is described in detail below with reference to fig. 14 to 18.
Fig. 14 is a schematic structural diagram of a terminal according to an embodiment of the present invention; as shown in fig. 14, the terminal 900 includes: a receiving module 910, an obtaining module 920, a determining module 930, and a connecting module 940.
A receiving module 910, configured to receive at least one beacon message sent by at least one access point, where each beacon message carries a first identifier that is related to a first application and corresponds to the access point that sent the beacon message;
an obtaining module 920, configured to obtain at least one first identifier according to at least one beacon message;
a determining module 930, configured to determine whether the identifier of the historical binding in the first application installed on the terminal includes at least one first identifier;
and a connecting module 940, when the identifier of the historical binding in the first application includes at least one first identifier, connecting to the network according to the first identifier.
Specifically, the Beacon message received by the terminal may be a Beacon frame signal sent by the access point. The first Application may be an Application program (APP) installed on the terminal, for example: other applications such as QQ, WeChat, whatsapp, line, twitter, facebook, etc. The first identification may be a unique identification of a specified application name applied to the first application.
In an embodiment of the present invention, the receiving module 910 receives at least one beacon message transmitted by one or more access points. Each beacon message carries an identification of a specified application name that can be applied to the first application. Each beacon message may have a one-to-one correspondence with the access point that transmitted the beacon message. Each of the at least one beacon message may include an identification specifying an application name. The obtaining module 920 obtains an identifier of the specified application name from each beacon message.
Optionally, in this embodiment of the present invention, the beacon message includes an extension field, and the obtaining module 920 obtains, according to at least one beacon message, an identifier of at least one specified application name, specifically including:
the obtaining module 920 parses the extension field of each beacon message in at least one beacon message, and obtains the identifier of the specified application name in each beacon message.
It should be understood that the beacon message may also include signal strength information of the beacon message and an identification of the access point, which is not limited in any way in the embodiment of the present invention.
In the embodiment of the present invention, the identifier of the historical binding is a binding relationship between the terminal and the identifier of the designated application name, which is stored before the terminal connects to the network at the current time, and the identifier of the designated application name corresponding to the designated application name is recorded. The identification of the historical binding may be an identification of one or more specified application names.
The determining module 930 determines whether the identifications of the one or more specified application names of the historical bindings include an identification of one or more specified application names among the identifications of the at least one specified application name acquired by the acquiring module 920.
When the determination module 930 determines that some or all of the historically-bound identities of the specified application names include one or more of the identities of the specified application names acquired by the acquisition module 920, the connection module 940 connects the network according to the identity of one of the specified application names.
In this embodiment of the present invention, when the receiving module 910 may receive a determination instruction input by a user, where the determination instruction is used to instruct the terminal to connect to the network through an identifier of a specified application name corresponding to a specified application name determined by the user.
By adopting the terminal provided by the embodiment of the invention, the beacon message sent by the access point is received by the terminal, the identifier of the appointed application name is obtained according to the beacon message, and the network is connected according to the identifier of the appointed application name, so that the operation process of the user for connecting the network is simplified, the user can quickly connect the network, and meanwhile, the user experience is enhanced.
Optionally, as another embodiment of the present invention, as shown in fig. 15, the terminal further includes a prompting module 950, where the prompting module 950 is configured to prompt, when the identifier of the historical binding in the first application includes only one first identifier, a specified application name corresponding to the first identifier on a first interface, so that a user determines, according to the specified application name, to connect to a network through the first identifier corresponding to the specified application name.
Specifically, the first interface is an interface used for connecting a network in the first application. When the determining module 930 determines that the identifier of the specific application name of the historical binding includes the identifier of the specific application name acquired by the acquiring module 920, the prompting module 950 prompts the specific application name corresponding to the identifier of the specific application name on the interface of the connection network in the first application, so that the user can determine whether to connect the network through the identifier of the specific application name corresponding to the specific application name according to the prompted specific application name.
When the receiving module 910 receives a confirmation instruction of connecting to the network through the identification of the designated application name input by the user, the connecting module 940 connects to the network according to the identification of the designated application name.
It should be understood that, in the implementation of the present invention, the receiving module 910 may also receive a confirmation instruction that is input by the user and does not connect to the network through the identifier of the specified application name, and when the receiving module 910 receives the confirmation instruction, the terminal exits from the network connection interface and does not perform network connection.
In the embodiment of the present invention, the terminal may query the designated application name corresponding to the identifier of the designated application name through a relationship table of the correspondence between the identifier of the designated application name and the designated application name. As shown in tables 1 and 2. The terminal may also determine the designated application name by means of other inherent logical relationships between the identifier of the designated application name and the designated application name, which is not limited in the present invention.
It should be understood that the contents shown in tables 1 and 2 are only for describing the embodiments of the present invention in detail, and do not limit the scope of the embodiments of the present invention.
It should be understood that, in the embodiment of the present invention, when the terminal prompts to specify an application name on the interface of the first specified application for connecting to the network, content information related to the specified application name may also be prompted, for example: what type of content is published on a specified application name. This is not a limitation in the present invention.
Optionally, as another embodiment of the present invention, the prompting module 950 is further configured to prompt, when the identifier of the historical binding in the first application includes a plurality of first identifiers, a plurality of specified application names corresponding to the plurality of first identifiers on the first interface, so that the user determines, according to the plurality of specified application names, to connect to the network through the first identifier corresponding to the specified application name in the plurality of specified application names.
Specifically, the receiving module 910 receives at least one beacon message sent by a plurality of access points, and the obtaining module 920 obtains identifiers of a plurality of specified application names from the at least one beacon message; when the determining module 930 determines that the identifier of the at least one designated application name historically bound in the first application matches the identifiers of the plurality of designated application names acquired by the acquiring module 920, the prompting module 950 prompts, on the interface of the network connected in the first application, the terminal to acquire one or more designated application names corresponding to the identifiers of the plurality of designated application names matching the identifier of the at least one designated application name historically bound, so that the user can determine, according to the prompted designated application name of the terminal, a network connected by the identifier of the designated application name corresponding to the designated application name in the at least one designated application name.
When the receiving module 910 receives a determination instruction input by the user, the connecting module 940 connects to the network according to the determination instruction. The determining instructions are for indicating that the network is connected by an identification of a specified application name corresponding to one of the one or more specified application names that matches the identification of the at least one specified application name that is historically bound in the first application.
It should be understood that, in the implementation of the present invention, when the terminal prompts the user to connect to the network according to the identifier of one or more specified application names matching with the identifier of at least one specified application name historically bound in the first application on the interface for connecting to the network in the first specified application, the terminal may also prompt content information related to the at least one specified application name, for example: what type of content is published under a given application name is not a limitation of the present invention.
Optionally, as another embodiment of the present invention, the determining module 930 is specifically configured to determine, according to the multiple first identifiers, priorities of multiple specified application names corresponding to the multiple first identifiers;
the prompting module 950 is specifically configured to prompt, according to the priority, a plurality of designated application names corresponding to the plurality of first identifiers on the first interface.
Specifically, when the determining module 930 determines that the identifier of the at least one designated application name historically bound in the first application includes identifiers of a plurality of designated application names acquired by the acquiring module 920, the prompting module 950 prompts, on an interface of the network connected in the first application, the at least one designated application name corresponding to the identifier of the at least one designated application name matching the identifier of the at least one designated application name acquired by the terminal, and when the prompting module 950 prompts the at least one designated application name, the priority of the at least one designated application name may be determined according to a set condition, and the network connected by the identifier of the designated application name corresponding to the designated application name in the at least one designated application name is prompted according to the sequence of the priorities.
In an embodiment of the present invention, the prompting module 950 may prioritize at least one specified application name by the number of times the at least one specified application name accesses the network.
It should be understood that, in the embodiment of the present invention, the prompt module 950 may also determine the priority of at least one specified application name in other predefined manners, which is not limited in the embodiment of the present invention.
Therefore, with the terminal provided by the embodiment of the present invention, when the terminal obtains the identifiers of the multiple specified application names, the terminal determines whether the identifiers of the historical bound specified application names in the first application include the identifiers of the obtained multiple specified application names, and when the identifier of at least one historical bound specified application name matches the identifier of the multiple specified application names obtained by the terminal, the terminal prompts the user to connect to the network through the identifier of the specified application name corresponding to one specified application name in the multiple matched specified application names, thereby simplifying the operation process of the user to connect to the network, realizing the fast network connection of the user, and enhancing the user experience. Meanwhile, the terminal conducts priority ranking on at least one appointed application name which is bound with the history and can be connected with the network, and prompts a user to select an identification connection network of the appointed application name corresponding to the appointed application name from the at least one appointed application name according to the priority ranking of the at least one appointed application name, so that the speed of connecting the network is improved efficiently, and the user experience is enhanced.
Optionally, as another embodiment of the present invention, the prompting module 950 is further configured to prompt, in the second interface, to connect to the network through the first identifier that is not included in the plurality of first identifiers or the identifier of the historical binding in the first application.
Specifically, when the determining module 930 determines that the identifier of one or more specified application names in the identifier of the at least one specified application name that is historically bound in the first application matches the identifier of one or more specified application names in the identifiers of the plurality of specified application names that are acquired by the acquiring module 920, the prompting module 950 prompts the user at the system interface whether to connect to the network via the identifier of the specified application name that is acquired by the terminal and historically bound or to connect to the network via the identifier of the specified application name that is acquired by the terminal and historically unbound.
By adopting the terminal provided by the embodiment of the invention, when the terminal determines that one or more identifiers of the historical bound identifiers of the designated application names in the first application comprise one or more identifiers of the plurality of identifiers of the designated application names acquired by the terminal, the terminal prompts a user to select the identifier of the historical bound designated application names acquired by the terminal to be connected with the network or the identifier of the historical unbound designated application names acquired by the terminal to be connected with the network through a system interface, so that the operation process of connecting the user with the network is simplified, the user can quickly connect the network, and the user experience is enhanced.
Optionally, as another embodiment of the present invention, the prompting module 950 is further configured to prompt, when the network is connected through the first identifier not included in the identifier of the historical binding in the first application, at least one specified application name corresponding to the first identifier not included in the identifier of the historical binding in the first application on the first interface, so that the user determines, according to the at least one specified application name, to connect to the network through the first identifier corresponding to the specified application name in the at least one specified application name.
Specifically, after the prompting module 950 prompts the user to indicate the identifier connection network of the specified application name acquired by the terminal and historically bound or the identifier connection network of the specified application name acquired by the terminal and historically unbound, when the receiving module 910 receives an identifier connection network determination instruction of the specified application name acquired by the terminal and historically unbound, which is input by the user, the prompting module 950 prompts the user to acquire the specified application name corresponding to the identifier of the specified application name historically unbound on an interface of the specified application for connecting to the network, the receiving module 910 receives a determination instruction of the identifier connection network of the specified application name corresponding to one of the specified application names, which is input by the user, and the connecting module 940 connects to the network according to the identifier of the specified application name.
Optionally, as another embodiment of the present invention, the prompting module 950 is further configured to prompt, when the identifier of the historical binding in the first application does not include the first identifier, at least one specified application name corresponding to at least one of the first identifiers on a second interface, so that the user determines, according to the at least one specified application name, to connect to the network through the first identifier corresponding to one of the at least one specified application name.
Specifically, the second interface is a system interface of the terminal. When the identifier of each of the one or more specified application names acquired by the terminal is not included in the identifiers of the specified application names historically bound in the first application, the terminal prompts, at the system interface, the acquisition module 920 for the one or more specified application names corresponding to the identifiers of the one or more specified application names acquired by the terminal, so that the user can connect to the network through the identifier of the specified application name corresponding to the specified application name in the one or more specified application names.
When the receiving module 910 receives a confirmation instruction input by the user, the connecting module 940 connects to the network according to the confirmation instruction. The confirmation instruction is used for indicating the terminal to be connected with the network through an identifier corresponding to one of one or more specified application names, adding a binding relationship between the identifier of the specified application name and the terminal, and recording the specified application name corresponding to the identifier of the specified application name.
In this embodiment of the present invention, the receiving module 910 may further receive a cancel instruction, which is input by the user and connects to the network through the identifier of the specified application name, and the terminal cancels the prompt and does not perform network connection.
By adopting the terminal provided by the embodiment of the invention, when the terminal acquires the identifier of the specified application name, whether the identifier of the specified application name in the historical binding in the first application comprises the acquired identifier of the specified application name is determined by the terminal, and when the identifier of the specified application name in the historical binding comprises the identifier of the specified application name acquired by the terminal, the terminal prompts a user to determine that the network is connected by the identifier of the specified application name corresponding to one specified application name in the specified application names, so that the operation process of the user for connecting the network is simplified, the user can quickly connect the network, and meanwhile, the user experience is enhanced.
It should be noted that, in the embodiment of the present invention, the specified application name may be applied to a corresponding variety of social applications, for example: QQ, WeChat, whatcapp, line, twitter, facebook, and the like.
It should be further noted that, in the embodiment of the present invention, the terminal 900 according to the embodiment of the present invention may correspond to an execution main body of the method 100 according to the embodiment of the present invention, and the above and other operations and/or functions of each module in the terminal 900 are respectively for implementing corresponding flows of each method in fig. 1, fig. 3, and fig. 6, and are not described herein again for brevity.
Fig. 16 is a schematic structural diagram of a terminal according to an embodiment of the present invention; as shown in fig. 16, the terminal 1000 includes: a receiving module 1010, an obtaining module 1020, a determining module 1030, a prompting module 1040, and a connecting module 1050.
A determining module 1030 configured to determine an identity of at least one first access point;
a receiving module 1010, configured to receive at least one beacon message sent by at least one second access point, where each beacon message carries an identifier of the second access point that sent the beacon message;
an obtaining module 1020, configured to obtain an identifier of at least one second access point according to at least one beacon message;
the determining module 1030 is further configured to, when the identifier of the at least one first access point includes an identifier of the at least one second access point, determine at least one first specified application name corresponding to the identifier of the at least one second access point;
the prompting module 1040 is configured to prompt at least one first specified application name on the first interface;
a connection module 1050, configured to connect to the network according to an identifier of the second access point corresponding to one of the at least one first specified application name.
Specifically, in the embodiment of the present invention, the first access point is an access point corresponding to the access point information that is determined by the terminal and can be currently received. The terminal may obtain access point information from an Application program (APP) installed in the terminal, and the obtaining module 1020 obtains an identifier of the access point from the access point information. In the embodiment of the present invention, the identifier is information that uniquely represents an Access point, and the identifier may specifically be a Media Access Control (MAC) address, an Internet Protocol (Internet Protocol Version 6, IPv6), a Service Set Identifier (SSID), and the like.
The Beacon message may specifically be a Beacon frame signal sent by the access point. The second access point is an access point corresponding to the beacon message which can be currently received by the terminal. The receiving module 1010 receives a beacon message sent by the second access point, where the beacon message carries an identifier of an access point corresponding to the access point that sent the beacon message.
The obtaining module 1020 obtains the identity of the second access point from the currently received beacon message. The determination module 1030 determines whether the identity of the first access point and the identity of the second access point match. When the identities of one or more first access points in the identities of the at least one first access point match the identities of one or more access points in the identities of the at least one second access point, the prompting module 1040 prompts, on the first interface, one or more first specified application names corresponding to the identities of the matched one or more second access points, so that the user selects, according to the prompted one or more first specified application names of the terminal, the identity of the second access point corresponding to one of the specified application names from the one or more first specified application names to connect to the network.
When the receiving module 1010 receives a determination instruction input by the user, the connecting module 1050 connects to the network according to the determination instruction. And the determining instruction is used for indicating the terminal to connect with the network through the identification of the second access point corresponding to the appointed application name selected by the user.
In this embodiment of the present invention, the obtaining module 1020 may obtain the identifier of the specified application name through querying a relationship table of correspondence between the identifier of the access point and the identifier of the specified application name, which are stored in advance by the terminal.
In this embodiment of the present invention, the obtaining module 1020 may further obtain the identifier of the specified application name through other internal logical relationships between the specified application name and the identifier of the specified application name, which is not limited in this embodiment of the present invention.
By adopting the terminal provided by the embodiment of the invention, the identifier of the access point is obtained according to the beacon message sent by the access point, the identifier of the access point which can be connected with the network and is determined by the terminal is matched with the received identifier of the current access point, the appointed application name corresponding to the identifier of the connection network is determined, and the network is connected through the identifier of the access point corresponding to the appointed application name, so that the operation process of connecting the network by a user is simplified, the quick network connection of the user is realized, and the user experience is enhanced.
Optionally, as another embodiment of the present invention, the determining module is specifically configured to obtain at least one piece of third access point information from the map, where the at least one piece of third access point information includes at least one second specified application name corresponding to the at least one third access point;
when the appointed application name of the historical binding in the first application installed on the terminal comprises at least one second appointed application name, determining the identifier of a third access point corresponding to the second appointed application name included in the appointed application name of the historical binding in the first application as the identifier of the at least one first access point.
Specifically, the map is map application software installed in the terminal itself. The terminal may obtain the identification of the access point from the mapping application software.
It should be understood that, in the embodiment of the present invention, the map may also be a map stored in advance by the terminal, or a map acquired by the terminal to the access point according to the beacon information sent by the access point, where the map includes the location information of at least one access point, the identifier of the access point, and the specified application name corresponding to the identifier of the access point. And the terminal acquires the identifier of at least one access point in the map according to the map.
In this embodiment of the present invention, the third access point information is information of all access points on the map, and includes a specified application name corresponding to all access points in the map, where the specified application name is the second specified application name. The obtaining module 1020 may obtain all the access point information from the map, that is, the obtaining module 1020 obtains the designated application names corresponding to all the access points.
The first Application may be an Application program (APP) installed on the terminal, for example: other applications such as QQ, WeChat, whatsapp, line, twitter, facebook, etc. The historical binding identifier is the binding relationship between the terminal and the identifier of the second access point, which is stored before the terminal is connected with the network at the current moment, and the specified application name corresponding to the identifier of the second access point is recorded. The identification of the historical binding may be an identification of one or more access points. In an embodiment of the invention, the first access point comprises a second access point.
Optionally, as another embodiment of the present invention, the determining module 1030 is further configured to determine whether the terminal is in a network service range of at least one first specified application name; wherein,
the determining module 1030 is specifically configured to, when the terminal is within a network service range of at least one first specified application name, determine the identity of at least one first access point by the determining module 1030.
The determination module 1030 determines whether the terminal is currently within the network service range of the first specified application name. In this embodiment of the present invention, the determining module 1030 may determine whether the terminal is in the network service range according to the location information of the terminal itself, or the terminal may determine whether the terminal is in the network service range according to the location information of the terminal itself and the signal strength of the signal transmitted by the access point corresponding to the first specified application name, that is, when the receiving module 1010 of the terminal may receive the signal transmitted by the access point corresponding to the first specified application name, the terminal is in the network service range of the first specified application name.
When the determining module 1030 determines that the terminal is within the network service range of one or more of the at least one first specified application name, the prompting module 1040 prompts the user to connect to the network through the access point identifier corresponding to the one or more specified application names or the identifier of the specified application name.
When the receiving module 1010 receives a determination instruction input by a user, the connecting module 1050 connects to a network according to the determination instruction, where the determination instruction is used to instruct the terminal to connect to the network according to an access point identifier corresponding to a specified application name selected by the user.
By adopting the terminal provided by the embodiment of the invention, the identifier is obtained by the terminal according to the beacon message sent by the access point, the appointed application name corresponding to the identifier of the connection network is determined by matching the identifier obtained in the map with the received identifier of the current access point, and the network is connected by the identifier of the appointed application name corresponding to the appointed application name, so that the operation process of the user for connecting the network is simplified, and the user can quickly connect the network. And meanwhile, determining the access point which can be connected with the network by matching the specified application name corresponding to the identifier of the first access point with the specified application name bound in the history. If the terminal is further determined to enter the network service range of the specified application name, the network can be efficiently connected, and the user experience is enhanced.
It should be understood that, in the embodiment of the present invention, the specified application name may be applied to a corresponding variety of social applications, for example: QQ, WeChat, whatcapp, line, twitter, facebook, and the like.
It should be noted that, in the embodiment of the present invention, the apparatus 1000 according to the embodiment of the present invention may correspond to an execution main body of the method 600 according to the embodiment of the present invention, and the above and other operations and/or functions of each module in the terminal 1000 are respectively for implementing corresponding flows of each method in fig. 11 to fig. 13, and are not described herein again for brevity.
Fig. 17 shows a terminal 1100 according to another embodiment of the invention, as shown in fig. 17, the terminal 1100 includes a receiver 1110, a processor 1120, a display 1130, a communication chip 1140 and a bus system 1150. The receiver 1110, the processor 1120, the display 1130, and the communication chip 1140 are connected via a bus system 1150. Wherein,
a receiver 1110, configured to receive at least one beacon message sent by at least one access point, where each beacon message carries a first identifier that is related to a first application and corresponds to the access point that sent the beacon message;
a processor 1120 configured to obtain at least one first identifier according to at least one beacon message;
a processor 1120 configured to determine whether the identifier of the historical binding in the first application installed on the terminal comprises at least one first identifier;
the communication chip 1140 connects to the network according to the first identifier when the identifier of the historical binding in the first application includes at least one first identifier.
Specifically, the Beacon message received by the terminal may be a Beacon frame signal sent by the access point. The first Application may be an Application program (APP) installed on the terminal, for example: other applications such as QQ, WeChat, whatsapp, line, twitter, facebook, etc. The first identification may be a unique identification of a specified application name applied to the first application.
In an embodiment of the present invention, receiver 1110 receives at least one beacon message transmitted by one or more access points. Each beacon message carries an identification of a specified application name that can be applied to the first application. Each beacon message may have a one-to-one correspondence with the access point that transmitted the beacon message. Each of the at least one beacon message may include an identification specifying an application name. Processor 1120 obtains an identification of the specified application name from each beacon message.
Optionally, in this embodiment of the present invention, the beacon message includes an extension field, and the processor 1120, according to at least one beacon message, acquires an identifier of at least one specified application name, specifically including:
the processor 1120 parses the extension field of each beacon message in the at least one beacon message to obtain the identifier of the specified application name in each beacon message.
It should be understood that the beacon message may also include signal strength information of the beacon message and an identification of the access point, which is not limited in any way in the embodiment of the present invention.
In the embodiment of the present invention, the identifier of the historical binding is a binding relationship between the terminal and the identifier of the designated application name, which is stored before the terminal connects to the network at the current time, and the identifier of the designated application name corresponding to the designated application name is recorded. The identification of the historical binding may be an identification of one or more specified application names.
The processor 1120 determines whether the identification of the one or more specified application names of the historical bindings includes an identification of one or more specified application names of the at least one identification of specified application names obtained by the processor 1120.
When the processor 1120 determines that some or all of the historically bound identities of the specified application names include one or more of the identities of the specified application names obtained by the processor 1120, the communication chip 1140 connects the network according to the identity of one of the specified applications in the identities of the specified application names.
In this embodiment of the present invention, when the receiver 1110 may receive a determination instruction input by a user, the determination instruction is used to instruct the terminal to connect to the network through the identifier of the specified application name corresponding to the specified application name determined by the user.
By adopting the terminal provided by the embodiment of the invention, the beacon message sent by the access point is received by the terminal, the identifier of the appointed application name is obtained according to the beacon message, and the network is connected according to the identifier of the appointed application name, so that the operation process of the user for connecting the network is simplified, the user can quickly connect the network, and meanwhile, the user experience is enhanced.
It should be understood that, in the embodiment of the present invention, the processor 1120 may be a Central Processing Unit (CPU), and the processor 1120 may also be other general processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The bus system 1150 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as the bus system 1150.
The terminal may include memory, which may include read-only memory and random access memory, and provides instructions and data to the processor 1120. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1120. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and the processor 1120 reads information in the memory and performs the steps of the method in combination with hardware thereof. To avoid repetition, it is not described in detail here.
Optionally, as another embodiment of the present invention, the terminal further includes a display 1130, and the display 1130 is configured to, when the identifier of the historical binding in the first application includes only one first identifier, prompt, on the first interface, a specified application name corresponding to the first identifier, so that the user determines, according to the specified application name, to connect to the network through the first identifier corresponding to the specified application name.
Specifically, the first interface is an interface used for connecting a network in the first application. When the processor 1120 determines that the identifier of the specific application name of the historical binding includes the identifier of the specific application name acquired by the processor 1120, the display 1130 prompts the identifier of the specific application name corresponding to the identifier of the specific application name on the network connection interface in the first application, so that a user can determine whether to connect to the network through the identifier of the specific application name corresponding to the specific application name according to the prompted identifier of the specific application name.
When the receiver 1110 receives a confirmation instruction input by the user to connect to the network through the identification of the designated application name, the communication chip 1140 connects to the network according to the identification of the designated application name.
It should be understood that in the implementation of the present invention, the receiver 1110 may also receive a confirmation instruction that is input by the user and is not connected to the network through the identifier of the specified application name, and when the receiver 1110 receives the confirmation instruction, the terminal exits from the network connection interface and does not perform network connection.
In the embodiment of the present invention, the terminal may query the designated application name corresponding to the identifier of the designated application name through a relationship table of the correspondence between the identifier of the designated application name and the designated application name. As shown in tables 1 and 2. The terminal may also determine the designated application name by means of other inherent logical relationships between the identifier of the designated application name and the designated application name, which is not limited in the present invention.
It should be understood that the contents shown in tables 1 and 2 are only for describing the embodiments of the present invention in detail, and do not limit the scope of the embodiments of the present invention.
It should be understood that, in the embodiment of the present invention, when the terminal prompts to specify an application name on the interface of the first specified application for connecting to the network, content information related to the specified application name may also be prompted, for example: what type of content is published on a specified application name. This is not a limitation in the present invention.
Optionally, as another embodiment of the present invention, the display 1130 is further configured to prompt, when the identifier of the historical binding in the first application includes a plurality of first identifiers, a plurality of specified application names corresponding to the plurality of first identifiers in the first interface, so that the user determines, according to the plurality of specified application names, to connect to the network through the first identifier corresponding to the specified application name in the plurality of specified application names.
Specifically, the terminating receiver 1110 receives at least one beacon message sent by a plurality of access points, and the processor 1120 obtains identifiers of a plurality of specified application names from the at least one beacon message; when the processor 1120 determines that the identifier of the at least one designated application name historically bound in the first application matches the identifiers of the plurality of designated application names acquired by the processor 1120, the display 1130 prompts, on the interface of the connection network in the first application, the terminal to acquire one or more designated application names corresponding to the identifiers of the one or more designated application names whose identifiers match the identifier of the at least one designated application name historically bound, so that the user can determine, according to the prompted designated application name of the terminal, the connection network passing the identifier of the designated application name corresponding to the one of the at least one designated application name.
When the receiver 1110 receives a determination instruction input by a user, the communication chip 1140 connects a network according to the determination instruction. The determining instructions are for indicating that the network is connected by an identification of a specified application name corresponding to one of the one or more specified application names that matches the identification of the at least one specified application name that is historically bound in the first application.
It should be understood that, in the implementation of the present invention, when the terminal prompts the user to connect to the network according to the identifier of one or more specified application names matching with the identifier of at least one specified application name historically bound in the first application on the interface for connecting to the network in the first specified application, the terminal may also prompt content information related to the at least one specified application name, for example: what type of content is published under a given application name is not a limitation of the present invention.
Optionally, as another embodiment of the present invention, the processor 1120 is specifically configured to determine, according to the plurality of first identifiers, priorities of a plurality of specified application names corresponding to the plurality of first identifiers;
the display 1130 is specifically configured to prompt, according to the priority, a plurality of designated application names corresponding to the plurality of first identifiers on the first interface.
Specifically, when the processor 1120 determines that the identifier of the at least one designated application name historically bound in the first application includes identifiers of a plurality of designated application names acquired by the processor 1120, the display 1130 prompts, on an interface of a connection network in the first application, the identifier of the at least one designated application name historically bound and the identifier of the at least one designated application name matching with the identifier of the at least one designated application name acquired by the terminal, to correspond to the identifier of the at least one designated application name, and when the display 1130 prompts the at least one designated application name, the priority of the at least one designated application name may be determined according to a set condition, and the identifier of the designated application name corresponding to the designated application name in the at least one designated application name is prompted to connect the network according to the sequence of the priorities.
In an embodiment of the present invention, the display 1130 may prioritize the at least one designated application name by the number of times the at least one designated application name accesses the network.
It should be understood that, in the embodiment of the present invention, the prompt module 950 may also determine the priority of at least one specified application name in other predefined manners, which is not limited in the embodiment of the present invention.
Therefore, with the terminal provided by the embodiment of the present invention, when the terminal obtains the identifiers of the multiple specified application names, the terminal determines whether the identifiers of the historical bound specified application names in the first application include the identifiers of the obtained multiple specified application names, and when the identifier of at least one historical bound specified application name matches the identifier of the multiple specified application names obtained by the terminal, the terminal prompts the user to connect to the network through the identifier of the specified application name corresponding to one specified application name in the multiple matched specified application names, thereby simplifying the operation process of the user to connect to the network, realizing the fast network connection of the user, and enhancing the user experience. Meanwhile, the terminal conducts priority ranking on at least one appointed application name which is bound with the history and can be connected with the network, and prompts a user to select an identification connection network of the appointed application name corresponding to the appointed application name from the at least one appointed application name according to the priority ranking of the at least one appointed application name, so that the speed of connecting the network is improved efficiently, and the user experience is enhanced.
Optionally, as another embodiment of the present invention, the display 1130 is further configured to prompt, in the second interface, that the first identifier not included by the plurality of first identifiers or the identifier of the historical binding in the first application is connected to the network.
Specifically, when the processor 1120 determines that the identifier of one or more designated application names among the identifiers of the at least one designated application name historically bound in the first application matches the identifier of one or more designated application names among the identifiers of the plurality of designated application names acquired by the processor 1120, the display 1130 prompts the user at the system interface whether the identifier of the designated application name acquired through the terminal and historically bound connects to the network or the identifier of the designated application name acquired through the terminal and historically unbound connects to the network.
By adopting the terminal provided by the embodiment of the invention, when the terminal determines that one or more identifiers of the historical bound identifiers of the designated application names in the first application comprise one or more identifiers of the plurality of identifiers of the designated application names acquired by the terminal, the terminal prompts a user to select the identifier of the historical bound designated application names acquired by the terminal to be connected with the network or the identifier of the historical unbound designated application names acquired by the terminal to be connected with the network through a system interface, so that the operation process of connecting the user with the network is simplified, the user can quickly connect the network, and the user experience is enhanced.
Optionally, as another embodiment of the present invention, the display 1130 is further configured to prompt, when the network is connected through the first identifier not included in the identifier of the historical binding in the first application, at least one designated application name corresponding to the first identifier not included in the identifier of the historical binding in the first application in the first interface, so that the user determines, according to the at least one designated application name, that the network is connected through the first identifier corresponding to one of the at least one designated application name.
Specifically, after the display 1130 prompts the user to connect to the network by using the identifier of the specified application name acquired by the terminal and historically bound or to connect to the network by using the identifier of the specified application name acquired by the terminal and historically unbound, when the receiver 1110 receives an identifier connection network determination instruction of the specified application name acquired by the terminal and historically unbound, which is input by the user, the display 1130 prompts the user to acquire the specified application name corresponding to the identifier of the specified application name and historically unbound on an interface of the specified application for connecting to the network, the receiver 1110 receives a determination instruction of the identifier connection network of the specified application name corresponding to one of the specified application names and input by the user, and the communication chip 1140 connects to the network according to the identifier of the specified application name.
Optionally, as another embodiment of the present invention, the display 1130 is further configured to prompt, when the identifier of the historical binding in the first application does not include the first identifier, at least one specified application name corresponding to at least one of the first identifiers in a second interface, so that the user determines, according to the at least one specified application name, to connect to the network through the first identifier corresponding to one of the at least one specified application name.
Specifically, the second interface is a system interface of the terminal. When the identifier of each of the one or more specified application names obtained by the terminal is not included in the identifiers of the specified application names historically bound in the first application, the terminal prompts, at the system interface, the processor 1120 for the one or more specified application names corresponding to the obtained identifier of the one or more specified application names, so that the user can connect to the network through the identifier of the specified application name corresponding to the one of the one or more specified application names.
When the receiver 1110 receives a confirmation instruction input by the user, the communication chip 1140 connects to the network according to the confirmation instruction. The confirmation instruction is used for indicating the terminal to be connected with the network through an identifier corresponding to one of one or more specified application names, adding a binding relationship between the identifier of the specified application name and the terminal, and recording the specified application name corresponding to the identifier of the specified application name.
In this embodiment of the present invention, when the receiver 1110 further receives a cancel instruction, which is input by the user and connects to the network through the identifier of the specified application name, the terminal cancels the prompt and does not perform network connection.
By adopting the terminal provided by the embodiment of the invention, when the terminal acquires the identifier of the specified application name, whether the identifier of the specified application name in the historical binding in the first application comprises the acquired identifier of the specified application name is determined by the terminal, and when the identifier of the specified application name in the historical binding comprises the identifier of the specified application name acquired by the terminal, the terminal prompts a user to determine that the network is connected by the identifier of the specified application name corresponding to one specified application name in the specified application names, so that the operation process of the user for connecting the network is simplified, the user can quickly connect the network, and meanwhile, the user experience is enhanced.
It should be noted that, in the embodiment of the present invention, the terminal 1100 according to the embodiment of the present invention may correspond to an execution main body of the terminal 900 according to the embodiment of the present invention, and the above and other operations and/or functions of each module in the terminal 900 are respectively for implementing corresponding flows of each method in fig. 1 to fig. 6, and are not described again here for brevity.
Fig. 18 shows a terminal according to another embodiment of the present invention, and as shown in fig. 18, the terminal 1200 includes a receiver 1210, a processor 1220, a display 1230, a communication chip 1240 and a bus system 1250. The receiver 1210, the processor 1220, the display 1230, and the communication chip 1240 are connected via a bus system 1250. Wherein,
a processor 1220 configured to determine an identity of at least one first access point;
a receiver 1210, configured to receive at least one beacon message sent by at least one second access point, where each beacon message carries an identifier of the second access point that sent the beacon message;
a processor 1220, configured to obtain an identifier of at least one second access point according to at least one beacon message;
the processor 1220 is further configured to, when the identity of the at least one first access point includes an identity of the at least one second access point, determine at least one first specified application name corresponding to the identity of the at least one second access point;
a display 1230 for presenting at least one first specified application name in the first interface;
the communication chip 1240 is configured to connect to the network according to an identifier of the second access point corresponding to one of the at least one first specific application name.
Specifically, in the embodiment of the present invention, the first access point is an access point corresponding to the access point information that is determined by the terminal and can be currently received. The terminal may obtain access point information from an Application program (APP) installed in the terminal, and the processor 1220 obtains an identifier of the access point from the access point information. In the embodiment of the present invention, the identifier is information that uniquely represents an Access point, and the identifier may specifically be a Media Access Control (MAC) address, an Internet Protocol (Internet Protocol Version 6, IPv6), a Service Set Identifier (SSID), and the like.
The Beacon message may specifically be a Beacon frame signal sent by the access point. The second access point is an access point corresponding to the beacon message which can be currently received by the terminal. The receiver 1210 receives a beacon message sent by the second access point, where the beacon message carries an identifier of an access point corresponding to the access point that sent the beacon message.
Processor 1220 obtains the identity of the second access point from the currently received beacon message. Processor 1220 determines whether the identity of the first access point and the identity of the second access point match. When the identities of one or more of the identities of the at least one first access point match the identities of one or more of the identities of the at least one second access point, the display 1230 prompts, on the first interface, one or more first specified application names corresponding to the identities of the matched one or more second access points for the user to select, from the one or more first specified application names prompted by the terminal, an identity of the second access point corresponding to one of the specified application names to connect to the network.
When the receiver 1210 receives a determination instruction input by a user, the communication chip 1240 connects a network according to the determination instruction. And the determining instruction is used for indicating the terminal to connect with the network through the identification of the second access point corresponding to the appointed application name selected by the user.
In this embodiment of the present invention, the processor 1220 may obtain the identifier of the designated application name through querying a relationship table of correspondence between identifiers of access points stored in advance by the terminal and the designated application name and the identifier of the designated application name.
In this embodiment of the present invention, the processor 1220 may further obtain the identifier of the specified application name through other inherent logical relationships between the specified application name and the identifier of the specified application name, which is not limited in this embodiment of the present invention.
By adopting the terminal provided by the embodiment of the invention, the identifier of the access point is obtained according to the beacon message sent by the access point, the identifier of the access point which can be connected with the network and is determined by the terminal is matched with the received identifier of the current access point, the appointed application name corresponding to the identifier of the connection network is determined, and the network is connected through the identifier of the access point corresponding to the appointed application name, so that the operation process of connecting the network by a user is simplified, the quick network connection of the user is realized, and the user experience is enhanced.
It should be understood that, in the embodiment of the present invention, the processor 1220 may be a Central Processing Unit (CPU), and the processor 1220 may also be other general processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The bus system 1250 may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as the bus system 1250.
The terminal can include memory, which can include read only memory and random access memory, and provides instructions and data to the processor 1220. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1220. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and the processor 1220 reads information in the memory and performs the steps of the above method in combination with hardware thereof. To avoid repetition, it is not described in detail here.
Optionally, as another embodiment of the present invention, the determining module is specifically configured to obtain at least one piece of third access point information from the map, where the at least one piece of third access point information includes at least one second specified application name corresponding to the at least one third access point;
when the appointed application name of the historical binding in the first application installed on the terminal comprises at least one second appointed application name, determining the identifier of a third access point corresponding to the second appointed application name included in the appointed application name of the historical binding in the first application as the identifier of the at least one first access point.
Specifically, the map is map application software installed in the terminal itself. The terminal may obtain the identification of the access point from the mapping application software.
It should be understood that, in the embodiment of the present invention, the map may also be a map stored in advance by the terminal, or a map acquired by the terminal to the access point according to the beacon information sent by the access point, where the map includes the location information of at least one access point, the identifier of the access point, and the specified application name corresponding to the identifier of the access point. And the terminal acquires the identifier of at least one access point in the map according to the map.
In this embodiment of the present invention, the third access point information is information of all access points on the map, and includes a specified application name corresponding to all access points in the map, where the specified application name is the second specified application name. The processor 1220 may obtain all the access point information from the map, that is, the processor 1220 obtains the designated application names corresponding to all the access points.
The first Application may be an Application program (APP) installed on the terminal, for example: other applications such as QQ, WeChat, whatsapp, line, twitter, facebook, etc. The historical binding identifier is the binding relationship between the terminal and the identifier of the second access point, which is stored before the terminal is connected with the network at the current moment, and the specified application name corresponding to the identifier of the second access point is recorded. The identification of the historical binding may be an identification of one or more access points. In an embodiment of the invention, the first access point comprises a second access point.
Optionally, as another embodiment of the present invention, the processor 1220 is further configured to determine whether the terminal is in the network service range of at least one first specified application name; wherein,
the processor 1220 is specifically configured for, when the terminal is within a network service range of at least one first specified application name, the processor 1220 determining an identity of at least one first access point.
The processor 1220 determines whether the terminal is currently within a network service range of the first specified application name. In this embodiment of the present invention, the processor 1220 may determine whether the terminal is in the network service range according to the location information of the terminal itself, or the terminal may determine whether the terminal is in the network service range according to the location information of the terminal itself and the signal strength of the signal transmitted by the access point corresponding to the first specified application name, that is, when the receiver 1210 of the terminal may receive the signal transmitted by the access point corresponding to the first specified application name, the terminal is in the network service range of the first specified application name.
When processor 1220 determines that the terminal is within network service of one or more of the at least one first specified application name, display 1230 prompts the user to connect to the network via the access point identification corresponding to the one or more specified application names or the identification of the specified application name.
When the receiver 1210 receives a determination instruction input by a user, the communication chip 1240 connects a network according to the determination instruction, wherein the determination instruction is used for instructing the terminal to connect the network according to an access point identifier corresponding to a specified application name selected by the user.
By adopting the terminal provided by the embodiment of the invention, the identifier is obtained by the terminal according to the beacon message sent by the access point, the appointed application name corresponding to the identifier of the connection network is determined by matching the identifier obtained in the map with the received identifier of the current access point, and the network is connected by the identifier of the appointed application name corresponding to the appointed application name, so that the operation process of the user for connecting the network is simplified, and the user can quickly connect the network. And meanwhile, determining the access point which can be connected with the network by matching the specified application name corresponding to the identifier of the first access point with the specified application name bound in the history. If the terminal is further determined to enter the network service range of the specified application name, the network can be efficiently connected, and the user experience is enhanced.
It should be noted that, in the embodiment of the present invention, the terminal 1200 according to the embodiment of the present invention may correspond to an execution main body of the terminal 1000 according to the embodiment of the present invention, and the above and other operations and/or functions of each module in the terminal 1000 are respectively for implementing corresponding flows of each method in fig. 11 to fig. 13, and are not described herein again for brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the unit is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications or substitutions can be made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (14)

1. A method of connecting to a network, the method comprising:
a terminal receives at least one beacon message sent by at least one access point, wherein each beacon message carries a first identifier which is related to a first application and corresponds to the access point sending the beacon message; wherein the first identifier is an identifier of a WeChat public number applied to the first application;
the terminal acquires at least one first identifier according to the at least one beacon message;
the terminal determines whether the historical binding identifier in the first application installed on the terminal comprises at least one first identifier, wherein the historical binding identifier is a binding relationship between the terminal and a specified application identifier and a network connected before the terminal is connected with the network at the current moment;
when the historical bound identifier in the first application only comprises one first identifier, the terminal prompts a designated application name corresponding to the first identifier on a first interface so that a user can determine to connect to a network through the first identifier corresponding to the designated application name according to the designated application name;
when the identifier of the historical binding in the first application comprises a plurality of first identifiers, the terminal prompts a plurality of appointed application names corresponding to the first identifiers on a first interface, so that a user can determine to connect to a network through the first identifier corresponding to one appointed application name in the appointed application names according to the appointed application names.
2. The method according to claim 1, wherein the terminal prompts, in the first interface, a plurality of specified application names corresponding to the plurality of first identifiers, and includes:
the terminal determines the priority of a plurality of appointed application names corresponding to the first identifications according to the first identifications;
and the terminal prompts a plurality of appointed application names corresponding to the first identifications on the first interface according to the priority.
3. The method according to claim 1, wherein before the terminal connects to the network via the first identity, the method further comprises:
and the terminal prompts a first identifier which is not included by the plurality of first identifiers or the historical bound identifiers in the first application to be connected with the network on a second interface.
4. The method of claim 3, wherein the method comprises:
when the network is connected through the first identifier which is not included in the identifier of the historical binding in the first application, the terminal prompts at least one appointed application name corresponding to the first identifier which is not included in the identifier of the historical binding in the first application on the first interface, so that the user can determine to connect the network through the first identifier corresponding to one appointed application name in the at least one appointed application name according to the at least one appointed application name.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
when the identifier of the historical binding in the first application does not include the first identifier, the terminal prompts at least one appointed application name corresponding to the at least one first identifier on a second interface, so that the user can determine to connect to the network through the first identifier corresponding to one appointed application name in the at least one appointed application name according to the at least one appointed application name.
6. A method of connecting to a network, the method comprising:
the terminal determines the identification of at least one first access point;
the terminal receives at least one beacon message sent by at least one second access point, wherein each beacon message carries an identifier of the second access point which sends the beacon message;
the terminal acquires the identifier of the at least one second access point according to the at least one beacon message;
when the identification of the at least one first access point comprises the identification of the at least one second access point, determining at least one first specified application name corresponding to the identification of the at least one second access point;
the terminal prompts the at least one first appointed application name on a first interface;
and the terminal accesses the network according to the identifier of the second access point corresponding to one first appointed application name in the at least one first appointed application name.
7. The method of claim 6, wherein the terminal determining the identity of at least one first access point comprises:
the terminal acquires at least one piece of third access point information from the map, wherein the at least one piece of third access point information comprises at least one second specified application name corresponding to the at least one third access point;
when the designated application name which is historically bound in the first application and is installed on the terminal comprises at least one second designated application name, the terminal determines the identifier of the third access point corresponding to the second designated application name which is included in the designated application name which is historically bound in the first application as the identifier of the at least one first access point.
8. A terminal, characterized in that the terminal comprises:
a receiving module, configured to receive at least one beacon message sent by at least one access point, where each beacon message carries a first identifier that is related to a first application and corresponds to the access point that sent the beacon message; wherein the first identifier is an identifier of a WeChat public number applied to the first application;
an obtaining module, configured to obtain at least one first identifier according to the at least one beacon message;
the determining module is used for determining whether the historical binding identifiers in the first application installed on the terminal comprise at least one first identifier, wherein the historical binding identifiers are the binding relations between the terminal and a specified application identifier connecting network stored before the terminal is connected with the connecting network at the current moment;
the prompting module is used for prompting a specified application name corresponding to the first identifier on a first interface when the identifier of the historical binding in the first application only comprises one first identifier; when the identifier of the historical binding in the first application comprises a plurality of first identifiers, prompting a plurality of specified application names corresponding to the first identifiers on a first interface;
the connection module is used for connecting the user with a network through a first identifier corresponding to the specified application name according to the specified application name; and the user determines a first identification connecting network corresponding to one appointed application name in the appointed application names according to the appointed application names.
9. The terminal of claim 8,
the determining module is specifically configured to determine, according to the plurality of first identifiers, priorities of a plurality of designated application names corresponding to the plurality of first identifiers;
the prompting module is specifically configured to prompt, on the first interface, a plurality of designated application names corresponding to the plurality of first identifiers according to the priority.
10. The terminal of claim 8,
the prompting module is further configured to prompt, on a second interface, to connect to a network through the first identifiers that are not included in the plurality of first identifiers or the identifiers that are historically bound in the first application.
11. The terminal of claim 10,
the prompting module is further configured to prompt, at the first interface, at least one specified application name corresponding to the first identifier, which is not included in the identifier of the historical binding in the first application, when the first identifier, which is not included in the identifier of the historical binding in the first application, is connected to the network, so that the user determines, according to the at least one specified application name, that the first identifier, which corresponds to the specified application name in the at least one specified application name, is connected to the network.
12. The terminal according to claim 8 or 9, wherein the prompting module is further configured to prompt, on a second interface, at least one specified application name corresponding to the at least one first identifier when the identifier of the historical binding in the first application does not include the first identifier, so that the user determines, according to the at least one specified application name, to connect to the network through the first identifier corresponding to the specified application name in the at least one specified application name.
13. A terminal, characterized in that the terminal comprises:
a determining module for determining an identity of at least one first access point;
a receiving module, configured to receive at least one beacon message sent by at least one second access point, where each beacon message carries an identifier of the second access point that sent the beacon message; the identification of the first access point and the identification of the second access point are identifications of WeChat public numbers applied to a first application;
an obtaining module, configured to obtain an identifier of the at least one second access point according to the at least one beacon message;
the determining module is further configured to determine, when the identifier of the at least one first access point includes the identifier of the at least one second access point, at least one first specified application name corresponding to the identifier of the at least one second access point;
the prompting module is used for prompting the at least one first appointed application name on a first interface;
and the connection module is used for connecting the network according to the identifier of the second access point corresponding to one first appointed application name in the at least one first appointed application name.
14. The terminal according to claim 13, characterized in that the determining module is specifically configured to,
obtaining at least one piece of third access point information from the map, wherein the at least one piece of third access point information comprises at least one second specified application name corresponding to the at least one third access point;
when the designated application name of the historical binding in the first application installed on the terminal comprises at least one second designated application name, determining the identifier of the third access point corresponding to the second designated application name included in the designated application name of the historical binding in the first application as the identifier of the at least one first access point.
CN201580046580.0A 2015-08-04 2015-08-04 Network connection method and terminal Active CN106717107B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/086050 WO2017020252A1 (en) 2015-08-04 2015-08-04 Method and terminal for connecting to network

Publications (2)

Publication Number Publication Date
CN106717107A CN106717107A (en) 2017-05-24
CN106717107B true CN106717107B (en) 2020-03-31

Family

ID=57942276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580046580.0A Active CN106717107B (en) 2015-08-04 2015-08-04 Network connection method and terminal

Country Status (2)

Country Link
CN (1) CN106717107B (en)
WO (1) WO2017020252A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190223244A1 (en) * 2018-01-12 2019-07-18 Mediatek Inc. Method for avoiding establishing an inefficient wireless connection and a communications apparatus utilizing the same
WO2024031699A1 (en) * 2022-08-12 2024-02-15 Oppo广东移动通信有限公司 Connection establishment method and device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370251A (en) * 2007-08-17 2009-02-18 华为技术有限公司 Access control method for private service access point, its network appliance and system
CN101287008B (en) * 2008-05-26 2011-05-11 中兴通讯股份有限公司 System for realizing subnet dependent converge protocol
CN101605329A (en) * 2009-06-30 2009-12-16 中兴通讯股份有限公司 Cut-in method and access device
CN102437914B (en) * 2010-12-08 2013-12-04 袁永亮 Method by utilizing telecommunication network to supply user identity label and user identity authentication to Internet service
CN103281752A (en) * 2013-05-28 2013-09-04 北京推博信息技术有限公司 WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN103401884B (en) * 2013-08-16 2017-07-28 深信服网络科技(深圳)有限公司 Public wireless environment online authentication method and system based on wechat
CN103458408A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Network connection method and network sharing method and device
CN103458409A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Network connection method and network sharing method and device
CN104038917B (en) * 2014-06-27 2017-11-24 北京星网锐捷网络技术有限公司 The method and device of terminal roaming certification
CN104243286A (en) * 2014-09-23 2014-12-24 上海佰贝科技发展有限公司 Method for achieving public wifi authentication through WeChat
CN104394263A (en) * 2014-09-30 2015-03-04 小米科技有限责任公司 Accessing point list displaying method and device
CN104394139A (en) * 2014-11-22 2015-03-04 深圳市梧桐世界科技有限公司 Implementation method for having free of charge wifi by paying close attention to micro letter public name

Also Published As

Publication number Publication date
CN106717107A (en) 2017-05-24
WO2017020252A1 (en) 2017-02-09

Similar Documents

Publication Publication Date Title
US20180041893A1 (en) Method and system of multi-terminal mapping to a virtual sim card
CN104967997B (en) A kind of Wi-Fi cut-in method, Wi-Fi equipment, terminal device and system
JP6280641B2 (en) Account login method, device and system
US9572190B2 (en) Device and method for associating with WiFi networks
US10645001B2 (en) Information transmission method and apparatus, device and storage medium
US10887745B2 (en) Method and device for sharing file between different terminals
US20150135087A1 (en) User interface for sensor system
KR102201527B1 (en) Method for interworking between devices for short range communication and apparatus therefor
US20190149992A1 (en) Methods and apparatus for obtaining a service
CN105392142B (en) A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device
EP3525152A1 (en) Method and device for obtaining content of service information
US20220038566A1 (en) Call Processing Method and Mobile Terminal
CN104363585A (en) Wireless local area network access method
CN113132973A (en) Equipment network distribution method and system and computer readable storage medium
US9112883B2 (en) Method of registering a mobile station with a social networking site
US11314751B2 (en) Method and apparatus for acquiring information
CN112929224A (en) Network distribution method and device of equipment, server and computer readable storage medium
CN106717107B (en) Network connection method and terminal
US20190149956A1 (en) Systems and methods for vehicle telematics registration
CN113595992B (en) Secure binding method and system, storage medium and electronic device
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
US20180176781A1 (en) Method and device for managing wireless access point
CN104427541A (en) WiFi hot spot registration and information service system and method
CN106886159B (en) Configuration method and device of household appliance
US10187744B2 (en) Simplified method for placing telephone call and simplified method for requesting location-based service

Legal Events

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