[go: up one dir, main page]

CN105530684A - Method, device and system for network access - Google Patents

Method, device and system for network access Download PDF

Info

Publication number
CN105530684A
CN105530684A CN201410510310.8A CN201410510310A CN105530684A CN 105530684 A CN105530684 A CN 105530684A CN 201410510310 A CN201410510310 A CN 201410510310A CN 105530684 A CN105530684 A CN 105530684A
Authority
CN
China
Prior art keywords
network access
wireless network
terminal
identifier
data packet
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.)
Granted
Application number
CN201410510310.8A
Other languages
Chinese (zh)
Other versions
CN105530684B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410510310.8A priority Critical patent/CN105530684B/en
Publication of CN105530684A publication Critical patent/CN105530684A/en
Application granted granted Critical
Publication of CN105530684B publication Critical patent/CN105530684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device and a system for network access, which belongs to the technical field of communication. The method comprises steps: a data packet sent by a position informing device in an area where a terminal is is acquired; a position identifier in the data packet is read; a wireless network access parameter corresponding to the position identifier is acquired; and the wireless network access parameter is adopted to be accessed to the corresponding wireless network. The position identifier is read from the acquired data packet through the terminal, the wireless network access parameter corresponding to the position identifier is then acquired, and the wireless network access parameter is adopted to be automatically accessed to the corresponding wireless network; the problems that the network access method in the background technology is tedious in operation steps and long in access time consumption can be solved; and the wireless network access steps are simplified, the access time consumption is shortened, and the wireless network can be accessed automatically.

Description

Network access method, device and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network access method, apparatus, and system.
Background
WiFi (wireless fidelity) is a short-range wireless communication technology. The user can use the terminal supporting the WiFi technology to connect with the wireless access point and access the Internet through the wireless access point.
At present, a WiFi network access method mainly includes the following steps: the terminal acquires wireless access points which can be connected in the surrounding area, a user selects one wireless access point which needs to be connected, a corresponding password is input, and then the terminal completes WiFi network access according to the wireless access point selected by the user and the corresponding password.
In the process of implementing the invention, the inventor finds that the technology at least has the following problems: the WiFi access method related to the technology has the defects of complex operation steps and long access time.
Disclosure of Invention
In order to solve the problems of complex operation steps and long access time of the WiFi access method related to the technology, the embodiment of the invention provides a network access method, a device and a system. The technical scheme is as follows:
in a first aspect, a network access method is provided, where the method is used in a terminal, and the method includes:
acquiring a position in an area where the terminal is located and informing equipment of a data packet sent outwards, wherein the area where the terminal is located also comprises at least one wireless access point;
reading a position identifier contained in the data packet, wherein the position identifier is used for reflecting the geographical position of the position informing device;
acquiring wireless network access parameters corresponding to the position identification;
and accessing the wireless network provided by the wireless access point corresponding to the wireless network access parameter.
In a second aspect, a network access method is provided, which is used in a server, and the method includes:
receiving a position identifier sent by a terminal, wherein the position identifier is read from a data packet which is obtained by the terminal and sent outside by position informing equipment in an area where the terminal is located, the position identifier is used for reflecting the geographic position of the position informing equipment, and the area where the terminal is located also comprises at least one wireless access point;
acquiring wireless network access parameters corresponding to the position identification according to a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the position identification and the wireless network access parameters;
and sending the wireless network access parameter to the terminal, wherein the wireless network access parameter is used for triggering the terminal to access a wireless network provided by a wireless access point corresponding to the wireless network access parameter.
In a third aspect, a network access apparatus is provided, where the network access apparatus is used in a terminal, and the apparatus includes:
a data packet obtaining module, configured to obtain a data packet sent to an outside by a location notification device in an area where the terminal is located, where the area where the terminal is located further includes at least one wireless access point;
the identification reading module is used for reading a position identification contained in the data packet, and the position identification is used for reflecting the geographical position of the position informing device;
the parameter acquisition module is used for acquiring wireless network access parameters corresponding to the position identification;
and the network access module is used for accessing the wireless network provided by the wireless access point corresponding to the wireless network access parameter.
In a fourth aspect, a network access apparatus is provided, where the apparatus is used in a server, and the apparatus includes:
the system comprises an identification receiving module, a position identification receiving module and a position identification transmitting module, wherein the identification receiving module is used for receiving a position identification transmitted by a terminal, the position identification is read from a data packet which is transmitted to the outside by a position informing device in the area where the terminal is located after the terminal acquires the data packet, the position identification is used for reflecting the geographical position of the position informing device, and the area where the terminal is located also comprises at least one wireless access point;
a parameter obtaining module, configured to obtain a wireless network access parameter corresponding to the location identifier according to a predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the location identifier and the wireless network access parameter;
and the parameter sending module is used for sending the wireless network access parameters to the terminal, and the wireless network access parameters are used for triggering the terminal to access a wireless network provided by a wireless access point corresponding to the wireless network access parameters.
In a fifth aspect, a network access system is provided, where the system includes: a terminal and a server;
the terminal comprises a network access device according to the third aspect;
the server comprises a network access device according to the fourth aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
reading a position identification from the acquired data packet through the terminal, then acquiring a wireless network access parameter corresponding to the position identification, and automatically accessing the corresponding wireless network by adopting the wireless network access parameter; the problems of complicated operation steps and long access time of the network access method related to the background art are solved; the access steps of the wireless network are simplified, the time consumption of the access is shortened, and the automatic access to the wireless network is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description 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 schematic block diagram of an implementation environment in which various embodiments of the present invention are implemented;
fig. 2 is a flowchart of a method of network access according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for network access according to another embodiment of the present invention;
fig. 4 is a flowchart of a method for network access according to still another embodiment of the present invention;
fig. 5 is a block diagram illustrating a network access apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a network access device according to another embodiment of the present invention;
fig. 7 is a block diagram of a network access system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
In the process of implementing the invention, the inventor finds that: if the terminal needs to access a certain wireless network in the surrounding area, the terminal needs to acquire wireless network access parameters of the wireless network. Therefore, the position of the terminal can be judged by means of the positioning technology, wireless network access parameters of the wireless network which can be accessed in the surrounding area of the terminal can be provided for the terminal according to the position of the terminal, and after the terminal acquires the wireless network access parameters, the terminal can automatically access the corresponding wireless network by adopting the wireless network access parameters.
In the following, a description of one possible implementation environment for various embodiments of the invention is provided.
Referring to fig. 1, a schematic diagram of an implementation environment according to various embodiments of the present invention is shown. The implementation environment includes: terminal 120, location notification device 140, and wireless access point 160.
The terminal 120 may be a mobile phone, a tablet computer, an e-book reader, an MP3(moving picture expert grouping audio layer iii, moving picture expert compression standard audio layer 3) player, an MP4(moving picture expert grouping audio layer iv, moving picture expert compression standard audio layer 4) player, a laptop, etc.
The location notification device 140 may be various types of base station devices capable of sending out data packets. For example, the location notification device 140 may include a controller and a radio frequency module, and the controller is used for controlling the radio frequency module to send out data packets.
In a possible implementation manner, the position notification device 140 may implement an iBeacon transmitter based on the iBeacon technology through software, hardware, or a combination of the two, and the terminal 120 may implement an iBeacon receiver based on the iBeacon technology through software, components, or a combination of the two. The iBeacon technology is a technology for realizing precise micro-positioning based on a BLE (bluetooth low energy) technology. The iBeacon transmitter is used for sending broadcast data packets used for realizing positioning outwards, and the iBeacon receiver is used for acquiring the broadcast data packets sent out by the external iBeacon transmitter.
The wireless access point 160 may be a pure access point device or may be a unified device integrating routing, switching, and access. The wireless access point 160 is used to provide a wireless network for the terminal 120 to access. For example, the wireless network is a WiFi network.
In addition, optionally, the implementation environment may further include: a server 180.
The server 180 and the terminal 120 may be connected through a wired network or a wireless network. For example, when the server 180 and the terminal 120 are connected by a wireless network, the wireless network may be a wireless network based on a communication standard, such as a 2G (the second generation mobile communication technology standard) network, a 3G (the third generation mobile communication technology standard) network, a 4G (the fourth generation mobile communication technology standard) network, or a high frequency radio communication signal.
The server 180 may be a server, a server cluster composed of several servers, or a cloud computing service center.
The network access scheme provided by the embodiment of the invention is described and explained in detail below.
Referring to fig. 2, a flowchart of a method for network access according to an embodiment of the present invention is shown, where the method is applied to a terminal side in the implementation environment shown in fig. 1 for example. The network access method may include the steps of:
step 202, obtaining a position notification device in an area where the terminal is located and notifying the device of the data packet sent outside, wherein the area where the terminal is located also includes at least one wireless access point.
The position informing device sends a data packet to a certain area around, and after entering the area, the terminal acquires the data packet sent out by the position informing device in the area. When the position informing device is an iBeacon transmitter, the data packet sent out by the position informing device is a broadcast data packet for realizing positioning. Correspondingly, an iBeacon receiver can be integrated in the terminal and used for acquiring the broadcast data packet sent by the iBeacon transmitter.
In addition, the area in which the terminal is located also comprises at least one wireless access point besides the position informing device.
And step 204, reading the position identifier contained in the data packet, wherein the position identifier is used for reflecting the geographic position of the position notification device.
The data packet carries a location identifier for reflecting the geographical location of the location notification device, and different location identifiers represent different geographical locations. Since the location informing device, the wireless access point and the terminal are in the same area, the geographical location reflected by the location identity also reflects the geographical location of the wireless access point and the terminal.
And step 206, acquiring the wireless network access parameters corresponding to the position identification.
Presetting the preset corresponding relation between different position identifiers and different wireless network access parameters. The predetermined correspondence may be stored in the terminal or the server. When the preset corresponding relation is stored in the terminal, the terminal locally acquires wireless network access parameters; and when the corresponding relation is stored in the server, the terminal acquires the wireless network access parameters through interaction with the server.
The wireless network access parameters are necessary parameters required by the terminal to access the wireless network. For example, when the wireless network is a WiFi network, the wireless network access parameters typically include an SSID (service set identifier), a password, and a network encryption type of the WiFi network.
And step 208, accessing the wireless network provided by the wireless access point corresponding to the wireless network access parameter.
And after the terminal acquires the wireless network access parameters, the terminal automatically accesses the wireless network provided by the corresponding wireless access point according to the wireless network access parameters.
In summary, in the network access method provided in this embodiment, the terminal reads the location identifier from the acquired data packet, then acquires the wireless network access parameter corresponding to the location identifier, and automatically accesses the corresponding wireless network by using the wireless network access parameter; the problems of complicated operation steps and long access time of the network access method related to the background art are solved; the access steps of the wireless network are simplified, the time consumption of the access is shortened, and the automatic access to the wireless network is realized.
Referring to fig. 3, a flowchart of a method for network access according to another embodiment of the present invention is shown, and this embodiment illustrates the application of the network access method to the server side in the implementation environment shown in fig. 1. The network access method may include the steps of:
step 302, receiving a location identifier sent by a terminal, where the location identifier is read from a data packet sent by a location notification device in an area where the terminal is located after the terminal acquires the data packet, and the location identifier is used for reflecting a geographic location of the location notification device, and the area where the terminal is located also includes at least one wireless access point.
The server is connected with the terminal through a wireless network or a wired network. And the server receives the position identification sent by the terminal through the wireless network or the wired network. The position mark is used for reflecting the geographical position of the position informing device in the area where the terminal is located, and different position marks represent different geographical positions.
In addition, the area in which the terminal is located also comprises at least one wireless access point besides the position informing device. Since the location informing device, the wireless access point and the terminal are in the same area, the geographical location reflected by the location identity also reflects the geographical location of the wireless access point and the terminal.
Step 304, acquiring a wireless network access parameter corresponding to the location identifier according to a predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the location identifier and the wireless network access parameter.
The server stores preset corresponding relations between different position identifications and different wireless network access parameters in advance, and queries the preset corresponding relations to obtain the wireless network access parameters corresponding to the received position identifications.
The wireless network access parameters are necessary parameters required by the terminal to access the wireless network. For example, when the wireless network is WiFi, the wireless network access parameters typically include the SSID, password, and network encryption type of the WiFi network.
Step 306, sending the wireless network access parameter to the terminal, where the wireless network access parameter is used to trigger the terminal to access the wireless network provided by the wireless access point corresponding to the wireless network access parameter.
The server sends the acquired wireless network access parameters to the terminal through the wireless network or the wired network, and the terminal automatically accesses the wireless network provided by the corresponding wireless access point according to the wireless network access parameters after acquiring the wireless network access parameters.
In summary, in the network access method provided in this embodiment, after receiving the location identifier sent by the terminal, the server obtains the wireless network access parameter corresponding to the location identifier, and feeds the wireless network access parameter back to the terminal, so that the terminal accesses the corresponding wireless network by using the wireless network access parameter; the problems of complicated operation steps and long access time of the network access method related to the background art are solved; the access steps of the wireless network are simplified, the time consumption of the access is shortened, and the automatic access to the wireless network is realized.
Referring to fig. 4, a flowchart of a method for network access according to still another embodiment of the present invention is shown, and this embodiment illustrates the application of the network access method in the implementation environment shown in fig. 1. The network access method may include the steps of:
step 401, a terminal acquires a location in an area where the terminal is located and informs a device of a data packet sent to the outside, where the area where the terminal is located further includes at least one wireless access point.
An APP (Application) for acquiring a data packet sent by the location notification device may be installed in the terminal in advance. After the user opens the APP by using the terminal, the terminal can automatically monitor and acquire the data packet sent by the external position informing device. In addition, one or more location notification devices may exist in the area where the terminal is located, and the terminal may acquire the data packet sent to the outside by the one or more location notification devices.
The terminal is located in the area and comprises at least one wireless access point besides the position informing device. The wireless access point is used for providing a wireless network for the terminal to access.
In step 402, the terminal reads the location identifier contained in the data packet, where the location identifier is used to reflect the geographic location of the location notification device.
The data packet carries a location identifier for reflecting the geographical location of the location notification device, and different location identifiers represent different geographical locations. Taking a data packet sent based on the iBeacon technology as an example, the data packet generally includes proximitoyutid (proximitotyuniversally unique identifier, hereinafter referred to as "UUID"), majoritifier (primary identifier, hereinafter referred to as "major"), and minoritifier (secondary identifier, hereinafter referred to as "minor"), and the 3 identifiers form a complete location identifier. The 3 identifiers each function as: the UUID is used for identifying one or a group of iBeacon equipment; the major is used for distinguishing a group of iBeacon devices with the same UUID; minor is used to distinguish a group of iBeacon devices with the same UUID and the same major.
In the positioning principle based on the iBeacon technology, the iBeacon transmitter can establish an area which takes the iBeacon transmitter as a center, and the area can be uniquely identified by a position identifier which is composed of a UUID (user identifier) with 16 bytes, a major with 2 bytes and a minor with 2 bytes. Specifically, the identification implementation of the different areas may be combined with the following table-1, taking the example of different branch stores of the merchant a in different areas:
TABLE-1
As can be seen from Table-1 above, all the branch stores of the merchant A share a UUID, different major identifies different regions, and different minor identifies different branch stores in the same region. Any branch store of the merchant A can be accurately determined by forming a complete position identifier by the 3 identifiers.
Optionally, when reading the location identifier included in the data packet, the terminal may include the following sub-steps:
first, a universal identifier contained in the data packet is read.
A universal identifier is a global identifier, such as a UUID as described above, that is used to identify one or a group of location aware devices.
Second, it is detected whether the universal identifier exists in a preset universal identifier group.
The universal identifier group comprises at least one universal identifier. The universal identifier included in the universal identifier group is a preset universal identifier corresponding to an area where a wireless network access service can be provided. The terminal can filter out useful universal identifiers by detecting whether the universal identifiers read from the data packet exist in the universal identifier group, and does not perform subsequent processing on the universal identifiers corresponding to some areas which do not provide wireless network access service.
In addition, the terminal may acquire the set of universal identifiers from the server. For example, after the user opens the APP each time, the terminal automatically acquires the latest universal identifier group from the server in the networking state. The acquiring process may be that the terminal actively sends a request to the server for acquisition, or passively receives push information sent by the server, which is not particularly limited.
Third, if the universal identifier exists in the universal identifier group, the unique identifier included in the packet is read, and the universal identifier and the unique identifier are used as the location identifier.
When the universal identifier read from the data packet exists in the universal identifier group, the area corresponding to the universal identifier is indicated to be available for providing the wireless network access service. At this time, the terminal further reads the unique identifier included in the data packet. The unique identifier is a unique identifier for distinguishing a group of location notification devices having the same universal identifier, such as a combination of major and minor as described above. The combination of the universal identifier and the unique identifier forms a location identifier that reflects the geographic location of the device from which the data packet was transmitted.
In addition, when the terminal acquires the data packets sent out from the plurality of position notification devices, the following processing may be performed:
when the universal identifiers contained in n data packets exist in the universal identifier group, the terminal respectively acquires the distance between the terminal and each position informing device for sending the n data packets, and then selects the data packet sent by the position informing device closest to the terminal from the n data packets; wherein n is not less than 2 and n is an integer.
Specifically, the terminal may obtain the rssi corresponding to each packet and obtain the distance between the terminal and each location notification device transmitting the n packets based on the rssi. After the terminal obtains the distance between the terminal and each position informing device, the position informing device with the closest distance is selected, and the position identification is read from the data packet sent by the position informing device with the closest distance, so that the stability of the subsequent wireless network connection can be ensured.
After the terminal reads the position identification from the data packet, the wireless network access parameter corresponding to the position identification can be obtained locally or from the server. And the wireless network access parameter corresponding to the position identifier is the wireless network access parameter of the wireless access point in the geographic position area reflected by the position identifier. First, the procedure of the terminal acquiring the wireless network access parameter from the server is described as following steps 403 to 405.
In step 403, the terminal sends the location identifier to the server.
The terminal and the server can be connected through a wired network or a wireless network, and the terminal sends the position identification to the server by means of the network connection.
Correspondingly, the server receives the position identification sent by the terminal.
Step 404, the server obtains the wireless network access parameter corresponding to the location identifier according to the predetermined corresponding relationship.
The predetermined corresponding relation comprises a corresponding relation between the position identification and the wireless network access parameter. The server may have pre-stored therein a correspondence between at least one set of location identifiers and wireless network access parameters. And after receiving the position identification sent by the terminal, the server inquires the preset corresponding relation to obtain the wireless network access parameter corresponding to the received position identification.
When the wireless network is a WiFi network, the wireless network access parameters typically include the SSID, password, and network encryption type of the WiFi network.
In a possible implementation manner, the server firstly queries geographical location information corresponding to the location identifier according to a first predetermined corresponding relationship, where the first predetermined corresponding relationship includes a corresponding relationship between the location identifier and the geographical location information; and then, the server inquires wireless network access parameters corresponding to the geographic position information according to a second preset corresponding relation, wherein the second preset corresponding relation comprises the corresponding relation between the geographic position information and the wireless network access parameters.
Examples of the first and second predetermined correspondences are shown in tables-2 and-3 below, respectively:
location identification Geographical location information
70018899-9423-47BC-8A77-8D9C11B87681;1;10 Merchant A Guangzhou branch 1
70018899-9423-47BC-8A77-8D9C11B87681;1;20 Merchant A Guangzhou branch store 2
70018899-9423-47BC-8A77-8D9C11B87681;2;10 Merchant A Shanghai Branch shop 1
TABLE-2
Geographical location information Wireless network access parameters
Merchant A Guangzhou branch 1 SSID: mc-free; password: 12345678; encryption type: WEP
Merchant A Guangzhou branch store 2 SSID: TP-Link 98E; password: freewifi; encryption type: WPA2-AES
Merchant A Shanghai Branch shop 1 SSID: mc-free; password: 888888; encryption type: WPA2-AES
TABLE-3
In a specific example, with reference to table-2 and table-3, it is assumed that the location identifier sent by the terminal to the server includes: 70018899-9423-47BC-8A77-8D9C11B 87681; 1; 10. after receiving the location identifier, the server queries the first predetermined corresponding relationship to obtain geographic location information, wherein the geographic location information is 'commercial tenant A Guangzhou branch store 1'. And then, the server further queries and obtains the wireless network access parameters of the branch according to the second preset corresponding relation. The server stores wireless network access parameters of providers such as areas, merchants or units which are provided with wireless network access services in advance, and can update information in real time to ensure the integrity and accuracy of the information.
Step 405, the server sends the wireless network access parameter to the terminal.
And after acquiring the wireless network access parameter corresponding to the position identifier, the server feeds the wireless network access parameter back to the terminal, so that the terminal can automatically access the corresponding wireless network by using the wireless network access parameter subsequently.
Correspondingly, the terminal receives the wireless network access parameters sent by the server.
The above-mentioned steps 403 to 405 take the process that the terminal obtains the wireless network access parameter from the server as an example, and in other possible implementation manners, the terminal may also obtain the wireless network access parameter locally. Specifically, the terminal may pre-store a predetermined corresponding relationship locally, and then query the wireless network access parameter corresponding to the location identifier according to the locally stored predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the location identifier and the wireless network access parameter. The predetermined correspondence relationship pre-stored locally in the terminal may also be obtained from the server in advance and stored.
Similar to the process of acquiring the wireless network access parameters by the server, the terminal may also first query the geographical location information corresponding to the location identifier according to a locally stored first predetermined corresponding relationship, where the first predetermined corresponding relationship includes a corresponding relationship between the location identifier and the geographical location information; and then inquiring wireless network access parameters corresponding to the geographic position information according to a second preset corresponding relation stored locally, wherein the second preset corresponding relation comprises the corresponding relation between the geographic position information and the wireless network access parameters. The specific query process has been described and illustrated in detail above, and reference may be made to the query process on the server side, which is not described again.
In step 406, the terminal accesses the wireless network provided by the wireless access point corresponding to the wireless network access parameter.
And after the terminal acquires the wireless network access parameters, the terminal realizes automatic access through the system bottom layer. For example, when the terminal acquires WiF the SSID, password and network encryption type of the network, it can automatically access the WiFi network provided by the corresponding wireless access point. The specific access procedure is easily understood by those skilled in the art, and is not described in detail in this embodiment.
The points to be explained are: the corresponding relationship between the location identifier and the wireless network access parameter may be a one-to-one relationship or a one-to-many relationship. And when the wireless network access parameter corresponding to the position identifier is one, the terminal directly adopts the wireless network access parameter to access the corresponding wireless network. When the wireless network access parameters corresponding to the position identifiers are two or more, the terminal can select one wireless network access parameter from the wireless network access parameters according to a preset selection rule, and then the selected wireless network access parameter is adopted to access the wireless network provided by the corresponding wireless access point. The predetermined selection rule may be to randomly select a wireless network access parameter, select a first wireless network access parameter, or sequentially select wireless network access parameters until a wireless network provided by a corresponding wireless access point is successfully accessed.
In summary, in the network access method provided in this embodiment, the terminal reads the location identifier from the acquired data packet, then acquires the wireless network access parameter corresponding to the location identifier, and automatically accesses the corresponding wireless network by using the wireless network access parameter; the problems of complicated operation steps and long access time of the network access method related to the background art are solved; the access steps of the wireless network are simplified, the time consumption of the access is shortened, and the automatic access to the wireless network is realized.
In addition, in the network access method provided in this embodiment, a data packet sent out by an iBeacon transmitter in the iBeacon technology is used, and a geographic location area of the terminal is determined by using a location identifier carried in the data packet, so as to obtain a wireless network access parameter of a wireless access point in the area. The reasonable utilization of the position identification carried in the data packet is realized, the automatic wireless network access service is further provided for the user, and the trouble of selecting the access process after manual search is saved.
In addition, when the terminal detects that the universal identifiers contained in the plurality of data packets exist in the universal identifier group, the data packets sent by the position informing equipment closest to the terminal are selected, and the position identifiers are read from the data packets, so that the connection quality of wireless network connection is ensured.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 5, a block diagram of a network access device according to an embodiment of the present invention is shown, where the network access device may be implemented as part or all of a terminal through software, hardware, or a combination of the two. The network access device may include: a packet obtaining module 510, an identification reading module 520, a parameter obtaining module 530 and a network access module 540.
A data packet obtaining module 510, configured to obtain a data packet sent by a location notification device in an area where the terminal is located, where the area where the terminal is located also includes at least one wireless access point.
An identifier reading module 520, configured to read a location identifier included in the data packet, where the location identifier is used to reflect a geographic location of the location notification device.
A parameter obtaining module 530, configured to obtain a wireless network access parameter corresponding to the location identifier.
A network access module 540, configured to access a wireless network provided by a wireless access point corresponding to the wireless network access parameter.
In summary, the network access apparatus provided in this embodiment reads the location identifier from the acquired data packet through the terminal, then acquires the wireless network access parameter corresponding to the location identifier, and automatically accesses the corresponding wireless network by using the wireless network access parameter; the problems of complicated operation steps and long access time of the network access method related to the background art are solved; the access steps of the wireless network are simplified, the time consumption of the access is shortened, and the automatic access to the wireless network is realized.
Referring to fig. 6, a block diagram of a network access device according to another embodiment of the present invention is shown, where the network access device may be implemented as part or all of a server through software, hardware, or a combination of the two. The network access device may include: an identity receiving module 610, a parameter retrieving module 620 and a parameter transmitting module 630.
The identifier receiving module 610 is configured to receive a location identifier sent by a terminal, where the location identifier is read from a data packet sent by a location notification device in an area where the terminal is located after the terminal obtains the data packet, and the location identifier is used to reflect a geographic location of the location notification device, and the area where the terminal is located further includes at least one wireless access point.
A parameter obtaining module 620, configured to obtain a wireless network access parameter corresponding to the location identifier according to a predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the location identifier and the wireless network access parameter.
A parameter sending module 630, configured to send the wireless network access parameter to the terminal, where the wireless network access parameter is used to trigger the terminal to access a wireless network provided by a wireless access point corresponding to the wireless network access parameter.
In summary, in the network access apparatus provided in this embodiment, after receiving the location identifier sent by the terminal, the server obtains the wireless network access parameter corresponding to the location identifier, and feeds the wireless network access parameter back to the terminal, so that the terminal accesses the corresponding wireless network by using the wireless network access parameter; the problems of complicated operation steps and long access time of the network access method related to the background art are solved; the access steps of the wireless network are simplified, the time consumption of the access is shortened, and the automatic access to the wireless network is realized.
Referring to fig. 7, a block diagram of a network access system according to an embodiment of the present invention is shown, where the network access system includes: a terminal 500 and a server 600. Wherein:
terminal 500 may include a network access device that may be implemented as part or all of terminal 500 in software, hardware, or a combination of both. The network access device may include: a packet obtaining module 510, an identification reading module 520, a parameter obtaining module 530 and a network access module 540.
A data packet obtaining module 510, configured to obtain a data packet sent by a location notification device in an area where the terminal 500 is located, where the area where the terminal 500 is located further includes at least one wireless access point.
An identifier reading module 520, configured to read a location identifier included in the data packet, where the location identifier is used to reflect a geographic location of the location notification device.
Wherein the identifier reading module 520 includes: a first reading unit 520a, an identification detection unit 520b, and a second reading unit 520 c.
The first reading unit 520a is configured to read a universal identifier included in the data packet.
The identifier detecting unit 520b is configured to detect whether the universal identifier exists in a preset universal identifier group.
The second reading unit 520c is configured to read the unique identifier included in the data packet when the universal identifier exists in the universal identifier group, and use the universal identifier and the unique identifier as the location identifier.
Optionally, the identifier reading module 520 further includes: a distance acquisition unit 520d and a packet selection unit 520 e.
The distance obtaining unit 520d is configured to obtain distances between the terminal 500 and each position notification device that transmits the n data packets, respectively, when the universal identifier included in the n data packets exists in the universal identifier group.
Specifically, the distance obtaining unit 520d includes: a signal acquisition subunit 520d1 and a distance acquisition subunit 520d 2.
The signal obtaining subunit 520d1 is configured to obtain a received signal strength indicator corresponding to each data packet.
The distance obtaining subunit 520d2 is configured to obtain, according to the rssi, the distance between the terminal 500 and each location notification device that sends the n data packets.
The data packet selecting unit 520e is configured to select, from the n data packets, a data packet sent by a location notification device closest to the terminal 500.
Optionally, the identifier reading module 520 further includes: an identity acquisition unit 520 f.
The identifier obtaining unit 520f is configured to obtain the universal identifier group from the server 600.
A parameter obtaining module 530, configured to obtain a wireless network access parameter corresponding to the location identifier.
Wherein the parameter obtaining module 530 includes: a local acquisition unit 530 a.
A local obtaining unit 530a, configured to query a wireless network access parameter corresponding to the location identifier according to a locally stored predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the location identifier and the wireless network access parameter.
Specifically, the local obtaining unit 530a includes: a location acquisition sub-unit 530a1 and a parameter acquisition sub-unit 530a 2.
The location obtaining subunit 530a1 is configured to query, according to a locally stored first predetermined correspondence, geographic location information corresponding to the location identifier, where the first predetermined correspondence includes a correspondence between the location identifier and the geographic location information.
The parameter obtaining subunit 530a2 is configured to query, according to a locally stored second predetermined correspondence, a wireless network access parameter corresponding to the geographic location information, where the second predetermined correspondence includes a correspondence between the geographic location information and the wireless network access parameter.
Alternatively, the parameter obtaining module 530 includes: a transmitting unit 530b and a parameter receiving unit 530c are identified.
An identifier sending unit 530b, configured to send the location identifier to the server 600; a parameter receiving unit 530c, configured to receive a wireless network access parameter corresponding to the location identifier and sent by the server 600; the wireless network access parameter is obtained by the server 600 according to a predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the location identifier and the wireless network access parameter.
And the network access module 540 is configured to access the corresponding wireless network by using the wireless network access parameter.
The server 600 may include a network access device that may be implemented as part or all of the server 600 in software, hardware, or a combination of both. The network access device may include: an identity receiving module 610, a parameter retrieving module 620 and a parameter transmitting module 630.
An identifier receiving module 610, configured to receive a location identifier sent by the terminal 500, where the location identifier is read from a data packet that is obtained by the terminal 500 and sent by a location notification device in an area where the terminal 500 is located, and the location identifier is used to reflect a geographic location of the location notification device, and the area where the terminal 500 is located further includes at least one wireless access point.
A parameter obtaining module 620, configured to obtain a wireless network access parameter corresponding to the location identifier according to a predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the location identifier and the wireless network access parameter.
Specifically, the parameter obtaining module 620 includes: a first acquisition unit 620a and a second acquisition unit 620 b.
The first obtaining unit 620a is configured to query geographic location information corresponding to the location identifier according to a first predetermined corresponding relationship, where the first predetermined corresponding relationship includes a corresponding relationship between the location identifier and the geographic location information.
The second obtaining unit 620b is configured to query a wireless network access parameter corresponding to the geographic location information according to a second predetermined corresponding relationship, where the second predetermined corresponding relationship includes a corresponding relationship between the geographic location information and the wireless network access parameter.
A parameter sending module 630, configured to send the wireless network access parameter to the terminal 500, where the wireless network access parameter is used to trigger the terminal 500 to access a wireless network provided by a wireless access point corresponding to the wireless network access parameter.
Optionally, the apparatus further comprises: the sending module 602 is identified.
An identifier sending module 602, configured to send a universal identifier group to the terminal, where the universal identifier group includes at least one universal identifier;
the universal identifier group is used for detecting whether the read universal identifier exists in the universal identifier group or not after the terminal reads the universal identifier from the data packet, reading a unique identifier contained in the data packet when the universal identifier exists in the universal identifier group, and taking the universal identifier and the unique identifier as the position identification.
In summary, in the network access system provided in this embodiment, the terminal reads the location identifier from the acquired data packet, then acquires the wireless network access parameter corresponding to the location identifier, and automatically accesses the corresponding wireless network by using the wireless network access parameter; the problems of complicated operation steps and long access time of the network access method related to the background art are solved; the access steps of the wireless network are simplified, the time consumption of the access is shortened, and the automatic access to the wireless network is realized.
In addition, when the terminal detects that the universal identifiers contained in the plurality of data packets exist in the universal identifier group, the data packets sent by the position informing equipment closest to the terminal are selected, and the position identifiers are read from the data packets, so that the connection quality of wireless network connection is ensured.
It should be noted that: in the network access device and the network access system provided in the foregoing embodiments, when providing a network access service, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the network access device and system provided by the above embodiments and the method embodiment of the network access method belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and will not be described herein again.
Referring to fig. 8, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown. The terminal is used for implementing the network access method provided in the above embodiment. Specifically, the method comprises the following steps:
the terminal 800 may include RF (radio frequency) circuitry 810, memory 820 including one or more computer-readable storage media, an input unit 830, a display unit 840, a sensor 850, audio circuitry 860, a WiFi (wireless fidelity) module 870, a processor 880 including one or more processing cores, and a power supply 890. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 880; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 810 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (low noise amplifier), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (global system for mobile communications), GPRS (general packet radio service), CDMA (code division multiple access), WCDMA (wideband code division multiple access), LTE (long term evolution), email, SMS (short messaging service), etc.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 800, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 820 may also include a memory controller to provide the processor 880 and the input unit 830 access to the memory 820.
The input unit 830 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 830 may include an image input device 831 and other input devices 832. The image input device 831 may be a camera or a photoelectric scanning device. The input unit 830 may include other input devices 832 in addition to the image input device 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 800, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 840 may include a display panel 841, and the display panel 841 may be configured in the form of an LCD (liquid crystal display), an OLED (organic light-emitting diode), or the like, as an option.
The terminal 800 can also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 841 and/or backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the terminal 800, further description is omitted here.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between a user and terminal 800. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 860, and outputs the audio data to the processor 880 for processing, and then transmits the audio data to, for example, another terminal via the RF circuit 810, or outputs the audio data to the memory 820 for further processing. The audio circuitry 860 may also include an earbud jack to provide communication of a peripheral headset with the terminal 800.
WiFi belongs to short-range wireless transmission technology, and the terminal 800 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 870, and it provides the user with wireless broadband internet access. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of terminal 800 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is a control center of the terminal 800, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal 800 and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the handset. Optionally, processor 880 may include one or more processing cores; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
Terminal 800 further includes a power supply 890 (e.g., a battery) for powering the various components, which may be logically coupled to processor 880 via a power management system that may be used to manage charging, discharging, and power consumption. Power supply 890 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 800 may further include a bluetooth module or the like, which is not described in detail herein.
Specifically, in this embodiment, the terminal 800 further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by one or more processors to execute the network access method on the terminal side provided in the embodiment shown in fig. 2 or fig. 4.
Fig. 9 is a schematic structural diagram of a server according to an embodiment of the present invention. The server is used for implementing the network access method provided in the above embodiment. Specifically, the method comprises the following steps:
the server 900 includes a Central Processing Unit (CPU)901, a system memory 904 including a Random Access Memory (RAM)902 and a Read Only Memory (ROM)903, and a system bus 905 connecting the system memory 904 and the central processing unit 901. The server 900 also includes a basic input/output system (I/O system) 906 for facilitating the transfer of information between devices within the computer, and a mass storage device 907 for storing an operating system 913, application programs 914, and other program modules 915.
The basic input/output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse, keyboard, etc. for user input of information. Wherein the display 908 and the input device 909 are connected to the central processing unit 901 through an input output controller 910 connected to the system bus 905. The basic input/output system 906 may also include an input/output controller 910 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 910 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 907 is connected to the central processing unit 901 through a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer-readable media provide non-volatile storage for the server 900. That is, the mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 904 and mass storage device 907 described above may be collectively referred to as memory.
The server 900 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the invention. That is, the server 900 may be connected to the network 912 through the network interface unit 911 coupled to the system bus 905, or the network interface unit 911 may be used to connect to other types of networks or remote computer systems (not shown).
The memory also includes one or more programs stored in the memory and configured to be executed by the one or more processors to perform the server-side network access methods provided by the embodiments of fig. 3 or 4 described above.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (21)

