CN114339603B - Method, device, equipment and storage medium for switching positioning area - Google Patents

Method, device, equipment and storage medium for switching positioning area Download PDF

Info

Publication number
CN114339603B
CN114339603B CN202111596686.1A CN202111596686A CN114339603B CN 114339603 B CN114339603 B CN 114339603B CN 202111596686 A CN202111596686 A CN 202111596686A CN 114339603 B CN114339603 B CN 114339603B
Authority
CN
China
Prior art keywords
positioning
area
distance
positioning area
boundary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111596686.1A
Other languages
Chinese (zh)
Other versions
CN114339603A (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.)
Zhuhai Unitech Power Technology Co Ltd
Original Assignee
Zhuhai Unitech Power 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 Zhuhai Unitech Power Technology Co Ltd filed Critical Zhuhai Unitech Power Technology Co Ltd
Priority to CN202111596686.1A priority Critical patent/CN114339603B/en
Publication of CN114339603A publication Critical patent/CN114339603A/en
Application granted granted Critical
Publication of CN114339603B publication Critical patent/CN114339603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention provides a switching method, a device, equipment and a storage medium of a positioning area, and relates to the technical field of wireless positioning, wherein the method comprises the following steps: acquiring a plurality of positioning positions of a target tag; wherein each positioning area corresponds to one positioning position; judging whether the target label is positioned in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and obtaining a judging result corresponding to each positioning area; and determining a target positioning area from the plurality of positioning areas according to the judging result corresponding to each positioning area, and switching the target tag from the current area to the target positioning area. In the mode, various parameters such as the distance position relation between the tag and the area boundary, the distance position relation between the tag and the base station, the signal quality parameter and the like are comprehensively considered, so that the positioning area to which the tag belongs is determined, the instant, accurate and stable switching of the positioning area is realized, and the application performance of the wireless positioning system is optimized.

Description

