A wireless beacon positioning system and positioning method thereof

By using on-demand grouping and dynamic timing technology in the wireless beacon positioning system, combined with the configuration of the transmitting field strength and attenuation coefficient, the problem of positioning accuracy at complex job sites is solved, and low-cost, high-precision positioning is achieved.

CN113567910BActive Publication Date: 2024-09-20ALLISWELL QINGDAO IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110831823.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-22
Publication Date
2024-09-20
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

Existing wireless beacon positioning systems are difficult to achieve high-precision positioning in complex job site environments, especially due to clock synchronization errors and channel degradation problems caused by differences in node crystal oscillator characteristics, resulting in unsatisfactory positioning accuracy.

Method used

It adopts on-demand grouping and dynamic timing technology between wireless beacons, identification cards and transmission substations, and realizes the time between wireless beacons through the configuration of transmit field strength and attenuation coefficient, signal strength threshold filtering and virtual timestamp algorithm. Synchronization and precise positioning.

Benefits of technology

It achieves low-cost, high-precision positioning effects at petrochemical, chemical and other work sites, meets the flexible requirements for positioning accuracy, and reduces the power consumption of wireless beacons.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113567910B
    Figure CN113567910B
Patent Text Reader

Abstract

The present invention provides a wireless beacon positioning system and a positioning method thereof, which belong to the fields of personnel positioning, Internet of Things, and wireless communication technology. Wireless beacons and transmission substations are paired and grouped in an on-demand allocation manner. Through on-demand configuration of transmission field strength and attenuation coefficient, signal strength threshold filtering and other technologies, the positioning accuracy of the identification card is ensured by setting the identification card positioning handshake signal strength threshold, and the identification card can only communicate with the nearest wireless beacon and other equipment, and can be restricted by signal strength; by setting the induction identification card signal strength threshold, the wireless beacon can automatically sense the existence of the identification card, and realize the situation where people come to communicate and people leave and sleep. The induction range of the identification card is limited by the parameter, and it can also be used as a logic switch for whether to enable the induction identification card, thereby meeting the flexible requirements for on-demand deployment of positioning accuracy at work sites such as petrochemicals and chemicals, and achieving low-cost and high-precision positioning effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of personnel positioning, Internet of Things and wireless communication technology, and in particular to a wireless beacon positioning system and a positioning method thereof. Background Art

[0002] At present, indoor beacon positioning technology is divided into ranging-based and non-ranging-based urban positioning methods according to different positioning mechanisms. The non-ranging-based method uses information such as network connectivity to achieve positioning, and the positioning accuracy is relatively low; the ranging-based method calculates the position of the node by measuring the distance or angle between nodes and other information, and the positioning accuracy is relatively high.

[0003] The positioning technology based on received signal strength (RSSI) belongs to the distance measurement method. The RSSI method is used to estimate the distance between two points, and the positioning is performed through the relative positions between nodes. Due to the complexity of the work site environment, the accuracy of this method is seriously affected by factors such as large interference, multipath reflection, and non-line of sight problems. Therefore, the positioning accuracy of this method is not ideal.

[0004] When radio signals are propagating, some signal strength will be lost. The distance between the transmitting and receiving points of the radio signals can be deduced based on the magnitude of these losses, and the positioning purpose can be achieved based on multiple distance data. However, due to the complexity of the actual application environment, such as the influence of various uncertain factors such as obstacles, diffraction, air temperature and humidity, it is almost impossible to accurately model the radio signal loss model, which leads to large errors in estimating the distance between the mobile node and the reference node through the RSSI value.

[0005] Positioning through multi-point RSSI: In fact, if the signal of any beacon at the petrochemical, chemical and other work sites is not good, it will lead to fundamental errors such as "passing through devices, equipment, walls, and not distinguishing between inside and outside".

[0006] The basic architecture of the positioning system using various technologies such as RFID, ZigBee, Wi-Fi, and Bluetooth beacons is a fixed deployment of card reading base stations. People carry identification cards, and the card reading base stations receive information from the identification cards carried by people, and identify and locate people based on their field strength, phase, identification card serial code and other information.

[0007] The above positioning algorithms all require the clocks of nodes in the network to be synchronized. However, different nodes have their own local clocks. Due to the deviation of the crystal oscillator frequencies of different nodes, it is difficult for multiple crystal oscillators to keep the same frequency. The traditional time synchronization protocol strives to synchronize the crystal oscillator frequencies in the entire network. However, due to the limitations of the wireless sensor network node architecture, the time synchronization algorithms in the existing technologies often find it difficult to meet the ideal requirements. For example:

[0008] The sender-receiver time synchronization algorithm is based on the principle that the sender embeds its local time in the synchronization message, and the receiver adjusts its own local time according to the time after receiving the message.

[0009] Based on the sender-receiver interactive time synchronization algorithm, its principle is to send synchronization messages in both directions. According to the synchronization messages, the time deviation between two adjacent nodes and the transmission delay time of the message can be calculated.

[0010] Based on the receiver-to-receiver interactive time synchronization algorithm, its principle is to use messages to synchronize the time between multiple receivers. Every time a reference node sends a reference message, other receiver nodes in its broadcast domain will receive the message and record the local time when the reference message is received. The receivers exchange their recorded times and calculate the difference, which is the clock offset between the receivers.

[0011] The above positioning process is based on the premise that there is no obstruction between the identification card and the card reader base station. However, in complex environmental conditions such as petrochemical and chemical sites, there are often various obstacles, such as steel structures and concrete work sites. Pure RF-based methods cannot provide the required positioning and tracking capabilities.

[0012] In order to locate personnel, the patent owner Gu Wei invented a "personnel positioning system (Announcement No. CN103634908A)", which includes a personnel positioning communication base station, a personnel positioning portable terminal, a positioning beacon and a personnel positioning server. The positioning beacon is installed at a fixed position as needed. The positioning beacon has a unique number associated with its installation location information, and periodically sends its number information to the personnel positioning portable terminal wirelessly; the personnel positioning portable terminal is carried by the personnel, and the personnel positioning portable terminal receives the number information sent by each positioning beacon in real time, processes the current location information, displays it to the carrying person, and sends it to the personnel positioning server.