1. A network access method, for use in a terminal, the method comprising:
acquiring a position in an area where the terminal is located and informing equipment of a data packet sent outwards, wherein the area where the terminal is located also comprises at least one wireless access point;
reading a position identifier contained in the data packet, wherein the position identifier is used for reflecting the geographical position of the position informing device;
acquiring wireless network access parameters corresponding to the position identification;
and accessing the wireless network provided by the wireless access point corresponding to the wireless network access parameter.
2. The method of claim 1, wherein the obtaining the wireless network access parameter corresponding to the location identifier comprises:
inquiring wireless network access parameters corresponding to the position identification according to a preset corresponding relation stored locally, wherein the preset corresponding relation comprises the corresponding relation between the position identification and the wireless network access parameters;
or,
sending the position identification to a server, and receiving wireless network access parameters which are sent by the server and correspond to the position identification; the wireless network access parameters are obtained by the server according to the inquiry of a preset corresponding relation, and the preset corresponding relation comprises the corresponding relation between the position identification and the wireless network access parameters.
3. The method according to claim 2, wherein said querying the wireless network access parameter corresponding to the location identifier according to the locally stored predetermined correspondence comprises:
inquiring the geographical position information corresponding to the position identification according to a first preset corresponding relation stored locally, wherein the first preset corresponding relation comprises the corresponding relation between the position identification and the geographical position information;
and inquiring wireless network access parameters corresponding to the geographic position information according to a locally stored second preset corresponding relation, wherein the second preset corresponding relation comprises the corresponding relation between the geographic position information and the wireless network access parameters.
4. The method according to any one of claims 1 to 3, wherein said reading the location identifier contained in the data packet comprises:
reading a universal identifier contained in the data packet;
detecting whether the universal identifier exists in a preset universal identifier group or not;
and if the universal identifier exists in the universal identifier group, reading a unique identifier contained in the data packet, and taking the universal identifier and the unique identifier as the position identifier.
5. The method of claim 4, wherein after detecting whether the universal identifier exists in a predetermined universal identifier group, the method further comprises:
when the universal identifiers contained in n data packets exist in the universal identifier group, respectively acquiring the distance between the terminal and each position informing device for sending the n data packets;
selecting a data packet which is closest to the terminal from the n data packets and is sent by a position informing device;
wherein n is not less than 2 and n is an integer.
6. The method according to claim 5, wherein the obtaining the distance between the terminal and each location notification device that transmits the n data packets comprises:
acquiring a received signal strength indication corresponding to each data packet;
and acquiring the distance between the terminal and each position informing device for sending the n data packets according to the received signal strength indication.
7. The method of claim 4, wherein before detecting whether the universal identifier exists in a predetermined set of universal identifiers, the method further comprises:
the set of universal identifiers is obtained from a server.
8. A network access method, for use in a server, the method comprising:
receiving a position identifier sent by a terminal, wherein the position identifier is read from a data packet which is obtained by the terminal and sent outside by position informing equipment in an area where the terminal is located, the position identifier is used for reflecting the geographic position of the position informing equipment, and the area where the terminal is located also comprises at least one wireless access point;
acquiring wireless network access parameters corresponding to the position identification according to a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the position identification and the wireless network access parameters;
and sending the wireless network access parameter to the terminal, wherein the wireless network access parameter is used for triggering the terminal to access a wireless network provided by a wireless access point corresponding to the wireless network access parameter.
9. The method according to claim 8, wherein the obtaining the wireless network access parameter corresponding to the location identifier according to the predetermined correspondence includes:
inquiring the geographical position information corresponding to the position identification according to a first preset corresponding relation, wherein the first preset corresponding relation comprises the corresponding relation between the position identification and the geographical position information;
and inquiring wireless network access parameters corresponding to the geographic position information according to a second preset corresponding relation, wherein the second preset corresponding relation comprises the corresponding relation between the geographic position information and the wireless network access parameters.
10. The method according to claim 8 or 9, wherein the receiving the location identifier sent by the terminal is preceded by:
sending a universal identifier group to the terminal, wherein the universal identifier group comprises at least one universal identifier;
the universal identifier group is used for detecting whether the read universal identifier exists in the universal identifier group or not after the terminal reads the universal identifier from the data packet, reading a unique identifier contained in the data packet when the universal identifier exists in the universal identifier group, and taking the universal identifier and the unique identifier as the position identification.
11. A network access apparatus, for use in a terminal, the apparatus comprising:
a data packet obtaining module, configured to obtain a data packet sent to an outside by a location notification device in an area where the terminal is located, where the area where the terminal is located further includes at least one wireless access point;
the identification reading module is used for reading a position identification contained in the data packet, and the position identification is used for reflecting the geographical position of the position informing device;
the parameter acquisition module is used for acquiring wireless network access parameters corresponding to the position identification;
and the network access module is used for accessing the wireless network provided by the wireless access point corresponding to the wireless network access parameter.
12. The apparatus of claim 11, wherein the parameter obtaining module comprises:
a local obtaining unit, configured to query a wireless network access parameter corresponding to the location identifier according to a locally stored predetermined correspondence, where the predetermined correspondence includes a correspondence between the location identifier and the wireless network access parameter;
or,
the identification sending unit is used for sending the position identification to a server; the parameter receiving unit is used for receiving wireless network access parameters which are sent by the server and correspond to the position identification; the wireless network access parameters are obtained by the server according to the inquiry of a preset corresponding relation, and the preset corresponding relation comprises the corresponding relation between the position identification and the wireless network access parameters.
13. The apparatus of claim 12, wherein the local acquisition unit comprises: a position acquisition subunit and a parameter acquisition subunit;
the location obtaining subunit is configured to query, according to a locally stored first predetermined correspondence, geographic location information corresponding to the location identifier, where the first predetermined correspondence includes a correspondence between the location identifier and the geographic location information;
the parameter acquiring subunit is configured to query a wireless network access parameter corresponding to the geographic location information according to a locally stored second predetermined corresponding relationship, where the second predetermined corresponding relationship includes a corresponding relationship between the geographic location information and the wireless network access parameter.
14. The apparatus according to any one of claims 11 to 13, wherein the identification reading module comprises: the device comprises a first reading unit, an identification detection unit and a second reading unit;
the first reading unit is used for reading the universal identifier contained in the data packet;
the identification detection unit is used for detecting whether the universal identifier exists in a preset universal identifier group or not;
the second reading unit is configured to read the unique identifier included in the data packet when the universal identifier exists in the universal identifier group, and use the universal identifier and the unique identifier as the location identifier.
15. The apparatus of claim 14, wherein the identification reading module further comprises: a distance obtaining unit and a data packet selecting unit;
the distance acquisition unit is used for respectively acquiring the distance between the terminal and each position informing device for sending the n data packets when the universal identifiers contained in the n data packets exist in the universal identifier group;
the data packet selecting unit is used for selecting a data packet which is closest to the terminal and is sent by the position informing equipment from the n data packets;
wherein n is not less than 2 and n is an integer.
16. The apparatus of claim 15, wherein the distance calculation unit comprises: a signal acquisition subunit and a distance acquisition subunit;
the signal acquiring subunit is configured to acquire a received signal strength indication corresponding to each data packet;
and the distance acquisition subunit is configured to acquire, according to the received signal strength indication, a distance between the terminal and each position notification device that sends the n data packets.
17. The apparatus of claim 14, wherein the identification reading module further comprises: an identification acquisition unit;
the identification obtaining unit is used for obtaining the universal identifier group from a server.
18. A network access apparatus, for use in a server, the apparatus comprising:
the system comprises an identification receiving module, a position identification receiving module and a position identification transmitting module, wherein the identification receiving module is used for receiving a position identification transmitted by a terminal, the position identification is read from a data packet which is transmitted to the outside by a position informing device in the area where the terminal is located after the terminal acquires the data packet, the position identification is used for reflecting the geographical position of the position informing device, and the area where the terminal is located also comprises at least one wireless access point;
a parameter obtaining module, configured to obtain a wireless network access parameter corresponding to the location identifier according to a predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the location identifier and the wireless network access parameter;
and the parameter sending module is used for sending the wireless network access parameters to the terminal, and the wireless network access parameters are used for triggering the terminal to access a wireless network provided by a wireless access point corresponding to the wireless network access parameters.
19. The apparatus of claim 18, wherein the parameter obtaining module comprises: a first acquisition unit and a second acquisition unit;
the first obtaining unit is configured to query geographic location information corresponding to the location identifier according to a first predetermined corresponding relationship, where the first predetermined corresponding relationship includes a corresponding relationship between the location identifier and the geographic location information;
the second obtaining unit is configured to query a wireless network access parameter corresponding to the geographic location information according to a second predetermined corresponding relationship, where the second predetermined corresponding relationship includes a corresponding relationship between the geographic location information and the wireless network access parameter.
20. The apparatus of claim 18 or 19, further comprising:
the identification sending module is used for sending a universal identifier group to the terminal, wherein the universal identifier group comprises at least one universal identifier;
the universal identifier group is used for detecting whether the read universal identifier exists in the universal identifier group or not after the terminal reads the universal identifier from the data packet, reading a unique identifier contained in the data packet when the universal identifier exists in the universal identifier group, and taking the universal identifier and the unique identifier as the position identification.
21. A network access system, the system comprising: a terminal and a server;
the terminal comprising a network access device according to any one of claims 11 to 17;
the server comprising a network access device according to any one of claims 18 to 20.
CN201410510310.8A 2014-09-28 2014-09-28 Network access method, device and system Active CN105530684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410510310.8A CN105530684B (en) 2014-09-28 2014-09-28 Network access method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410510310.8A CN105530684B (en) 2014-09-28 2014-09-28 Network access method, device and system