Method, device, equipment and storage medium for switching positioning area
Technical Field
The present invention relates to the field of wireless positioning, and in particular, to a method, an apparatus, a device, and a storage medium for switching a positioning area.
Background
A wireless location system typically includes a location tag, a location base station, and a location server. The positioning label is arranged on an object (such as a person, an object and the like) needing to be tracked and positioned, the positioning base station is arranged in or around a place where the object moves, the positioning base station receives a positioning signal sent by the positioning label and then forwards the positioning signal to the positioning server, or the positioning position of the label is obtained through calculation based on the positioning signal, and the positioning position is sent to the positioning server. The wireless positioning system is mostly used for monitoring the positions, the moving tracks and the like of people or objects in a certain field range, and can be used for scenes such as factory inspection, equipment inspection, material positioning and the like.
When the field is large, in order to ensure that the wireless positioning system has high positioning accuracy, the field is generally divided into a plurality of positioning areas, and positioning signals of the tags in the positioning areas are acquired through base stations in the positioning areas, so that the positions of the tags are determined. When an object moves from one positioning area to another, area switching is required, so that a positioning signal of a tag of the object is acquired through a base station in the new positioning area, and the position of the tag is determined. In the related art, the switching mode can be determined by factors such as signal quality, the number of base stations in an area, the distance between a tag and the base stations and the like, but the switching mode determined by the factors is easy to have the problems of switching errors, switching failures, or prolonged switching, and the like, so that the application performance of the wireless positioning system is influenced.
Disclosure of Invention
Accordingly, the present invention aims to provide a method, apparatus, device and storage medium for switching a positioning area, so as to accurately determine the positioning area to which a tag belongs, thereby realizing instant, accurate and stable switching of the positioning area, improving the reliability and accuracy of switching the positioning area, and optimizing the application performance of a wireless positioning system.
In a first aspect, an embodiment of the present invention provides a method for switching positioning areas, where a target site is divided into a plurality of positioning areas, and each positioning area is provided with a plurality of positioning base stations, where the method includes: acquiring a plurality of positioning positions of a target tag; wherein each positioning area corresponds to one positioning position; after receiving a positioning signal of a target tag, a positioning base station of the positioning area obtains a positioning position based on the positioning signal; judging whether the target label is positioned in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and obtaining a judging result corresponding to each positioning area; determining a target positioning area from the plurality of positioning areas according to the judgment result corresponding to each positioning area, and switching the target tag from the current area to the target positioning area; wherein the distance parameter is determined based on a plurality of the following: the distance between the target label and the boundary of the positioning area and the relative position relationship between the target label and the boundary of the positioning area; the distance between the target tag and the positioning base station of the positioning area, the distance characteristic between the boundary of the positioning area and the appointed position in the positioning area, and the distance characteristic between the positioning base station of the positioning area and the appointed position in the positioning area.
Before the step of determining whether the target tag is located in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and obtaining the determination result corresponding to each positioning area, the method further includes: setting a base station distance feature set and a boundary distance feature set; wherein, the base station distance feature set includes: distance characteristics of a positioning base station of a positioning area; the boundary distance feature set includes: locating distance features of boundaries of the region; setting the distance features in the base station distance feature set and the boundary distance feature set as preset initial values; dividing a positioning area into a plurality of units, and determining a unit center of each unit as a designated position in the positioning area; updating a base station distance feature set according to the distance between the designated position and each positioning base station of the positioning area aiming at each designated position; and updating the boundary distance feature set according to the distance between the designated position and each boundary of the positioning area.
The step of updating the base station distance feature set according to the distance between the designated position and each positioning base station of the positioning area comprises the following steps: determining the distance between the designated position and each positioning base station of the positioning area to obtain a base station distance set; acquiring a minimum base station distance value from a base station distance set and a first base station corresponding to the minimum base station distance value; and acquiring the base station distance characteristic of the first base station from the base station distance characteristic set, acquiring a first maximum value between the base station distance characteristic and the minimum base station distance value, taking the first maximum value as the updated base station distance characteristic of the first base station, and storing the updated base station distance characteristic into the base station distance characteristic set.
The step of updating the boundary distance feature set according to the distance between the designated position and each boundary of the positioning area comprises the following steps: determining the distance between the designated position and each boundary of the positioning area to obtain a boundary distance set; acquiring a minimum boundary distance value and a first boundary corresponding to the minimum boundary distance value from the boundary distance set; and acquiring boundary distance features of the first boundary from the boundary distance feature set, acquiring a second maximum value between the boundary distance features and the minimum boundary distance value, taking the second maximum value as the updated boundary distance features of the first boundary, and storing the second maximum value into the boundary distance feature set.
Before the step of determining whether the target tag is located in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and obtaining the determination result corresponding to each positioning area, the method further includes: acquiring a positioning position corresponding to the positioning area and a first distance between the positioning position and each positioning base station of the positioning area; acquiring a positioning position corresponding to the positioning area and a second distance from each boundary of the positioning area; acquiring the signal quality of a positioning signal sent by the target tag by a boundary base station of a positioning area; the boundary base station is appointed from a plurality of positioning base stations in a positioning area in advance; a signal quality parameter of the location area is determined based on the first distance, the second distance and the signal quality.
Before the step of determining whether the target tag is located in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and obtaining the determination result corresponding to each positioning area, the method further includes: setting a detection ray along a specified direction by taking a positioning position corresponding to the positioning area as a starting point; and counting the number of intersection points of the detection rays and the boundary of the positioning area, and determining the relative position relationship between the target label and the boundary of the positioning area based on the number of intersection points.
The step of determining the relative positional relationship between the target tag and the boundary of the positioning area based on the number of intersections includes: if the number of the intersection points is odd, determining that the target tag is positioned inside the boundary of the positioning area; if the number of intersection points is even, the target tag is determined to be located outside the boundary of the positioning area.
The step of judging whether the target tag is positioned in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area, and obtaining the judgment result corresponding to each positioning area comprises the following steps: determining a confidence factor of the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area; judging whether the confidence factor is smaller than a preset threshold value or not; if the confidence factor is smaller than the threshold value, determining that the target tag is positioned in the positioning area; if the confidence factor is greater than or equal to the threshold value, it is determined that the target tag is not located in the location area.
The step of determining the confidence factor of the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area comprises the following steps: acquiring a first minimum distance between a positioning position and each positioning base station of a positioning area; acquiring a second minimum distance between the positioning position and each boundary of the positioning area; acquiring a first distance characteristic of a positioning base station corresponding to a first minimum distance and a second distance characteristic of a boundary corresponding to a second minimum distance; the confidence factor of the location area is determined based on the first minimum distance, the second minimum distance, the first distance feature, the second distance feature, the relative positional relationship of the target tag and the boundary of the location area, and the signal quality parameter.
The step of determining the confidence factor of the positioning area based on the first minimum distance, the second minimum distance, the first distance feature, the second distance feature, the relative positional relationship between the target tag and the boundary of the positioning area, and the signal quality parameter includes:
the confidence factor for the location area is obtained by the following equation:
wherein X represents a confidence factor;for the first factor weight, when the target tag is located inside the boundary of the location area,/i >Taking a preset first value, and when the target label is positioned outside the boundary of the positioning area, < + >>Taking a preset second value; alpha is a second factor weight; d, d A,I Represents the first minimum distance, L A,M,I Representing the first distance feature; beta is the weight of a third factor, d B,J Represents the second minimum distance, L B,M,J Representing the second distance characteristic, wherein gamma is a fourth factor weight and S 0 Representing a preset signal quality factor standard value, and S representing the signal quality parameter.
The step of determining the target positioning area from the plurality of positioning areas according to the judgment result corresponding to each positioning area includes: setting the statistical value of each positioning area as an initial value; for each positioning area, if the judging result indicates that the target label is positioned in the positioning area, adding a specified numerical value to the statistical value of the positioning area; if the judging result indicates that the target label is not positioned in the positioning area, reducing the appointed numerical value on the statistic value of the positioning area; a target location area is determined from the plurality of location areas based on the statistics of each location area.
The step of determining the target positioning area from the plurality of positioning areas according to the statistic value of each positioning area includes: acquiring a first statistical value of a current area to which the target tag belongs; if the first statistical value is larger than a first statistical value threshold value, determining the current area as a target positioning area; if the first statistical value is smaller than or equal to a first statistical value threshold value, acquiring a switchable region corresponding to the current region; wherein the switchable region is determined based on adjacent regions of the current region; if the statistics values corresponding to the switchable regions are smaller than the second statistics value threshold value, determining the current region as a target positioning region; if there is a first region in the switchable region where the statistic occurs at or equal to the second statistic threshold, a target location region is determined from the first region.
In a second aspect, an embodiment of the present invention provides a switching device for positioning areas, where a target site is divided into a plurality of positioning areas, and each positioning area is provided with a plurality of positioning base stations, where the device includes: the position acquisition module is used for acquiring a plurality of positioning positions of the target tag; wherein each positioning area corresponds to one positioning position; after receiving a positioning signal of a target tag, a positioning base station of the positioning area obtains a positioning position based on the positioning signal; the area judging module is used for judging whether the target label is positioned in the positioning area or not according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and the positioning position corresponding to the positioning area to obtain a judging result corresponding to each positioning area; the area determining module is used for determining a target positioning area from the plurality of positioning areas according to the judging result corresponding to each positioning area and switching the target tag from the current area to the target positioning area; wherein the distance parameter is determined based on a plurality of the following: the distance between the target label and the boundary of the positioning area and the relative position relationship between the target label and the boundary of the positioning area; the distance between the target tag and the positioning base station of the positioning area, the distance characteristic between the boundary of the positioning area and the appointed position in the positioning area, and the distance characteristic between the positioning base station of the positioning area and the appointed position in the positioning area.
In a third aspect, an embodiment of the present invention provides a handover apparatus for a location area, where the apparatus includes a processor and a memory, where the memory stores machine executable instructions executable by the processor, and the processor executes the machine executable instructions to implement the handover method for a location area.
In a fourth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the above-described method of switching a location area.
The embodiment of the invention has the following beneficial effects:
the above provides a method, device, equipment and storage medium for switching positioning areas, and a plurality of positioning positions of a target tag are obtained; wherein each positioning area corresponds to one positioning position; after receiving a positioning signal of a target tag, a positioning base station of the positioning area obtains a positioning position based on the positioning signal; judging whether the target label is positioned in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and obtaining a judging result corresponding to each positioning area; determining a target positioning area from the plurality of positioning areas according to the judgment result corresponding to each positioning area, and switching the target tag from the current area to the target positioning area; wherein the distance parameter is determined based on a plurality of the following: the distance between the target label and the boundary of the positioning area and the relative position relationship between the target label and the boundary of the positioning area; the distance between the target tag and the positioning base station of the positioning area, the distance characteristic between the boundary of the positioning area and the appointed position in the positioning area, and the distance characteristic between the positioning base station of the positioning area and the appointed position in the positioning area. In the method, the distance parameter and the signal quality parameter of the positioning area are comprehensively considered to determine the positioning area to which the tag belongs, wherein the distance parameter is determined based on various related data such as the distance position relation between the tag and the boundary of the positioning area, the distance position relation between the tag and the positioning base station in the positioning area and the like, the positioning area to which the tag belongs can be accurately determined, further, the instant, accurate and stable switching of the positioning area is realized, the reliability and the accuracy of the switching of the positioning area are improved, and the application performance of a wireless positioning system is optimized.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the invention and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an example of a hardware scenario provided in an embodiment of the present invention;
fig. 2 is a flowchart of a method for switching a positioning area according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a calculation flow of a distance feature of a positioning area according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of determining whether a positioning tag is inside a region boundary according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a process for determining whether a target tag is located in a positioning area according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating an embodiment of updating region statistics;
fig. 7 is a schematic flow chart of determining a positioning area of a target tag according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a switching device for a positioning area according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a switching device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The wireless positioning system is generally composed of a positioning tag, a positioning base station and a positioning server, monitors the position information, track information and the like of people or objects in an area through a wireless positioning technology, is used for factory inspection, equipment inspection, material positioning and the like, and is widely applied to industries such as electric power, metallurgy, petrochemical industry, rail transit and the like. In the wireless positioning system, the positioning label is arranged on the object, when the object moves, the positioning label can move between different positioning areas, and when the positioning label moves to the junction of the positioning areas, the positioning server is difficult to quickly and accurately select the result in the correct positioning area on the problem of judging whether the positioning result is subjected to area switching, so that the performance of the positioning system is affected. The related art mainly relies on three related indexes for switching judgment: communication signal quality between the positioning tag and the positioning base station; the number of communicable positioning base stations within each area; based on ranging information of the positioning tag and the base stations in the positioning area. That is, when the signal quality is abrupt, when the number of communicable positioning base stations is abrupt, and when the distance is abrupt, it is considered that the possibility of occurrence of a handover is high. However, due to the propagation characteristics of the wireless signals, the wireless signals are easily interfered by human bodies and equipment existing in engineering sites, so that errors occur in measurement values of the three indexes, and if a switching scheme is designed by directly using the three indexes, the problems of error switching (switching occurs without switching), failure switching (switching does not occur), long switching time delay and the like of a positioning system are possibly caused, and the engineering popularization of the positioning system is affected.
Based on the foregoing, the embodiment of the invention provides a method, a device, equipment and a storage medium for switching a positioning area. The techniques may be used for a wireless location system.
For the sake of understanding the present embodiment, fig. 1 is an example of a hardware scenario involved in the embodiment of the present invention. Wireless location systems typically include a location server, a location base station, and a location tag; wherein the positioning tag is arranged on a target object to be positioned, such as equipment, personnel and the like; the target object is usually located or moves within a certain geographical range, in or around which one or more positioning base stations are arranged, and when the geographical range is large, a plurality of positioning base stations are usually arranged; the positioning base station collects positioning signals of the positioning labels and then forwards the positioning signals to the positioning server, or the positioning positions of the labels are obtained through calculation based on the positioning signals, and the positioning positions are sent to the positioning server.
Firstly, describing a switching method of a positioning area in detail, wherein a target site is divided into a plurality of positioning areas, and each positioning area is provided with a plurality of positioning base stations; generally, when the range of the target site is large, in order to make the received positioning signal relatively stable, the target site is divided into a plurality of positioning areas, and the positioning signal of the positioning tag in each positioning area is received by the positioning base station in the positioning area or at the boundary of the positioning area; for a positioning base station located at a boundary, the base station may receive positioning signals transmitted by positioning tags in a plurality of positioning areas adjacent to the boundary. As shown in fig. 2, the method for switching the positioning area includes the following steps:
Step S201, a plurality of positioning positions of a target label are obtained; wherein each positioning area corresponds to one positioning position; after receiving a positioning signal of a target tag, a positioning base station of the positioning area obtains a positioning position based on the positioning signal;
the target label belongs to a positioning label; the positioning label is generally arranged on an object to be tracked and positioned, and can be a work board, a bracelet and the like; the positioning base station is generally arranged in or around the place where the object moves, and after receiving the positioning signal transmitted by the positioning tag, the base station realizes ranging with the tag and uploads information such as ID, position and the like of the tag to the positioning server; the positioning server is an information collection processing device, which collects all the label information uploaded by all the base stations, stores, processes and calculates statistics, obtains the label information by using the known coordinates of all the base stations and the data information such as the distance between each base station and the label, and displays the label information on a server interface. When the site is large, in order to ensure that the wireless positioning system has high positioning accuracy, the site is generally divided into a plurality of positioning areas, and the positioning server can also configure and store each positioning area information, wherein the positioning area information comprises boundary information of each area and base station information in the area. Therefore, the positioning server can calculate the positioning information of each positioning area respectively and obtain a corresponding coordinate result.
The target site is divided into a plurality of positioning areas, each positioning area is provided with a plurality of positioning base stations, when one positioning label sends out positioning signals, the positioning signals can be received by the base stations in the plurality of positioning areas and then uploaded to the server, and positioning results of the labels are obtained after calculation and statistics based on the positioning information of each positioning area, wherein the positioning results comprise positioning coordinates of the labels, positioning areas and the like. The reliability and accuracy of the positioning result are related to the distance between the positioning tag and the base station and the quality of the positioning signal, wherein the closer the distance between the base station and the positioning tag is, the better the quality of the signal is, and the more accurate and reliable the positioning result is.
In this step, a plurality of positioning positions of the target tag are obtained according to positioning signals received by the base stations of the plurality of positioning areas, wherein the positioning positions include positioning coordinates of the tag, the positioning areas and the like.
Step S202, judging whether a target label is positioned in a positioning area or not according to a positioning position corresponding to the positioning area, a distance parameter and a signal quality parameter of the positioning area and a judgment result corresponding to each positioning area;
since the target tag may be in a moving state, the positioning information of the tag needs to be acquired according to a preset period or in real time. In general, among all the base stations capable of receiving the positioning signals, the positioning position acquired by the base station closest to the target tag is the most accurate, so that the positioning area where the target tag is located needs to be determined according to the positioning information of the target tag received by each base station, the distance parameter and the signal quality parameter information of each positioning area, and the specific position information of the target tag is determined according to the positioning information of the base station in the positioning area.
Specifically, the distance parameter may be a weighted result of distance data related to the base station and the area boundary, and may be determined according to a distance between the target tag and the boundary of the positioning area, a relative positional relationship between the target tag and the boundary of the positioning area, a distance between the target tag and the positioning base station of the positioning area, a distance feature between the boundary of the positioning area and a specified position in the positioning area, a distance feature between the positioning base station of the positioning area and the specified position in the positioning area, and the like; the relative positional relationship between the target tag and the boundary of the positioning area can be understood as that the target tag is located within the boundary of the positioning area or the target tag is located outside the boundary of the positioning area; in actual implementation, the distance parameter may be determined based on all the parameters described above, or may be determined based on some of the parameters described above. The distance characteristic of the boundary of the positioning area and the designated position in the positioning area can be understood as selecting one or more designated positions from the positioning area in advance, counting the distance between the boundary of the positioning area and the designated positions, and then calculating the distance characteristic through a preset algorithm. The distance characteristic of the positioning base station of the positioning area and the designated position in the positioning area can be understood as selecting one or more designated positions from the positioning area in advance, counting the distance between the positioning base station of the positioning area and the designated positions, and then calculating the distance characteristic through a preset algorithm.
The signal quality parameter indicates the strength of the positioning signal sent by the target tag received by the base station, and the parameter value of the signal quality parameter can be determined according to the signal quality corresponding to the boundary base station in the positioning area and the distance from the target tag to each base station. In actual implementation, the confidence factor of the positioning area can be determined according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area; and judging whether the target label is positioned in the positioning area based on the confidence factor and the preset threshold value, and further obtaining a judgment result corresponding to each positioning area.
In the step, the determination of the target label area comprehensively considers a plurality of factors including the area boundary range, the distance between the label and the boundary, the distance between the label and the positioning base station and the positioning signal quality, and the reliability and the accuracy of target positioning are improved; the application performance of the wireless positioning system is optimized.
Step S203, determining a target positioning area from a plurality of positioning areas according to the judgment result corresponding to each positioning area, and switching the target tag from the current area to the target positioning area;
and processing the judgment result by adopting a preset statistical and analytical algorithm aiming at the judgment result corresponding to each positioning area, further determining a target positioning area from a plurality of positioning areas, and switching the target tag from the current area to the target positioning area.
The method for switching the positioning areas acquires a plurality of positioning positions of the target tag; wherein each positioning area corresponds to one positioning position; after receiving a positioning signal of a target tag, a positioning base station of the positioning area obtains a positioning position based on the positioning signal; judging whether the target label is positioned in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and obtaining a judging result corresponding to each positioning area; determining a target positioning area from the plurality of positioning areas according to the judgment result corresponding to each positioning area, and switching the target tag from the current area to the target positioning area; wherein the distance parameter is determined based on a plurality of the following: the distance between the target label and the boundary of the positioning area and the relative position relationship between the target label and the boundary of the positioning area; the distance between the target tag and the positioning base station of the positioning area, the distance characteristic between the boundary of the positioning area and the appointed position in the positioning area, and the distance characteristic between the positioning base station of the positioning area and the appointed position in the positioning area. In the method, the distance parameter and the signal quality parameter of the positioning area are comprehensively considered to determine the positioning area to which the tag belongs, wherein the distance parameter is determined based on various related data such as the distance position relation between the tag and the boundary of the positioning area, the distance position relation between the tag and the positioning base station in the positioning area and the like, the positioning area to which the tag belongs can be accurately determined, further, the instant, accurate and stable switching of the positioning area is realized, the reliability and the accuracy of the switching of the positioning area are improved, and the application performance of a wireless positioning system is optimized.
In the distance parameter determining process, the distance characteristics of the boundary of the positioning area and the designated position in the positioning area, and the distance characteristics of the positioning base station of the positioning area and the designated position in the positioning area can be directly obtained from the base station distance characteristic set and the boundary distance characteristic set. Therefore, before determining whether the target tag is located in the positioning area, the base station distance feature set and the boundary distance feature set need to be acquired.
The following embodiments provide specific implementations of obtaining distance feature sets.
Setting a base station distance feature set and a boundary distance feature set; wherein, the base station distance feature set includes: distance characteristics of a positioning base station of a positioning area; the boundary distance feature set includes: locating distance features of boundaries of the region; setting the distance features in the base station distance feature set and the boundary distance feature set as preset initial values; dividing a positioning area into a plurality of units, and determining a unit center of each unit as a designated position in the positioning area; updating a base station distance feature set according to the distance between the designated position and each positioning base station of the positioning area aiming at each designated position; and updating the boundary distance feature set according to the distance between the designated position and each boundary of the positioning area.
As described above, the server, as an information set processing apparatus, needs to configure each positioning area information, including: boundary information of each area, base station information in the area, and area boundary base station information. Based on the information, the positioning server can respectively perform positioning calculation on the positioning information transmitted by the base station in each positioning area, and obtain a corresponding coordinate result.
The base station distance feature set is a data set formed by the distance features of positioning base stations in each area, wherein the distance features of the positioning base stations are related to the base station information in the area; the boundary distance feature set is a data set composed of distance features of boundaries of each positioning region, and the distance features of the boundaries of the positioning regions are related to boundary information of each region. In the calculation, an initial value is set for the distance features in the base station distance feature set and the boundary distance feature set in advance; dividing each positioning area into a plurality of units, determining the unit center of each unit as a designated position in the positioning area, and determining the distance characteristic of the base station according to the distance between the designated position and each positioning base station in the positioning area; and determining boundary distance characteristics according to the distance between the designated position and each boundary of the positioning area.
Specifically, for a base station distance feature set, determining the distance between a designated position and each positioning base station in a positioning area to obtain a base station distance set; acquiring a minimum base station distance value from a base station distance set and a first base station corresponding to the minimum base station distance value; acquiring a base station distance characteristic of a first base station from a base station distance characteristic set, acquiring a first maximum value between the base station distance characteristic and a minimum base station distance value, taking the first maximum value as an updated base station distance characteristic of the first base station, and storing the updated base station distance characteristic into the base station distance characteristic set;
for the boundary distance feature set, determining the distance between the designated position and each boundary of the positioning area to obtain a boundary distance set; acquiring a minimum boundary distance value and a first boundary corresponding to the minimum boundary distance value from the boundary distance set; and acquiring boundary distance features of the first boundary from the boundary distance feature set, acquiring a second maximum value between the boundary distance features and the minimum boundary distance value, taking the second maximum value as the updated boundary distance features of the first boundary, and storing the second maximum value into the boundary distance feature set.
In a specific embodiment, as shown in fig. 3, the calculation flow of the distance feature provided above is described with an example in which the preset initial value of the distance feature is zero.
1) Inputting base station i information and regional boundary j information adjacent to the boundary;
2) Setting a base station distance feature set { L } A,M,i Sum of boundary distance feature set { L } B,M,j The initial value of the distance characteristic in the sequence is 0;
3) Dividing the positioning area into square grids with the length and the width of tau according to a certain granularity tau, wherein the value of tau is 0.1-5 meters, and the default value is 1 meter; the square corresponds to the aforementioned unit; in other possible implementations, the cells may also be other shapes, e.g., triangular, hexagonal, etc.;
4) Calculating the distance from the center of the square to each base station i and boundary j, and respectively marking as { l } A,i Sum { l } B,j -a }; the square center here corresponds to the cell center in the foregoing embodiment; { l A,i -represents a set of base station distances; { l B,j -represents a set of boundary distances;
5) Find { l }, respectively A,i Sum { l } B,j Minimum value l of } A,I And l B,J And corresponding base station I and boundary J; l (L) A,I Obtaining a minimum base station distance value from the representative base station distance set; the base station I is a first base station corresponding to the minimum base station distance value; l (L) B,J Obtaining a minimum boundary distance value from the representative boundary distance set; the boundary J is a first boundary corresponding to the minimum boundary distance value;
6) Find base station I and boundary J at { L } A,M,i Sum { L } B,M,j Corresponding value L in } A,M,i And L B,M,j
7) Updating L A,M,i And L B,M,j : wherein L is A,M,i =max{L A,M,i ,l A,I };
L B,M,j =max{L B,M,j ,l B,J };
Wherein the square corresponds to the unit; the grid center corresponds to the unit center, namely the appointed position; the base station I and the boundary J are a first base station and a first boundary; { l A,i Sum { l } B,j Respectively, a base station distance set and a boundary distance set; l (L) A,M,i And L B,M,j The first maximum value and the second maximum value respectively; taking the first maximum value as the updated base station distance characteristic of the first base station and storing the updated base station distance characteristic into a base station distance characteristic set; taking the second maximum value as the boundary distance characteristic of the updated first boundary and storing the boundary distance characteristic into a boundary distance characteristic set; repeating 4) to 7) for each square, and finally obtaining the distance parameter feature { L } A,M,i Sum { L } B,M,j }。
The base station distance characteristic and the boundary distance parameter characteristic of the positioning area can be obtained through the calculation flow, and when the corresponding distance characteristics of a plurality of positioning areas in the field are obtained through calculation, a corresponding base station distance characteristic set and a corresponding boundary distance characteristic set can be obtained. It is worth noting that the regional boundary features and the base station features used in the calculation process can be obtained and stored in the system only by running once in the system debugging stage, and only by calling in the later positioning process, so that the complexity and the operand of the system are reduced.
The following embodiments provide specific implementations for acquiring signal quality parameters of a positioning area.
Acquiring a positioning position corresponding to a positioning area and a first distance between the positioning position and each positioning base station of the positioning area; acquiring a positioning position corresponding to the positioning area and a second distance from each boundary of the positioning area; acquiring the signal quality of a positioning signal sent by a target tag by a boundary base station of a positioning area; the boundary base station is appointed from a plurality of positioning base stations in a positioning area in advance; a signal quality parameter of the location area is determined based on the first distance, the second distance and the signal quality.
Specifically, when the positioning tag sends out a positioning signal, the positioning signal can be received by the base stations in a plurality of positioning areas and then uploaded to the server, and according to the positioning information transmitted by the base stations in each positioning area, the positioning server can respectively perform positioning calculation on each positioning area to obtain the distances from the calculated positioning coordinate point to each base station and each boundary, wherein the distance from the positioning coordinate point to the base station is the first distance; the distance between the positioning coordinate point and the boundary is the second distance, and the distances between the positioning coordinate point and each base station and each boundary can form a first distance set and a second distance set.
In a specific implementation manner, taking a base station i as an example, signal quality S corresponding to each boundary base station is obtained i The signal quality parameter S of the positioning area is calculated, and the present embodiment can provide a calculation formula, i.e., s= { Σ i S i /d A,i }/{∑ i 1/d A,i -a }; wherein d A,i Representing a first distance of the positioning location from the base station i.
The following embodiments provide specific implementations of determining the relative positional relationship of a target tag to the boundary of a positioning area.
Setting a detection ray along a specified direction by taking a positioning position corresponding to the positioning area as a starting point; and counting the number of intersection points of the detection rays and the boundary of the positioning area, and determining the relative position relationship between the target label and the boundary of the positioning area based on the number of intersection points.
Specifically, if the number of intersection points is odd, determining that the target tag is positioned inside the boundary of the positioning area; if the number of intersection points is even, the target tag is determined to be located outside the boundary of the positioning area.
Fig. 4 shows a flow of determining whether a target tag is inside a region boundary. First, boundary information B of an area is input i And the positioning result coordinates P (x, y) under the region, P is used as a right ray PQ, the initial value of the number N of the intersection points is set to be 0, the left and right region boundaries are traversed to obtain the intersection points of each region boundary and the ray PQ, and the number N of the intersection points is recorded; judging whether the coordinate points are inside the regional boundary according to the parity of the number N of the intersection points: if N is odd, determining that the P point is in the boundary of the area; n is an even number, and the point P is determined to be outside the boundary of the area.
The following embodiments provide specific implementations for determining whether a target tag is located in a location area.
Determining a confidence factor of the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area; judging whether the confidence factor is smaller than a preset threshold value or not; if the confidence factor is smaller than the threshold value, determining that the target tag is located in the positioning area; if the confidence factor is greater than or equal to the threshold value, it is determined that the target tag is not located in the location area.
The confidence factor is a calculated numerical result, and can be understood as the credibility of judging the target label in the defined area; the threshold value is a value preset according to the need; and determining whether the target label is positioned in the positioning area according to the confidence factor value and the preset threshold value. Wherein the confidence factor value of the positioning area is related to the distance parameter and the signal quality parameter of the positioning area.
Specifically, a first minimum distance between a positioning position and each positioning base station of a positioning area is obtained; acquiring a second minimum distance between the positioning position and each boundary of the positioning area; acquiring a first distance characteristic of a positioning base station corresponding to a first minimum distance and a second distance characteristic of a boundary corresponding to a second minimum distance; the confidence factor of the location area is determined based on the first minimum distance, the second minimum distance, the first distance feature, the second distance feature, the relative positional relationship of the target tag and the boundary of the location area, and the signal quality parameter.
The first minimum distance and the second minimum distance are respectively a first distance and a second distance with minimum values, the first distance feature and the second distance feature can be obtained from the first distance set and the second distance set, the first distance feature and the second distance feature can be obtained from the base station distance feature set and the boundary distance feature set, and the confidence factor of the positioning area is determined according to the relative position relationship between the first minimum distance, the second minimum distance, the first distance feature, the second distance feature, the target label and the boundary of the positioning area and the signal quality parameter.
Further, the confidence factor for the location area can be obtained by the following equation:
wherein X represents a confidence factor;for the first factor weight, when the target tag is located inside the boundary of the location area,/i>Taking a preset first value, and when the target label is positioned outside the boundary of the positioning area, allowing the target label to be +_n>Taking a preset second value; alpha is a second factor weight; d, d A,I Represents a first minimum distance, L A,M,I Representing a first distance feature; beta is the weight of a third factor, d N,J Represents the second minimum distance, L N,M,J Representing the second distance characteristic, gamma being the fourth factor weight, S 0 Representing a preset signal quality factor standard value and S representing a signal quality parameter.
In the mode, a confidence factor of the positioning area can be calculated and obtained, and whether the confidence factor is smaller than a preset threshold value or not is judged; if the confidence factor is smaller than the threshold value, determining that the target tag is located in the positioning area; if the confidence factor is greater than or equal to the threshold value, it is determined that the target tag is not located in the location area.
In one embodiment, as shown in fig. 5, a specific process for determining whether the target tag is located in the positioning area according to this embodiment is described.
1) Calculating the distance { d ] between the positioning coordinate point and each base station A,i Distance { d to respective boundaries }, respectively B,j -a }; the positioning coordinate point is the positioning position of the target label; { d B,j The second distance of each boundary j of the positioning area from the positioning position in the previous embodiment;
2) According to the signal quality S corresponding to each boundary base station i Calculating a signal quality factor (corresponding to the signal quality parameter) s= { Σ i S i /d A,i }/{∑ i 1/d A,i };
3) Find { d }, respectively A,i Sum { d } B,j Minimum value d of } A,I And d B,J And corresponding I and boundary J; respectively at { L ] A,M,i Sum { L } B,M,j Find the value corresponding to I and boundary J, i.e. L A,M,I And L B,M,J ;d A,I A first minimum distance between each positioning base station corresponding to the positioning position and the positioning area; d, d B,J A second minimum distance corresponding to each boundary of the positioning area and the positioning position; l (L) A,M,I Positioning base corresponding to the first minimum distanceA first range feature of the station; l (L) B,M,J And a second distance feature corresponding to the boundary corresponding to the second minimum distance.
4) Judging whether the positioning coordinate point P is inside the region boundary, and updating according to the resultValues.
5) Calculating the value of confidence factor X Wherein, alpha, beta and gamma default values in the expression are 1; in the actual use process, the values of the three factor weights under different scenes can be determined by utilizing a traversal method to simulate simulation according to the test data. S in the expression 0 The default value is-80, which is the preset signal quality factor standard value;
6) According to the value of X and the threshold T 0 The relation judgment of the (a) is whether the positioning result in the area is in the area range; if X<T 0 The positioning result is considered to be in the area range; otherwise, the positioning result is not considered to be in the regional range; wherein T is 0 The default value is 0.8, which is a preset threshold value;
in the calculation process of the confidence factors, the adjustment of the switching scheme can be completed by only adjusting the weight value of each factor according to different application scenes and environments; since there are only 4 factor weights, a full traversal approach can be used to determine the value of each weight by a simulation fit. The debugging method is simple and easy to apply.
The following embodiments provide specific implementations of switching to a target location area.
The confidence factors are calculated for each positioning area of the field respectively, and compared with the threshold value, whether the target label is positioned in the positioning area can be determined, and further, the target positioning area can be determined from a plurality of positioning areas according to the corresponding judging result of each positioning area.
Specifically, setting the statistical value of each positioning area as an initial value; aiming at each positioning area, the judgment result indicates that the target label is positioned in the positioning area, and a specified numerical value is added to the statistical value of the positioning area; if the judging result indicates that the target label is not positioned in the positioning area, reducing the appointed numerical value on the statistic value of the positioning area; a target location area is determined from the plurality of location areas based on the statistics of each location area.
In this case, the statistical value of each positioning area is set as an initial value, and the statistical value of the corresponding area is updated according to the judgment result of each positioning area, and the target positioning area is determined from among the plurality of positioning areas based on the statistical value of each positioning area.
FIG. 6 provides a flow for updating statistics for each region in one embodiment. And the counting operation is realized by adopting a counter, wherein the cnt value of the counter is the counting value of the positioning area.
Firstly, inputting a positioning result of each positioning area, finding a counter corresponding to each positioning area, wherein the initial value of the counter is 0, and when the positioning result is judged to be in the area range, cnt=cnt+1 of the corresponding area; otherwise, cnt=cnt-1 for the corresponding region.
After traversing all the areas, judging whether the target label is subjected to area switching according to the statistical value of each positioning area, determining a target positioning area, and further switching the target label from the current area to the target positioning area;
specifically, a first statistical value of a current area to which a target tag belongs is obtained; if the first statistical value is greater than the first statistical value threshold value, determining the current area as a target positioning area; if the first statistical value is smaller than or equal to a first statistical value threshold value, acquiring a switchable region corresponding to the current region; wherein the switchable region is determined based on adjacent regions of the current region; if the statistics values corresponding to the switchable regions are smaller than the second statistics value threshold value, determining the current region as a target positioning region; and if the first area with the statistic value larger than or equal to the second statistic value threshold value exists in the switchable area, determining the first area as a target positioning area.
The first statistical value threshold and the second statistical value threshold are parameters which are preset by the system and are different from each other; and comparing the statistical value corresponding to the areas with a threshold value to determine whether the current area or the switching area is a target positioning area, wherein the switchable area corresponding to each area can be preset according to the adjacent relation between the areas.
In one embodiment, as shown in fig. 7, a specific process for determining the target tag locating area provided in this embodiment is described. In this embodiment, the first statistical value threshold T 1 And a second statistical value threshold T 2 The relation is T 1 =-T 2
1) Searching for a cnt value corresponding to the current region, and recording the cnt value as the cnt 0
2) If cnt 0 >T 1 If the current area is not switched, outputting a positioning result corresponding to the current area; otherwise, entering the next step;
3) Searching for cnt values corresponding to switchable regions of the current region (e.g., M switchable regions, the corresponding cnt values are cnt respectively 0,m );
4) If cnt 0,m <T 2 If the current area is not switched, outputting a positioning result corresponding to the current area; otherwise, entering the next step;
5) The region selection result is the positioning result of the region m, and the cnt values of all the regions are cleared. In the mode, the area counter is introduced to prevent the abnormal positioning value from influencing the area selection result, so that the switching reliability and accuracy are improved.
According to the method for switching the positioning area, the factors of the area boundary range, the distance between the tag and the boundary, the distance between the tag and the positioning base station and the quality of the positioning signal are comprehensively considered by a switching algorithm, so that the problem of switching errors caused by interference of the positioning signal is avoided, and the switching reliability and accuracy are improved; aiming at different application scenes and environments, the adjustment of the switching scheme can be completed by only adjusting the weight parameters of each factor, and the method is simple and easy to apply; and determining the positioning area of the target label according to the area statistic value, thereby effectively preventing the influence of the positioning abnormal value on the area selection result.
Corresponding to the above method embodiment, referring to fig. 8, a switching device for a positioning area is shown, which includes:
a position obtaining module 801, configured to obtain a plurality of positioning positions of a target tag; wherein each positioning area corresponds to one positioning position; after receiving a positioning signal of a target tag, a positioning base station of the positioning area obtains a positioning position based on the positioning signal;
the area judging module 802 is configured to judge, for each positioning area, whether the target tag is located in the positioning area according to the positioning position corresponding to the positioning area, and the distance parameter and the signal quality parameter of the positioning area, to obtain a judgment result corresponding to each positioning area;
The area determining module 803 is configured to determine a target positioning area from the plurality of positioning areas according to a determination result corresponding to each positioning area, and switch the target tag from the current area to the target positioning area.
The switching device of the positioning area acquires a plurality of positioning positions of the target tag; wherein each positioning area corresponds to one positioning position; after receiving a positioning signal of a target tag, a positioning base station of the positioning area obtains a positioning position based on the positioning signal; judging whether the target label is positioned in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and obtaining a judging result corresponding to each positioning area; determining a target positioning area from the plurality of positioning areas according to the judgment result corresponding to each positioning area, and switching the target tag from the current area to the target positioning area; wherein the distance parameter is determined based on a plurality of the following: the distance between the target label and the boundary of the positioning area and the relative position relationship between the target label and the boundary of the positioning area; the distance between the target tag and the positioning base station of the positioning area, the distance characteristic between the boundary of the positioning area and the appointed position in the positioning area, and the distance characteristic between the positioning base station of the positioning area and the appointed position in the positioning area. In the mode, the switching of the positioning area is determined by comprehensively considering the area boundary range, the distance between the tag and the boundary, the distance between the tag and the positioning base station and the quality of the positioning signal, so that the reliability and the accuracy of the switching are improved, the problem of switching errors caused by interference of the positioning signal is avoided, and the application performance of the wireless positioning system is optimized.
The device further comprises: the set setting module is used for: setting a base station distance feature set and a boundary distance feature set; wherein, the base station distance feature set includes: distance characteristics of a positioning base station of a positioning area; the boundary distance feature set includes: locating distance features of boundaries of the region; setting the distance features in the base station distance feature set and the boundary distance feature set as preset initial values; dividing a positioning area into a plurality of units, and determining a unit center of each unit as a designated position in the positioning area; updating a base station distance feature set according to the distance between the designated position and each positioning base station of the positioning area aiming at each designated position; and updating the boundary distance feature set according to the distance between the designated position and each boundary of the positioning area.
The set setting module is further configured to determine a distance between the designated location and each positioning base station in the positioning area, so as to obtain a base station distance set; acquiring a minimum base station distance value from a base station distance set and a first base station corresponding to the minimum base station distance value; and acquiring the base station distance characteristic of the first base station from the base station distance characteristic set, acquiring a first maximum value between the base station distance characteristic and the minimum base station distance value, taking the first maximum value as the updated base station distance characteristic of the first base station, and storing the updated base station distance characteristic into the base station distance characteristic set.
The set setting module is further configured to determine a distance between the designated location and each boundary of the positioning area, so as to obtain a boundary distance set; acquiring a minimum boundary distance value and a first boundary corresponding to the minimum boundary distance value from the boundary distance set; and acquiring boundary distance features of the first boundary from the boundary distance feature set, acquiring a second maximum value between the boundary distance features and the minimum boundary distance value, taking the second maximum value as the updated boundary distance features of the first boundary, and storing the second maximum value into the boundary distance feature set.
The device further comprises: a signal quality determining module for: acquiring a positioning position corresponding to a positioning area and a first distance between the positioning position and each positioning base station of the positioning area; acquiring a positioning position corresponding to the positioning area and a second distance from each boundary of the positioning area; acquiring the signal quality of a positioning signal sent by a target tag by a boundary base station of a positioning area; the boundary base station is appointed from a plurality of positioning base stations in a positioning area in advance; a signal quality parameter of the location area is determined based on the first distance, the second distance and the signal quality.
The device further comprises: the position relation determining module is used for: setting a detection ray along a specified direction by taking a positioning position corresponding to the positioning area as a starting point; and counting the number of intersection points of the detection rays and the boundary of the positioning area, and determining the relative position relationship between the target label and the boundary of the positioning area based on the number of intersection points.
The above-mentioned position relation confirms the module, is also used for if the number of crossing points is odd, confirm the goal label is located in the boundary of the locating area; if the number of intersection points is even, the target tag is determined to be located outside the boundary of the positioning area.
The area judging module is further used for determining a confidence factor of the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area; judging whether the confidence factor is smaller than a preset threshold value or not; if the confidence factor is smaller than the threshold value, determining that the target tag is located in the positioning area; if the confidence factor is greater than or equal to the threshold value, it is determined that the target tag is not located in the location area.
The area judging module is further used for obtaining a first minimum distance between the positioning position and each positioning base station of the positioning area; acquiring a second minimum distance between the positioning position and each boundary of the positioning area; acquiring a first distance characteristic of a positioning base station corresponding to a first minimum distance and a second distance characteristic of a boundary corresponding to a second minimum distance; the confidence factor of the location area is determined based on the first minimum distance, the second minimum distance, the first distance feature, the second distance feature, the relative positional relationship of the target tag and the boundary of the location area, and the signal quality parameter.
The above region judgment module is further configured to obtain a confidence factor of the positioning region according to the following formula:
wherein X represents a confidence factor;for the first factor weight, when the target tag is located inside the boundary of the location area,/i>Taking a preset first value, and when the target label is positioned outside the boundary of the positioning area, < + >>Taking a preset second value; alpha is a second factor weight; d, d A,I Represents a first minimum distance, L A,M,I Representing a first distance feature; beta is the weight of a third factor, d B,J Represents the second minimum distance, L B,M,J Representing the second distance characteristic, gamma being the fourth factor weight, S 0 Representing a preset signal quality factor standard value and S representing a signal quality parameter.
The area determining module is further configured to set a statistical value of each positioning area as an initial value; for each positioning area, if the judging result indicates that the target label is positioned in the positioning area, adding a specified numerical value to the statistical value of the positioning area; if the judgment result indicates that the target label is not positioned in the positioning area, reducing the appointed numerical value on the statistic value of the positioning area: a target location area is determined from the plurality of location areas based on the statistics of each location area.
The area determining module is further configured to obtain a first statistical value of a current area to which the target tag belongs; if the first statistical value is greater than the first statistical value threshold value, determining the current area as a target positioning area; if the first statistical value is smaller than or equal to a first statistical value threshold value, acquiring a switchable region corresponding to the current region; wherein the switchable region is determined based on adjacent regions of the current region; if the statistics values corresponding to the switchable regions are smaller than the second statistics value threshold value, determining the current region as a target positioning region; if there is a first region in the switchable region where the statistic occurs at or equal to the second statistic threshold, a target location region is determined from the first region.
The embodiment also provides a switching device of the positioning area, which comprises a processor and a memory, wherein the memory stores machine executable instructions which can be executed by the processor, and the processor executes the machine executable instructions to realize the switching method of the positioning area. The electronic device may be a server or a terminal device.
Referring to fig. 9, the electronic device includes a processor 100 and a memory 101, the memory 101 storing machine executable instructions that can be executed by the processor 100, the processor 100 executing the machine executable instructions to implement the above-described method of switching a location area.
Further, the electronic device shown in fig. 9 further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103, and the memory 101 are connected through the bus 102.
The memory 101 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in fig. 9, but not only one bus or one type of bus.
The processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 100 or by instructions in the form of software. The processor 100 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and, in combination with its hardware, performs the steps of the method of the previous embodiment.
The present embodiment also provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the above-described method of switching a positioning area.
The computer program product of the method, the apparatus, the device and the storage medium for switching a positioning area provided by the embodiments of the present invention includes a computer readable storage medium storing program codes, and the instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be repeated herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In addition, in the description of embodiments of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood by those skilled in the art in specific cases.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention for illustrating the technical solution of the present invention, but not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the foregoing examples, it will be understood by those skilled in the art that the present invention is not limited thereto: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (15)

1. A method for switching positioning areas, wherein a target site is divided into a plurality of positioning areas, each positioning area being provided with a plurality of positioning base stations, the method comprising:
acquiring a plurality of positioning positions of a target tag; wherein each positioning area corresponds to one positioning position; after receiving the positioning signal of the target tag, the positioning base station of the positioning area obtains a positioning position based on the positioning signal;
Judging whether the target label is positioned in the positioning area or not according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and the positioning area to obtain a judging result corresponding to each positioning area;
determining a target positioning area from the plurality of positioning areas according to the judgment result corresponding to each positioning area, and switching the target tag from the current area to the target positioning area;
wherein the distance parameter is determined based on a plurality of the following: the distance between the target tag and the boundary of the positioning area, the relative position relation between the target tag and the boundary of the positioning area, the distance between the target tag and the positioning base station of the positioning area, the distance characteristic between the boundary of the positioning area and the specified position in the positioning area, and the distance characteristic between the positioning base station of the positioning area and the specified position in the positioning area.
2. The method according to claim 1, wherein, before the step of determining whether the target tag is located in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area, and obtaining the determination result corresponding to each positioning area, the method further comprises:
Setting a base station distance feature set and a boundary distance feature set; wherein the base station distance feature set includes: distance characteristics of a positioning base station of the positioning area; the boundary distance feature set includes: distance characteristics of the boundary of the positioning area;
setting the distance characteristics in the base station distance characteristic set and the boundary distance characteristic set to be preset initial values;
dividing the positioning area into a plurality of units, and determining a unit center of each unit as a designated position in the positioning area;
updating the base station distance feature set according to the distance between the designated position and each positioning base station of the positioning area for each designated position; and updating the boundary distance feature set according to the distance between the specified position and each boundary of the positioning area.
3. The method of claim 2, wherein the step of updating the set of base station range features based on the range of the specified location from each positioning base station of the positioning area comprises:
determining the distance between the designated position and each positioning base station of the positioning area to obtain a base station distance set;
Acquiring a minimum base station distance value from the base station distance set and a first base station corresponding to the minimum base station distance value;
and acquiring the base station distance characteristic of the first base station from the base station distance characteristic set, acquiring a first maximum value between the base station distance characteristic and the minimum base station distance value, taking the first maximum value as the updated base station distance characteristic of the first base station, and storing the first maximum value into the base station distance characteristic set.
4. The method of claim 2, wherein the step of updating the set of boundary distance features based on the distance of the specified location from each boundary of the location area comprises:
determining the distance between the designated position and each boundary of the positioning area to obtain a boundary distance set;
acquiring a minimum boundary distance value from the boundary distance set and a first boundary corresponding to the minimum boundary distance value;
and acquiring the boundary distance feature of the first boundary from the boundary distance feature set, acquiring a second maximum value between the boundary distance feature and the minimum boundary distance value, taking the second maximum value as the updated boundary distance feature of the first boundary, and storing the second maximum value into the boundary distance feature set.
5. The method according to claim 1, wherein, before the step of determining whether the target tag is located in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area, and obtaining the determination result corresponding to each positioning area, the method further comprises:
acquiring a positioning position corresponding to the positioning area and a first distance between the positioning position and each positioning base station of the positioning area; acquiring a positioning position corresponding to the positioning area and a second distance from each boundary of the positioning area;
acquiring the signal quality of a positioning signal sent by the target tag by a boundary base station of the positioning area; the boundary base station is appointed in advance from a plurality of positioning base stations in the positioning area;
a signal quality parameter of the positioning area is determined based on the first distance, the second distance and the signal quality.
6. The method according to claim 1, wherein, before the step of determining whether the target tag is located in the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area, and obtaining the determination result corresponding to each positioning area, the method further comprises:
Setting a detection ray along a specified direction by taking a positioning position corresponding to the positioning area as a starting point;
and counting the number of intersection points of the detected rays and the boundary of the positioning area, and determining the relative position relationship between the target label and the boundary of the positioning area based on the number of intersection points.
7. The method of claim 6, wherein determining the relative positional relationship of the target tag to the boundary of the location area based on the number of intersections comprises:
if the number of the intersection points is odd, determining that the target tag is positioned inside the boundary of the positioning area;
and if the number of the intersection points is even, determining that the target tag is positioned outside the boundary of the positioning area.
8. The method according to claim 1, wherein the step of determining whether the target tag is located in the positioning area according to the positioning position corresponding to the positioning area, and the distance parameter and the signal quality parameter of the positioning area, to obtain a determination result corresponding to each positioning area includes:
determining a confidence factor of the positioning area according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area;
Judging whether the confidence factor is smaller than a preset threshold value or not;
if the confidence factor is smaller than the threshold value, determining that the target tag is located in the positioning area; and if the confidence factor is greater than or equal to the threshold value, determining that the target tag is not located in the positioning area.
9. The method of claim 8, wherein the step of determining the confidence factor for the location area based on the location position corresponding to the location area, and the distance parameter and the signal quality parameter for the location area, comprises:
acquiring a first minimum distance between the positioning position and each positioning base station of the positioning area; acquiring a second minimum distance between the positioning position and each boundary of the positioning area;
acquiring a first distance characteristic of a positioning base station corresponding to the first minimum distance and a second distance characteristic of a boundary corresponding to the second minimum distance;
and determining a confidence factor of the positioning area based on the first minimum distance, the second minimum distance, the first distance feature, the second distance feature, the relative position relationship of the target tag and the boundary of the positioning area and the signal quality parameter.
10. The method of claim 9, wherein the step of determining the confidence factor for the location area based on the first minimum distance, the second minimum distance, the first distance feature, the second distance feature, the relative positional relationship of the target tag to the boundary of the location area, and the signal quality parameter comprises:
obtaining the confidence factor of the positioning area by the following formula:
wherein X represents the confidence factor;for a first factor weight, when the target tag is located inside the boundary of the localization area,/o>Taking a preset first value, when the target tag is located outside the boundary of the location area,/I>Taking a preset second value; alpha is a second factor weight; d, d A,I Represents the first minimum distance, L A,M,I Representing the first distance feature; beta is the weight of a third factor, d B,J Represents the second minimum distance, L B,M,J Representing the second distance characteristic, wherein gamma is a fourth factor weight, S 0 Representing a preset signal quality factor standard value and S representing the signal quality parameter.
11. The method according to claim 1, wherein the step of determining a target positioning area from the plurality of positioning areas according to the determination result corresponding to each positioning area includes:
Setting the statistical value of each positioning area as an initial value;
for each positioning area, if the judging result indicates that the target label is positioned in the positioning area, adding a specified numerical value to the statistical value of the positioning area;
if the judging result indicates that the target label is not positioned in the positioning area, reducing a designated numerical value on the statistical value of the positioning area;
and determining a target positioning area from the plurality of positioning areas according to the statistic value of each positioning area.
12. The method of claim 11, wherein the step of determining a target location area from the plurality of location areas based on the statistics of each location area comprises:
acquiring a first statistical value of a current area to which the target tag belongs;
if the first statistic is larger than a first statistic threshold value, determining the current area as a target positioning area;
if the first statistical value is smaller than or equal to the first statistical value threshold value, a switchable region corresponding to the current region is obtained; wherein the switchable region is determined based on adjacent regions of the current region;
if the statistics values corresponding to the switchable regions are smaller than a second statistics value threshold value, determining the current region as a target positioning region;
And if a first area with the statistic value larger than or equal to the second statistic value threshold value exists in the switchable area, determining the first area as a target positioning area.
13. A switching device for positioning areas, wherein a target site is divided into a plurality of positioning areas, each positioning area being provided with a plurality of positioning base stations, the device comprising:
the position acquisition module is used for acquiring a plurality of positioning positions of the target tag; wherein each positioning area corresponds to one positioning position; after receiving the positioning signal of the target tag, the positioning base station of the positioning area obtains a positioning position based on the positioning signal;
the area judging module is used for judging whether the target tag is positioned in the positioning area or not according to the positioning position corresponding to the positioning area, the distance parameter and the signal quality parameter of the positioning area and the positioning position corresponding to the positioning area, so as to obtain a judging result corresponding to each positioning area;
the area determining module is used for determining a target positioning area from the plurality of positioning areas according to the judging result corresponding to each positioning area and switching the target tag from the current area to the target positioning area;
Wherein the distance parameter is determined based on a plurality of the following: the distance between the target tag and the boundary of the positioning area, the relative position relation between the target tag and the boundary of the positioning area, the distance between the target tag and the positioning base station of the positioning area, the distance characteristic between the boundary of the positioning area and the specified position in the positioning area, and the distance characteristic between the positioning base station of the positioning area and the specified position in the positioning area.
14. A handover apparatus of a location area, comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the handover method of a location area of any of claims 1-12.
15. A machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of switching a location area of any of claims 1-12.
CN202111596686.1A 2021-12-24 2021-12-24 Method, device, equipment and storage medium for switching positioning area Active CN114339603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111596686.1A CN114339603B (en) 2021-12-24 2021-12-24 Method, device, equipment and storage medium for switching positioning area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111596686.1A CN114339603B (en) 2021-12-24 2021-12-24 Method, device, equipment and storage medium for switching positioning area