[0013] Patent CN102523621A also discloses a personnel positioning system, which consists of a ground monitoring center, a transmission base station, an optical fiber, a gateway node, a bus, a beacon node, a training node and a mobile node. The beacon nodes are arranged in blocks in the lanes, and the personnel carry the mobile nodes. The mobile nodes read the signals of the beacon nodes and process the positioning information of the received beacon nodes, and upload them to the ground monitoring center for matching calculation with their positioning mode data to achieve positioning; the training nodes are used to measure, obtain and correct the positioning mode data.

[0014] However, the above methods all need to periodically send positioning information to mobile nodes or personnel positioning portable terminals wirelessly. Therefore, they all have the following problems: due to the differences in node crystal oscillator characteristics, even if the clock frequency and counting cycle between nodes are set to the same value, it cannot be guaranteed that the cycle of each node is equal. Due to the influence of various factors such as the work site, the node cannot be synchronized directly with the time reference node but can only be synchronized with the node that has synchronization error with the time reference node. Therefore, the synchronization error will inevitably accumulate and the reliability of the system will be rapidly reduced.

[0015] The personnel positioning method in the existing technology has the above-mentioned problems due to channel degradation. These channels may even affect the point-to-point communication between positioning devices. Even if there is no external RF interference source, there is still multipath fading, and the signal will be greatly attenuated when passing through various objects in the environment, etc.

[0016] The positioning technology based on received signal strength (RSSI) belongs to the distance measurement method. The RSSI method is used to calculate the distance between two points, and the positioning is performed through the mutual position between nodes. Due to the complexity of the work site environment, the accuracy of this method is seriously affected by factors such as large interference, multipath reflection, and non-line of sight problems. Therefore, the positioning accuracy of this method is not ideal. When the RSSI algorithm is used for positioning, when the transmission distance is short, the power attenuation is faster, and the longer the transmission distance, the slower the signal attenuation. Therefore, when using RSSI positioning, the closer the distance, the more accurate the positioning; the longer the distance, the greater the positioning error.

[0017] When radio signals are propagating, some signal strength will be lost. The distance between the transmitting and receiving points of the radio signals can be deduced based on the magnitude of these losses, and the positioning purpose can be achieved based on multiple distance data. However, due to the complexity of the actual application environment, such as the influence of various uncertain factors such as obstacles, diffraction, air temperature and humidity, it is almost impossible to accurately model the radio signal loss model, which leads to large errors in estimating the distance between the mobile node and the reference node through the RSSI value.

[0018] For personnel positioning, the patent holders Zeng Hong, Dai Guojun, Zhu Jincheng and others invented a "close-range precise positioning method based on RSSI (Announcement No. CN201410256215)". The system first performs parameter calibration to obtain a mapping system from RSSI to distance to achieve the purpose of accurate ranging. The next step is to complete the follow-up work of ranging, and use the distance data between the unknown node and multiple different beacon nodes to accurately locate the unknown node.

[0019] Patent CN201410204298 also discloses an RSSI positioning method based on frequency hopping technology. In the calibration phase, multiple channel RSSI values ​​are measured at a fixed point, and the ranging parameters in the RSSI ranging model are recorded and calculated. In system preparation, positioning anchor nodes are deployed to synchronize the target node and the anchor node. Multiple channels are used on the target node for communication to obtain RSSI values. In the signal processing phase, RSSI is processed into signal strength amplitude optimization processing. In the positioning phase, the distance and target node position are calculated on the positioning server based on the signal strengths.

[0020] The common features of the above methods are:

[0021] Ultimately, positioning is done through multi-point RSSI. In fact, if the signal of any beacon is not good at the petrochemical and chemical operation sites, it will lead to fundamental errors such as "the track passes through the device, equipment, wall, and cannot distinguish between inside and outside". Summary of the invention

[0022] In view of the above problems, the present invention provides a wireless beacon positioning system and a positioning method thereof, aiming to solve the problem that the wireless beacon cannot achieve clock synchronization when it is in on-demand sleep mode using battery power. Through on-demand configuration of the transmission field strength and attenuation coefficient, signal strength threshold filtering and other technologies, the flexible requirements for on-demand deployment of positioning accuracy at the operation sites of petrochemical and chemical industries are met, and low-cost and high-precision positioning effects are achieved. The technical solutions provided by the present invention are as follows:

[0023] The present invention provides a wireless beacon positioning system including a wireless beacon, an identification card and a transmission substation, wherein the signal transmission mode among the wireless beacon, the identification card and the transmission substation is wireless transmission, and the wireless beacon and the identification card are powered by batteries; the wireless beacon and the transmission substation are paired and grouped in an on-demand allocation manner, and data communication is possible only between the wireless beacon and the transmission substation in the same group, the wireless beacon uses the periodic beacon signal of the transmission substation in its group as a reference, and calculates the sleep and wake-up time in sequence according to a timestamp algorithm, so as to achieve the time between each wireless beacon Synchronization; the wireless beacon and the identification card send data in parallel on multiple paths and channels at the same time. The configuration parameters of the wireless beacon include frequency band parameters, channel parameters and transmission power parameters. The wireless beacon judges the idle state of each channel comprehensively based on the strength of the uplink signal, the downlink signal strength, the comprehensive distance, the peak-to-peak voltage, the module temperature, the peripheral startup delay, the peripheral response delay, the terminal handshake threshold, the peripheral detection, the peripheral wake-up, the handshake confirmation, the successful transmission and the empty buffer area. The identification card has the same algorithm priority. The identification card is configured with a positioning handshake signal strength threshold, and the wireless beacon is configured with an induction identification card signal strength threshold.

[0024] Optionally, the serial port handshake message between the wireless beacon, the identification card and the transmission substation includes a serial port confirmation message, a send success message and a buffer empty message, wherein the maximum length of the detection message between the identification card and the wireless beacon is 23 bytes, the maximum length of the peripheral wake-up message between the identification card and the wireless beacon is 15 bytes, and the maximum length of the handshake confirmation message between the identification card and the wireless beacon is 15 bytes.

[0025] Optionally, the transmission field strength and attenuation coefficient of the transmission substation are configured as needed, the maximum length of the successful sending message of the identification card and the wireless beacon is 15 bytes, the maximum length of the buffer empty message of the identification card and the wireless beacon is 15 bytes, and the wake-up process and data exchange process of the identification card and the wireless beacon are independent of each other.

[0026] Optionally, the transmission substation controls the transmission power between the transmission substation and the wireless beacon according to its deployment scenario, and configures a corresponding attenuation coefficient according to its deployment scenario; the identification card and the wireless beacon adopt a purely asynchronous collision algorithm and wake-up method, and by setting sleep parameters, determine the length of the time slice for the identification card and the wireless beacon to sleep, and also determine the length of the continuous sending of the asynchronous wake-up message and the length of the handshake timeout.

[0027] Optionally, the wireless beacon sets a signal strength threshold as needed to filter the received signals according to the application scenario and positioning accuracy requirements, and ultimately only retains signals that meet the requirements; the wireless beacon position is deployed according to the control target and the signal radius of the wireless beacon is set differentially to achieve the beacon signal of the wireless beacon being externally cut to the edge of the control target.

[0028] Optionally, the wireless beacon controls the beacon transmission power as needed according to different deployment scenarios, by analyzing the signal strength, link quality, wireless handshake data, and configuring a corresponding attenuation coefficient according to different scenarios; the wireless beacon sets the signal strength threshold for filtering as needed according to different deployment scenarios and different positioning accuracy requirements, and only leaves the signals that meet the requirements by analyzing the signal strength, link quality, and wireless handshake data.

[0029] On the other hand, the present invention further discloses a positioning method applied to the above-mentioned wireless beacon positioning system, the positioning method comprising:

[0030] The wireless beacons and the transmission substations are grouped as needed according to the on-site conditions, wherein only the wireless beacons and the transmission substations in the same group can communicate, and the transmission power between the transmission substations and the wireless beacons is controlled according to the deployment scenario, and the corresponding attenuation coefficient is configured according to the deployment scenario;

[0031] Based on the periodic beacon signal of the transmission substation, the wireless beacons and identification cards confirm their wake-up time in sequence according to their respective clocks, and calculate the sleep and wake-up time in sequence according to the virtual timestamp algorithm to achieve time synchronization between the wireless beacons;

[0032] The marking range of the wireless beacon is set according to the positioning scenario, wherein the marking range is 1.5 meters to 5 meters;

[0033] The wireless beacon marks the identification card that enters its marking range, and the marked identification card sends data to the transmission substation covering the identification card through wireless signals;

[0034] After receiving the data, the transmission substation transmits the data to the back-end data server so as to calculate the precise position of the operator carrying the identification card through the platform software.

[0035] The present invention has at least the following beneficial effects:

[0036] The present invention provides a wireless beacon positioning system and a positioning method thereof, wherein wireless beacons and transmission substations are paired and grouped in an on-demand allocation manner, and data communication is possible only between wireless beacons and transmission substations in the same group, and the wireless beacons use the dynamic on-demand timing principle for time synchronization, thereby solving the problem that the wireless beacons can still realize on-demand group dynamic timing when they are in on-demand sleep mode using battery power supply, and through on-demand configuration of transmission field strength and attenuation coefficient, signal strength threshold filtering and other technologies, by setting the identification card positioning handshake signal strength threshold, the positioning accuracy of the identification card is ensured, and it is ensured that the identification card can only communicate with the nearest wireless beacon and other equipment, and can be restricted by signal strength; by setting the induction identification card signal strength threshold, the wireless beacon can automatically sense the existence of the identification card, and realize the situation where people come to communicate and people go to sleep, and the induction range of the identification card is limited by the parameter, and it can also be used as a logic switch for whether to enable the induction identification card, thereby meeting the flexible requirements for on-demand deployment of positioning accuracy at work sites such as petrochemicals and chemical industries, and realizing low-cost and high-precision positioning effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 A schematic diagram of the structure of a wireless beacon positioning system according to an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of data transmission of a wireless beacon positioning system according to an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of an on-demand sleep time slice according to an embodiment of the present invention;

[0041] Figure 4 Schematic diagram of the sleep and wake-up process according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] The following will refer to Figure 1 , Figure 2 , Figure 3 and Figure 4 As shown, a wireless beacon positioning system and a positioning method thereof according to an embodiment of the present invention are described in detail.

[0044] refer to Figure 1 , Figure 2 , Figure 3 and Figure 4 As shown, a wireless beacon positioning system of an embodiment of the present invention includes a wireless beacon 2, an identification card 3 and a transmission substation 1, wherein the wireless beacon 2 is a combination of one or more positioning substations, anchor points, and location tags, and signal transmission is performed between the wireless beacon 2, the identification card 3 and the transmission substation 1 based on wireless transmission. For example, signal transmission is performed between the wireless beacon 2, the identification card 3 and the transmission substation 1 based on protocols such as Bluetooth, ZigBee, UWB, RFID, and WIFI, that is, the connection method between the wireless beacon 2, the identification card 3 and the transmission substation 1 is a wireless connection.

[0045] refer to Figure 1As shown, both the wireless beacon 2 and the identification card 3 are powered by batteries, that is, batteries are installed inside the wireless beacon 2 and the identification card 3, which can be rechargeable batteries or button batteries. The wireless beacon 2 and the transmission substation 1 are paired and grouped in an on-demand allocation manner, and data communication is possible only between the wireless beacon 2 and the transmission substation 1 in the same group, and data communication is not possible between the wireless beacon 2 and the transmission substation 1 that are not in the same group, and the wireless beacon 2 and the transmission substation 1 adopt the real-time on-demand grouping principle. That is, the wireless beacon 2 and the transmission substation 1 can be allocated in real time on demand according to the on-site situation, and several wireless beacons and several transmission substations can be allocated in the same specific group, and data communication can be carried out between the wireless beacon 2 and the transmission substation 1 in the group.

[0046] Furthermore, the wireless beacon 2 of the embodiment of the present invention takes the periodic beacon signal of the transmission substation 1 in its group as a benchmark, and calculates the sleep and wake-up time in sequence according to the timestamp algorithm to achieve time synchronization between the wireless beacons 2; the wireless beacon 2 and the identification card 3 simultaneously send data in parallel on multiple paths and multiple channels, and channel idle detection no longer depends on signal strength.

[0047] Furthermore, the configuration parameters of the wireless beacon 2 of the embodiment of the present invention include frequency band parameters, channel parameters and transmission power parameters. The wireless beacon 2 comprehensively judges the idle state of each channel based on the uplink signal strength, downlink signal strength, comprehensive distance, voltage peak-to-peak value, module temperature, peripheral startup delay, peripheral response delay, terminal handshake threshold, peripheral detection, peripheral wake-up, handshake confirmation, successful transmission, and empty buffer area. The identification card 3 has the same algorithm priority. The identification card 3 is configured with a positioning handshake signal strength threshold, and the wireless beacon 2 is configured with an induction identification card signal strength threshold.

[0048] Specifically, the configuration parameters of the wireless beacon 2 include frequency band parameters, channel parameters and transmission power parameters, where the frequency band parameters correspond to two bits, for example, 00b-frequency band 1, 01b-frequency band 2, 10b-frequency band 3, 11b-frequency band 4. Frequency band 1 is around 2400MHz, frequency band 2 is around 24**MHz, frequency band 3 is around 24**MHz, and frequency band 4 is around 24**MHz. Channel parameters (00000b-channel 1, ..., 11111b-channel 32). Each frequency band is divided into 32 main channels, and the frequencies between the main channels do not overlap. The bottom layer uses encrypted transmission, and modules between different channels are strictly unable to communicate. The channel number is the preferred parameter for dividing the network. The physical layers of different channel networks will not interfere with each other, so data can be sent in parallel. In addition, the network ID parameter can also be used as an auxiliary parameter for network division, and it is considered to be used when the channel number is not enough.

[0049] The serial handshake message between the wireless beacon 2, the identification card 3 and the transmission substation 1 of the embodiment of the present invention includes a serial port confirmation message, a successful transmission message and a buffer empty message, wherein the maximum length of the detection message of the identification card 3 and the wireless beacon 2 is 23 bytes, the maximum length of the peripheral wake-up message of the identification card 3 and the wireless beacon 2 is 15 bytes, and the maximum length of the handshake confirmation message of the identification card 3 and the wireless beacon 2 is 15 bytes. The maximum length of the successful transmission message of the identification card 3 and the wireless beacon 2 is 15 bytes, the maximum length of the buffer empty message of the identification card 3 and the wireless beacon 2 is 15 bytes, and the wake-up process and data exchange process of the identification card 3 and the wireless beacon 2 are independent of each other.

[0050] The identification card 3 and the wireless beacon 2 of the embodiment of the present invention adopt a pure asynchronous collision algorithm and a wake-up method. By setting the sleep parameters, the length of the sleep time slice of the identification card and the wireless beacon is determined, and the length of the continuous transmission of the asynchronous wake-up message and the length of the handshake timeout are determined. In addition, the wireless beacon 2 controls the beacon transmission power as needed according to different deployment scenarios, analyzes the signal strength, link quality, and wireless handshake data, and configures the corresponding attenuation coefficient according to different scenarios; the wireless beacon 2 also sets the signal strength threshold as needed for filtering according to different deployment scenarios and different positioning accuracy requirements, and only leaves the signals that meet the requirements by analyzing the signal strength, link quality, and wireless handshake data.

[0051] There is no binding relationship between the identification card 3 and the transmission substation 1 in the embodiment of the present invention, so the identification card 3 can be moved arbitrarily in the network and can send data in multiple paths; the identification card can sleep according to the preset sleep time slice, and after the sleep time slice ends, it will actively send a message to inquire about the broadcast message, as well as detect the existence of wireless beacons and transmission substations.

[0052] The embodiment of the present invention does not rely on signal strength to judge the idle state of each channel, but makes a comprehensive judgment based on the strength of the uplink signal, the downlink signal strength, the comprehensive distance, the peak-to-peak voltage, the module temperature, the peripheral (identification card, wireless beacon) startup delay, the peripheral response delay, the terminal handshake threshold, the peripheral detection, the peripheral wake-up, the handshake confirmation, the successful transmission, and the empty buffer area.

[0053] In the embodiment of the present invention, the maximum message length of the buffer empty message is 15 bytes. If the module buffer changes from full to free, the module will send the message to the peripheral device to notify the peripheral device that it can send the next frame of data message. After setting the message, the peripheral device does not need to wait for the module buffer to be empty by continuously retransmitting attempts, but only needs to wait for the module buffer to be empty before sending the next message, which not only reduces the time slot time overhead between messages, but also simplifies the handshake processing process of the peripheral device.

[0054] In the embodiment of the present invention, the identification card far away from the wireless beacon and the identification card near the wireless beacon have the same algorithm priority, there is no far-near effect, it is still effective under strong interference, and the MCU overhead is reduced at the same time; by setting the identification card positioning handshake signal strength threshold and setting the wireless beacon sensing identification card signal strength threshold, one determines the positioning accuracy, and the other determines the range of the sensing identification card and the distance of communication with the substation. In this way, the positioning accuracy can be achieved to 1.5 meters, but it can sense that a person 10 meters away is coming, and it can communicate with a substation 100 meters away, instead of judging by RSSI alone.

[0055] Each frequency band is divided into 32 main channels, and the frequencies between the main channels do not overlap. Modules between different channels are strictly prohibited from communicating, and the physical layers of different channel networks basically do not interfere with each other, and data can be sent in parallel. When the channel is interfered, it will automatically "drift" up and down by several positions according to the handshake situation for parallel transmission. Messages are sent at intervals. There are many data message buffers inside the core modules of the identification card and wireless beacon, and the serial port is likely to send multiple data messages continuously. However, for some identification cards and wireless beacons, continuous data messages may not be processed in time, resulting in data message loss. In the embodiment of the present invention, by setting the interval parameters, the data message of the module serial port will send multiple messages to the identification card 3 and the wireless beacon 2 according to the "response timeout" as the minimum time interval unit, or send the next message after receiving the feedback message from the identification card 3 and the wireless beacon 2.

