CN116817924A - Indoor positioning method and device based on intelligent gateway and electronic equipment - Google Patents
Indoor positioning method and device based on intelligent gateway and electronic equipment Download PDFInfo
- Publication number
- CN116817924A CN116817924A CN202310796086.2A CN202310796086A CN116817924A CN 116817924 A CN116817924 A CN 116817924A CN 202310796086 A CN202310796086 A CN 202310796086A CN 116817924 A CN116817924 A CN 116817924A
- Authority
- CN
- China
- Prior art keywords
- information
- preset
- positioning
- weight
- similarity value
- 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.)
- Pending
Links
Landscapes
- Telephonic Communication Services (AREA)
Abstract
An indoor positioning method and device based on an intelligent gateway and electronic equipment relate to the technical field of wireless communication. The method comprises the following steps: acquiring information to be positioned of first user equipment, wherein the information to be positioned comprises geomagnetic field information and WiFi information; matching preset position information corresponding to the WiFi information from a preset positioning database; the preset position information comprises preset geomagnetic field information and preset WiFi information; the first similarity value of the WiFi information and the preset WiFi information is larger than or equal to the preset similarity value; acquiring a second similarity value of geomagnetic field information and preset geomagnetic field information, and confirming a first weight and a second weight according to the first similarity value and the second similarity value; and determining first positioning information of the first user equipment according to the first weight and the second weight, and outputting the first positioning information to finish positioning of the first user equipment. By implementing the technical scheme provided by the application, the problem that accurate positioning cannot be performed only by WiFi indoor positioning in a complex indoor environment is solved.
Description
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to an indoor positioning method and apparatus based on an intelligent gateway, and an electronic device.
Background
Indoor positioning technology is becoming more and more widely used in many industries over the last years, and plays an increasingly important role in our daily lives.
In recent years, wiFi indoor positioning technology is one of positioning technologies that gradually lands on a commercial scene. The WiFi indoor positioning technology realizes the functions of data transmission and positioning through a WiFi base station and a wireless Access Point (Access Point) base station, and can meet the requirement of low-cost large-scale expansion. However, the accuracy of the WiFi indoor positioning technology is not accurate, and in a complex indoor environment, such as a large building, a multi-story building, or a labyrinth structure, the propagation of WiFi signals may be affected by multi-path fading, obstruction, signal reflection, and the like, resulting in a decrease in positioning accuracy.
Therefore, an indoor positioning method based on an intelligent gateway is needed to solve the problem that accurate positioning cannot be performed only by WiFi indoor positioning in a complex indoor environment.
Disclosure of Invention
The application provides an indoor positioning method and device based on an intelligent gateway and electronic equipment, which solve the problem that accurate positioning cannot be achieved only by WiFi indoor positioning in a complex indoor environment.
In a first aspect of the present application, an indoor positioning method based on an intelligent gateway is provided, where the method is applied to a server, and the method specifically includes the steps of: acquiring information to be positioned of first user equipment, wherein the information to be positioned comprises geomagnetic field information and WiFi information; matching preset position information corresponding to the WiFi information from a preset positioning database; the preset position information comprises preset geomagnetic field information and preset WiFi information; the first similarity value of the WiFi information and the preset WiFi information is larger than or equal to the preset similarity value; the preset positioning database comprises a plurality of preset position information, and the plurality of preset position information comprises preset position information; acquiring a second similarity value of geomagnetic field information and preset geomagnetic field information, and confirming a first weight and a second weight according to the first similarity value and the second similarity value; the first weight is a weight value of the WiFi information; the second weight is the weight value of geomagnetic information; and determining first positioning information of the first user equipment according to the first weight and the second weight, and outputting the first positioning information to finish positioning of the first user equipment.
Through adopting above-mentioned technical scheme, first obtain the location information of just slightly through wiFi indoor location method, later calculate the weight value of this location wiFi information and geomagnetic field information respectively according to the corresponding wiFi information of predetermineeing of this location information and predetermineeing the geomagnetic field information in the database, the weight value is high to the influence of positioning accuracy big, finally confirm user equipment's final position through wiFi information and geomagnetic field information and combine the weight value to the inaccurate problem of location among the wiFi indoor location technique has been solved.
Optionally, acquiring a region where the first user equipment is located; dividing the region into a plurality of preset region blocks, wherein the size of any one region block in the preset region blocks is a preset size; the plurality of preset area blocks comprise area blocks corresponding to the information to be positioned; selecting a preset point in the area block corresponding to the information to be positioned, wherein the position information of the preset point is preset position information.
According to the technical scheme, the area where the user equipment is located is divided into a plurality of small rectangular areas with the same size, each small rectangular area is called an area block, any one of the center or four endpoints of each area block is selected as a preset point of the area block, wiFi information and geomagnetic field information of the preset point are collected in advance and stored in a preset positioning database to serve as preset position information of the preset point, and then the same collection operation is carried out on each area block, so that all preset position information of the area where the user equipment is located can be obtained, and the preset positioning database is built according to the preset position information for reference in subsequent positioning.
Alternatively, according to formula W 1 =α/(α+β) and formula W 2 Calculating the first weight and the second weight, wherein W 1 For the first weight, W 2 And for the second weight, alpha is the first similarity value, and beta is the second similarity value.
By adopting the technical scheme, the similarity value of the WiFi information and the preset WiFi information, the similarity value of the geomagnetic field information and the preset geomagnetic field information obtained by the user equipment are calculated respectively, and then the magnitude relation is compared, so that the weight value of the WiFi information and the geomagnetic field information relative to the current position of the user equipment is determined, the weight value with large similarity value is large, and the accuracy of the weight value is large, so that the positioning accuracy can be improved through weight calculation.
Alternatively, according to the formula c=w 1 ×c 1 +W 2 ×c 2 Calculating positioning information, wherein c is first positioning information, c 1 Is geomagnetic field information, c 2 Is WiFi information.
According to the technical scheme, final positioning information of the user equipment is calculated through the weight value, the WiFi information and the geomagnetic field information acquired by the user equipment.
Optionally, if the first similarity value is smaller than the pre-similarity value, judging that the first user equipment is in the information blind area; and sending second positioning information to the first user equipment, wherein the second positioning information is the last positioning information of the information to be positioned.
By adopting the technical scheme, if all preset points in the preset positioning database have smaller similarity values with the to-be-positioned points, namely smaller than the preset similarity, the user equipment is judged not to be in the positioning area at the moment, and the user equipment is judged to be in a signal blind area at the moment; when the user is in the signal blind zone, the last effectively located position is sent to the user, thereby enabling the user to have a position reference.
Optionally, acquiring an area map of an area where the first user equipment is located; the first positioning information is displayed on the area map.
By using the technical scheme, the user equipment is provided with the regional map of the positioning region, and after the positioning of the user equipment is completed, the server displays the positioning information of the user equipment on the regional map for reference of the user.
Optionally, displaying third positioning information of the second user equipment on the area map; the second user equipment is user equipment in the same area as the first user equipment; the third positioning information is the positioning information of the second user equipment; and displaying the position relation of the first positioning information and the third positioning information on the regional map.
Through the technical scheme, the position relation between the user equipment in the same area can be determined, and the position relation is a distance relation, so that the connection between different user equipment is facilitated. It should be noted that, before the user device displays the reference position of the other user device, a request for requesting position information needs to be sent to the other user device, and when the response of the other user device is "permission", the reference position of the other user can be displayed on the user device.
In a second aspect of the present application, an indoor positioning device based on an intelligent gateway is provided, where the device is a server, and the device includes an acquisition module and an output module;
the acquisition module is used for acquiring information to be positioned of the user equipment, wherein the information to be positioned comprises geomagnetic field information and WiFi information; and matching preset position information corresponding to the WiFi information from a preset positioning database; the preset position information comprises preset geomagnetic field information and preset WiFi information; the first similarity value of the WiFi information and the preset WiFi information is larger than or equal to the preset similarity value; the preset positioning database comprises a plurality of preset position information, and the plurality of preset position information comprises preset position information; obtaining a second similarity value of geomagnetic field information and preset geomagnetic field information, and confirming a first weight and a second weight according to the first similarity value and the second similarity value; the first weight is the ratio of the first similarity value to the sum of the first similarity value and the second similarity value; the second weight is the ratio of the second similarity value to the sum of the first similarity value and the second similarity value.
And the output module is used for determining the first positioning information of the user equipment according to the first weight and the second weight and outputting the first positioning information to finish the user positioning.
Optionally, the acquiring module is configured to acquire a location area of the user equipment; dividing the region into a plurality of preset region blocks, wherein the size of any one region block in the plurality of preset region blocks is a preset size; the plurality of preset area blocks comprise area blocks corresponding to the information to be positioned; selecting a preset point in the area block corresponding to the information to be positioned, wherein the position information of the preset point is preset position information.
Optionally, the acquisition module is used for the rootAccording to formula W 1 =α/(α+β) and formula W 2 Calculating the first weight and the second weight, wherein W 1 For the first weight, W 2 And for the second weight, alpha is the first similarity value, and beta is the second similarity value.
Optionally, the output module is configured to output the output signal according to the formula c=w 1 ×c 1 +W 2 ×c 2 Calculating positioning information, wherein c is first positioning information, c 1 Is geomagnetic field information, c 2 Is WiFi information.
Optionally, the output module is configured to determine that the user equipment is in the information blind area if the first similarity value is smaller than the pre-similarity value; and sending second positioning information to the user equipment, wherein the second positioning information is the last positioning information of the information to be positioned.
Optionally, the acquiring module is configured to acquire an area map of a location where the user equipment is located; the positioning information is displayed on the area map.
Optionally, the output module is configured to display third positioning information of the second user equipment on the area map; the second user equipment is user equipment in the same area as the first user equipment; the third positioning information is positioning information obtained by the second user equipment through user positioning; and displaying the position relation of the first positioning information and the third positioning information on the regional map.
In a third aspect the application provides an electronic device comprising a processor, a memory for storing instructions, a user interface and a network interface for communicating to other devices, the processor being arranged to execute the instructions stored in the memory to cause the electronic device to perform a method as claimed in any one of the preceding claims.
In a fourth aspect of the application a computer readable storage medium is provided, which stores a computer program for execution by a processor of a method according to any of the preceding claims.
One or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
1. through the technical scheme, initial position information of a user is acquired through the WiFi indoor positioning method, then weight values of the position WiFi information and the geomagnetic field information are calculated according to preset WiFi information and preset geomagnetic field information corresponding to the position information in the database, the influence of the weight values on positioning accuracy is large, and finally the final position of the user equipment is determined through the WiFi information and the geomagnetic field information and by combining the weight values, so that the problem of inaccurate positioning in the WiFi indoor positioning technology is solved.
2. And respectively calculating the similarity value of the WiFi information and the preset WiFi information, and the similarity value of the geomagnetic field information and the preset geomagnetic field information obtained by the user equipment, and then comparing the magnitude relation of the similarity value and the preset geomagnetic field information, so that the weight value of the WiFi information and the geomagnetic field information for the current position of the user equipment is determined, the weight value with large similarity value is large, and the accuracy of the weight value is large, so that the accuracy of positioning can be improved through weight calculation.
3. If all preset points in the preset positioning database have smaller similarity values with the to-be-positioned points, namely smaller similarity values with the to-be-positioned points, judging that the user equipment is not in the positioning area at the moment, and judging that the user equipment is in a signal blind area at the moment; when the user is in the signal blind zone, the last effectively positioned position is sent to the user, so that the user can have a position reference.
Drawings
Fig. 1 is a schematic flow chart of an indoor positioning method based on an intelligent gateway according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an indoor positioning device based on an intelligent gateway according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals illustrate: 21. an acquisition module; 22. an output module; 300. an electronic device; 301. a processor; 302. a memory; 303. a user interface; 304. a network interface; 305. a communication bus.
Detailed Description
In order that those skilled in the art will better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments.
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
Before describing embodiments of the present application, some terms involved in the embodiments of the present application will be first defined and described.
In order to make the technical scheme of the present application better understood by those skilled in the art, the present application will be further described in detail with reference to the accompanying drawings.
Referring to fig. 1, a flow chart of an indoor positioning method based on an intelligent gateway according to an embodiment of the present application is shown, and the method is applied to a server, and the flow chart mainly includes the following steps: s101 to S104.
Step S101, obtaining information to be positioned of first user equipment, wherein the information to be positioned comprises geomagnetic field information and WiFi information.
Specifically, wiFi signal intensity information (RSSI) of the current position of the user equipment is obtained through a WiFi indoor positioning technology, geomagnetic field intensity information of the current position is obtained through the user equipment, and WiFi signal intensity and geomagnetic field intensity information are used as current information to be positioned of the user equipment.
In one possible implementation, step S101 further includes: acquiring a region where first user equipment is located; dividing the region into a plurality of preset region blocks, wherein the size of any one region block in the plurality of preset region blocks is a preset size; the plurality of preset area blocks comprise area blocks corresponding to the information to be positioned; selecting a preset point in the area block corresponding to the information to be positioned, wherein the position information of the preset point is preset position information.
Specifically, the area where the first user equipment is located is determined through each AP and a total router set in the area, and each area is provided with a plurality of APs (generally 3) and a total router; and dividing the area into grids with the same size, wherein the grids are the area blocks, a plane rectangular coordinate system is established by taking one endpoint of the area as an origin, the area is enabled to fall on a first quadrant of the plane rectangular coordinate system, the center of each grid or any one of four endpoints is selected as a preset point of the grid, wiFi information of the preset point and geomagnetic field information are acquired in advance and stored in a preset positioning database to be used as preset position information of the preset point.
For example, assuming that the area where the first user equipment is located is an underground garage (-1 building) of a large mall, the router 1, which is usually disposed in the underground garage, may obtain that the location where the first user equipment is located is the underground garage; assuming that the area where the first user equipment is located is a clothing mall (1 building), the router 2 arranged in the clothing mall can acquire that the position where the first user equipment is located is the clothing mall; taking an underground garage as an example, dividing a plan view of the underground garage into grids with the same size and 3 x 3m, taking O as an origin coordinate, taking a central point of each grid as a preset point, taking A as an example, pre-acquiring preset WiFi information and preset geomagnetic field intensity information of the position, binding the preset geomagnetic field information with the preset WiFi information, binding the preset WiFi information with the coordinates of the A point, taking the coordinates A-the preset WiFi information A-the preset geomagnetic field information A as preset position information of the preset point A, storing the preset position information of the preset point A into a preset position database, and using the same operation for the preset points of the rest grids to obtain all preset position information of the underground garage.
Step S102, matching preset position information corresponding to WiFi information from a preset positioning database; the preset position information comprises preset geomagnetic field information and preset WiFi information; the first similarity value of the WiFi information and the preset WiFi information is larger than or equal to the preset similarity value; the preset positioning database comprises a plurality of preset position information, and the plurality of preset position information comprises preset position information.
Specifically, the WiFi information is represented in a two-dimensional coordinate mode, preset coordinates corresponding to preset WiFi information with the highest two-dimensional coordinate similarity and similarity larger than a preset threshold value are calculated in a preset positioning database, and the preset coordinates are bound with geomagnetic field coordinates corresponding to preset geomagnetic field information.
For example, assuming that the coordinate of the WiFi information of the to-be-located position where the first ue is located at this time is the coordinate B, calculating the euclidean distance between the coordinate B and the coordinate corresponding to all the preset WiFi information in the preset location database, and if the euclidean distance is smaller, it is indicated that the point is closer to the point B, i.e. the similarity is greater, and the similarity must be greater than the preset similarity, and if it is determined that, after calculation, the point a is the most similar coordinate of the point in step S101, then the preset information of the point a in the preset database is determined: the coordinate A is preset with WiFi information A and geomagnetic field information A, and is preset position information corresponding to the point B.
In one possible implementation, step S102 further includes: if the first similarity value is smaller than the pre-similarity value, judging that the first user equipment is in the information blind area; and sending second positioning information to the first user equipment, wherein the second positioning information is the last positioning information of the information to be positioned.
Specifically, if in the preset positioning database, for the coordinate a, by calculation, it is unable to find that the euclidean distance between the preset point and the point a is smaller than the preset euclidean distance, that is, the similarity between the preset point and the point a is not greater than the preset similarity, it is determined that the first user equipment is not in the preset area, and at this time, the last valid positioning information is sent to the first user equipment.
For example, when the first ue is determined to be in the blind zone of the user (assumed to be in the position C), if the last valid positioning information of the first ue is assumed to be the position D, the positioning information of the position D is sent to the user.
In one possible implementation, step S102 further includes: acquiring an area map of an area where first user equipment is located; the first positioning information is displayed on the area map.
Specifically, a preset area map is displayed on the first user equipment according to the area where the user is located, and the position of the user is displayed on the map. It should be noted that, if the first user equipment is located in the area blind area, the map cannot display the positioning information of the first user equipment, and only the last valid positioning information of the first user equipment can be displayed. For example, when the first user equipment is at the position C, positioning information of the position D is displayed on the area map.
In a possible implementation manner, step S102 further includes displaying third positioning information of the second user device on the area map; the second user equipment is user equipment in the same area as the first user equipment; the third positioning information is the positioning information of the second user equipment; and displaying the position relation of the first positioning information and the third positioning information on the regional map.
Specifically, positioning information of the first user equipment and the second user equipment is obtained through positioning the first user equipment and the second user equipment, the position relationship between the first user equipment and the second user equipment is calculated through the positioning information of the first user equipment and the second user equipment, the position relationship is the distance position relationship between the user equipment, and the position relationship can be obtained through coordinate calculation of final positioning information.
For example, assume that the position coordinates of the user equipment 1 are (x 3 ,y 3 ) The position coordinates of the user equipment 2 are (x 4 ,y 4 ) The positional relationship between the user equipments 1, 2 is the positional distance, which can be determined byAnd displaying the position relationship on the regional map so as to facilitate different users to confirm the position relationship between other users and the users. It should be noted that, before the user device displays the reference position of the other user device, a request for requesting position information needs to be sent to the other user device, and when the response of the other user device is "permission", the reference position of the other user can be displayed on the user device.
Step S103, obtaining a second similarity value of geomagnetic field information and preset geomagnetic field information, and confirming a first weight and a second weight according to the first similarity value and the second similarity value; the first weight is a weight value of the WiFi information; the second weight is the weight value of geomagnetic information.
Specifically, after determining the preset WiFi information corresponding to the WiFi information in the preset positioning database in the information to be positioned, the preset geomagnetic field information corresponding to the geomagnetic field information of the information to be positioned can be determined according to the corresponding relation between the coordinate a and the preset WiFi information a and the preset geomagnetic field information a in the step S101.
For example, assume that the coordinates corresponding to the WiFi information at point a are (x 1 ,y 1 ) The coordinates corresponding to the geomagnetic field information are (x) 2 ,y 2 ) Obtaining preset position information of the point B corresponding to the point A through a WiFi indoor positioning technology, wherein coordinates corresponding to the preset WiFi information are (x) 0 ,y 0 ) If the coordinates corresponding to the preset geomagnetic field information are (x, y), calculating the similarity alpha between the WiFi information and the preset WiFi information and the similarity beta between the geomagnetic field information and the preset geomagnetic field information respectively, wherein And calculating weight values of the WiFi information and the geomagnetic information through alpha and beta respectively.
In one possible implementation, step S103 further includes: according to formula W 1 =α/(α+β) and formula W 2 Calculating the first weight and the second weight, wherein W 1 For the first weight, W 2 And for the second weight, alpha is the first similarity value, and beta is the second similarity value.
Specifically, the similarity value of the WiFi information and the preset WiFi information, and the similarity value of the geomagnetic field information and the preset geomagnetic field information obtained by the user equipment are calculated respectively, and then the magnitude relation is compared, so that the weight value of the WiFi information and the geomagnetic field information relative to the current position of the user equipment is determined, the weight value with large similarity value is large, and the accuracy of the weight value is large, so that the accuracy of positioning can be improved through weight calculation.
Step S104, determining first positioning information of the first user equipment according to the first weight and the second weight, and outputting the first positioning information to finish positioning of the first user equipment.
In one possible implementation, step S104 further includes: according to formula c=w 1 ×c 1 +W 2 ×c 2 Calculating positioning information, wherein c is first positioning information, c 1 Is geomagnetic field information, c 2 Is WiFi information.
Specifically, final positioning information of the user equipment is calculated through the weight value, wiFi information and geomagnetic field information acquired by the user equipment.
The application also provides an indoor positioning device based on the intelligent gateway, which comprises an acquisition module 21 and an output module 22.
An obtaining module 21, configured to obtain information to be located of the user equipment, where the information to be located includes geomagnetic field information and WiFi information; and matching preset position information corresponding to the WiFi information from a preset positioning database; the preset position information comprises preset geomagnetic field information and preset WiFi information; the first similarity value of the WiFi information and the preset WiFi information is larger than or equal to the preset similarity value; the preset positioning database comprises a plurality of preset position information, and the plurality of preset position information comprises preset position information; obtaining a second similarity value of geomagnetic field information and preset geomagnetic field information, and confirming a first weight and a second weight according to the first similarity value and the second similarity value; the first weight is the ratio of the first similarity value to the sum of the first similarity value and the second similarity value; the second weight is the ratio of the second similarity value to the sum of the first similarity value and the second similarity value.
And the output module 22 is configured to determine first positioning information of the user equipment according to the first weight and the second weight, and output the first positioning information to complete user positioning.
In a possible implementation manner, the acquiring module 21 is configured to acquire a location area of the user equipment; dividing the region into a plurality of preset region blocks, wherein the size of any one region block in the plurality of preset region blocks is a preset size; the plurality of preset area blocks comprise area blocks corresponding to the information to be positioned; selecting a preset point in the area block corresponding to the information to be positioned, wherein the position information of the preset point is preset position information.
In a possible embodiment, the obtaining module 21 is configured to obtain the formula W 1 =α/(α+β) and formula W 2 Calculating the first weight and the second weight, wherein W 1 For the first weight, W 2 And for the second weight, alpha is the first similarity value, and beta is the second similarity value.
In a possible embodiment, the output module 22 is configured to determine the formula c=w 1 ×c 1 +W 2 ×c 2 Calculating positioning information, wherein c is first positioning information, c 1 Is geomagnetic field information, c 2 Is WiFi information.
In a possible implementation manner, the output module 22 is configured to determine that the first user equipment is in the information blind area if the first similarity value is less than the pre-similarity value; and sending second positioning information to the first user equipment, wherein the second positioning information is the last positioning information of the information to be positioned.
In a possible implementation manner, the obtaining module 21 is configured to obtain an area map of an area where the first user equipment is located; the first positioning information is displayed on the area map.
In a possible implementation, the output module 22 is configured to display the third positioning information of the second user equipment on the area map; the second user equipment is user equipment in the same area as the first user equipment; the third positioning information is the positioning information of the second user equipment; and displaying the position relation of the first positioning information and the third positioning information on the regional map.
It should be noted that: in the device provided in the above embodiment, when implementing the functions thereof, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the embodiments of the apparatus and the method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the embodiments of the method are detailed in the method embodiments, which are not repeated herein.
The application also discloses electronic equipment. Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 300 may include: at least one processor 301, a memory 302, a user interface 303, at least one network interface 304, at least one communication bus 305.
Wherein a communication bus 305 is used to enable connected communications between these components.
The user interface 303 may include a Display screen (Display), a Camera (Camera), and the optional user interface 303 may further include a standard wired interface, and a wireless interface.
The network interface 304 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 301 may include one or more processing cores. Processor 301 utilizes various interfaces and lines to connect various portions of the overall recall server, perform various functions of the recall server and process data by executing or executing instructions, programs, code sets, or instruction sets stored in memory 302, and invoking data stored in memory 302. Alternatively, the processor 301 may be implemented in at least one hardware form of digital signal information processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 301 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 301 and may be implemented by a single chip.
The Memory 302 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 302 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 302 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 302 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 302 may also optionally be at least one storage device located remotely from the aforementioned processor 301. Referring to fig. 3, an operating system, a network communication module, a user interface module, and an intelligent gateway-based indoor positioning application may be included in memory 302, which is a computer storage medium.
In the electronic device 300 shown in fig. 3, the user interface 303 is mainly used for providing an input interface for a user, and acquiring data input by the user; and processor 301 may be configured to invoke memory 302 to store an intelligent gateway-based indoor positioning application that, when executed by one or more processors 301, causes electronic device 300 to perform the method as described in one or more of the embodiments above. It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as a division of units, merely a division of logic functions, and there may be additional divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a recall server, or a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned memory includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a magnetic disk or an optical disk.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, recall server, or data center to another website, computer, recall server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more recall servers, data centers, etc. that can be integrated with the available medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Claims (10)
1. An indoor positioning method based on an intelligent gateway, which is characterized in that the method is applied to a server and comprises the following steps:
acquiring information to be positioned of first user equipment, wherein the information to be positioned comprises geomagnetic field information and WiFi information;
matching preset position information corresponding to the WiFi information from a preset positioning database; the preset position information comprises preset geomagnetic field information and preset WiFi information; the first similarity value of the WiFi information and the preset WiFi information is larger than or equal to a preset similarity value; the preset positioning database comprises a plurality of preset position information, and the plurality of preset position information comprises the preset position information;
acquiring a second similarity value of the geomagnetic field information and the preset geomagnetic field information, and confirming a first weight and a second weight according to the first similarity value and the second similarity value; the first weight is the weight value of the WiFi information; the second weight is the weight value of the geomagnetic information;
and determining first positioning information of the first user equipment according to the first weight and the second weight, and outputting the first positioning information to finish positioning of the first user equipment.
2. The method of claim 1, wherein prior to the obtaining the information to be located for the first user device, the method further comprises:
acquiring a region where first user equipment is located;
dividing the region into a plurality of preset region blocks, wherein the size of any one region block in the preset region blocks is a preset size; the plurality of preset area blocks comprise area blocks corresponding to the information to be positioned;
selecting a preset point from the area block corresponding to the information to be positioned, wherein the position information of the preset point is the preset position information.
3. The method according to claim 1, wherein the obtaining a second similarity value between the geomagnetic field information and the preset geomagnetic field information, and the confirming the first weight and the second weight according to the first similarity value and the second similarity value, specifically includes:
according to formula W 1 =α/(α+β) and formula W 2 And calculating the first weight and the second weight by using =β/(α+β), wherein W1 is the first weight, W2 is the second weight, α is the first similarity value, and β is the second similarity value.
4. The method of claim 1, wherein determining the first positioning information of the first user equipment according to the first weight and the second weight, and outputting the first positioning information to complete the user positioning, specifically comprises:
according to formula c=w 1 ×c 1 +W 2 ×c 2 Calculating the positioning information, wherein c is the first positioning information, c 1 For the geomagnetic field information, c 2 And the WiFi information.
5. The method of claim 1, wherein prior to said determining the first weight of the geomagnetic field information and the second weight of the WiFi information from the similarity value, the method further comprises:
if the first similarity value is smaller than the pre-similarity value, judging that the first user equipment is in an information blind area;
and sending second positioning information to the first user equipment, wherein the second positioning information is the last positioning information of the information to be positioned.
6. The method of claim 2, wherein after the determining the first positioning information of the first user device according to the first weight and the second weight, outputting the first positioning information output to complete user positioning, the method further comprises:
acquiring an area map of the area where the first user equipment is located;
and displaying the first positioning information on the regional map.
7. The method of claim 6, after the displaying the positioning information on the area map, the method further comprising:
displaying third positioning information of the second user equipment on the regional map; the second user equipment is the user equipment in the same area as the first user equipment; the third positioning information is the positioning information of the second user equipment;
and displaying the position relation of the first positioning information and the third positioning information on the area map.
8. An indoor positioning device based on an intelligent gateway is characterized in that the device is a server and comprises an acquisition module (21) and an output module (22),
the acquisition module (21) is used for acquiring information to be positioned of the user equipment, wherein the information to be positioned comprises geomagnetic field information and WiFi information; and matching preset position information corresponding to the WiFi information from a preset positioning database; the preset position information comprises preset geomagnetic field information and preset WiFi information; the first similarity value of the WiFi information and the preset WiFi information is larger than or equal to a preset similarity value; the preset positioning database comprises a plurality of preset position information, and the plurality of preset position information comprises the preset position information; obtaining a second similarity value of the geomagnetic field information and the preset geomagnetic field information, and confirming a first weight and a second weight according to the first similarity value and the second similarity value; the first weight is the ratio of the first similarity value to the sum of the first similarity value and the second similarity value; the second weight is the ratio of the second similarity value to the sum of the first similarity value and the second similarity value;
the output module (22) is configured to determine first positioning information of the user equipment according to the first weight and the second weight, and output the first positioning information to complete user positioning.
9. An electronic device comprising a processor (301), a memory (302), a user interface (303) and a network interface (304), the memory (302) being configured to store instructions, the user interface (303) and the network interface (304) being configured to communicate to other devices, the processor (301) being configured to execute the instructions stored in the memory (302) to cause the electronic device (300) to perform the method according to any one of claims 1 to 7.
10. A computer readable storage medium storing instructions which, when executed, perform the method steps of any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310796086.2A CN116817924A (en) | 2023-07-01 | 2023-07-01 | Indoor positioning method and device based on intelligent gateway and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310796086.2A CN116817924A (en) | 2023-07-01 | 2023-07-01 | Indoor positioning method and device based on intelligent gateway and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116817924A true CN116817924A (en) | 2023-09-29 |
Family
ID=88114244
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310796086.2A Pending CN116817924A (en) | 2023-07-01 | 2023-07-01 | Indoor positioning method and device based on intelligent gateway and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116817924A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117542535A (en) * | 2024-01-10 | 2024-02-09 | 电子科技大学 | Clinical path correction method and device |
-
2023
- 2023-07-01 CN CN202310796086.2A patent/CN116817924A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117542535A (en) * | 2024-01-10 | 2024-02-09 | 电子科技大学 | Clinical path correction method and device |
| CN117542535B (en) * | 2024-01-10 | 2024-03-22 | 电子科技大学 | A clinical path correction method and its device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110730422B (en) | UWB-based positioning method, device, system and terminal equipment | |
| CN110933632B (en) | A terminal indoor positioning method and system | |
| TWI481893B (en) | Apparatus for using a global positioning mechanism based on proximity and context, and system and method for semantically deducting the geographic location of an arithmetic device | |
| US20130172009A1 (en) | Methods and apparatuses for use in determining a location of a mobile device within a mutli-level physical structure | |
| US10009733B2 (en) | Method and system for determining a position of a mobile device by an access point | |
| CN110602736B (en) | Field strength prediction method, device and computer equipment | |
| CN111935820B (en) | Positioning implementation method based on wireless network and related equipment | |
| JP6480042B1 (en) | Information processing apparatus and program | |
| CN103017767A (en) | method and apparatus for measuring location of terminal using accuracy of measuring location | |
| JP2015200504A (en) | User terminal positional information specifying device | |
| CN110784837A (en) | Indoor positioning method, device, medium and electronic equipment | |
| CN111565356A (en) | A method and device for detecting the position of a base station | |
| CN102782519A (en) | Method and apparatus for estimating cellular tower location | |
| CN103188763B (en) | A kind of method of registering based on space and device, electronic equipment | |
| CN116817924A (en) | Indoor positioning method and device based on intelligent gateway and electronic equipment | |
| CN110309244B (en) | Target point positioning method and device | |
| CN109889977B (en) | Bluetooth positioning method, device, equipment and system based on Gaussian regression | |
| CN110750602B (en) | Method and device for determining site to which order address belongs | |
| CN117739992B (en) | Indoor positioning method, device, system, terminal equipment and readable storage medium | |
| CN106793015A (en) | A wireless fidelity Wi-Fi connection method and mobile terminal | |
| JP7636569B2 (en) | Event location transmission method, device, and system | |
| CN116688491A (en) | Object position synchronization system, method and device in virtual scene and electronic equipment | |
| CN114630416B (en) | Method, device and equipment for positioning mobile terminal | |
| CN115720363A (en) | Positioning method and device based on mobile beacon | |
| CN116193496A (en) | Method, device and storage medium for determining weak coverage area |
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 |