CN108260080B - Positioning method, device and system - Google Patents
Positioning method, device and system Download PDFInfo
- Publication number
- CN108260080B CN108260080B CN201611225051.XA CN201611225051A CN108260080B CN 108260080 B CN108260080 B CN 108260080B CN 201611225051 A CN201611225051 A CN 201611225051A CN 108260080 B CN108260080 B CN 108260080B
- Authority
- CN
- China
- Prior art keywords
- positioning
- base station
- message
- tag
- label
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0203—Power saving arrangements in the radio access network or backbone network of wireless communication networks
- H04W52/0206—Power saving arrangements in the radio access network or backbone network of wireless communication networks in access points, e.g. base stations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
- H04W64/006—Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,特别涉及一种定位的方法、设备和系统。The present invention relates to the field of communication technologies, and in particular, to a positioning method, device and system.
背景技术Background technique
室内定位系统或者特定场景定位系统通常由定位标签、定位基站和定位服务器组成。定位标签,周期性发送蓝牙广播报文给定位基站。定位基站接收到定位标签的蓝牙广播报文后,提取数据并通过网络(例如可采用Wifi、ZigBee、4G等网络通信)上报到定位服务器(例如可以包括PC、手机、IPad、笔记本等终端设备),定位服务器接收到定位基站发送的数据后,经过计算得到定位标签位置信息,并根据具体应用进行各种定位业务的处理,例如并显示到指定地图中。发明人在研究过程中发现,现有的定位标签不管其是否离开定位区域时,其上的各项定位业务功能都持续工作,将导致该定位标签持续耗电,无法有效地节省功耗。An indoor positioning system or a specific scene positioning system usually consists of a positioning tag, a positioning base station and a positioning server. The positioning tag periodically sends Bluetooth broadcast messages to the positioning base station. After the positioning base station receives the Bluetooth broadcast message of the positioning tag, it extracts the data and reports it to the positioning server through the network (for example, Wifi, ZigBee, 4G and other network communication can be used) (for example, it can include terminal devices such as PC, mobile phone, IPad, and notebook) After receiving the data sent by the positioning base station, the positioning server obtains the position information of the positioning tag through calculation, and processes various positioning services according to specific applications, such as displaying it on a designated map. During the research process, the inventor found that, regardless of whether the existing positioning tag leaves the positioning area, various positioning service functions on it continue to work, which will cause the positioning tag to continue to consume power and cannot effectively save power consumption.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种定位方法、设备、系统和存储介质,可以节省定位设备或定位标签的功耗。本申请实施例还提供了一种定位基站,以及定位系统,可以节省定位设备或定位标签以及定位基站的功耗。Embodiments of the present application provide a positioning method, device, system, and storage medium, which can save power consumption of a positioning device or a positioning tag. The embodiments of the present application also provide a positioning base station and a positioning system, which can save the power consumption of the positioning device or the positioning label and the positioning base station.
一方面,本发明实施例提供了一种应用于定位标签和定位基站群所组成的定位系统中的定位方法,所述定位基站群包括至少两个定位基站,该方法包括:定位标签定期向所述定位基站群发送定位标签广播报文,所述定位标签根据从所述定位基站群返回的定位标签广播回应报文确定该其是否离开所述定位基站群的定位区域,如果所述定位标签确定其已离开所述定位基站群的定位区域,则所述定位标签关闭其自身上除了离场判断功能之外的定位业务功能。In one aspect, an embodiment of the present invention provides a positioning method applied to a positioning system composed of a positioning tag and a positioning base station group, where the positioning base station group includes at least two positioning base stations, and the method includes: The positioning base station group sends a positioning label broadcast message, and the positioning label determines whether it leaves the positioning area of the positioning base station group according to the positioning label broadcast response message returned from the positioning base station group. If it has left the positioning area of the positioning base station group, the positioning tag closes its own positioning service functions except for the departure judgment function.
通过增加定位标签的离场判断功能,且在判断出所述定位标签离开该定位基站群的定位区域后,关闭该定位标签上除了离场判断之外的其他定位业务功能,从而可以节省定位标签的功耗,使得该定位标签中的电源能够持续服务更长时间。By adding the departure judgment function of the positioning tag, and after judging that the positioning tag has left the positioning area of the positioning base station group, the other positioning service functions except the departure judgment on the positioning tag are turned off, so that the positioning tag can be saved. The power consumption of the positioning tag enables the power supply in the positioning tag to continue to serve for a longer time.
在一种可能的设计中,所述定位标签确定其是否离开所述定位基站群的定位区域具体包括:所述定位标签在与发送所述定位标签广播报文相同的信道上监听所述定位基站群中的定位基站返回的定位标签广播回应报文;若所述定位标签在所述相同的信道上没有收到所述定位基站群中的至少一个定位基站返回的定位标签广播回应报文,则确定所述定位标签已经离开所述定位基站群的定位区域。In a possible design, determining whether the positioning tag leaves the positioning area of the positioning base station group specifically includes: the positioning tag listening to the positioning base station on the same channel as sending the positioning tag broadcast message The positioning tag broadcast response message returned by the positioning base station in the group; if the positioning tag does not receive the positioning tag broadcast response message returned by at least one positioning base station in the positioning base station group on the same channel, then It is determined that the positioning tag has left the positioning area of the positioning base station group.
在一种可能的设计中,所述定位标签确定所述定位标签是否离开所述定位基站群的定位区域具体包括:所述定位标签在与发送所述定位标签广播报文相同的信道上监听所述定位基站群中的定位基站返回的定位标签广播回应报文;所述定位标签在所述相同的信道上收到所述定位基站群中至少一个定位基站返回的定位标签广播回应报文,所述定位标签广播回应报文包括所述至少一个定位基站的蓝牙地址;所述定位标签确定所述至少一个定位基站的蓝牙地址是否具有规律性,若不具有规律性,则将计数值加1,并在所述计数值未达到设定阈值时,继续执行上述步骤;在所述计数值达到所述设定阈值时,则确定所述定位标签已经离开所述定位基站群的定位区域。In a possible design, the determining, by the positioning tag, whether the positioning tag leaves the positioning area of the positioning base station group specifically includes: the positioning tag listening to the location tag on the same channel as sending the positioning tag broadcast message. The positioning tag broadcast response message returned by the positioning base station in the positioning base station group; the positioning tag receives the positioning tag broadcast response message returned by at least one positioning base station in the positioning base station group on the same channel, so The positioning tag broadcast response message includes the Bluetooth address of the at least one positioning base station; the positioning tag determines whether the Bluetooth address of the at least one positioning base station is regular, and if not, the count value is increased by 1, And when the count value does not reach the set threshold, continue to perform the above steps; when the count value reaches the set threshold, it is determined that the positioning tag has left the positioning area of the positioning base station group.
通过对定位基站返回的蓝牙地址的规律性判断是否是所述基站群中的基站返回的回应报文,以防止非基站蓝牙回应的定位标签广播回应报文而出现的判断错误问题,从而提高了定位标签定位判断的准确定;此外,通过设定一定的计数值作为判断参考,从而避免频繁地出现离场在场结果,进行频繁地根据定位判断结果对定位标签上的定位业务功能的关闭和开启。By judging whether the Bluetooth address returned by the positioning base station is a response message returned by a base station in the base station group, it can prevent the wrong judgment problem caused by the positioning tag broadcast response message that is not responded to by the Bluetooth of the base station, thereby improving the Accurate determination of positioning tag positioning; in addition, by setting a certain count value as a judgment reference, so as to avoid frequent departure and presence results, and frequently close and open the positioning service function on the positioning tag according to the positioning judgment results. .
在一种可能的设计中,所述方法进一步包括:若所述定位标签确定所述至少一个定位基站的蓝牙地址具有规律性,则所述定位标签确定其处于所述定位基站群的定位区域,将所述计数值清零,开启所述定位标签上关闭的定位业务功能。In a possible design, the method further includes: if the positioning tag determines that the Bluetooth address of the at least one positioning base station is regular, then the positioning tag determines that it is in the positioning area of the positioning base station group, The count value is cleared to zero, and the location service function disabled on the location label is enabled.
在一种可能设计中,所述定位标签通过下述方式之一确定所述至少一个定位基站的蓝牙地址是否具有规律性:所述定位区域内多个定位基站的蓝牙地址值相同;所述定位区域内多个定位基站的蓝牙地址值按照指定步长递增;和所述定位区域内多个定位基站的蓝牙地址值是根据特定算法公式计算得到。In a possible design, the positioning tag determines whether the Bluetooth address of the at least one positioning base station is regular in one of the following ways: the Bluetooth address values of multiple positioning base stations in the positioning area are the same; the positioning The Bluetooth address values of the multiple positioning base stations in the area are incremented according to a specified step size; and the Bluetooth address values of the multiple positioning base stations in the positioning area are calculated according to a specific algorithm formula.
在一种可能的设计中,所述定位标签上除了离场判断功能之外的定位业务功能包括至少下述功能之一:定位数据的采集功能、定位数据的计算功能和定位数据的发送功能。In a possible design, the positioning service function on the positioning tag other than the departure judgment function includes at least one of the following functions: a function of collecting positioning data, a function of calculating positioning data, and a function of sending positioning data.
在一种可能的设计中,所述定位标签广播报文和所述定位标签广播回应报文采用特殊离场协议,该特殊离场协议通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到。In a possible design, the positioning tag broadcast message and the positioning tag broadcast response message use a special departure protocol, which is modified by modifying the scannable broadcast packet protocol and the linkable undirected broadcast protocol. Or the unlinkable broadcast protocol gets.
该定位标签广播报文和所述定位标签广播回应报文通过采用该特殊离场协议相对于定位标签根据已有的蓝牙广播报文协议进行判断而言,具有更加灵活性且更能节省功耗的效果。因为,已有的蓝牙广播报文协议报文的发送阶段具有一定的限制(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加定位基站的功耗,不如采用该特殊离场协议报文进行离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以更加节省定位基站的功耗。The positioning tag broadcast message and the positioning tag broadcast response message are more flexible and can save power consumption by using the special departure protocol compared with the positioning tag based on the existing Bluetooth broadcast message protocol. Effect. Because the transmission phase of the existing Bluetooth broadcast message protocol message has certain restrictions (for example, it needs to be bound with the sending positioning data) and the transmission and reception frequency is high, which increases the power consumption of the positioning base station. On-site protocol messages are more flexible for departure judgment (not limited to being sent together with positioning data), and due to the use of special off-site protocol messages, the sending frequency is more flexible and is usually lower than the frequency of data sent by existing protocols, so it can be more Save the power consumption of the positioning base station.
此外,由于现有的蓝牙广播报文协议具有易于实施、安全性高、实时性好、效率高等优点,通过采用修改已有的蓝牙广播报文协议(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)得到的特殊离场协议,可以在保持现有的蓝牙广播报文协议所具有的具有易于实施、安全性高、实时性好、效率高等优点的基础上,而且由于这种蓝牙广播报文协议在广播信道上双方进行交互,具有功耗低的特性。In addition, because the existing Bluetooth broadcast message protocol has the advantages of easy implementation, high security, good real-time performance, and high efficiency, by modifying the existing Bluetooth broadcast message protocol (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol), which can maintain the advantages of easy implementation, high security, good real-time performance and high efficiency of the existing Bluetooth broadcast message protocol. On the basis of the Bluetooth broadcast message protocol, and because the two parties interact on the broadcast channel, the Bluetooth broadcast message protocol has the characteristics of low power consumption.
在一种可能的设计中,所述的通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到的特殊离场协议中的定位标签广播报文不包括Data域。In a possible design, the location tag broadcast message in the special departure protocol obtained by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol or the unlinkable broadcast protocol does not include the Data field.
通过删除依据现有可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议发送的定位标签广播报文中的Data域,使得定位标签和定位基站之间用于离场判断的通信更加灵活,且开销小,更能节省功耗的效果。By deleting the Data field in the positioning tag broadcast message sent according to the existing scannable broadcast message protocol, linkable undirected broadcast protocol or unlinkable broadcast protocol, the communication between the positioning tag and the positioning base station for departure judgment is enabled. It is more flexible, has less overhead, and can save more power.
另一方面,本发明实施例提供了一种应用于定位标签和定位基站群所组成的定位系统中的定位方法,所述定位基站群包括至少两个定位基站,该方法包括:该基站群中的任一定位基站接收定位标签定期发送的第一定位标签广播报文,该第一定位标签广播报文携带标记信息以及所述定位标签的地址信息,所述标记信息指示所述第一定位标签广播报文为特殊离场协议报文;所述定位基站记录所述定位标签的地址信息;所述定位基站根据所述标记信息确定所述定位标签处于所述基站的定位区域,并向所述定位标签返回定位标签广播回应报文。On the other hand, an embodiment of the present invention provides a positioning method applied to a positioning system composed of a positioning tag and a positioning base station group, where the positioning base station group includes at least two positioning base stations, and the method includes: in the base station group Any of the positioning base stations receives the first positioning label broadcast message periodically sent by the positioning label, the first positioning label broadcast message carries label information and address information of the positioning label, and the label information indicates the first positioning label. The broadcast message is a special departure protocol message; the positioning base station records the address information of the positioning tag; the positioning base station determines that the positioning tag is located in the positioning area of the base station according to the marking information, and sends a message to the positioning base station. The location label returns the location label broadcast response message.
相对于现有技术中,定位基站根据现有的蓝牙广播协议报文进行判断,定位基站根据特殊离场协议中的特殊离场协议报文进行定位判断,可以使得定位基站的离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以节省定位基站的功耗。因为现有的现有的蓝牙广播协议报文(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)的发送阶段具有一定的限制性(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加了定位基站进行定位判断的功耗。Compared with the prior art, the positioning base station makes a judgment according to the existing Bluetooth broadcast protocol message, and the positioning base station makes a positioning judgment according to the special departure protocol message in the special departure protocol, which can make the departure judgment of the positioning base station more flexible. (Not limited to be sent together with positioning data), and due to the use of a special departure protocol message, the sending frequency is more flexible and is usually lower than the frequency of sending data in existing protocols, thereby saving the power consumption of the positioning base station. Because the existing existing Bluetooth broadcast protocol messages (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol) have certain limitations (for example, all require It is bound together with the sending positioning data) and the high sending and receiving frequency increases the power consumption of the positioning base station for positioning judgment.
在一种可能的设计中,所述方法进一步包括:若在设定时间内所述定位基站没有收到携带有所述定位标签的地址信息的第二定位标签广播报文,则所述定位基站确定所述定位标签离开所述定位基站的定位区域。In a possible design, the method further includes: if the positioning base station does not receive a second positioning tag broadcast message carrying the address information of the positioning tag within a set time, the positioning base station It is determined that the positioning tag leaves the positioning area of the positioning base station.
在一种可能的设计中,所述方法进一步包括:若在设定时间内所述定位基站收到携带有所述定位标签的地址信息的第二定位标签广播报文,则判断所述第二定位标签广播报文中的标记信息是否等于设定值,所述第二定位标签广播报文中的标记信息用于指示所述第二定位标签广播报文是否为特殊离场协议报文;如果所述第二定位标签广播报文中的标记信息等于设定值,则确定所述定位标签处于所述定位基站的定位区域,并向所述定位标签返回定位标签广播回应报文;如果所述第二定位标签广播报文中的标记信息不等于设定值,则将所述计数值加1,并在所述计数值达到所述设定阈值时,确定所述定位标签离开所述定位基站的定位区域。In a possible design, the method further includes: if the positioning base station receives a second positioning tag broadcast message carrying the address information of the positioning tag within a set time, determining the second positioning tag Whether the tag information in the positioning tag broadcast message is equal to the set value, the tag information in the second positioning tag broadcast message is used to indicate whether the second positioning tag broadcast message is a special departure protocol message; if If the tag information in the second positioning tag broadcast message is equal to the set value, it is determined that the positioning tag is in the positioning area of the positioning base station, and a positioning tag broadcast response message is returned to the positioning tag; if the If the tag information in the broadcast message of the second positioning tag is not equal to the set value, the count value is incremented by 1, and when the count value reaches the set threshold, it is determined that the positioning tag has left the positioning base station location area.
通过设定一定的计数值作为判断参考,从而避免频繁地出现离场在场结果,进行频繁地根据定位判断结果对定位标签上的定位业务功能的关闭和开启。此外,通过对定位标签发送的第二定位标签广播报文中标记信息是否等于设定值的判断可以防止非定位标签的蓝牙报文而出现的判断错误问题,从而提高了定位标签定位判断的准确定;而且还可以防止根据定位标签的非特定离场协议报文进行定位判断,从而仅根据定位标签发送的特殊离场协议报文进行定位判断,进而可以节省定位基站定位判断的功耗。By setting a certain count value as a judgment reference, frequent occurrence of departure and presence results is avoided, and the positioning service function on the positioning label is frequently closed and opened according to the positioning judgment result. In addition, by judging whether the marking information in the second positioning tag broadcast message sent by the positioning tag is equal to the set value, the problem of judgment error caused by the Bluetooth message of the non-positioning tag can be prevented, thereby improving the accuracy of the positioning tag positioning judgment. It can also prevent the positioning judgment based on the non-specific departure protocol message of the positioning tag, so that the positioning judgment is only performed according to the special departure protocol message sent by the positioning tag, thereby saving the power consumption of the positioning base station positioning judgment.
在一种可能的设计中,所述定位标签广播报文和所述定位标签广播回应报文采用的特殊离场协议通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到。In a possible design, the special departure protocol used in the location tag broadcast message and the location tag broadcast response message is modified by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol, or the unlinkable broadcast protocol. get.
所述定位标签广播报文和所述定位标签广播回应报文通过采用该特殊离场协议相对于定位标签根据已有的蓝牙广播报文协议进行判断而言,具有更加灵活性且更能节省功耗的效果。因为,已有的蓝牙广播报文协议报文的发送阶段具有一定的限制(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加定位基站的功耗,不如采用该特殊离场协议报文进行离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以更加节省定位基站的功耗。The positioning tag broadcast message and the positioning tag broadcast response message are more flexible and function-saving by using the special departure protocol compared to the positioning tag based on the existing Bluetooth broadcast message protocol. consumption effect. Because the transmission phase of the existing Bluetooth broadcast message protocol message has certain restrictions (for example, it needs to be bound with the sending positioning data) and the transmission and reception frequency is high, which increases the power consumption of the positioning base station. On-site protocol messages are more flexible for departure judgment (not limited to being sent together with positioning data), and due to the use of special off-site protocol messages, the sending frequency is more flexible and is usually lower than the frequency of data sent by existing protocols, so it can be more Save the power consumption of the positioning base station.
此外,由于现有的蓝牙广播报文协议具有易于实施、安全性高、实时性好、效率高等优点,通过采用修改已有的蓝牙广播报文协议(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)得到的特殊离场协议,可以在保持现有的蓝牙广播报文协议所具有的具有易于实施、安全性高、实时性好、效率高等优点的基础上,而且由于这种蓝牙广播报文协议在广播信道上双方进行交互,具有功耗低的特性。In addition, because the existing Bluetooth broadcast message protocol has the advantages of easy implementation, high security, good real-time performance, and high efficiency, by modifying the existing Bluetooth broadcast message protocol (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol), which can maintain the advantages of easy implementation, high security, good real-time performance and high efficiency of the existing Bluetooth broadcast message protocol. On the basis of the Bluetooth broadcast message protocol, and because the two parties interact on the broadcast channel, the Bluetooth broadcast message protocol has the characteristics of low power consumption.
在一种可能的设计中,所述的通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到的特殊离场协议中的定位标签广播报文不包括Data域。In a possible design, the location tag broadcast message in the special departure protocol obtained by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol or the unlinkable broadcast protocol does not include the Data field.
通过删除依据现有可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议发送的定位标签广播报文中的Data域,使得定位标签和定位基站之间用于离场判断的通信更加灵活,且开销小,更能节省功耗的效果。By deleting the Data field in the positioning tag broadcast message sent according to the existing scannable broadcast message protocol, linkable undirected broadcast protocol or unlinkable broadcast protocol, the communication between the positioning tag and the positioning base station for departure judgment is enabled. It is more flexible, has less overhead, and can save more power.
再一方面,本申请实施例提供了一种定位设备,应用于定位设备和由至少两个定位基站构成定位基站群所组成的定位系统中,所述定位设备包括:In another aspect, an embodiment of the present application provides a positioning device, which is applied to a positioning device and a positioning system composed of a positioning base station group formed by at least two positioning base stations, where the positioning device includes:
收发单元,用于定期向所述定位基站群发送定位设备广播报文;a transceiver unit, configured to periodically send positioning equipment broadcast messages to the positioning base station group;
处理单元,用于通过所述定位基站群返回的定位标签广播回应报文确定所述定位设备是否离开所述定位基站群的定位区域,并在所述定位设备离开所述定位基站群的定位区域的情况下,关闭所述定位设备上的除离场判断功能之外的定位业务功能。A processing unit, configured to determine whether the positioning device leaves the positioning area of the positioning base station group through the positioning label broadcast response message returned by the positioning base station group, and when the positioning device leaves the positioning area of the positioning base station group In the case of , the positioning service functions except the departure judgment function on the positioning device are turned off.
通过增加定位标签的离场判断或定位判断功能,而且在判断出所述定位标签离开该定位基站群的定位区域后,关闭该定位标签上除了离场判断之外的其他定位业务功能,从而可以节省定位标签的功耗,使得该定位标签中的电源能够持续服务更长时间。By adding the departure judgment or positioning judgment function of the positioning tag, and after judging that the positioning tag has left the positioning area of the positioning base station group, the other positioning service functions except the departure judgment on the positioning tag are turned off, so that it is possible to The power consumption of the positioning tag is saved, so that the power supply in the positioning tag can continue to serve for a longer time.
在一种可能的设计中,所述处理单元判断是否离开所述定位基站群的定位区域具体包括:所述处理单元在与发送所述定位标签广播报文相同的信道上监听所述定位基站群中的定位基站返回的定位标签广播回应报文;若所述处理单元在所述相同的信道上没有收到所述的定位基站群中的至少一个定位基站返回的定位标签广播回应报文,则确定所述定位设备已经离开所述定位基站群的定位区域。In a possible design, the processing unit judging whether to leave the positioning area of the positioning base station group specifically includes: the processing unit monitors the positioning base station group on the same channel as sending the positioning label broadcast message The positioning label broadcast response message returned by the positioning base station in the It is determined that the positioning device has left the positioning area of the positioning base station group.
在一种可能的设计中,所述处理单元判断是否离开所述定位基站群的定位区域具体包括:所述处理单元在与发送所述定位标签广播报文相同的信道上监听所述定位基站群中的定位基站返回的定位标签广播回应报文;所述处理单元在所述相同的信道上收到所述的定位基站群中至少一个定位基站返回的定位标签广播回应报文,所述定位标签广播回应报文包括所述至少一个定位基站的蓝牙地址;所述处理单元确定所述至少一个定位基站的蓝牙地址是否具有规律性,若不具有规律性,则将计数值加1,并在所述计数值未达到设定阈值时,继续执行上述步骤;在所述计数值达到所述设定阈值时,确定所述定位设备已经离开所述定位基站群的定位区域。In a possible design, the processing unit judging whether to leave the positioning area of the positioning base station group specifically includes: the processing unit monitors the positioning base station group on the same channel as sending the positioning label broadcast message The positioning tag broadcast response message returned by the positioning base station in the The broadcast response message includes the Bluetooth address of the at least one positioning base station; the processing unit determines whether the Bluetooth address of the at least one positioning base station is regular, and if it is not regular, the count value is incremented by 1, and the When the count value does not reach the set threshold, continue to perform the above steps; when the count value reaches the set threshold, it is determined that the positioning device has left the positioning area of the positioning base station group.
通过对定位基站返回的蓝牙地址的规律性判断是否是所述基站群中的基站返回的回应报文,以防止非基站蓝牙回应的定位标签广播回应报文而出现的判断错误问题,从而提高了定位标签定位判断的准确定;此外,通过设定一定的计数值作为判断参考,从而避免频繁地出现离场在场结果,进行频繁地根据定位判断结果对定位标签上的定位业务功能的关闭和开启。By judging whether the Bluetooth address returned by the positioning base station is a response message returned by a base station in the base station group, it can prevent the wrong judgment problem caused by the positioning tag broadcast response message that is not responded to by the Bluetooth of the base station, thereby improving the Accurate determination of positioning tag positioning; in addition, by setting a certain count value as a judgment reference, so as to avoid frequent departure and presence results, and frequently close and open the positioning service function on the positioning tag according to the positioning judgment results. .
在一种可能的设计中,所述处理单元进一步用于若所述定位标签确定所述至少一个定位基站的蓝牙地址具有规律性,则所述定位标签确定其处于所述定位基站群的定位区域,将所述计数值清零,开启所述定位标签上关闭的定位业务功能。In a possible design, the processing unit is further configured to, if the positioning tag determines that the Bluetooth address of the at least one positioning base station is regular, the positioning tag determines that it is in the positioning area of the positioning base station group , clear the count value to zero, and enable the location service function disabled on the location label.
在一种可能设计中,所述处理单元通过下述方式之一确定所述至少一个定位基站的蓝牙地址是否具有规律性:所述定位区域内多个定位基站的蓝牙地址值相同;所述定位区域内多个定位基站的蓝牙地址值按照指定步长递增;和所述定位区域内多个定位基站的蓝牙地址值是根据特定算法公式计算得到。In a possible design, the processing unit determines whether the Bluetooth address of the at least one positioning base station is regular in one of the following ways: the Bluetooth address values of multiple positioning base stations in the positioning area are the same; the positioning The Bluetooth address values of the multiple positioning base stations in the area are incremented according to a specified step size; and the Bluetooth address values of the multiple positioning base stations in the positioning area are calculated according to a specific algorithm formula.
在一种可能的设计中,所述定位标签上除了离场判断功能之外的定位业务功能包括至少下述功能之一:定位数据的采集功能、定位数据的计算功能和定位数据的发送功能。In a possible design, the positioning service function on the positioning tag other than the departure judgment function includes at least one of the following functions: a function of collecting positioning data, a function of calculating positioning data, and a function of sending positioning data.
在一种可能的设计中,所述定位标签广播报文和所述定位标签广播回应报文采用特殊离场协议,该特殊离场协议通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到。In a possible design, the positioning tag broadcast message and the positioning tag broadcast response message use a special departure protocol, which is modified by modifying the scannable broadcast packet protocol and the linkable undirected broadcast protocol. Or the unlinkable broadcast protocol gets.
所述定位标签广播报文和所述定位标签广播回应报文通过采用该特殊离场协议相对于定位标签根据已有的蓝牙广播报文协议进行判断而言,具有更加灵活性且更能节省功耗的效果。因为,已有的蓝牙广播报文协议报文的发送阶段具有一定的限制(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加定位基站的功耗,不如采用该特殊离场协议报文进行离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以更加节省定位基站的功耗。The positioning tag broadcast message and the positioning tag broadcast response message are more flexible and function-saving by using the special departure protocol compared to the positioning tag based on the existing Bluetooth broadcast message protocol. consumption effect. Because the transmission phase of the existing Bluetooth broadcast message protocol message has certain restrictions (for example, it needs to be bound with the sending positioning data) and the transmission and reception frequency is high, which increases the power consumption of the positioning base station. On-site protocol messages are more flexible for departure judgment (not limited to being sent together with positioning data), and due to the use of special off-site protocol messages, the sending frequency is more flexible and is usually lower than the frequency of data sent by existing protocols, so it can be more Save the power consumption of the positioning base station.
此外,由于现有的蓝牙广播报文协议具有易于实施、安全性高、实时性好、效率高等优点,通过采用修改已有的蓝牙广播报文协议(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)得到的特殊离场协议,可以在保持现有的蓝牙广播报文协议所具有的具有易于实施、安全性高、实时性好、效率高等优点的基础上,而且由于这种蓝牙广播报文协议在广播信道上双方进行交互,具有功耗低的特性。In addition, because the existing Bluetooth broadcast message protocol has the advantages of easy implementation, high security, good real-time performance, and high efficiency, by modifying the existing Bluetooth broadcast message protocol (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol), which can maintain the advantages of easy implementation, high security, good real-time performance and high efficiency of the existing Bluetooth broadcast message protocol. On the basis of the Bluetooth broadcast message protocol, and because the two parties interact on the broadcast channel, the Bluetooth broadcast message protocol has the characteristics of low power consumption.
在一种可能的设计中,所述的通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到的特殊离场协议中的定位标签广播报文不包括Data域。In a possible design, the location tag broadcast message in the special departure protocol obtained by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol or the unlinkable broadcast protocol does not include the Data field.
通过删除依据现有可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议发送的定位标签广播报文中的Data域,使得定位标签和定位基站之间用于离场判断的通信更加灵活,且开销小,更能节省功耗的效果。By deleting the Data field in the positioning tag broadcast message sent according to the existing scannable broadcast message protocol, linkable undirected broadcast protocol or unlinkable broadcast protocol, the communication between the positioning tag and the positioning base station for departure judgment is enabled. It is more flexible, has less overhead, and can save more power.
再一方面,本申请实施例提供了一种定位基站,应用于定位设备和由至少两个定位基站构成定位基站群所组成的定位系统中,所述定位基站为所述定位基站群中的任一定位基站,所述基站包括:收发单元,用于接收所述定位设备定期发送的第一定位标签广播报文,所述的第一定位标签广播报文携带标记信息以及所述定位设备的地址信息,所述标记信息指示所述第一定位标签广播报文为特殊离场协议报文;处理单元,用于所述定位基站记录所述定位设备的地址信息,所述定位基站根据所述标记信息确定所述定位设备处于所述基站的定位区域,并指示所述收发单元向所述定位设备返回定位标签广播回应报文。On the other hand, an embodiment of the present application provides a positioning base station, which is applied to a positioning device and a positioning system composed of a positioning base station group formed by at least two positioning base stations, wherein the positioning base station is any one of the positioning base stations in the positioning base station group. A positioning base station, the base station includes: a transceiver unit configured to receive a first positioning label broadcast message periodically sent by the positioning device, where the first positioning label broadcast message carries label information and the address of the positioning device information, the marking information indicates that the first positioning label broadcast message is a special departure protocol message; a processing unit, used for the positioning base station to record the address information of the positioning device, and the positioning base station records the address information of the positioning device according to the marking The information determines that the positioning device is in the positioning area of the base station, and instructs the transceiver unit to return a positioning tag broadcast response message to the positioning device.
相对于现有技术中,定位基站根据现有的蓝牙广播协议报文进行判断,定位基站根据特殊离场协议中的特殊离场协议报文进行定位判断,可以使得定位基站的离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以节省定位基站的功耗。因为现有的现有的蓝牙广播协议报文(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)的发送阶段具有一定的限制性(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加了定位基站进行定位判断的功耗。Compared with the prior art, the positioning base station makes a judgment according to the existing Bluetooth broadcast protocol message, and the positioning base station makes a positioning judgment according to the special departure protocol message in the special departure protocol, which can make the departure judgment of the positioning base station more flexible. (Not limited to be sent together with positioning data), and due to the use of a special departure protocol message, the sending frequency is more flexible and is usually lower than the frequency of sending data in existing protocols, thereby saving the power consumption of the positioning base station. Because the existing existing Bluetooth broadcast protocol messages (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol) have certain limitations (for example, all require It is bound together with the sending positioning data) and the high sending and receiving frequency increases the power consumption of the positioning base station for positioning judgment.
在一种可能的设计中,所述处理单元进一步用于若在设定时间内所述处理单元没有收到携带有所述定位设备的地址信息的第二定位标签广播报文,则确定所述定位设备离开所述定位基站的定位区域。In a possible design, the processing unit is further configured to determine that the processing unit does not receive a second positioning tag broadcast message carrying the address information of the positioning device within a set time. The positioning device leaves the positioning area of the positioning base station.
在一种可能的设计中,所述处理单元进一步用于:若在设定时间内所述处理单元收到携带有所述定位设备的地址信息的第二定位标签广播报文,则判断所述第二定位标签广播报文中的标记信息是否等于设定值,所述第二定位标签广播报文中的标记信息用于指示所述第二定位标签广播报文是否为特殊离场协议报文;如果所述第二定位标签广播报文中的标记信息等于设定值,则确定所述定位设备处于所述定位基站的定位区域,并向所述定位设备返回定位标签广播回应报文;如果所述第二定位标签广播报文中的标记信息不等于设定值,则将所述计数值加1,并在所述计数值达到所述设定阈值时,确定所述定位设备离开所述定位基站的定位区域。In a possible design, the processing unit is further configured to: determine the Whether the tag information in the second positioning tag broadcast packet is equal to the set value, the tag information in the second positioning tag broadcast packet is used to indicate whether the second positioning tag broadcast packet is a special departure protocol packet ; If the marking information in the second positioning label broadcast message is equal to the set value, then determine that the positioning device is in the positioning area of the positioning base station, and return the positioning label broadcast response message to the positioning device; If If the flag information in the broadcast message of the second positioning label is not equal to the set value, then the count value is increased by 1, and when the count value reaches the set threshold value, it is determined that the positioning device has left the Locate the location area of the base station.
通过设定一定的计数值作为判断参考,从而避免频繁地出现离场在场结果,进行频繁地根据定位判断结果对定位标签上的定位业务功能的关闭和开启。此外,通过对定位标签发送的第二定位标签广播报文中标记信息是否等于设定值的判断可以防止非定位标签的蓝牙报文而出现的判断错误问题,从而提高了定位标签定位判断的准确定;而且还可以防止根据定位标签的非特定离场协议报文进行定位判断,从而仅根据定位标签发送的特殊离场协议报文进行定位判断,进而可以节省定位基站定位判断的功耗。By setting a certain count value as a judgment reference, frequent occurrence of departure and presence results is avoided, and the positioning service function on the positioning label is frequently closed and opened according to the positioning judgment result. In addition, by judging whether the marking information in the second positioning tag broadcast message sent by the positioning tag is equal to the set value, the problem of judgment error caused by the Bluetooth message of the non-positioning tag can be prevented, thereby improving the accuracy of the positioning tag positioning judgment. It can also prevent the positioning judgment based on the non-specific departure protocol message of the positioning tag, so that the positioning judgment is only performed according to the special departure protocol message sent by the positioning tag, thereby saving the power consumption of the positioning base station positioning judgment.
在一种可能的设计中,所述定位标签广播报文和所述定位标签广播回应报文采用的特殊离场协议通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到。In a possible design, the special departure protocol used in the location tag broadcast message and the location tag broadcast response message is modified by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol, or the unlinkable broadcast protocol. get.
在一种可能的设计中,所述的通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到的特殊离场协议中的定位标签广播报文不包括Data域。In a possible design, the location tag broadcast message in the special departure protocol obtained by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol or the unlinkable broadcast protocol does not include the Data field.
所述定位标签广播报文和所述定位标签广播回应报文通过采用该特殊离场协议相对于定位标签根据已有的蓝牙广播报文协议进行判断而言,具有更加灵活性且更能节省功耗的效果。因为,已有的蓝牙广播报文协议报文的发送阶段具有一定的限制(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加定位基站的功耗,不如采用该特殊离场协议报文进行离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以更加节省定位基站的功耗。The positioning tag broadcast message and the positioning tag broadcast response message are more flexible and function-saving by using the special departure protocol compared to the positioning tag based on the existing Bluetooth broadcast message protocol. consumption effect. Because the transmission phase of the existing Bluetooth broadcast message protocol message has certain restrictions (for example, it needs to be bound with the sending positioning data) and the transmission and reception frequency is high, which increases the power consumption of the positioning base station. On-site protocol messages are more flexible for departure judgment (not limited to being sent together with positioning data), and due to the use of special off-site protocol messages, the sending frequency is more flexible and is usually lower than the frequency of data sent by existing protocols, so it can be more Save the power consumption of the positioning base station.
此外,由于现有的蓝牙广播报文协议具有易于实施、安全性高、实时性好、效率高等优点,通过采用修改已有的蓝牙广播报文协议(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)得到的特殊离场协议,可以在保持现有的蓝牙广播报文协议所具有的具有易于实施、安全性高、实时性好、效率高等优点的基础上,而且由于这种蓝牙广播报文协议在广播信道上双方进行交互,具有功耗低的特性。In addition, because the existing Bluetooth broadcast message protocol has the advantages of easy implementation, high security, good real-time performance, and high efficiency, by modifying the existing Bluetooth broadcast message protocol (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol), which can maintain the advantages of easy implementation, high security, good real-time performance and high efficiency of the existing Bluetooth broadcast message protocol. On the basis of the Bluetooth broadcast message protocol, and because the two parties interact on the broadcast channel, the Bluetooth broadcast message protocol has the characteristics of low power consumption.
而且通过删除依据现有可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议发送的定位标签广播报文中的Data域,使得定位标签和定位基站之间用于离场判断的通信更加灵活,且开销小,更能节省功耗的效果。Moreover, by deleting the Data field in the positioning tag broadcast message sent according to the existing scannable broadcast message protocol, linkable undirected broadcast protocol or unlinkable broadcast protocol, the difference between the positioning tag and the positioning base station for departure judgment is made. The communication is more flexible, the overhead is small, and the effect of saving power consumption is better.
再一方面,本申请实施例提供了一种定位设备,应用于定位设备和由至少两个定位基站构成定位基站群所组成的定位系统中,所述定位设备包括:收发器,用于定期向所述定位基站群发送定位标签广播报文;处理器,用于通过所述定位基站群中至少一个定位基站返回的定位标签广播回应报文确定所述定位设备是否离开所述定位基站群的定位区域,并在所述定位设备离开所述定位基站群的定位区域的情况下,关闭所述定位设备上的除离场判断功能之外的定位业务功能。On the other hand, an embodiment of the present application provides a positioning device, which is applied to a positioning device and a positioning system composed of a positioning base station group formed by at least two positioning base stations. The positioning device includes: a transceiver for periodically sending The positioning base station group sends a positioning label broadcast message; the processor is configured to determine whether the positioning device leaves the positioning of the positioning base station group through a positioning label broadcast response message returned by at least one positioning base station in the positioning base station group area, and when the positioning device leaves the positioning area of the positioning base station group, disable the positioning service functions on the positioning device except for the departure judgment function.
通过增加定位标签的离场判断或定位判断功能,而且在判断出所述定位标签离开该定位基站群的定位区域后,关闭该定位标签上除了离场判断之外的其他定位业务功能,从而可以节省定位标签的功耗,使得该定位标签中的电源能够持续服务更长时间。By adding the departure judgment or positioning judgment function of the positioning tag, and after judging that the positioning tag has left the positioning area of the positioning base station group, the other positioning service functions except the departure judgment on the positioning tag are turned off, so that it is possible to The power consumption of the positioning tag is saved, so that the power supply in the positioning tag can continue to serve for a longer time.
在一种可能的设计中,所述处理器判断是否离开所述定位基站群的定位区域具体包括:所述处理器在与发送所述定位标签广播报文相同的信道上监听所述定位基站群中的定位基站返回的定位标签广播回应报文;若所述处理器在所述相同的信道上没有收到所述的定位基站群中的至少一个定位基站返回的定位标签广播回应报文,则确定所述定位设备已经离开所述定位基站群的定位区域。In a possible design, the processor judging whether to leave the positioning area of the positioning base station group specifically includes: the processor listening to the positioning base station group on the same channel as sending the positioning label broadcast message The positioning label broadcast response message returned by the positioning base station in the It is determined that the positioning device has left the positioning area of the positioning base station group.
在一种可能的设计中,所述处理器判断是否离开所述定位基站群的定位区域具体包括:所述处理器在与发送所述定位标签广播报文相同的信道上监听所述定位基站群中的定位基站返回的定位标签广播回应报文;所述处理器在所述相同的信道上收到所述的定位基站群中至少一个定位基站返回的定位标签广播回应报文,所述定位标签广播回应报文包括所述至少一个定位基站的蓝牙地址;所述处理器确定所述至少一个定位基站的蓝牙地址是否具有规律性,若不具有规律性,则将计数值加1,并在所述计数值未达到设定阈值时,继续执行上述步骤;在所述计数值达到所述设定阈值时,确定所述定位设备已经离开所述定位基站群的定位区域。In a possible design, the processor judging whether to leave the positioning area of the positioning base station group specifically includes: the processor listening to the positioning base station group on the same channel as sending the positioning label broadcast message The positioning tag broadcast response message returned by the positioning base station in the The broadcast response message includes the Bluetooth address of the at least one positioning base station; the processor determines whether the Bluetooth address of the at least one positioning base station is regular, and if it is not regular, the count value is increased by 1, and the When the count value does not reach the set threshold, continue to perform the above steps; when the count value reaches the set threshold, it is determined that the positioning device has left the positioning area of the positioning base station group.
通过对定位基站返回的蓝牙地址的规律性判断是否是所述基站群中的基站返回的回应报文,以防止非基站蓝牙回应的定位标签广播回应报文而出现的判断错误问题,从而提高了定位标签定位判断的准确定;此外,通过设定一定的计数值作为判断参考,从而避免频繁地出现离场在场结果,进行频繁地根据定位判断结果对定位标签上的定位业务功能的关闭和开启。By judging whether the Bluetooth address returned by the positioning base station is a response message returned by a base station in the base station group, it can prevent the wrong judgment problem caused by the positioning tag broadcast response message that is not responded to by the Bluetooth of the base station, thereby improving the Accurate determination of positioning tag positioning; in addition, by setting a certain count value as a judgment reference, so as to avoid frequent departure and presence results, and frequently close and open the positioning service function on the positioning tag according to the positioning judgment results. .
在一种可能的设计中,所述处理器进一步用于若所述定位标签确定所述至少一个定位基站的蓝牙地址具有规律性,则所述定位标签确定其处于所述定位基站群的定位区域,将所述计数值清零,开启所述定位标签上关闭的定位业务功能。In a possible design, the processor is further configured to, if the positioning tag determines that the Bluetooth address of the at least one positioning base station has regularity, the positioning tag determines that it is in the positioning area of the positioning base station group , clear the count value to zero, and enable the location service function disabled on the location label.
在一种可能设计中,所述处理器通过下述方式之一确定所述至少一个定位基站的蓝牙地址是否具有规律性:所述定位区域内多个定位基站的蓝牙地址值相同;所述定位区域内多个定位基站的蓝牙地址值按照指定步长递增;和所述定位区域内多个定位基站的蓝牙地址值是根据特定算法公式计算得到。In a possible design, the processor determines whether the Bluetooth address of the at least one positioning base station is regular in one of the following ways: the Bluetooth address values of multiple positioning base stations in the positioning area are the same; the positioning The Bluetooth address values of the multiple positioning base stations in the area are incremented according to a specified step size; and the Bluetooth address values of the multiple positioning base stations in the positioning area are calculated according to a specific algorithm formula.
在一种可能的设计中,所述定位标签上除了离场判断功能之外的定位业务功能包括至少下述功能之一:定位数据的采集功能、定位数据的计算功能和定位数据的发送功能。In a possible design, the positioning service function on the positioning tag other than the departure judgment function includes at least one of the following functions: a function of collecting positioning data, a function of calculating positioning data, and a function of sending positioning data.
在一种可能的设计中,所述定位标签广播报文和所述定位标签广播回应报文采用特殊离场协议,该特殊离场协议通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到。In a possible design, the positioning tag broadcast message and the positioning tag broadcast response message use a special departure protocol, which is modified by modifying the scannable broadcast packet protocol and the linkable undirected broadcast protocol. Or the unlinkable broadcast protocol gets.
所述定位标签广播报文和所述定位标签广播回应报文通过采用该特殊离场协议相对于定位标签根据已有的蓝牙广播报文协议进行判断而言,具有更加灵活性且更能节省功耗的效果。因为,已有的蓝牙广播报文协议报文的发送阶段具有一定的限制(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加定位基站的功耗,不如采用该特殊离场协议报文进行离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以更加节省定位基站的功耗。The positioning tag broadcast message and the positioning tag broadcast response message are more flexible and function-saving by using the special departure protocol compared to the positioning tag based on the existing Bluetooth broadcast message protocol. consumption effect. Because the transmission phase of the existing Bluetooth broadcast message protocol message has certain restrictions (for example, it needs to be bound with the sending positioning data) and the transmission and reception frequency is high, which increases the power consumption of the positioning base station. On-site protocol messages are more flexible for departure judgment (not limited to being sent together with positioning data), and due to the use of special off-site protocol messages, the sending frequency is more flexible and is usually lower than the frequency of data sent by existing protocols, so it can be more Save the power consumption of the positioning base station.
此外,由于现有的蓝牙广播报文协议具有易于实施、安全性高、实时性好、效率高等优点,通过采用修改已有的蓝牙广播报文协议(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)得到的特殊离场协议,可以在保持现有的蓝牙广播报文协议所具有的具有易于实施、安全性高、实时性好、效率高等优点的基础上,而且由于这种蓝牙广播报文协议在广播信道上双方进行交互,具有功耗低的特性。In addition, because the existing Bluetooth broadcast message protocol has the advantages of easy implementation, high security, good real-time performance, and high efficiency, by modifying the existing Bluetooth broadcast message protocol (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol), which can maintain the advantages of easy implementation, high security, good real-time performance and high efficiency of the existing Bluetooth broadcast message protocol. On the basis of the Bluetooth broadcast message protocol, and because the two parties interact on the broadcast channel, the Bluetooth broadcast message protocol has the characteristics of low power consumption.
在一种可能的设计中,所述的通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到的特殊离场协议中的定位标签广播报文不包括Data域。In a possible design, the location tag broadcast message in the special departure protocol obtained by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol or the unlinkable broadcast protocol does not include the Data field.
通过删除依据现有可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议发送的定位标签广播报文中的Data域,使得定位标签和定位基站之间用于离场判断的通信更加灵活,且开销小,更能节省功耗的效果。By deleting the Data field in the positioning tag broadcast message sent according to the existing scannable broadcast message protocol, linkable undirected broadcast protocol or unlinkable broadcast protocol, the communication between the positioning tag and the positioning base station for departure judgment is enabled. It is more flexible, has less overhead, and can save more power.
再一方面,本申请实施例提供了一种定位基站,应用于定位设备和由至少两个定位基站构成定位基站群所组成的定位系统中,所述定位基站为所述定位基站群中的任一定位基站,所述基站包括:收发器,用于接收所述定位设备定期发送的第一定位标签广播报文,所述的第一定位标签广播报文携带标记信息以及所述定位设备的地址信息,所述标记信息指示所述第一定位标签广播报文为特殊离场协议报文;处理器,用于所述定位基站记录所述定位设备的地址信息,所述定位基站根据所述标记信息确定所述定位设备处于所述基站的定位区域,并指示所述收发器向所述定位设备返回定位标签广播回应报文。On the other hand, an embodiment of the present application provides a positioning base station, which is applied to a positioning device and a positioning system composed of a positioning base station group formed by at least two positioning base stations, wherein the positioning base station is any one of the positioning base stations in the positioning base station group. A positioning base station, the base station includes: a transceiver for receiving a first positioning label broadcast message periodically sent by the positioning device, where the first positioning label broadcast message carries label information and the address of the positioning device information, the marking information indicates that the first positioning label broadcast message is a special departure protocol message; the processor is used for the positioning base station to record the address information of the positioning device, and the positioning base station records the address information of the positioning device according to the marking The information determines that the positioning device is in the positioning area of the base station, and instructs the transceiver to return a positioning tag broadcast response message to the positioning device.
相对于现有技术中,定位基站根据现有的蓝牙广播协议报文进行判断,定位基站根据特殊离场协议中的特殊离场协议报文进行定位判断,可以使得定位基站的离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以节省定位基站的功耗。因为现有的现有的蓝牙广播协议报文(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)的发送阶段具有一定的限制性(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加了定位基站进行定位判断的功耗。Compared with the prior art, the positioning base station makes a judgment according to the existing Bluetooth broadcast protocol message, and the positioning base station makes a positioning judgment according to the special departure protocol message in the special departure protocol, which can make the departure judgment of the positioning base station more flexible. (Not limited to be sent together with positioning data), and due to the use of a special departure protocol message, the sending frequency is more flexible and is usually lower than the frequency of sending data in existing protocols, thereby saving the power consumption of the positioning base station. Because the existing existing Bluetooth broadcast protocol messages (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol) have certain limitations (for example, all require It is bound together with the sending positioning data) and the high sending and receiving frequency increases the power consumption of the positioning base station for positioning judgment.
在一种可能的设计中,所述处理器进一步用于若在设定时间内所述收发器没有收到携带有所述定位设备的地址信息的第二定位标签广播报文,则确定所述定位设备离开所述定位基站的定位区域。In a possible design, the processor is further configured to, if the transceiver does not receive a second positioning tag broadcast message carrying the address information of the positioning device within a set time, determine the The positioning device leaves the positioning area of the positioning base station.
在一种可能的设计中,所述处理单元进一步用于:若在设定时间内所述收发器收到携带有所述定位设备的地址信息的第二定位标签广播报文,则判断所述第二定位标签广播报文中的标记信息是否等于设定值,所述第二定位标签广播报文中的标记信息用于指示所述第二定位标签广播报文是否为特殊离场协议报文;如果所述第二定位标签广播报文中的标记信息等于设定值,则确定所述定位设备处于所述定位基站的定位区域,并向所述定位设备返回定位标签广播回应报文;如果所述第二定位标签广播报文中的标记信息不等于设定值,则将所述计数值加1,并在所述计数值达到所述设定阈值时,确定所述定位设备离开所述定位基站的定位区域。In a possible design, the processing unit is further configured to: if the transceiver receives a second positioning tag broadcast message carrying the address information of the positioning device within a set time, determine the Whether the tag information in the second positioning tag broadcast packet is equal to the set value, the tag information in the second positioning tag broadcast packet is used to indicate whether the second positioning tag broadcast packet is a special departure protocol packet ; If the marking information in the second positioning label broadcast message is equal to the set value, then determine that the positioning device is in the positioning area of the positioning base station, and return the positioning label broadcast response message to the positioning device; If If the flag information in the broadcast message of the second positioning label is not equal to the set value, then the count value is increased by 1, and when the count value reaches the set threshold value, it is determined that the positioning device has left the Locate the location area of the base station.
通过设定一定的计数值作为判断参考,从而避免频繁地出现离场在场结果,进行频繁地根据定位判断结果对定位标签上的定位业务功能的关闭和开启。此外,通过对定位标签发送的第二定位标签广播报文中标记信息是否等于设定值的判断可以防止非定位标签的蓝牙报文而出现的判断错误问题,从而提高了定位标签定位判断的准确定;而且还可以防止根据定位标签的非特定离场协议报文进行定位判断,从而仅根据定位标签发送的特殊离场协议报文进行定位判断,进而可以节省定位基站定位判断的功耗。By setting a certain count value as a judgment reference, frequent occurrence of departure and presence results is avoided, and the positioning service function on the positioning label is frequently closed and opened according to the positioning judgment result. In addition, by judging whether the marking information in the second positioning tag broadcast message sent by the positioning tag is equal to the set value, the problem of judgment error caused by the Bluetooth message of the non-positioning tag can be prevented, thereby improving the accuracy of the positioning tag positioning judgment. It can also prevent the positioning judgment based on the non-specific departure protocol message of the positioning tag, so that the positioning judgment is only performed according to the special departure protocol message sent by the positioning tag, thereby saving the power consumption of the positioning base station positioning judgment.
在一种可能的设计中,所述定位标签广播报文和所述定位标签广播回应报文采用的特殊离场协议通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到。In a possible design, the special departure protocol used in the location tag broadcast message and the location tag broadcast response message is modified by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol, or the unlinkable broadcast protocol. get.
在一种可能的设计中,所述的通过修改可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议得到的特殊离场协议中的定位标签广播报文不包括Data域。In a possible design, the location tag broadcast message in the special departure protocol obtained by modifying the scannable broadcast message protocol, the linkable undirected broadcast protocol or the unlinkable broadcast protocol does not include the Data field.
所述定位标签广播报文和所述定位标签广播回应报文通过采用该特殊离场协议相对于定位标签根据已有的蓝牙广播报文协议进行判断而言,具有更加灵活性且更能节省功耗的效果。因为,已有的蓝牙广播报文协议报文的发送阶段具有一定的限制(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加定位基站的功耗,不如采用该特殊离场协议报文进行离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以更加节省定位基站的功耗。The positioning tag broadcast message and the positioning tag broadcast response message are more flexible and function-saving by using the special departure protocol compared to the positioning tag based on the existing Bluetooth broadcast message protocol. consumption effect. Because the transmission phase of the existing Bluetooth broadcast message protocol message has certain restrictions (for example, it needs to be bound with the sending positioning data) and the transmission and reception frequency is high, which increases the power consumption of the positioning base station. On-site protocol messages are more flexible for departure judgment (not limited to being sent together with positioning data), and due to the use of special off-site protocol messages, the sending frequency is more flexible and is usually lower than the frequency of data sent by existing protocols, so it can be more Save the power consumption of the positioning base station.
此外,由于现有的蓝牙广播报文协议具有易于实施、安全性高、实时性好、效率高等优点,通过采用修改已有的蓝牙广播报文协议(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)得到的特殊离场协议,可以在保持现有的蓝牙广播报文协议所具有的具有易于实施、安全性高、实时性好、效率高等优点的基础上,而且由于这种蓝牙广播报文协议在广播信道上双方进行交互,具有功耗低的特性。In addition, because the existing Bluetooth broadcast message protocol has the advantages of easy implementation, high security, good real-time performance, and high efficiency, by modifying the existing Bluetooth broadcast message protocol (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol), which can maintain the advantages of easy implementation, high security, good real-time performance and high efficiency of the existing Bluetooth broadcast message protocol. On the basis of the Bluetooth broadcast message protocol, and because the two parties interact on the broadcast channel, the Bluetooth broadcast message protocol has the characteristics of low power consumption.
而且通过删除依据现有可扫描广播报文协议、可链接无向广播协议或者不可链接广播协议发送的定位标签广播报文中的Data域,使得定位标签和定位基站之间用于离场判断的通信更加灵活,且开销小,更能节省功耗的效果。Moreover, by deleting the Data field in the positioning tag broadcast message sent according to the existing scannable broadcast message protocol, linkable undirected broadcast protocol or unlinkable broadcast protocol, the difference between the positioning tag and the positioning base station for departure judgment is made. The communication is more flexible, the overhead is small, and the effect of saving power consumption is better.
再一方面,本申请实施例提供了一种定位系统,该定位系统包括上述定位设备中的各种可能的设计方式以及上述定位基站中的各种可能的设计方式。In another aspect, an embodiment of the present application provides a positioning system, where the positioning system includes various possible design methods in the above-mentioned positioning device and various possible design methods in the above-mentioned positioning base station.
再一方面,本申请实施例提供了一种计算机可读存储介质,该计算机存储介质中存储有程序代码,该程序代码用于指示执行上述定位设备中的各种可能的设计方式中的方法。In another aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer storage medium, and the program code is used to instruct to execute a method in various possible design manners in the above-mentioned positioning device.
再一方面,本申请实施例提供了一种计算机可读存储介质,该计算机存储介质中存储有程序代码,该程序代码用于指示执行上述定位基站中的各种可能的设计方式中的方法。In another aspect, an embodiment of the present application provides a computer-readable storage medium, where program codes are stored in the computer storage medium, and the program codes are used to instruct to execute the methods in various possible design manners in the above positioning base station.
附图说明Description of drawings
图1为本发明实施例提供的一种定位系统组网架构示意图;1 is a schematic diagram of a positioning system networking architecture according to an embodiment of the present invention;
图2为本发明实施例提供的一种定位标签在场状态示意图;2 is a schematic diagram of the presence state of a positioning tag provided by an embodiment of the present invention;
图3为本发明实施例提供的一种定位标签定位判断流程示意图;FIG. 3 is a schematic diagram of a flow chart of a positioning label positioning judgment provided by an embodiment of the present invention;
图4为本发明实施例提供的一种定位基站定位判断流程示意图;FIG. 4 is a schematic flowchart of a positioning determination flow of a positioning base station according to an embodiment of the present invention;
图5为本发明实施例提供的一种定位系统定位判断流程示意图;FIG. 5 is a schematic diagram of a positioning determination flow of a positioning system according to an embodiment of the present invention;
图6为本发明实施例提供的一种特殊离场协议的获得方式示意图;6 is a schematic diagram of a method for obtaining a special departure protocol provided by an embodiment of the present invention;
图7为本发明实施例提供的另一种特殊离场协议的获得方式示意图;FIG. 7 is a schematic diagram of a method for obtaining another special departure protocol provided by an embodiment of the present invention;
图8为本发明实施例提供的再一种特殊离场协议的获得方式示意图;FIG. 8 is a schematic diagram of a method for obtaining still another special departure protocol provided by an embodiment of the present invention;
图9为本发明实施例提供的一种定位设备结构示意图;FIG. 9 is a schematic structural diagram of a positioning device according to an embodiment of the present invention;
图10为本发明实施例提供的一种定位基站结构示意图;10 is a schematic structural diagram of a positioning base station according to an embodiment of the present invention;
图11为本发明实施例提供的一种定位装置结构示意图;11 is a schematic structural diagram of a positioning device according to an embodiment of the present invention;
图12为本发明实施例提供的一种定位系统结构示意图。FIG. 12 is a schematic structural diagram of a positioning system according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a 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 those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例描述的网络架构以及业务场景是为了更加清楚的说明本发明实施例的技术方案,并不构成对于本发明实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本发明实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and service scenarios described in the embodiments of the present invention are for the purpose of illustrating the technical solutions of the embodiments of the present invention more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. The evolution of the architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
参见图1为本发明实施例提供的一种定位系统架构示意图,该定位系统包括定位标签(也可以称为定位设备)、定位基站和定位服务器,其中定位标签与定位基站通过低功耗蓝牙BLE(英文:Bluetooth Low Energy)采用蓝牙广播协议进行通信,其中,蓝牙广播协议报文包括不可链接广播协议、可链接无向广播协议、可链接定向广播协议、可扫描广播协议。定位标签向定位基站周期性发送蓝牙广播协议报文(例如不可链接广播报文),定位基站接收到定位标签的蓝牙广播协议报文后,提取数据并与RSSI(英文:Received SignalStrength Indication)组包成网络报文,通过网络(例如Wifi、ZigBee、4G等通信网络)上报到定位服务器,定位服务器接收到定位基站发送的数据后,经过计算得到定位标签的位置信息并显示到指定地图中,从而定位出定位标签所在的位置,或者定位服务器经过计算得到定位标签的位置信息后根据特定的应用做其他处理。需要说明的是,本申请实施例中的定位标签和定位标签可以互用,指的是一种置于被定位对象上(包括人的衣服、安全帽、手机等设备)或者独立存在的定位器件,以及其他各类型的可以与定位基站进行蓝牙通信的定位器件。1 is a schematic diagram of the architecture of a positioning system provided by an embodiment of the present invention. The positioning system includes a positioning tag (also referred to as a positioning device), a positioning base station, and a positioning server. (English: Bluetooth Low Energy) uses the Bluetooth broadcast protocol for communication, wherein the Bluetooth broadcast protocol packets include the unlinkable broadcast protocol, the linkable undirected broadcast protocol, the linkable directional broadcast protocol, and the scannable broadcast protocol. The positioning tag periodically sends Bluetooth broadcast protocol packets (such as unlinkable broadcast packets) to the positioning base station. After the positioning base station receives the Bluetooth broadcast protocol packets of the positioning tag, it extracts the data and packages it with RSSI (English: Received SignalStrength Indication). After the positioning server receives the data sent by the positioning base station, it calculates the position information of the positioning tag and displays it on the designated map, thereby The location of the location label is located, or the location server obtains the location information of the location label through calculation and performs other processing according to a specific application. It should be noted that the positioning label and the positioning label in the embodiments of the present application can be used interchangeably, which refers to a positioning device that is placed on the object to be positioned (including human clothes, safety helmets, mobile phones and other equipment) or exists independently , and other types of positioning devices that can communicate with the positioning base station via Bluetooth.
参考图2,本发明实施例提供的一种定位系统中包括有多个定位基站所组成的定位基站群,定位基站群中所有定位基站的定位区域构成了定位基站群的定位区域。图2示出了定位标签在场、离场和进场(在场的一种特殊情况)三种场景。其中,对于定位标签侧侧的判断而言,在场表示定位标签在所述定位基站群的定位区域内,即只要在定位基站群中任意一个定位基站的定位区域;离场表示定位标签离开所述定位基站的定位区域;进场表示定位标签进入所述定位基站的定位区域的过程;对于某特定定位基站侧的判断而言,在场表示该定位标签处于该特定定位基站的定位区域的状态,离场标识表示该定位标签离开该特定定位基站的定位区域的状态,进场标识表示该定位标签进入该特定定位基站的定位区域的状态。2 , a positioning system provided by an embodiment of the present invention includes a positioning base station group composed of multiple positioning base stations, and the positioning areas of all positioning base stations in the positioning base station group constitute the positioning area of the positioning base station group. Figure 2 shows three scenarios of location tag presence, departure and arrival (a special case of presence). Among them, for the judgment on the side of the positioning tag, presence means that the positioning tag is within the positioning area of the positioning base station group, that is, as long as it is in the positioning area of any positioning base station in the positioning base station group; The positioning area of the positioning base station; the entry indicates the process of the positioning tag entering the positioning area of the positioning base station; for the judgment of a specific positioning base station, the presence indicates that the positioning tag is in the positioning area of the specific positioning base station. The field identifier indicates the state in which the positioning tag leaves the positioning area of the specific positioning base station, and the field identification indicates the state in which the positioning tag enters the positioning area of the specific positioning base station.
现有技术下,不管所述定位标签是否处于定位基站群的定位区域,该定位标签上的各项定位业务功能始终照常地持续工作,将导致持续耗电,无法有效地节省功耗。而且现有大部分的定位标签一般采用纽扣电池供电,该纽扣电池容量有限,如果不对定位标签使用功耗进行限制,纽扣电池电量使用周期短,继而需要充电或更换电池,成本非常高。In the prior art, regardless of whether the positioning tag is in the positioning area of the positioning base station group, various positioning service functions on the positioning tag continue to work as usual, which will result in continuous power consumption and cannot effectively save power consumption. Moreover, most of the existing positioning tags are generally powered by button batteries. The capacity of the button batteries is limited. If the power consumption of the positioning tags is not limited, the life cycle of the button batteries is short, and then the battery needs to be charged or replaced, which is very costly.
为了节省点位标签的功耗,使得该定位标签中的电源能够持续服务更长时间,本申请实施例提出一种定位方法,如图3所示,该方法包括如下部分:In order to save the power consumption of the point tag, so that the power supply in the positioning tag can continue to serve for a longer time, an embodiment of the present application proposes a positioning method, as shown in FIG. 3 , the method includes the following parts:
302:定位标签定期向所述定位基站群发送定位标签广播报文。302: The positioning tag periodically sends a positioning tag broadcast message to the positioning base station group.
具体实施方式中,定位标签通过采用特殊离场协议向所述定位基站群定期发送定位标签广播报文,例如,按照一定的周期,而且该发送频率可以低于现有的蓝牙广播报文协议,从而可以进一步降低定位标签的功耗。当然该发送频率也可以根据实际需求而调整。具体实施方式中,该特殊离场协议可以通过修改已有的蓝牙广播报文协议(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)得到,其特性和现有的蓝牙广播报文协议基本一致,所以也具有易于实施、安全性高、实时性好、效率高等优点,而且由于这种蓝牙广播报文协议在广播信道上双方进行交互,具有功耗低的特性。需要说明的是,通过修改已有的蓝牙广播报文协议获得的特殊离场协议主要用于定位标签的离场判断,定位标签和定位基站的其他数据通信仍然采用已有的蓝牙广播报文协议。可以理解的是,该特殊离场协议也可以采用其他协议,本发明并不做特别限定。以下分别以该特殊离场协议是通过修改现有的可扫描广播报文协议、可链接无向广播协议或不可链接广播协议而得到的为例说明。需要说明的是,这里所使用的离场判断包括上述三种场景下任一状态的定位判断(例如包括在场和进场的判断),而不仅仅只是离开定位基站群或定位基站的判断。In a specific implementation manner, the positioning tag periodically sends a positioning tag broadcast message to the positioning base station group by using a special departure protocol, for example, according to a certain period, and the sending frequency may be lower than the existing Bluetooth broadcast message protocol, Therefore, the power consumption of the positioning tag can be further reduced. Of course, the sending frequency can also be adjusted according to actual needs. In a specific implementation manner, the special departure protocol can be obtained by modifying an existing Bluetooth broadcast message protocol (such as an unlinkable broadcast protocol, a linkable undirected broadcast protocol, a linkable directed broadcast protocol, or a scannable broadcast protocol), which The characteristics are basically the same as the existing Bluetooth broadcast message protocol, so it also has the advantages of easy implementation, high security, good real-time performance, and high efficiency, and because this Bluetooth broadcast message protocol interacts on the broadcast channel, it has the advantages of low power consumption. It should be noted that the special departure protocol obtained by modifying the existing Bluetooth broadcast message protocol is mainly used for the departure judgment of the positioning tag, and other data communications between the positioning tag and the positioning base station still use the existing Bluetooth broadcast message protocol. . It can be understood that other protocols may also be adopted for the special departure protocol, which is not particularly limited in the present invention. The following descriptions are given by taking as an example that the special departure protocol is obtained by modifying the existing scannable broadcast message protocol, linkable undirected broadcast protocol or unlinkable broadcast protocol. It should be noted that the departure judgment used here includes the positioning judgment of any state in the above three scenarios (for example, including the judgment of presence and entry), not just the judgment of leaving the positioning base station group or the positioning base station.
方式一:通过修改可扫描广播报文协议得到特殊离场协议。具体参考图6,根据蓝牙标准的规定,现有的可扫描广播报文协议主要用于发送数据,应用场景主要是数据长度大于31字节且不大于62字节。现有的可扫描广播报文协议包括3个报文:SCAN_IND报文,SCAN_REQ报文以及SCAN_REP报文,其中SCAN_IND报文是由广播者(定位标签)向扫描者(定位基站)发送的,SCAN_REQ报文是由扫描者向广播者回应的报文,SCAN_REP报文是广播者收到扫描者的回应报文后向扫描者发送的扫描响应报文。Method 1: Obtain a special departure protocol by modifying the scannable broadcast message protocol. Referring specifically to FIG. 6 , according to the provisions of the Bluetooth standard, the existing scannable broadcast message protocol is mainly used for sending data, and the application scenario is mainly that the data length is greater than 31 bytes and not greater than 62 bytes. The existing scannable broadcast message protocol includes 3 messages: SCAN_IND message, SCAN_REQ message and SCAN_REP message, where the SCAN_IND message is sent by the broadcaster (positioning label) to the scanner (positioning base station), SCAN_REQ The message is the message that the scanner responds to the broadcaster, and the SCAN_REP message is the scan response message that the broadcaster sends to the scanner after receiving the response message from the scanner.
修改方式如下:The modification method is as follows:
(1)删除扫描响应报文SCAN_RSP;(1) Delete the scan response message SCAN_RSP;
(2)修改SCAN_IND报文中的字段配置:删除Data域,修改Flag域中的值的意义,Flag域占1字节,携带标记信息,该标记信息的值,例如可以配置为0x81,表示该报文为特殊离场协议报文,从而定位基站根据该值判断报文是否是离场协议报文;(2) Modify the field configuration in the SCAN_IND message: delete the Data field, and modify the meaning of the value in the Flag field. The Flag field occupies 1 byte and carries flag information. The value of the flag information, for example, can be configured as 0x81, indicating that the The message is a special departure protocol message, so the positioning base station determines whether the message is a departure protocol message according to this value;
(3)SCAN_REQ报文中的ScanA域表示定位基站的蓝牙地址(和现有的可扫描广播报文协议一致),该值可以有一定的变化,但其应具有规律性(例如,相同值、同步长递增、符合特定算法公式等特性),以便定位标签根据该值判断SCAN_REQ报文是否是定位区域中定位基站所发出的报文,从而防止非基站蓝牙回应SCAN_REQ报文的影响。(3) The ScanA field in the SCAN_REQ message represents the Bluetooth address of the positioning base station (consistent with the existing scannable broadcast message protocol). This value may vary, but it should be regular (for example, the same value, Synchronization length increases, conforms to specific algorithm formula, etc.), so that the positioning tag can judge whether the SCAN_REQ message is a message sent by the positioning base station in the positioning area according to this value, so as to prevent the non-base station Bluetooth from responding to the influence of the SCAN_REQ message.
通过修改现有的可扫描广播报文协议后所形成的特殊离场协议包括SCAN_IND报文,SCAN_REQ报文。定位标签利用该SCAN_IND报文定期向所述定位基站群发送定位标签广播报文。The special departure protocol formed by modifying the existing scannable broadcast message protocol includes SCAN_IND message and SCAN_REQ message. The positioning tag periodically sends a positioning tag broadcast message to the positioning base station group by using the SCAN_IND message.
现有的可扫描广播协议是在广播信道上双方进行交互,具有功耗低特性,而且修改后的特殊离场协议同样具有该功耗低的特性,而且不要求发送SCAN_RSP报文,进一步降低了蓝牙发送功耗,具有更进一步的功耗低的优点。The existing scannable broadcast protocol interacts on the broadcast channel and has the characteristics of low power consumption, and the modified special departure protocol also has the characteristics of low power consumption, and does not require the sending of SCAN_RSP messages, which further reduces the power consumption. Bluetooth transmits power consumption, which has the further advantage of low power consumption.
方式二:通过修改现有的可链接无向广播协议得到特殊离场协议。具体参考图7,根据蓝牙标准的规定,现有的可链接无向广播协议包括ADV_IND报文,该ADV_IND由广播者(定位标签)向扫描者(定位基站)发送的。Method 2: Obtain a special exit protocol by modifying the existing linkable undirected broadcast protocol. Referring specifically to FIG. 7 , according to the provisions of the Bluetooth standard, the existing linkable undirected broadcast protocol includes an ADV_IND message, where the ADV_IND is sent by the broadcaster (location tag) to the scanner (location base station).
修改方式如下:The modification method is as follows:
(1)增加扫描者向广播者发送的ADV_IND报文,为了区别起见,将广播者(定位标签)向扫描者(定位基站)发送的ADV_IND报文标识为ADV_IND(1)报文,将扫描者(定位基站)向广播者(定位标签)发送的ADV_IND报文标识为ADV_IND(2)报文。(1) Increase the ADV_IND message sent by the scanner to the broadcaster. For the sake of distinction, the ADV_IND message sent by the broadcaster (positioning tag) to the scanner (positioning base station) is identified as the ADV_IND(1) message, and the scanner The ADV_IND message sent by the (positioning base station) to the broadcaster (positioning tag) is identified as an ADV_IND(2) message.
(2)修改ADV_IND(1)报文中的字段配置:删除Data域,修改Flag域中的值的意义,Flag域占1字节,携带标记信息,该标记信息的值,例如可以配置为0x81,表示该报文为特殊离场协议报文,从而定位基站根据该值判断报文是否是离场协议报文。(2) Modify the field configuration in the ADV_IND(1) message: delete the Data field and modify the meaning of the value in the Flag field. The Flag field occupies 1 byte and carries flag information. The value of the flag information can be configured as 0x81, for example. , indicating that the packet is a special departure protocol packet, so that the positioning base station determines whether the packet is a departure protocol packet according to this value.
(3)修改ADV_IND(2)报文中的字段配置:将原ADV_IND报文中的ADvA(6byte)域相应地表示为ScanA(6byte),其表示定位基站蓝牙地址(和现有的可扫描广播报文协议一致),该值可以有一定的变化,但其应具有规律性(例如,相同值、同步长递增、符合特定算法公式等特性),以便定位标签根据该值判断SCAN_REQ报文是否是定位区域中定位基站所发出的报文,从而防止非基站蓝牙回应SCAN_REQ报文的影响。ADV_IND(2)中的Flag域表示为离场回应标识,值为ADV_IND(1)域中的Flag值加1,以便于收到该回应报文的广播者知道该报文是回应其发送的ADV_IND(1)报文。(3) Modify the field configuration in the ADV_IND(2) message: the ADvA(6byte) field in the original ADV_IND message is correspondingly represented as ScanA(6byte), which represents the Bluetooth address of the positioning base station (and the existing scannable broadcast). The message protocol is consistent), this value can have a certain change, but it should have regularity (for example, the same value, the synchronization length increases, conform to the characteristics of a specific algorithm formula, etc.), so that the positioning tag can judge whether the SCAN_REQ message is based on this value. The message sent by the base station is located in the positioning area, so as to prevent the influence of the non-base station Bluetooth response to the SCAN_REQ message. The Flag field in ADV_IND(2) represents the departure response flag, and the value is the Flag value in the ADV_IND(1) field plus 1, so that the broadcaster who receives the response message knows that the message is in response to the ADV_IND sent by it. (1) Message.
通过修改现有的可链接无向广播协议后所形成的特殊离场协议包括ADV_IND(1)报文和ADV_IND(2)报文。定位标签利用该ADV_IND(1)报文定期向所述定位基站群发送定位标签广播报文。The special departure protocol formed by modifying the existing linkable undirected broadcast protocol includes ADV_IND(1) message and ADV_IND(2) message. The positioning tag periodically sends a positioning tag broadcast message to the positioning base station group by using the ADV_IND(1) message.
方式三:通过修改现有的不可链接广播协议得到特殊离场协议。参考图8,根据蓝牙标准的规定,原不可链接广播协议包括ADV_NOCONN_IND报文,该ADV_NOCONN_IND由广播者(定位标签)向扫描者(定位基站)发送的。Method 3: Obtain a special exit protocol by modifying the existing unlinkable broadcast protocol. Referring to FIG. 8 , according to the provisions of the Bluetooth standard, the original unlinkable broadcast protocol includes an ADV_NOCONN_IND message, the ADV_NOCONN_IND is sent by the broadcaster (location tag) to the scanner (location base station).
修改方式如下:The modification method is as follows:
(1)增加扫描者向广播者发送的ADV_NOCONN_IND报文,为了区别起见,将广播者(定位标签)向扫描者(定位基站)发送的ADV_NOCONN_IND报文标识为ADV_NOCONN_IND(1)报文,将扫描者(定位基站)向广播者(定位标签)发送的ADV_NOCONN_IND报文标识为ADV_NOCONN_IND(2)报文。(1) Add the ADV_NOCONN_IND message sent by the scanner to the broadcaster. For the sake of distinction, the ADV_NOCONN_IND message sent by the broadcaster (positioning tag) to the scanner (positioning base station) is identified as the ADV_NOCONN_IND(1) message, and the scanner The ADV_NOCONN_IND message sent by the (positioning base station) to the broadcaster (positioning tag) is identified as an ADV_NOCONN_IND(2) message.
(2)修改ADV_NOCONN_IND(1)报文中的字段配置:删除Data域,修改Flag域中的值的意义,Flag域占1字节,携带标记信息,该标记信息的值,例如可以配置为0x81,表示该报文为特殊离场协议报文,从而定位基站根据该值判断报文是否是离场协议报文。(2) Modify the field configuration in the ADV_NOCONN_IND(1) message: delete the Data field and modify the meaning of the value in the Flag field. The Flag field occupies 1 byte and carries flag information. The value of the flag information can be configured as 0x81, for example. , indicating that the packet is a special departure protocol packet, so that the positioning base station determines whether the packet is a departure protocol packet according to this value.
(3)修改ADV_NOCONN_IND(2)报文中的字段配置:将原ADV_NOCONN_IND报文中的ADvA(6byte)域相应地表示为ScanA(6byte),其表示定位基站蓝牙地址(和现有的可扫描广播报文协议一致),该值可以有一定的变化,但其应具有规律性(例如,相同值、同步长递增、符合特定算法公式等特性),以便定位标签根据该值判断SCAN_REQ报文是否是定位区域中定位基站所发出的报文,从而防止非基站蓝牙回应SCAN_REQ报文的影响。ADV_NOCONN_IND(2)中的Flag域表示为离场回应标识,值为ADV_NOCONN_IND(1)域中的Flag值加1,以便于收到该回应报文的广播者知道该报文是回应其发送的ADV_NOCONN_IND(1)报文。(3) Modify the field configuration in the ADV_NOCONN_IND(2) message: the ADvA(6byte) field in the original ADV_NOCONN_IND message is correspondingly represented as ScanA(6byte), which represents the Bluetooth address of the positioning base station (and the existing scannable broadcast). The message protocol is consistent), this value can have a certain change, but it should have regularity (for example, the same value, the synchronization length increases, conform to the characteristics of a specific algorithm formula, etc.), so that the positioning tag can judge whether the SCAN_REQ message is based on this value. The message sent by the base station is located in the positioning area, so as to prevent the influence of the non-base station Bluetooth response to the SCAN_REQ message. The Flag field in ADV_NOCONN_IND(2) represents the departure response flag, and the value is the Flag value in the ADV_NOCONN_IND(1) field plus 1, so that the broadcaster who receives the response message knows that the message is in response to the ADV_NOCONN_IND sent by it. (1) Message.
通过修改现有的可链接无向广播协议后所形成的特殊离场协议包括ADV_NOCONN_IND(1)报文和ADV_NOCONN_IND(2)报文。定位标签利用该ADV_NOCONN_IND(1)报文定期向所述定位基站群发送定位标签广播报文。The special departure protocol formed by modifying the existing linkable undirected broadcast protocol includes the ADV_NOCONN_IND(1) message and the ADV_NOCONN_IND(2) message. The positioning label periodically sends a positioning label broadcast message to the positioning base station group by using the ADV_NOCONN_IND(1) message.
需要说明的是,在另外的实施方式中,该定位标签也可以用采用现有的蓝牙广播报文协议发送定位标签广播报文和接收返回的定位标签广播回应报文,并根据定位标签广播回应报文中携带的定位基站的蓝牙地址判断所述定位标签是否离开所述定位基站群的定位区域。该种方式下的具体判断步骤可以参考本实施方式以及图5的实施方式中的描述。相对现有技术而言,这种实施方式中的定位标签可以进行离场判断,并在判断所述定位标签是否离开定位基站群的定位区域后,关闭该定位标签上除了离场判断之外的其他定位业务功能,从而可以节省点位标签的功耗,使得该定位标签中的电源能够持续服务更长时间。It should be noted that, in another embodiment, the positioning tag can also use the existing Bluetooth broadcast message protocol to send the positioning tag broadcast message and receive the returned positioning tag broadcast response message, and broadcast the response according to the positioning tag. The Bluetooth address of the positioning base station carried in the message determines whether the positioning tag leaves the positioning area of the positioning base station group. For the specific determination steps in this manner, reference may be made to the descriptions in this embodiment and the embodiment in FIG. 5 . Compared with the prior art, the positioning tag in this embodiment can perform departure judgment, and after judging whether the positioning tag leaves the positioning area of the positioning base station group, close the positioning tags except for the departure judgment. Other positioning business functions, so that the power consumption of the point tag can be saved, so that the power supply in the positioning tag can continue to serve for a longer time.
定位标签根据特殊离场协议中的特殊离场协议报文(例如上述SCAN_IND报文DV_IND(1)报文或ADV_NOCONN_IND(1))进行定位判断,相对于定位标签根据已有的蓝牙广播报文协议进行判断而言,具有更加灵活性且相比而言更能节省功耗的效果。因为,已有的蓝牙广播报文协议报文的发送阶段具有一定的限制(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加定位基站的功耗,不如采用该特殊离场协议报文进行离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以更加节省定位基站的功耗。The positioning tag performs positioning judgment according to the special departure protocol message in the special departure protocol (for example, the above SCAN_IND message DV_IND(1) message or ADV_NOCONN_IND(1)), relative to the positioning tag according to the existing Bluetooth broadcast message protocol In terms of judgment, it has the effect of being more flexible and saving power consumption in comparison. Because the transmission phase of the existing Bluetooth broadcast message protocol message has certain restrictions (for example, it needs to be bound with the sending positioning data) and the transmission and reception frequency is high, which increases the power consumption of the positioning base station. On-site protocol messages are more flexible for departure judgment (not limited to being sent together with positioning data), and due to the use of special off-site protocol messages, the sending frequency is more flexible and is usually lower than the frequency of data sent by existing protocols, so it can be more Save the power consumption of the positioning base station.
304:所述定位标签通过所述定位基站群中至少一个定位基站返回的定位标签广播回应报文确定所述定位标签是否离开所述定位基站群的定位区域。304: The positioning tag determines whether the positioning tag leaves the positioning area of the positioning base station group through a positioning tag broadcast response message returned by at least one positioning base station in the positioning base station group.
在一个具体实施方式中,所述定位标签在与发送所述定位标签广播报文相同的信道上监听所述定位基站群中的定位基站返回的定位标签广播回应报文;根据是否收到所述的定位基站群中的至少一个定位基站返回的定位标签广播回应报文以及定位标签广播回应报文中携带的定位基站蓝牙地址信息确定所述定位标签是否已经离开所述定位基站群的定位区域。具体判断离场或在场的过程参考如下图7中定位标签侧的定位判断,此处暂不详述。In a specific embodiment, the positioning tag listens to the positioning tag broadcast response message returned by the positioning base station in the positioning base station group on the same channel as the positioning tag broadcast message is sent; The positioning tag broadcast response message returned by at least one positioning base station in the positioning base station group and the positioning base station Bluetooth address information carried in the positioning tag broadcast response message determine whether the positioning tag has left the positioning area of the positioning base station group. For the specific process of judging departure or presence, refer to the positioning judgment on the positioning label side in Figure 7 below, which will not be described in detail here.
306:在所述定位标签离开所述定位基站群的定位区域的情况下,关闭所述定位标签上的除离场判断功能之外的定位业务功能。306: In the case that the positioning tag leaves the positioning area of the positioning base station group, disable the positioning service functions on the positioning tag except for the departure judgment function.
定位标签离场后,除离场判断功能(包括定期发送定位标签广播报文和接收定位标签广播回应报文,计数,字段判断等)之外的所有定位业务功能都关闭,数据芯片(包括地磁、陀螺仪芯片但不限于此类芯片)进入休眠状态。定位业务功能包括诸如停止发送定位数据(例如发送蓝牙不可链接广播报文)、停止定位数据采集、以及定位数据计算等定位业务功能。After the positioning tag leaves the field, all positioning service functions except the departure judgment function (including regularly sending positioning tag broadcast messages and receiving positioning tag broadcast response messages, counting, field judgment, etc.) , gyroscope chips but not limited to such chips) enter the sleep state. The positioning service functions include positioning service functions such as stopping sending positioning data (for example, sending Bluetooth unlinkable broadcast messages), stopping positioning data collection, and positioning data calculation.
参考图4所示,为本申请实施例提供的另一种定位方法,该方法包括如下部分:Referring to FIG. 4, another positioning method provided by this embodiment of the present application includes the following parts:
402:接收定位标签定期发送的第一定位标签广播报文,所述的第一定位标签广播报文携带标记信息以及所述定位标签的地址信息,所述标记信息指示所述第一定位标签广播报文为特殊离场协议报文。402: Receive a first location label broadcast message periodically sent by a location label, the first location label broadcast message carries label information and address information of the location label, and the label information indicates that the first location label broadcasts The message is a special departure protocol message.
具体参考上述图3实施方式中的302部分,该第一定位标签广播报文采用特殊离场协议报文,如上所述,该特殊离场协议是通过修改可扫描广播报文协议、可链接无向广播协议或不可链接广播协议而得到。Specifically referring to
在采用上述方式一中的扫描广播报文协议的情况下,所述定位标签的地址信息可以携带在SCAN_IND报文中的AdvA域,标记信息可以携带在SCAN_IND报文中的Flag域,指示所述第一定位标签广播报文为特殊离场协议报文。In the case of using the scanning broadcast message protocol in the first method, the address information of the positioning label can be carried in the AdvA field in the SCAN_IND message, and the tag information can be carried in the Flag field in the SCAN_IND message, indicating that the The first positioning label broadcast message is a special departure protocol message.
在采用上述方式二中的可链接无向广播协议的情况下,所述定位标签的地址信息可以携带在ADV_IND(1)报文中的AdvA域,标记信息可以携带在ADV_IND(1)报文中的Flag域,指示所述第一定位标签广播报文为特殊离场协议报文。In the case of using the linkable undirected broadcast protocol in the above-mentioned
在采用上述方式三中的不可链接广播协议的情况下,所述定位标签的地址信息可以携带在ADV_NOCONN_IND(1)报文中的AdvA域,标记信息可以携带在ADV_NOCONN_IND(1)报文中的Flag域,指示所述第一定位标签广播报文为特殊离场协议报文。In the case of using the unlinkable broadcast protocol in the third mode, the address information of the positioning label can be carried in the AdvA field in the ADV_NOCONN_IND(1) message, and the label information can be carried in the Flag in the ADV_NOCONN_IND(1) message. field, indicating that the first positioning label broadcast message is a special departure protocol message.
404:所述定位基站记录所述定位标签的地址信息。404: The positioning base station records the address information of the positioning tag.
定位基站收到所述第一定位标签广播报文后,获取第一定位标签广播报文中的所述定位标签的地址信息,并将所述的定位标签的地址信息记录在该定位基站的存储设备中,具体可以包括各类存储设备,例如闪存,以及其他类型存储器,例如高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatilememory)等。After receiving the first positioning label broadcast message, the positioning base station obtains the address information of the positioning label in the first positioning label broadcast message, and records the address information of the positioning label in the storage of the positioning base station. The device may specifically include various storage devices, such as flash memory, and other types of memory, such as high-speed random access memory (RAM: Random Access Memory), and may also include non-volatile memory (non-volatile memory).
406:所述定位基站根据所述标记信息确定所述定位标签处于所述基站的定位区域,并向所述定位标签返回定位标签广播回应报文。406: The positioning base station determines that the positioning tag is located in the positioning area of the base station according to the tag information, and returns a positioning tag broadcast response message to the positioning tag.
定位基站收到所述第一定位标签广播报文后,获取第一定位标签广播报文中的标记信息,并确定所述第一定位标签广播报文为特殊离场协议报文,进而可以确定所述定位标签在所述定位基站的定位区域,并根据特殊离场协议向所述定位标签发送定位标签广播回应报文,对应以上描述的第一定位标签广播报文的报文形式,该定位标签广播回应报文相应的可以为SCAN_REQ报文,ADV_IND(2)报文或ADV_NOCONN_IND(2)。其中,采用该SCAN_REQ报文DV_IND(2)报文或ADV_NOCONN_IND(2)中ScanA域携带该定位基站的蓝牙地址向所述定位标签发送,定位标签根据该蓝牙地址进行离场判断。After receiving the first positioning label broadcast message, the positioning base station obtains the label information in the first positioning label broadcast message, and determines that the first positioning label broadcast message is a special departure protocol message, and then can determine The positioning tag is in the positioning area of the positioning base station, and sends a positioning tag broadcast response message to the positioning tag according to the special departure protocol, which corresponds to the message form of the first positioning tag broadcast message described above. The corresponding tag broadcast response message can be SCAN_REQ message, ADV_IND(2) message or ADV_NOCONN_IND(2). Wherein, the SCAN_REQ message DV_IND(2) message or the ScanA field of the ADV_NOCONN_IND(2) is used to carry the Bluetooth address of the positioning base station to send to the positioning tag, and the positioning tag performs departure judgment according to the Bluetooth address.
在另外的具体实施方式中,所述定位基站可以进一步包括如下部分:In another specific embodiment, the positioning base station may further include the following parts:
408:判断在设定时间内所述定位基站没有收到携带有所述定位标签的地址信息的第二定位标签广播报文;若判断结果为是,则转410;否则,转412。408 : Determine that the positioning base station has not received the second positioning tag broadcast message carrying the address information of the positioning tag within the set time; if the determination result is yes, go to 410 ; otherwise, go to 412 .
410:若在设定时间内所述定位基站没有收到携带有所述定位标签的地址信息的第二定位标签广播报文,则确定所述定位标签离开所述定位基站的定位区域。410: If the positioning base station does not receive the second positioning tag broadcast message carrying the address information of the positioning tag within the set time, determine that the positioning tag leaves the positioning area of the positioning base station.
具体的,定位基站监控有没有收到携带与前述记录的第一定位标签广播报文中定位标签的地址信息相同的第二定位标签广播报文,如果在设定的时间内没有收到该第二定位标签广播报文,则确定所述定位标签已经离开所述定位基站的定位区域,该定位基站根据应用程序的配置确定是否做下一步处理,例如,将该判断结果发给如图1中的定位服务器,由该定位服务器根据相关的应用程序进行后续处理,因为定位服务器的定位业务处理与本发明不是很相关,此处不一一详述。可以理解的是,此处的第二定位标签广播报文的报文形式与上述第一定位标签广播报文一样,可以参考以上内容,此处不再赘述。Specifically, the positioning base station monitors whether it has received a second positioning tag broadcast message that carries the same address information of the positioning tag in the first positioning tag broadcast message recorded above, and if the second positioning tag broadcast message is not received within the set time Two positioning tag broadcast messages, it is determined that the positioning tag has left the positioning area of the positioning base station, and the positioning base station determines whether to do the next step according to the configuration of the application program. The positioning server performs subsequent processing according to the relevant application program, because the positioning service processing of the positioning server is not very related to the present invention, and will not be described in detail here. It can be understood that the message format of the second positioning label broadcast message here is the same as that of the above-mentioned first positioning label broadcast message, the above content can be referred to, and details are not repeated here.
412:若在设定时间内所述定位基站收到携带有所述定位标签的地址信息的第二定位标签广播报文,则进一步判断所述第二定位标签广播报文中的标记信息是否等于设定值,若判断结果为是则转414,;否则,转416。其中所述第二定位标签广播报文中的标记信息用于指示所述第二定位标签广播报文是否为特殊离场协议报文。412: If the positioning base station receives the second positioning label broadcast message carrying the address information of the positioning label within the set time, further judge whether the label information in the second positioning label broadcast message is equal to Set value, if the judgment result is yes, go to 414; otherwise, go to 416. The flag information in the second positioning label broadcast message is used to indicate whether the second positioning label broadcast message is a special departure protocol message.
具体的,定位基站收到第二定位标签广播报文后,获取该第二定位标签广播报文携带的地址信息,如果与前述记录的第一定位标签广播报文的定位标签的地址信息相同,则进一步判断所述第二定位标签广播报文中的标记信息是否等于设定值;如果判断结果为是,则转414;否则,转416。标记信息是否等于设定值的具体判断可以参考下述图7中定位系统中定位基站侧的判断。此处暂不详述。Specifically, after receiving the second positioning label broadcast message, the positioning base station obtains the address information carried in the second positioning label broadcast message, if it is the same as the previously recorded address information of the positioning label of the first positioning label broadcast message, Then, it is further judged whether the marking information in the second positioning tag broadcast message is equal to the set value; if the judgment result is yes, go to 414 ; otherwise, go to 416 . For the specific judgment of whether the flag information is equal to the set value, refer to the judgment on the side of the positioning base station in the positioning system shown in FIG. 7 below. Not detailed here.
414:确定所述定位标签处于所述定位基站的定位区域,并向所述定位标签返回定位标签广播回应报文。向所述定位标签返回定位标签广播回应报文的方式参考上述406部分,即可以采用SCAN_REQ报文DV_IND(2)报文或ADV_NOCONN_IND(2),并在其中的ScanA域携带该定位基站的蓝牙地址向所述定位标签发送,定位标签根据该蓝牙地址进行离场判断。414: Determine that the positioning tag is in the positioning area of the positioning base station, and return a positioning tag broadcast response message to the positioning tag. For the method of returning the positioning tag broadcast response message to the positioning tag, refer to the
416:如果所述第二定位标签广播报文中的标记信息不等于设定值,则将所述计数值加1,并在所述计数值达到所述设定阈值时,确定所述定位标签离开所述定位基站的定位区域。416: If the tag information in the second positioning tag broadcast message is not equal to the set value, add 1 to the count value, and when the count value reaches the set threshold, determine the positioning tag leave the positioning area of the positioning base station.
具体的判断可以参考下述图5中定位系统中描述的定位判断,此处暂不详述。For specific judgment, reference may be made to the positioning judgment described in the positioning system in FIG. 5 below, which will not be described in detail here.
相对于现有技术中,定位基站根据已有的协议报文进行判断,定位基站根据特殊离场协议中的特殊离场协议报文(如上述SCAN_IND报文DV_IND(1)报文或ADV_NOCONN_IND(1)进行定位判断),可以使得定位基站的离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以节省定位基站的功耗。因为现有的现有的蓝牙广播协议报文(如不可链接广播协议、可链接无向广播协议、可链接定向广播协议、或可扫描广播协议)的发送阶段具有一定的限制性(例如都需要和发送定位数据绑定在一起)以及发送接收频率高进而增加了定位基站进行定位判断的功耗,从而不如采用该特殊离场协议报文进行离场判断更加灵活(不限于和定位数据一起发送),而且由于采用了特殊离场协议报文,发送频率更加灵活且通常低于已有协议发送数据的频率,从而可以节省定位基站的功耗。Compared with the prior art, the positioning base station judges according to the existing protocol message, and the positioning base station judges according to the special departure protocol message in the special departure protocol (such as the above SCAN_IND message DV_IND(1) message or ADV_NOCONN_IND(1) message. ) for positioning judgment), which can make the departure judgment of the positioning base station more flexible (not limited to sending with positioning data), and because of the use of special departure protocol packets, the sending frequency is more flexible and usually lower than the existing protocol. frequency, thereby saving the power consumption of the positioning base station. Because the existing existing Bluetooth broadcast protocol messages (such as unlinkable broadcast protocol, linkable undirected broadcast protocol, linkable directional broadcast protocol, or scannable broadcast protocol) have certain limitations (for example, all require It is bound together with the sending and positioning data) and the high sending and receiving frequency increases the power consumption of the positioning base station for positioning judgment, so it is not as flexible as using this special departure protocol message for departure judgment (not limited to sending with positioning data). ), and because the special departure protocol message is used, the sending frequency is more flexible and is usually lower than the frequency of sending data in the existing protocol, so that the power consumption of the positioning base station can be saved.
参考图5,为本申请实施例提供的由定位标签500和定位基站600组成的定位系统如何判断定位标签是否离场的流程示意图,其包括:定位标签如何根据定位基站返回的定位标签广播回应报文确定所述定位标签是否离开所述定位基站群的定位区域,以及所述定位基站如何根据定位标签发送的定位标签广播报文确定定位标签对否离开所述基站的定位区域。具体说明如下:Referring to FIG. 5 , a schematic flowchart of how a positioning system composed of a positioning tag 500 and a
该定位系统系统包括定位标签500和定位基站600,需要说明的是该定位基站800是以上描述的定位基站群中的任一定位基站。该定位标签500定时器502,发射器506、接收器508以及存储器和处理器(图中未示出,具体可以参考图11,图,5中的508-518各步骤或功能模块或者子程序可以存储在存储器中,并由处理器执行所述功能模块或子程序完成定位系统的定位判断功能)。定位基站600包括接收器602、发射器608以及存储器和处理器(图中未示出,具体可以参考图11,图5中的604、606以及610-618各步骤或功能模块或者子程序可以存储在存储器中,并由处理器执行所述功能模块或子程序完成定位系统的定位判断功能)The positioning system system includes a positioning tag 500 and a
如上图7所示,该定位系统进行定位标签离场判断包括两部分,定位标签侧和定位基站侧,下面结合图2所示的三种场景,即在场(对定位标签侧的判断而言,表示该定位标签处于所述定位基站群的定位区域的状态,对定位基站侧的判断而言,表示该定位标签处于所述定位基站的定位区域的状态)、离场(对定位标签侧的判断而言,表示该定位标签离开所述定位基站群的定位区域的状态,对定位基站侧的判断而言,表示该定位标签离开所述定位基站的定位区域的状态)和进场(对定位标签侧的判断而言,表示该定位标签进入所述定位基站群的定位区域的状态,对定位基站侧的判断而言,表示该定位标签进入所述定位基站的定位区域的状态)对该定位定位标签和定位基站的定位判断详细说明如下:As shown in Figure 7 above, the positioning system determines the departure of the positioning tag includes two parts, the positioning tag side and the positioning base station side. The following three scenarios are combined with the three scenarios shown in Figure 2, that is, the presence (for the judgment of the positioning tag side, Indicates that the positioning tag is in the positioning area of the positioning base station group. For the judgment of the positioning base station, it indicates that the positioning tag is in the positioning area of the positioning base station.), Departure (judgment on the positioning tag side In terms of the positioning tag, it indicates the state that the positioning tag leaves the positioning area of the positioning base station group. For the judgment of the positioning base station side, it indicates the state that the positioning tag leaves the positioning area of the positioning base station) and the approach (for the positioning tag). For the judgment of the positioning base station side, it means that the positioning tag enters the positioning area of the positioning base station group, and for the judgment of the positioning base station side, it means that the positioning tag enters the positioning area of the positioning base station. The positioning judgment of tags and positioning base stations is described in detail as follows:
1、定位标签侧1. Position the label side
定位标签上电或复位时,默认处于在场状态。When the positioning tag is powered on or reset, it is in the presence state by default.
(1)定位标签离场判断(1) Judgment of the departure of the positioning tag
定位标签在场后,发射器506根据定时器502的定时(例如,每隔60s或其它大于0的值,或者其他设定时间,具体可以依据应用场景设定)向定位服基站600发送定位标签广播报文(例如,上文中提到的SCAN_IND报文,以下以此为例进行说明),定位标签在相同信道上监听定位标签广播回应报文(对应于上例如中的SCAN_REQ报文,以下以此为例进行说明)。After the positioning tag is present, the
510:定位标签确定在所述信道上是否收到定位基站600的发射器608发送的定位标签广播回应报文(例如,SCAN_REQ报文);如果是,则转512;如果否,则转514。在另外一种实施方式中,可以在设定时间内在所述信道上没有收到定位基站600的发射器608发送的定位标签广播回应报文的情况下确定所述定位标签离场,即离开所述定位基站群的定位区域。510: The positioning tag determines whether a positioning tag broadcast response message (eg, a SCAN_REQ message) sent by the
512:定位标签判断从所述定位基站发送的SCAN_REQ报文中的ScanA域的值(例如,该值具体为定位基站的蓝牙地址)是否等于设定值(该设定值表示有规律性的值,如相同值、同步长递增、符合特定算法公式);如果是,则转520,确定该定位标签依然在场,即在所述定位基站群的定位区域,且清除计数(例如,计数值为0);如果否,则转514。512: The positioning tag determines whether the value of the ScanA field in the SCAN_REQ message sent from the positioning base station (for example, the value is specifically the Bluetooth address of the positioning base station) is equal to the set value (the set value represents a regular value) , such as the same value, the synchronization length is increased, and the specific algorithm formula is met); if so, go to 520 to determine that the positioning tag is still present, that is, in the positioning area of the positioning base station group, and clear the count (for example, the count value is 0 ); if not, go to 514.
上述有规律性的值具体可以包括下述情况之一:The above-mentioned regularity value may specifically include one of the following situations:
相同值:定位区域内所有定位基站或定位基站群内所有定位基站的蓝牙地址值相等;The same value: the Bluetooth address values of all positioning base stations in the positioning area or all positioning base stations in the positioning base station group are equal;
同步长递增:定位区域内所有定位基站或定位基站群内所有定位基站的蓝牙地址按照指定步长递增;The synchronization length is incremented: the Bluetooth addresses of all positioning base stations in the positioning area or all positioning base stations in the positioning base station group are incremented according to the specified step size;
符合特定算法公式:定位区域内所有定位基站或定位基站群内所有定位基站的蓝牙地址是根据该算法公式计算得到;Comply with a specific algorithm formula: The Bluetooth addresses of all positioning base stations in the positioning area or all positioning base stations in the positioning base station group are calculated according to the algorithm formula;
其他:定位区域内所有定位基站或定位基站群内所有定位基站的蓝牙地址是按照其他规律性方式计算得到蓝牙地址。Others: The Bluetooth addresses of all positioning base stations in the positioning area or all positioning base stations in the positioning base station group are calculated according to other regular methods.
514:如果所述定位标签确定在设定时间内在所述信道上未收到SCAN_REQ报文,或所述SCAN_REQ报文中的ScanA域的值不等于设定值,则将计数值加1,转516。514: If the positioning tag determines that the SCAN_REQ message has not been received on the channel within the set time, or the value of the ScanA field in the SCAN_REQ message is not equal to the set value, add 1 to the count value, and turn 516.
516:当确定计数超过限定值时(例如,3或其它大于0的值,依据应用场景设定),则判断所述定位标签已离场,即离开所述定位基站群的定位区域,并维持计数值不变。516: When it is determined that the count exceeds a limit value (for example, 3 or other values greater than 0, set according to the application scenario), determine that the positioning tag has left the field, that is, leave the positioning area of the positioning base station group, and maintain The count value does not change.
定位标签离场后,除离场判断功能(包括定期发送SCAN_IND报文,接收SCAN_REQ报文,计数,字段判断)之外的所有定位业务功能都关闭,数据芯片(包括地磁、陀螺仪芯片但不限于此类芯片)进入休眠状态。定位业务功能包括诸如停止发送定位数据(例如发送蓝牙不可链接广播报文)、停止定位数据采集、以及定位数据计算等定位业务功能。After the positioning tag leaves the field, all positioning service functions except the departure judgment function (including sending SCAN_IND messages regularly, receiving SCAN_REQ messages, counting, and field judgment) are closed, and data chips (including geomagnetic and gyroscope chips but not limited to such chips) into the sleep state. The positioning service functions include positioning service functions such as stopping sending positioning data (for example, sending Bluetooth unlinkable broadcast messages), stopping positioning data collection, and positioning data calculation.
如果定位标签自身不进行上述离场判断,那么上述定位业务功能,如发送定位数据功能、定位数据采集和计算功能等功能不管是在离场还是在场,都会保持运行状态,从而导致定位标签保持高功耗状态,缩短电池使用周期。If the positioning tag itself does not make the above-mentioned departure judgment, the above-mentioned positioning service functions, such as the function of sending positioning data, the function of positioning data collection and the calculation function, will keep running regardless of whether it is on the field or in the field, thus causing the positioning tag to remain high. Power states to shorten the battery life cycle.
(2)定位标签进场判断(2) Positioning label entry judgment
定位标签离场后,定时器依然定期发送SCAN_IND报文,并在相同信道上监听SCAN_REQ报文。如果信道上收到SCAN_REQ报文且ScanA域等于设定值,则判断自身已进场,并清除计数值;否则自身依然离场,且维持计数值不变。具体详细判断过程参考上述离场判断。此处不再赘述。After the positioning tag leaves the field, the timer still regularly sends SCAN_IND messages and listens for SCAN_REQ messages on the same channel. If the SCAN_REQ message is received on the channel and the ScanA field is equal to the set value, it is judged that it has entered the field and the count value is cleared; otherwise, it still leaves the field and the count value remains unchanged. For the detailed judgment process, please refer to the above-mentioned departure judgment. It will not be repeated here.
定位标签进场后,开启所有定位业务功能,包括以上所述的发送定位数据功能、定位数据采集和计算功能等功能。After the positioning tag enters the field, enable all positioning business functions, including the above-mentioned functions of sending positioning data, collecting and calculating positioning data, and so on.
2、定位基站侧2. Locate the base station side
需要说明的是,如上所说,该定位基站为所述定位基站群中任一定位基站。It should be noted that, as mentioned above, the positioning base station is any positioning base station in the positioning base station group.
604:定位基站判断在设定的时间内所述定位基站的接收器602中有没有接收到定位标签发送的定位标签广播报文后(此处以SCAN_IND报文为例说明);如果判断结果为是,则转610;如果为否,则转612,或者如果为否,则直接确定该定位标签已经离开所述定位标签的定位区域。604: The positioning base station determines whether the receiver 602 of the positioning base station has received the positioning tag broadcast message sent by the positioning tag within the set time (here, the SCAN_IND message is used as an example); if the judgment result is yes , go to 610 ; if no, go to 612 , or if no, directly determine that the positioning tag has left the positioning area of the positioning tag.
需要说明的是,这里以特定的定位标签为例说明,该特定的定位标签可以是该定位基站之前已经收到过该定位标签的定位标签广播报文,并记录该下定位标签,例如,通过记录定位标签广播报文中的定位标签的地址信息,利用该地址信息关联该定位标签。It should be noted that a specific positioning label is used as an example to illustrate. The specific positioning label may be a positioning label broadcast message that the positioning base station has received the positioning label before, and records the lower positioning label, for example, by The address information of the location label in the location label broadcast message is recorded, and the location label is associated with the address information.
610:定位基站的接收器602收到定位标签的定位标签广播报文后,向所述对归纳为标签返回定位标签广播回应报文,并进一步判断定位标签广播报文中的标记信息是否为设定值;如果判断结果为是,则转618,确定定位标签在场,即在所述定位基站的定位区域;如果判断结果为否,则转612将计数值加1。610: After receiving the location label broadcast message of the location label, the receiver 602 of the location base station returns a location label broadcast response message to the pair summarized into the label, and further judges whether the label information in the location label broadcast message is set or not. If the judgment result is yes, go to 618 to determine that the positioning tag is present, that is, in the positioning area of the positioning base station; if the judgment result is no, go to 612 to add 1 to the count value.
具体的以SCAN_IND报文和SCAN_REQ报文为例进行说明,定位基站协议栈收到SCAN_IND报文后自动发送SCAN_REQ报文,并上报应用层,应用层根据需求处理SCAN_IND报文,也可不处理。如果应用层收到SCAN_IND报文且Flag域等于设定值,则判断定位标签在场,如果Flag域不等于设定值,则转612。具体的判断方式可以参考上面该实施方式中的定位标签侧的判断,此处不一一赘述。Specifically, the SCAN_IND message and the SCAN_REQ message are used as examples to illustrate. After receiving the SCAN_IND message, the protocol stack of the positioning base station automatically sends the SCAN_REQ message and reports it to the application layer. The application layer processes the SCAN_IND message according to the requirements, or not. If the application layer receives the SCAN_IND message and the Flag field is equal to the set value, it determines that the positioning tag is present, and if the Flag field is not equal to the set value, go to 612 . For the specific judgment method, reference may be made to the judgment on the positioning label side in the above embodiment, which will not be repeated here.
612:将所述的计数值加1。612:
614:判断计数值是是否超过限定值时(例如3或者其他数值,具体可以根据需要设定);如果判断结果为是,则转616,确定定位标签已离开所述定位基站的定位区域。614: Determine whether the count value exceeds a limit value (for example, 3 or other values, which can be set as needed); if the determination result is yes, go to 616 to determine that the positioning tag has left the positioning area of the positioning base station.
定位基站确定定位标签离场或进场后,根据应用需求进行处理。After the positioning base station determines that the positioning tag leaves or enters the field, it will process it according to the application requirements.
图9是根据本申请实施例提供的一种定位设备900的结构示意性框图,图10所示的设备可以为前述方法实施例中(如图1-3和5中)的定位设备或定位标签,可以实现上述定位设备或定位标签的功能。所述定位设备应用于所述定位系统中,该定位设备包括收发单元902和处理单元904。FIG. 9 is a schematic structural block diagram of a
收发单元900,用于定期向所述定位基站群发送定位标签广播报文;a
处理单元902,用于通过所述定位基站群中至少一个定位基站返回的定位标签广播回应报文确定所述定位标签是否离开所述定位基站群的定位区域,并在所述定位标签离开所述定位基站群的定位区域的情况下,关闭所述定位标签上的除离场判断功能之外的定位业务功能。The
所述收发单元902定期向所述定位基站群发送定位标签广播报文的具体方式请参考前述图3以及图5实施方式中的描述,此处不再赘述。For the specific manner in which the
所述处理单元904通过所述定位基站群中至少一个定位基站返回的定位标签广播回应报文确定所述定位标签是否离开所述定位基站群的定位区域的具体实施方式可以参考前述图3以及图5中的具体判断离场方法,此处不再赘述。The
所述处理单元904进一步用于在所述定位标签处于所述定位基站群的定位区域的情况下,开启所述定位设备上关闭的定位业务功能。The
图10是根据本申请实施例提供的一种定位基站1000的结构示意性框图,图10所示的定位基站可以为前述方法实施例中(如图1-2和4-5中)的定位基站,可以实现上述实施方式中的定位基站的功能。所述定位基站应用于所述定位系统中,该定位基站包括收发单元1002和处理单元1004。FIG. 10 is a schematic structural block diagram of a
所述收发单元1002用于接收定位标签定期发送的第一定位标签广播报文,所述的第一定位标签广播报文携带标记信息以及所述定位标签的地址信息,所述标记信息指示所述第一定位标签广播报文为特殊离场协议报文;The
所述处理单元1004用于记录所述定位标签的地址信息,所述定位基站根据所述标记信息确定所述定位标签处于所述基站的定位区域,并指示所述收发单元向所述定位标签返回定位标签广播回应报文。The
所述收发单元1002接收定位标签定期发送的第一定位标签广播报文的具体方式请参考前述图4和图5实施方式中的描述,此处不再赘述。For the specific manner in which the
所述处理单元1004记录所述定位标签的地址信息,根据所述标记信息确定所述定位标签处于所述基站的定位区域,并指示所述收发单元向所述定位标签返回定位标签广播回应报文的具体实施方式可以参考前述图4和图5中的具体实施,此处不再赘述。The
在另一具体实施方式中,所述处理单元1004进一步用于若在设定时间内所述处理单元没有收到携带有所述定位标签的地址信息的第二定位标签广播报文,则确定所述定位设备离开所述定位基站的定位区域;或者若在设定时间内所述处理单元收到携带有所述定位设备的地址信息的第二定位标签广播报文,则判断所述第二定位标签广播报文中的标记信息是否等于设定值,所述第二定位标签广播报文中的标记信息用于指示所述第二定位标签广播报文是否为特殊离场协议报文;如果所述第二定位标签广播报文中的标记信息等于设定值,则确定所述定位设备处于所述定位基站的定位区域,并向所述定位设备返回定位标签广播回应报文;如果所述第二定位标签广播报文中的标记信息不等于设定值,则将所述计数值加1,并在所述计数值达到所述设定阈值时,确定所述定位设备离开所述定位基站的定位区域。具体实施方式可以参考前述图4和图5中的具体实施,此处不再赘述。In another specific implementation manner, the
图11是本申请实施例提供的一种定位装置1100示意性结构图,图11所示的定位装置可以为前述方法实施方式中(如图1-5中)的定位设备或定位标签和定位基站,可以实现上述定位设备或定位标签和定位基站设备的功能。如图11所示,该装置1100包括处理器1102、存储器1104和收发器1108,以及连接该处理器1102、存储器1104和收发器1108的各种连接线1110。收发器1106用于该装置与外界进行通信,存储器1104用于存放程序指令或程序1106,存储器1104可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器,处理器1302可以调用存储器1104中存放的程序指令执行相应功能。FIG. 11 is a schematic structural diagram of a positioning apparatus 1100 provided by an embodiment of the present application. The positioning apparatus shown in FIG. 11 may be a positioning device or a positioning label and a positioning base station in the foregoing method embodiments (as shown in FIGS. 1-5 ). , the functions of the above-mentioned positioning device or positioning label and positioning base station device can be realized. As shown in FIG. 11 , the apparatus 1100 includes a processor 1102 , a memory 1104 and a
在一种具体的实施方式中,所述的定位装置为前述的定位设备,在该实施方式中:In a specific embodiment, the positioning device is the aforementioned positioning device, and in this embodiment:
收发器1102,用于定期向所述定位基站群发送定位标签广播报文;A transceiver 1102, configured to periodically send a positioning tag broadcast message to the positioning base station group;
处理器1104,用于通过所述定位基站群中至少一个定位基站返回的定位标签广播回应报文确定所述定位标签是否离开所述定位基站群的定位区域,并在所述定位标签离开所述定位基站群的定位区域的情况下,关闭所述定位标签上的除离场判断功能之外的定位业务功能。The processor 1104 is configured to determine whether the positioning label leaves the positioning area of the positioning base station group through the positioning label broadcast response message returned by at least one positioning base station in the positioning base station group, and when the positioning label leaves the positioning In the case of locating the positioning area of the base station group, the positioning service functions except the departure judgment function on the positioning label are turned off.
所述收发器1102定期向所述定位基站群发送定位标签广播报文的具体方式请参考前述图3以及图5实施方式中的描述,此处不再赘述。For the specific manner in which the transceiver 1102 periodically sends the positioning tag broadcast message to the positioning base station group, please refer to the descriptions in the foregoing embodiments in FIG. 3 and FIG. 5 , and details are not repeated here.
所述处理器1104通过所述定位基站群中至少一个定位基站返回的定位标签广播回应报文确定所述定位标签是否离开所述定位基站群的定位区域的具体实施方式可以参考前述图3以及图5中的具体判断离场方法,此处不再赘述。The processor 1104 uses the positioning tag broadcast response message returned by at least one positioning base station in the positioning base station group to determine whether the positioning tag leaves the positioning area of the positioning base station group. For specific implementations, refer to FIG. 3 and FIG. The specific method of judging exit in 5 will not be repeated here.
所述处理器1104进一步用于在所述定位设备处于所述定位基站群的定位区域的情况下,开启所述定位设备上关闭的定位业务功能。The processor 1104 is further configured to enable a positioning service function disabled on the positioning device when the positioning device is in the positioning area of the positioning base station group.
在另一种具体的实施方式中,所述的定位装置为前述的定位基站,在该实施方式中:In another specific embodiment, the positioning device is the aforementioned positioning base station, in this embodiment:
所述收发器1102,用于接收定位标签定期发送的第一定位标签广播报文,所述的第一定位标签广播报文携带标记信息以及所述定位标签的地址信息,所述标记信息指示所述第一定位标签广播报文为特殊离场协议报文;The transceiver 1102 is configured to receive a first location label broadcast message periodically sent by a location label, where the first location label broadcast message carries label information and address information of the location label, and the label information indicates the location label. The first positioning label broadcast message is a special departure protocol message;
所述处理器1104,用于所述定位基站记录所述定位标签的地址信息,所述定位基站根据所述标记信息确定所述定位标签处于所述基站的定位区域,并指示所述收发单元向所述定位标签返回定位标签广播回应报文。The processor 1104 is configured for the positioning base station to record the address information of the positioning tag, the positioning base station determines that the positioning tag is in the positioning area of the base station according to the marking information, and instructs the transceiver unit to The location label returns a location label broadcast response message.
所述收发器1102接收定位标签定期发送的第一定位标签广播报文的具体方式请参考前述图4和图5实施方式中的描述,此处不再赘述。For the specific manner in which the transceiver 1102 receives the first positioning tag broadcast message periodically sent by the positioning tag, please refer to the descriptions in the foregoing embodiments in FIG. 4 and FIG. 5 , which will not be repeated here.
所述处理器1104记录所述定位标签的地址信息,根据所述标记信息确定所述定位标签处于所述基站的定位区域,并指示所述收发单元向所述定位标签返回定位标签广播回应报文的具体实施方式可以参考前述图4和图5中的具体实施,此处不再赘述。The processor 1104 records the address information of the positioning tag, determines that the positioning tag is in the positioning area of the base station according to the marking information, and instructs the transceiver unit to return a positioning tag broadcast response message to the positioning tag For the specific implementation manner, reference may be made to the specific implementation in the aforementioned FIG. 4 and FIG. 5 , which will not be repeated here.
在另一具体实施方式中,所述处理器1104进一步用于若在设定时间内所述处理单元没有收到携带有所述定位标签的地址信息的第二定位标签广播报文,则确定所述定位设备离开所述定位基站的定位区域;或者若在设定时间内所述处理单元收到携带有所述定位设备的地址信息的第二定位标签广播报文,则判断所述第二定位标签广播报文中的标记信息是否等于设定值,所述第二定位标签广播报文中的标记信息用于指示所述第二定位标签广播报文是否为特殊离场协议报文;如果所述第二定位标签广播报文中的标记信息等于设定值,则确定所述定位设备处于所述定位基站的定位区域,并向所述定位设备返回定位标签广播回应报文;如果所述第二定位标签广播报文中的标记信息不等于设定值,则将所述计数值加1,并在所述计数值达到所述设定阈值时,确定所述定位设备离开所述定位基站的定位区域。具体实施方式可以参考前述图4和图5中的具体实施,此处不再赘述。In another specific implementation manner, the processor 1104 is further configured to determine if the processing unit does not receive the second positioning tag broadcast message carrying the address information of the positioning tag within the set time period. The positioning device leaves the positioning area of the positioning base station; or if the processing unit receives a second positioning label broadcast message carrying the address information of the positioning device within a set time, it is determined that the second positioning Whether the tag information in the tag broadcast packet is equal to the set value, the tag information in the second positioning tag broadcast packet is used to indicate whether the second positioning tag broadcast packet is a special departure protocol packet; If the tag information in the second positioning label broadcast message is equal to the set value, then it is determined that the positioning device is in the positioning area of the positioning base station, and a positioning label broadcast response message is returned to the positioning device; If the tag information in the two positioning tag broadcast message is not equal to the set value, the count value is increased by 1, and when the count value reaches the set threshold value, it is determined that the positioning device has left the positioning base station. location area. For specific implementations, reference may be made to the specific implementations in the aforementioned FIG. 4 and FIG. 5 , which will not be repeated here.
需要说明的是,该图11所示的实施方式中,除了上述几种通过处理器执行存储器上的程序代码指令方式等常规方式之外,本实施方式也可以基于物理服务器结合网络功能虚拟化NFV技术实现的虚拟第一网络设备和第二网络设备,所述虚拟第一网络设备为虚拟路由器或交换机。本领域技术人员通过阅读本申请即可结合NFV技术在物理服务器上虚拟出具有上述功能的多个PE设备。此处不再赘述。It should be noted that, in the embodiment shown in FIG. 11 , in addition to the above-mentioned conventional methods such as executing the program code instructions on the memory through the processor, this embodiment can also virtualize NFV based on physical servers combined with network functions. The virtual first network device and the second network device implemented by the technology, the virtual first network device is a virtual router or a switch. By reading this application, those skilled in the art can virtualize multiple PE devices with the above functions on a physical server in combination with the NFV technology. It will not be repeated here.
图12是根据本申请实施例提供的一种定位系统1200示意性结构图,图12所示的系统包括的定位设备1202和定位基站1204,其中,所述的定位设备可以为图1-5和9中的实施方式中的定位设备或定位标签;所述的定位基站可以为上述图1-5和9图1-5和9中的实施方式中的定位基站。本实施方式中的定位设备和定位基站的功能或者所执行的步骤具体参考上述各实施方式,此处不再赘述。FIG. 12 is a schematic structural diagram of a
在本申请所提供的几个实施例中,应该理解到,所公开的系统和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically alone, or two or more modules may be integrated into one unit. The above-mentioned integrated modules can be implemented in the form of hardware, or can be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、随机存取存储器(英文全称:RandomAccess Memory,简称:RAM)、磁碟或者光盘等各种可以存储数据的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, random access memory (full name in English: Random Access Memory, abbreviated as: RAM), magnetic disk or optical disk and other media that can store data.
Claims (30)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611225051.XA CN108260080B (en) | 2016-12-27 | 2016-12-27 | Positioning method, device and system |
PCT/CN2017/109753 WO2018121084A1 (en) | 2016-12-27 | 2017-11-07 | Positioning method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611225051.XA CN108260080B (en) | 2016-12-27 | 2016-12-27 | Positioning method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108260080A CN108260080A (en) | 2018-07-06 |
CN108260080B true CN108260080B (en) | 2020-10-23 |
Family
ID=62706819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611225051.XA Active CN108260080B (en) | 2016-12-27 | 2016-12-27 | Positioning method, device and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108260080B (en) |
WO (1) | WO2018121084A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110572769A (en) * | 2019-08-05 | 2019-12-13 | 杨文国 | Guiding method and system |
CN112825588B (en) * | 2019-11-21 | 2022-01-21 | 珠海格力电器股份有限公司 | Power supply control method, system and device for tooling vehicle base station and storage medium |
CN112118562A (en) * | 2020-10-26 | 2020-12-22 | 珠海格力电器股份有限公司 | Positioning method, system and storage medium |
CN112291838A (en) * | 2020-10-28 | 2021-01-29 | 深圳市锐尔觅移动通信有限公司 | Positioning module control method, device, electronic device and storage medium |
CN113543090A (en) * | 2021-05-14 | 2021-10-22 | 浙江大华技术股份有限公司 | A method, device and storage medium for reducing power consumption of a Bluetooth receiving device |
CN113724528A (en) * | 2021-09-01 | 2021-11-30 | 南通理工学院 | Intelligent parking guidance system and method thereof |
CN114845367B (en) * | 2022-05-31 | 2025-03-25 | 成都四相致新科技有限公司 | Positioning method, positioning system, positioning device and readable storage medium |
CN115866511B (en) * | 2022-11-18 | 2023-11-24 | 东土科技(宜昌)有限公司 | Method and device for monitoring hardware equipment in positioning system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104904246A (en) * | 2013-01-10 | 2015-09-09 | 诺基亚技术有限公司 | Handling calibration data |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7502619B1 (en) * | 2008-01-22 | 2009-03-10 | Katz Daniel A | Location determination of low power wireless devices over a wide area |
US9398437B2 (en) * | 2013-12-16 | 2016-07-19 | Nokia Technologies Oy | Method, apparatus, and computer program product for service discovery in wireless short-range communication |
CN104780607B (en) * | 2015-04-24 | 2018-08-24 | 新华三技术有限公司 | To method, bluetooth trunking and the audiomonitor of the positioning of bluetooth wearable device |
CN204681599U (en) * | 2015-04-29 | 2015-09-30 | 辽宁工业大学 | A kind of indoor fusion navigation system based on WiFi and bluetooth |
CN105553963B (en) * | 2015-12-10 | 2019-11-29 | 小米科技有限责任公司 | The control method and device of positioning service |
-
2016
- 2016-12-27 CN CN201611225051.XA patent/CN108260080B/en active Active
-
2017
- 2017-11-07 WO PCT/CN2017/109753 patent/WO2018121084A1/en active Application Filing
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104904246A (en) * | 2013-01-10 | 2015-09-09 | 诺基亚技术有限公司 | Handling calibration data |
Non-Patent Citations (1)
Title |
---|
The Research of Locating Methods for Mobile Stations Based on IEEE 802.16e Multi-hop WMANs;Sheng-Cheng Yeh等;《2011 Workshops of International Conference on Advanced Information Networking and Applications》;20111231;第77-80页 * |
Also Published As
Publication number | Publication date |
---|---|
WO2018121084A1 (en) | 2018-07-05 |
CN108260080A (en) | 2018-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108260080B (en) | Positioning method, device and system | |
US12349064B2 (en) | Method for indicating downlink service data and device | |
KR101617557B1 (en) | Group media access control message for machine-to-machine devices and method to update a group identifier | |
EP3095293B1 (en) | Method and apparatus for bluetooth low energy suspend and resume | |
US20200213903A1 (en) | Data transmission method and device | |
CN109672979B (en) | Dual card communication method and device | |
WO2018227494A1 (en) | Measurement gap configuration method, apparatus, device, terminal and system | |
US20230164868A1 (en) | Method for changing rrc state, communication apparatus, and storage medium | |
WO2018126512A1 (en) | Paging signal sending method and paging signal receiving method, apparatus and system | |
CN110225557B (en) | Communication method and device based on Internet of things | |
CN116684947A (en) | Method and device for waking up energy-saving cell, equipment and readable storage medium | |
CN106231533B (en) | Method and device for short-range communication | |
CN107241775A (en) | WLAN beacon transmitting method and device | |
CN103190170B (en) | The processing method of a kind of subscriber equipment, the processing method of Mobility Management Entity, subscriber equipment, Mobility Management Entity and communication system | |
CN103442327A (en) | M2M device and communication method thereof | |
CN107896382B (en) | Network switching control method and device | |
CN204741572U (en) | A kind of WIFI detection identification equipment and WIFI detection identification system | |
CN114339950B (en) | Configuration method and device, terminal and network side equipment | |
CN113676990B (en) | Information detection and transmission method, terminal and network side equipment | |
CN112004258B (en) | Data acquisition method and communication device | |
WO2017161655A1 (en) | Fake base station filtering method, device, and computer-accessible storage medium | |
CN117119541B (en) | Terminal network connection processing method, terminal and storage medium | |
CN114080011B (en) | A mobile router device sleep control method and mobile router device | |
CN114554597B (en) | Paging indication method, device, terminal, network equipment and readable storage medium | |
CN113923686B (en) | Auxiliary information processing method, auxiliary information sending method and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |