Wireless positioning method, device, electronic device and storage medium
By using the information of current and historical coordinate points to synthesize vectors in the UWB wireless positioning system and optimizing the positioning coordinate values, the problems of low positioning accuracy and discontinuous coordinates in the UWB system are solved, and higher positioning accuracy and stability are achieved.
Patent Information
- Application Number
- CN202110951039.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-08-18
AI Technical Summary
In the short-distance positioning of the UWB wireless positioning system, the positioning accuracy is low due to high-frequency signal interference between a large number of positioning tags and base stations, and the time-varying wireless signals cause problems such as discontinuous positioning coordinates and lags.
By obtaining the measured coordinate value of the current coordinate point of the object to be positioned and the positioning coordinate value of the adjacent historical coordinate point, the first vector and the second vector are determined, and the vectors are synthesized to optimize the positioning coordinate value, taking into account the movement trend of the object to be positioned, and improving Positioning accuracy.
The wireless positioning accuracy is improved, the positioning trajectory is smoother, the effects of signal drift and jamming are reduced, and the stability of the positioning system is enhanced.
Smart Images

Figure CN113820658B
Abstract
Description
Technical Field
[0001] The present application relates to the field of positioning technology, and in particular to a wireless positioning method, device, electronic device and storage medium. Background Art
[0002] In the era of the Internet of Things, accurate positioning of objects is particularly important. For indoor short-range positioning, wireless positioning technologies such as ultrasound, Radio Frequency Identification (RFID), Wireless Fidelity (WiFi), Bluetooth, and Ultra-Wide Band (UWB) are usually used to implement positioning services.
[0003] However, wireless positioning systems such as UWB are short-range real-time positioning systems that usually include a large number of positioning tags and base stations, which rely on high-frequency wireless signals to measure distance and position each other. The internal interference of the system is large, resulting in low positioning accuracy. In addition, wireless signals are time-varying signals, and even in the absence of interference, it is easy to have discontinuous positioning coordinates and freezes, which will also affect positioning accuracy. Summary of the invention
[0004] Based on this, it is necessary to provide a wireless positioning method, device, electronic device and storage medium that can improve the wireless positioning accuracy in response to the above technical problems.
[0005] The present invention provides a wireless positioning method, which includes:
[0006] Get the measured coordinate value of the current coordinate point of the object to be located;
[0007] Determine a first vector V1 according to the measured coordinate value and a historical positioning coordinate value corresponding to a first coordinate point adjacent to the current coordinate point;
[0008] Determine a second vector V2 according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2;
[0009] Determine a composite vector according to the first vector V1 and the second vector V2;
[0010] The positioning coordinate value of the current coordinate point is determined according to the synthetic vector and the historical positioning coordinate value corresponding to the first coordinate point.
[0011] In one embodiment, determining the second vector V2 according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point includes:
[0012] Performing curve fitting based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, respectively, to obtain the motion trajectory equation of the object to be positioned;
[0013] Determine the tangent direction of the motion trajectory equation as the direction of the second vector V2;
[0014] Determine the i-th order difference of the first coordinate point according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where i is a positive integer less than n;
[0015] The size of the second vector V2 is determined according to the i-th order difference of the first coordinate point.
[0016] In one embodiment, the value of n is 3, and determining the i-order difference of the first coordinate point according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point includes:
[0017] Determine a first-order difference of the first coordinate point according to a historical positioning coordinate value of the first coordinate point and a historical positioning coordinate value of a second coordinate point adjacent to the first coordinate point;
[0018] Determine a first-order difference of the second coordinate point according to the historical positioning coordinate value of the second coordinate point and the historical positioning coordinate value of a third coordinate point adjacent to the second coordinate point;
[0019] The difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point is calculated to obtain the second-order difference of the first coordinate point.
[0020] In one embodiment, determining the size of the second vector V2 according to the i-th order difference of the first coordinate point includes:
[0021] The size of the second vector V2 is determined by the following formula:
[0022] ||V2||=ΔP+ΔP*ΔΔP;
[0023] Among them, ||V2|| is the modulus of the second vector V2, ΔP represents the first-order difference of the first coordinate point, and ΔΔP represents the second-order difference of the first coordinate point.
[0024] In one embodiment, determining a composite vector according to the first vector V1 and the second vector V2 includes:
[0025] The resultant vector is calculated by the following formula:
[0026] V0=a*V1+(1-a)*V2
[0027] Wherein, V0 represents the synthetic vector, a represents the weight of the first vector V1, 0 <a≤1。
[0028] In one embodiment, the method further comprises:
[0029] Obtaining measured coordinate values and real coordinate values corresponding to multiple reference points in the wireless positioning area;
[0030] The weight of the first vector V1 is adjusted according to the difference between the measured coordinate value and the real coordinate value corresponding to each reference point.
[0031] In one embodiment, the method further comprises:
[0032] Count the number of objects to be located in the wireless positioning system;
[0033] According to the number of objects to be located, the correspondence between the preset numbers of different located objects and the weights of the first vector V1 is queried, and the weight corresponding to the number of objects to be located is determined as the value of a.
[0034] The present application provides a wireless positioning device, the device comprising:
[0035] An acquisition module is used to acquire the measured coordinate value of the current coordinate point of the object to be located;
[0036] A first determining module, configured to determine a first vector V1 according to the measured coordinate value and a historical positioning coordinate value corresponding to a first coordinate point adjacent to the current coordinate point;
[0037] A second determination module, used to determine a second vector V2 according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2;
[0038] A third determining module, configured to determine a composite vector according to the first vector V1 and the second vector V2;
[0039] The fourth determination module is used to determine the positioning coordinate value of the current coordinate point according to the synthetic vector and the historical positioning coordinate value corresponding to the first coordinate point.
[0040] In one embodiment, the second determining module includes:
[0041] A curve fitting unit, used for performing curve fitting according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point, to obtain the motion trajectory equation of the object to be positioned;
[0042] a vector direction determining unit, configured to determine the tangent direction of the motion trajectory equation as the direction of the second vector V2;
[0043] A difference determination unit, used to determine the i-th order difference of the first coordinate point according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point, where i is a positive integer less than n;
[0044] A vector size determination unit is used to determine the size of the second vector V2 according to the i-th order difference of the first coordinate point.
[0045] In one embodiment, the value of n is 3, and the difference determination unit is specifically used to:
[0046] Determine a first-order difference of the first coordinate point according to a historical positioning coordinate value of the first coordinate point and a historical positioning coordinate value of a second coordinate point adjacent to the first coordinate point;
[0047] Determine a first-order difference of the second coordinate point according to the historical positioning coordinate value of the second coordinate point and the historical positioning coordinate value of a third coordinate point adjacent to the second coordinate point;
[0048] The difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point is calculated to obtain the second-order difference of the first coordinate point.
[0049] In one embodiment, the vector size determination unit is specifically configured to:
[0050] The size of the second vector V2 is determined by the following formula:
[0051] ||V2||=ΔP+ΔP*ΔΔP;
[0052] Among them, ||V2|| is the modulus of the second vector V2, ΔP represents the first-order difference of the first coordinate point, and ΔΔP represents the second-order difference of the first coordinate point.
[0053] In one embodiment, the third determination module is specifically configured to:
[0054] The resultant vector is calculated by the following formula:
[0055] V0=a*V1+(1-a)*V2
[0056] Wherein, V0 represents the synthetic vector, a represents the weight of the first vector V1, 0 <a≤1。
[0057] In one embodiment, the apparatus further comprises:
[0058] A reference point acquisition module, used to obtain measured coordinate values and real coordinate values corresponding to multiple reference points in the wireless positioning area;
[0059] The adjustment module is used to adjust the weight of the first vector V1 according to the difference between the measured coordinate value and the real coordinate value corresponding to each reference point.
[0060] In one embodiment, the apparatus further comprises:
[0061] A statistics module, used to count the number of objects to be located in the wireless positioning system;
[0062] The weight determination module is used to query the corresponding relationship between the preset numbers of different positioning objects and the weights of the first vector V1 according to the number of the objects to be positioned, and determine the weight corresponding to the number of the objects to be positioned as the value of a.
[0063] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the wireless positioning method provided in any embodiment of the present application are implemented.
[0064] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the wireless positioning method provided in any embodiment of the present application are implemented.
[0065] The wireless positioning method, device, electronic device and storage medium provided in the embodiments of the present application first determine a first vector according to the measured coordinate value of the current coordinate point of the object to be positioned and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point, and then determine a second vector according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2, and then determine a composite vector according to the first vector and the second vector, and finally determine the positioning coordinate value of the current coordinate point according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point. Since the second vector is determined according to the historical positioning coordinate values of the first n coordinate points, the trend of the object to be positioned moving along the original direction is taken into account, so that the positioning coordinate value of the current coordinate point finally determined takes into account both the measured coordinates and the original movement trend, so that the second vector plays a role in correcting and optimizing the measured coordinate value, which can improve the accuracy of wireless positioning and make the positioning trajectory of the coordinate point smoother. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A schematic diagram of the topological structure of a UWB positioning system in one embodiment;
[0067] Figure 2 A schematic diagram of a flow chart of a wireless positioning method in an embodiment;
[0068] Figure 3is a flow chart of a wireless positioning method in another embodiment;
[0069] Figure 4 is an example diagram of a coordinate trajectory of an object to be located in an embodiment;
[0070] Figure 5 is a structural block diagram of a wireless positioning device in one embodiment;
[0071] Figure 6 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0073] The wireless positioning method provided by the present application can be applied to electronic devices in a wireless positioning system. The wireless positioning system can be a real-time positioning system such as a UWB positioning system, an RFID positioning system, an ultrasonic positioning system, etc. The electronic device can be a computer, a mobile phone, a server, a wearable device, etc., which is equipped with positioning software and has processing capabilities. Taking the wireless positioning method provided by the present application as an example of being applied to a UWB positioning system, the wireless positioning method can be applied to Figure 1 In the application environment shown, Figure 1 FIG. 1 is a topological structure diagram of a UWB positioning system in an embodiment. As a short-range communication tool, UWB plays an important role in short-range precise positioning by utilizing its ultra-wideband and high-speed pulse carrier characteristics. UWB technology is usually used to locate mobile tags in real time. UWB positioning technology can be used for indoor precise positioning and navigation in various fields, including the positioning of people and large objects, such as valuables storage, mine personnel positioning, robot motion tracking, car parking in basements, etc.
[0074] like Figure 1As shown, there are multiple positioning base stations, multiple positioning tags and an electronic device in the wireless positioning area of the UWB positioning system. Among them, the positioning tag is the object that needs to be positioned, and is a device that uses UWB technology to obtain its own position coordinates; the positioning base station is a positioning device, which is a device that uses UWB technology to locate the positioning tag; the electronic device is installed with UWB positioning software, which is used to implement the wireless positioning method provided by this application. The electronic device communicates with the positioning base station through the network to obtain positioning data, and the UWB positioning software obtains the position information of the current coordinate point of the positioning tag by processing the positioning data. The UWB positioning software can also be used to playback the historical trajectory of the positioning tag and store the position information of the historical positioning points. The first vector can be determined by the position information of the current coordinate point and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point. The second vector can be determined by the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, and then the composite vector is obtained according to the first vector and the second vector, and the positioning coordinate value of the current coordinate point is determined according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point, so as to achieve precise positioning.
[0075] It should be noted that in actual applications, there may be a large number of positioning base stations and positioning tags in the UWB positioning system. Due to space limitations, Figure 1 The number of 4 positioning base stations and 2 positioning tags is merely taken as an example and is not intended to limit the present application.
[0076] In one embodiment, Figure 2 As shown, a wireless positioning method is provided. This embodiment mainly applies the wireless positioning method to Figure 1 Take the electronic equipment in the example. Figure 2 As shown, the wireless positioning method may include the following steps:
[0077] Step 102: Obtain the measured coordinate value of the current coordinate point of the object to be located.
[0078] The object to be located is an object carrying a positioning tag, which may be a person or an object carrying a positioning tag.
[0079] In the embodiment of the present application, the measured coordinate value of the current coordinate point of the object to be located can be obtained by positioning through an existing positioning algorithm. For example, the measured coordinate value of the current coordinate point can be obtained by a time of arrival (TOA) positioning algorithm, a time difference of arrival (TDOA) positioning algorithm, an angle of arrival (AOA) positioning algorithm, or a hybrid technology of the above three positioning algorithms, and the present application does not limit this.
[0080] Step 104 : Determine a first vector V1 according to the measured coordinate value and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point.
[0081] Among them, the first coordinate point is a historical positioning point adjacent to the current coordinate point in the current movement trajectory of the object to be located, that is, the first coordinate point is a positioning point before the current coordinate point and closest to the current coordinate point. The historical positioning coordinate value corresponding to the first coordinate point can be the measured coordinate value of the first positioning point, or it can be an optimized positioning coordinate value. For example, when the first coordinate point is the second positioning point on the current movement trajectory of the object to be located, the historical positioning coordinate value corresponding to the first coordinate point is the measured coordinate value calculated according to the positioning algorithm. When the first coordinate point is the third positioning point and the subsequent positioning points on the current movement trajectory of the object to be located, the historical positioning coordinate value corresponding to the first coordinate point is the positioning coordinate value determined by the wireless positioning method provided by the present application, which is an optimized coordinate value. The historical positioning coordinate value corresponding to the first coordinate point can be stored in the local storage space of the electronic device, and can be directly queried and obtained when needed.
[0082] A vector can be determined based on the coordinates of two points. Therefore, in an embodiment of the present application, a vector can be determined based on the measured coordinate values and the historical positioning coordinate values corresponding to the first coordinate point adjacent to the current coordinate point. The vector is recorded as the first vector and can be represented by V1.
[0083] Exemplarily, assuming that the current coordinate point is P4 (x4, y4, z4), and the first coordinate point adjacent to P4 is P3 (x3, y3, z3), then the first vector is V1=P4-P3=(x4-x3, y4-y3, z4-z3).
[0084] Step 106: Determine a second vector V2 according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2.
[0085] Usually, at least two points are needed to determine a line. The more points there are, the more accurate the fitted curve is. In the embodiment of the present application, the historical positioning coordinate values corresponding to the first n coordinate points closest to the current coordinate point on the moving trajectory of the object to be located can be obtained. The historical positioning coordinate values can be obtained from the local storage space of the electronic device. According to the historical positioning coordinate values corresponding to the first n coordinate points, the second vector can be determined, which is recorded as V2.
[0086] Exemplarily, when n is 2, the distance between the two coordinate points can be taken as the size of the second vector, and the direction of the vector determined by the two coordinate points can be taken as the direction of the second vector, and the second vector V2 is determined accordingly.
[0087] Exemplarily, when n is a positive integer greater than or equal to 3, a curve can be fitted according to the determined n coordinate points, and the tangent direction of the curve at a positioning point closest to the current coordinate point is determined as the direction of the second vector, and the size of the second vector can be determined according to the multi-order difference of a positioning point closest to the current coordinate point. The specific determination process will be described in subsequent embodiments and will not be described in detail here. Once the size and direction of the second vector are determined, the second vector V2 is determined accordingly.
[0088] It can be understood that based on the direction and size of the second vector, the components of the second vector in the x, y and z directions can be determined, so that the second vector can be expressed in a coordinate form similar to the first vector. The second vector can be regarded as a vector composed of the first coordinate point and the estimated point corresponding to the current coordinate point. The coordinate value of the estimated point can be determined based on the historical positioning coordinate value corresponding to the first coordinate point and the components of the second vector.
[0089] Step 108, determining a composite vector according to the first vector V1 and the second vector V2.
[0090] In the embodiment of the present application, a composite vector may be determined based on the determined first vector V1 and the second vector V2.
[0091] Exemplarily, a vector addition operation may be performed on the first vector V1 and the second vector V2 to obtain a resultant vector.
[0092] Step 110, determining the positioning coordinate value of the current coordinate point according to the synthesized vector and the historical positioning coordinate value corresponding to the first coordinate point.
[0093] Since the first vector V1 and the second vector V2 can be expressed in coordinate form, the resultant vector can be added to the historical positioning coordinate value corresponding to the first coordinate point, and the obtained coordinate value is the positioning coordinate value of the current coordinate point.
[0094] It can be understood that the positioning coordinate value of the current coordinate point can be stored in the local storage space of the electronic device and can be used as the historical positioning coordinate value corresponding to the first coordinate point adjacent to the next coordinate point for the positioning process of the next coordinate point.
[0095] In the embodiment of the present application, the first vector is a vector determined according to the actual measured coordinate value of the coordinate point, and the second vector is a vector estimated according to the moving trajectory of the object to be located. The second vector can correct the first vector, so that the composite vector of the first vector and the second vector and the historical positioning coordinate value of the adjacent previous coordinate point can be corrected and optimized compared with the measured coordinate value, thereby achieving the purpose of solving the poor positioning accuracy caused by signal drift and jamming by integrating the measured path and the fitted path, and improving the positioning accuracy. In addition, the solution of the present application can be implemented without relying on the assistance of hardware sensors, is low-cost and easy to implement, and has strong feasibility and practicality.
[0096] The wireless positioning method provided in the embodiment of the present application first determines a first vector according to the measured coordinate value of the current coordinate point of the object to be positioned and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point, and then determines a second vector according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2, and then determines a composite vector according to the first vector and the second vector, and finally determines the positioning coordinate value of the current coordinate point according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point. Since the second vector is determined according to the historical positioning coordinate values of the first n coordinate points, the trend of the object to be positioned moving along the original direction is taken into account, so that the positioning coordinate value of the current coordinate point finally determined takes into account both the measured coordinates and the original movement trend, so that the second vector plays a role in correcting and optimizing the measured coordinate value, which can improve the accuracy of wireless positioning and make the positioning trajectory of the coordinate point smoother.
[0097] In one embodiment, Figure 3 As shown, in Figure 2 Based on the illustrated embodiment, step 106 may include the following steps:
[0098] Step 202 , performing curve fitting based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, to obtain the motion trajectory equation of the object to be positioned.
[0099] Wherein, n is a positive integer greater than or equal to 2. The first n coordinate points refer to the first n positioning points on the moving trajectory of the object to be positioned that are closest to the current positioning point, including the first coordinate point adjacent to the current positioning point. The historical positioning coordinate values corresponding to the first n coordinate points can be obtained from the local storage space of the electronic device.
[0100] In the embodiment of the present disclosure, a curve fitting is performed based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, and the motion trajectory equation of the object to be positioned can be obtained. When n is 2, the motion trajectory equation obtained by fitting is a straight line, and when n is a positive integer greater than 2, the motion trajectory equation obtained by fitting may be a straight line or a curve.
[0101] It should be noted that the motion trajectory equation of the object to be located can be obtained by fitting the historical positioning coordinate values of n coordinate points using existing curve fitting tools, which is not described in detail in this application.
[0102] Step 204: determine the tangent direction of the motion trajectory equation as the direction of the second vector V2.
[0103] According to the inertia principle, an object tends to move in the original direction, and the original direction is in the tangent direction of the curve or in the straight line direction. Especially for UWB technology, its duty cycle is low and it has high distance sensitivity. It can distinguish very short distances, that is, a coordinate point can be obtained at a very short distance, so it is very suitable for the inertia principle. Therefore, in the embodiment of the present application, the motion direction of the object to be located under inertia can be determined as the direction of the second vector V2 according to the motion trajectory equation obtained by fitting.
[0104] For example, if the fitted motion trajectory equation is a straight line equation, the tangent direction is consistent with the straight line direction and can be represented by the slope of the straight line equation; if the fitted motion trajectory equation is a curve equation, the first-order derivative of the curve equation can be solved, and the tangent direction of the motion trajectory equation at the first coordinate point adjacent to the current coordinate point is determined as the direction of the second vector V2. The tangent direction of the curve equation can be solved using the relevant curve equation tangent solution method, which is not described in detail in this application.
[0105] Step 206, determining the i-th order difference of the first coordinate point according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where i is a positive integer less than n.
[0106] In the embodiment of the present application, the i-th order difference of the first coordinate point can be determined according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point, where i is at least 1.
[0107] Exemplarily, when n is 2, the first two coordinate points adjacent to the current coordinate point are obtained, including the first coordinate point and the second coordinate point, wherein the first coordinate point is adjacent to the current coordinate point, and the first-order difference of the first coordinate point can be determined according to the historical positioning coordinate values corresponding to the first coordinate point and the second coordinate point, respectively. The first-order difference is the modulus length of the vector formed by the first coordinate point and the second coordinate point.
[0108] Exemplarily, when n is greater than 2, the first n coordinate points adjacent to the current coordinate point are obtained, including the first coordinate point adjacent to the current coordinate point and the first (n-1) coordinate points closest to the first coordinate point. According to the historical positioning coordinate values corresponding to the first n coordinate points, the first-order difference, second-order difference, third-order difference to (n-1)-order difference of the first coordinate point can be determined.
[0109] Points in space are usually represented by three-dimensional coordinates. A curve can be determined by knowing the coordinates of three points. Therefore, in one embodiment, in order to reduce the computational complexity and computational overhead, n can be taken as 3, and the i-order difference of the first coordinate point is determined according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, including: determining the first-order difference of the first coordinate point according to the historical positioning coordinate value of the first coordinate point and the historical positioning coordinate value of the second coordinate point adjacent to the first coordinate point; determining the first-order difference of the second coordinate point according to the historical positioning coordinate value of the second coordinate point and the historical positioning coordinate value of the third coordinate point adjacent to the second coordinate point; and calculating the difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point to obtain the second-order difference of the first coordinate point.
[0110] In this embodiment, when the value of n is 3, the first-order difference and the second-order difference of the first coordinate point can be calculated.
[0111] Exemplarily, assuming that the first coordinate point is P3 (x3, y3, z3), the second coordinate point is P2 (x2, y2, z2), and the third coordinate point is P1 (x1, y1, z1), then the first-order difference of the first coordinate point is ΔP3 = || (P3-P2) ||, that is, the modulus of the vector (P3-P2) formed by the second coordinate point and the first coordinate point, the first-order difference of the second coordinate point is ΔP2 = || (P2-P1) ||, that is, the modulus of the vector (P2-P1) formed by the third coordinate point and the second coordinate point, and the second-order difference of the first coordinate point can be obtained according to the difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point, that is, the second-order difference of the first coordinate point (denoted as ΔΔP) can be expressed as ΔΔP = || (P3-P2) || - || (P2-P1) ||. Among them, the second-order difference is used to characterize the change amplitude of the first-order difference and to correct the first-order difference. The value of the second-order difference can be positive or negative. A positive value indicates that the first-order difference is increasing, that is, the distance to the next point will be longer than the previous point. A negative value indicates that the first-order difference is shortening, that is, the distance to the next point will be shorter than the previous point.
[0112] It should be noted that, in the embodiments of the present application, the number of coordinate points used to fit the motion trajectory equation of the object to be located may be the same as or different from the number of coordinate points used to determine the i-order difference of the first coordinate point. The present application only uses the sameness of the two as an example to explain the present application, and it cannot be used as a limitation on the present application.
[0113] Step 208, determining the size of the second vector V2 according to the i-th order difference of the first coordinate point.
[0114] In the embodiment of the present application, the size of the second vector V2 can be determined according to the i-th order difference of the first coordinate point.
[0115] For example, when n is 2, the first-order difference of the first coordinate point is the size of the second vector V2. When n is greater than 2, the size of the second vector V2 can be expressed as the sum of the i-order differences of the first coordinate point, or the size of the second vector V2 can also be expressed as Among them, Δ j P represents the j-order difference of the first coordinate point. In the embodiment of the present application, there is more than one way to determine the size of the second vector according to the i-order difference of the first coordinate point. In addition to the calculation method provided in the present application, other methods that can determine the size of the second vector not recorded in the present application should also belong to the content disclosed in the present application.
[0116] In one embodiment, when the value of n is 3, the size of the second vector V2 can be calculated by the following formula (1).
[0117] ||V2||=ΔP+ΔP*ΔΔP (1)
[0118] Among them, ||V2|| is the modulus of the second vector V2, that is, it represents the size of V2, ΔP represents the first-order difference of the first coordinate point, and ΔΔP represents the second-order difference of the first coordinate point.
[0119] In the embodiment of the present application, the magnitude and direction of the second vector are determined, and the second vector V2 is also determined accordingly.
[0120] The wireless positioning method of this embodiment obtains the motion trajectory equation of the object to be located by performing curve fitting based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, determines the tangent direction of the motion trajectory equation as the direction of the second vector, and determines the i-th order difference of the first coordinate point based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where i is a positive integer less than n, and then determines the size of the second vector based on the i-th order difference of the first coordinate point. As a result, the second vector can be estimated based on the moving trajectory of the object to be located and the historical positioning coordinate values, providing conditions for optimizing the position of the current coordinate point based on the second vector.
[0121] In one embodiment, the synthesized vector may be determined by performing a weighted summation on the first vector V1 and the second vector V2. Specifically, the synthesized vector may be determined by the following formula (2).
[0122] V0=a*V1+(1-a)*V2 (2)
[0123] Where V0 represents the synthetic vector, a represents the weight of the first vector V1, 0 <a≤1。
[0124] In an embodiment of the present application, the value of weight a can be determined in advance. For example, the value of weight a can be determined according to the degree of interference in the UWB positioning system. For an interference-free positioning system, V1 can be trusted more and a larger weight can be assigned to V1. For example, the value of a can be set to 0.6. For a positioning system with severe interference, since interference can easily cause signal drift, the probability of the coordinate point deviating from the original moving trajectory is relatively high. Therefore, V2 can be trusted more and a larger weight can be assigned to V2. The weight a of the first vector is smaller. For example, the value of a can be set to 0.3.
[0125] In one embodiment, the number of objects to be located in the wireless positioning system can be counted, and based on the number of objects to be located, the correspondence between the preset numbers of different positioning objects and the weights of the first vector V1 can be queried to determine the weight corresponding to the number of objects to be located as the value of a.
[0126] The corresponding relationship between the number of different positioning objects and the weight of the first vector V1 can be preset and stored.
[0127] Exemplarily, the corresponding relationship between the number of different positioning objects and the weight of the first vector V1 is shown in Table 1.
[0128] Table 1
[0129] Number of objects located in the positioning system The weight of the first vector V1 1~5 1 6~10 0.9 … … 50~60 0.6 61~80 0.5 … … 150 and above 0.1
[0130] As shown in Table 1, the more the number of positioning objects in the system is, the more serious the interference is, and the smaller the weight of the first vector V1 is.
[0131] In the embodiment of the present application, according to the number of objects to be located in the wireless positioning system, by querying Table 1, the weight of the first vector V1 corresponding to the number of objects to be located can be determined, and the weight can be used as the initial value of a. The value of a can be continuously corrected according to the positioning result of the positioning object in the actual positioning system to obtain a relatively accurate value.
[0132] In one embodiment, the measured coordinate values and the real coordinate values corresponding to multiple reference points in the wireless positioning area may be obtained, and the weight of the first vector V1 may be adjusted according to the difference between the measured coordinate value and the real coordinate value corresponding to each reference point.
[0133] The reference point can be a plurality of randomly selected positioning points in the wireless positioning area, or a historical positioning point of the object to be positioned, or a positioning point of another positioning object. The real coordinate value of the reference point can be determined according to the actual position of the reference point, which can be a calibrated position or a positioning coordinate value of the positioning point.
[0134] In an embodiment of the present application, the difference between the measured coordinate value and the actual coordinate value corresponding to each reference point can be compared, and the weight of the first vector V1 can be adjusted according to the determined difference. When the difference is large, the weight is lowered based on the current weight, and when the difference is small, the weight is increased based on the current weight.
[0135] Exemplarily, for each reference point, the difference between the measured coordinate value and the true coordinate value is compared, and it is determined whether the difference is within the preset allowable difference range, the number of reference points whose differences are not within the allowable difference range is counted, and compared with the preset threshold value, when the number of reference points whose differences are not within the allowable difference range exceeds the first threshold value, the weight of the first vector V1 is lowered; when the number of reference points whose differences are not within the allowable difference range is less than the second threshold value, the weight of the first vector V1 is increased; when the number of reference points whose differences are not within the allowable difference range is greater than or equal to the second threshold value and less than or equal to the first threshold value, the weight of the first vector V1 is kept unchanged. Among them, the first threshold value is greater than the second threshold value, and the adjustment range of the weight of the first vector can be preset, for example, it can be set to 0.1, 0.05, etc., and the weight of the first vector is adjusted according to the preset adjustment range each time.
[0136] In an embodiment of the present application, by obtaining measured coordinate values and true coordinate values corresponding to multiple reference points in the wireless positioning area, the weight of the first vector is adjusted according to the difference between the measured coordinate value and the true coordinate value corresponding to each reference point. Thus, dynamic adjustment of the weight of the first vector is achieved, which is beneficial to improving positioning accuracy.
[0137] Figure 4 is an example diagram of the coordinate trajectory of the object to be located in one embodiment, Figure 4 In the example, P0, P1, P2 and P3 are historical coordinate points of the object to be located. The historical coordinate values of each point can be stored in the local storage space of the electronic device. Among them, P3 is the latest coordinate point and is also the coordinate point adjacent to P4, that is, the first coordinate point described in this application. Assuming that the current coordinate point of the object to be located is P4, the purpose is to accurately determine the positioning coordinate value of P4. Figure 4As shown, the position of the next point obtained by actual ranging is at point P4 Test, and points P3 and P4Test form vector V1. The motion trajectory of the object to be located can be fitted based on the coordinate points P0 to P3 before P4, and the tangent direction of the trajectory at P3 can be determined as the vector direction. The first-order difference and second-order difference of P3 can be calculated based on the positioning coordinate values of points P1, P2, and P3. The size of the vector can be determined based on the first-order difference and second-order difference of P3, and the direction and size of the vector can be determined based on the vector. Figure 4 The vector V2 in the equation is used to determine the position of the estimated point P4 EST of the current coordinate point. Based on V1 and V2, a vector V0 can be synthesized, where V0 = a*V1+(1-a)*V2. Then, based on the positioning coordinate values of V0 and P3, the positioning coordinate value of P4 can be determined, where P4 = V0+P3. Thus, the precise position of P4 is obtained. Figure 4 It can be seen that compared with the measured point P4 Test and the estimated point P4EST, the motion trajectory formed by the final determined P4 and the historical positioning points P0~P3 is smoother.
[0138] It should be understood that although Figure 2-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0139] In one embodiment, Figure 5 As shown, a wireless positioning device is provided, the wireless positioning device 30 includes an acquisition module 302, a first determination module 304, a second determination module 306, a third determination module 308 and a fourth determination module 310. Among them:
[0140] The acquisition module 302 is used to acquire the measured coordinate value of the current coordinate point of the object to be located.
[0141] The first determination module 304 is used to determine a first vector V1 according to the measured coordinate value and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point.
[0142] The second determination module 306 is used to determine the second vector V2 according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2.
[0143] The third determination module 308 is used to determine a composite vector according to the first vector V1 and the second vector V2.
[0144] The fourth determination module 310 is used to determine the positioning coordinate value of the current coordinate point according to the synthesized vector and the historical positioning coordinate value corresponding to the first coordinate point.
[0145] In one embodiment, the second determining module 306 includes:
[0146] The curve fitting unit is used to perform curve fitting according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, so as to obtain the motion trajectory equation of the object to be positioned.
[0147] A vector direction determining unit is used to determine the tangent direction of the motion trajectory equation as the direction of the second vector V2.
[0148] The difference determination unit is used to determine the i-th order difference of the first coordinate point according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point, where i is a positive integer less than n.
[0149] A vector size determination unit is used to determine the size of the second vector V2 according to the i-th order difference of the first coordinate point.
[0150] In one embodiment, the value of n is 3, and the difference determination unit is specifically used to:
[0151] A first-order difference of the first coordinate point is determined according to a historical positioning coordinate value of the first coordinate point and a historical positioning coordinate value of a second coordinate point adjacent to the first coordinate point.
[0152] The first-order difference of the second coordinate point is determined according to the historical positioning coordinate value of the second coordinate point and the historical positioning coordinate value of a third coordinate point adjacent to the second coordinate point.
[0153] The difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point is calculated to obtain the second-order difference of the first coordinate point.
[0154] In one embodiment, the vector size determination unit is specifically configured to:
[0155] The size of the second vector V2 is determined by the following formula:
[0156] ||V2||=ΔP+ΔP*ΔΔP;
[0157] Among them, ||V2|| is the modulus of the second vector V2, ΔP represents the first-order difference of the first coordinate point, and ΔΔP represents the second-order difference of the first coordinate point.
[0158] In one embodiment, the third determining module 308 is specifically configured to:
[0159] The resultant vector is calculated by the following formula:
[0160] V0=a*V1+(1-a)*V2
[0161] Wherein, V0 represents the synthetic vector, a represents the weight of the first vector V1, 0 <a≤1。
[0162] In one embodiment, the apparatus further comprises:
[0163] The reference point acquisition module is used to obtain the measured coordinate values and real coordinate values corresponding to multiple reference points in the wireless positioning area.
[0164] The adjustment module is used to adjust the weight of the first vector V1 according to the difference between the measured coordinate value and the real coordinate value corresponding to each reference point.
[0165] In one embodiment, the apparatus further comprises:
[0166] The statistics module is used to count the number of objects to be located in the wireless positioning system.
[0167] The weight determination module is used to query the corresponding relationship between the preset numbers of different positioning objects and the weights of the first vector V1 according to the number of the objects to be positioned, and determine the weight corresponding to the number of the objects to be positioned as the value of a.
[0168] The wireless positioning device provided in the embodiment of the present application first determines a first vector according to the measured coordinate value of the current coordinate point of the object to be positioned and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point, and then determines a second vector according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2, and then determines a composite vector according to the first vector and the second vector, and finally determines the positioning coordinate value of the current coordinate point according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point. Since the second vector is determined according to the historical positioning coordinate values of the first n coordinate points, the trend of the object to be positioned moving along the original direction is taken into account, so that the positioning coordinate value of the current coordinate point finally determined takes into account both the measured coordinates and the original movement trend, so that the second vector plays a role in correcting and optimizing the measured coordinate value, which can improve the accuracy of wireless positioning and make the positioning trajectory of the coordinate point smoother.
[0169] For the specific definition of the wireless positioning device, please refer to the definition of the wireless positioning method above, which will not be repeated here. Each module in the above wireless positioning device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0170] In one embodiment, an electronic device is provided. The electronic device may be a device including wireless positioning software, and its internal structure diagram may be as follows: Figure 6 As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store the positioning coordinate values of each coordinate point of the positioning object. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a wireless positioning method is implemented.
[0171] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0172] In one embodiment, the wireless positioning device provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 6 The memory of the electronic device may store various program modules constituting the wireless positioning device, such as: Figure 5 The acquisition module, the first determination module, the second determination module, the third determination module and the fourth determination module shown in the figure. The computer program composed of each program module enables the processor to execute the steps of the wireless positioning method in each embodiment of the present application described in this specification.
[0173] For example, Figure 6 The electronic device shown can be Figure 5The acquisition module in the wireless positioning device shown executes the step of acquiring the measured coordinate value of the current coordinate point of the object to be located. The electronic device can perform the step of determining the first vector V1 according to the measured coordinate value and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point through the first determination module. The electronic device can perform the step of determining the second vector V2 according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point through the second determination module, where n is a positive integer greater than or equal to 2. The electronic device can perform the step of determining the composite vector according to the first vector V1 and the second vector V2 through the third determination module. The electronic device can perform the step of determining the positioning coordinate value of the current coordinate point according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point through the fourth determination module.
[0174] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: obtaining the measured coordinate value of the current coordinate point of the object to be located; determining a first vector V1 according to the measured coordinate value and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point; determining a second vector V2 according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, wherein n is a positive integer greater than or equal to 2; determining a composite vector according to the first vector V1 and the second vector V2; and determining the positioning coordinate value of the current coordinate point according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point.
[0175] In one embodiment, the processor further implements the following steps when executing the computer program: performing curve fitting based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point to obtain the motion trajectory equation of the object to be located; determining the tangent direction of the motion trajectory equation as the direction of the second vector V2; determining the i-th order difference of the first coordinate point based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where i is a positive integer less than n; and determining the size of the second vector V2 based on the i-th order difference of the first coordinate point.
[0176] In one embodiment, when n takes a value of 3, the processor further implements the following steps when executing the computer program: determining the first-order difference of the first coordinate point based on the historical positioning coordinate value of the first coordinate point and the historical positioning coordinate value of the second coordinate point adjacent to the first coordinate point; determining the first-order difference of the second coordinate point based on the historical positioning coordinate value of the second coordinate point and the historical positioning coordinate value of the third coordinate point adjacent to the second coordinate point; calculating the difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point to obtain the second-order difference of the first coordinate point.
[0177] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: determining the size of the second vector V2 by the following formula:
[0178] ||V2||=ΔP+ΔP*ΔΔP;
[0179] Among them, ||V2|| is the modulus of the second vector V2, ΔP represents the first-order difference of the first coordinate point, and ΔΔP represents the second-order difference of the first coordinate point.
[0180] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the synthetic vector is calculated by the following formula:
[0181] V0=a*V1+(1-a)*V2
[0182] Wherein, V0 represents the synthetic vector, a represents the weight of the first vector V1, 0 <a≤1。
[0183] In one embodiment, when the processor executes the computer program, it also implements the following steps: obtaining measured coordinate values and real coordinate values corresponding to multiple reference points in the wireless positioning area; adjusting the weight of the first vector V1 according to the difference between the measured coordinate value and the real coordinate value corresponding to each of the reference points.
[0184] In one embodiment, when the processor executes the computer program, the following steps are also implemented: counting the number of objects to be located in the wireless positioning system; according to the number of objects to be located, querying the correspondence between the preset numbers of different positioning objects and the weights of the first vector V1, and determining the weight corresponding to the number of objects to be located as the value of a.
[0185] The electronic device provided in the embodiment of the present application first determines a first vector according to the measured coordinate value of the current coordinate point of the object to be located and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point, and then determines a second vector according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2, and then determines a composite vector according to the first vector and the second vector, and finally determines the positioning coordinate value of the current coordinate point according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point. Since the second vector is determined according to the historical positioning coordinate values of the first n coordinate points, the trend of the object to be located moving along the original direction is taken into account, and thus the positioning coordinate value of the current coordinate point finally determined takes into account both the measured coordinates and the original movement trend, so that the second vector plays a role in correcting and optimizing the measured coordinate value, which can improve the accuracy of wireless positioning and make the positioning trajectory of the coordinate point smoother.
[0186] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining the measured coordinate value of the current coordinate point of the object to be located; determining a first vector V1 according to the measured coordinate value and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point; determining a second vector V2 according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, wherein n is a positive integer greater than or equal to 2; determining a composite vector according to the first vector V1 and the second vector V2; determining the positioning coordinate value of the current coordinate point according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point.
[0187] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: curve fitting is performed based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point to obtain the motion trajectory equation of the object to be located; the tangent direction of the motion trajectory equation is determined as the direction of the second vector V2; based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, the i-th order difference of the first coordinate point is determined, where i is a positive integer less than n; based on the i-th order difference of the first coordinate point, the size of the second vector V2 is determined.
[0188] In one embodiment, when n takes a value of 3, the computer program further implements the following steps when executed by the processor: determine the first-order difference of the first coordinate point based on the historical positioning coordinate value of the first coordinate point and the historical positioning coordinate value of the second coordinate point adjacent to the first coordinate point; determine the first-order difference of the second coordinate point based on the historical positioning coordinate value of the second coordinate point and the historical positioning coordinate value of the third coordinate point adjacent to the second coordinate point; calculate the difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point to obtain the second-order difference of the first coordinate point.
[0189] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the size of the second vector V2 is determined by the following formula:
[0190] ||V2||=ΔP+ΔP*ΔΔP;
[0191] Among them, ||V2|| is the modulus of the second vector V2, ΔP represents the first-order difference of the first coordinate point, and ΔΔP represents the second-order difference of the first coordinate point.
[0192] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the synthetic vector is calculated by the following formula:
[0193] V0=a*V1+(1-a)*V2
[0194] Wherein, V0 represents the synthetic vector, a represents the weight of the first vector V1, 0 <a≤1。
[0195] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining measured coordinate values and real coordinate values corresponding to multiple reference points in the wireless positioning area; adjusting the weight of the first vector V1 according to the difference between the measured coordinate value and the real coordinate value corresponding to each of the reference points.
[0196] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: counting the number of objects to be located in the wireless positioning system; based on the number of objects to be located, querying the correspondence between the preset numbers of different positioning objects and the weights of the first vector V1, and determining the weight corresponding to the number of objects to be located as the value of a.
[0197] The computer-readable storage medium provided in the embodiment of the present application first determines a first vector according to the measured coordinate value of the current coordinate point of the object to be located and the historical positioning coordinate value corresponding to the first coordinate point adjacent to the current coordinate point, and then determines a second vector according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where n is a positive integer greater than or equal to 2, and then determines a composite vector according to the first vector and the second vector, and finally determines the positioning coordinate value of the current coordinate point according to the composite vector and the historical positioning coordinate value corresponding to the first coordinate point. Since the second vector is determined according to the historical positioning coordinate values of the first n coordinate points, the trend of the object to be located to move along the original direction is taken into account, so that the positioning coordinate value of the current coordinate point finally determined takes into account both the measured coordinates and the original movement trend, so that the second vector plays a role in correcting and optimizing the measured coordinate value, which can improve the accuracy of wireless positioning and make the positioning trajectory of the coordinate point smoother.
[0198] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).
[0199] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0200] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A wireless positioning method, It is characterized in that include: Get the measured coordinate value of the current coordinate point of the object to be located; Determine a first vector V1 according to the measured coordinate value and a historical positioning coordinate value corresponding to a first coordinate point adjacent to the current coordinate point; Determine a second vector V2 according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point; Determine a composite vector according to the first vector V1 and the second vector V2; Determine the positioning coordinate value of the current coordinate point according to the synthetic vector and the historical positioning coordinate value corresponding to the first coordinate point; The determining of the second vector V2 according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point includes: Performing curve fitting based on the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, respectively, to obtain the motion trajectory equation of the object to be positioned; Determine the tangent direction of the motion trajectory equation as the direction of the second vector V2; Determine the i-th order difference of the first coordinate point according to the historical positioning coordinate values corresponding to the first n coordinate points adjacent to the current coordinate point, where i is a positive integer less than n; Determine the size of the second vector V2 according to the i-th order difference of the first coordinate point; Wherein, n is 3, and determining the i-order difference of the first coordinate point according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point includes: Determine a first-order difference of the first coordinate point according to a historical positioning coordinate value of the first coordinate point and a historical positioning coordinate value of a second coordinate point adjacent to the first coordinate point; Determine a first-order difference of the second coordinate point according to the historical positioning coordinate value of the second coordinate point and the historical positioning coordinate value of a third coordinate point adjacent to the second coordinate point; The difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point is calculated to obtain the second-order difference of the first coordinate point.
2. The wireless positioning method according to claim 1, It is characterized in that The determining the size of the second vector V2 according to the i-th order difference of the first coordinate point includes: The size of the second vector V2 is determined by the following formula: ; in, is the modulus of the second vector V2, ΔP represents the first-order difference of the first coordinate point, and ΔΔP represents the second-order difference of the first coordinate point.
3. The wireless positioning method according to any one of claims 1 to 2, It is characterized in that The step of determining a composite vector according to the first vector V1 and the second vector V2 includes: The resultant vector is calculated by the following formula: V0=a*V1+(1-a)*V2 Wherein, V0 represents the synthetic vector, a represents the weight of the first vector V1, 0 <a≤1。 4. The wireless positioning method according to claim 3, It is characterized in that The method further comprises: Obtaining measured coordinate values and real coordinate values corresponding to multiple reference points in the wireless positioning area; The weight of the first vector V1 is adjusted according to the difference between the measured coordinate value and the real coordinate value corresponding to each reference point.
5. The wireless positioning method according to claim 3, It is characterized in that The method further comprises: Count the number of objects to be located in the wireless positioning system; According to the number of objects to be located, the correspondence between the preset numbers of different located objects and the weights of the first vector V1 is queried, and the weight corresponding to the number of objects to be located is determined as the value of a.
6. A wireless positioning device, It is characterized in that include: An acquisition module is used to acquire the measured coordinate value of the current coordinate point of the object to be located; A first determining module, configured to determine a first vector V1 according to the measured coordinate value and a historical positioning coordinate value corresponding to a first coordinate point adjacent to the current coordinate point; A second determination module, used to determine a second vector V2 according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point; A third determining module, configured to determine a composite vector according to the first vector V1 and the second vector V2; a fourth determining module, configured to determine the positioning coordinate value of the current coordinate point according to the synthesized vector and the historical positioning coordinate value corresponding to the first coordinate point; The second determining module includes: A curve fitting unit, used for performing curve fitting according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point, to obtain the motion trajectory equation of the object to be positioned; a vector direction determining unit, configured to determine the tangent direction of the motion trajectory equation as the direction of the second vector V2; A difference determination unit, used to determine the i-th order difference of the first coordinate point according to the historical positioning coordinate values respectively corresponding to the first n coordinate points adjacent to the current coordinate point, where i is a positive integer less than n; a vector size determination unit, configured to determine the size of the second vector V2 according to the i-th order difference of the first coordinate point; Wherein, the value of n is 3, and the difference determination unit is further used for: Determine a first-order difference of the first coordinate point according to a historical positioning coordinate value of the first coordinate point and a historical positioning coordinate value of a second coordinate point adjacent to the first coordinate point; Determine a first-order difference of the second coordinate point according to the historical positioning coordinate value of the second coordinate point and the historical positioning coordinate value of a third coordinate point adjacent to the second coordinate point; The difference between the first-order difference of the first coordinate point and the first-order difference of the second coordinate point is calculated to obtain the second-order difference of the first coordinate point.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the wireless positioning method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the wireless positioning method according to any one of claims 1 to 5 are implemented.
