Electronic tag positioning method and system
By using multiple devices to confirm the consistency and distance of electronic tag data in the smart home system, combined with the topological information of the smart gateway, the accuracy of electronic tag positioning in the smart home system is solved, and the high level of electronic tag positioning in complex electromagnetic environments is achieved Accurate positioning provides an effective supplement to indoor positioning.
Patent Information
- Application Number
- CN202210954426.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-10
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-08-10
AI Technical Summary
In smart home systems, how to accurately and accurately locate people or objects carrying electronic tags is a technical problem that needs to be solved urgently. It is difficult for the existing technology to achieve high-precision positioning in complex electromagnetic environments.
The topology of the intelligent gateway and multiple devices in the room area is calculated using the intelligent gateway and the topology of the room area using the received gateway and multiple devices, and the wireless data signal strength is calculated by confirming each other's data consistency and actual distance. Information is positioned, signal power and transmission interval are adjusted to optimize positioning accuracy.
It realizes the rapid and accurate positioning of the person or object carrying electronic tags in the room, providing a beneficial supplement to the positioning of GPS and Beidou positioning system indoors, and improving positioning accuracy and reliability.
Smart Images

Figure CN115361650B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of room area positioning and smart home technology, and in particular to an electronic tag positioning method and an electronic tag positioning system. Background Art
[0002] At present, smart home systems usually include several control and sensor devices, which are composed of smart gateways (the center of all devices) and switches, lights, sockets, infrared controllers, switch controllers, temperature sensors, smoke sensors, human sensors and other devices. By using these ready-made devices as "base stations", they can detect smart electronic tags carried by the human body. The electronic tags will broadcast wireless data at regular intervals, and all base stations can search for the data of the device (each tag can create human preferences and linkage preferences in the app, as well as the priority of multiple tags). The device detects the presence of tags nearby (carried by people) to determine whether there is such an area and the trajectory and location of the user's movement. However, how to accurately and precisely locate electronic tags is a technical problem that needs to be solved urgently. Summary of the invention
[0003] In order to solve the problem of electronic tag positioning, the present application provides an electronic tag positioning method and an electronic tag positioning system.
[0004] The present application provides an electronic tag positioning method, which adopts the following technical solution:
[0005] In a first aspect, a method for locating an electronic tag is provided, comprising:
[0006] The electronic tag wirelessly transmits the first data using the transmitting module;
[0007] Each of the at least two devices calculates a first distance between the electronic tag and each of the at least two devices according to a signal strength of the received first data;
[0008] The at least two devices mutually confirm whether the first data received by each device is the same;
[0009] The at least two devices that have received the same first data calculate and determine the position of the electronic tag according to their actual distances and the first distance.
[0010] Preferably, the at least two devices mutually confirm whether the first data received by each is the same, comprising: the at least two devices wirelessly send the first data received by themselves to adjacent devices to compare and confirm whether the first data received by each is the same.
[0011] Preferably, the at least two devices wirelessly sending the first data received by themselves to the adjacent devices includes:
[0012] The first device among the at least two devices, which has the shortest first distance to the electronic tag, controls the number of the adjacent devices that can receive the first data by adjusting the signal power of the first data sent by itself.
[0013] Preferably, the adjacent devices include: at least two devices among the at least two devices that are only one hop apart on the data link.
[0014] Preferably, the electronic tag uses a transmitting module to wirelessly transmit the first data, before that, the electronic tag further includes:
[0015] The room area, room area topology, device installation location, device type, and device function list information of each device that receives the first data sent by the electronic tag are stored in the intelligent gateway.
[0016] Preferably, the electronic tag wirelessly transmits the first data using a transmitting module, and then further comprises:
[0017] The electronic tag adjusts the interval and / or frequency of sending the first data according to the information replied by any device after receiving the first data and received by the receiving module.
[0018] Preferably, the first data includes: an encrypted MAC address field, a transmission power field, and a counter field.
[0019] In a second aspect, an electronic tag positioning system is also provided, comprising:
[0020] The electronic tag is used to wirelessly transmit the first data using a transmitting module;
[0021] A smart device, wherein each of the at least two smart devices calculates a first distance between the electronic tag and each of the at least two smart devices according to a signal strength of the received first data;
[0022] The at least two smart devices mutually confirm whether the first data received by each of them is the same;
[0023] The at least two smart devices that have received the same first data calculate and determine the position of the electronic tag according to their actual distances and the first distance;
[0024] The intelligent gateway is connected to the intelligent devices via wireless or wired means.
[0025] Preferably, the intelligent device comprises: at least two devices among the at least two devices that are one hop away from each other on the data link.
[0026] Preferably, the first data includes: an encrypted MAC address field, a transmission power field, and a counter field.
[0027] In summary, the present application includes at least one of the following beneficial technical effects:
[0028] 1. It provides a method for locating electronic tags, which can quickly and accurately give the location of people or objects carrying electronic tags in the room; it is a useful supplement to GPS and Beidou positioning systems in indoor positioning;
[0029] 2. It provides a system for locating electronic tags, which can quickly and accurately give the location of people or objects carrying electronic tags in the room; it is a useful supplement to GPS and Beidou positioning systems in indoor positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is the first embodiment of the electronic tag positioning method;
[0031] Figure 2 This is the first embodiment of the electronic tag positioning method;
[0032] Figure 3 This is the first embodiment of the electronic tag positioning method;
[0033] Figure 4 It is the logic block diagram of the electronic tag positioning system.
[0034] Description of reference numerals:
[0035] 1. Electronic tag positioning system; 101. Electronic tag;
[0036] 102. Smart device; 103. Smart gateway. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-4 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] The present application provides an electronic tag positioning method, which adopts the following technical solution:
[0039] First, as Figure 1 As shown, a method for locating an electronic tag is provided, comprising:
[0040] S101: The electronic tag wirelessly transmits first data using a transmitting module. Generally, the electronic tag has two modules: a receiving module and a transmitting module. The receiving module is used to receive wireless signals; the transmitting module is used to transmit wireless signals so that the smart device can sense the existence of the electronic tag and facilitate positioning.
[0041] S102: Each of the at least two devices calculates the first distance between the electronic tag and each of the at least two devices according to the signal strength of the received first data; the distance between the electronic tag and the device receiving the first data is calculated according to the signal strength of the first data; the signal strength is the received signal strength indication of RSSI (Received Signal Strength Indicator), which is a method of determining the distance between the signal point and the receiving point by the strength of the received signal, and then performing positioning calculation according to the corresponding data. However, only the signal strength emitted by the electronic tag can determine the distance, and the position cannot be accurately determined. After the first data emitted by the electronic tag is received by the peripheral devices centered on the electronic tag, the device can confirm the distance between the electronic tag and the device.
[0042] S103: The at least two devices mutually confirm whether the first data received by each is the same; in order to confirm the specific location of the electronic tag, multiple devices can be set in multiple areas of multiple rooms. These devices can be switches, lamps, sockets, infrared controllers, switch controllers, temperature sensors, smoke sensors, human body sensors and other devices. Due to the complex electromagnetic environment in modern life, and there can be multiple electronic tags; therefore, in this step, multiple devices are required to confirm whether the content of the first data received by each is the same. That is, at least two devices mutually confirm that the first data received by each is sent by the same electronic tag.
[0043] S104: The at least two devices that received the same first data calculate and determine the position of the electronic tag based on the actual distance between each other and the first distance. During the initialization process, the intelligent gateway 103 can be informed in advance, or the actual distance between at least two devices can be set, or the actual distance length between the two devices can be determined based on the signal strength of the signal sent and received between the two devices. Then the position of the electronic tag can be calculated based on the distance from the electronic tag to each of the two devices, and the distance between the two devices. For example, there are two devices A and B, and an electronic tag C. According to the first data sent by the electronic tag C, devices A and B can determine the length of AC and BC based on the signal strength of the received first data; in addition, the distance length between devices A and B can be obtained in the pre-set intelligent gateway 103, or it can be obtained by using the signal strength test method. Then the length of AB can also be obtained. The triangle formed by the three points A, B, and C is determined, and the actual position of point C in space can be calculated.
[0044] Preferably, the at least two devices mutually confirm whether the first data received by each of them is the same, including: the at least two devices send the first data received by themselves to the adjacent device by wireless to compare and confirm whether the first data received by each of them is the same. Confirming whether the first data is the same between at least two devices includes sending the first data received by each of them, and then different devices compare the first data received for the first time with the first data received for the second time to confirm whether the two first data are the same.
[0045] Preferably, the at least two devices wirelessly sending the first data received by themselves to the adjacent devices includes:
[0046] The first device of the at least two devices that has the shortest first distance to the electronic tag controls the number of adjacent devices that can receive the first data by adjusting the signal power of the first data it sends. The power of the signal sent by each device is different, and the sensitivity of the received wireless signal is also different. If the transmission power of the device is controlled, it is obvious that the range that the signal sent by the device can reach is controlled. Then within the reachable range, the number of devices that can receive the first data is limited, which is also controllable. The first device can achieve the number of devices that can receive the first data by controlling the power of sending the first data. The first device closest to the electronic tag is used as the basis for sending the first data so that the position of the electronic tag is determined by the closest device, which is more accurate.
[0047] Preferably, the adjacent devices include: at least two devices of the at least two devices that are only one hop away on the data link. In this embodiment, the selected adjacent devices are all devices on the data link set by the intelligent gateway 103; if the selected devices are not two devices that are only one hop away on the data link, but devices with an interval of two hops or more, the range of the area determined by the electronic tag may be expanded. Using only a one-hop distance can narrow the range of the area where the electronic tag may exist, which is conducive to solving the technical problem of the present invention.
[0048] Preferably, Figure 2 As shown, the electronic tag uses a transmitting module to wirelessly transmit the first data, and before that, it also includes:
[0049] S100: The room area, room area topology, device installation location, device type, and device function list information of each device receiving the first data sent by the electronic tag are stored in the intelligent gateway 103. In the present invention, the electronic tag needs to be set within the signal coverage of multiple devices with networking capabilities managed by the intelligent gateway 103. In addition, these devices are set in various room areas indoors, and different installation locations are set according to different room areas; there are also different room area topologies. All of the above need to be pre-set in the intelligent gateway 103. Otherwise, the electronic tags are in an irregular network where the relationship between each other cannot be confirmed.
[0050] Preferably, Figure 3 As shown, the electronic tag wirelessly transmits the first data using the transmitting module, and then further includes:
[0051] S1011: The electronic tag adjusts the interval and / or frequency of sending the first data according to the information replied by any device after receiving the first data received by the receiving module. As mentioned above, the electronic tag also has a receiving module; the receiving module adjusts the transmission mode according to the information replied by any device after receiving the first data; for example, if a reply frame is received from any device, the electronic tag adjusts the random time generated by random numbers to 4-7S, and if it is not received within a certain time range, it switches to 15-30S once, and when a reply is received again, the sending interval will be switched to the connection rate again; the above method can be used to reduce the battery consumption of the electronic tag when not at home.
[0052] Preferably, the first data includes: an encrypted mac address field, a transmission power field, and a counter field. The mac field is the chip unique address (Media Access Control Address), also known as the local area network address. The mac address uses the unique identification code extended by EUI-64 (Extended Unique Identifier). The electronic tag is also a device in the network. Therefore, in the case of interconnection, a network address is also required to distinguish it from other devices. The transmission power field can give the power when the first data is transmitted, so that the receiving device can evaluate the difference between the received power and the transmission power at the receiving end, thereby realizing the determination of the distance between the transmitting end and the receiving end. The counter field is added by 1 for each frame of data to prevent retransmission attacks. The interval between each data transmission is 0.5-15S. The non-repetition number of the 32-bit counter can reach more than 60 years. The counter is stored in the factory data field in the chip. It will not be cleared when burning and restoring the device to the factory. In this way, it can be accumulated continuously to avoid replay attacks.
[0053] Second, as Figure 4 As shown, an electronic tag positioning system 1 is also provided, comprising:
[0054] The electronic tag 101 is used to wirelessly transmit first data using a transmitting module;
[0055] The smart device 102, each of the at least two smart devices 102, calculates a first distance between the electronic tag and each of the at least two smart devices 102 according to a signal strength of the received first data;
[0056] The at least two smart devices 102 mutually confirm whether the first data received by each of them is the same;
[0057] The at least two smart devices 102 that have received the same first data calculate and determine the location of the electronic tag according to their actual distances and the first distance.
[0058] The intelligent gateway 103 is connected to the intelligent device 102 in a wireless or wired manner.
[0059] Preferably, the intelligent device comprises: at least two devices among the at least two devices that are one hop away from each other on the data link.
[0060] Preferably, the first data includes: an encrypted MAC address field, a transmission power field, and a counter field.
[0061] In summary, the present application includes at least one of the following beneficial technical effects:
[0062] 1. It provides a method for locating electronic tags, which can quickly and accurately give the location of people or objects carrying electronic tags in the room; it is a useful supplement to GPS and Beidou positioning systems in indoor positioning;
[0063] 2. Provides a system for locating electronic tags, which can quickly and accurately give the location of people or objects carrying electronic tags in the room; it is a useful supplement to GPS and Beidou positioning systems in indoor positioning.
[0064] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. An electronic tag positioning method, It is characterized in that include: The electronic tag wirelessly transmits the first data using the transmitting module; The electronic tag adjusts the interval and / or frequency of sending the first data according to the information replied by any device after receiving the first data and received by the receiving module, wherein the interval is a random time generated by the electronic tag through a random number; Each of the at least two devices calculates a first distance between the electronic tag and each of the at least two devices according to a signal strength of the received first data; The at least two devices wirelessly send the first data received by themselves to the adjacent devices to compare and confirm whether the first data received by each device is the same; wherein the first device of the at least two devices, which has the shortest first distance to the electronic tag, controls the number of the adjacent devices that can receive the first data by adjusting the signal power of the first data sent by itself; The at least two devices that have received the same first data calculate and determine the position of the electronic tag according to their actual distances and the first distance.
2. The method according to claim 1, It is characterized in that The adjacent devices include: at least two devices among the at least two devices that are only one hop away from each other on the data link.
3. The method according to claim 1, It is characterized in that The electronic tag wirelessly transmits the first data using the transmitting module, and before that, the electronic tag further includes: The room area, room area topology, device installation location, device type, and device function list information of each device that receives the first data sent by the electronic tag are stored in the intelligent gateway.
4. The method according to claim 1, It is characterized in that The first data includes: an encrypted MAC address field, a transmission power field, and a counter field.
5. An electronic tag positioning system, It is characterized in that include: An electronic tag (101), used for wirelessly transmitting first data using a transmitting module; A smart device (102), wherein each smart device (102) of at least two smart devices (102) calculates a first distance between the electronic tag and each of the at least two smart devices (102) according to a signal strength of the received first data; The at least two smart devices (102) mutually confirm whether the first data received by each of them is the same; The at least two smart devices (102) that have received the same first data calculate and determine the location of the electronic tag based on their actual distance and the first distance; The intelligent gateway (103) is connected to the intelligent device (102) in a wireless or wired manner.
6. The system according to claim 5, It is characterized in that The smart device (102) comprises: at least two smart devices (102) of the at least two smart devices (102) that are one hop away from each other on a data link.
7. The system according to claim 6, It is characterized in that The first data includes: an encrypted MAC address field, a transmission power field, and a counter field.
