CN111836360A - Positioning method and system based on WiFi - Google Patents

Positioning method and system based on WiFi Download PDF

Info

Publication number
CN111836360A
CN111836360A CN202010730253.XA CN202010730253A CN111836360A CN 111836360 A CN111836360 A CN 111836360A CN 202010730253 A CN202010730253 A CN 202010730253A CN 111836360 A CN111836360 A CN 111836360A
Authority
CN
China
Prior art keywords
intelligent terminal
mobile intelligent
wifi
module
micro
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010730253.XA
Other languages
Chinese (zh)
Other versions
CN111836360B (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.)
Haikou Yiyou Network Technology Co ltd
Original Assignee
Haikou Yiyou Network Technology 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 Haikou Yiyou Network Technology Co ltd filed Critical Haikou Yiyou Network Technology Co ltd
Priority to CN202010730253.XA priority Critical patent/CN111836360B/en
Publication of CN111836360A publication Critical patent/CN111836360A/en
Application granted granted Critical
Publication of CN111836360B publication Critical patent/CN111836360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The invention provides a positioning method and a system based on WiFi, wherein the method comprises the following steps: when the mobile intelligent terminal is in wireless connection with the WiFi positioning tag for the first time, a client running on the mobile intelligent terminal extracts the micro-service module from the micro-service container and deploys the micro-service module to the WiFi positioning tag, the WiFi positioning tag deploys and runs the micro-service module to initialize, and the WiFi positioning tag is arranged on a positioning target; when the WiFi positioning tag is connected to the transfer equipment, the micro-service module acquires IP address data of the transfer equipment, the IP address data of the transfer equipment is sent to the mobile intelligent terminal through the transfer equipment, and the client processes the IP address data to acquire coarse positioning data; when the WiFi positioning tag is connected to a third-party mobile intelligent terminal, the micro-service module executes a preset calculation task to obtain third-party positioning data, the third-party positioning data is sent to the mobile intelligent terminal through a client of the third-party mobile intelligent terminal, and the client processes the third-party positioning data to obtain fine positioning data.

Description

