CN108156646B - Method and device for accessing wireless network - Google Patents
Method and device for accessing wireless network Download PDFInfo
- Publication number
- CN108156646B CN108156646B CN201711366000.3A CN201711366000A CN108156646B CN 108156646 B CN108156646 B CN 108156646B CN 201711366000 A CN201711366000 A CN 201711366000A CN 108156646 B CN108156646 B CN 108156646B
- Authority
- CN
- China
- Prior art keywords
- wireless network
- merchant
- access information
- network access
- accessing
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 18
- 238000013500 data storage Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application relates to a method and a device for accessing a wireless network, wherein the method comprises the following steps: if a merchant consumption page in a specified application is started on the terminal equipment, determining a merchant identifier corresponding to the merchant consumption page; acquiring wireless network access information corresponding to the merchant identifier; and sending the wireless network access information to terminal equipment so that the terminal equipment can access a wireless network according to the wireless network access information. In the process of accessing the wireless network, when the terminal equipment starts a merchant consumption page in the appointed application, such as a consumption coupon use page, the server can push accessible wireless network access information to the terminal, so that the terminal equipment can be quickly accessed to the wireless network; in addition, the server only pushes the wireless network access information to the terminal equipment of the consuming user, so that the problem of network congestion caused by the fact that any terminal equipment can access the wireless network can be avoided.
Description
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a method and an apparatus for accessing a wireless network.
Background
With the popularization of WIreless networks, WIreless-FIdelity (WIFI) access devices are installed in most residences and public places, so that users can access the internet through the WIreless networks when entering the coverage of the WIreless networks. Taking a store place as an example, in order to provide wireless network services to users who enter store consumption, a wireless network password is usually set in the store, and when a terminal device of a user searches a wireless network account name of the store, network access can be realized by manually inputting the wireless network password.
Therefore, in the related art, when a user enters a specific place providing a wireless network, the user needs to manually search the account name of the wireless network and input the password of the wireless network to access the internet, so that the operation is inconvenient.
Disclosure of Invention
In order to solve the problems in the related art, embodiments of the present application provide a method and an apparatus for accessing a wireless network, which can actively push wireless network access information to a terminal device when the terminal device opens a merchant consumption page (e.g., a consumption coupon use page) of a specific application, so as to enable the terminal device to quickly access the wireless network.
According to a first aspect of the embodiments of the present application, there is provided a method for accessing a wireless network, which is applied to a server, and includes:
if a merchant consumption page in a specified application is started on terminal equipment, determining a merchant identifier corresponding to the merchant consumption page;
acquiring wireless network access information corresponding to the merchant identifier;
and sending the wireless network access information to terminal equipment so that the terminal equipment can access a wireless network according to the wireless network access information.
According to a second aspect of the embodiments of the present application, there is provided a method for accessing a wireless network, which is applied to a terminal device, and includes:
starting a merchant consumption page in the appointed application;
acquiring wireless network access information of a merchant identifier corresponding to the merchant consumption page, wherein the wireless network access information is provided by the server of the specified application;
and accessing the wireless network according to the wireless network access information.
According to a third aspect of the embodiments of the present application, there is provided an apparatus for accessing a wireless network, which is applied to a server, and includes:
the first determining module is used for determining a merchant identifier corresponding to a merchant consumption page if the merchant consumption page in a specified application is started on the terminal equipment;
the first acquisition module is used for acquiring wireless network access information corresponding to the merchant identifier;
and the first sending module is used for sending the wireless network access information to terminal equipment so that the terminal equipment can access a wireless network according to the wireless network access information.
According to a fourth aspect of the embodiments of the present application, there is provided an apparatus for accessing a wireless network, which is applied to a terminal device, and includes:
the starting module is used for starting a merchant consumption page in the specified application;
the second acquisition module is used for acquiring the wireless network access information of the merchant identifier corresponding to the merchant consumption page, and the wireless network access information is provided by the server of the specified application;
and the access module is used for accessing the wireless network according to the wireless network access information.
According to a fifth aspect of embodiments of the present application, there is provided a server, including:
a processor; a memory for storing the processor-executable instructions;
wherein the processor, when executing the executable instructions, implements the method of accessing a wireless network described in the first aspect.
According to a sixth aspect of embodiments of the present application, there is provided a terminal device, including:
a processor; a memory for storing the processor-executable instructions;
wherein the processor, when executing the executable instructions, implements the method of accessing a wireless network described in the second aspect.
According to a seventh aspect of embodiments of the present application, there is provided a computer-readable storage medium, wherein the storage medium stores a computer program for executing the method for accessing a wireless network described in the first aspect.
According to an eighth aspect of embodiments of the present application, there is provided a computer-readable storage medium, wherein the storage medium stores a computer program for executing the method for accessing a wireless network described in the second aspect.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
after a merchant consumption page in a specified application is started on the terminal device, the server can acquire wireless network access information of a merchant identifier (ID for short) corresponding to the merchant consumption page, and send the wireless network access information to the terminal device, so that the terminal device can automatically access a wireless network. Therefore, in the process of accessing the wireless network, when the terminal device starts a merchant consumption page in the specified application, such as a consumption coupon use page or a merchant consumption coupon purchase completion page, the server can push accessible wireless network access information to the terminal, so that the terminal device can be quickly accessed to the wireless network; in addition, the server only pushes the wireless network access information to the terminal equipment of the consuming user, so that the problem of network congestion caused by the fact that any terminal equipment can access the wireless network can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1A is a flow chart illustrating a method of accessing a wireless network according to one embodiment of the present application;
fig. 1B is a diagram illustrating a scenario of a method for accessing a wireless network according to an embodiment of the present application;
FIG. 1C is a schematic diagram illustrating a page consumed at a merchant according to one embodiment of the present application;
fig. 2 is a flow chart illustrating a method of accessing a wireless network according to another embodiment of the present application;
fig. 3 is a flow chart illustrating a method of accessing a wireless network according to another embodiment of the present application;
fig. 4A is a flow chart illustrating a method of accessing a wireless network according to one embodiment of the present application;
fig. 4B is a diagram illustrating wireless network access information according to an embodiment of the present application;
fig. 5 is a flow chart illustrating a method of accessing a wireless network according to another embodiment of the present application;
fig. 6A is a flow chart illustrating a method of accessing a wireless network according to another embodiment of the present application;
fig. 6B is a schematic diagram illustrating sharing of wireless network access information according to an embodiment of the present application;
fig. 7 is a block diagram illustrating an apparatus for accessing a wireless network according to an exemplary embodiment of the present application;
fig. 8 is a block diagram illustrating an apparatus for accessing a wireless network according to another exemplary embodiment of the present application;
fig. 9 is a block diagram illustrating an apparatus for accessing a wireless network according to an exemplary embodiment of the present application;
fig. 10 is a block diagram illustrating an apparatus for accessing a wireless network according to another exemplary embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" mean "the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely for purposes of describing particular embodiments and are not intended to be limiting.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The words third, etc. as used herein describe various information depending on the context, but such information should not be limited to these terms.
Fig. 1A is a flowchart illustrating a method for accessing a wireless network according to an embodiment of the present application, fig. 1B is a scene diagram illustrating a method for accessing a wireless network according to an embodiment of the present application, and fig. 1C is a schematic diagram illustrating a consumption page at a merchant according to an embodiment of the present application; the method for accessing a wireless network may be applied to a server of a specific application, as shown in fig. 1A, the method for accessing a wireless network in this embodiment may include the following steps 101 to 103:
in step 101, if a merchant consumption page in a specified application is started on a terminal device, a merchant identifier corresponding to the merchant consumption page is determined.
In one embodiment, the terminal device may have installed thereon a specific application, such as an e-commerce platform for selling restaurant consumption tickets, scenic spot tickets, etc., and the specific application may sell goods of multiple merchants, such as consumption tickets of restaurant 1, restaurant 2, …, restaurant N, tickets of scenic spot 1, scenic spot 2, …, scenic spot N.
In an embodiment, the merchant consumption page may be a usage page of the merchant consumption ticket, and if the merchant consumption page is opened, referring to fig. 1C, it may be stated that the terminal has purchased the consumption ticket and has not used the consumption ticket, and the usage page of the merchant consumption ticket may be opened for store consumption. In one embodiment, the merchant consumption page may also be a purchase completion page for a merchant consumption coupon or other page capable of indicating that the user has consumed at the merchant.
In one embodiment, each merchant usually needs to register an account in a specific application, and then the merchant sells goods through the specific application, and when the merchant registers the account, a merchant identifier is obtained, and the merchant identifier can identify the merchant.
In an embodiment, the server may perform an operation of determining a page identifier corresponding to the merchant consumption page when the terminal device opens the merchant consumption page; preferably, the server may further determine whether to perform an operation of determining the page identifier corresponding to the merchant consumption page based on the geographic location information of the terminal device, and generally, if the geographic location information of the terminal device indicates that the terminal device is currently within a geographic range of a merchant and the terminal opens the corresponding merchant consumption page, it may be determined that the user wants to go to a store for consumption, and therefore, an operation of obtaining the merchant identifier corresponding to the merchant consumption page and then obtaining the wireless network access information may be performed, and if the geographic location information of the terminal device indicates that the terminal device is not currently within the geographic range of the merchant, the user is not currently within the merchant store, and therefore, the operation of obtaining the merchant identifier corresponding to the merchant consumption page may be temporarily not performed.
In step 102, wireless network access information corresponding to the merchant identifier is obtained.
In an embodiment, the merchant identifier of each merchant may correspond to a wireless network list, one or more sets of wireless network access information are recorded in the wireless network list, and a database for storing the wireless network access information may be pre-established in the server, where a corresponding relationship between each merchant identifier and the merchant wireless network list is stored. Each set of wireless network access information may include a wireless network account name and a wireless network password.
In an embodiment, the wireless network list corresponding to each merchant identifier may be obtained and stored by the server, and the process of obtaining the merchant wireless network list of the merchant associated with the specified application may refer to the embodiment shown in fig. 2, which will not be described in detail here.
In an embodiment, each merchant wireless network list of each merchant may have at least one set of wireless network access information, and when the server needs to push the wireless network access information of the merchant to the terminal device, the server may obtain and push all the wireless network access information in the merchant wireless network list corresponding to the merchant identifier to the terminal device, for example, if three sets of wireless network access information are recorded in the wireless network list, all the wireless network access information in the wireless network list may be obtained and pushed to the terminal device.
In an embodiment, when the server needs to push the wireless network access information of the merchant to the terminal device, the server may also only obtain and push at least one set of wireless network access information in the merchant wireless network list to the terminal device, for example, if more than 10 sets of wireless network access information are recorded in the wireless network list, only two or three sets of wireless network access information may be obtained and pushed for each terminal device. For example, if there are 16 users consuming to the store (who have purchased consumption tickets on a specific application), and 6 sets of wireless network access information are recorded in the merchant wireless network list of the merchant, the first three sets of wireless network access information in the merchant wireless network list can be pushed to the terminal devices of the first 8 users to the store, and the last three sets of wireless network access information in the merchant wireless network list can be pushed to the terminal devices of the last 8 users to the store, thereby further ensuring that the access users of each wireless network access point are not too many, and ensuring the internet experience of the users.
In step 103, the wireless network access information is sent to the terminal device, so that the terminal device accesses the wireless network according to the wireless network access information.
In an exemplary scenario, referring to fig. 1B, when the terminal device 11 opens a merchant consumption page of a specific application, the server 12 may obtain wireless network access information of the merchant, and send accessible wireless network access information to the terminal device 11, and the terminal device 11 may quickly access a wireless network based on the wireless network access information, so that the terminal device 11 that has purchased a consumption coupon through the specific application may access the wireless network when the merchant consumption page is opened.
In this embodiment, when the server starts a merchant consumption page in the specified application on the terminal device, the server obtains wireless network access information of a merchant identifier corresponding to the merchant consumption page, and sends the wireless network access information to the terminal device, thereby implementing automatic access of the terminal device to the wireless network. Therefore, in the process of accessing the wireless network, when the terminal device starts a merchant consumption page in the specified application, such as a consumption coupon use page or a merchant consumption coupon purchase completion page, the server can push accessible wireless network access information to the terminal, so that the terminal device can be quickly accessed to the wireless network; in addition, the server only pushes the wireless network access information to the terminal equipment of the consuming user, so that the problem of network congestion caused by the fact that any terminal equipment can access the wireless network can be avoided.
Fig. 2 is a flowchart illustrating a method for accessing a wireless network according to another embodiment of the present application, and based on the above embodiment, the present embodiment takes as an example how the server obtains and stores a correspondence between a merchant identifier of each merchant and a merchant wireless network list, as shown in fig. 2, the method may include the following steps:
in step 201, a merchant wireless network list of merchants associated with a specific application is obtained, where the merchant wireless network list of each merchant includes at least one set of wireless network access information, and the wireless network access information includes a wireless network account name and a wireless network password.
In an embodiment, the server may prompt each merchant to input geographic location information and wireless network access information of a wireless network provided by the store when registering and using a specified application, and based on the geographic location information of each merchant and the approximate coverage of the wireless network access device, the coverage of the wireless network of the merchant store may be determined, and further, the wireless network covering the location of the merchant store may also be determined, for example, the geographic locations of a merchant a, a merchant B, and a merchant C associated with the specified application are relatively close to each other, and wireless networks are provided in all the stores of the three merchants, and the wireless networks of the stores of the three merchants may cover the locations of the other two merchants, so that the merchant wireless network list of each merchant may include the three sets of wireless network access information.
In an embodiment, the server may further obtain the wireless network covering the location of the merchant store through other manners, for example, the entity store of the merchant a is a shopping mall, and the shopping mall provides a free wireless network, so that the server may also add wireless network access information of the wireless network of the shopping mall in the wireless network list of the merchant.
In step 202, the corresponding relationship between the merchant identification of each merchant and the merchant wireless network list is saved.
In one embodiment, the server may store the correspondence between the merchant identifier of each merchant and the merchant wireless network list in a database, or other form of data storage structure, such as a data list.
In the embodiment, a manner that the server configures a corresponding merchant wireless network list for each merchant identifier is disclosed, so that when the terminal device accesses a merchant consumption page of a specific application, wireless network access information can be pushed to the terminal device.
Fig. 3 is a flowchart illustrating a method for accessing a wireless network according to another embodiment of the present application, where on the basis of the foregoing embodiment, the present embodiment takes an example where a server sends wireless network information to a terminal device, and as shown in fig. 3, the method may include the following steps:
in step 301, after the merchant consumption page in the specified application is started on the terminal device, the geographical location information sent by the terminal device is obtained, and the merchant identifier corresponding to the merchant consumption page is determined.
In an embodiment, when the terminal device starts a specific application, a Global Positioning System (GPS) may be started to perform Positioning synchronously, so as to perform accurate Positioning on the terminal device and obtain geographic location information of the terminal device.
In step 302, if it is determined that the terminal device is located within the geographic range of the merchant according to the geographic location information, wireless network access information corresponding to the merchant identifier is obtained.
In an embodiment, the server may further determine whether to perform an operation of determining a page identifier corresponding to the merchant consumption page based on the geographic location information of the terminal device, and generally if the geographic location information of the terminal device indicates that the terminal device is currently within a geographic range of the merchant and the terminal opens the corresponding merchant consumption page, it may be determined that the user is going to be consumed by the store, so that an operation of obtaining wireless network access information corresponding to the merchant identifier may be performed, and if the geographic location information of the terminal device indicates that the terminal device is not currently within the geographic range of the merchant, the user is not currently within the merchant store, so that the operation of obtaining wireless network access information corresponding to the merchant identifier may be temporarily not performed. Therefore, the server can match the geographical position information with the geographical range of the corresponding merchant, if the terminal equipment is located in the geographical range of the merchant, the merchant identification corresponding to the merchant consumption page can be obtained, and otherwise, the merchant identification corresponding to the merchant consumption page is not obtained.
In step 303, the wireless network access information is sent to the terminal device, so that the terminal device accesses the wireless network according to the wireless network access information.
In this embodiment, it is further limited that the server may push the wireless network access information to the terminal device when the geographic location information of the terminal device is located within a geographic range of the merchant store and the merchant consumption page of the specified application is started on the terminal device, so as to avoid invalid information push caused by pushing to the terminal device when the terminal device does not need the wireless network access information.
Fig. 4A is a flowchart illustrating a method for accessing a wireless network according to an embodiment of the present application, and fig. 4B is a schematic diagram illustrating wireless network access information according to an embodiment of the present application; as shown in fig. 4A, the method for accessing a wireless network in this embodiment may include the following steps 401 to 403:
in step 401, a merchant consumption page in a specified application is launched.
In one embodiment, the designated applications may be e-commerce platforms for selling restaurant consumption tickets, scenic spot tickets, etc., each of which may sell multiple merchant items, such as restaurant 1, restaurant 2, …, restaurant N consumption tickets, scenic spot 1, scenic spot 2, …, scenic spot N tickets.
In an embodiment, the merchant consumption page may be a usage page of the merchant consumption ticket, and after the user purchases the consumption ticket through the application, the user may open the usage page of the merchant consumption ticket for store consumption, see fig. 1C. In one embodiment, the merchant consumption page may also be a purchase completion page for a merchant consumption coupon or other page capable of indicating that the user has consumed at the merchant.
In step 402, wireless network access information of the merchant identifier corresponding to the merchant consumption page is obtained, and the wireless network access information is provided by a server of a specific application.
In an embodiment, the terminal device may receive the wireless network access information of the merchant identifier corresponding to the merchant consumption page, which is sent by the server in real time, that is, when the terminal device starts the corresponding merchant consumption page, the server pushes the wireless network access information to the terminal device in real time.
In an embodiment, the terminal device may obtain, from the local acquisition server, the wireless network access information of the merchant identifier corresponding to the merchant consumption page sent in advance. The server may store the corresponding relationship between the merchant identifier of each merchant and the merchant wireless network list in a database or other data storage structures, for example, in a data list, and synchronize the data storage structure to each client of the specified application, that is, the terminal device, to implement that the terminal device locally stores the wireless network access information of the merchant identifier, and further, when the terminal device needs to acquire the wireless network access information, the terminal device may directly query and acquire the wireless network access information from the local.
In an embodiment, the terminal device may execute an operation of acquiring the wireless network access information of the merchant identifier corresponding to the merchant consumption page when the merchant consumption page of the specified application is started; preferably, the terminal device may further determine whether to perform an operation of acquiring the wireless network access information of the merchant identifier corresponding to the merchant consumption page based on the geographic location information of the terminal device, and generally, if the geographic location information of the terminal device indicates that the terminal device is currently within the geographic range of the merchant and the terminal opens the corresponding merchant consumption page, it may be determined that the user is going to be consumed by the store, and therefore, an operation of acquiring the wireless network access information of the merchant identifier corresponding to the merchant consumption page may be performed, and if the geographic location information of the terminal device indicates that the terminal device is not currently within the geographic range of the merchant, the user is not currently in the merchant store, and therefore, the operation of acquiring the wireless network access information of the merchant identifier corresponding to the merchant consumption page may not be performed temporarily.
In step 403, the wireless network is accessed according to the wireless network access information.
In an embodiment, if the wireless network access information only has one group of wireless network account name and wireless network password, the terminal device can directly access the wireless network through the wireless network account name and the wireless network password, and the automatic access to the wireless network can be realized without the selection of a user.
In an embodiment, when the wireless network access information includes more than one group of wireless network account names and wireless network passwords, the wireless network access information may be displayed when the user performs an operation on the "connect to wireless network" access element in fig. 1C, referring to fig. 4B, the terminal device may access the wireless network selected by the user according to the selection of the user, and the access process may refer to the embodiment shown in fig. 5.
In this embodiment, when the terminal device starts a merchant consumption page of a specific application, the terminal device may directly obtain the wireless network access information of the merchant, and quickly access the wireless network according to the wireless network access information, thereby avoiding a problem of complicated operation caused by the fact that a user needs to manually search a wireless network account name and manually input a wireless network password to access the internet when entering the merchant for consumption in the related art.
Fig. 5 is a flow chart illustrating a method of accessing a wireless network according to another embodiment of the present application; on the basis of the foregoing embodiments, the present embodiment takes the terminal device as an example of accessing the wireless network based on the user selection, and as shown in fig. 5, the method may include the following steps:
in step 501, a merchant consumption page in a specified application is launched.
In step 502, the wireless network access information of the merchant identifier corresponding to the merchant consumption page is acquired, and step 503 or step 504 is executed.
In an embodiment, when it is detected that the terminal device starts the merchant consumption page in the specified application, in addition to displaying the merchant consumption page, the wireless network access information of the merchant identifier corresponding to the merchant consumption page may also be acquired, and the acquiring method may refer to the description of step 402 in the embodiment shown in fig. 4A, and is not described in detail here.
In step 503, if there is a group of wireless network access information, accessing the wireless network according to the wireless network access information; and if multiple groups of wireless network access information exist, determining a target wireless network with the best signal quality, and accessing the wireless network based on the wireless network account name and the wireless network password of the target wireless network.
In an embodiment, if there is only one group of wireless network account name and wireless network password, the terminal device can be directly controlled to access the wireless network based on the group of wireless network account name and wireless network password, and the terminal device can be accessed to the wireless network without user operation.
In an embodiment, if there are more than two groups of wireless network account names and wireless network passwords, the terminal device may automatically select a group of wireless networks with the best signal quality as the target wireless network, and access the wireless network based on the wireless network account name and the wireless network password of the target wireless network, and the wireless network with the last signal quality can be automatically accessed without user operation.
In step 504, an access element for accessing the merchant wireless network is presented in the merchant consumption page.
In one embodiment, step 503 illustrates a manner of directly controlling the terminal device to access the wireless network, and the terminal device may also determine whether to access the wireless network and which wireless network to access based on the user's selection. In an embodiment, an access element, such as a "connect wifi" button, may be displayed in the merchant consumption page, referring to fig. 1C, if the user performs an operation on the "connect wifi" button, it may be determined that the user wants to access the wireless network, and the access element for accessing the merchant wireless network may be presented in the merchant consumption page.
In step 505, wireless network access information is output if it is detected that the access element is operated.
In one embodiment, more than one set of wireless network account names and wireless network passwords, or more than one set of wireless network account names, may be presented in a list, see fig. 4B; in an embodiment, more than one group of wireless network account names and wireless network passwords, or more than one group of wireless network account names may also be presented in a linked manner.
In step 506, a target wireless network account name selected by the user from the wireless network access information is determined.
In an embodiment, a user may select one wireless network account name as a target wireless network account name to be accessed from wireless network access information output by a terminal device through a click operation.
In step 507, the wireless network is accessed according to the account name of the target wireless network and the corresponding wireless network password.
In the embodiment, a wireless network access mode is disclosed, wherein terminal equipment can directly access a wireless network and can also display access elements, a user selects whether to access the wireless network, accessible wireless network access information is output for the user when the user selects to access the wireless network, and the user selects to access one wireless network.
Fig. 6A is a flowchart illustrating a method for accessing a wireless network according to another embodiment of the present disclosure, and fig. 6B is a schematic diagram illustrating sharing of wireless network access information according to an embodiment of the present disclosure; on the basis of the foregoing embodiment, the present embodiment takes the example that the terminal device shares the wireless network access information with other users as an example, and as shown in fig. 6A, the method may include the following steps:
in step 601, a sharing element for sharing the merchant wireless network access information is presented in the merchant consumption page.
In an embodiment, a sharing element, such as a "share wifi" button, may be displayed in the merchant consumption page, referring to fig. 1C, if the user performs an operation on the "share wifi" button, it may be determined that the user wants to share the merchant wireless network to another person.
In step 602, when it is detected that the sharing element is operated, the sharing mode list is output.
In an embodiment, multiple sharing manners are provided in the present application, such as microblog sharing, wechat friend circle sharing, and the like, and when it is detected that the user wants to share the merchant wireless network to the user, the sharing manner list shown in fig. 6B may be displayed for the user to select.
In step 603, the wireless network access information is shared according to the selected target mode in the sharing mode list.
In the embodiment, the mode of sharing the wireless network access information to other users is disclosed, the wireless network access information can be shared to other people through various modes, the shared person can access the wireless network without inputting a password, and the experience of the user in using the specified application is improved.
Fig. 7 is a block diagram illustrating an apparatus for accessing a wireless network according to an exemplary embodiment of the present application; the apparatus for accessing a wireless network may be applied to a server, and as shown in fig. 7, the apparatus for accessing a wireless network includes:
a first determining module 71, configured to determine, if a merchant consumption page in a specified application is started on a terminal device, a merchant identifier corresponding to the merchant consumption page;
a first obtaining module 72, configured to obtain wireless network access information corresponding to the merchant identifier;
and the first sending module 73 is configured to send the wireless network access information to the terminal device, so that the terminal device accesses the wireless network according to the wireless network access information.
Fig. 8 is a block diagram illustrating an apparatus for accessing a wireless network according to another exemplary embodiment of the present application; on the basis of the embodiment shown in fig. 7, in an embodiment, the apparatus further includes:
a third obtaining module 74, configured to obtain a wireless network list of merchants associated with a specific application, where the merchant wireless network list of each merchant includes at least one set of wireless network access information, and the wireless network access information includes a wireless network account name and a wireless network password;
the storage module 75 is configured to store a corresponding relationship between the merchant identifier of each merchant and the merchant wireless network list.
In an embodiment, the first obtaining module 72 is specifically configured to:
and after the wireless network list corresponding to the merchant identification is obtained, at least one group of wireless network access information is obtained from the wireless network list.
In an embodiment, the first obtaining module 72 is specifically configured to:
acquiring geographical position information sent by terminal equipment;
and if the terminal equipment is determined to be positioned in the geographical range of the merchant corresponding to the merchant identifier according to the geographical position information, acquiring the wireless network access information corresponding to the merchant identifier.
In one embodiment, the merchant consumption page is a use page of the merchant consumption coupon; or a purchase completion page for the merchant consumption instrument.
Fig. 9 is a block diagram illustrating an apparatus for accessing a wireless network according to an exemplary embodiment of the present application; the apparatus for accessing a wireless network can be applied to a terminal device, and as shown in fig. 9, the apparatus for accessing a wireless network includes:
the starting module 91 is used for starting a merchant consumption page in the specified application;
a second obtaining module 92, configured to obtain wireless network access information of the merchant identifier corresponding to the merchant consumption page, where the wireless network access information is provided by a server of a specific application;
and the access module 93 is configured to access a wireless network according to the wireless network access information.
Fig. 10 is a block diagram illustrating an apparatus for accessing a wireless network according to another exemplary embodiment of the present application; on the basis of the embodiment shown in fig. 9, in an embodiment, the second obtaining module 92 is specifically configured to:
receiving wireless network access information of a merchant identifier which is sent by a server in real time and corresponds to a merchant consumption page; or,
and wireless network access information of the merchant identification corresponding to the merchant consumption page, which is sent in advance from the local acquisition server.
In an embodiment, the access module 93 is specifically configured to:
if a group of wireless network access information exists, accessing the wireless network according to the wireless network access information;
if a plurality of groups of wireless network access information exist, determining a target wireless network with the best signal quality;
and accessing the wireless network based on the wireless network account name and the wireless network password of the target wireless network.
In an embodiment, the access module 93 is specifically configured to:
outputting wireless network access information;
determining a target wireless network account name selected by a user from wireless network access information;
and accessing the wireless network according to the account name of the target wireless network and the corresponding wireless network password.
In an embodiment, the access module 93 is specifically configured to:
presenting an access element for accessing the merchant wireless network in the merchant consumption page;
when it is detected that the access element is operated, wireless network access information is output.
In an embodiment, the apparatus further comprises:
a presentation module 94, configured to present, in the merchant consumption page, a sharing element for sharing the merchant wireless network access information;
an output module 95, configured to output a sharing mode list when it is detected that the sharing element is operated;
and the sharing module 96 is configured to share the wireless network access information according to the selected target mode in the sharing mode list.
In an embodiment, the second obtaining module 92 is specifically configured to:
determining the geographical position information of the terminal equipment;
and if the geographical position information indicates that the terminal equipment is located in the geographical range of the merchant, acquiring wireless network access information corresponding to the merchant consumption page.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the 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 modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Corresponding to the above method for accessing a wireless network, the present application also provides a schematic structure diagram of an electronic device according to an exemplary embodiment of the present invention shown in fig. 11, where the electronic device may be a server or a terminal device. Referring to fig. 11, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may also include hardware required for other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a device for accessing the wireless network on a logic level. Of course, besides the software implementation, the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Wherein, when the electronic device is a server, the processor is configured to execute the method described in the first aspect.
Wherein, when the electronic device is a terminal device, the processor is configured to execute the method described in the second aspect.
In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of an apparatus, enable the apparatus to perform the method of accessing a wireless network of the first and second aspects.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (17)
1. A method for accessing a wireless network, the method being applied to a server, the method comprising:
if a merchant consumption page in a specified application is started on terminal equipment, determining a merchant identifier corresponding to the merchant consumption page, wherein the merchant consumption page is a use page of a merchant consumption coupon or a purchase completion page of the merchant consumption coupon;
acquiring wireless network access information corresponding to the merchant identifier;
and sending the wireless network access information to terminal equipment so that the terminal equipment automatically accesses a wireless network according to the wireless network access information.
2. The method of claim 1, further comprising:
acquiring a wireless network list of merchants related to the specified application, wherein the wireless network list of each merchant comprises at least one group of wireless network access information, and the wireless network access information comprises a wireless network account name and a wireless network password;
and storing the corresponding relation between the merchant identification of each merchant and the merchant wireless network list.
3. The method of claim 2, wherein the obtaining wireless network access information corresponding to the merchant identifier comprises:
and after the wireless network list corresponding to the merchant identification is obtained, at least one group of wireless network access information is obtained from the wireless network list.
4. The method of claim 1, wherein the obtaining wireless network access information corresponding to the merchant identifier comprises:
acquiring geographical position information sent by the terminal equipment;
and if the terminal equipment is determined to be positioned in the geographical range of the merchant corresponding to the merchant identifier according to the geographical position information, acquiring wireless network access information corresponding to the merchant identifier.
5. A method for accessing a wireless network, which is applied to a terminal device, includes:
starting a merchant consumption page in the appointed application;
acquiring wireless network access information of a merchant identifier corresponding to the merchant consumption page, wherein the wireless network access information is provided by the server of the specified application;
and accessing the wireless network according to the wireless network access information.
6. The method of claim 5, wherein the obtaining the wireless network access information of the merchant identifier corresponding to the merchant consumption page comprises:
receiving wireless network access information of the merchant identification which is sent by the server in real time and corresponds to the merchant consumption page; or,
and acquiring the wireless network access information of the merchant identification which is sent by the server in advance and corresponds to the merchant consumption page from the local.
7. The method of claim 5, wherein accessing the wireless network according to the wireless network access information comprises:
if a group of wireless network access information exists, accessing a wireless network according to the wireless network access information;
if a plurality of groups of wireless network access information exist, determining a target wireless network with the best signal quality;
and accessing the wireless network based on the wireless network account name and the wireless network password of the target wireless network.
8. The method of claim 5, wherein accessing the wireless network according to the wireless network access information comprises:
outputting the wireless network access information;
determining a target wireless network account name selected by a user from the wireless network access information;
and accessing the wireless network according to the target wireless network account name and the corresponding wireless network password.
9. The method of claim 8, wherein the outputting the wireless network access information comprises:
presenting, in the merchant consumption page, an access element for accessing a merchant wireless network;
outputting the wireless network access information when the access element is detected to be operated.
10. The method of claim 9, further comprising:
presenting sharing elements for sharing the merchant wireless network access information in the merchant consumption page;
when the sharing element is detected to be operated, outputting a sharing mode list;
and sharing the wireless network access information according to the selected target mode in the sharing mode list.
11. The method according to any one of claims 5 to 10, wherein the obtaining of the wireless network access information of the merchant corresponding to the merchant consumption page includes:
determining the geographical position information of the terminal equipment;
and if the geographical position information indicates that the terminal equipment is located in the geographical range of the merchant, acquiring wireless network access information corresponding to the merchant consumption page.
12. An apparatus for accessing a wireless network, the apparatus being applied to a server, comprising:
the first determining module is used for determining a merchant identifier corresponding to a merchant consumption page if the merchant consumption page in a specified application is started on terminal equipment, wherein the merchant consumption page is a use page of a merchant consumption coupon or a purchase completion page of the merchant consumption coupon;
the first acquisition module is used for acquiring wireless network access information corresponding to the merchant identifier;
and the first sending module is used for sending the wireless network access information to terminal equipment so that the terminal equipment can automatically access a wireless network according to the wireless network access information.
13. An apparatus for accessing a wireless network, applied to a terminal device, comprising:
the starting module is used for starting a merchant consumption page in the specified application;
the second acquisition module is used for acquiring the wireless network access information of the merchant identifier corresponding to the merchant consumption page, and the wireless network access information is provided by the server of the specified application;
and the access module is used for accessing the wireless network according to the wireless network access information.
14. A server, characterized in that the server comprises:
a processor; a memory for storing the processor-executable instructions;
wherein the processor, when executing the executable instructions, implements the method of accessing a wireless network of any of claims 1-4.
15. A terminal device, characterized in that the terminal device comprises:
a processor; a memory for storing the processor-executable instructions;
wherein the processor, when executing the executable instructions, implements the method of accessing a wireless network of any of claims 5-10.
16. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the method of accessing a wireless network according to any of the claims 1-4.
17. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the method for accessing a wireless network according to any of the claims 5-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711366000.3A CN108156646B (en) | 2017-12-18 | 2017-12-18 | Method and device for accessing wireless network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711366000.3A CN108156646B (en) | 2017-12-18 | 2017-12-18 | Method and device for accessing wireless network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108156646A CN108156646A (en) | 2018-06-12 |
CN108156646B true CN108156646B (en) | 2020-12-29 |
Family
ID=62467449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711366000.3A Active CN108156646B (en) | 2017-12-18 | 2017-12-18 | Method and device for accessing wireless network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108156646B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958608B (en) * | 2018-09-26 | 2022-02-18 | 腾讯科技(深圳)有限公司 | Wireless network connection method, device, storage medium and computer equipment |
CN109729582B (en) * | 2018-12-27 | 2021-12-10 | 维沃移动通信有限公司 | Information interaction method and device and computer readable storage medium |
CN109756993B (en) * | 2019-01-22 | 2020-06-02 | 口碑(上海)信息技术有限公司 | Control method, device and system for wireless network connection and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104038912A (en) * | 2014-07-03 | 2014-09-10 | 胡继强 | Security WIFI advertising method and system |
CN106303952A (en) * | 2016-07-28 | 2017-01-04 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus of the WiFi access point for accessing target shop |
CN106413046A (en) * | 2016-10-27 | 2017-02-15 | 北京小米移动软件有限公司 | Wireless network recommendation method, device and equipment |
US9635491B2 (en) * | 2014-07-10 | 2017-04-25 | Sap Se | Transient mobile application capture in a restricted area |
CN107360534A (en) * | 2016-05-10 | 2017-11-17 | 上海连尚网络科技有限公司 | A kind of method and apparatus for being used to establish wireless connection |
CN107509172A (en) * | 2017-09-12 | 2017-12-22 | 中广热点云科技有限公司 | A kind of free WIFI management methods in market and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150221149A1 (en) * | 2014-06-30 | 2015-08-06 | Richard Brewster Main | Wifi wallet payments and entry keys |
-
2017
- 2017-12-18 CN CN201711366000.3A patent/CN108156646B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104038912A (en) * | 2014-07-03 | 2014-09-10 | 胡继强 | Security WIFI advertising method and system |
US9635491B2 (en) * | 2014-07-10 | 2017-04-25 | Sap Se | Transient mobile application capture in a restricted area |
CN107360534A (en) * | 2016-05-10 | 2017-11-17 | 上海连尚网络科技有限公司 | A kind of method and apparatus for being used to establish wireless connection |
CN106303952A (en) * | 2016-07-28 | 2017-01-04 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus of the WiFi access point for accessing target shop |
CN106413046A (en) * | 2016-10-27 | 2017-02-15 | 北京小米移动软件有限公司 | Wireless network recommendation method, device and equipment |
CN107509172A (en) * | 2017-09-12 | 2017-12-22 | 中广热点云科技有限公司 | A kind of free WIFI management methods in market and system |
Also Published As
Publication number | Publication date |
---|---|
CN108156646A (en) | 2018-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10692151B1 (en) | Homeowners insurance application process using geotagged photos | |
US8566014B1 (en) | Discovery of public points of interest | |
CN107332878B (en) | Information pushing method and device and electronic equipment | |
CN108156646B (en) | Method and device for accessing wireless network | |
US20120129552A1 (en) | Integrated mobile ordering system | |
CN113807914A (en) | Commodity information display method, device, equipment and storage medium | |
CN109040955B (en) | Equipment activation method and device based on service identification code | |
CN111507772A (en) | Coupon management method, device and storage medium | |
US11706585B2 (en) | Location based mobile messaging shopping network | |
CN108291954A (en) | The establishment system and its control method of wave condition map | |
KR101829703B1 (en) | Method for Providing Sharing Service of Goods Information Searching | |
JP6621228B1 (en) | Program, information processing apparatus, information processing method, and information processing system | |
KR20200067108A (en) | Method and system for providing reward using confirmation code | |
KR20120076675A (en) | Method and apparatus for serving vicarious selling and user terminal | |
KR20160016299A (en) | Smart device with cleaning service. | |
JP2010128042A (en) | Map data management system | |
US20140213187A1 (en) | Communication terminal, place management server, and method of detecting place information thereof | |
US10452690B2 (en) | Online sites with associated fictitious geographical locations | |
JP2015069327A (en) | Investigation system, investigation method, server, user terminal, program, and recording medium | |
JP2015069513A (en) | Investigation system, investigation method, server, user terminal, program, and recording medium | |
KR20130012185A (en) | Treasure searching service system | |
CN110570272A (en) | Supply method and device, electronic equipment and computer readable storage medium | |
JP2020067755A (en) | Information processing method, information processing apparatus, and program | |
CN111382175B (en) | House information acquisition method and device | |
US20220277361A1 (en) | Methods of computer-implemented image sensor-initiated transactions for purchases with transaction fees paid to multiple parties |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |