CN111615174B - Method for identifying wireless network, terminal device and computer readable storage medium - Google Patents

Method for identifying wireless network, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN111615174B
CN111615174B CN201910142783.XA CN201910142783A CN111615174B CN 111615174 B CN111615174 B CN 111615174B CN 201910142783 A CN201910142783 A CN 201910142783A CN 111615174 B CN111615174 B CN 111615174B
Authority
CN
China
Prior art keywords
wireless network
information
target
determining
information corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910142783.XA
Other languages
Chinese (zh)
Other versions
CN111615174A (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 CN201910142783.XA priority Critical patent/CN111615174B/en
Publication of CN111615174A publication Critical patent/CN111615174A/en
Application granted granted Critical
Publication of CN111615174B publication Critical patent/CN111615174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

The embodiment of the application provides a method for identifying a wireless network, terminal equipment and a computer readable storage medium, which relate to the technical field of wireless network transmission, and the method comprises the following steps: the terminal equipment uploads the current geographical position information and first wireless network information respectively corresponding to each wireless network scanned by the wireless network module to the server, then the server determines second wireless network information corresponding to a target wireless network based on the geographical position information of the current terminal equipment and the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal equipment, returns the second wireless network information corresponding to the target wireless network to the terminal equipment, and then displays the second wireless network information corresponding to the target wireless network, so that a user can identify the target wireless network. According to the embodiment of the application, the complexity of wireless network identification is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience is improved.

Description

Method for identifying wireless network, terminal device and computer readable storage medium
Technical Field
The present application relates to the field of wireless network transmission technologies, and in particular, to a method for identifying a wireless network, a terminal device, and a computer-readable storage medium.
Background
With the development of network technologies, WIreless networks, such as Wi-Fi (WIreless-FIdelity) technologies, have been developed, and at present, almost all terminal devices support network connection through Wi-Fi, such as smart phones, tablet computers, and notebook computers. Therefore, a user can surf the internet in any area where Wi-Fi exists, such as a shopping mall, a coffee shop, a restaurant and the like through the terminal device, and surf the internet through the Wi-Fi connected with a merchant so as to improve the internet surfing quality, but how to identify the target Wi-Fi becomes a key problem, such as the Wi-Fi of the merchant at present.
Currently, there are two ways to identify Wi-Fi, where,
the first way to identify Wi-Fi: the user can determine the name of the target Wi-Fi by inquiring a specific worker, and then searches the corresponding Wi-Fi in the Wi-Fi search list according to the name of the target Wi-Fi so as to identify the target Wi-Fi;
the second method is to identify Wi-Fi mode (connect Wi-Fi through XX application), taking as an example the Wi-Fi of the current merchant: the XX application development platform receives merchant Wi-Fi information provided by a merchant and generates two-dimensional code information corresponding to the merchant Wi-Fi, and the merchant provides the two-dimensional code information for a user to scan so as to identify target Wi-Fi;
however, the first way of identifying Wi-Fi takes much time, which results in low efficiency of identifying the target Wi-Fi and poor user experience; in the second Wi-Fi identification method, a Wi-Fi information provider (a merchant) needs Wi-Fi configuration, specific development capacity and complexity are high, and a user needs to scan a corresponding two-dimensional code through XX application, so that a certain time is consumed, and therefore, the target Wi-Fi identification efficiency is low, and user experience is poor.
Disclosure of Invention
The application provides a method for identifying a wireless network, terminal equipment, a server and a computer-readable storage medium, which can solve the problems of high complexity of identifying Wi-Fi, low efficiency of identifying target Wi-Fi and poor user experience. The technical scheme is as follows:
in a first aspect, a method for identifying a wireless network is provided, the method comprising:
uploading the current geographical position information and first wireless network information respectively corresponding to each wireless network scanned by the wireless network module to a server;
receiving second wireless network information corresponding to the target wireless network sent by the server, and displaying the second network information corresponding to the target wireless network, so that the user can identify the target wireless network based on the second wireless network information;
the second wireless network information corresponding to the target wireless network is obtained by the server through the following modes:
the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which are respectively corresponding to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a Point of Interest (POI) database.
In a possible implementation manner of the embodiment of the present application, the first wireless network information includes: service set identifier SSID, basic service set identifier BSSID, security type, channel value and affiliated channel;
the second wireless network information includes at least one of: SSID, BSSID, security type, channel value, belonging channel and POI information;
the POI information comprises at least one of the following items: target name information and trademark information corresponding to the target name information;
the wireless network includes: Wi-Fi;
uploading the current geographical position information and the first wireless network information respectively corresponding to each wireless network scanned by the wireless fidelity wireless network module to a server, and then further comprising:
receiving second wireless network information and/or first wireless network information which are respectively corresponding to each peripheral wireless network and are sent by a server;
displaying second wireless network information corresponding to the target wireless network, including:
and the second wireless network information corresponding to the target wireless network is displayed on the top, and the second wireless network information and/or the first wireless network information corresponding to each peripheral wireless network are displayed.
A possible implementation manner of the embodiment of the application, based on the current geographic location information, the first wireless network information and the tag database respectively corresponding to each wireless network scanned by the wireless network module, determines a manner of tag information corresponding to a target wireless network, including:
determining the area identifier of the wireless network corresponding to the geographical position information within a preset range based on the geographical position information of the terminal equipment and the mark database;
determining a central point coordinate corresponding to each area identifier in the area identifiers of the wireless network corresponding to the geographical position information within the preset range;
respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate, wherein the wireless network coordinate information is the coordinate information mapped into each space coordinate system based on the scanned first wireless network information corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs;
and determining mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
Another possible implementation manner of the embodiment of the present application is a manner for determining, based on the current geographical location information of the terminal device and the tag database, an area identifier of a wireless network corresponding to the geographical location information within a preset range, where the wireless network is located, and includes:
determining geographical position information in a preset range in a mark database based on the geographical position information of the current position of the terminal equipment and the geographical position information in the mark database, wherein the preset range is a preset range obtained based on the geographical position information of the current position;
and determining the area identifier of the wireless network corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the area identifier of the wireless network.
Another possible implementation manner of the embodiment of the application, based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal device, determines a manner of marking information corresponding to the target wireless network, including:
determining an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance;
matching the marking information of the area identifier corresponding to the central point coordinate with the minimum distance in the marking database with the first wireless network information respectively corresponding to each scanned wireless network;
and determining the successfully matched marking information as the marking information corresponding to the target wireless network.
In another possible implementation manner of the embodiment of the application, the tag database is generated based on tag information which is obtained by tag-cleaning tag information respectively corresponding to each acquired wireless network and meets preset requirements.
Another possible implementation manner of the embodiment of the present application is to display second wireless network information corresponding to a target wireless network, and then further include:
when a wireless network connection request triggered by a user is detected, uploading the detected wireless network connection request to a server, wherein the wireless network connection request is used for requesting to establish connection with a corresponding wireless network;
when receiving connection information which is returned by a server and aims at the wireless network connection request, establishing connection with a corresponding wireless network based on the connection information;
the connection information for the wireless network connection request includes: password information.
In another possible implementation manner of the embodiment of the present application, the method further includes:
when detecting that the connection information aiming at the wireless network connection request is not received and/or the notification message is received within the preset time, pushing prompt information to prompt a user to input password information of a specific wireless network;
the notification message is used for notifying the terminal device that the connection information for the wireless network connection request is not found currently.
In a second aspect, a terminal device is provided, which includes:
the first uploading module is used for uploading the current geographical position information and the first wireless network information respectively corresponding to the Wi-Fi scanned by the wireless network module to a server;
the first receiving module is used for receiving second wireless network information corresponding to the target wireless network sent by the server;
the display module is used for displaying second network information corresponding to the target wireless network received by the first receiving module so that a user can identify the target wireless network based on the second wireless network information;
the second wireless network information corresponding to the target wireless network is obtained by the server through the following modes:
the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database.
In a possible implementation manner of the embodiment of the present application, the first wireless network information includes: service set identifier SSID, basic service set identifier BSSID, security type, channel value and affiliated channel;
the second wireless network information includes at least one of: SSID, BSSID, security type, channel value, belonging channel and POI information;
the POI information comprises at least one of the following items: target name information and trademark information corresponding to the target name information;
the device also includes: a second receiving module, wherein,
the second receiving module is used for receiving second wireless network information and/or first wireless network information which are respectively corresponding to each peripheral wireless network and are sent by the server;
and the display module is specifically used for displaying second wireless network information corresponding to the target wireless network on top and displaying second wireless network information and/or first wireless network information corresponding to each peripheral wireless network.
Another possible implementation manner of the embodiment of the present application is a manner for determining tag information corresponding to a target wireless network based on current geographic location information, first wireless network information and a tag database respectively corresponding to each wireless network scanned by a wireless network module, including:
determining the area identifier of the wireless network corresponding to the geographical position information within a preset range based on the geographical position information of the terminal equipment and the mark database;
determining a central point coordinate corresponding to each area identifier in the area identifiers of the wireless network corresponding to the geographical position information within the preset range;
respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate, wherein the wireless network coordinate information is the coordinate information mapped into each space coordinate system based on the scanned first wireless network information corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs;
and determining mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
Another possible implementation manner of the embodiment of the present application is a manner for determining, based on the current geographical location information of the terminal device and the tag database, an area identifier of a wireless network corresponding to the geographical location information within a preset range, where the wireless network is located, and includes:
determining geographical position information in a preset range in a mark database based on the geographical position information of the current position of the terminal equipment and the geographical position information in the mark database, wherein the preset range is a preset range obtained based on the geographical position information of the current position;
and determining the area identifier of the wireless network corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the area identifier of the wireless network.
Another possible implementation manner of the embodiment of the application, based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal device, determines a manner of marking information corresponding to the target wireless network, including:
determining an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance;
matching the marking information of the area identifier corresponding to the central point coordinate with the minimum distance in the marking database with the first wireless network information respectively corresponding to each scanned wireless network;
and determining the successfully matched marking information as the marking information corresponding to the target wireless network.
In another possible implementation manner of the embodiment of the application, the tag database is generated based on tag information which is obtained by tag-cleaning tag information respectively corresponding to each acquired wireless network and meets preset requirements.
In another possible implementation manner of the embodiment of the present application, the apparatus further includes: the second uploading module is used for establishing a connection module;
the second uploading module is used for uploading the detected wireless network connection request to the server when the wireless network connection request triggered by the user is detected, and the wireless network connection request is used for requesting to establish connection with the corresponding wireless network;
the connection establishing module is used for establishing connection with a corresponding wireless network based on the connection information when receiving the connection information which is returned by the server and aims at the wireless network connection request;
the connection information for the wireless network connection request includes: password information.
In another possible implementation manner of the embodiment of the present application, the apparatus further includes: a push module;
the push module is used for pushing prompt information to prompt a user to input password information of a specific wireless network when detecting that the connection information aiming at the wireless network connection request is not received and/or a notification message is received within a preset time;
the notification message is used for notifying the terminal device that the connection information for the wireless network connection request is not found currently.
In a third aspect, a terminal device is provided, which includes: one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the method of identifying a wireless network according to the first aspect is performed.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the method of identifying a wireless network of the first aspect.
In a fifth aspect, a method for identifying a wireless network is provided, which is performed by a server and includes:
receiving current geographical position information of the terminal equipment uploaded by the terminal equipment and first wireless network information respectively corresponding to each wireless network scanned by a wireless network module of the terminal equipment;
determining marking information corresponding to a target wireless network based on the current geographical position information of the terminal equipment, first wireless network information and a marking database which are respectively corresponding to each wireless network scanned by a wireless network module of the terminal equipment;
determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and the POI database;
and returning the second wireless network information corresponding to the target wireless network to the terminal equipment, so that the terminal equipment displays the second wireless network information corresponding to the target wireless network.
In a possible implementation manner of the embodiment of the present application, the tag database includes: a plurality of pieces of tag information;
any one of the mark information includes: the method comprises the steps of identifying an area where a wireless network is located, first wireless network information, geographical position information and peripheral wireless network information;
the POI database comprises: the corresponding relation between the area identification where the wireless network is located and the POI information;
the second wireless network information corresponding to the target wireless network comprises: first wireless network information corresponding to the target wireless network and POI information corresponding to the target wireless network;
determining marking information corresponding to a target wireless network based on the current geographical position information of the terminal equipment, first wireless network information and a marking database which are respectively corresponding to each wireless network scanned by a wireless network module of the terminal equipment, wherein the marking information comprises:
determining the area identifier of the wireless network corresponding to the geographical position information within a preset range based on the geographical position information of the terminal equipment and the mark database;
determining a central point coordinate corresponding to each area identifier in the area identifiers of the wireless network corresponding to the geographical position information within the preset range;
respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate, wherein the wireless network coordinate information is the coordinate information mapped into each space coordinate system based on the scanned first wireless network information corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs;
and determining mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
In another possible implementation manner of the embodiment of the present application, determining, based on the current geographical location information of the terminal device and the tag database, an area identifier of a wireless network, where the wireless network is located, corresponding to the geographical location information within a preset range includes:
determining geographical position information in a preset range in a marking database based on the geographical position information of the current position of the terminal equipment and the geographical position information in the marking database, wherein the preset range is obtained based on the geographical position information of the current position;
and determining the area identifier of the wireless network corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the area identifier of the wireless network.
Another possible implementation manner of the embodiment of the application, determining, based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal device, the tag information corresponding to the target wireless network, includes:
determining an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance;
matching the marking information of the area identifier corresponding to the central point coordinate with the minimum distance in the marking database with the first wireless network information respectively corresponding to each scanned wireless network;
and determining the successfully matched marking information as the marking information corresponding to the target wireless network.
Another possible implementation manner of the embodiment of the application, determining second wireless network information corresponding to a target wireless network based on tag information corresponding to the target wireless network and a POI database, includes:
determining POI information corresponding to the target wireless network based on the area identification of the wireless network in the marking information corresponding to the target wireless network, the area identification of the wireless network in the POI database and the corresponding relationship between the POI information;
and determining the POI information corresponding to the target wireless network and the first wireless network information in the marking information corresponding to the target wireless network as second wireless network information corresponding to the target wireless network.
Another possible implementation manner of the embodiment of the present application is to return second wireless network information corresponding to a target wireless network to a terminal device, where the method further includes:
determining a peripheral wireless network to be sent to a terminal device;
returning second wireless network information corresponding to the target wireless network to the terminal equipment, wherein the second wireless network information comprises:
and returning the second wireless network information corresponding to the target wireless network and the determined second wireless network information and/or the first wireless network information corresponding to the peripheral wireless network to the terminal equipment.
Another possible implementation manner of the embodiment of the present application, determining a peripheral wireless network to be sent to a terminal device, includes:
and determining the peripheral wireless network recorded in the marking information corresponding to the target wireless network as the peripheral wireless network to be sent to the terminal equipment.
In another possible implementation manner of the embodiment of the application, when a plurality of peripheral wireless networks corresponding to the target wireless network are provided;
determining a peripheral wireless network recorded in marking information corresponding to a target wireless network as a peripheral wireless network to be sent to a terminal device, including:
and determining a preset number of wireless networks as the peripheral wireless networks to be sent to the terminal equipment from the peripheral wireless networks recorded in the marking information corresponding to the target wireless network based on the signal value and/or the safety type.
Another possible implementation manner of the embodiment of the present application, determining, based on the current geographical location information of the terminal device, the first wireless network information and the tag database respectively corresponding to each wireless network scanned by the wireless network module of the terminal device, tag information corresponding to a target wireless network, where the previous implementation manner further includes:
generating a tag database;
generating a tag database comprising:
acquiring mark information corresponding to each wireless network;
marking and cleaning the obtained marking information corresponding to each wireless network to obtain marking information meeting preset requirements;
and generating a marking database based on the marking information meeting the preset requirements.
In another possible implementation manner of the embodiment of the present application, the method further includes:
when a wireless network connection request uploaded by any terminal device is detected, whether corresponding connection information is stored or not is searched based on the wireless network connection request;
if the corresponding connection information is found, sending the found connection information to the terminal equipment of the connection request sender;
if the corresponding connection information is not found, sending a notification message to the connection request sender equipment;
the notification message is used for notifying the connection request sender device that the connection information for the wireless network connection request is not found currently.
In a sixth aspect, a server is provided, comprising:
the third receiving module is used for receiving the current geographical position information uploaded by the terminal equipment and the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal equipment;
the first determining module is used for determining marking information corresponding to a target wireless network based on the geographical position information of the current terminal equipment received by the third receiving module, the first wireless network information and the marking database which respectively correspond to each wireless network scanned by the wireless network module of the terminal equipment;
the second determining module is used for determining second wireless network information corresponding to the target wireless network based on the POI database and the marking information corresponding to the target wireless network determined by the first determining module;
and the returning module is used for returning the second wireless network information corresponding to the target wireless network determined by the second determining module to the terminal equipment so that the terminal equipment displays the second wireless network information corresponding to the target wireless network.
In a possible implementation manner of the embodiment of the present application, the tag database includes: a plurality of pieces of tag information;
any one of the mark information includes: the method comprises the steps of identifying an area where a wireless network is located, first wireless network information, geographical position information and peripheral wireless network information;
the POI database comprises: the corresponding relation between the area identification where the wireless network is located and the POI information;
the second wireless network information corresponding to the target wireless network comprises: first wireless network information corresponding to the target wireless network and POI information corresponding to the target wireless network;
a first determination module comprising: a first determining unit, a second determining unit, a third determining unit, and a fourth determining unit, wherein,
the first determining unit is used for determining the area identifier of the wireless network corresponding to the geographical position information within the preset range based on the geographical position information of the current terminal equipment and the mark database;
the second determining unit is used for determining the center point coordinates corresponding to each area identifier in the area identifiers where the wireless network is located and corresponding to the geographical position information which is determined by the first determining unit and is within the preset range;
the third determining unit is used for respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate, the wireless network coordinate information is the coordinate information mapped to each space coordinate system based on the scanned first wireless network information corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs;
and the fourth determining unit is used for determining the mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
In another possible implementation manner of the embodiment of the application, the first determining unit is specifically configured to determine, based on the current geographic position information of the terminal device and the geographic position information in the tag database, the geographic position information in a preset range in the tag database, where the preset range is obtained based on the current geographic position information, and determine, based on a corresponding relationship between the geographic position information in the tag database and an area identifier where the wireless network is located, an area identifier where the wireless network is located corresponding to the geographic position information in the preset range.
In another possible implementation manner of the embodiment of the application, the fourth determining unit is specifically configured to determine, based on the determined distance, an area identifier corresponding to a central point coordinate with a minimum distance, match, in the tag database, tag information of the area identifier corresponding to the central point coordinate with the minimum distance with the first wireless network information respectively corresponding to the scanned wireless networks, and determine, as the tag information corresponding to the target wireless network, the tag information that is successfully matched.
In another possible implementation manner of the embodiment of the application, the second determining module is specifically configured to determine, based on an area identifier of a wireless network in the tag information corresponding to the target wireless network, and a corresponding relationship between the area identifier of the wireless network in the POI database and the POI information, the POI information corresponding to the target wireless network, and the first wireless network information in the tag information corresponding to the target wireless network are determined as the second wireless network information corresponding to the target wireless network.
In another possible implementation manner of the embodiment of the present application, the server further includes: a third determination module, wherein,
the third determining module is used for determining a peripheral wireless network to be sent to the terminal equipment;
and the returning module is specifically used for returning the second wireless network information corresponding to the target wireless network and the determined second wireless network information and/or the first wireless network information corresponding to the peripheral wireless network to the terminal equipment.
In another possible implementation manner of the embodiment of the application, the third determining module is specifically configured to determine a peripheral wireless network recorded in the tag information corresponding to the target wireless network as the peripheral wireless network to be sent to the terminal device.
In another possible implementation manner of the embodiment of the application, when there are a plurality of peripheral wireless networks corresponding to the target wireless network, the third determining module is specifically configured to determine, based on the signal value and/or the security type, a preset number of wireless networks as the peripheral wireless networks to be sent to the terminal device from the peripheral wireless networks recorded in the tag information corresponding to the target wireless network.
In another possible implementation manner of the embodiment of the present application, the server further includes: a generation module for generating, wherein,
the generating module is used for generating a mark database;
the generation module comprises: an acquisition unit, a mark cleaning unit and a generation unit, wherein,
the acquisition unit is used for acquiring mark information corresponding to each wireless network;
the mark cleaning unit is used for carrying out mark cleaning on the mark information corresponding to each wireless network acquired by the acquisition unit to acquire mark information meeting the preset requirements;
and the generating unit is used for generating a mark database based on the mark information meeting the preset requirement.
In another possible implementation manner of the embodiment of the present application, the server further includes: a searching module and a sending module;
the searching module is used for searching whether corresponding connection information is stored or not based on the wireless network connection request when the wireless network connection request uploaded by any terminal device is detected;
when the searching module searches the corresponding connection information, the sending module is used for sending the searched connection information to the terminal equipment of the connection request sender;
if the searching module does not search the corresponding connection information, the sending module is also used for sending a notification message to the connection request sender equipment;
the notification message is used for notifying the connection request sender device that the connection information for the wireless network connection request is not found currently.
In a seventh aspect, a server is provided, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the method of identifying a wireless network according to the fifth aspect is performed.
In an eighth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the method of identifying a wireless network of the fifth aspect.
The beneficial effect that technical scheme that this application provided brought is:
the application provides a method for identifying a wireless network, terminal equipment and a computer-readable storage medium, compared with the prior art that a specific worker is inquired to identify Wi-Fi corresponding to a merchant, the method uploads current geographic position information and first wireless network information respectively corresponding to each wireless network scanned by a wireless network module to a server, then receives second wireless network information corresponding to a target wireless network sent by the server, and displays the second network information corresponding to the target wireless network, so that a user identifies the target wireless network based on the second wireless network information, wherein the second wireless network information corresponding to the target wireless network is obtained by the server in the following way: the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database. The second wireless network information corresponding to the target wireless network is directly displayed on the screen of the terminal device, so that the user can identify the target wireless network without providing wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user does not need to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
Compared with the prior art that a merchant worker is inquired to identify Wi-Fi corresponding to the merchant, the method receives the current geographical position information uploaded by the terminal equipment and the first wireless network information respectively corresponding to each wireless network scanned by the wireless fidelity wireless network module of the terminal equipment, then determines the marking information corresponding to the target wireless network based on the current geographical position information of the terminal equipment, the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal equipment and the marking database, and determines the second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and the POI database, and returning the second wireless network information corresponding to the target wireless network to the terminal equipment, so that the terminal equipment displays the second wireless network information corresponding to the target wireless network. The server can directly return the second wireless network information corresponding to the target wireless network to the terminal equipment corresponding to the user, so that the terminal equipment can display the second wireless network information corresponding to the target wireless network, the user is not required to provide wireless network configuration information, the complexity of identifying the target wireless network is reduced, the mode of inquiring specific workers by the user or the mode of scanning specific two-dimensional codes is not required, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic diagram of the K-means algorithm;
fig. 2a is a schematic flowchart of a method for identifying a wireless network at a terminal device side according to an embodiment of the present application;
fig. 2b is a flowchart illustrating a method for identifying a wireless network at a server side according to an embodiment of the present application;
fig. 2c is a schematic flowchart of a method for identifying Wi-Fi by a terminal device side according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for identifying Wi-Fi on a server side according to an embodiment of the present application;
FIG. 4 is a schematic interaction flow diagram of a method for identifying Wi-Fi according to an embodiment of the present disclosure;
FIG. 5a is a schematic diagram of a display target Wi-Fi according to an embodiment of the present disclosure;
FIG. 5b is a schematic diagram of another example of displaying a target Wi-Fi provided in an embodiment of the present application;
FIG. 5c is a schematic diagram of a display after connecting with a target Wi-Fi in an embodiment of the present application;
FIG. 6a is a schematic diagram of determining coordinates of a center point of a merchant according to an embodiment of the present disclosure;
FIG. 6b is a schematic diagram of two-dimensional spatial coordinates of Wi-Fi in the vicinity of a merchant according to an embodiment of the present disclosure;
FIG. 7 is a diagram illustrating an example method for identifying Wi-Fi according to an embodiment of the present disclosure;
fig. 8 is a schematic device structure diagram of a terminal device provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an entity apparatus of a terminal device provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of an entity apparatus of a server provided in an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms referred to in this application will first be introduced and explained:
a Service Set Identifier (SSID) can divide a wireless local area network into several sub-networks requiring different authentication, each sub-network requires independent authentication, and only a user who passes the authentication can enter the corresponding sub-network, so that unauthorized users are prevented from entering the network, and the name of Wi-Fi can be simply understood;
basic Service Set IDentification (BSSID): the Media Access Control (MAC) Address refers to a Media Access Control Address (MAC) Address of a station, and is used for addressing in data transmission in a data link layer;
free Wi-Fi: the system refers to Wi-Fi provided by an XX application in a public place for free connection of a user, wherein the Wi-Fi can be a password type or an authentication type;
k-means: the K-means algorithm is a very typical clustering algorithm based on distance, and the distance is used as an evaluation index of similarity, namely, the closer the distance between two objects is, the greater the similarity of the two objects is; the algorithm considers clusters to be composed of closely spaced objects, and therefore targets compact and independent clusters as the final target, as shown in fig. 1.
For technical problems in the prior art, the method, the apparatus, the device, and the computer-readable storage medium for identifying a wireless network provided in the embodiments of the present application aim to solve the above technical problems in the prior art, and are specifically as follows:
the present application provides a method for identifying a wireless network, performed by a terminal device, as shown in fig. 2a, wherein,
step S101a, uploading the current geographical location information and the first wireless network information corresponding to each wireless network scanned by the wireless network module to a server.
And step S101b, receiving second wireless network information corresponding to the target wireless network sent by the server, and displaying the second network information corresponding to the target wireless network, so that the user can identify the target wireless network based on the second wireless network information.
The second wireless network information corresponding to the target wireless network is obtained by the server through the following modes:
the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database.
The embodiment of the application provides a method for identifying a wireless network, compared with the prior art that a specific worker is inquired to identify Wi-Fi corresponding to a merchant, the method for identifying the wireless network uploads current geographical position information and first wireless network information corresponding to each wireless network scanned by a wireless network module to a server respectively, then receives second wireless network information corresponding to a target wireless network sent by the server, and displays the second network information corresponding to the target wireless network, so that a user identifies the target wireless network based on the second wireless network information, wherein the second wireless network information corresponding to the target wireless network is obtained by the server in the following way: the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database. The second wireless network information corresponding to the target wireless network is directly displayed on the screen of the terminal device, so that the user can identify the target wireless network without providing wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user does not need to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
Embodiments of the present application also provide a method for identifying a wireless network, which is performed by a server, as shown in fig. 2b, wherein,
step S101c, receiving the current geographical location information of the terminal device uploaded by the terminal device and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal device.
Step S101d, determining label information corresponding to the target wireless network based on the current geographical location information of the terminal device, the first wireless network information and the label database respectively corresponding to each wireless network scanned by the wireless network module of the terminal device.
Step S101e, second wireless network information corresponding to the target wireless network is determined based on the marking information corresponding to the target wireless network and the POI database.
Step S101f, returning the second wireless network information corresponding to the target wireless network to the terminal device, so that the terminal device displays the second wireless network information corresponding to the target wireless network.
Compared with the prior art that a merchant is inquired by a worker to identify Wi-Fi corresponding to the merchant, the method for identifying the wireless network receives the current geographical position information uploaded by the terminal device and the first wireless network information respectively corresponding to each wireless network scanned by the wireless fidelity wireless network module of the terminal device, determines the marking information corresponding to the target wireless network based on the current geographical position information of the terminal device, the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal device and the marking database, determines the second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and the POI database, and returns the second wireless network information corresponding to the target wireless network to the terminal device, so that the terminal device displays second wireless network information corresponding to the target wireless network. The server can directly return the second wireless network information corresponding to the target wireless network to the terminal equipment corresponding to the user, so that the terminal equipment can display the second wireless network information corresponding to the target wireless network, the user is not required to provide wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user is not required to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
For the embodiment of the present application, the wireless network in the foregoing embodiment is a network implemented by using a wireless communication technology, where the wireless network may include: a wireless network implemented by a public mobile communication network, and Wi-Fi, wherein the wireless network implemented by the public mobile communication network may include: the following embodiments describe a method for identifying a wireless network by taking Wi-Fi as an example, where the method includes a 4G network, a 3G network, and a General Packet Radio Service (GPRS) network, and the method includes:
an embodiment of the present application provides a method for identifying Wi-Fi, which is executed by a terminal device, as shown in fig. 2c, and includes:
step S201, uploading current geographic position information and first Wi-Fi information respectively corresponding to each Wi-Fi scanned by the wireless fidelity Wi-Fi module to a server.
And S202, receiving second Wi-Fi information corresponding to the target Wi-Fi sent by the server.
The second wireless network information corresponding to the target wireless network is obtained by the server through the following modes:
the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database.
And S203, displaying second Wi-Fi information corresponding to the target Wi-Fi so that the user can identify the target Wi-Fi based on the second Wi-Fi information.
In a possible implementation manner of the embodiment of the present application, the first Wi-Fi information includes: service set identifier SSID, basic service set identifier BSSID, security type, channel value and affiliated channel; the second Wi-Fi information includes at least one of: SSID, BSSID, security type, channel value, belonging channel and POI information; the POI information comprises at least one of the following items: target name information and trademark information corresponding to the target name information.
In another possible implementation manner of the embodiment of the present application, in step 201, the uploading current geographic location information and first Wi-Fi information respectively corresponding to each Wi-Fi scanned by the Wi-Fi module to the server, and then the method further includes: and receiving second Wi-Fi information and/or first Wi-Fi information which are respectively corresponding to each peripheral Wi-Fi and are sent by the server.
Specifically, the step S203 of displaying the second Wi-Fi information corresponding to the target Wi-Fi includes: and the second Wi-Fi information corresponding to the target Wi-Fi is displayed on the top, and the second Wi-Fi information and/or the first Wi-Fi information corresponding to each peripheral Wi-Fi are displayed.
Another possible implementation manner of the embodiment of the present application, a manner of determining, based on the current geographic location information, the first Wi-Fi information and the tag database, which correspond to each Wi-Fi scanned by the Wi-Fi module, the tag information corresponding to the target Wi-Fi, includes:
determining a Wi-Fi located area identifier corresponding to the geographical position information within a preset range based on the geographical position information of the terminal equipment and a mark database; determining a central point coordinate corresponding to each area identification in the area identification where the Wi-Fi is located corresponding to the geographical position information within the preset range; respectively determining the distance between each central point coordinate and the Wi-Fi coordinate information corresponding to each central point coordinate, wherein the Wi-Fi coordinate information is the coordinate information mapped to each space coordinate system based on the scanned first Wi-Fi information corresponding to each Wi-Fi, and the space coordinate system is the space coordinate system to which the central point coordinate belongs; and determining marking information corresponding to the target Wi-Fi based on the determined distance between each central point coordinate and the Wi-Fi coordinate information corresponding to each central point coordinate and the first Wi-Fi information corresponding to each Wi-Fi scanned by the Wi-Fi module of the terminal equipment.
Another possible implementation manner of the embodiment of the present application is a manner of determining, based on the current geographical location information of the terminal device and the tag database, an area identifier of the Wi-Fi corresponding to the geographical location information within the preset range, where the Wi-Fi is located, and includes: determining geographical position information in a preset range in a mark database based on the geographical position information of the current position of the terminal equipment and the geographical position information in the mark database, wherein the preset range is a preset range obtained based on the geographical position information of the current position; and determining the Wi-Fi located area identification corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the Wi-Fi located area identification.
Another possible implementation manner of the embodiment of the present application, a manner of determining mark information corresponding to a target Wi-Fi based on a distance between each determined center point coordinate and Wi-Fi coordinate information corresponding to each determined center point coordinate and first Wi-Fi information corresponding to each Wi-Fi scanned by a Wi-Fi module of a terminal device, includes: determining an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance; matching the marking information of the area identification corresponding to the central point coordinate with the minimum distance in the marking database with the first Wi-Fi information respectively corresponding to the scanned Wi-Fi; and determining the successfully matched marking information as the marking information corresponding to the target Wi-Fi.
In another possible implementation manner of the embodiment of the application, the tag database is generated based on tag information which is obtained by tag-cleaning tag information respectively corresponding to each obtained Wi-Fi and meets preset requirements.
Another possible implementation manner of the embodiment of the present application, displaying second Wi-Fi information corresponding to a target Wi-Fi, and then further including: when a Wi-Fi connection request triggered by a user is detected, uploading the detected Wi-Fi connection request to a server, wherein the Wi-Fi connection request is used for requesting to establish connection with corresponding Wi-Fi; and when connection information for the Wi-Fi connection request returned by the server is received, connection is established with the corresponding Wi-Fi based on the connection information.
Wherein the connection information for the Wi-Fi connection request includes: password information.
In another possible implementation manner of the embodiment of the present application, the method further includes: when the fact that the connection information aiming at the Wi-Fi connection request is not received within the preset time and/or the notice message is received is detected, the prompt information is pushed to prompt the user to input the password information of the specific Wi-Fi.
The notification message is used for notifying the terminal device that the connection information aiming at the Wi-Fi connection request is not found currently.
Another method for identifying Wi-Fi is provided in an embodiment of the present application, which is performed by a server, as shown in fig. 3, and includes:
step S301, receiving the current geographical position information of the terminal equipment uploaded by the terminal equipment and first Wi-Fi information respectively corresponding to each Wi-Fi scanned by a wireless fidelity Wi-Fi module of the terminal equipment.
Step S302, based on the current geographical position information of the terminal equipment and the first Wi-Fi information and the mark database which are respectively corresponding to each Wi-Fi scanned by the Wi-Fi module of the terminal equipment, the mark information corresponding to the target Wi-Fi is determined.
And S303, determining second Wi-Fi information corresponding to the target Wi-Fi based on the marking information corresponding to the target Wi-Fi and the POI database.
And S304, returning second Wi-Fi information corresponding to the target Wi-Fi to the terminal equipment, so that the terminal equipment displays the second Wi-Fi information corresponding to the target Wi-Fi.
One possible implementation of the embodiments of the present application,
the mark database comprises: a plurality of pieces of tag information;
any one of the mark information includes: the Wi-Fi positioning system comprises an identification of a Wi-Fi located area, first Wi-Fi information, geographical position information and peripheral Wi-Fi information.
Wherein, the POI database includes: the corresponding relation between the area identification where the Wi-Fi is located and the POI information; the second Wi-Fi information corresponding to the target Wi-Fi comprises the following information: the first Wi-Fi information corresponding to the target Wi-Fi and the POI information corresponding to the target Wi-Fi.
In another possible implementation manner of the embodiment of the present application, step S302 may specifically include: step S3021 (not shown in the figure), step S3022 (not shown in the figure), step S3023 (not shown in the figure), and step S3024 (not shown in the figure), wherein,
step S3021, determining an area identifier of the Wi-Fi corresponding to the geographical position information within the preset range based on the geographical position information of the terminal device and the mark database.
Step S3022, determining a center point coordinate corresponding to each area identifier in the Wi-Fi located area identifiers corresponding to the geographical position information within the preset range,
And step S3023, respectively determining the distance between each central point coordinate and the Wi-Fi coordinate information corresponding to each central point coordinate.
The Wi-Fi coordinate information is the coordinate information which is mapped to each space coordinate system based on the scanned first Wi-Fi information respectively corresponding to each Wi-Fi, and the space coordinate system is the space coordinate system to which the center point coordinate belongs.
Step S3024, determining mark information corresponding to the target Wi-Fi based on the determined distance between each center point coordinate and the corresponding Wi-Fi coordinate information and first Wi-Fi information corresponding to each Wi-Fi scanned by a Wi-Fi module of the terminal device.
Another possible implementation manner of the embodiment of the present application, step S3021 may specifically include: determining the geographical position information in the mark database within a preset range based on the geographical position information of the current terminal equipment and the geographical position information in the mark database; and determining the Wi-Fi located area identification corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the Wi-Fi located area identification.
The preset range is obtained based on the current geographic position information.
In another possible implementation manner of the embodiment of the present application, step S3024 may specifically include: determining an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance; matching the marking information of the area identification corresponding to the central point coordinate with the minimum distance in the marking database with the first Wi-Fi information respectively corresponding to the scanned Wi-Fi; and determining the successfully matched marking information as the marking information corresponding to the target Wi-Fi.
In another possible implementation manner of the embodiment of the application, determining, based on the tag information corresponding to the target Wi-Fi and the POI database, second Wi-Fi information corresponding to the target Wi-Fi may specifically include: determining POI information corresponding to the target Wi-Fi based on the identification of the area where the Wi-Fi is located in the marking information corresponding to the target Wi-Fi and the corresponding relation between the identification of the area where the Wi-Fi is located in the POI database and the POI information; and determining the first Wi-Fi information in the POI information corresponding to the target Wi-Fi and the marking information corresponding to the target Wi-Fi as the second Wi-Fi information corresponding to the target Wi-Fi.
In another possible implementation manner of the embodiment of the present application, step S304 may further include: and determining the peripheral Wi-Fi to be sent to the terminal equipment.
Specifically, the step S304 of returning the second Wi-Fi information corresponding to the target Wi-Fi to the terminal device includes: and returning the second Wi-Fi information corresponding to the target Wi-Fi and the determined second Wi-Fi information and/or first Wi-Fi information corresponding to the peripheral Wi-Fi to the terminal equipment.
Another possible implementation manner of the embodiment of the present application, the determining peripheral Wi-Fi to be sent to the terminal device may specifically include: and determining the peripheral Wi-Fi recorded in the marking information corresponding to the target Wi-Fi as the peripheral Wi-Fi to be sent to the terminal equipment.
Another possible implementation manner of the embodiment of the application, when there are a plurality of peripheral Wi-Fi corresponding to the target Wi-Fi, determining the peripheral Wi-Fi recorded in the mark information corresponding to the target Wi-Fi as the peripheral Wi-Fi to be sent to the terminal device, specifically, may include: and determining a preset number of Wi-Fi from the peripheral Wi-Fi recorded in the marking information corresponding to the target Wi-Fi as the peripheral Wi-Fi to be sent to the terminal equipment based on the signal value and/or the safety type.
Another possible implementation manner of the embodiment of the present application, determining, based on the current geographical location information of the terminal device, the first Wi-Fi information and the tag database respectively corresponding to each Wi-Fi scanned by the Wi-Fi module of the terminal device, the tag information corresponding to the target Wi-Fi, where before, the method may further include: a tag database is generated.
Specifically, generating the tag database may specifically include: acquiring mark information respectively corresponding to each Wi-Fi; marking and cleaning the obtained marking information corresponding to each Wi-Fi to obtain marking information meeting preset requirements; and generating a marking database based on the marking information meeting the preset requirements.
In another possible implementation manner of the embodiment of the present application, the method further includes:
when a Wi-Fi connection request uploaded by any terminal device is detected, whether corresponding connection information is stored or not is searched based on the Wi-Fi connection request; if the corresponding connection information is found, sending the found connection information to the terminal equipment of the connection request sender; and if the corresponding connection information is not found, sending a notification message to the connection request sender equipment.
The notification message is used for notifying the connection request sender equipment that the connection information aiming at the Wi-Fi connection request is not found currently.
The method for identifying Wi-Fi is described below in a manner of interacting between a terminal device and a server, and the following specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
An embodiment of the present application provides a method for identifying Wi-Fi, and as shown in fig. 4, the method includes:
step S401, the terminal device uploads current geographic position information and first Wi-Fi information respectively corresponding to each Wi-Fi scanned by the wireless fidelity Wi-Fi module to a server.
For the embodiment of the application, the current geographical location information refers to longitude and latitude information of a geographical location where the terminal device is currently located.
For the embodiment of the application, the Wi-Fi module is an internal module of the terminal device and is used for scanning Wi-Fi information in a preset range.
Step S402, the server receives the current geographical position information uploaded by the terminal equipment and first Wi-Fi information respectively corresponding to each Wi-Fi scanned by a wireless fidelity Wi-Fi module of the terminal equipment.
Step S403, the server determines marking information corresponding to the target Wi-Fi based on the current geographical position information of the terminal device, the first Wi-Fi information and the marking database which respectively correspond to the Wi-Fi scanned by the Wi-Fi module of the terminal device.
And S404, the server determines second Wi-Fi information corresponding to the target Wi-Fi based on the marking information corresponding to the target Wi-Fi and the POI database.
For the embodiments of the present application, the first Wi-Fi information includes: service set identifier SSID, basic service set identifier BSSID, security type, channel value and affiliated channel; the second Wi-Fi information includes at least one of: SSID, BSSID, security type, channel value, belonging channel and POI information; the POI information comprises at least one of the following items: target name information and trademark information corresponding to the target name information.
For the embodiment of the application, the manner in which the server determines the target Wi-Fi and the second Wi-Fi corresponding to the target Wi-Fi is as follows, and details are not described here.
And S405, the server returns the second Wi-Fi information corresponding to the target Wi-Fi to the terminal equipment, so that the terminal equipment displays the second Wi-Fi information corresponding to the target Wi-Fi.
And S406, the terminal equipment receives second Wi-Fi information corresponding to the target Wi-Fi sent by the server.
For the embodiment of the application, the terminal device may execute step S407 immediately after receiving the second Wi-Fi information corresponding to the target Wi-Fi; step S407 may be further executed after the condition is satisfied, for example, after the second Wi-Fi information corresponding to the target Wi-Fi is received, the second Wi-Fi information corresponding to the target Wi-Fi is displayed after a refresh period (preset time) is reached.
Specifically, after second Wi-Fi information corresponding to the target Wi-Fi is received, in order to achieve better experience, the Wi-Fi of the product is regularly refreshed, and the situation that the user is carelessly judged to be in a merchant during walking to influence the user to select the Wi-Fi is avoided. Therefore, the information of the Wi-Fi of the merchant is received in the interval period of refreshing the Wi-Fi list, the information is not refreshed immediately, and the result is stored in the memory; and when the refreshing period is reached, traversing the Wi-Fi list scanned by the whole current Wi-Fi module, judging whether the information of a certain Wi-Fi is in fit with the merchant, if so, setting the Wi-Fi on the top, and prompting the user that the Wi-Fi is the Wi-Fi of the current merchant.
The situation that the merchant Wi-Fi is continuously refreshed during walking of the user can be avoided by regularly refreshing; furthermore, when the user leaves one area (merchant) and enters the next area (merchant), the Wi-Fi list can more accurately replace the target Wi-Fi (the Wi-Fi corresponding to the merchant).
And step S407, the terminal device displays second Wi-Fi information corresponding to the target Wi-Fi, so that the user can identify the target Wi-Fi based on the second Wi-Fi information.
For the embodiment of the application, the terminal device may only display the target name information corresponding to the target Wi-Fi, and may also display other Wi-Fi information in the second Wi-Fi except the target name information.
For example, the target name information corresponding to the target Wi-Fi may be a merchant name.
For the embodiment of the present application, step S407 may specifically include: and the terminal equipment is arranged on the top to display second Wi-Fi information corresponding to the target Wi-Fi.
For the embodiment of the application, the terminal device may set a top to display the second Wi-Fi information corresponding to the target Wi-Fi, for example, as shown in fig. 5a, the name of the merchant corresponding to the target Wi-Fi may be "XX merchant", and the name may be displayed in a top display manner; and identifying and displaying second Wi-Fi information corresponding to the target Wi-Fi in a specific identification mode. For example, the terminal device can identify and display second Wi-Fi information corresponding to the target Wi-Fi through different colors.
For the embodiment of the application, when only one target Wi-Fi is included, the second Wi-Fi information corresponding to the target Wi-Fi may be displayed in a manner of top display or pattern marking, for example, as shown in fig. 5a, the Wi-Fi corresponding to the XX businessman is displayed on the top; when the target Wi-Fi includes a plurality of target Wi-Fi, the second Wi-Fi information corresponding to each target Wi-Fi may be displayed by way of a top display or a pattern, for example, as shown in fig. 5b, a top display is displayed for "XX 1 merchant" and "XX 2 merchant", where the Wi-Fi corresponding to "XX 1 merchant" and the Wi-Fi corresponding to "XX 2 merchant" are both target Wi-Fi.
According to a possible implementation manner of the embodiment of the application, when the terminal device is set on the top to display the second Wi-Fi information corresponding to the target Wi-Fi, the terminal device can also display the second Wi-Fi information and/or the first Wi-Fi information corresponding to each peripheral Wi-Fi.
For the embodiment of the present application, each peripheral Wi-Fi may be other Wi-Fi scanned by a Wi-Fi scanning module in the terminal device except for the target Wi-Fi, or may be a peripheral Wi-Fi corresponding to the target Wi-Fi determined by the server, and a determination method for determining the peripheral Wi-Fi corresponding to the target Wi-Fi by the server is specifically as follows:
determining peripheral Wi-Fi to be sent to a terminal device, comprising: determining the peripheral Wi-Fi recorded in the marking information corresponding to the target Wi-Fi as the peripheral Wi-Fi to be sent to the terminal equipment; certainly, the peripheral Wi-Fi to be sent to the terminal device may further include: and the Wi-Fi scanning module in the terminal equipment scans other Wi-Fi except the target Wi-Fi.
Specifically, when there are a plurality of peripheral Wi-Fi corresponding to the target Wi-Fi, the server may send all peripheral Wi-Fi corresponding to the target Wi-Fi to the corresponding terminal device, and may also select a preset number of Wi-Fi to be sent to the corresponding terminal device, as shown below (taking the peripheral Wi-Fi as an example of the peripheral Wi-Fi recorded in the mark information corresponding to the target Wi-Fi):
the server determines the peripheral Wi-Fi recorded in the marking information corresponding to the target Wi-Fi as the peripheral Wi-Fi to be sent to the terminal equipment, and the method comprises the following steps: and the server determines a preset number of Wi-Fi as the peripheral Wi-Fi to be sent to the terminal equipment from the peripheral Wi-Fi recorded in the marking information corresponding to the target Wi-Fi based on the signal value and/or the security type.
For the embodiment of the application, the server can sequence all the peripheral Wi-Fi from top to bottom according to the signal value; determining the peripheral Wi-Fi with the preset number as the peripheral Wi-Fi to be sent to the terminal equipment based on the sequencing result; and determining the peripheral Wi-Fi with the safety types of safety in the peripheral Wi-Fi as the peripheral Wi-Fi to be sent to the terminal equipment.
For example, the server determines that there are a plurality of peripheral Wi-Fi devices to be sent to the terminal device, including: and if the preset number of the first peripheral Wi-Fi, the second peripheral Wi-Fi and the third peripheral Wi-Fi is 2, the first peripheral Wi-Fi, the third peripheral Wi-Fi and the first peripheral Wi-Fi are sequentially arranged from high to low according to the signal values, and the peripheral Wi-Fi to be sent to the terminal equipment is determined to be the second peripheral Wi-Fi and the third peripheral Wi-Fi.
For another example, the server determines that there are a plurality of peripheral Wi-Fi devices to be sent to the terminal device, including: the preset number of the first peripheral Wi-Fi, the second peripheral Wi-Fi and the third peripheral Wi-Fi is 2, wherein the security types respectively corresponding to the first peripheral Wi-Fi, the second peripheral Wi-Fi and the third peripheral Wi-Fi are 'safe', 'safe' and 'unsafe', and then the peripheral Wi-Fi to be sent to the terminal device is determined to be the first peripheral Wi-Fi and the second peripheral Wi-Fi.
In another possible implementation manner of the embodiment of the present application, after step S407, the method may further include: when a Wi-Fi connection request triggered by a user is detected, the terminal equipment uploads the detected Wi-Fi connection request to a server; when the terminal equipment receives connection information which is returned by the server and aims at the Wi-Fi connection request, connection is established with the corresponding Wi-Fi based on the connection information; and when detecting that the connection information aiming at the Wi-Fi connection request is not received within the preset time and/or a notification message is received, pushing prompt information to prompt a user to input password information of the specific Wi-Fi.
Wherein the connection information for the Wi-Fi connection request includes: password information, a Wi-Fi connection request is used for requesting to establish connection with corresponding Wi-Fi.
The notification message is used for notifying the terminal device that the connection information aiming at the Wi-Fi connection request is not found currently.
For the embodiment of the application, a user can click on the 'secure one-key connection' in fig. 5a and 5b to trigger a connection request for connecting a target Wi-Fi; or the user clicks the target Wi-Fi to trigger a connection request for connecting the target Wi-Fi. In the embodiment of the application, when a Wi-Fi connection request uploaded by any terminal device is detected, whether corresponding connection information is stored or not is searched based on the Wi-Fi connection request; if the corresponding connection information is found, sending the found connection information to the terminal equipment of the connection request sender; and if the corresponding connection information is not found, sending a notification message to the connection request sender equipment.
The notification message is used for notifying the connection request sender equipment that the connection information aiming at the Wi-Fi connection request is not found currently.
For example, when it is detected that the terminal device has established a connection with the target Wi-Fi, a connection state corresponding to the target Wi-Fi, a target name (merchant name) corresponding to the target name, a current network environment, a current network latency, and current network speed information are displayed. For example, as shown in fig. 5c, when it is detected that the terminal device establishes a connection with a target Wi-Fi (Wi-Fi of XX merchant), a "connected" status, XX merchant, current network environment, current network latency, and current wire speed information are displayed.
For the embodiment of the application, when the terminal device receives the notification message of the server, that is, the connection information requested by the terminal device is not found by the representation server, the notification message is sent to inform the terminal device that the corresponding connection information is not found currently, so that when the terminal device receives the notification message or does not receive the connection information aiming at the Wi-Fi connection request within the preset time, the prompt information for prompting the user to input the connection password is pushed, so that the connection can be established with the target Wi-Fi through the connection password.
In another possible implementation manner of the embodiment of the present application, the tag database includes: a plurality of pieces of tag information; any one of the mark information includes: the Wi-Fi positioning system comprises a Wi-Fi position mark, first Wi-Fi information, geographical position information and peripheral Wi-Fi information, wherein the Wi-Fi position mark is located in the area; the POI database comprises: the corresponding relation between the area identification where the Wi-Fi is located and the POI information; the second Wi-Fi information corresponding to the target Wi-Fi comprises the following information: the first Wi-Fi information corresponding to the target Wi-Fi and the POI information corresponding to the target Wi-Fi.
For the embodiment of the present application, the data structure of any tag information is as follows:
i, identifying a region where Wi-Fi is located | first Wi-Fi information | geographical position information | peripheral Wi-Fi information |;
for example, any of the tag information may include: merchant ID, merchant Wi-Fi (which may include one or more), geographic location information (latitude and longitude information of the geographic location where the merchant is located), and ambient Wi-Fi (which may include one or more), so the data structure for any tag information may be further as follows:
i the area identification of the Wi-Fi is positioned | first Wi-Fi information | geographical position information | surrounding Wi-Fi information |.
The data structure of the first Wi-Fi information of any one Wi-Fi is as follows:
| SSID | BSSID | security type | signal value | channel |.
The following details refer to a specific process of determining second Wi-Fi information corresponding to the target Wi-Fi by the introduction server:
in another possible implementation manner of the embodiment of the application, the determining, by the server, the tag information corresponding to the target Wi-Fi based on the current geographical location information of the terminal device, the first Wi-Fi information and the tag database, which respectively correspond to each Wi-Fi scanned by the Wi-Fi module of the terminal device, includes: the server determines geographical position information in a preset range in a mark database based on the geographical position information of the current terminal equipment and the geographical position information in the mark database, wherein the preset range is obtained based on the geographical position information of the current terminal equipment; the server determines the Wi-Fi located area identification corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the Wi-Fi located area identification; the server determines central point coordinates corresponding to each area identification in area identifications where Wi-Fi is located corresponding to the geographical position information within a preset range; the server respectively determines the distance between each central point coordinate and the Wi-Fi coordinate information corresponding to each central point coordinate; the server determines an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance; the server matches the marking information of the area identification corresponding to the central point coordinate with the minimum distance in the marking database with the first Wi-Fi information corresponding to each scanned Wi-Fi; and the server determines the successfully matched marking information as the marking information corresponding to the target Wi-Fi.
The Wi-Fi coordinate information is the coordinate information which is mapped to each space coordinate system based on the scanned first Wi-Fi information respectively corresponding to each Wi-Fi, and the space coordinate system is the space coordinate system to which the center point coordinate belongs.
In another possible implementation manner of the embodiment of the application, the determining, by the server, second Wi-Fi information corresponding to the target Wi-Fi based on the tag information corresponding to the target Wi-Fi and the POI database includes: the server determines POI information corresponding to the target Wi-Fi based on the identification of the area where the Wi-Fi is located in the marking information corresponding to the target Wi-Fi and the corresponding relation between the identification of the area where the Wi-Fi is located in the POI database and the POI information; the server determines the POI information corresponding to the target Wi-Fi and the first Wi-Fi information in the marking information corresponding to the target Wi-Fi to be second Wi-Fi information corresponding to the target Wi-Fi.
The above-mentioned manner of determining the second Wi-Fi information corresponding to the target Wi-Fi is described below by way of specific examples:
1. the server determines a preset area by taking the current geographical position information reported by the terminal device as a center and R as a radius, and acquires all merchant IDs in the preset area, for example, all merchant IDs in the preset area are 1, 2 and 3;
2. the server acquires mark information corresponding to each merchant ID (for example, 1, 2 and 3) in the step 1 from the mark database;
3. the server determines the coordinates of the central points corresponding to the IDs (1, 2, 3) of the merchants in step 2 according to a clustering algorithm in a manner shown in FIG. 6 a;
4. the server maps all Wi-Fi reported by the terminal device to each coordinate system to obtain spatial coordinate information of each Wi-Fi in any coordinate system, for example, (X1, Y2, …, # S), (X1 ', Y2 ', …, # S '), (X1 ", Y2", …, # S "), wherein each coordinate system is a spatial coordinate system corresponding to each center point coordinate in 3;
5. and processing each coordinate system:
the method comprises the steps that for any coordinate system, the distance between each piece of coordinate information and a coordinate of a central point in the coordinate system is determined, and a merchant ID corresponding to the central point with the minimum distance is determined;
6. matching all Wi-Fi with the merchant ID in the step 5 with all Wi-Fi reported by the terminal equipment, and determining that the Wi-Fi existing between the two is the target Wi-Fi;
7. and returning the second Wi-Fi information (comprising the name of the merchant and/or the logo) corresponding to the target Wi-Fi determined in the step 6 to the corresponding terminal equipment.
For the embodiment of the present application, it is described above that the tag database includes a plurality of pieces of tag information, and the following describes in detail a manner of generating the tag database:
generating a tag database comprising: acquiring mark information respectively corresponding to each Wi-Fi; marking and cleaning the obtained marking information corresponding to each Wi-Fi to obtain marking information meeting preset requirements; and generating a marking database based on the marking information meeting the preset requirements.
For the embodiment of the application, the two ways of obtaining the mark information respectively corresponding to each Wi-Fi include:
1. manual marking: collecting information at the shop by staff or merchants, clearly indicating the various information (marking information) in the current environment, and uniformly uploading the information to a server;
2. and a Wi-Fi scanning mark is used for scanning in a shop by using a Wi-Fi scanner, all Wi-Fi information under the current environment is collected and uploaded to a server, the background matches the Wi-Fi scanning mark with the geographical position information and the POI library, and the merchant Wi-Fi is matched from the returned Wi-Fi list.
Further, information of Wi-Fi of a plurality of merchants is collected through the mark acquisition mode, and whether the terminal equipment is in a shop or not can be judged by utilizing the information and the Wi-Fi list reported by the user terminal and scanned by the scanning module. Since a plurality of marks may exist in Wi-Fi of one merchant, some marks have the condition of inaccurate data completion, and the quality of the marks affects the accuracy of judgment, some marks with poor quality need to be cleaned.
The method for cleaning the mark information corresponding to the Wi-Fi comprises the following steps:
1. deleting the marked information with exception or missing in the data field;
2. calculating standard values of all fields by integrating all data, and deleting if certain tag data is lower than the standard values, for example, one merchant corresponds to 4 tags, the latitudes of the 4 tags are 23.0941, 23.0942, 23.0932 and 23.0940 respectively, and after calculation, most tags are concentrated on 23.0941, the tags of 23.0932 are deleted; for another example, if a merchant also corresponds to 4 tags, and the signals marked as merchant WiFi have values of-70 dBm, -65dBm, -70dBm, -90dBm, respectively, the tag of-90 dBm is deleted.
3. And modeling the marks marked as the same merchant, and deleting the marks which are greatly different from the models.
Specifically, the tags marked as the same merchant are modeled, and the tags with a large difference from the model are deleted as follows:
(1) taking out all the marks pointing to the same merchant id, taking longitude and latitude as a coordinate system, recording the marks on the coordinate system, finding out a central point (XC, YC) through a clustering algorithm (k-means), setting a radius R, deleting the marks which are not in a circle, and setting the geographical position of the merchant id on (XC, YC) (namely, considering (XC, YC) as the geographical position of the merchant), as shown in FIG. 6 a.
(2) Taking out a union set of all marked peripheral Wi-Fi, and counting the occurrence frequency of each peripheral Wi-Fi, wherein when the occurrence frequency is less than a certain value (the influence of a mobile hotspot and an unstable hotspot is eliminated); and then establishing an S-dimensional space by taking the peripheral Wi-Fi as a dimension of the excluded union set (the number is S), taking the signal value on the mark as a distance, and taking the value of 0-100, wherein the larger the signal value is, the smaller the distance is (the value of 100 is not taken by the mark corresponding to the Wi-Fi), so that the coordinate of one mark on the S-dimensional space is (X1, Y2, …,. multidot.S). Similarly, the center point (XC, YC, …, × C) is obtained by the method (1), and the radius Rc is also set, and the marks not in the circle are deleted.
For example, the union of Wi-Fi in the vicinity of a merchant has only two Wi-Fi (Wi-Fi1 and Wi-Fi2), and the two Wi-Fi signal values of a tag are normalized to 1 and 2, respectively, and the coordinates of the tag in 2-dimensional space are shown in fig. 6 b.
Based on the above embodiments, the above Wi-Fi identifying manner is described as a specific example, which is shown as follows:
as shown in fig. 7, after the user enters the merchant, the terminal device scanning module scans Wi-Fi (Wi-Fi1, Wi-Fi2 …), and uploads the scanned Wi-Fi and the current geographical location information to the server, and the server matches a target Wi-Fi from the database (the tag database, the POI database) based on the uploaded information; the generation method of the tag library is to obtain tag information (tag 1, tag 2 …) by tag positioning, and then obtain the tag database by tag cleaning, wherein the tag database is generated by a manner that the tag database is generated by collecting Wi-Fi information (including first Wi-Fi information corresponding to the merchant Wi-Fi and peripheral Wi-Fi information) and merchant geographical location information respectively corresponding to each merchant, for example, the Wi-Fi information scanned at the merchant 1 and the geographical location information of the merchant 1 (referred to as merchant 1 in fig. 7), the Wi-Fi information scanned at the merchant 2 and the geographical location information of the merchant 2 (referred to as merchant 2 in fig. 7), the Wi-Fi information scanned at the merchant 3 and the geographical location information of the merchant 3 (referred to as merchant 3 in fig. 7) and the like.
In the above description, the way of identifying Wi-Fi is introduced from the perspective of the terminal device, the server, and the way of the terminal device interacting with the server, and the following description respectively introduces embodiments of virtual devices corresponding to the terminal device and the server on the basis of the above embodiments of the method.
An embodiment of the present application provides a terminal device, as shown in fig. 8, where the terminal device 80 includes: a first uploading module 81, a first receiving module 82, a display module 83, wherein,
the first uploading module 81 is configured to upload the current geographic location information and the first wireless network information respectively corresponding to each Wi-Fi scanned by the wireless network module to the server.
The first receiving module 82 is configured to receive second wireless network information corresponding to the target wireless network sent by the server.
And a display module 83, configured to display second network information corresponding to the target wireless network received by the first receiving module 82, so that the user identifies the target wireless network based on the second wireless network information.
The second wireless network information corresponding to the target wireless network is obtained by the server through the following modes:
the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database.
Wherein the first wireless network information comprises: service set identifier SSID, basic service set identifier BSSID, security type, channel value and affiliated channel; the second wireless network information includes at least one of: SSID, BSSID, security type, channel value, belonging channel and POI information; the POI information comprises at least one of the following items: target name information and trademark information corresponding to the target name information.
In a possible implementation manner of the embodiment of the present application, the terminal device 80 further includes: a second receiving module, wherein,
and the second receiving module is used for receiving second wireless network information and/or first wireless network information which are respectively corresponding to each peripheral wireless network and are sent by the server.
The display module 83 is specifically configured to set a top to display second wireless network information corresponding to the target wireless network, and display second wireless network information and/or first wireless network information corresponding to each peripheral wireless network.
In another implementation manner of the embodiment of the present application, the apparatus 80 further includes: a second uploading module, and a connection establishing module, wherein,
and the second uploading module is used for uploading the detected wireless network connection request to the server when the wireless network connection request triggered by the user is detected.
The wireless network connection request is used for requesting connection establishment with a corresponding wireless network.
And the connection establishing module is used for establishing connection with the corresponding wireless network based on the connection information when receiving the connection information which is returned by the server and aims at the wireless network connection request.
Wherein the connection information for the wireless network connection request includes: password information.
In another possible implementation manner of the embodiment of the present application, the apparatus 80 further includes: a push module, wherein the push module is provided with a push module,
the pushing module is used for pushing prompt information to prompt a user to input password information of a specific wireless network when detecting that the connection information aiming at the wireless network connection request is not received and/or the notification message is received within the preset time.
The notification message is used for notifying the terminal device that the connection information for the wireless network connection request is not found currently.
Another possible implementation manner of the embodiment of the present application is a manner for determining tag information corresponding to a target wireless network based on current geographic location information, first wireless network information and a tag database respectively corresponding to each wireless network scanned by a wireless network module, including:
determining the area identifier of the wireless network corresponding to the geographical position information within a preset range based on the geographical position information of the terminal equipment and the mark database;
determining a central point coordinate corresponding to each area identifier in the area identifiers of the wireless network corresponding to the geographical position information within the preset range;
respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate, wherein the wireless network coordinate information is the coordinate information mapped into each space coordinate system based on the scanned first wireless network information corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs;
and determining mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
Another possible implementation manner of the embodiment of the present application is a manner for determining, based on the current geographical location information of the terminal device and the tag database, an area identifier of a wireless network corresponding to the geographical location information within a preset range, where the wireless network is located, and includes:
determining geographical position information in a preset range in a mark database based on the geographical position information of the current position of the terminal equipment and the geographical position information in the mark database, wherein the preset range is a preset range obtained based on the geographical position information of the current position;
and determining the area identifier of the wireless network corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the area identifier of the wireless network.
Another possible implementation manner of the embodiment of the application, based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal device, determines a manner of marking information corresponding to the target wireless network, including:
determining an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance;
matching the marking information of the area identifier corresponding to the central point coordinate with the minimum distance in the marking database with the first wireless network information respectively corresponding to each scanned wireless network;
and determining the successfully matched marking information as the marking information corresponding to the target wireless network.
In another possible implementation manner of the embodiment of the application, the tag database is generated based on tag information which is obtained by tag-cleaning tag information respectively corresponding to each acquired wireless network and meets preset requirements.
The embodiment of the application provides a terminal device, and compared with the prior art that a specific worker is inquired to identify Wi-Fi corresponding to a merchant, the embodiment of the application uploads current geographical position information and first wireless network information respectively corresponding to each wireless network scanned by a wireless network module to a server, then receives second wireless network information corresponding to a target wireless network sent by the server, and displays the second network information corresponding to the target wireless network, so that a user identifies the target wireless network based on the second wireless network information, wherein the second wireless network information corresponding to the target wireless network is obtained by the server in the following manner: the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database. The second wireless network information corresponding to the target wireless network is directly displayed on the screen of the terminal device, so that the user can identify the target wireless network without providing wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user does not need to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
The terminal device provided in the embodiment of the present application is applicable to the method embodiment executed by the terminal device in the above method embodiment, and details are not described here again.
An embodiment of the present application provides a server, as shown in fig. 9, where the server 90 includes: a third receiving module 91, a first determining module 92, a second determining module 93, a return module 94, wherein,
the third receiving module 91 is configured to receive the current geographical location information of the terminal device uploaded by the terminal device and the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal device.
The first determining module 92 is configured to determine, based on the current geographical location information of the terminal device received by the third receiving module 91, the first wireless network information and the tag database respectively corresponding to each wireless network scanned by the wireless network module of the terminal device, the tag information corresponding to the target wireless network.
The second determining module 93 is configured to determine, based on the POI database and the tag information corresponding to the target wireless network determined by the first determining module 92, second wireless network information corresponding to the target wireless network.
For the embodiment of the present application, the first determining module 92 and the second determining module 93 may be the same determining module or different determining modules. The embodiments of the present application are not limited.
A returning module 94, configured to return the second wireless network information corresponding to the target wireless network determined by the second determining module 93 to the terminal device, so that the terminal device displays the second wireless network information corresponding to the target wireless network.
In a possible implementation manner of the embodiment of the present application, the tag database includes: a plurality of pieces of tag information; any one of the mark information includes: the Wi-Fi positioning system comprises a Wi-Fi position mark, first Wi-Fi information, geographical position information and peripheral Wi-Fi information, wherein the Wi-Fi position mark is located in the area; the POI database comprises: the corresponding relation between the area identification where the Wi-Fi is located and the POI information; the second Wi-Fi information corresponding to the target Wi-Fi comprises the following information: the first Wi-Fi information corresponding to the target Wi-Fi and the POI information corresponding to the target Wi-Fi.
In another possible implementation manner of the embodiment of the present application, the first determining module 92 includes: a first determining unit, a second determining unit, a third determining unit, and a fourth determining unit, wherein,
and the first determining unit is used for determining the area identifier of the wireless network corresponding to the geographical position information within the preset range based on the geographical position information of the terminal equipment and the mark database.
And the second determining unit is used for determining the center point coordinates corresponding to each area identifier in the area identifiers where the wireless network is located corresponding to the geographical position information which is determined by the first determining unit and is within the preset range.
And the third determining unit is used for respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate.
The wireless network coordinate information is the coordinate information which is mapped to each space coordinate system based on the scanned first wireless network information respectively corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs.
And the fourth determining unit is used for determining the mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
For the embodiment of the present application, the first determining unit, the second determining unit, the third determining unit, and the fourth determining unit may be the same unit, may all be different units, and may be the same unit in any combination of determining units. The embodiments of the present application are not limited.
In another possible implementation manner of the embodiment of the application, the first determining unit is specifically configured to determine, based on the current geographic position information of the terminal device and the geographic position information in the tag database, the geographic position information in a preset range in the tag database, where the preset range is obtained based on the current geographic position information, and determine, based on a corresponding relationship between the geographic position information in the tag database and an area identifier where the wireless network is located, an area identifier where the wireless network is located corresponding to the geographic position information in the preset range.
In another possible implementation manner of the embodiment of the application, the fourth determining unit is specifically configured to determine, based on the determined distance, an area identifier corresponding to a central point coordinate with a minimum distance, match, in the tag database, tag information of the area identifier corresponding to the central point coordinate with the minimum distance with the first wireless network information respectively corresponding to the scanned wireless networks, and determine, as the tag information corresponding to the target wireless network, the tag information that is successfully matched.
In another possible implementation manner of the embodiment of the application, the second determining module 93 is specifically configured to determine, based on an area identifier of a wireless network in the tag information corresponding to the target wireless network, and a corresponding relationship between the area identifier of the wireless network in the POI database and the POI information, the POI information corresponding to the target wireless network, and the first wireless network information in the tag information corresponding to the target wireless network are determined as the second wireless network information corresponding to the target wireless network.
In another possible implementation manner of the embodiment of the present application, the server 90 further includes: a third determination module, wherein,
and the third determining module is used for determining the peripheral wireless network to be sent to the terminal equipment.
The returning module 94 is specifically configured to return the second wireless network information corresponding to the target wireless network and the determined second wireless network information and/or the first wireless network information corresponding to the peripheral wireless network to the terminal device.
In another possible implementation manner of the embodiment of the application, the third determining module is specifically configured to determine a peripheral wireless network recorded in the tag information corresponding to the target wireless network as the peripheral wireless network to be sent to the terminal device.
In another possible implementation manner of the embodiment of the application, when there are a plurality of peripheral wireless networks corresponding to the target wireless network, the third determining module is specifically configured to determine, based on the signal value and/or the security type, a preset number of wireless networks as the peripheral wireless networks to be sent to the terminal device from the peripheral wireless networks recorded in the tag information corresponding to the target wireless network.
In another possible implementation manner of the embodiment of the present application, the server 90 further includes: a generation module for generating, wherein,
and the generation module is used for generating a mark database.
Specifically, the generation module includes: an acquisition unit, a mark cleaning unit and a generation unit, wherein,
and the acquisition unit is used for acquiring the mark information corresponding to each wireless network.
And the mark cleaning unit is used for carrying out mark cleaning on the mark information corresponding to each wireless network acquired by the acquisition unit to acquire the mark information meeting the preset requirement.
And the generating unit is used for generating a mark database based on the mark information meeting the preset requirement.
In another possible implementation manner of the embodiment of the present application, the server 90 further includes: a searching module and a sending module, wherein,
and the searching module is used for searching whether corresponding connection information is stored or not based on the wireless network connection request when the wireless network connection request uploaded by any terminal device is detected.
And when the searching module searches the corresponding connection information, the sending module is used for sending the searched connection information to the terminal equipment of the connection request sender.
And when the searching module does not search the corresponding connection information, the sending module is also used for sending a notification message to the connection request sender equipment.
The notification message is used for notifying the connection request sender device that the connection information for the wireless network connection request is not found currently.
The embodiment of the application provides a server, compared with the prior art that a merchant worker is inquired to identify Wi-Fi corresponding to the merchant, the embodiment of the application receives geographical position information uploaded by a terminal device and first wireless network information respectively corresponding to each wireless network scanned by a wireless fidelity wireless network module of the terminal device, then determines marking information corresponding to a target wireless network based on the geographical position information currently located by the terminal device, the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal device and a marking database, determines second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and an interest point POI database, and returns the second wireless network information corresponding to the target wireless network to the terminal device, so that the terminal device displays second wireless network information corresponding to the target wireless network. The server can directly return the second wireless network information corresponding to the target wireless network to the terminal equipment corresponding to the user, so that the terminal equipment can display the second wireless network information corresponding to the target wireless network, the user is not required to provide wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user is not required to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
The server of this embodiment may execute the method embodiment executed by the server in the above method embodiment, and the implementation principles thereof are similar, and are not described herein again.
An embodiment of the present application provides a terminal device, as shown in fig. 10, a terminal device 1000 shown in fig. 10 includes: a processor 1001, a memory 1003, and a display 1005. Wherein the processor 1001 is coupled to the memory 1003 and the display 1005, such as via the bus 1002. Optionally, the terminal device 1000 may further include a transceiver 1004. It should be noted that the transceiver 1004 is not limited to one in practical application, and the structure of the terminal device 1000 is not limited to the embodiment of the present application.
The processor 1001 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 1001 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
Bus 1002 may include a path that transfers information between the above components. The bus 1002 may be a PCI bus or an EISA bus, etc. The bus 1002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
The memory 1003 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 1003 is used for storing application program codes for executing the present application, and the processor 1001 controls the execution. The processor 1001 is configured to execute the application program code stored in the memory 1003 to implement the content executed by the terminal device in any of the foregoing method embodiments; the display 1005 is used for displaying second Wi-Fi information corresponding to the target Wi-Fi; specifically, the display 1005 displays second Wi-Fi information corresponding to the target Wi-Fi on the top, and displays second Wi-Fi information and/or first Wi-Fi information corresponding to each of the peripheral Wi-Fi.
The embodiment of the present application provides a terminal device, and the terminal device in the embodiment of the present application includes: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: the method and the device for identifying the target wireless network have the advantages that the current geographic position information and the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module are uploaded to the server, then the second wireless network information corresponding to the target wireless network sent by the server is received, and the second network information corresponding to the target wireless network is displayed, so that a user can identify the target wireless network based on the second wireless network information, wherein the second wireless network information corresponding to the target wireless network is obtained by the server through the following modes: the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database. The second wireless network information corresponding to the target wireless network is directly displayed on the screen of the terminal device, so that the user can identify the target wireless network without providing wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user does not need to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
The terminal device of this embodiment may execute the method embodiment executed by the terminal device in the above method embodiment, and the implementation principles thereof are similar, and are not described herein again.
An embodiment of the present application provides a server, and as shown in fig. 11, a server 1100 shown in fig. 11 includes: a processor 1101 and a memory 1103. The processor 1101 is coupled to the memory 1103, such as by a bus 1102. Optionally, the server 1100 may also include a transceiver 1104. It should be noted that the transceiver 1104 is not limited to one in practical applications, and the structure of the server 1100 is not limited to the embodiment of the present application.
The processor 1101 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 1101 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
Bus 1102 may include a path that transfers information between the above components. The bus 1102 may be a PCI bus or an EISA bus, etc. The bus 1102 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.
The memory 1103 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 1103 is used for storing application program codes for executing the present application, and the execution is controlled by the processor 1101. The processor 1101 is configured to execute application program code stored in the memory 1103 to implement the content executed by the server as shown in any one of the foregoing method embodiments.
An embodiment of the present application provides a server, where the server includes: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: the method and the device for displaying the second wireless network information have the advantages that the geographical position information uploaded by the terminal device, which is currently located by the terminal device, and the first wireless network information which is respectively corresponding to each wireless network scanned by the wireless fidelity wireless network module of the terminal device are received, then the marking information corresponding to the target wireless network is determined based on the geographical position information which is currently located by the terminal device, the first wireless network information which is respectively corresponding to each wireless network scanned by the wireless network module of the terminal device and the marking database, the second wireless network information which is corresponding to the target wireless network is determined based on the marking information which is corresponding to the target wireless network and the POI database, and the second wireless network information which is corresponding to the target wireless network is returned to the terminal device, so that the terminal device displays the second wireless network information which is corresponding to the target wireless network. The server can directly return the second wireless network information corresponding to the target wireless network to the terminal equipment corresponding to the user, so that the terminal equipment can display the second wireless network information corresponding to the target wireless network, the user is not required to provide wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user is not required to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
The server of this embodiment may execute the method embodiment executed by the server in the above method embodiment, and the implementation principles thereof are similar, and are not described herein again.
The embodiment of the application provides a computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the method of the terminal device in the above method embodiment. Compared with the prior art, the method and the device have the advantages that the current geographic position information and the first wireless network information which is respectively corresponding to each wireless network scanned by the wireless network module are uploaded to the server, then the second wireless network information which is sent by the server and corresponds to the target wireless network is received, the second network information which corresponds to the target wireless network is displayed, and therefore a user can identify the target wireless network based on the second wireless network information, wherein the second wireless network information which corresponds to the target wireless network is obtained by the server through the following method: the method comprises the steps of determining marking information corresponding to a target wireless network based on current geographical position information, first wireless network information and a marking database which correspond to each wireless network scanned by a wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and a POI (point of interest) database. The second wireless network information corresponding to the target wireless network is directly displayed on the screen of the terminal device, so that the user can identify the target wireless network without providing wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user does not need to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
The embodiment of the application provides a computer-readable storage medium suitable for any embodiment of the method executed by the terminal equipment. And will not be described in detail herein.
The embodiment of the application provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to realize the method of the above method embodiment by a server. Compared with the prior art, the method and the device for displaying the second wireless network information have the advantages that the geographical position information of the current position of the terminal device uploaded by the terminal device and the first wireless network information respectively corresponding to each wireless network scanned by the wireless fidelity wireless network module of the terminal device are received, then the marking information corresponding to the target wireless network is determined based on the geographical position information of the current position of the terminal device, the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module of the terminal device and the marking database, the second wireless network information corresponding to the target wireless network is determined based on the marking information corresponding to the target wireless network and the POI database, and the second wireless network information corresponding to the target wireless network is returned to the terminal device, so that the terminal device displays the second wireless network information corresponding to the target wireless network. The server can directly return the second wireless network information corresponding to the target wireless network to the terminal equipment corresponding to the user, so that the terminal equipment can display the second wireless network information corresponding to the target wireless network, the user is not required to provide wireless network configuration information, the complexity of identifying the target wireless network is reduced, the user is not required to inquire a specific worker or scan a specific two-dimensional code, the target wireless network is identified, the time spent on identifying the wireless network is reduced, the efficiency of identifying the target wireless network can be improved, and the user experience can be improved.
The embodiment of the application provides a computer readable storage medium suitable for any embodiment of the method executed by the server. And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (14)

1. A method of identifying a wireless network, performed by a terminal device, comprising:
uploading the current geographical position information and first wireless network information respectively corresponding to each wireless network scanned by the wireless network module to a server;
receiving second wireless network information corresponding to the target wireless network sent by the server, and displaying the second wireless network information corresponding to the target wireless network, so that the user can identify the target wireless network based on the second wireless network information;
the second wireless network information corresponding to the target wireless network is obtained by the server through the following modes:
determining marking information corresponding to a target wireless network based on the current geographical position information, first wireless network information and a marking database which are respectively corresponding to each wireless network scanned by the wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and the POI database;
determining a mode of marking information corresponding to a target wireless network based on the current geographical position information, the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module and a marking database, wherein the mode comprises the following steps:
determining the area identifier of the wireless network corresponding to the geographical position information within a preset range based on the geographical position information of the terminal equipment and the mark database;
determining a central point coordinate corresponding to each area identifier in the area identifiers of the wireless network corresponding to the geographical position information within the preset range;
respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate, wherein the wireless network coordinate information is the coordinate information mapped into each space coordinate system based on the scanned first wireless network information corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs;
and determining mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
2. The method of claim 1, wherein the first wireless network information comprises: service set identifier SSID, basic service set identifier BSSID, security type, channel value and affiliated channel;
the second wireless network information includes at least one of: SSID, BSSID, security type, channel value, belonging channel and POI information;
the POI information comprises at least one of the following items: target name information and trademark information corresponding to the target name information;
the wireless network includes: wireless fidelity Wi-Fi;
the uploading the current geographical location information and the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module to a server, and then further comprising:
receiving second wireless network information and/or first wireless network information which are respectively corresponding to each peripheral wireless network and are sent by a server;
the displaying of the second wireless network information corresponding to the target wireless network includes:
and displaying second wireless network information corresponding to the target wireless network on top, and displaying second wireless network information and/or first wireless network information corresponding to each peripheral wireless network.
3. The method of claim 1, wherein the determining, based on the current geographical location information of the terminal device and the tag database, a mode of the area identifier of the wireless network corresponding to the geographical location information within the preset range includes:
determining geographical position information in a preset range in a mark database based on the geographical position information of the current position of the terminal equipment and the geographical position information in the mark database, wherein the preset range is a preset range obtained based on the geographical position information of the current position;
and determining the area identifier of the wireless network corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the area identifier of the wireless network.
4. The method according to claim 1 or 3, wherein the determining of the label information corresponding to the target wireless network based on the distance between each determined center point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal device comprises:
determining an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance;
matching the marking information of the area identifier corresponding to the central point coordinate with the minimum distance in the marking database with the first wireless network information respectively corresponding to the scanned wireless networks;
and determining the successfully matched marking information as the marking information corresponding to the target wireless network.
5. The method according to any one of claims 1 to 3, wherein the tag database is generated based on tag information which is obtained by tag-washing tag information respectively corresponding to each acquired wireless network and meets preset requirements.
6. A method of identifying a wireless network, performed by a server, comprising:
receiving current geographical position information of the terminal equipment uploaded by the terminal equipment and first wireless network information respectively corresponding to each wireless network scanned by a wireless network module of the terminal equipment;
determining marking information corresponding to a target wireless network based on the current geographical position information of the terminal equipment, first wireless network information and a marking database which are respectively corresponding to each wireless network scanned by a wireless network module of the terminal equipment;
determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and the POI database;
returning second wireless network information corresponding to the target wireless network to the terminal equipment, so that the terminal equipment displays the second wireless network information corresponding to the target wireless network;
the determining the marking information corresponding to the target wireless network based on the current geographical position information of the terminal equipment, the first wireless network information and the marking database respectively corresponding to each wireless network scanned by the wireless network module of the terminal equipment comprises:
determining the area identifier of the wireless network corresponding to the geographical position information within a preset range based on the geographical position information of the terminal equipment and the mark database;
determining a central point coordinate corresponding to each area identifier in the area identifiers of the wireless network corresponding to the geographical position information within the preset range;
respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate, wherein the wireless network coordinate information is the coordinate information mapped into each space coordinate system based on the scanned first wireless network information corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs;
and determining mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
7. The method of claim 6, wherein the tag database comprises: a plurality of pieces of tag information;
any one of the mark information includes: the method comprises the steps of identifying an area where a wireless network is located, first wireless network information, geographical position information and peripheral wireless network information;
the POI database comprises: the corresponding relation between the area identification where the wireless network is located and the POI information;
the second wireless network information corresponding to the target wireless network comprises: first wireless network information corresponding to a target wireless network and POI information corresponding to the target wireless network;
the wireless network includes: Wi-Fi.
8. The method of claim 7, wherein determining, based on the current geographical location information of the terminal device and the tag database, an area identifier where a wireless network is located corresponding to the geographical location information within a preset range includes:
determining geographical position information in a mark database within a preset range based on the geographical position information of the current position of the terminal equipment and the geographical position information in the mark database, wherein the preset range is obtained based on the geographical position information of the current position;
and determining the area identifier of the wireless network corresponding to the geographical position information within the preset range based on the corresponding relation between the geographical position information in the mark database and the area identifier of the wireless network.
9. The method according to claim 7 or 8, wherein determining the label information corresponding to the target wireless network based on the distance between each determined center point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal device, comprises:
determining an area identifier corresponding to the center point coordinate with the minimum distance based on the determined distance;
matching the marking information of the area identifier corresponding to the central point coordinate with the minimum distance in the marking database with the first wireless network information respectively corresponding to the scanned wireless networks;
and determining the successfully matched marking information as the marking information corresponding to the target wireless network.
10. The method of claim 6, wherein determining second wireless network information corresponding to the target wireless network based on the tag information corresponding to the target wireless network and the POI database comprises:
determining POI information corresponding to the target wireless network based on the area identification of the wireless network in the marking information corresponding to the target wireless network, the area identification of the wireless network in the POI database and the corresponding relationship between the POI information;
and determining the POI information corresponding to the target wireless network and the first wireless network information in the marking information corresponding to the target wireless network as the second wireless network information corresponding to the target wireless network.
11. The method of claim 6, wherein the returning the second wireless network information corresponding to the target wireless network to the terminal device further comprises:
determining a peripheral wireless network to be sent to the terminal equipment;
the returning of the second wireless network information corresponding to the target wireless network to the terminal device includes:
and returning second wireless network information corresponding to the target wireless network and the determined second wireless network information and/or first wireless network information corresponding to the peripheral wireless network to the terminal equipment.
12. The method according to claim 6, wherein the determining the tag information corresponding to the target wireless network is based on the current geographical location information of the terminal device, the first wireless network information and the tag database respectively corresponding to each wireless network scanned by the wireless network module of the terminal device, and before the determining, further comprises:
generating the tag database;
the generating the tag database includes:
acquiring mark information corresponding to each wireless network;
marking and cleaning the obtained marking information corresponding to each wireless network to obtain marking information meeting preset requirements;
and generating the marking database based on the marking information meeting the preset requirements.
13. A terminal device, comprising:
the first uploading module is used for uploading the current geographical position information and the first wireless network information respectively corresponding to the Wi-Fi scanned by the wireless network module to a server;
the first receiving module is used for receiving second wireless network information corresponding to the target wireless network sent by the server;
the display module is used for displaying second wireless network information corresponding to the target wireless network received by the first receiving module so that a user can identify the target wireless network based on the second wireless network information;
the second wireless network information corresponding to the target wireless network is obtained by the server through the following modes:
determining marking information corresponding to a target wireless network based on the current geographical position information, first wireless network information and a marking database which are respectively corresponding to each wireless network scanned by the wireless network module, and determining second wireless network information corresponding to the target wireless network based on the marking information corresponding to the target wireless network and the POI database;
determining a mode of marking information corresponding to a target wireless network based on the current geographical position information, the first wireless network information respectively corresponding to each wireless network scanned by the wireless network module and a marking database, wherein the mode comprises the following steps:
determining the area identifier of the wireless network corresponding to the geographical position information within a preset range based on the geographical position information of the terminal equipment and the mark database;
determining a central point coordinate corresponding to each area identifier in the area identifiers of the wireless network corresponding to the geographical position information within the preset range;
respectively determining the distance between each central point coordinate and the wireless network coordinate information corresponding to each central point coordinate, wherein the wireless network coordinate information is the coordinate information mapped into each space coordinate system based on the scanned first wireless network information corresponding to each wireless network, and the space coordinate system is the space coordinate system to which the central point coordinate belongs;
and determining mark information corresponding to the target wireless network based on the determined distance between each central point coordinate and the corresponding wireless network coordinate information and the first wireless network information corresponding to each wireless network scanned by the wireless network module of the terminal equipment.
14. A computer readable storage medium, characterized in that it stores at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of identifying a wireless network according to any one of claims 1 to 12.
CN201910142783.XA 2019-02-26 2019-02-26 Method for identifying wireless network, terminal device and computer readable storage medium Active CN111615174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910142783.XA CN111615174B (en) 2019-02-26 2019-02-26 Method for identifying wireless network, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910142783.XA CN111615174B (en) 2019-02-26 2019-02-26 Method for identifying wireless network, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111615174A CN111615174A (en) 2020-09-01
CN111615174B true CN111615174B (en) 2022-02-08

Family

ID=72202902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910142783.XA Active CN111615174B (en) 2019-02-26 2019-02-26 Method for identifying wireless network, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111615174B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261570B (en) * 2020-09-30 2023-01-06 汉海信息技术(上海)有限公司 Method, device, server and storage medium for associating interest point with wireless network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014091181A1 (en) * 2012-12-12 2014-06-19 Ahmad Al-Najjar System and method for determining a position of a mobile unit
CN104573042A (en) * 2015-01-19 2015-04-29 小米科技有限责任公司 Method and device for determining POI information
CN106093852A (en) * 2016-05-27 2016-11-09 东华大学 A kind of method improving WiFi fingerprint location precision and efficiency
CN108282843A (en) * 2017-01-18 2018-07-13 广州市动景计算机科技有限公司 Network inquiry method, apparatus and server
CN108712712A (en) * 2017-04-10 2018-10-26 腾讯科技(深圳)有限公司 Wireless Fidelity WiFi network related information display methods and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014091181A1 (en) * 2012-12-12 2014-06-19 Ahmad Al-Najjar System and method for determining a position of a mobile unit
CN104573042A (en) * 2015-01-19 2015-04-29 小米科技有限责任公司 Method and device for determining POI information
CN106093852A (en) * 2016-05-27 2016-11-09 东华大学 A kind of method improving WiFi fingerprint location precision and efficiency
CN108282843A (en) * 2017-01-18 2018-07-13 广州市动景计算机科技有限公司 Network inquiry method, apparatus and server
CN108712712A (en) * 2017-04-10 2018-10-26 腾讯科技(深圳)有限公司 Wireless Fidelity WiFi network related information display methods and device

Also Published As

Publication number Publication date
CN111615174A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
JP6546315B2 (en) Short range information transmission
CN108712712B (en) Wireless fidelity WiFi network associated information display method and device
US20120270573A1 (en) Positioning system and method for single and multilevel structures
CN104105061A (en) Information pushing method and system
US20140221009A1 (en) Method, system and apparatus for collecting location information
CN105373559A (en) Geographic information acquisition method and geographic information acquisition system
EP3174319A1 (en) Wi-fi signal-based positioning method, device, and system
JP2015521400A (en) Creating and sharing a private location database
CN109996185B (en) Terminal positioning method and device, storage medium and electronic device
RU2607615C2 (en) Methods and apparatus for obtaining service
CN107172209B (en) Information pushing method and device
CN103828441A (en) Identification-assisted wireless network connections
WO2017088473A1 (en) Client positioning method and apparatus
CN106658665A (en) Method and apparatus for establishing wireless connection
CN107567071B (en) Method and equipment for inquiring wireless hotspot
CN108038177B (en) Method and equipment for providing label page
KR20140020332A (en) Method and system for acquiring user content
CN111615174B (en) Method for identifying wireless network, terminal device and computer readable storage medium
CN105163275B (en) A kind of data transmission method for uplink, relevant apparatus and system
CN106910077B (en) Target object information query method and device
US20190342719A1 (en) Neighbor Awareness Method, Beacon Device, and Mobile Terminal
WO2016101418A1 (en) Wireless navigation system, method and computer storage medium
CN108616886B (en) Method and equipment for generating wireless access point topological network
CN110710274B (en) Hotspot scanning method and electronic equipment
CN111198981A (en) Query method, device, system and storage medium

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