Publications (2)

Publication Number Publication Date
CN105530684A true CN105530684A (en) 2016-04-27
CN105530684B CN105530684B (en) 2020-09-11

Family

ID=55772582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410510310.8A Active CN105530684B (en) 2014-09-28 2014-09-28 Network access method, device and system

Country Status (1)

Country Link
CN (1) CN105530684B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850760A (en) * 2016-12-30 2017-06-13 华为软件技术有限公司 Geographical position acquisition methods and device
CN107567071A (en) * 2016-06-30 2018-01-09 上海连尚网络科技有限公司 A kind of method and apparatus for being used to inquire about hotspot
WO2018107952A1 (en) * 2016-12-16 2018-06-21 中兴通讯股份有限公司 Method and device for wireless connection
CN111049710A (en) * 2019-11-20 2020-04-21 视联动力信息技术股份有限公司 Method and device for accessing server
EP4161156A4 (en) * 2020-08-11 2023-07-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. NETWORK SELECTION METHOD AND DEVICE, DEVICE AND STORAGE MEDIUM

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102448187A (en) * 2011-10-29 2012-05-09 华为终端有限公司 Method and terminal for automatically accessing Wi-Fi network
CN102857858A (en) * 2011-06-27 2013-01-02 罗博特·顾 Wireless positioning information device
CN103108380A (en) * 2011-11-10 2013-05-15 北京千橡网景科技发展有限公司 Method and device for providing network connection
EP2648126A1 (en) * 2012-04-05 2013-10-09 LG CNS Co., Ltd. Method of authenticating user, server and mobile terminal performing the same
CN103458408A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Network connection method and network sharing method and device
CN103475996A (en) * 2013-08-19 2013-12-25 小米科技有限责任公司 Network connecting method, network sharing method and devices
CN103501482A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Network access method, network access device and terminal
CN103607713A (en) * 2013-10-29 2014-02-26 小米科技有限责任公司 Method, apparatus, device and system for network access
CN103823230A (en) * 2014-03-11 2014-05-28 邹美余 Indoor positioning system and application method thereof
CN104066146A (en) * 2013-03-18 2014-09-24 华为技术有限公司 Wi-Fi network access method and wireless access device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857858A (en) * 2011-06-27 2013-01-02 罗博特·顾 Wireless positioning information device
CN102448187A (en) * 2011-10-29 2012-05-09 华为终端有限公司 Method and terminal for automatically accessing Wi-Fi network
CN103108380A (en) * 2011-11-10 2013-05-15 北京千橡网景科技发展有限公司 Method and device for providing network connection
EP2648126A1 (en) * 2012-04-05 2013-10-09 LG CNS Co., Ltd. Method of authenticating user, server and mobile terminal performing the same
CN104066146A (en) * 2013-03-18 2014-09-24 华为技术有限公司 Wi-Fi network access method and wireless access device
CN103458408A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Network connection method and network sharing method and device
CN103475996A (en) * 2013-08-19 2013-12-25 小米科技有限责任公司 Network connecting method, network sharing method and devices
CN103501482A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Network access method, network access device and terminal
CN103607713A (en) * 2013-10-29 2014-02-26 小米科技有限责任公司 Method, apparatus, device and system for network access
CN103823230A (en) * 2014-03-11 2014-05-28 邹美余 Indoor positioning system and application method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107567071A (en) * 2016-06-30 2018-01-09 上海连尚网络科技有限公司 A kind of method and apparatus for being used to inquire about hotspot
WO2018107952A1 (en) * 2016-12-16 2018-06-21 中兴通讯股份有限公司 Method and device for wireless connection
CN108207018A (en) * 2016-12-16 2018-06-26 中兴通讯股份有限公司 Wireless connection method and device
CN106850760A (en) * 2016-12-30 2017-06-13 华为软件技术有限公司 Geographical position acquisition methods and device
CN111049710A (en) * 2019-11-20 2020-04-21 视联动力信息技术股份有限公司 Method and device for accessing server
EP4161156A4 (en) * 2020-08-11 2023-07-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. NETWORK SELECTION METHOD AND DEVICE, DEVICE AND STORAGE MEDIUM