[0056] In applications where multiple messages are sent continuously, the wireless module may lose packets. In fact, the data packets are discarded by the serial port of the wireless module rather than the wireless network. The number of data buffers in the wireless module is limited. In the case of wireless network congestion, the data packets in the module buffer have not been sent through the wireless network. At this time, if new messages are continuously sent to the module serial port, the buffer will be full. When the module buffer is full, the serial port will be temporarily closed. At this time, data packets sent to the module serial port will be discarded. Only after waiting for the data packet to be sent successfully or failed, the module serial port will be opened again to receive new messages.

[0057] The embodiment of the present invention ensures the reliability of the serial port data message of the module by performing a simple serial port handshake with the wireless module. The module provides parameters to set three serial port handshake messages: (1) Serial port confirmation message: After the module serial port receives a complete data frame, it will immediately send this message through the serial port to notify the peripheral MCU to confirm that the serial port has accurately received the data frame just now; (2) Sending success message: After the module successfully sends a packet of unicast data frame through wireless (broadcast is invalid), it will send this message through the serial port to notify the peripheral MCU that the data message has been successfully sent wirelessly; (3) Buffer empty message: When the module serial port buffer is from full to empty, it will send this message through the serial port to notify the peripheral MCU that it can send a new data message to the module, thereby reducing the burden on the MCU.

[0058] Moreover, reference Figure 3 As shown, the embodiment of the present invention improves the handshake message wake-up method, simplifies the excessive information in the handshake message, and shortens the message length to the shortest; fully utilizes the characteristics of the Zigbee radio frequency chip, and adopts a collision algorithm with higher time accuracy and more intelligence. The on-demand sleep wake-up algorithm is adopted. Since the use of a shorter wake-up message can further shorten the monitoring time slice to less than ~1ms, the sleep standby current of the identification card 3 and the positioning substation can be as low as 5μA.

[0059] The maximum length of the identification card and wireless beacon detection message of the embodiment of the present invention is 23 bytes. The main functions of the message are as follows: (1) When the peripheral address is used, the module will actively send the message to the peripheral when it is powered on or reset to obtain the response of the peripheral and obtain the address of the peripheral from the response message; (2) During the periodic full network data inventory, if the downlink message is a fixed data frame, it can be set as a peripheral detection message to save the downlink message sending time and reduce power consumption.

[0060] The maximum message length of the peripheral wake-up message in the embodiment of the present invention is 15 bytes. If the peripheral is a low-power sleep device, the module needs to wake up the peripheral before communicating with the peripheral. In addition to MP1 pin wake-up, it can also be awakened by a serial port message. If the peripheral wake-up message setting is not empty, the module will first send a peripheral wake-up message when sending any data message to the peripheral. This message is more suitable for devices that have an original wake-up data frame header.

[0061] The maximum message length of the handshake confirmation message of the embodiment of the present invention is 15 bytes. If the message is not empty, when a complete packet of data from the peripheral is received, the message will be sent to the outside to inform the peripheral that the data message has been accurately received. The protocol wireless ensures that data will not be lost through multiple handshakes. However, the number of caches in the module chip is limited. When the peripheral sends data to the module, the data message may be lost because the module has no available cache. In order to ensure the reliability of the entire system, the peripheral and the module need to use a serial port handshake confirmation message to ensure the reliability of the serial port. When the module serial port handshake message is not received within a certain period of time, the peripheral needs to resend the previous packet of data.

[0062] The maximum length of the message of the successful message sent in the embodiment of the present invention is 15 bytes. If the message is not empty, when the module successfully sends a packet of unicast data frames via wireless, it will send the message to the peripheral device to inform the peripheral device that its serial port message has been successfully sent to the next hop node accurately. The message can be used as a basis for judging whether the destination node exists and whether the message can reach the destination node. It can basically replace the peripheral device confirmation message fed back by the destination node to reduce the burden on the network.

[0063] The maximum message length of the buffer empty message of the embodiment of the present invention is 15 bytes. If the buffer of the module changes from full to free, the module will send the message to the peripheral device to notify the peripheral device that it can send the next frame of data message. After setting the message, the peripheral device does not need to wait for the module's buffer to be empty by continuously retransmitting attempts, but only needs to wait for the module buffer to be empty before sending the next message. Doing so not only reduces the time slot time overhead between messages, but also simplifies the handshake processing process of the peripheral device.

[0064] refer to Figure 4 As shown, the embodiment of the present invention separates the wake-up process from the data exchange process, avoiding repeated wake-ups. The improved wake-up algorithm retains the advantages of the traditional handshake message wake-up, while strictly controlling the time required for the wake-up process, with a certain wake-up delay and network node density and network scale independence.

[0065] The present invention adopts a pure asynchronous collision algorithm and a wake-up method. By setting sleep parameters, the length of the time slice of the identification card and the wireless beacon sleep is determined, and the length of the asynchronous wake-up message continuously sent and the length of the handshake timeout are determined. Different from traditional sleep, the module will monitor the wake-up message and wait for passive wake-up after the asynchronous sleep time slice ends, rather than actively detecting the network. For the traditional network with GFSK modulation, 128 or 256 modulation bits are generally monitored. The wake-up success rate depends entirely on the hardware, including the consistency of the radio frequency chip, the receiving sensitivity and the frequency deviation of the crystal oscillator, and there is a relatively large probability of being woken up by mistake. The asynchronous sleep time unit of the present invention is 16.384ms. Assuming that hundreds of points want to send data at the same time, to ensure reliability, only a single point can be sent to a single point, that is, it is necessary to shake hands with the other party to determine the sending and receiving relationship before sending. Even if 128-bit wake-up is used, there is several times the wake-up time margin, which can basically ensure that the wake-up success rate of the whole network is close to 100%, and at the same time ensure that the probability of being woken up by mistake is less than one in ten million. Asynchronous wake-up can realize multi-hop full network fast wake-up and multi-hop single-point wake-up.

