Positioning method, device, storage medium and system based on Bluetooth beacon
The positioning method based on Bluetooth beacons solves the problem of low positioning accuracy for dense crowds in open spaces and achieves high-precision positioning, which is suitable for epidemic prevention and control and other application scenarios.
Patent Information
- Application Number
- CN202210146303.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-02-17
AI Technical Summary
Existing open spaces cannot accurately locate dense crowds, resulting in problems such as low accuracy or inability to provide positioning services in areas such as emergency rescue, public safety, and epidemic prevention and control.
Adopt a positioning method based on Bluetooth beacons, send and receive identification information through beacons, generate and process second identification information to obtain the physical distance between beacons, and use the low power consumption and short-distance characteristics of Bluetooth beacons to build a low-coupling network architecture , to achieve positioning.
It improves positioning accuracy and convenience, and is suitable for scenarios such as epidemic prevention and control management of dense crowds, post-event tracing, message communication, and missing alarms.
Smart Images

Figure CN114679712B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a positioning method, device, storage medium and system based on Bluetooth beacons. Background Art
[0002] With the rapid development of mobile Internet, many businesses have emerged and prospered rapidly. Among them, location-based services are becoming more and more widely used and popular. At the same time, people have higher and higher requirements for the accuracy of location-based services. Currently, the most widely used location-based services are based on the Global Navigation Satellite System (GNSS). However, due to the obstruction of satellite positioning signals by buildings, satellite positioning technology has problems such as low accuracy, poor effect, or inability to provide positioning services when applied to indoor scenes.
[0003] At present, indoor location positioning services play an increasingly important role in people's production and life. For example, accurate indoor location information is needed in emergency rescue, public safety, the Internet of Things, fire protection and other fields. In open spaces, such as exhibitions, museums, theatrical performances and other venues, the prevention and control of dense crowds (such as personnel epidemic prevention traceability) is mainly based on the data statistics application of tickets and their derivatives, and there is no dedicated statistical method and application system based on Internet of Things technology. When conducting data statistics based on tickets and their derivatives, there are problems such as the expansion of personnel and the inability to accurately divide close contacts and secondary close contacts. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a positioning method, device, storage medium and system based on Bluetooth beacons to solve the problem that dense crowds cannot be positioned in existing open spaces.
[0005] To solve the above technical problems, on the one hand, an embodiment of the present application provides a positioning method based on Bluetooth beacons, including the following steps: the beacon sends first identification information; the first identification information is the unique identity identification information of the beacon, and the beacon is an information body formed by binding a Bluetooth beacon with a user; at least some other beacons around the beacon receive the first identification information; based on the first identification information, second identification information is generated; the second identification information includes attribute information of the beacon and combination information of the first identification information and the third identification information; at least some other beacons send the second identification information; at least some other beacons around the beacon receive the second identification information; the receiving mode of the second identification information is determined; based on the receiving mode of the second identification information, the second identification information is processed to obtain fourth identification information; the beacon sends the fourth identification information; at least some other beacons around the beacon receive the fourth identification information; based on the fourth identification information, the physical distance between different beacons is obtained.
[0006] In addition, based on the receiving method of the second identification information, the second identification information is processed to obtain the fourth identification information; including: if the receiving method of the second identification information is direct reception, determine whether the first identification information in the second identification information is consistent with the data of the first identification information directly received by the beacon, if so, discard the second identification information directly received by the beacon, and retain the first identification information directly received by the beacon; if not, do not process it; the direct reception indicates that the beacon corresponding to the identification information received by the current beacon is consistent with the beacon sending the identification information; if the receiving method of the second identification information is indirect reception, based on the second identification information, obtain the fourth identification information; the indirect reception indicates that the beacon corresponding to the identification information received by the current beacon is inconsistent with the beacon sending the identification information.
[0007] In addition, the method of obtaining the fourth identification information based on the second identification information includes: if the current beacon indirectly receives multiple second identification information of the same beacon, retaining the second identification information with the smallest third identification information data in the second identification information, and modifying the third identification information with the smallest data to obtain the fourth identification information.
[0008] In addition, the modifying the third identification information with the smallest data includes: modifying the third identification information with the smallest data in a numerically increasing form.
[0009] In addition, at least some other beacons around the beacon receive the fourth identification information; based on the fourth identification information, the physical distances between different beacons are obtained, including: the beacon sends the fourth identification information to a Bluetooth base station or a mobile terminal; the Bluetooth base station or the mobile terminal receives the fourth identification information, and sends the fourth identification information to a management platform; the management platform obtains the number of beacons spaced between different beacons based on the third identification information in the fourth identification information; based on the number of beacons, the physical distances between different beacons are obtained.
[0010] In addition, the third identification information includes lead code information, and the lead code information is combined with the first identification information in an inserted form to form the second identification information.
[0011] In addition, the attribute information of the beacon includes the attribute data and configuration data of the beacon itself.
[0012] On the other hand, an embodiment of the present application further provides an electronic device, comprising a storage unit and a processing unit; the storage unit stores a computer program that can be run on the processing unit and stores results; when the processing unit executes the computer program, the above-mentioned Bluetooth beacon-based positioning method is implemented.
[0013] On the other hand, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned positioning method based on Bluetooth beacons when executed by a processor.
[0014] On the other hand, an embodiment of the present application also provides a positioning system based on Bluetooth beacons, including a beacon, a terminal and a server; the beacon is configured to receive and send identification information, and the identification information includes first identification information, second identification information and fourth identification information; the beacon includes multiple beacons, and the beacon is an information body formed by binding a Bluetooth beacon and a user; the terminal is configured to receive the identification information sent by the beacon and send the received identification information to the server; the server includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned positioning method based on Bluetooth beacons.
[0015] In addition, the terminal includes a Bluetooth base station and a smart phone; the processor is also configured to obtain a positioning result according to the received identification information, and send the positioning result to the terminal so that the terminal displays the positioning result.
[0016] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:
[0017] The embodiments of the present application provide a positioning method, device, storage medium and system based on Bluetooth beacons, which have good applicability in open spaces, epidemic prevention and control management of dense crowds, post-event tracing, message communication, lost alarms, etc. The embodiments of the present application provide a positioning method based on Bluetooth beacons, which arranges multiple beacons, and the beacons send first identification information to surrounding beacons, and at least some of the beacons around the beacons receive the first identification information, and generate second identification information based on the first identification information, and then send the second identification information to the surrounding beacons; at least some of the beacons around the beacons receive the second identification information, and judge the receiving mode of the second identification information to process the second identification information, and finally obtain the fourth identification information, and obtain the physical distance between the two beacons through the third identification information in the fourth identification information, and obtain the positioning result. The positioning method based on Bluetooth beacons in the embodiments of the present application obtains the physical distance between different beacons, realizes positioning, and is convenient for positioning, and improves the positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.
[0019] Figure 1 is a flowchart of a positioning method based on Bluetooth beacons provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of a positioning method based on Bluetooth beacons provided in another embodiment of the present application;
[0021] Figure 3 is a schematic diagram of a positioning system based on Bluetooth beacons provided in one embodiment of the present application;
[0022] Figure 4 is a schematic diagram of an electronic device provided in an embodiment of the present application;
[0023] Figure 5 is a schematic diagram of a circuit structure of a Bluetooth beacon provided in an embodiment of the present application;
[0024] Figure 6 It is a schematic diagram of a positioning system based on Bluetooth beacons provided in another embodiment of the present application. DETAILED DESCRIPTION
[0025] As can be seen from the background technology, the existing personnel epidemic prevention tracing in open spaces (such as exhibitions, museums, cultural performances and other activity venues) is based on the statistical application of tickets and their derivatives. However, the data statistics based on tickets have problems such as the expansion of personnel and the inability to accurately divide close contacts and secondary close contacts.
[0026] In recent years, with the development of technology, indoor positioning technologies such as Wi-Fi positioning, DAS system positioning, Bluetooth positioning and wireless communication network positioning have emerged. Among them, Bluetooth positioning is the most widely used due to its advantages of low system deployment cost, easy implementation and high accuracy. At present, the Bluetooth positioning method in the relevant technology mostly adopts the positioning method based on the received signal strength indication (RSSI) ranging. This method collects the RSSI values of multiple Bluetooth beacons, uses the propagation loss model of wireless signals in space to calculate the distance between the terminal and each Bluetooth beacon, and then uses algorithms such as geometric solution to obtain the location information. Due to the complexity and diversity of indoor environments and dense crowds in open spaces, the positioning accuracy is inaccurate.
[0027] To solve the above problems, see Figure 1 , the embodiment of the present application provides a positioning method based on Bluetooth beacons, comprising the following steps:
[0028] Step S1: The beacon sends first identification information, wherein the first identification information is the unique identity information of the beacon, and the beacon is an information body formed by binding the Bluetooth beacon and the user.
[0029] Step S2: At least some of the other beacons around the beacon receive the first identification information.
[0030] Step S3: Generate second identification information based on the first identification information; wherein the second identification information includes attribute information of the beacon and combination information of the first identification information and the third identification information.
[0031] Step S4: At least some of the other beacons send second identification information.
[0032] Step S5: At least some of the other beacons around the beacon receive the second identification information.
[0033] Step S6: Determine the receiving method of the second identification information.
[0034] Step S7: Based on the receiving method of the second identification information, the second identification information is processed to obtain fourth identification information.
[0035] Step S8: The beacon sends fourth identification information.
[0036] Step S9: At least some of the other beacons around the beacon receive the fourth identification information.
[0037] Step S10: Based on the fourth identification information, obtain the physical distance between different beacons.
[0038] The embodiment of the present application utilizes the low power consumption, high speed, and short distance characteristics of Bluetooth technology to construct a low-coupling network architecture for Bluetooth beacons. The Bluetooth beacon and the user (such as a visitor to an exhibition) are bound to form an information body to form a beacon to send the first identification information. For example, the Bluetooth beacon can be embedded in a badge, bracelet, tag, etc. to form an electronic device (such as a Bluetooth device), and then relying on the positioning algorithm and the Bluetooth gateway (such as a Bluetooth base station or a mobile phone App), the Bluetooth gateway receives the information sent by the electronic device and after the server's calculation, the location information of people and objects is understood in real time in the display channel.
[0039] See also Figure 3 , assuming that there are beacons from A to F in the system, specifically beacon A, beacon B, beacon C, beacon D, beacon E and beacon F, each beacon sends first identification information to other beacons around the beacon, and the first identification information is the unique identity identifier (Universally Unique Identifier, UUID) of its own beacon; some beacons around the beacon will receive the first identification information, add the third identification information (such as the preamble code) of the first identification information to the first identification information, and then add the attribute information of the beacon to generate the second identification information, and send the beacon data with the second identification information to other beacons around the beacon, and the beacon data is transmitted to the Bluetooth base station or mobile phone App step by step, and reported to the service platform by the Bluetooth base station or mobile phone App.
[0040] In some embodiments, the unique identity UUIDs of beacons A to F are AAAA, BBBB, CCCC, DDDD, EEEE, and FFFF, respectively. The beacons are set to uniformly adopt the CSMA / CD working mechanism, and the beacons are always in a receiving state. After a certain interval (such as 5 seconds) or after a data change, the processed valid data is sent once. The Bluetooth line-of-sight communication distance is set by the management platform by modifying the Bluetooth transmission power.
[0041] The Bluetooth beacon-based positioning method provided in the embodiment of the present application determines the receiving method of the second identification information, processes the second identification information based on the receiving method of the second identification information, obtains the fourth identification information, and then obtains the physical distance between different beacons based on the fourth identification information, thereby solving the problem that the existing open space cannot locate densely populated people, and the positioning is convenient and the positioning accuracy is high.
[0042] In some embodiments, see Figure 2 , based on the receiving method of the second identification information, processing the second identification information to obtain fourth identification information; comprising the following steps:
[0043] Step S701: If the second identification information is received in a direct manner, determine whether the first identification information in the second identification information is consistent with the data of the first identification information directly received by the beacon. If so, proceed to step S702; if not, proceed to step S703. If the second identification information is received in an indirect manner, proceed to step S704.
[0044] Step S702: discard the second identification information directly received by the beacon, and retain the first identification information directly received by the beacon; the direct reception indicates that the beacon corresponding to the identification information received by the current beacon is consistent with the beacon sending the identification information.
[0045] Step S703: no processing is performed.
[0046] Step S704: based on the second identification information, obtain fourth identification information; wherein, indirect reception indicates that the beacon corresponding to the identification information received by the current beacon is inconsistent with the beacon sending the identification information.
[0047] See also Figure 1 , Figure 2 and Figure 3 The beacon information transmission and processing flow in the field data is as follows: Beacon A directly receives multiple first identification information, that is, the UUID data of each beacon (BBBB, CCCC, DDDD, EEEE, FFFF), where BBBB is the first identification information of beacon B, CCCC is the first identification information of beacon C, DDDD is the first identification information of beacon D, EEEE is the first identification information of beacon E, and FFFF is the first identification information of beacon F. Add the attribute information of the beacon and the third identification information (such as the leading code: 0x01) before each UUID data, and then send the beacon data to the surrounding beacons.
[0048] It should be noted that the attribute information of the beacon is a mandatory data field, and the following content omits the description of the operation of adding the attribute information of the beacon to the first identification information. It can be understood that when the third identification information is added to the first identification information, the attribute information of the beacon is also added.
[0049] When beacon A receives UUID data with a preamble sent from beacon B, beacon C, and beacon D, it determines whether the received UUID data with a preamble is consistent with the UUID in the UUID data without a preamble it received. If they are consistent, the UUID data with a preamble is discarded. Here, the UUID data with a preamble can be called relay data. If the UUID data with a preamble received by the beacon is consistent with the UUID in the UUID data without a preamble it received, the UUID data with a preamble is discarded, that is, the relay data is discarded.
[0050] Beacon B directly receives multiple first beacon information, that is, the UUID data (AAAA, CCCC, DDDD, EEEE) of each beacon, adds a 0x01 preamble code before the UUID data of each beacon, and then sends the beacon data to the surrounding beacons; at the same time, beacon B receives the UUID data with the preamble code (0x01DDDD, 0x01EEEE) sent from beacon D and beacon E, and determines whether the UUID data with the preamble code is consistent with the UUID data directly received by beacon B. If the UUID in the UID data is consistent, 0x01DDDD and 0x01EEEE will be discarded; beacon B also receives 0x01FFFF sent by beacon A, and beacon B does not receive the first beacon information of beacon F. The beacon data of beacon F is relayed by beacon A and sent to beacon B, that is, beacon B indirectly receives the UUID data (0x01FFFF) of beacon F with a preamble, and beacon B modifies 0x01FFFF to 0x02FFFF and sends it.
[0051] Beacon E directly receives multiple first beacon information, that is, the UUID data (AAAA, BBBB, FFFF) of each beacon, adds a 0x01 preamble before the UUID data of each beacon, and then sends the beacon data to the surrounding beacons; Beacon E also indirectly receives CCCC with a minimum preamble of 0x02 and DDDD with a minimum preamble of 0x03, and Beacon E modifies the preamble data to 0x03CCCC and 0x04DDDD and sends them to the surrounding beacons, indicating that the minimum interval between Beacon E and Beacon C is 2 beacons, and the minimum interval between Beacon E and Beacon D is 3 beacons. When Beacon E receives UUIDs with different relay hops (such as 0x02CCCC, 0x03CCCC, 0x04CCCC), it retains the UUID with the least relay hops, that is, retains 0x02CCCC, and increases the preamble by 1 before sending, that is, 0x02CCCC is modified to 0x03CCCC and sent.
[0052] Sequentially, the value of the preamble indicates the number of relays between the current beacon and the beacon corresponding to the received UUID, corresponding to the distance between the current beacon and the beacon corresponding to the received UUID. Beacon E also indirectly receives CCCC with a minimum preamble of 0x02 and DDDD with a minimum preamble of 0x03. Beacon E modifies the preamble data to 0x03CCCC and 0x04DDDD and sends them to surrounding beacons, indicating that the minimum interval between beacon E and beacon C is 2 beacons, and the minimum interval between beacon E and beacon D is 3 beacons.
[0053] It should be noted that the maximum value of the third identification information (such as the preamble code) can be predefined by the management platform, taking into account factors such as the on-site area of open spaces such as exhibitions, museums, and cultural performances, the number of beacons, and other factors.
[0054] In some embodiments, based on the second identification information, fourth identification information is obtained, including: if the current beacon indirectly receives multiple second identification information of the same beacon, retaining the second identification information with the smallest third identification information data in the second identification information, and modifying the third identification information with the smallest data to obtain fourth identification information.
[0055] In some embodiments, the modifying the third identification information with the smallest data includes: modifying the third identification information with the smallest data in a numerically increasing form.
[0056] As mentioned above, the second identification information indirectly received by beacon E includes multiple CCCCs with preambles and multiple DDDDs with preambles. The CCCC with the minimum preamble of 0x02 and the DDDD with the minimum preamble of 0x03 are retained. Beacon E modifies the preamble data to 0x03CCCC and 0x04DDDD and sends them to surrounding beacons, indicating that beacon E is at least 2 beacons away from beacon C, and beacon E is at least 3 beacons away from beacon D. In other words, when beacon E receives UUIDs with different relay hops (such as 0x02CCCC, 0x03CCCC, and 0x04CCCC), it retains the UUID with the least relay hops, that is, retains 0x02CCCC, and increases the preamble by 1, that is, modifies 0x02CCCC to 0x03CCCC and sends it.
[0057] See also Figure 2 In some embodiments, at least some other beacons around the beacon receive the fourth identification information; based on the fourth identification information, the physical distance between different beacons is obtained, including: the beacon sends the fourth identification information to a Bluetooth base station or a mobile terminal; the Bluetooth base station or the mobile terminal receives the fourth identification information, and sends the fourth identification information to a management platform; the management platform obtains the number of beacons spaced between different beacons based on the third identification information in the fourth identification information; based on the number of beacons, the physical distance between different beacons is obtained.
[0058] In some embodiments, the mobile terminal may be a mobile electronic device, such as a mobile phone, a bracelet, an electronic watch, or the like.
[0059] In some embodiments, the third identification information includes lead code information, and the lead code information is combined with the first identification information in an inserted form to form the second identification information.
[0060] It can be understood that the lead code information can be inserted before the first identification information, such as: 0x01AAAA, in which case the third identification information is called a leading code; the lead code information can also be inserted after the first identification information, such as: AAAA0x01, in which case the third identification information is called a suffix lead code.
[0061] The positioning method based on Bluetooth beacons provided in the embodiment of the present application has good applicability in the aspects of epidemic prevention and control management of open spaces and dense crowds, post-event tracing, message communication, and lost alarm. The method arranges multiple beacons, and the beacon sends the first identification information to the surrounding beacons. At least some of the beacons around the beacon receive the first identification information, and generate the second identification information based on the first identification information, and then send the second identification information to the surrounding beacons; at least some of the beacons around the beacon receive the second identification information, and judge the receiving mode of the second identification information to perform different operations, and finally obtain the fourth identification information, and obtain the physical distance between the two beacons through the third identification information (guide code information) in the fourth identification information, and obtain the positioning result. The positioning method based on Bluetooth beacons in the embodiment of the present application obtains the physical distance between different beacons, realizes positioning, and the positioning is convenient, which improves the positioning accuracy.
[0062] See also Figure 4 Another embodiment of the present application relates to an electronic device, including a processing unit 101 and a storage unit 102; the storage unit 102 stores a computer program that can be run on the processing unit 101 and stores the results; when the processing unit 101 executes the computer program, the Bluetooth beacon-based positioning method of the above embodiment is implemented.
[0063] like Figure 4 As shown, the electronic device includes at least one processing unit 101; and a storage unit 102, Bluetooth 103, a power supply unit 104 and a communication unit 105 that are communicatively connected to the at least one processing unit 101; wherein the storage unit 102 stores instructions that can be executed by the at least one processing unit 101, and the instructions are executed by the at least one processing unit 101 so that the at least one processing unit 101 can execute the Bluetooth beacon-based positioning method in the above-mentioned embodiments.
[0064] In some embodiments, the storage unit 102 includes a memory DDR, a random access memory RAM, a flash memory FLASH and a read-only memory ROM.
[0065] The storage unit 102 and the processing unit 101 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processing units 101 and the storage unit 102 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processing unit 101 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processing unit 101.
[0066] The processing unit 101 is responsible for managing the bus and general processing, and may also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The storage unit 102 may be used to store data used by the processing unit 101 when performing operations.
[0067] In some embodiments, the product form of the Bluetooth beacon can be a wristband or a card, with a core circuit board built into the shell so as to be packaged into different product shapes, such as directly packaged into the entrance sign of an exhibition.
[0068] In communication systems, system on chip (SoC) integrated circuits are usually used, such as Figure 5 As shown, the core circuit structure of the Bluetooth beacon includes a Bluetooth SOC 201 and a battery charge and discharge management module 202, an indicator light 203 and a Bluetooth antenna 204 that are connected to the Bluetooth SOC 201. The Bluetooth beacon can be designed to be waterproof and dustproof, and powered by a built-in lithium polymer battery. The charging connection method can use a magnetic contact with a charging protection function.
[0069] In some embodiments, the Bluetooth base station has an Ethernet port, which can be directly connected to a computer during the commissioning phase, and the commissioning software can be run on the computer to perform unified commissioning and configuration of the beacon, and the local storage data can be directly read when communication is lost. The Bluetooth base station is installed at a fixed location on site.
[0070] In some embodiments, the Bluetooth base station and the Bluetooth beacon are designed with the same chip in the Bluetooth transceiver part, and the communication part with the management platform is transmitted through a public wired or wireless communication channel, and can be powered by an external adapter or 220V AC power.
[0071] In some embodiments, the dedicated app of the smartphone scans the QR code on the Bluetooth beacon to complete the pairing and binding between the Bluetooth beacon and the user, and reports the data to the management platform. The mobile app can be resident in the background to receive emergency communication messages or warning / alarm messages of missing elderly people and children.
[0072] In some embodiments, the management platform includes a cloud-based public monitoring management platform and a user private monitoring management platform. The cloud-based public monitoring management platform uses programming languages and expressions such as JAVA, JS, and HTML5, and uses a MySQL database for data storage. The management platform includes five functional modules, specifically a platform configuration management module, a Bluetooth beacon and base station management module, a beacon data analysis and early warning module, a beacon data screening and export module, and an emergency communication distribution management module.
[0073] In some embodiments, the platform's own configuration management module is configured to manage the platform's own user management, authority management, geographic location management, building management, log management and other functions. For each project or customer, a project administrator is configured, and the project administrator configures the users and permissions under him. Add, delete and modify geographic data, building data, and user data.
[0074] In some embodiments, the Bluetooth beacon and base station management module is configured to manage all Bluetooth beacons and base stations under this project, set the working parameters and attribute data of Bluetooth beacons and base stations, etc. The mobile phone App also communicates with the module to bind the Bluetooth beacon.
[0075] In some embodiments, the beacon data analysis and warning module is configured to obtain crowd density parameters by analyzing the beacon UUID data with the leading code attached in the fourth identification information, and issue a warning message when a reasonable distance needs to be maintained. When a group of beacons activates the lost warning function, a warning message is issued after the conditions are met.
[0076] In some embodiments, the beacon data screening and export module is configured to analyze the unique identity identifier UUID associated with a certain beacon, screen out close contacts and secondary close contacts, and export them.
[0077] In some embodiments, the emergency communication distribution management module is configured so that a project administrator can set up emergency text messages and distribute them.
[0078] Another embodiment of the present application relates to a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the positioning method based on Bluetooth beacons of the above embodiment is implemented.
[0079] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as: ROM), random access memory (Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program codes.
[0080] See also Figure 6 Another embodiment of the present application relates to a positioning system based on Bluetooth beacons, including beacons, terminals and servers; the beacons are configured to receive and send identification information, the identification information includes first identification information, second identification information and fourth identification information; the beacons include multiple beacons, and the beacons are information bodies formed by binding Bluetooth beacons and users; the terminal is configured to receive the identification information sent by the beacons and send the received identification information to the server.
[0081] The server includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the Bluetooth beacon-based positioning method of the above-mentioned embodiment.
[0082] like Figure 6 As shown, the Bluetooth beacon-based positioning system of the embodiment of the present application includes multiple beacons, a Bluetooth base station, and a smart phone (running a dedicated App or a mini-program, either one); the beacons include beacons A to beacon K, and the smart phones include mobile phone a, mobile phone b and mobile phone c. The beacon information is sent to the Bluetooth base station or smart phone via multiple beacons. The Bluetooth base station or smart phone transmits the data of the field equipment to the server via a public communication channel or a dedicated communication channel, and the server sends the beacon data to the management platform.
[0083] In some embodiments, the beacon is used to receive and send beacon information, and the identification information includes not only the first identification information (unique identity information UUID), the second identification information and the fourth identification information (UUID with the third identification information added), but also its own attribute data, configuration data, emergency communication data and light alarm. The Bluetooth base station is used to receive the beacon information sent by the beacon and upload it to the management platform, and receive the data from the management platform and send it to the beacon. The management platform is used for beacon management, data analysis and display, export and emergency communication management.
[0084] In some embodiments, the terminal includes a Bluetooth base station and a smart phone; the processor is also configured to obtain a positioning result based on the received identification information, and send the positioning result to the terminal so that the terminal displays the positioning result.
[0085] Ideally, each beacon is connected to a smartphone, and data is uploaded to the platform through the mobile app; the mobile app is used to pair with the Bluetooth beacon in the beacon, receive and send beacon data, emergency communication data, and display emergency communication content. In order to increase transmission reliability, Bluetooth base stations can also be deployed on site to receive beacon data. The management platform performs data analysis based on the value of the beacon's third identification information (such as the leading code) and the current beacon's unique identification information UUID to implement various preset functions, such as crowd gathering detection, close contact identification, secondary close contact identification, emergency communication transmission, etc.
[0086] The Bluetooth beacon-based positioning system of the embodiment of the present application is based on low-power Bluetooth beacons and a management platform, supplemented by mobile phone apps and Bluetooth base stations, to complete functions such as crowd gathering detection, close contact identification, secondary close contact identification, and emergency communication transmission.
[0087] In some embodiments, when implementing crowd gathering detection, the management platform determines the distance between the beacon and other beacons based on the received identification information, the unique identification information UUID of a beacon in the identification information and the third identification information (guide code information), and analyzes the crowd density based on the distance preset by the administrator.
[0088] In some embodiments, when identifying close contacts and secondary close contacts, it is assumed that beacon A is a special beacon (such as a confirmed COVID-19 patient). The first identification information UUID of beacon A reaches the management platform after being relayed by other beacons. The management platform can analyze the close contacts, secondary close contacts, and secondary close contacts of beacon A based on the UUID source of the received fourth identification information and the leading code data of the UUID, thereby providing data for epidemic prevention and control.
[0089] In some embodiments, when implementing emergency communication transmission, since all beacons have two-way communication capabilities, the management platform can send text messages through the beacons, and display the content of the emergency communication through the mobile phone app connected to the beacon; the indicator light function on the beacon can also be pre-defined and printed in a conspicuous position on the shell of the built-in beacon, with different colors indicating different meanings.
[0090] In some embodiments, when implementing lost warning / alarm, the beacons of the elderly and children can be bound to the main beacon as secondary beacons. When the distance between the secondary beacon and the main beacon exceeds the set value, the indicator light of the paired beacon flashes to alarm, and the mobile phone App also pops up an alarm message.
[0091] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.
Claims
1. A positioning method based on Bluetooth beacons, characterized in that: The following steps are involved: The beacon sends first identification information; the first identification information is the unique identity information of the beacon, and the beacon is an information body formed by binding the Bluetooth beacon and the user; At least some other beacons around the beacon receive the first identification information; Based on the first identification information, second identification information is generated; the second identification information includes attribute information of the beacon and combination information of the first identification information and the third identification information; At least some of the other beacons send the second identification information; At least some other beacons around the beacon receive the second identification information; Determining a receiving method of the second identification information; Based on the receiving method of the second identification information, the second identification information is processed to obtain fourth identification information; The beacon sends the fourth identification information; At least some other beacons around the beacon receive the fourth identification information; Based on the fourth identification information, the physical distances between different beacons are acquired.
2. The positioning method based on Bluetooth beacon according to claim 1, characterized in that: The step of processing the second identification information based on the receiving method of the second identification information to obtain the fourth identification information comprises: If the receiving mode of the second identification information is direct reception, determine whether the first identification information in the second identification information is consistent with the data of the first identification information directly received by the beacon, and if so, discard the second identification information directly received by the beacon and retain the first identification information directly received by the beacon; if not, do not process it; the direct reception indicates that the beacon corresponding to the identification information received by the current beacon is consistent with the beacon that sent the identification information; If the second identification information is received in an indirect manner, the fourth identification information is obtained based on the second identification information; the indirect reception indicates that the beacon corresponding to the identification information received by the current beacon is inconsistent with the beacon sending the identification information.
3. The positioning method based on Bluetooth beacon according to claim 2, characterized in that: The acquiring fourth identification information based on the second identification information includes: If the current beacon indirectly receives multiple second identification information of the same beacon, the second identification information with the smallest third identification information data in the second identification information is retained, and the third identification information with the smallest data is modified to obtain the fourth identification information.
4. The positioning method based on Bluetooth beacon according to claim 3, characterized in that: The modifying of the smallest third identification information of the data includes: The third identification information with the smallest data is modified in a numerically increasing form.
5. The positioning method based on Bluetooth beacon according to claim 1, characterized in that: At least some other beacons around the beacon receive the fourth identification information; Based on the fourth identification information, obtaining physical distances between different beacons includes: The beacon sends the fourth identification information to a Bluetooth base station or a mobile terminal; The Bluetooth base station or the mobile terminal receives the fourth identification information, and sends the fourth identification information to the management platform; The management platform acquires the number of beacons spaced between different beacons based on the third identification information in the fourth identification information; Based on the number of beacons, physical distances between different beacons are obtained.
6. The positioning method based on Bluetooth beacon according to claim 1, characterized in that: The third identification information includes lead code information, and the lead code information is combined with the first identification information in an inserted form to form the second identification information.
7. An electronic device, characterized in that: It comprises a storage unit and a processing unit; the storage unit stores a computer program that can be run on the processing unit and stores results; when the processing unit executes the computer program, the Bluetooth beacon-based positioning method as described in any one of claims 1-6 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the positioning method based on Bluetooth beacons described in any one of claims 1 to 6 is implemented.
9. A positioning system based on Bluetooth beacons, characterized in that: Including beacons, terminals and servers; The beacon is configured to receive and send identification information, the identification information includes first identification information, second identification information and fourth identification information; the beacon includes a plurality of beacons, and the beacon is an information body formed by binding a Bluetooth beacon and a user; The terminal is configured to receive identification information sent by the beacon, and send the received identification information to the server; The server includes at least one processor and a memory connected to the at least one processor in communication; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the Bluetooth beacon-based positioning method as described in any one of claims 1-6.
10. The positioning system based on Bluetooth beacons according to claim 9, characterized in that: The terminal includes a Bluetooth base station and a smart phone; the processor is also configured to obtain a positioning result according to the received identification information, and send the positioning result to the terminal so that the terminal displays the positioning result.