Also Published As

Publication number Publication date
CN105530684B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN107094294B (en) Network connection method and device
CN106162811B (en) Method and device for establishing network connection
US10009838B2 (en) Access point connection method and electronic device thereof
CN103874018A (en) Access point information sharing method and device
CN112269842B (en) Information processing method, device, storage medium and computer equipment
CN103501482A (en) Network access method, network access device and terminal
CN105530684B (en) Network access method, device and system
CN106412818B (en) Method and device for positioning equipment
CN103455330A (en) Application program management method, terminal, equipment and system
CN104618854A (en) Method, terminal and server for sharing location information
CN103390034A (en) Image display method, device, terminal and server
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN105303591B (en) Method, terminal and server for superimposing location information on jigsaw puzzle
CN103458362B (en) Numeric value transfer, terminal, server and system
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN104901992B (en) A kind of method and apparatus of resource transfers
CN106657281B (en) File sharing method and device
CN107317828B (en) File downloading method and device
CN104702678A (en) Document transmission method and device
US11483677B2 (en) Information pushing method and terminal device
CN105577712B (en) A kind of file uploading method, device and system
CN103501373A (en) Method, device and terminal for making call
CN107995146B (en) Login processing method and device
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN104834653B (en) A kind of method and device for the poster information showing video

Legal Events

Date Code Title Description
C06 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