Publications (2)

Publication Number Publication Date
CN114339603A CN114339603A (en) 2022-04-12
CN114339603B true CN114339603B (en) 2023-08-25

Family

ID=81013461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111596686.1A Active CN114339603B (en) 2021-12-24 2021-12-24 Method, device, equipment and storage medium for switching positioning area

Country Status (1)

Country Link
CN (1) CN114339603B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115431922A (en) * 2022-09-09 2022-12-06 浙江吉利控股集团有限公司 Control method, control device, automobile and storage medium
CN115402258A (en) * 2022-09-09 2022-11-29 浙江吉利控股集团有限公司 Control method, control device, automobile and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231614A (en) * 2017-06-23 2017-10-03 北京星网锐捷网络技术有限公司 The method and master base station of a kind of label of positioning in the wireless network
CN107528963A (en) * 2016-06-22 2017-12-29 维沃移动通信有限公司 The switching method and mobile terminal of a kind of positioning service
CN110035388A (en) * 2019-03-21 2019-07-19 平安科技(深圳)有限公司 Determine method, computer readable storage medium and the terminal device of user area
CN110121150A (en) * 2019-05-24 2019-08-13 上海物联网有限公司 A kind of trans-regional seamless positioning system in interior based on UWB technology
WO2020098076A1 (en) * 2018-11-12 2020-05-22 平安科技(深圳)有限公司 Method and apparatus for positioning tracking target, device, and storage medium
KR20210037636A (en) * 2020-08-28 2021-04-06 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Map coordinate processing method, map coordinate processing device, electronic device, and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9113291B2 (en) * 2012-06-18 2015-08-18 Qualcomm Incorporated Location detection within identifiable pre-defined geographic areas
US20150365804A1 (en) * 2014-06-12 2015-12-17 Qualcomm Incorporated Positioning Capability Based Assistance Data Generation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528963A (en) * 2016-06-22 2017-12-29 维沃移动通信有限公司 The switching method and mobile terminal of a kind of positioning service
CN107231614A (en) * 2017-06-23 2017-10-03 北京星网锐捷网络技术有限公司 The method and master base station of a kind of label of positioning in the wireless network
WO2020098076A1 (en) * 2018-11-12 2020-05-22 平安科技(深圳)有限公司 Method and apparatus for positioning tracking target, device, and storage medium
CN110035388A (en) * 2019-03-21 2019-07-19 平安科技(深圳)有限公司 Determine method, computer readable storage medium and the terminal device of user area
CN110121150A (en) * 2019-05-24 2019-08-13 上海物联网有限公司 A kind of trans-regional seamless positioning system in interior based on UWB technology
KR20210037636A (en) * 2020-08-28 2021-04-06 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Map coordinate processing method, map coordinate processing device, electronic device, and storage medium
EP3828729A2 (en) * 2020-08-28 2021-06-02 Beijing Baidu Netcom Science And Technology Co., Ltd. Map coordinate processing method, map coordinate processing device, electronic device, and storage medium

