Disclosure of Invention
The embodiment of the invention provides a navigation method, which is used for solving the problem that the navigation in the prior art needs to consume mobile data flow.
The embodiment of the invention provides a navigation method, which comprises the following steps: detecting first attribute information of at least one Access Point (AP); determining a target AP according to the first attribute information of the at least one AP; wherein the target AP is a destination AP; and navigating according to the current position information of the terminal and the first attribute information of the target AP.
In the embodiment of the invention, by detecting the first attribute information of at least one AP, the first attribute information of the AP is detected without consuming mobile data traffic, the target AP is determined according to the first attribute information of the AP, and then navigation is performed according to the first attribute information of the target AP and the current position of the terminal. Therefore, navigation can be realized without moving data flow, and user experience can be improved.
In a possible embodiment, the attribute information includes a name of the AP; the determining a target AP according to the first attribute information of the at least one AP includes: determining an AP corresponding to the name of the at least one AP matched with a preset keyword as a quasi-target AP, wherein the quasi-target AP comprises at least one AP; determining one of the quasi-target APs as the target AP.
In order to further accurately determine the target AP, the first attribute information further includes a first signal strength; the determining one of the quasi-target APs as a target AP comprises: determining a first signal strength for each of the quasi-target APs; determining an AP of the quasi-target APs whose first signal strength meets a first threshold as the target AP; the navigating according to the current position information and the first attribute information of the target AP comprises: and when the terminal moves from the current position to the next position, determining the second signal strength of the target AP, and if the second signal strength is greater than the first signal strength, indicating to move forwards.
In a possible implementation manner, the attribute information further includes an encryption manner of the AP; the determining an AP of the quasi-target APs whose first signal strength satisfies a first threshold as the target AP includes: and determining the AP with the first signal strength meeting a first threshold and the size meeting a second threshold as the target AP. Thus, the scale of the unit for deploying the AP can be determined through the encryption mode of the AP.
In one possible embodiment, the current position information is determined by a gyroscope and a compass built in the terminal. Therefore, the positioning is realized without a GPS, and the electric quantity and the mobile data flow of the terminal can be further saved.
An embodiment of the present invention provides a navigation device, including: a detecting unit, configured to detect first attribute information of at least one access point AP; the processing unit is used for determining a target AP according to the first attribute information of the at least one AP; wherein the target AP is a destination AP; and navigating according to the current position information of the terminal and the first attribute information of the target AP.
In a possible embodiment, the attribute information includes a name of the AP; the processing unit is configured to: determining an AP corresponding to the name of the at least one AP matched with a preset keyword as a quasi-target AP, wherein the quasi-target AP comprises at least one AP; determining one of the quasi-target APs as the target AP.
In a possible embodiment, the first attribute information further includes a first signal strength; the processing unit is configured to: determining a first signal strength for each of the quasi-target APs; determining an AP of the quasi-target APs whose first signal strength meets a first threshold as the target AP; and when the terminal moves from the current position to the next position, determining the second signal strength of the target AP, and if the second signal strength is greater than the first signal strength, indicating to move forwards.
In a possible implementation manner, the attribute information further includes an encryption manner of the AP; the processing unit is configured to: and determining the AP with the first signal strength meeting a first threshold and the size meeting a second threshold as the target AP.
In one possible embodiment, the current position information is determined by a gyroscope and a compass built in the terminal.
An embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions for causing a computer to execute the method.
An embodiment of the present invention provides a computer device, including: a memory for storing program instructions; and the processor is used for calling the program instructions stored in the memory and executing the method according to the obtained program.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows an architecture diagram of a communication system to which an embodiment of the invention is applied. As shown in fig. 1, the system architecture may include an Access Point (AP) and a terminal. Fig. 1 illustrates an example in which the communication system includes an AP101, an AP102, an AP103, an AP104, an AP105, and a terminal 106, and when a wireless fidelity (WiFi) connection on the terminal 106 is set to be on, the terminal 106 may monitor attribute information of the AP101, the AP102, the AP103, the AP104, and the AP 105.
The AP is a HUB in a conventional wired network, and is also the most commonly used device for constructing a small wireless lan. The indoor coverage of an AP is generally 30m to 100m, and for a small-range wireless local area network such as a home or an office, wireless access to all computers can be realized by only one wireless AP.
A terminal may communicate with one or more core networks via a Radio Access Network (RAN), and the terminal may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, smart phones, smart watches, tablet computers, or other processing devices connected to a wireless modem, and the like.
Based on the above, fig. 2 exemplarily shows a flow chart of a navigation method provided by the embodiment of the present invention. In this embodiment, at least one AP may be at least one of AP101, AP102, AP103, AP104, and AP105 in fig. 1, and the method may be performed by terminal 106 in fig. 1. As shown in fig. 2, the method comprises the steps of:
step 201, detecting first attribute information of at least one access point AP.
In the embodiment of the invention, when the terminal sets the WiFi connection to be on, the first attribute information of the AP in a certain range can be automatically detected, and the first attribute information can be the attribute information of the AP detected by the terminal at the current position. Alternatively, the terminal may detect the first attribute information of the AP in real time.
Step 202, determining a target AP according to first attribute information of at least one AP; wherein the target AP is the destination AP.
In a possible implementation manner, the target AP may be determined by the terminal automatically or manually selected by the user as needed.
And step 203, navigating according to the current position information of the terminal and the first attribute information of the target AP.
In a possible implementation, the current position information that the terminal can determine through the built-in gyroscope and compass can be to establish a simple two-dimensional coordinate information, such as the current position information of the user is (x)1,y1) And (4) coordinates. Therefore, the positioning is realized without a GPS, and the electric quantity and the mobile data flow of the terminal can be further saved.
In step 201, first attribute information of at least one access point AP is detected, where the first attribute information includes a name and/or a first signal strength of the AP and/or an encryption scheme of the AP.
In one possible implementation, the terminal may determine the target AP according to the name of the detected AP. Optionally, according to naming habits of the AP, when most shopping malls, restaurants, entertainment venues and the like deploy the AP, names of the AP, such as XX restaurant, YY cafe, ZZ clothing shop and the like, are defined according to names of companies, and after detecting the names of the AP, the terminal can match the names of the AP with preset keywords and classify the names; determining the AP corresponding to the name of the at least one AP matched with the preset keyword as a quasi-target AP, wherein the quasi-target AP comprises at least one AP. For example, if the preset keyword is a restaurant, the names of the APs matched with the restaurant include XX restaurant and YY cafe, and the names of the XX restaurant and the YY cafe AP are classified into one category. Fig. 3 is a schematic structural diagram of a primary interface of a terminal to which an embodiment of the present invention is applied. As shown in fig. 3, the categorized type names may be displayed on a primary interface of the terminal, and the type names include dining, entertainment, clothing, and the like. Determining a target type from a primary interface of a terminal, clicking the target type, and entering a secondary interface of the terminal, where fig. 3a shows a structural schematic diagram of the secondary interface of the terminal to which an embodiment of the present invention is applied, and as shown in fig. 3a, the secondary interface may show a name of at least one quasi-target AP included in the type, such as an AP, for example, the name of the AP1Name of, AP2Name of and APnAnd the target AP is determined from the at least one quasi-target AP according to the name of the quasi-target AP. Therefore, through the display of the primary interface and the secondary interface, the user does not need to sequentially see the names of the APs on the terminal interface to determine the target AP, and the target AP can be determined more conveniently/quickly.
One possible implementation manner, in which one of the quasi-target APs is determined as the target AP, may be: the terminal determines the first signal strength of each detected AP in the quasi-target APs; and determining the AP with the first signal strength meeting the first threshold value in the quasi-target APs as the target AP. In an alternative embodiment, the closer to the AP of the terminal, the stronger the signal of the terminal detecting the AP, and in conjunction with fig. 1, the signal strength of the terminal detecting the AP101 is greater than the signal strength of the AP 102. Therefore, the distance of the terminal from the AP can be determined according to the magnitude of the signal strength detected by the terminal. Generally, the signal strength of the AP detected by the terminal ranges from-40 dbm to-90 dbm, in order to improve the convenience of manual selection by the user, the signal strength of the AP detected by the terminal and the distance relationship between the terminal and the AP may be displayed on a secondary interface of the terminal, fig. 3b shows a structural diagram of the secondary interface of another terminal to which the embodiment of the present invention is applied, as shown in fig. 3b, the secondary interface may display the name of the quasi-target AP, the first signal strength, and the distance between the current location and the AP, where the name of the quasi-target AP in fig. 3b may include the AP1Name of, AP1First signal strength and distance AP1Distance of, AP2Name of, AP2First signal strength and distance AP2Distance of, AP3Name of, AP3First signal strength and distance AP3The distance of (c).
Further, in order to show the signal strength of the AP detected by the terminal in a more concise and intuitive manner, the signal strength of the AP detected by the terminal may be represented by a signal lattice number, which may be the same as the determination method of the signal lattice number of the WiFi of the terminal, and may be determined by: signal grid number (current signal strength-minimum signal strength) output range/input range; where the output range is 4 and the input range is 45. For example, when the signal lattice number is the minimum value of 0, the signal strength is less than the minimum signal strength of-100 dbm; when the number of signal lattices is 4 at the maximum, the signal intensity is larger than the maximum signal intensity of-55 dbm. Table 1 shows a relationship between the number of signal lattices and the distance to which an embodiment of the present invention is applied.
Table 1 shows a relationship between the number of signal grids and the distance
Number of signal grids
|
Distance between two adjacent plates
|
0
|
Greater than or equal to 45 meters
|
1
|
30 to 40 meters
|
2
|
20 to 30m
|
3
|
10 to 20 m
|
4
|
0 to 10 m |
In the embodiment of the invention, in order to improve the accuracy of determining the target AP, the target AP may be determined according to the name of the AP detected by the terminal, the first signal strength, and the encryption mode of the AP. The encryption method of the AP may also be referred to as an authentication method or a security type of the AP. Optionally, the encryption mode of the AP is WiFi (wireless fidelity-Protected Access-shared Key, WPA-PSK for short) which is generally deployed by an individual or a home user and protects a wireless computer network security system, the encryption mode of the AP is WiFi which is generally deployed by a small group or a company, the encryption mode of the AP is Extensible Authentication Protocol (EAP), and is generally public WiFi which is deployed by an operator, and the like, that is, how large the size of the AP is can be determined according to the encryption mode of the AP, and the size can be displayed to the user for selection.
Fig. 3c shows a schematic structural diagram of a secondary interface of another terminal to which an embodiment of the present invention is applied, and as shown in fig. 3c, the secondary interface may show a name of a quasi-target AP, a first signal strength, a distance between a current location and the AP, and an AP size, where the name of the quasi-target AP in fig. 3c may include the AP1Name of, AP1First signal strength, distance AP1Distance and AP1Encryption system of, AP2Name of, AP2First signal strength, distance AP2Distance and AP2Encryption system of, AP3Name of, AP3First signal strength, distance AP3Distance and AP3The encryption method of (1).
In the embodiment of the present invention, after the target AP is determined, in a possible implementation manner, when the terminal moves from the current location to the next location, the second signal strength of the target AP is determined, and if the second signal strength is greater than the first signal strength, forward movement is indicated. If the second signal strength is not greater than the first signal strength, movement in the opposite direction is indicated. For example, the determined target AP is XX restaurant, the distance between the current location and XX restaurant can be seen, the user can move to the next location along a certain direction, the second signal strength of the target AP is determined, and if the second signal strength is greater than the first signal strength, forward movement or approach is indicated. If the second signal strength is determined not to be greater than the first signal strength, then movement in the opposite direction is indicated or the approach is indicated, or some APs closer to the target AP selected by the user are shown in that direction.
From the above, it can be seen that: in the embodiment of the invention, by detecting the first attribute information of at least one AP, the first attribute information of the AP is detected without consuming mobile data traffic, the target AP is determined according to the first attribute information of the AP, and then navigation is performed according to the first attribute information of the target AP and the current position of the terminal. Therefore, navigation can be realized without moving data flow, and user experience can be improved.
Based on the same technical concept, the embodiment of the invention also provides a navigation device which can execute the method embodiment. Fig. 4 is a schematic structural diagram of a navigation device according to an embodiment of the present invention, and as shown in fig. 4, the navigation device 400 includes a detection unit 401 and a processing unit 402. Wherein:
a detecting unit, configured to detect first attribute information of at least one access point AP; the processing unit is used for determining a target AP according to the first attribute information of the at least one AP; wherein the target AP is a destination AP; and navigating according to the current position information of the terminal and the first attribute information of the target AP.
In a possible embodiment, the attribute information includes a name of the AP; the processing unit is configured to: determining an AP corresponding to the name of the at least one AP matched with a preset keyword as a quasi-target AP, wherein the quasi-target AP comprises at least one AP; determining one of the quasi-target APs as the target AP.
In a possible embodiment, the first attribute information further includes a first signal strength; the processing unit is configured to: determining a first signal strength for each of the quasi-target APs; determining an AP of the quasi-target APs whose first signal strength meets a first threshold as the target AP; and when the terminal moves from the current position to the next position, determining the second signal strength of the target AP, and if the second signal strength is greater than the first signal strength, indicating to move forwards.
In a possible implementation manner, the attribute information further includes an encryption manner of the AP; the processing unit is configured to: and determining the AP with the first signal strength meeting a first threshold and the size meeting a second threshold as the target AP.
In one possible embodiment, the current position information is determined by a gyroscope and a compass built in the terminal.
From the above, it can be seen that: in the embodiment of the invention, by detecting the first attribute information of at least one AP, the first attribute information of the AP is detected without consuming mobile data traffic, the target AP is determined according to the first attribute information of the AP, and then navigation is performed according to the first attribute information of the target AP and the current position of the terminal. Therefore, navigation can be realized without moving data flow, and user experience can be improved.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware or any combination thereof, and when the implementation is realized by a software program, all or part of the implementation may be realized in the form of a computer program product. The computer program product includes one or more instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The instructions may be stored in a computer storage medium or transmitted from one computer storage medium to another, e.g., from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optics, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer storage media may be any available media that can be accessed by a computer or a data storage device, such as a server, data center, etc., that incorporates one or more available media. The usable medium may be a magnetic medium (e.g., a flexible Disk, a hard Disk, a magnetic tape, a magneto-optical Disk (MO), etc.), an optical medium (e.g., a CD, a DVD, a BD, an HVD, etc.), or a semiconductor medium (e.g., a ROM, an EPROM, an EEPROM, a nonvolatile memory (NAND FLASH), a Solid State Disk (SSD)), etc. As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by instructions. These instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.