[0066] Specifically, refer to Figure 1 and Figure 2 As shown, the signal transmission method between the wireless beacon 2 and the transmission substation 1 of the embodiment of the present invention is wireless transmission, and the wireless beacon 2 and the transmission substation 1 can be grouped as needed, that is, one / several wireless beacons 2 can be divided into a specific group with one / several transmission substations 1, and only communicate with the wireless beacons 2 and transmission substations 1 in the same group.

[0067] When arranging the transmission substation 1, wireless beacon 2 and identification card 3 to communicate with each other, the number of transmission substations and wireless beacons that may communicate with the same identification card is controlled within the required range by controlling the transmission channel of the wireless beacon 2.

[0068] Specifically, according to the differences of each wireless beacon 2, the identification cards 3 are divided into several groups that send location IDs on different channels, and the different channels assigned to each group are listened to one by one, and the identification cards 3 in each group are read and written one by one, so as to distinguish the group of identification cards that have signed in and the group of identification cards that have not signed in, avoid interference with the identification cards in the group that have not signed in, avoid useless information, and reduce collisions.

[0069] The wireless beacon 2 of the embodiment of the present invention adopts the principle of dynamic on-demand timing for time synchronization. Specifically, The present invention The wireless beacon 2 of the embodiment takes the periodic beacon signal of the transmission substation 1 in its group as a reference and uses the virtual time The stamp algorithm calculates the time of sleeping and waking up in sequence to achieve time synchronization between each wireless beacon 2. In the prior art, the purpose of the traditional time synchronization protocol is to achieve consistency of node time, that is, to achieve simultaneity, while the synchronization technology of the embodiment of the present invention is to achieve synchronization between wireless beacons and identification cards, that is, certain actions of identification cards and wireless beacons have the same period and phase. At the same time, in order to reduce the power consumption of wireless beacons, each wireless beacon can sleep as needed, and the transmission substation sends a periodic beacon signal. The wireless beacon adjusts the time synchronization according to the beacon signal to achieve synchronization between nodes. Data communication is direct communication between wireless beacons and transmission substations. Therefore, as long as the wireless beacons in the same group can achieve synchronization, the stability and reliability of data communication can be guaranteed.

[0070] The embodiment of the present invention ensures the positioning accuracy of the identification card 3 by setting the identification card positioning handshake signal strength threshold, ensuring that the identification card 3 can only communicate with the nearest wireless beacon 2 and other devices, and can be restricted by signal strength. By setting the induction identification card signal strength threshold. The wireless beacon 2 can automatically sense the presence of the identification card 3, and realize the situation where people come to communicate and people leave and sleep. The induction range of the identification card is limited by this parameter, and it can also be used as a logical switch to enable the induction identification card.

[0071] The length of the uplink signal strength of the embodiment of the present invention is 1 byte. The uplink signal strength is the signal strength of the substation directly sent by the source node (identification card, wireless beacon). The length of the downlink signal strength is 1 byte. The downlink signal strength is the signal strength sent by the wireless beacon to the source node. The core module pin function sets the wireless direction control, serial port direction control, etc. Wireless direction control: The module informs the state of the radio frequency through the MP1 pin, whether it is transmitting or receiving / sleeping. This pin is mainly used to drive the direction of the external power amplifier. Serial port direction control: The state of the serial port is informed through the MP1 pin, whether it is output or input. The downlink message command notifies the peripheral device through the MP0 pin that there is a downlink broadcast message to be sent. For some application scenarios such as periodic data collection, it is necessary to collect data from the entire network in the shortest possible time. At this time, it is necessary to race against time to reduce power consumption to the minimum. If the downlink broadcast message is a fixed message or known content, the peripheral device can be awakened to prepare data in advance before receiving the downlink broadcast message, without waiting for the downlink message content to be actually obtained, thereby speeding up the entire data collection process and reducing power consumption. In the "downlink message" mode, MP0 is only a very short pulse and will not continue until the peripheral responds.

[0072] The wireless beacon 2 of the embodiment of the present invention achieves precise positioning by setting a total of 255 threshold parameters from 0 to 254. According to the control target, the appropriate wireless beacon position is freely deployed and the beacon signal radius is differentiated, such as 1.5m, 2m, 3m, etc., so that the beacon signal is cut to the edge of the control target, and the inside and outside, up and down, in place, overcrowded, out of bounds, layered, etc. are correctly judged.

[0073] refer to Figure 1 As shown, the transmission field strength and attenuation coefficient of each transmission substation 1 in the embodiment of the present invention can be configured as needed, that is, according to different deployment scenarios of the transmission substation 1, the transmission power of the transmission substation 1 and the wireless beacon 2 can be controlled as needed, and according to different deployment scenarios, the corresponding attenuation coefficient can be configured as needed. Specifically, the transmission substation 1 controls the transmission power between the transmission substation and the wireless beacon according to its deployment scenario, and configures the corresponding attenuation coefficient according to its deployment scenario. For example, a correspondence table of attenuation coefficient, transmission power and scenario can be preset in the terminal in advance, and then in the process of on-demand configuration, the transmission power and attenuation coefficient of the transmission substation 1 are configured according to the preset correspondence table.

[0074] Specifically, the transmission power is set as needed as follows: the wireless beacon 2 continuously receives information, and the person carrying the identification card 3 wakes up every 1 second to send a broadcast signal. After the wireless beacon receives the broadcast signal, it replies with the wireless beacon ID number and channel number according to the set attenuation coefficient and fixed threshold. After the identification card 3 completes the analysis, it switches the channel and transmission power and sends it to the transmission substation 1 to achieve precise positioning function.

[0075] Among them, according to different deployment scenarios, the transmission power of wireless beacon 2 is controlled on demand, and according to different scenarios, the corresponding attenuation coefficient, transmission power, threshold, handshake signal, signal strength and link quality and other parameters are configured, which solves the problem of large errors in estimating the distance between the mobile node and the reference node by the RSSI value at the actual operation site, and improves the mapping system of data such as signal strength, link quality, and wireless handshake status to distance. For example, the mapping table between attenuation coefficient, transmission power, threshold, handshake signal, signal strength, link quality and deployment scenario is shown in Table 1 below:

[0076] Table 1: Mapping table between attenuation coefficient and deployment scenario

[0077]

[0078] Furthermore, the wireless beacon 2 sets the signal strength threshold as required to filter the received signals according to the application scenario and positioning accuracy requirements, and ultimately only retains the signals that meet the requirements.

[0079] Signal strength threshold filtering: Depending on the scenario and positioning accuracy requirements, the signal strength threshold can be set as needed for filtering, leaving only signals that meet the requirements. The attenuation coefficient and transmit power of each wireless beacon can be set arbitrarily according to the on-site situation. Through different transmit power and signal strength thresholds, a wireless beacon RSSI to distance mapping system is obtained.

[0080] The transmission field strength and attenuation coefficient of the transmission substation 1 of the embodiment of the present invention can be configured as needed, that is, according to different deployment scenarios of the transmission substation 1, the transmission power of the transmission substation 1 and the wireless beacon 2 can be controlled as needed, and according to different deployment scenarios, the corresponding attenuation coefficient can be configured as needed. Specifically, the transmission substation 1 controls the transmission power between the transmission substation 1 and the wireless beacon 2 according to its deployment scenario, and configures the corresponding attenuation coefficient according to its deployment scenario. For example, a correspondence table of attenuation coefficient, transmission power and scenario can be preset in the terminal in advance, and then in the process of on-demand configuration, the transmission power and attenuation coefficient of the transmission substation are configured according to the preset correspondence table.

[0081] The purpose of the traditional time synchronization protocol is to achieve consistency of node time, that is, to achieve simultaneity. In order to achieve synchronization among the identification card 3, the wireless beacon 2, and the transmission substation 1, the traditional method requires real-time clock synchronization, which consumes high power and cannot be powered by batteries. However, the present invention uses the periodic beacon signal of the transmission substation as a benchmark, and the wireless beacon calculates the time to sleep and wake up in sequence according to the virtual timestamp algorithm to achieve time synchronization between the wireless beacons. That is, the synchronization technology of the present invention is to achieve synchronization between the wireless beacon and the identification card, that is, certain actions of the identification card and the wireless beacon have the same period and phase. In order to reduce the power consumption of the wireless beacon, each wireless beacon can sleep on demand, and the transmission substation sends a periodic beacon signal. The beacon performs time synchronization adjustment according to the beacon signal, so as long as the same type of wireless beacons can achieve synchronization, the data communication can be guaranteed to be stable and reliable, thereby achieving clock synchronization even when powered by batteries, and obtaining more accurate location information.

[0082] The embodiment of the present invention solves the problem of large error in estimating the distance between the mobile node and the reference node by the RSSI value at the actual operation site by adopting the transmission power+attenuation coefficient+threshold filtering technology, and improves the RSSI to distance mapping system.

[0083] The wireless awakening of asynchronous sleeping nodes generally adopts the preamble method. However, this awakening method requires that the preamble length of the message is greater than the length of the sleeping time slice to basically ensure that the sleeping node can be awakened. The message of the preamble awakening method takes a long time to send, and the probability of being awakened by mistake is very high. There is basically no way to avoid collision during awakening, no way to distinguish between unicast and multicast, and no way to count the massive number of people in the sleeping network. Based on this, the embodiment of the present invention does not adopt a simple preamble awakening method.

[0084] Since the handshake message is very short and has an excellent collision avoidance algorithm, directly using the handshake message to wake up in a small-scale scenario can also achieve a very ideal wake-up effect. The handshake message wake-up does not require the message to last for the entire sleep time slice, and there is basically no possibility of being woken up by mistake. The collision algorithm can be performed and it is easy to distinguish between broadcast messages and unicast messages. Routing and broadcast information can be exchanged during the wake-up process, and a very high wake-up success rate can be achieved. However, the handshake message wake-up method will cause the dormant nodes to be repeatedly awakened due to continuous data messages in chemical plants with relatively large network scales, and the listening time slice length of the dormant nodes will also be relatively long. The collision avoidance algorithm of the present invention is comprehensively designed according to the actual application scenario and resource overhead, and can quickly detect the instant link quality of multiple links, and can select the path with the best link quality in a very short time.

[0085] The embodiment of the present invention further provides a positioning method applied to the above wireless beacon positioning system, which specifically includes:

[0086] The wireless beacons and the transmission substations are grouped as needed according to the on-site conditions, wherein only the wireless beacons and the transmission substations in the same group can communicate, and the transmission power between the transmission substations and the wireless beacons is controlled according to the deployment scenario, and the corresponding attenuation coefficient is configured according to the deployment scenario;

[0087] Based on the periodic beacon signal of the transmission substation, the wireless beacons and identification cards confirm their wake-up time in sequence according to their respective clocks, and calculate the sleep and wake-up time in sequence according to the virtual timestamp algorithm to achieve time synchronization between the wireless beacons;

[0088] The marking range of the wireless beacon is set according to the positioning scenario, wherein the marking range is 1.5 meters to 5 meters;

[0089] The wireless beacon marks the identification card that enters its marking range, and the marked identification card sends data to the transmission substation covering the identification card through wireless signals;

[0090] After receiving the data, the transmission substation transmits the data to the back-end data server so as to calculate the precise position of the operator carrying the identification card through the platform software.

[0091] refer to Figure 1 As shown, for example, the wireless beacon positioning system of the embodiment of the present invention includes four wireless beacons 2, numbered D1 to D4, of course, the number of wireless beacons can be one or more, and the embodiment of the present invention does not limit this. Among them, there are two transmission substations 1, numbered J1 and J2, and two identification cards 3, numbered K1 and K2. Figure 1 The number 5 represents the marking range of each wireless beacon, the number 6 represents the marking data stream, and the number 7 represents the location data stream.

[0092] refer to Figure 1 As shown, the above positioning method can realize rapid positioning for each identification card 3 in the process of approaching or moving away from the wireless beacon 2. For example, when the identification cards 3 numbered K1 and K2 in this embodiment approach or move away from the wireless beacon 2 separately, positioning is performed according to the above working method, and the identification card identifies the identification card numbered K1 or K2, and sends the location information to the transmission substation 1; if the identification cards 3 numbered K2 and K1 approach or move away from the wireless beacon 2, positioning is performed according to the above positioning method at the same time, and the two identities and positioning information are sent to the transmission substation 1 respectively, so as to realize simultaneous positioning of different identification cards 3.

[0093] The present invention provides a wireless beacon positioning system and a positioning method thereof, wherein wireless beacons and transmission substations are paired and grouped in an on-demand allocation manner, and data communication is possible only between wireless beacons and transmission substations in the same group, and the wireless beacons use the dynamic on-demand timing principle for time synchronization, thereby solving the problem that the wireless beacons can still realize on-demand group dynamic timing when they are in on-demand sleep mode using battery power supply, and the positioning accuracy of the identification card is ensured by setting the identification card positioning handshake signal strength threshold through on-demand configuration of the transmission field strength and attenuation coefficient, signal strength threshold filtering and other technologies, and by setting the identification card positioning handshake signal strength threshold, so as to ensure that the identification card can only communicate with the nearest wireless beacon and other equipment, and can be restricted by signal strength; by setting the induction identification card signal strength threshold, the wireless beacon can automatically sense the existence of the identification card, and realize the situation where people come to communicate and people go to sleep, and the induction range of the identification card is limited by the parameter, and it can also be used as a logic switch for whether to enable the induction identification card, thereby meeting the flexible requirements for on-demand deployment of positioning accuracy at petrochemical, chemical and other operation sites, and realizing low-cost, high-precision positioning effects.

[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A wireless beacon positioning system, characterized in that: The wireless beacon positioning system includes a wireless beacon, an identification card and a transmission substation, wherein the signal transmission method between the wireless beacon, the identification card and the transmission substation is wireless transmission, and the wireless beacon and the identification card are powered by batteries; the wireless beacon and the transmission substation are paired and grouped in an on-demand allocation manner, and data communication is only possible between the wireless beacon and the transmission substation in the same group; the wireless beacon takes the periodic beacon signal of the transmission substation in its group as a reference, and calculates the time of sleep and wake-up in sequence according to the timestamp algorithm to achieve time synchronization between each wireless beacon The wireless beacon and the identification card send data in parallel on multiple paths and channels at the same time. The configuration parameters of the wireless beacon include frequency band parameters, channel parameters and transmission power parameters. The wireless beacon comprehensively judges the idle state of each channel according to the uplink signal strength, downlink signal strength, comprehensive distance, voltage peak-to-peak value, module temperature, peripheral startup delay, peripheral response delay, terminal handshake threshold, peripheral detection, peripheral wake-up, handshake confirmation, successful transmission and buffer area. The identification card has the same algorithm priority. The identification card is configured with a positioning handshake signal strength threshold, and the wireless beacon is configured with an induction identification card signal strength threshold; The serial port handshake message between the wireless beacon, the identification card and the transmission substation includes a serial port confirmation message, a successful transmission message and a buffer empty message, wherein the maximum length of the detection message between the identification card and the wireless beacon is 23 bytes, the maximum length of the peripheral wake-up message between the identification card and the wireless beacon is 15 bytes, and the maximum length of the handshake confirmation message between the identification card and the wireless beacon is 15 bytes; The transmission field strength and attenuation coefficient of the transmission substation are configured as needed, the maximum length of the successful transmission message of the identification card and the wireless beacon is 15 bytes, the maximum length of the buffer empty message of the identification card and the wireless beacon is 15 bytes, and the wake-up process and data exchange process of the identification card and the wireless beacon are independent of each other; The transmission substation controls the transmission power between the transmission substation and the wireless beacon according to its deployment scenario, and configures a corresponding attenuation coefficient according to its deployment scenario; The wireless beacon sets the signal strength threshold as needed to filter the received signals according to the application scenario and positioning accuracy requirements, and finally retains only the signals that meet the requirements; the wireless beacon position is deployed according to the control target and the signal radius of the wireless beacon is set differently to achieve the beacon signal of the wireless beacon being cut to the edge of the control target; The identification card and the wireless beacon adopt a pure asynchronous collision algorithm and wake-up method. By setting the sleep parameters, the length of the time slice for the identification card and the wireless beacon to sleep is determined, and the length of the continuous sending of the asynchronous wake-up message and the length of the handshake timeout are determined. The wireless beacon controls the beacon transmission power as needed according to different deployment scenarios, analyzes the signal strength, link quality, and wireless handshake data, and configures the corresponding attenuation coefficient according to different scenarios; the wireless beacon sets the signal strength threshold for filtering as needed according to different deployment scenarios and different positioning accuracy requirements, and only leaves the signals that meet the requirements by analyzing the signal strength, link quality, and wireless handshake data.

2. A positioning method applied to the wireless beacon positioning system as claimed in claim 1, characterized in that: The positioning method comprises: The wireless beacons and the transmission substations are grouped as needed according to the on-site conditions, wherein only the wireless beacons and the transmission substations in the same group can communicate, and the transmission power between the transmission substations and the wireless beacons is controlled according to the deployment scenario, and the corresponding attenuation coefficient is configured according to the deployment scenario; Based on the periodic beacon signal of the transmission substation, the wireless beacons and identification cards confirm their wake-up time in sequence according to their respective clocks, and calculate the sleep and wake-up time in sequence according to the virtual timestamp algorithm to achieve time synchronization between the wireless beacons; The marking range of the wireless beacon is set according to the positioning scenario, wherein the marking range is 1.5 meters to 5 meters; The wireless beacon marks the identification card that enters its marking range, and the marked identification card sends data to the transmission substation covering the identification card through wireless signals; After receiving the data, the transmission substation transmits the data to the back-end data server so as to calculate the precise position of the operator carrying the identification card through the platform software.