Also Published As

Publication number Publication date
CN114339603A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN114339603B (en) Method, device, equipment and storage medium for switching positioning area
Guo et al. Find: faulty node detection for wireless sensor networks
US11206555B2 (en) Method for implementing antenna azimuth correction based on user data
CN105488316B (en) System and method for predicting air quality
CN109413565B (en) Method and device for determining service cell of coverage scene and electronic equipment
CN110149654B (en) Method and device for determining faults of base station antenna feeder system
CN111524394A (en) Method, device and system for improving accuracy of comprehensive track monitoring data of apron
CN111200780A (en) Method and device for detecting abnormality of positioning data and computer-readable storage medium
CN112995893B (en) Fingerprint positioning method, system, server and storage medium
CN117787684A (en) Tunnel surrounding rock collapse risk analysis method and system based on visual detection
CN112784633B (en) Lane boundary processing method and device, electronic equipment and storage medium
CN116342107A (en) Rail detection method, device, electronic equipment and medium
JP2020076721A (en) Position estimation device, program, position estimation method, information processing apparatus, and information processing method
EP4152693A1 (en) Coverage indicator prediction method, model training method and apparatus, device, and medium
US20170184488A1 (en) Facility state analysis device, analysis method for facility state, storage medium, and facility management system
CN112233171B (en) Target labeling quality inspection method, device, computer equipment and storage medium
CN113573236B (en) Method and device for evaluating confidence of positioning result
CN113674358A (en) Method and device for calibrating radar vision equipment, computing equipment and storage medium
CN114302327B (en) Method, device, equipment, positioning system and storage medium for switching positioning areas
KR100639500B1 (en) Method for locating position in wireless communication system
CN111988813A (en) Method, device and computer equipment for determining weak coverage cell in mobile communication network
CN114599040A (en) Base station position determining method and device and electronic equipment
CN115556109B (en) Positioning method and device for mechanical arm in test system
CN112333746B (en) Method, device and equipment for determining network parameters
CN113301646B (en) Positioning method, positioning device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant