Indoor positioning method, electronic device and computer readable storage medium
By using the RSSI value error and CINR variation between multiple wireless devices to calculate the root mean square error, high-precision positioning in complex indoor environments is achieved and the problem of low positioning accuracy in the existing technology is solved.
Patent Information
- Application Number
- CN202010359076.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-04-29
AI Technical Summary
Existing indoor positioning methods such as RSSI value calculation have low positioning accuracy and limited practicality due to factors such as complex decoration and crowds.
By using the RSSI value error between multiple wireless devices to define the position range of the object to be located, the RSSI movement vector and relative position angle are calculated, combined with the CINR change, the root mean square error is calculated to accurately locate the object position.
It improves the accuracy of indoor positioning and can accurately determine the specific location of the object to be located in complex environments.
Smart Images

Figure CN113567917B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a positioning method, and more particularly to an indoor positioning method based on received signal strength indication (RSSI), an electronic device and a computer-readable storage medium. Background Art
[0002] Currently, many indoor positioning methods determine the location of mobile devices by calculating the received signal strength indication (RSSI) value. The RSSI value is calculated as follows. The "receiver (i.e., mobile device)" receives signals from different "base stations", and due to different transmission distances, different degrees of signal attenuation will occur. Through the degree of received signal attenuation, the distance between the receiver and each base station can be calculated, and then the "triangulation positioning formula" can be applied to calculate the coordinates of the receiver.
[0003] However, RSSI is not without its shortcomings. When there are any factors that may cause signal attenuation indoors, the calculation will be inaccurate, such as complex decorations, crowds of people, etc. Therefore, the practicality of RSSI is limited and the positioning accuracy is difficult to improve. Summary of the invention
[0004] In view of the above, it is necessary to provide an indoor positioning method, an electronic device and a computer-readable storage medium, which can accurately locate the position of the object to be located by utilizing the high correlation characteristics of RSSI and CINR.
[0005] An embodiment of the present invention provides an indoor positioning method, which is applied to an electronic device, and defines a possible position range of the object to be positioned by using a first received signal strength indication (RSSI) value, a second RSSI value, and a third RSSI value error between the object to be positioned and at least a first wireless device, a second wireless device, and a third wireless device; calculates a first RSSI movement vector, a second RSSI movement vector, and a third RSSI movement vector between the object to be positioned and the first wireless device, the second wireless device, and the third wireless device according to the first RSSI value, the second RSSI value, and the third RSSI value, respectively, and defines a plurality of possible specific positions of the object to be positioned in the possible position range by using a dependency relationship between the first RSSI movement vector, the second RSSI movement vector, the third RSSI movement vector, and a relative angle between the positions of the first wireless device, the second wireless device, and the third wireless device; The default cutting accuracy of the relative angle of each position and the number of possible specific positions of the object to be located are determined by the weights of the first RSSI motion vector, the second RSSI motion vector and the third RSSI motion vector of the object to be located and the total angle within the possible position range relative to the first wireless device, the second wireless device and the third wireless device; the carrier signal to interference signal ratio (CINR) change of the object to be located is compared with the first RSSI motion vector, the second RSSI motion vector and the third RSSI motion vector in vector form to calculate the root mean square error; according to the root mean square error, it is determined whether the number of possible specific positions of the object to be located is less than a default value; and if the number of possible specific positions of the object to be located is not less than the default value, the possible specific position with the smallest error is selected as the actual positioning position of the object to be located.
[0006] The embodiment of the present invention further provides an electronic device, comprising a definition module, a calculation module and a judgment module. The definition module is used to define a possible position range of the object to be located by using the errors of the first RSSI value, the second RSSI value and the third RSSI value between the object to be located and at least the first wireless device, the second wireless device and the third wireless device. The calculation module is used to calculate the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector between the object to be located and the first wireless device, the second wireless device and the third wireless device respectively according to the first RSSI value, the second RSSI value and the third RSSI value, and define a plurality of possible specific positions of the object to be located in the possible position range by using the dependence relationship between the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector and the relative angle between the positions of the first wireless device, the second wireless device and the third wireless device, determine the default cutting accuracy of the relative angle of each position and the number of possible specific positions of the object to be located by the weights of the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector of the object to be located and the total angle relative to the first wireless device, the second wireless device and the third wireless device in the possible position range, and compare the CINR change of the object to be located with the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector in vector form to calculate the root mean square error. The judgment module is used to judge whether the number of possible specific positions of the object to be located is less than a default value according to the root mean square error, and if the number of possible specific positions of the object to be located is not less than the default value, select the possible specific position with the smallest error as the actual positioning position of the object to be located.
[0007] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, the steps of the indoor positioning method described above are implemented.
[0008] The indoor positioning method, indoor positioning device and computer-readable storage medium of the embodiments of the present invention detect the object to be positioned indoors, use the error of the RSSI value to define the possible location of the object to be positioned, calculate the RSSI movement vector between the object to be positioned and the base station based on the RSSI value, and use the dependence between the RSSI movement vector and the relative angle between the position of the base station to predict the specific position of the object to be positioned. Utilizing the high correlation characteristics of the co-frequency interference and CINR of multiple nodes, the vector is converted and compared with the RSSI movement vector to calculate a root mean square error. When the root mean square error is less than a preset critical value, the position of the object to be positioned can be accurately located. The present invention also provides an electronic device and a computer-readable storage medium. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a flowchart of the steps of the indoor positioning method according to an embodiment of the present invention.
[0010] Figure 2A and 2B Schematic diagram of a possible position range of an object to be located according to an embodiment of the present invention.
[0011] Figure 3 Schematic diagram of the RSSI movement vector of the object to be located according to an embodiment of the present invention.
[0012] Figure 4 Schematic diagram of calculating the root mean square error of an object to be located according to an embodiment of the present invention.
[0013] Figure 5 Schematic diagram of the hardware architecture of the electronic device according to an embodiment of the present invention.
[0014] Figure 6 is a functional block diagram of an electronic device according to an embodiment of the present invention.
[0015] Main component symbols
[0016] Electronic Devices 200 processor 210 Memory 220 Indoor Positioning System 230 Defining Modules 310 Computing Module 320 Judgment module 330
[0017] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0018] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0019] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. The embodiments described are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0021] It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0022] The indoor positioning method of the embodiment of the present invention detects movable objects (e.g., people, mobile vehicles or related automation equipment) indoors, uses the error of the received signal strength indication (RSSI) to define the possible location of the object to be located, and then uses the dependence between the RSSI movement vector and the relative angle of the position of the object to be located to predict the specific position of the object to be located and derive its RSSI movement. The high correlation characteristics of the co-channel interference of multiple nodes and the carrier signal to interference signal ratio (CINR) are used to convert the vector and compare it with the RSSI movement vector to calculate the root mean square error (RMSE). When the root mean square error is less than the preset critical value, the position of the object to be located can be accurately located.
[0023] Figure 1 This is a flowchart of the steps of indoor positioning in an embodiment of the present invention, which is applied to an electronic device. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0024] In step S1 , a possible position range of a to-be-positioned object (TBP) is defined by using the RSSI value errors between the to-be-positioned object (TBP) and a plurality of wireless devices (eg, 3).
[0025] The RSSI value is the signal strength P received by the receiving node. RX The conversion is as shown in formula (1):
[0026]
[0027] P TX is the energy intensity of the transmitting node, G RX is the antenna gain of the receiving node, G TX is the antenna gain of the transmitting node, λ is the signal wavelength, and d is the distance between the two node antennas. RX Afterwards, according to P RX The RSSI value is then calculated using other formulas, which will not be described in detail in this article. The possible position of the object TBP to be located is as follows: Figure 2A and 2B shown.
[0028] Step S2, according to the first RSSI value, the second RSSI value and a third RSSI value, respectively calculate the RSSI movement vectors between the object to be located TBP and the wireless access points Acchor1, Accor2 and Accor3, including the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector, and use the dependence between the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector and the relative angles between the positions of the wireless access points Acchor1, Accor2 and Accor3 to define the possible specific position of the object to be located TBP in the possible position range.
[0029] refer to Figure 3 The relative angles of the wireless access points Acchor1, Acchor2 and Acchor3 relative to the position of the object to be located TBP are θ1, θ2 and θ3 respectively. The first RSSI motion vector, the second RSSI motion vector and the third RSSI motion vector of the object to be located TBP and the wireless devices Acchor1, Acchor2 and Acchor3 are ΔRSSI respectively. 1 , ΔRSSI 2 With ΔRSSI 3 , the RSSI moving vector can be calculated by formula (2), as shown below:
[0030]
[0031] Step S3, the default cutting accuracy U of the relative angle of each position and the number of possible specific positions of the object TBP to be located are determined by the weight of the RSSI moving vector of the object to be located TBP and the total angle relative to the wireless devices Accor1, Accor2 and Accor3 within the possible position range. The accuracy of the angle can be calculated using formula (3), as shown below:
[0032]
[0033] Step S4, using formulas (4) and (5), the CINR change of the object to be located TBP is compared in vector form with the RSSI movement vector of the object to be located TBP to calculate a root mean square error. Figure 4 , a represents the RSSI moving vector, b represents the vector converted by the CINR variation, and c represents the error vector. If the root mean square error (RMSE) is less than the preset critical value, it means that the current position of the object to be located TBP is a possible specific position, that is, a candidate specific position. Formulas (4) and (5) are as follows:
[0034]
[0035]
[0036] Step S5: judging whether the number of possible specific positions of the object to be positioned TBP is less than a default value, for example, 1, according to the root mean square error.
[0037] Step S6, if the number of possible specific positions of the object to be positioned TBP is less than 1, indicating that the best positioning position has not been found, the value of the default cutting accuracy U is increased, and then the calculation is continued back to step S2 until a possible specific position meets the conditions.
[0038] Step S7: if the number of possible specific positions of the object to be positioned TBP is not less than 1, indicating that there is more than one possible specific position, the possible specific position with the smallest error is selected as the actual position of the object to be positioned TBP.
[0039] Figure 5 2 is a schematic diagram showing the hardware architecture of an electronic device according to an embodiment of the present invention. The electronic device 200, but not limited to, can be connected to the processor 210, the memory 220 and the indoor positioning system 230 through a system bus for communication. FIG. 2 only shows the electronic device 200 having components 210-230, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead.
[0040] The memory 220 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 220 can be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 200. In other embodiments, the memory can also be an external storage device of the electronic device 200, such as a plug-in hard disk equipped on the electronic device 200, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 220 can also include both the internal storage unit of the electronic device 200 and its external storage device. In this embodiment, the memory 220 is generally used to store the operating system and various application software installed in the electronic device 200, such as the program code of the indoor positioning system 230. In addition, the memory 220 can also be used to temporarily store various data that have been output or will be output.
[0041] The processor 210 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 210 is generally used to control the overall operation of the electronic device 200. In this embodiment, the processor 210 is used to run the program code stored in the memory 220 or process data, for example, to run the indoor positioning system 230, etc.
[0042] It should be noted that Fig. 2 is only an example of the electronic device 200. In other embodiments, the electronic device 200 may also include more or fewer components, or have different component configurations.
[0043] Figure 6 2 is a functional block diagram of an electronic device according to an embodiment of the present invention, which is used to perform an indoor positioning method. The indoor positioning method according to the embodiment of the present invention can be implemented by a computer program in a storage medium, for example, a memory 220 in the electronic device 200. When the computer program implementing the method according to the present invention is loaded into the memory 220 by the processor 210, the processor 210 of the electronic device 200 is driven to perform the indoor positioning method according to the embodiment of the present invention.
[0044] The electronic device 200 according to the embodiment of the present invention includes a definition module 310 , a calculation module 320 and a determination module 330 .
[0045] The definition module 310 defines a possible position range of the object TBP to be positioned by using the error of the RSSI values between the object TBP to be positioned and a plurality of wireless devices (eg, 3).
[0046] The RSSI value is the signal strength P received by the receiving node. RX The conversion is as shown in formula (1):
[0047]
[0048] P TX is the energy intensity of the transmitting node, G RX is the antenna gain of the receiving node, G TX is the antenna gain of the transmitting node, λ is the signal wavelength, and d is the distance between the two node antennas. RX Afterwards, according to P RX The RSSI value is then calculated using other formulas, which will not be described in detail in this article. The possible position of the object TBP to be located is as follows: Figure 2A and 2B shown.
[0049] The embodiment of the present invention utilizes at least three wireless devices, for example, wireless access points Acchor1, Acchor2 and Acchor3. Three RSSI values can be calculated through the object to be located TBP and the wireless access points Acchor1, Acchor2 and Acchor3, including a first RSSI value, a second RSSI value and a third RSSI value.
[0050] The calculation module 320 calculates the RSSI movement vectors between the object to be located TBP and the wireless access points Acchor1, Acchor2 and Acchor3 according to the first RSSI value, the second RSSI value and a third RSSI value, including the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector, and defines the possible specific position of the object to be located TBP in the possible position range by using the dependence between the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector and the relative angles between the positions of the wireless access points Acchor1, Accor2 and Accor3.
[0051] refer to Figure 3The relative angles of the wireless access points Acchor1, Acchor2 and Acchor3 relative to the position of the object to be located TBP are θ1, θ2 and θ3 respectively. The first RSSI motion vector, the second RSSI motion vector and the third RSSI motion vector of the object to be located TBP and the wireless devices Acchor1, Acchor2 and Acchor3 are ΔRSSI respectively. 1 , ΔRSSI 2 With ΔRSSI 3 , the RSSI moving vector can be calculated by formula (2), as shown below:
[0052]
[0053] The calculation module 320 determines the default cutting accuracy U of the relative angle of each position and the number of possible specific positions of the object TBP to be located by the weight of the RSSI moving vector of the object to be located TBP and the total angle relative to the wireless devices Accor1, Accor2 and Accor3 within the possible position range. The accuracy of the angle can be calculated using formula (3), as shown below:
[0054]
[0055] The calculation module 320 compares the CINR change of the object to be located TBP in vector form with the RSSI movement vector of the object to be located TBP through formulas (4) and (5) to calculate the root mean square error. Figure 4 , a represents the RSSI moving vector, b represents the vector of the CINR change conversion, and c represents the error vector. If the error error (RMSE) is less than the preset critical value, it means that the current position of the object to be located TBP is a possible specific position, that is, a candidate specific position. Formulas (4) and (5) are as follows:
[0056]
[0057]
[0058] The judgment module 330 judges whether the number of possible specific positions of the object to be positioned TBP is less than a default value, for example, 1, based on the root mean square error. If the number of possible specific positions of the object to be positioned TBP is less than 1, indicating that the best positioning position has not been found, the judgment module 330 increases the value of the default cutting accuracy U, and then continues to calculate until the possible specific position meets the conditions. If the number of possible specific positions of the object to be positioned TBP is not less than 1, indicating that there are more than one possible specific positions, the judgment module 330 selects the possible specific position with the smallest error as the actual position of the object to be positioned TBP.
[0059] If the module / unit integrated in the electronic device 200 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0060] It is understandable that the module division described above is only a logical function division, and there may be other division methods in actual implementation. In addition, the functional modules in each embodiment of the present application may be integrated in the same processing unit, or each module may exist physically separately, or two or more modules may be integrated in the same unit. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0061] The indoor positioning method of the embodiment of the present invention uses the error of the RSSI value to define the possible location of the object to be located, calculates the RSSI moving vector between the object to be located and the base station according to the RSSI value, and predicts the specific position of the object to be located by using the dependence between the RSSI moving vector and the relative angle between the positions of the base station. Using the high correlation characteristics of the co-frequency interference and CINR of multiple nodes, the vector is converted and compared with the RSSI moving vector to calculate a root mean square error. When the root mean square error is less than a preset critical value, the position of the object to be located can be accurately located.
[0062] For those skilled in the art, other corresponding changes or adjustments can be made according to actual needs in combination with the technical solutions and technical concepts provided in the embodiments of the present invention, and these changes and adjustments should all fall within the protection scope of the claims of the present invention.
Claims
1. An indoor positioning method, applied to an indoor positioning device, characterized in that: The method comprises: (1) defining a possible position range of the object to be located by using a first received signal strength indication (RSSI) value, a second RSSI value, and a third RSSI value error between the object to be located and at least a first wireless device, a second wireless device, and a third wireless device; (2) calculating a first RSSI motion vector, a second RSSI motion vector, and a third RSSI motion vector between the object to be located and the first wireless device, and between the second wireless device and the third wireless device according to the first RSSI value, the second RSSI value, and the third RSSI value, respectively, and defining a plurality of possible specific positions of the object to be located in the possible position range by using a dependency relationship among the first RSSI motion vector, the second RSSI motion vector, the third RSSI motion vector, and a relative angle between the positions of the first wireless device, the second wireless device, and the third wireless device; (3) determining the default cutting accuracy of the relative angle of each position and the number of possible specific positions of the object to be located by using the weights of the first RSSI motion vector, the second RSSI motion vector and the third RSSI motion vector of the object to be located and the total angle within the possible position range relative to the first wireless device, the second wireless device and the third wireless device; (4) comparing the carrier to interference-plus-noise ratio (CINR) change of the object to be located with the first RSSI motion vector, the second RSSI motion vector, and the third RSSI motion vector in vector form to calculate a root mean square error; (5) determining whether the number of possible specific positions of the object to be located is less than a default value according to the root mean square error; and (6) If the number of possible specific positions of the object to be located is not less than the default value, the possible specific position with the smallest error is selected as the actual positioning position of the object to be located.
2. The indoor positioning method according to claim 1, characterized in that: Also includes: (7) If the number of possible specific positions of the object to be positioned is less than the default value, increase the value of the preset cutting accuracy, and then repeat steps (2) to (5).
3. The indoor positioning method according to claim 1, characterized in that: Also includes: If the RMS error is less than a preset critical value, it indicates that the current position of the object to be located is a possible specific position.
4. An electronic device, characterized in that: include: A definition module, which is used to: (1) define a possible position range of the object to be located using errors of a first RSSI value, a second RSSI value, and a third RSSI value between the object to be located and at least a first wireless device, a second wireless device, and a third wireless device; A calculation module, which is used to: (2) calculate the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector between the object to be located and the first wireless device, the second wireless device and the third wireless device according to the first RSSI value, the second RSSI value and the third RSSI value, respectively, and define a plurality of possible specific positions of the object to be located in the possible position range by using the dependence relationship between the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector and the relative angle between the positions of the first wireless device, the second wireless device and the third wireless device; (3) determine the default cutting accuracy of the relative angle of each position and the number of possible specific positions of the object to be located in the possible position range by the weights of the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector of the object to be located and the total angle relative to the first wireless device, the second wireless device and the third wireless device; (4) compare the CINR change of the object to be located with the first RSSI movement vector, the second RSSI movement vector and the third RSSI movement vector in vector form to calculate the root mean square error; and A judgment module, which is used for: (5) judging whether the number of possible specific positions of the object to be located is less than a default value according to the root mean square error, and (6) if the number of possible specific positions of the object to be located is not less than the default value, selecting the possible specific position with the smallest error as the actual positioning position of the object to be located.
5. The electronic device as claimed in claim 4, characterized in that: (7) When the number of possible specific positions of the object to be located is less than the default value, the judgment module increases the value of the preset cutting accuracy and then repeats steps (2) to (5).
6. The electronic device as claimed in claim 4, characterized in that: If the RMS error is less than a preset critical value, it indicates that the current position of the object to be located is a possible specific position.
7. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the steps of the indoor positioning method according to any one of claims 1 to 3.
