Indoor positioning method, device, equipment and medium based on iBeacon
By pre-generating distance formulas and using GPS altitude parameters, combined with signal strength and power strength, the problem of signal dynamic attenuation in iBeacon indoor positioning is solved and the positioning accuracy is improved, especially in effectively locating the location of the device in a multi-story building environment.
Patent Information
- Application Number
- CN202211059024.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-08-30
AI Technical Summary
The existing iBeacon indoor positioning technology only considers the signal strength of the receiving end, which cannot effectively avoid the dynamic attenuation of signals caused by environmental factors, affecting positioning accuracy.
By pre-generating the distance formula, combining the received signal strength and transmit signal power strength, taking into account the signal attenuation degree, positioning is performed, and GPS altitude parameters are used for spatial positioning in a multi-story building environment to improve the accuracy of positioning results.
It improves the accuracy of iBeacon indoor positioning, solves the problem of signal dynamic attenuation, and ensures the reliability and accuracy of positioning results, especially in effectively locating the position of the device in a multi-story building environment.
Smart Images

Figure CN115484546B
Abstract
Description
Technical Field
[0001] The present application relates to the field of indoor positioning technology, and in particular to an indoor positioning method, device, equipment and medium based on iBeacon. Background Art
[0002] In the related art, iBeacon's indoor positioning generally adopts triangular centroid positioning or three-point positioning. However, no matter which positioning method is adopted, the RSSI values of three iBeacon devices are used in the calculation, that is, only the signal strength at the receiving end is considered, and the problem of dynamic signal attenuation caused by environmental factors cannot be avoided, thereby affecting the accuracy of positioning. Summary of the invention
[0003] The present application provides an indoor positioning method, device, equipment and medium based on iBeacon, which solves the problem that in the related art, only the signal strength at the receiving end is considered, and the dynamic attenuation of the signal caused by environmental factors cannot be avoided. By considering the degree of signal attenuation, a distance formula is generated in advance so that positioning can be performed according to the distance formula, thereby improving the accuracy of the positioning result.
[0004] The first embodiment of the present application provides an indoor positioning method based on iBeacon, comprising the following steps:
[0005] Receive a first iBeacon signal sent by the device to be located; obtain a corresponding received signal strength indication and a transmit signal power strength of the device to be located according to the received first iBeacon signal, and determine the distance to the device to be located by a pre-generated distance formula, so as to locate the device to be located.
[0006] According to the above-mentioned technical means, the embodiment of the present application receives the first iBeacon signal sent by the device to be located, so as to obtain the corresponding received signal strength indication and the transmitted signal power strength of the device to be located according to the received first iBeacon signal, and determines the distance to the device to be located through a pre-generated distance formula, so as to locate the device to be located, thereby improving the accuracy of the positioning result.
[0007] Furthermore, the above-mentioned iBeacon-based indoor positioning method also includes: judging whether the device to be positioned is within the observable range based on the distance to the device to be positioned; if the device to be positioned is within the observable range and there is no device to be positioned in the line of sight, obtaining GPS altitude parameters so as to locate the spatial position of the device to be positioned according to the GPS altitude parameters.
[0008] According to the above technical means, due to the existence of multi-story buildings indoors, it is easy for the detection positions to be close or overlapping, but the vehicle cannot be located, that is, the positioning devices are on different floors. Therefore, in order to accurately locate the position of the device to be located, it is necessary to combine the GPS altitude parameters for spatial positioning to further improve the accuracy of the positioning results.
[0009] Further, pre-generating a distance formula includes: collecting data information, wherein the data information includes a received signal strength indication corresponding to each of a plurality of distances between a plurality of iBeacon devices and an iBeacon transmitting device; determining a basic distance formula based on the data information, adding an environmental constant factor to the basic distance formula, and performing data calibration to generate a final distance formula.
[0010] According to the above technical means, by pre-collecting data, generating a distance formula according to the data rules, and calibrating the data through data regression, the final distance formula is obtained, so that the distance can be estimated according to the distance formula, making the positioning speed fast and the effect good.
[0011] Furthermore, the final distance formula is expressed as:
[0012]
[0013] Among them, D represents the distance, A and C represent the environmental constant factors, R represents the received signal strength indicator, T represents the transmitted signal power strength, and B represents the independent variable constant.
[0014] Further, obtaining GPS altitude parameters, and locating the spatial position of the device to be located according to the GPS altitude parameters, including:
[0015] Obtain GPS altitude parameters, and send a second iBeacon signal to the device to be located;
[0016] A third iBeacon signal is received, which is sent by the device to be located after determining the spatial position according to the GPS altitude parameter, so as to locate the spatial position of the device to be located according to the third iBeacon signal.
[0017] According to the above technical means, since GPS is relatively accurate in spatial positioning, the use of GPS altitude parameters combined with iBeacon further improves the accuracy of the positioning results.
[0018] The second aspect of the present application provides an indoor positioning device based on iBeacon, including: a receiving module, used to receive a first iBeacon signal sent by a device to be located; a first positioning module, used to determine the distance to the device to be located based on a received signal strength indication of the first iBeacon signal received and the transmission signal power strength of the device to be located, and through a pre-generated distance formula, so as to locate the device to be located.
[0019] Furthermore, the iBeacon-based indoor positioning device also includes: a judgment module, used to judge whether the device to be positioned is within the observable range based on the distance from the device to be positioned; a second positioning module, used to obtain GPS altitude parameters if the device to be positioned is within the observable range and there is no device to be positioned in the line of sight, so as to locate the spatial position of the device to be positioned according to the GPS altitude parameters.
[0020] Furthermore, the iBeacon-based indoor positioning device also includes: a generation module for collecting data information, wherein the data information includes a received signal strength indication corresponding to each of multiple distances between multiple iBeacon devices and an iBeacon sending device; determining a basic distance formula based on the data information, adding an environmental constant factor to the basic distance formula, and performing data calibration to generate a final distance formula.
[0021] Furthermore, the final distance formula is expressed as:
[0022]
[0023] Among them, D represents the distance, A and C represent the environmental constant factors, R represents the received signal strength indicator, T represents the transmitted signal power strength, and B represents the independent variable constant.
[0024] Furthermore, the second positioning module is specifically used to: obtain GPS altitude parameters and send a second iBeacon signal to the device to be located; receive a third iBeacon signal sent by the device to be located after determining the spatial position according to the GPS altitude parameters, so as to locate the spatial position of the device to be located according to the third iBeacon signal.
[0025] The third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the iBeacon-based indoor positioning method as described in the above embodiment.
[0026] The fourth aspect of the present application provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the iBeacon-based indoor positioning method as described in the above embodiment.
[0027] The embodiment of the present application can receive a first iBeacon signal sent by the device to be located; obtain a corresponding received signal strength indication and a transmitted signal power strength of the device to be located according to the received first iBeacon signal, and determine the distance to the device to be located by using a pre-generated distance formula, so as to locate the device to be located; thereby, the problem in the related art that only the signal strength at the receiving end is considered and the dynamic attenuation of the signal caused by environmental factors cannot be avoided, and the distance formula is pre-generated by considering the degree of signal attenuation so as to perform positioning according to the distance formula, thereby improving the accuracy of the positioning result.
[0028] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0030] Figure 1 A flowchart of an iBeacon-based indoor positioning method provided according to an embodiment of the present application;
[0031] Figure 2 is a schematic diagram of an iBeacon data frame format according to an embodiment of the present application;
[0032] Figure 3 A schematic diagram of the iBeacon positioning effect of a mobile device according to an embodiment of the present application;
[0033] Figure 4 A schematic diagram of a mobile device being away from an iBeacon device signal according to an embodiment of the present application;
[0034] Figure 5 A schematic diagram of a mobile device approaching an iBeacon device signal according to an embodiment of the present application;
[0035] Figure 6 It is a schematic diagram of an iBeacon device signal being interfered with according to an embodiment of the present application;
[0036] Figure 7 A schematic diagram of RSSI-distance correspondence according to an embodiment of the present application;
[0037] Figure 8 The figure is a flowchart of an indoor positioning method based on iBeacon according to an embodiment of the present application.
[0038] Fig. 9 is a block diagram of an iBeacon-based indoor positioning device according to an embodiment of the present application;
[0039] Fig.10 is a block diagram of an iBeacon-based indoor positioning device according to an embodiment of the present application;
[0040] Fig.11 is an exemplary diagram of an electronic device according to an embodiment of the present application.
[0041] Among them, 10 is an indoor positioning device based on iBeacon; 100 is a receiving module, 200 is a first positioning module, 300 is a judging module, 400 is a second positioning module and 500 is a generating module. DETAILED DESCRIPTION
[0042] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0043] The following describes the indoor positioning method, device, equipment and medium based on iBeacon of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the indoor positioning method based on iBeacon mentioned in the above background technology often only considers the signal strength of the receiving end and cannot avoid the problem of inaccurate data caused by dynamic signal attenuation, the present application provides an indoor positioning method based on iBeacon, in which the first iBeacon signal sent by the device to be located can be received; the corresponding received signal strength indication and the transmission signal power strength of the device to be located are obtained according to the received first iBeacon signal, and the distance to the device to be located is determined by a pre-generated distance formula, so as to locate the device to be located; thereby, the problem that the dynamic signal attenuation caused by environmental factors cannot be avoided in the related technology because only the signal strength of the receiving end is considered is solved, and the distance formula is pre-generated by considering the degree of signal attenuation, so as to locate according to the distance formula, thereby improving the accuracy of the positioning result.
[0044] Specifically, Figure 1 A flowchart of an iBeacon-based indoor positioning method provided in an embodiment of the present application.
[0045] like Figure 1As shown, the iBeacon-based indoor positioning method includes the following steps:
[0046] In step S101, a first iBeacon signal sent by a device to be located is received.
[0047] As an embodiment, a mobile device installed with an APP supporting the iBeacon protocol, such as an Android or Apple mobile phone, may receive a first iBeacon signal sent by the device to be located, wherein the device to be located is a Bluetooth device that supports sending iBeacon data.
[0048] It should be noted that iBeacon technology has been open source, and its specific data frame format is as follows Figure 2 As shown, UUID represents the unique identification of the manufacturer, 16 bytes; Major is the group ID, 2 bytes, ranging from 0 to 0xff, that is, a manufacturer has a maximum of 2^16 groups; Minor is the ID of a single iBeacon device, 2 bytes, ranging from 0 to 0xff, that is, a group has a maximum of 2^16 iBeacon devices; TX Power is 1 byte, the power intensity of the signal transmitted by the iBeacon device, the intensity is a negative number, expressed in a complement code.
[0049] In addition, both Apple and Android devices can use iBeacon technology to perform near-field positioning between devices, especially in scenarios such as indoors and parking lots where GPS positioning signals are weak, but the technical support levels of the two platforms are different; Apple devices have integrated iBeacon indoor positioning with GPS outdoor positioning, and can seamlessly switch between indoor and outdoor positioning, but there is no clear value for the positioning distance, only an enumerated alternative distance is defined, among which Immediate means the distance is extremely close, or even overlapping; Near means within a distance range of 1-3 meters; Far means the device can be scanned, and the positioning result cannot be used as a reference; Unknown means the device is not within the scanning range; the positioning effect is as follows: Figure 3 As shown in the figure; in terms of functions, the Android platform relies on the iBeacon data protocol, and the community workers have written an iBeacon implementation based on BLE; in terms of positioning and ranging, the Bluetooth signal strength RSSI of the mobile device is roughly estimated, and the relationship between RSSI signal strength and distance is shown in the figure. Figure 4 and Figure 5 shown.
[0050] In step S102, the corresponding received signal strength indication and the transmit signal power strength of the device to be located are obtained according to the received first iBeacon signal, and the distance to the device to be located is determined by a pre-generated distance formula, so as to locate the device to be located.
[0051] It should be noted that if the indoor wall blocks the signal, it will be interfered or blocked, making the final ranging result unreliable. Figure 6 As shown, at this time, by considering the degree of signal attenuation, a distance formula is generated in advance so that positioning can be performed according to the distance formula, thereby improving the accuracy of the positioning result.
[0052] As an embodiment, pre-generating a distance formula includes: collecting data information, wherein the data information includes a received signal strength indication corresponding to each of multiple distances between multiple iBeacon devices and an iBeacon sending device; determining a basic distance formula based on the data information, adding an environmental constant factor to the basic distance formula, and performing data calibration to generate a final distance formula.
[0053] As a specific embodiment, first, data collection is performed: the collection tools are one Android device and one Apple device with an App supporting the iBeacon protocol installed, and one Bluetooth device that supports sending iBeacon data; the collection environment is an barrier-free outdoor environment within 50 meters; the collection steps include keeping the position of the iBeacon sending device fixed, and the Android device and the Apple device are respectively located at 0.25 meters, 0.5 meters, 1 meter, 2 meters, 3 meters, 4 meters, 5 meters, 6 meters, 7 meters, 8 meters, 9 meters, 10 meters, 12 meters, 14 meters, 16 meters, 18 meters, 20 meters, 25 meters, 30 meters, 40 meters, and 50 meters from the iBeacon sending device, and the average value of RSSI within 30 seconds is counted at each position; in order to reduce the interference of environmental factors, 10% of the data at the upper and lower limits of each position needs to be screened out; thereby obtaining data information.
[0054] Next, draw the following diagram based on the data information: Figure 7 The RSSI-distance relationship diagram shown in the figure is Figure 7 It can be seen that as the distance increases, the RSSI will continue to attenuate, that is, when the mobile device is far away from the iBeacon device, the RSSI weakens, and when the mobile device is close to the iBeacon device, the RSSI strengthens; Observe Figure 7The curve conforms to the law of the exponential function "y = a^x (a > 0 and a ≠ 1)": when a > 1, the function is monotonically increasing, and the larger x is, the closer the image trend is to the y-axis; when 0 < a < 1, the function is monotonically decreasing, and the smaller x is, the closer the image trend is to the y-axis. Therefore, according to this law, it can be approximately expressed by the formula "D = (R / T)^10", where R is the Received Signal Strength Indicator (RSSI), T is the Transmit Signal Power Strength (TX Power), and D is the distance. The reason for the exponent being 10 is that when the signal strength increases by 10 dBm, its power increases by 10 times. When the attenuation degree is less than 1.0, it means that the transmitting power of the iBeacon device can cover the devices within the range. When it exceeds 1.0, there are many reasons for the instability of the measurement results.
[0055] It should be noted that the reasons for the instability of the measurement results in terms of device hardware are limited measurement range of the RSSI sensor, Bluetooth channel switching, and different main board antenna layouts; the environmental reasons are radio noise, obstacle occlusion, and signal reflection; human factors include that the measurement results are different when the body occludes or the device is placed in a pocket; it is more important to perform data calibration for different devices, especially for the Android platform with serious device fragmentation. Therefore, it is necessary to add environmental constant factors A and C to the above basic formula "D = (R / T)^10" to obtain the formula Among them, B is the independent variable and D is the dependent variable.
[0056] Finally, perform data calibration: The specific implementation steps include dividing the RSSI data at each position of the Android device in data collection by the RSSI data of the Apple device at the 1-meter position to obtain Ratio and filling it in the first column of the Excel table; filling the distance at each position of the Android device in data collection into the second column of the Excel table; using the regression function in Excel data analysis, select the first column of Ratio data for the X value (independent variable) input area, and select the second column of distance data for the Y value (dependent variable) input area to obtain the regression statistical table; check "Multiple R", that is, the correlation coefficient R value. A value greater than 0.8 indicates a strong positive correlation; check "R Square", that is, the coefficient of determination and goodness of fit. The larger the value, the better the fit. After checking these two results, it can be basically determined that the results have significant statistical significance. According to "Intercept" and "XVariable" in the first column of "Coefficients", obtain the regression equation: Y = (X Variable)*X^Intercept. After that, for each input independent variable X, the dependent variable Y can be predicted according to this regression equation. "X Variable" is the formula A value in; create a new Excel table, each column is RSSI, Ratio, actual distance, predicted distance, fill the previously generated data into the first three columns, the predicted data column is calculated using the derived regression equation Y = (X Variable) * X^Intercept; calculate the difference Subtract by subtracting the actual distance from the predicted distance. "Subtract" is the formula The C value in ; thus obtaining the final distance formula.
[0057] As an embodiment, the above-mentioned iBeacon-based indoor positioning method also includes: judging whether the device to be positioned is within the observable range based on the distance to the device to be positioned; if the device to be positioned is within the observable range and there is no device to be positioned in the line of sight, obtaining the GPS altitude parameters so as to locate the spatial position of the device to be positioned according to the GPS altitude parameters.
[0058] That is to say, the user determines whether the device to be located is within the observable range. If so, but there is no device to be located in the user's sight, the GPS altitude parameters are obtained to locate the spatial position of the device to be located according to the GPS altitude parameters.
[0059] It should be noted that there may still be situations inside multi-story buildings where the detection positions are close or overlapping but the vehicle cannot be located. In this case, the positioning function of the mobile device can be used to obtain the characteristics of the GPS altitude parameters to compensate for this defect. The GPS positioning of the mobile device has poor indoor signals and can only be located within a certain range. However, it is basically believed that the position of the mobile device within this range is a plane, which means that the altitude parameters of GPS positioning are relatively accurate.
[0060] As an embodiment, GPS altitude parameters are obtained, and the spatial position of the device to be located is located according to the GPS altitude parameters, including: obtaining the GPS altitude parameters and sending a second iBeacon signal to the device to be located; receiving a third iBeacon signal sent by the device to be located after the spatial position is determined according to the GPS altitude parameters, so as to locate the spatial position of the device to be located according to the third iBeacon signal.
[0061] That is to say, the GPS altitude parameters are obtained through the GPS positioning function of a mobile device installed with an APP that supports the iBeacon protocol, and a second iBeacon signal and the GPS altitude parameters are sent to the device to be located through iBeacon, so that the device to be located can determine the spatial position according to the GPS altitude parameters and then adjust the transmission signal power strength (TX Power) and send a third iBeacon signal to the mobile device to complete the final positioning.
[0062] It should be noted that if the mobile device detects the iBeacon signal sent by the Bluetooth device and calculates that the distance is within the observable range, but there is no vehicle in the line of sight, this means that the Bluetooth device and the mobile device are at different altitudes; the mobile device can actively send iBeacon data via Bluetooth, and the data format is exactly the same as the iBeacon data of the Bluetooth device except for TXPower; after the Bluetooth device detects that the mobile device is broadcasting iBeacon data, it broadcasts the iBeacon data with adjusted TXPower again to complete the final positioning; in addition, the spatial relationship between the mobile device and the Bluetooth device can be judged based on the received TX Power: if TX Power increases, it means that the Bluetooth device is above the mobile device, and if TX Power decreases, it means that the Bluetooth device is below the mobile device.
[0063] In summary, by receiving the first iBeacon signal sent by the device to be located; obtaining the corresponding received signal strength indication and the transmitted signal power strength of the device to be located according to the received first iBeacon signal, and determining the distance to the device to be located by a pre-generated distance formula, so as to locate the device to be located; thereby, the problem that the dynamic attenuation of the signal caused by environmental factors cannot be avoided in the related art because only the signal strength at the receiving end is considered, and the distance formula is pre-generated by considering the degree of signal attenuation, so as to perform positioning according to the distance formula, thereby improving the accuracy of the positioning result.
[0064] In order to enable those skilled in the art to further understand the iBeacon-based indoor positioning method of the embodiment of the present application, a detailed description is given below in conjunction with specific embodiments.
[0065] Specifically, Figure 8 As shown, Figure 8 This is a flow chart of an iBeacon-based indoor positioning method for a specific embodiment of the present application. The flow chart takes vehicle positioning in a parking lot as an example. The vehicle-side Bluetooth is set on the vehicle in the parking lot. First, the user turns on the mobile-side Bluetooth. Then, when the mobile-side Bluetooth receives the iBeacon signal sent by the vehicle-side Bluetooth, it estimates the distance to the vehicle. Then, based on the distance to the vehicle, it determines whether the vehicle is visible. If the vehicle is visible but there is no vehicle in sight, the user triggers the mobile-side Bluetooth to send an iBeacon signal. Then, the mobile-side Bluetooth sends the adjusted iBeacon signal to the vehicle-side Bluetooth. Then, the vehicle-side Bluetooth returns the iBeacon signal after receiving the adjusted iBeacon signal. Finally, the mobile-side Bluetooth determines the spatial position of the vehicle based on the iBeacon signal so as to find the vehicle based on the position prompt.
[0066] Next, an iBeacon-based indoor positioning device proposed according to an embodiment of the present application is described with reference to the accompanying drawings.
[0067] Fig. 9 It is a block diagram of an iBeacon-based indoor positioning device according to an embodiment of the present application.
[0068] like Fig. 9 As shown, the iBeacon-based indoor positioning device 10 includes: a receiving module 100 and a first positioning module 200 .
[0069] The receiving module 100 is used to receive a first iBeacon signal sent by the device to be located;
[0070] The first positioning module 200 is used to determine the distance to the device to be positioned according to the received signal strength indication of the first iBeacon signal and the transmission signal power strength of the device to be positioned and through a pre-generated distance formula, so as to locate the device to be positioned.
[0071] Further, if Fig.10 As shown, the iBeacon-based indoor positioning device 10 further includes: a judgment module 300 and a second positioning module 400 .
[0072] The judging module 300 is used to judge whether the device to be positioned is within the observable range according to the distance from the device to be positioned;
[0073] The second positioning module 400 is used to obtain GPS altitude parameters if the device to be positioned is within the observable range and there is no device to be positioned in the sight, so as to locate the spatial position of the device to be positioned according to the GPS altitude parameters.
[0074] Further, if Fig.10 As shown, the iBeacon-based indoor positioning device 10 also includes: a generation module 500, which is used to collect data information, wherein the data information includes a received signal strength indication corresponding to each of multiple distances between multiple iBeacon devices and an iBeacon sending device; a basic distance formula is determined according to the data information, an environmental constant factor is added to the basic distance formula, and data calibration is performed to generate a final distance formula.
[0075] Furthermore, the final distance formula is expressed as:
[0076]
[0077] Among them, D represents the distance, A and C represent the environmental constant factors, R represents the received signal strength indicator, T represents the transmitted signal power strength, and B represents the independent variable constant.
[0078] Furthermore, the second positioning module 400 is specifically used to: obtain GPS altitude parameters and send a second iBeacon signal to the device to be positioned; receive a third iBeacon signal sent by the device to be positioned after determining the spatial position according to the GPS altitude parameters, so as to locate the spatial position of the device to be positioned according to the third iBeacon signal.
[0079] It should be noted that the aforementioned explanation of the embodiment of the indoor positioning method based on iBeacon is also applicable to the indoor positioning device based on iBeacon in this embodiment, and will not be repeated here.
[0080] According to the iBeacon-based indoor positioning device proposed in the embodiment of the present application, it is possible to receive a first iBeacon signal sent by the device to be positioned; obtain a corresponding received signal strength indication and a transmitted signal power strength of the device to be positioned according to the received first iBeacon signal, and determine the distance to the device to be positioned by using a pre-generated distance formula, so as to position the device to be positioned; thereby, the problem in the related art that only the signal strength at the receiving end is considered and the dynamic attenuation of the signal caused by environmental factors cannot be avoided, and by considering the degree of signal attenuation and pre-generating a distance formula so as to perform positioning according to the distance formula, the accuracy of the positioning result is improved.
[0081] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0082] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .
[0083] When the processor 602 executes the program, the iBeacon-based indoor positioning method provided in the above embodiment is implemented.
[0084] Furthermore, the electronic device further comprises:
[0085] The communication interface 603 is used for communication between the memory 601 and the processor 602 .
[0086] The memory 601 is used to store computer programs that can be executed on the processor 602 .
[0087] The memory 601 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0088] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0089] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.
[0090] The processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0091] The embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above iBeacon-based indoor positioning method.
[0092] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0093] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0094] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0095] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0096] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0097] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0098] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0099] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. An indoor positioning method based on iBeacon, characterized in that: The following steps are involved: Receive a first iBeacon signal sent by the device to be located; Acquire a corresponding received signal strength indication and a transmit signal power strength of the device to be located according to the first iBeacon signal received, and determine a distance to the device to be located by using a pre-generated distance formula, so as to locate the device to be located; Pre-generated distance formulas, including: Collecting data information, wherein the data information includes a received signal strength indication corresponding to each of a plurality of distances between a plurality of iBeacon devices and an iBeacon transmitting device; Determine a basic distance formula according to the data information, add an environmental constant factor to the basic distance formula, and perform data calibration to generate a final distance formula; The final distance formula is expressed as: Among them, D represents the distance, A and C represent the environmental constant factors, R represents the received signal strength indicator, T represents the transmitted signal power strength, and B represents the independent variable constant.
2. The iBeacon-based indoor positioning method according to claim 1, characterized in that: Also includes: Determine whether the device to be located is within the observable range according to the distance to the device to be located; If the device to be located is within the observable range and there is no device to be located in the sight, the GPS altitude parameter is obtained so as to locate the spatial position of the device to be located according to the GPS altitude parameter.
3. The iBeacon-based indoor positioning method according to claim 2, characterized in that: Acquiring GPS altitude parameters, and locating the spatial position of the device to be located according to the GPS altitude parameters, including: Obtain GPS altitude parameters, and send a second iBeacon signal to the device to be located; A third iBeacon signal is received, which is sent by the device to be located after determining the spatial position according to the GPS altitude parameter, so as to locate the spatial position of the device to be located according to the third iBeacon signal.
4. An indoor positioning device based on iBeacon, characterized in that: include: A receiving module, used for receiving a first iBeacon signal sent by a device to be located; A first positioning module, configured to determine the distance to the device to be positioned according to the received signal strength indication of the first iBeacon signal and the transmit signal power strength of the device to be positioned and by using a pre-generated distance formula, so as to position the device to be positioned; Also includes: A generation module is used to collect data information, wherein the data information includes a received signal strength indication corresponding to each of a plurality of distances between a plurality of iBeacon devices and an iBeacon transmitting device; determine a basic distance formula according to the data information, add an environmental constant factor to the basic distance formula, and perform data calibration to generate a final distance formula; The final distance formula is expressed as: Among them, D represents the distance, A and C represent the environmental constant factors, R represents the received signal strength indicator, T represents the transmitted signal power strength, and B represents the independent variable constant.
5. The iBeacon-based indoor positioning device according to claim 4, characterized in that: Also includes: A judging module, used for judging whether the device to be located is within an observable range according to the distance to the device to be located; The second positioning module is used to obtain GPS altitude parameters if the device to be positioned is within the observable range and there is no device to be positioned in sight, so as to locate the spatial position of the device to be positioned according to the GPS altitude parameters.
6. The iBeacon-based indoor positioning device according to claim 5, characterized in that: The second positioning module is specifically used for: Obtain GPS altitude parameters, and send a second iBeacon signal to the device to be located; A third iBeacon signal is received, which is sent by the device to be located after determining the spatial position according to the GPS altitude parameter, so as to locate the spatial position of the device to be located according to the third iBeacon signal.
7. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the iBeacon-based indoor positioning method as described in any one of claims 1 to 3.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the iBeacon-based indoor positioning method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
High precision indoor positioning method with easy data acquisition
CN106814345A
Indoor positioning method based on the iBeacon ranging technology
CN108696820A
Indoor positioning and auxiliary navigation method, device and system based on iBeacon
CN109257714A
Indoor vehicle positioning method and device, computer equipment and storage medium
CN112689234A
Vehicle searching method and device, equipment and storage medium
CN113947939A