Positioning method and system based on WiFi
Technical Field
The invention relates to the technical field of positioning systems, in particular to a positioning method and a positioning system based on WiFi.
Background
The GPS satellite or the Beidou satellite cannot provide an accurate positioning function due to the signal coverage problem when indoor positioning is carried out, related personnel develop WiFi labels to realize positioning of people or objects in an environment that indoor or other positioning satellite signals cannot cover, a positioning system realized based on the WiFi labels in the prior art generally needs to be matched with specific signal receiving and transmitting equipment to carry out signal transfer, the actual positions of the WiFi labels relative to the signal receiving and transmitting equipment are judged through received signal strength indication of the WiFi labels connected with a plurality of signal receiving and transmitting equipment, the system generally can only position the WiFi labels in a small range, and a background system is required to be built to process data through running a related positioning algorithm so as to accurately position the WiFi labels, and the cost is high.
Disclosure of Invention
It is an object of the present invention to provide a WiFi-based positioning system that overcomes or at least partially solves the above mentioned problems of the prior art.
The first aspect of the present invention provides a positioning method based on WiFi, including the following steps:
when the mobile intelligent terminal is in wireless connection with the WiFi positioning tag for the first time, a client running on the mobile intelligent terminal extracts the micro-service module from the micro-service container and deploys the micro-service module to the WiFi positioning tag, the WiFi positioning tag deploys and runs the micro-service module to initialize, and the WiFi positioning tag is arranged on a positioning target;
when the WiFi positioning tag cannot be connected to the mobile intelligent terminal, trying to connect surrounding connectable equipment, wherein the connectable equipment comprises transfer equipment and a third-party mobile intelligent terminal, and a client is installed on the third-party mobile intelligent terminal;
when the WiFi positioning tag is connected to the transfer equipment, the micro-service module acquires IP address data of the transfer equipment, the IP address data of the transfer equipment is sent to the mobile intelligent terminal through the transfer equipment, and the client processes the IP address data to acquire coarse positioning data;
when the WiFi positioning tag is connected to a third-party mobile intelligent terminal, the micro-service module executes a preset calculation task to obtain third-party positioning data, the third-party positioning data is sent to the mobile intelligent terminal through a client of the third-party mobile intelligent terminal, and the client processes the third-party positioning data to obtain fine positioning data.
Further, before the client extracts the micro service module from the micro service container and deploys the micro service module to the WiFi positioning tag, the client registers the pre-extracted micro service module, where registering the pre-extracted micro service module specifically includes:
acquiring characteristic information of the mobile intelligent terminal, performing function operation on the characteristic information of the mobile intelligent terminal to acquire a first character string, and writing the first character string into the micro-service module for storage;
setting the preset calculation task content of the micro-service module according to the acquired characteristic information of the mobile intelligent terminal;
and generating unique identification information of the pre-extracted micro service module and respectively storing the unique identification information to the micro service module and the micro service container.
Further, the WiFi positioning tag attempting to connect to the surrounding connectable devices specifically includes:
respectively acquiring basic information of all connectable devices, wherein the basic information comprises device information and network information;
respectively calculating connection utility values of different connectable devices according to the basic information and the preset weight;
and performing descending sorting on the connectable devices according to the connection utility value calculation result, and sequentially connecting the sorted connectable devices.
Further, when the WiFi positioning tag is connected to the third party mobile intelligent terminal, the micro service module executes a preset calculation task, specifically including:
acquiring corresponding mobile intelligent terminal characteristic information according to the content of a preset calculation task, performing function operation on the mobile intelligent terminal characteristic information to acquire a second character string, and comparing the first character string with the second character string to acquire a first result;
the unique identification information is sent to the client, and the client compares the received unique identification information with the unique identification information stored in the micro service container to obtain a second result;
judging whether the connected mobile intelligent terminal is a third-party mobile intelligent terminal or not according to the first result and the second result, if so, acquiring third-party positioning data, and otherwise, performing accurate positioning;
when the WiFi positioning tag is connected to the mobile intelligent terminal, the micro-service module unloads the content of the preset calculation task and transmits the content to the client of the mobile intelligent terminal for calculation, and a task result is obtained after the client finishes the preset calculation task.
Further, when the connected mobile intelligent terminal is judged to be a non-third-party mobile intelligent terminal according to the first result and the second result, accurate positioning is carried out, and the method specifically comprises the following steps:
the client calculates the distance between the WiFi positioning tag and the mobile intelligent terminal according to the connecting signal strength value of the WiFi positioning tag and the mobile intelligent terminal;
the client side calculates the direction of the WiFi positioning label relative to the mobile intelligent terminal according to the moving distance and the direction of the mobile intelligent terminal and the signal strength change value between the WiFi positioning label and the mobile intelligent terminal, and guides a user by displaying distance and direction information through a visual interface.
The invention provides a WiFi-based positioning system, which comprises a mobile intelligent terminal, a third-party mobile intelligent terminal and a WiFi positioning tag,
the mobile intelligent terminal and the third-party mobile intelligent terminal are provided with clients in operation, and each client comprises a deployment module and a service module, wherein the deployment module is used for extracting the micro-service module from the micro-service container and deploying the micro-service module to the WiFi positioning label when the mobile intelligent terminal is in wireless connection with the WiFi positioning label for the first time;
the coarse positioning module is used for processing the IP address data to obtain coarse positioning data;
the fine positioning module is used for processing the third party positioning data to obtain fine positioning data,
the micro-service module comprises a first acquisition module, a second acquisition module and a mobile intelligent terminal, wherein the first acquisition module is used for acquiring the IP address data of the transfer equipment when the WiFi positioning tag is connected to the transfer equipment and sending the IP address data of the transfer equipment to the mobile intelligent terminal through the transfer equipment;
and the execution module is used for executing a preset calculation task when the WiFi positioning tag is connected to the third-party mobile intelligent terminal, acquiring third-party positioning data, and sending the third-party positioning data to the mobile intelligent terminal through the third-party mobile intelligent terminal client.
Further, the client further includes a registration module for registering the pre-extracted micro service module, where the registration module specifically includes:
the second acquisition module is used for acquiring the characteristic information of the mobile intelligent terminal, performing function operation on the characteristic information of the mobile intelligent terminal to acquire a first character string, and writing the first character string into the micro-service module for storage;
the task setting module is used for setting the preset calculation task content of the micro-service module according to the acquired characteristic information of the mobile intelligent terminal;
and the generating module is used for generating the unique identification information of the pre-extracted micro service module and respectively storing the unique identification information to the micro service module and the micro service container.
Further, the WiFi positioning tag further includes:
a third obtaining module, configured to obtain basic information of all connectable devices, where the basic information includes device information and network information;
the calculation module is used for calculating the connection utility values of different connectable devices according to the basic information and the preset weight;
and the connection module is used for carrying out descending sorting on the connectable equipment according to the connection utility value calculation result and sequentially connecting the sorted connectable equipment.
The execution module further comprises a first comparison module, which is used for acquiring corresponding mobile intelligent terminal characteristic information according to the content of a preset calculation task, performing function operation on the mobile intelligent terminal characteristic information to acquire a second character string, and comparing the first character string with the second character string to acquire a first result; the sending submodule is used for sending the unique identification information to the client;
the client further comprises a second comparison module for comparing the received unique identification information with the unique identification information stored in the micro service container to obtain a second result, and a judgment module for judging whether the connected mobile intelligent terminal is a third-party mobile intelligent terminal according to the first result and the second result, if so, acquiring third-party positioning data, otherwise, performing accurate positioning;
the micro-service module further comprises an unloading submodule for unloading the preset calculation task content processed by the execution module when the WiFi positioning tag is connected to the mobile intelligent terminal and transmitting the content to the client of the mobile intelligent terminal for calculation, and acquiring a task result after the client finishes the preset calculation task.
Further, the determining module specifically includes:
the first calculation module is used for calculating the distance between the WiFi positioning tag and the mobile intelligent terminal according to the connecting signal strength value of the WiFi positioning tag and the mobile intelligent terminal;
the second calculation module is used for calculating the direction of the WiFi positioning tag relative to the mobile intelligent terminal according to the moving distance and the direction of the mobile intelligent terminal and the signal intensity change value between the WiFi positioning tag and the mobile intelligent terminal;
and the visualization module is used for displaying distance and direction information through a visualization interface to guide a user.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a positioning method and a system based on WiFi, when a user uses a mobile intelligent terminal to perform wireless connection with a WiFi positioning tag for the first time, a micro-service module is deployed to the mobile intelligent terminal and initialized, when a positioning target provided with the WiFi positioning tag is far away from the mobile intelligent terminal, the WiFi positioning tag tries to connect with surrounding connectable equipment, when the WiFi positioning tag is connected with transfer equipment, IP address data of the WiFi positioning tag is obtained and sent to the mobile intelligent terminal used by the user through the transfer equipment, the IP address data is processed by a client to obtain coarse positioning data, the user can obtain the approximate position of the WiFi positioning tag according to the coarse positioning data, when the WiFi positioning tag is connected with a third-party mobile intelligent terminal, the micro-service module executes a preset calculation task to obtain third-party positioning data, and the third-party mobile intelligent terminal sends the third-party mobile intelligent terminal to the mobile intelligent terminal, the client processes the third party positioning data to obtain the fine positioning data, so that positioning is realized only through connection of the WiFi positioning tag and connectable equipment existing in the surrounding environment, a background system does not need to be built through specific signal receiving and transmitting equipment, the positioning range is larger, and the system building cost is lower.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only preferred embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive efforts.
Fig. 1 is a schematic overall structure diagram of a WiFi-based positioning system according to an embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, the illustrated embodiments are provided to illustrate the invention and not to limit the scope of the invention.
The invention provides a positioning method based on WiFi, which comprises the following steps:
when the mobile intelligent terminal is in wireless connection with the WiFi positioning tag for the first time, the client running on the mobile intelligent terminal extracts the micro-service module from the micro-service container and deploys the WiFi positioning tag, the WiFi positioning tag deploys and runs the micro-service module to initialize, the WiFi positioning tag is arranged on a positioning target, and the positioning target can be a person or an object.
In the above steps, the mobile intelligent terminal may be an intelligent mobile phone or a tablet computer, and after the user sets the WiFi positioning tag on the positioning target, the user establishes a wireless connection with the WiFi positioning tag through the mobile intelligent terminal of the user, so as to deploy the micro service module, thereby realizing the binding between the mobile intelligent terminal and the WiFi positioning tag. After the deployment of the micro-service module is completed, a user can log in the client through an account to check the WiFi positioning label information and the corresponding positioning target information after the deployment of the micro-service module is completed. The WiFi positioning tag comprises a shell, wherein a PCB is arranged in the shell, and at least a CPU, a WiFi communication module, a battery and a memory are integrated on the PCB. As can be understood by those skilled in the art, the microservice module can be implemented by adopting a corresponding module architecture according to actual needs.
When the WiFi positioning tag cannot be connected to the mobile intelligent terminal, the connection of surrounding connectable equipment is attempted, the connectable equipment comprises transfer equipment and a third-party mobile intelligent terminal, and a client is also installed on the third-party mobile intelligent terminal. And the user corresponding to the third-party mobile intelligent terminal is different from the user corresponding to the mobile intelligent terminal deploying the micro-service module to the WiFi positioning tag. The transit device can be a routing and hotspot device deployed in various places.
When the WiFi positioning tag is connected to the transfer equipment, the micro-service module acquires IP address data of the transfer equipment, the IP address data of the transfer equipment is sent to the mobile intelligent terminal through the transfer equipment, after the mobile intelligent terminal receives the IP address data of the transfer equipment, the IP address data are processed by the client, rough positioning data corresponding to the IP address data are acquired, and a user corresponding to the mobile intelligent terminal can determine the approximate position of the WiFi positioning tag according to the rough positioning data.
When the WiFi positioning tag is connected to a third-party mobile intelligent terminal, the micro-service module executes a preset calculation task to obtain third-party positioning data, the third-party positioning data is obtained by the third-party mobile intelligent terminal through positioning of the third-party mobile intelligent terminal based on a self-contained positioning function, the third-party positioning data is sent to the mobile intelligent terminal through a client of the third-party mobile intelligent terminal, the client processes the third-party positioning data to obtain fine positioning data, and therefore large-range positioning of the WiFi positioning tag is achieved without the help of specific signal transfer transceiver equipment and without the need of building a background server, and the position of a positioning target can be determined even indoors or under the condition that other positioning satellite signals cannot cover the positioning satellite signals.
As an example, before the client extracts the micro service module from the micro service container and deploys the micro service module to the WiFi positioning tag, the client registers the pre-extracted micro service module, where registering the pre-extracted micro service module specifically includes:
the method comprises the steps of obtaining characteristic information of the mobile intelligent terminal, wherein the characteristic information is unique identification information of the mobile intelligent terminal or a user corresponding to the mobile intelligent terminal, such as an IMEI (international mobile equipment identity) serial number, an SN (serial number) number, a user account number and the like, performing function operation on the characteristic information of the mobile intelligent terminal to obtain a first character string, writing the first character string into a micro-service module and storing the first character string. The technical personnel in the field know that the function operation of the mobile intelligent terminal characteristic information to obtain the corresponding character string can be realized by various functions, and the function can be realized by selecting corresponding algorithms according to the requirements in different construction modes of the functions. The contents of the first character strings obtained after the function operation of different mobile intelligent terminal characteristic information are different, but the lengths of the first character strings are the same. In some embodiments, a plurality of items of different types of mobile intelligent terminal feature information may be acquired, the plurality of items of mobile intelligent terminal feature information may be subjected to splicing or splitting recombination processing according to a preset rule, and the processed feature information may be subjected to function operation to acquire the first character string.
And setting the preset calculation task content of the micro-service module according to the acquired characteristic information of the mobile intelligent terminal. The preset calculation task content is used for describing data required to be acquired by the preset calculation task and operation content required to be carried out on the data.
And generating unique identification information of the pre-extracted micro service module and respectively storing the unique identification information to the micro service module and the micro service container.
As a preferred example, the WiFi positioning tag attempts to connect to a surrounding connectable device, specifically including:
and respectively acquiring basic information of all connectable devices, wherein the basic information comprises device information and network information. The connectable devices are all connectable devices within the connection range of the WiFi positioning tag. The device information is used for describing that the connectable device is a transfer device, a mobile intelligent terminal or other devices; the network information is used for describing the current network condition of the corresponding connectable device, including whether to connect with an external network, network speed information and the like.
And respectively calculating the connection utility values of different connectable devices according to the basic information and the preset weight.
In this step, the micro service module calculates connection utility values of different connectable devices according to the acquired device information and network information of each connectable device and preset weights corresponding to each basic information. For example, the preset weight of the mobile intelligent terminal is higher than that of the transit device, and the final connection utility value of the device with the higher network speed is higher for the connectable devices of the same type.
And performing descending sorting on the connectable devices according to the connection utility value calculation result, and sequentially connecting the sorted connectable devices.
According to the method, the connectable devices are sorted in a descending manner according to the connection utility value, so that the connectable devices with higher connection utility values are arranged in the front, and the higher connection utility values can reflect that the corresponding connectable devices have better positioning capability or a better network, so that the WiFi positioning tag can be preferentially connected with the connectable devices capable of positioning the position of the connectable devices more quickly and accurately to send positioning data to the mobile intelligent terminal of the corresponding user.
As an example, when the WiFi positioning tag is connected to the third party mobile intelligent terminal, the micro service module executes a preset computing task, which specifically includes:
and acquiring corresponding mobile intelligent terminal characteristic information according to the content of a preset calculation task, performing function operation on the mobile intelligent terminal characteristic information to acquire a second character string, and comparing the first character string with the second character string to acquire a first result.
And sending the unique identification information to the client, and comparing the received unique identification information with the unique identification information stored in the micro-service container by the client to obtain a second result.
And judging whether the connected mobile intelligent terminal is a third-party mobile intelligent terminal or not according to the first result and the second result, if so, acquiring third-party positioning data, and otherwise, carrying out accurate positioning.
Specifically, when the first result and/or the second result is that the comparison fails, it is indicated that the mobile intelligent terminal connected with the WiFi positioning tag is a third-party mobile intelligent terminal, and a client of the third-party mobile intelligent terminal acquires the current position positioning information of the third-party mobile intelligent terminal; when the first result and the second result are compared and pass, the fact that the mobile intelligent terminal connected with the WiFi positioning tag is the mobile intelligent terminal used by the user corresponding to the WiFi positioning tag is indicated, and accurate positioning is conducted.
When the WiFi positioning tag is connected to the mobile intelligent terminal, the micro-service module unloads the content of the preset calculation task and transmits the content to the client of the mobile intelligent terminal for calculation, and a task result is obtained after the client finishes the preset calculation task.
The mobile intelligent terminal can be a mobile intelligent terminal used by a user corresponding to the WiFi positioning tag, and can also be a third-party mobile intelligent terminal. When the micro-service module is connected to the mobile intelligent terminal, the preset calculation task is unloaded to the mobile intelligent terminal in a calculation unloading mode, and the client side calculates according to the content of the preset calculation task, so that the requirements on the hardware specification and performance of the WiFi positioning tag can be reduced, and the overall cost of the WiFi positioning tag is reduced.
When the mobile intelligent terminal connected with the WiFi positioning tag is judged to be a mobile intelligent terminal used by a user corresponding to the WiFi positioning tag instead of a third-party mobile intelligent terminal according to the first result and the second result, accurate positioning is carried out, and the method specifically comprises the following steps:
and the client calculates the distance between the WiFi positioning tag and the mobile intelligent terminal according to the connecting signal strength value of the WiFi positioning tag and the mobile intelligent terminal.
The client side calculates the direction of the WiFi positioning label relative to the mobile intelligent terminal according to the moving distance and the direction of the mobile intelligent terminal and the signal strength change value between the WiFi positioning label and the mobile intelligent terminal, and guides a user by displaying distance and direction information through a visual interface.
When a positioning target carrying a WiFi positioning tag is far away from a user, so that the WiFi positioning tag cannot be connected to the mobile intelligent terminal, the WiFi positioning tag periodically tries to connect with surrounding connectable equipment, if the WiFi positioning tag is connected to the transfer equipment, IP address information of the transfer equipment is acquired and sent to the mobile intelligent terminal, and a client analyzes the IP address information and acquires position information corresponding to the IP address information, so that the approximate area where the WiFi positioning tag is located is indicated for the user; when the WiFi positioning tag is connected to the third-party mobile intelligent terminal, more accurate positioning data can be directly obtained through a client of the third-party mobile intelligent terminal and sent to the mobile intelligent terminal, and the range of the position of the WiFi positioning tag can be further narrowed according to the positioning data because the connecting range of the WiFi positioning tag is limited; when the user reaches the position near the WiFi positioning tag and the WiFi positioning tag can be connected to the mobile intelligent terminal, the distance and the position of the WiFi positioning tag relative to the mobile intelligent terminal can be obtained in an accurate positioning mode, and therefore the user is helped to find a positioning target.
Based on the same inventive concept, another embodiment of the present invention provides a WiFi-based positioning system, where the system includes a mobile intelligent terminal 1, a third-party mobile intelligent terminal 2, a transit device 3, and a WiFi positioning tag 4.
The mobile intelligent terminal 1 and the third-party mobile intelligent terminal 2 are provided with clients in operation, and the clients comprise deployment modules which are used for extracting micro-service modules from micro-service containers and deploying the micro-service modules to the WiFi positioning tags 4 when the mobile intelligent terminal is in wireless connection with the WiFi positioning tags 4 for the first time.
And the coarse positioning module is used for processing the IP address data to obtain coarse positioning data.
And the fine positioning module is used for processing the third party positioning data to acquire fine positioning data.
The micro-service module comprises:
the first acquisition module is used for acquiring the IP address data of the transfer equipment 3 when the WiFi positioning tag 4 is connected to the transfer equipment 3 and sending the IP address data of the transfer equipment to the mobile intelligent terminal 1 through the transfer equipment 3;
and the execution module is used for executing a preset calculation task when the WiFi positioning tag is connected to the third-party mobile intelligent terminal 2, acquiring third-party positioning data, and sending the third-party positioning data to the mobile intelligent terminal 1 through the client of the third-party mobile intelligent terminal 2.
The client further includes a registration module for registering the pre-extracted micro service module, where the registration module specifically includes:
the second acquisition module is used for acquiring the characteristic information of the mobile intelligent terminal, performing function operation on the characteristic information of the mobile intelligent terminal to acquire a first character string, and writing the first character string into the micro-service module for storage;
the task setting module is used for setting the preset calculation task content of the micro-service module according to the acquired characteristic information of the mobile intelligent terminal;
and the generating module is used for generating the unique identification information of the pre-extracted micro service module and respectively storing the unique identification information to the micro service module and the micro service container.
The WiFi positioning tag 4 further includes:
a third obtaining module, configured to obtain basic information of all connectable devices, where the basic information includes device information and network information;
the calculation module is used for calculating the connection utility values of different connectable devices according to the basic information and the preset weight;
and the connection module is used for carrying out descending sorting on the connectable equipment according to the connection utility value calculation result and sequentially connecting the sorted connectable equipment.
The execution module further comprises a first comparison module, a second comparison module and a third comparison module, wherein the first comparison module is used for acquiring corresponding mobile intelligent terminal characteristic information according to the content of a preset calculation task, performing function operation on the mobile intelligent terminal characteristic information to acquire a second character string, and comparing the first character string with the second character string to acquire a first result; and the sending submodule is used for sending the unique identification information to the client.
The client further comprises a second comparison module for comparing the received unique identification information with the unique identification information stored in the micro service container to obtain a second result, and a judgment module for judging whether the connected mobile intelligent terminal is a third-party mobile intelligent terminal according to the first result and the second result, if so, obtaining third-party positioning data, otherwise, carrying out accurate positioning.
The micro-service module further comprises an unloading submodule, and the unloading submodule is used for unloading the preset calculation task content processed by the execution module when the WiFi positioning tag is connected to the mobile intelligent terminal 1, transmitting the content to the client side of the mobile intelligent terminal 1 for calculation, and acquiring a task result after the client side finishes the preset calculation task.
The judging module specifically comprises:
the first calculation module is used for calculating the distance between the WiFi positioning tag and the mobile intelligent terminal according to the connecting signal strength value of the WiFi positioning tag and the mobile intelligent terminal 1;
the second calculation module is used for calculating the direction of the WiFi positioning tag relative to the mobile intelligent terminal according to the moving distance and the direction of the mobile intelligent terminal 1 and the signal intensity change value between the WiFi positioning tag and the mobile intelligent terminal 1;
and the visualization module is used for displaying distance and direction information through a visualization interface to guide a user.
The system is configured to implement the foregoing embodiments, and the implementation principle and the technical effect thereof may refer to the foregoing method embodiments, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more special integrated circuits, or one or more microprocessors, or one or more field programmable gate arrays, or the like. For another example, when some of the above modules are implemented in the form of processing element dispatcher code, the processing element may be a general purpose processor, such as a central processing unit or other processor that can invoke the program code. For another example, the modules may be integrated together and implemented in a system on a chip.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A WiFi-based positioning method, characterized in that said method comprises the steps of:
when the mobile intelligent terminal is in wireless connection with the WiFi positioning tag for the first time, a client running on the mobile intelligent terminal extracts the micro-service module from the micro-service container and deploys the micro-service module to the WiFi positioning tag, the WiFi positioning tag deploys and runs the micro-service module to initialize, and the WiFi positioning tag is arranged on a positioning target;
when the WiFi positioning tag cannot be connected to the mobile intelligent terminal, trying to connect surrounding connectable equipment, wherein the connectable equipment comprises transfer equipment and a third-party mobile intelligent terminal, and a client is installed on the third-party mobile intelligent terminal;
when the WiFi positioning tag is connected to the transfer equipment, the micro-service module acquires IP address data of the transfer equipment, the IP address data of the transfer equipment is sent to the mobile intelligent terminal through the transfer equipment, and the client processes the IP address data to acquire coarse positioning data;
when the WiFi positioning tag is connected to a third-party mobile intelligent terminal, the micro-service module executes a preset calculation task to obtain third-party positioning data, the third-party positioning data is sent to the mobile intelligent terminal through a client of the third-party mobile intelligent terminal, and the client processes the third-party positioning data to obtain fine positioning data.
2. The WiFi-based positioning method according to claim 1, wherein before the client extracts a micro service module from a micro service container and deploys the micro service module to a WiFi positioning tag, the client registers the pre-extracted micro service module, and the registering the pre-extracted micro service module specifically includes:
acquiring characteristic information of the mobile intelligent terminal, performing function operation on the characteristic information of the mobile intelligent terminal to acquire a first character string, and writing the first character string into the micro-service module for storage;
setting the preset calculation task content of the micro-service module according to the acquired characteristic information of the mobile intelligent terminal;
and generating unique identification information of the pre-extracted micro service module and respectively storing the unique identification information to the micro service module and the micro service container.
3. The WiFi-based positioning method according to claim 2, wherein the WiFi positioning tag attempts to connect to the surrounding connectable devices, specifically comprising:
respectively acquiring basic information of all connectable devices, wherein the basic information comprises device information and network information;
respectively calculating connection utility values of different connectable devices according to the basic information and the preset weight;
and performing descending sorting on the connectable devices according to the connection utility value calculation result, and sequentially connecting the sorted connectable devices.
4. The WiFi-based positioning method according to claim 2, wherein when the WiFi positioning tag is connected to the third party mobile intelligent terminal, the micro service module performs a preset calculation task, specifically including:
acquiring corresponding mobile intelligent terminal characteristic information according to the content of a preset calculation task, performing function operation on the mobile intelligent terminal characteristic information to acquire a second character string, and comparing the first character string with the second character string to acquire a first result;
the unique identification information is sent to the client, and the client compares the received unique identification information with the unique identification information stored in the micro service container to obtain a second result;
judging whether the connected mobile intelligent terminal is a third-party mobile intelligent terminal or not according to the first result and the second result, if so, acquiring third-party positioning data, and otherwise, performing accurate positioning;
when the WiFi positioning tag is connected to the mobile intelligent terminal, the micro-service module unloads the content of the preset calculation task and transmits the content to the client of the mobile intelligent terminal for calculation, and a task result is obtained after the client finishes the preset calculation task.
5. The WiFi-based positioning method according to claim 4, wherein when it is determined that the connected mobile intelligent terminal is not a third party mobile intelligent terminal according to the first result and the second result, performing accurate positioning specifically includes:
the client calculates the distance between the WiFi positioning tag and the mobile intelligent terminal according to the connecting signal strength value of the WiFi positioning tag and the mobile intelligent terminal;
the client side calculates the direction of the WiFi positioning label relative to the mobile intelligent terminal according to the moving distance and the direction of the mobile intelligent terminal and the signal strength change value between the WiFi positioning label and the mobile intelligent terminal, and guides a user by displaying distance and direction information through a visual interface.
6. A WiFi-based positioning system is characterized by comprising a mobile intelligent terminal, a third-party mobile intelligent terminal and a WiFi positioning tag,
the mobile intelligent terminal and the third-party mobile intelligent terminal are provided with clients in operation, and each client comprises a deployment module and a service module, wherein the deployment module is used for extracting the micro-service module from the micro-service container and deploying the micro-service module to the WiFi positioning label when the mobile intelligent terminal is in wireless connection with the WiFi positioning label for the first time;
the coarse positioning module is used for processing the IP address data to obtain coarse positioning data;
the fine positioning module is used for processing the third party positioning data to obtain fine positioning data,
the micro-service module comprises a first acquisition module, a second acquisition module and a mobile intelligent terminal, wherein the first acquisition module is used for acquiring the IP address data of the transfer equipment when the WiFi positioning tag is connected to the transfer equipment and sending the IP address data of the transfer equipment to the mobile intelligent terminal through the transfer equipment;
and the execution module is used for executing a preset calculation task when the WiFi positioning tag is connected to the third-party mobile intelligent terminal, acquiring third-party positioning data, and sending the third-party positioning data to the mobile intelligent terminal through the third-party mobile intelligent terminal client.
7. The WiFi-based positioning system of claim 6, wherein the client further includes a registration module for registering the pre-fetched micro service module, the registration module specifically includes:
the second acquisition module is used for acquiring the characteristic information of the mobile intelligent terminal, performing function operation on the characteristic information of the mobile intelligent terminal to acquire a first character string, and writing the first character string into the micro-service module for storage;
the task setting module is used for setting the preset calculation task content of the micro-service module according to the acquired characteristic information of the mobile intelligent terminal;
and the generating module is used for generating the unique identification information of the pre-extracted micro service module and respectively storing the unique identification information to the micro service module and the micro service container.
8. The WiFi-based location system of claim 7, wherein said WiFi location tag further comprises:
a third obtaining module, configured to obtain basic information of all connectable devices, where the basic information includes device information and network information;
the calculation module is used for calculating the connection utility values of different connectable devices according to the basic information and the preset weight;
and the connection module is used for carrying out descending sorting on the connectable equipment according to the connection utility value calculation result and sequentially connecting the sorted connectable equipment.
9. The WiFi-based positioning system according to claim 7, wherein the execution module further comprises a first comparison module for obtaining corresponding mobile intelligent terminal characteristic information according to a preset calculation task content, performing function operation on the mobile intelligent terminal characteristic information to obtain a second character string, and comparing the first character string with the second character string to obtain a first result; the sending submodule is used for sending the unique identification information to the client;
the client further comprises a second comparison module for comparing the received unique identification information with the unique identification information stored in the micro service container to obtain a second result, and a judgment module for judging whether the connected mobile intelligent terminal is a third-party mobile intelligent terminal according to the first result and the second result, if so, acquiring third-party positioning data, otherwise, performing accurate positioning;
the micro-service module further comprises an unloading submodule for unloading the preset calculation task content processed by the execution module when the WiFi positioning tag is connected to the mobile intelligent terminal and transmitting the content to the client of the mobile intelligent terminal for calculation, and acquiring a task result after the client finishes the preset calculation task.
10. The WiFi-based positioning system of claim 9, wherein the determining module specifically includes:
the first calculation module is used for calculating the distance between the WiFi positioning tag and the mobile intelligent terminal according to the connecting signal strength value of the WiFi positioning tag and the mobile intelligent terminal;
the second calculation module is used for calculating the direction of the WiFi positioning tag relative to the mobile intelligent terminal according to the moving distance and the direction of the mobile intelligent terminal and the signal intensity change value between the WiFi positioning tag and the mobile intelligent terminal;
and the visualization module is used for displaying distance and direction information through a visualization interface to guide a user.
CN202010730253.XA 2020-07-27 2020-07-27 Positioning method and system based on WiFi Active CN111836360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010730253.XA CN111836360B (en) 2020-07-27 2020-07-27 Positioning method and system based on WiFi

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010730253.XA CN111836360B (en) 2020-07-27 2020-07-27 Positioning method and system based on WiFi

Publications (2)

Publication Number Publication Date
CN111836360A true CN111836360A (en) 2020-10-27
CN111836360B CN111836360B (en) 2022-07-19

Family

ID=72925558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010730253.XA Active CN111836360B (en) 2020-07-27 2020-07-27 Positioning method and system based on WiFi

Country Status (1)

Country Link
CN (1) CN111836360B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090273465A1 (en) * 2008-05-02 2009-11-05 Adi Shamir Room separation in a wlan based rtls and method therefor
CN102638761A (en) * 2012-04-24 2012-08-15 北京信息科技大学 WIFI (Wireless Fidelity) positioning method and positioning system thereof
CN103369671A (en) * 2013-07-16 2013-10-23 上海瑞涛信息技术有限公司 Close-range positioning system and method based on WIFI
CN103763678A (en) * 2014-01-27 2014-04-30 歌联科技(上海)有限公司 Method for achieving classification positioning by mobile monitoring terminal
CN104144491A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Method and system used for positioning WiFi terminal in real time
CN105699936A (en) * 2014-11-27 2016-06-22 青岛海尔智能技术研发有限公司 Smart home indoor positioning method
CN107071708A (en) * 2017-03-31 2017-08-18 湖南农业大学 Intelligent mobile terminal passive wireless signal acquisition and localization method
US20180132103A1 (en) * 2016-11-08 2018-05-10 International Business Machines Corporation Position and Authenticate Wi-Fi Users to Enhance Wi-Fi Security Control and Management
CN108318858A (en) * 2018-04-23 2018-07-24 梁贺明 A kind of system for monitoring the position of luggage
CN109163725A (en) * 2018-09-13 2019-01-08 上海船舶工艺研究所 A kind of ship cabin indoor locating system and localization method
CN110208742A (en) * 2019-06-21 2019-09-06 田继忠 One kind can be used for indoor positioning system and localization method based on BLS
CN110267342A (en) * 2019-05-09 2019-09-20 南京工程学院 Localization method based on WIFI under a kind of complex indoor scene

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090273465A1 (en) * 2008-05-02 2009-11-05 Adi Shamir Room separation in a wlan based rtls and method therefor
CN102638761A (en) * 2012-04-24 2012-08-15 北京信息科技大学 WIFI (Wireless Fidelity) positioning method and positioning system thereof
CN104144491A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Method and system used for positioning WiFi terminal in real time
CN103369671A (en) * 2013-07-16 2013-10-23 上海瑞涛信息技术有限公司 Close-range positioning system and method based on WIFI
CN103763678A (en) * 2014-01-27 2014-04-30 歌联科技(上海)有限公司 Method for achieving classification positioning by mobile monitoring terminal
CN105699936A (en) * 2014-11-27 2016-06-22 青岛海尔智能技术研发有限公司 Smart home indoor positioning method
US20180132103A1 (en) * 2016-11-08 2018-05-10 International Business Machines Corporation Position and Authenticate Wi-Fi Users to Enhance Wi-Fi Security Control and Management
CN107071708A (en) * 2017-03-31 2017-08-18 湖南农业大学 Intelligent mobile terminal passive wireless signal acquisition and localization method
CN108318858A (en) * 2018-04-23 2018-07-24 梁贺明 A kind of system for monitoring the position of luggage
CN109163725A (en) * 2018-09-13 2019-01-08 上海船舶工艺研究所 A kind of ship cabin indoor locating system and localization method
CN110267342A (en) * 2019-05-09 2019-09-20 南京工程学院 Localization method based on WIFI under a kind of complex indoor scene
CN110208742A (en) * 2019-06-21 2019-09-06 田继忠 One kind can be used for indoor positioning system and localization method based on BLS

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
岳鸣等: "室内无线网络定位技术研究", 《电脑知识与技术》 *
张建平: "基于WiFi的室内定位系统设计和算法研究", 《自动化技术与应用》 *

Also Published As

Publication number Publication date
CN111836360B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN100417047C (en) Position information searching method and mobile phone system
CN111241856B (en) Method for selecting NFC analog card and watch
US8401567B2 (en) Method and system to locate an object
EP3417309A1 (en) Detecting motion based on repeated wireless transmissions
US6393271B1 (en) System and method for wireline based registration of wireless device
US6968181B2 (en) Technique of providing information to mobile devices
CN109068272B (en) Similar user identification method, device, equipment and readable storage medium
CN105897947A (en) Network access method and device for mobile terminal
CN111836360B (en) Positioning method and system based on WiFi
US20090036066A1 (en) Smart data dynamic communication module and message processing and transmitting method thereof
CN112601178B (en) Edge gateway positioning method and device, electronic equipment and storage medium
CN111866701A (en) Positioning method, communication system and positioning system
CN103473355A (en) Method, device and system for sharing application
CN104883735A (en) Accurate position judging method based on mobile internet
CN112911703B (en) WIFI detection method and system, WIFI probe device, monitoring device and storage medium
CN112218311B (en) Method for improving overall transmission rate of mesh network and related equipment
CN114005260A (en) Article omission prompting method and device, electronic equipment and readable storage medium
CN110493818B (en) Detection method and device of wireless fidelity module, storage medium and electronic device
CN113192065A (en) Processing method of power transmission line image, portable equipment and user terminal
EP4066588A1 (en) Wireless sensor network system, and device and method thereof
CN113613164A (en) Property positioning method, device and system based on Bluetooth and image
CN112543421A (en) Positioning method, device, equipment and storage medium
CN209992670U (en) System for a mobile device for determining the location of an object
CN114829965A (en) Position estimation method, position estimation program, fixed wireless device, and mobile wireless device
KR20060067413A (en) Method for advertising based on location using rfid and apparatus thereof

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