CN104459605B - A kind of indoor floor location system and method - Google Patents
A kind of indoor floor location system and method Download PDFInfo
- Publication number
- CN104459605B CN104459605B CN201410699215.7A CN201410699215A CN104459605B CN 104459605 B CN104459605 B CN 104459605B CN 201410699215 A CN201410699215 A CN 201410699215A CN 104459605 B CN104459605 B CN 104459605B
- Authority
- CN
- China
- Prior art keywords
- floor
- trigger
- positioning
- server
- probability
- 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
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S1/00—Beacons or beacon systems transmitting signals having a characteristic or characteristics capable of being detected by non-directional receivers and defining directions, positions, or position lines fixed relatively to the beacon transmitters; Receivers co-operating therewith
- G01S1/02—Beacons or beacon systems transmitting signals having a characteristic or characteristics capable of being detected by non-directional receivers and defining directions, positions, or position lines fixed relatively to the beacon transmitters; Receivers co-operating therewith using radio waves
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明提供了一种室内楼层定位系统及方法,每隔第一定位时间,定位标签向外发送一次定位信号;各楼层触发器将从接收到的定位信号中获取的RSSI值、楼层号、触发结果作为一汇总信息发送至服务器,同时,各楼层触发器每隔一预设的第二定位时间向外发送第一触发信号,第一触发信号包含所述楼层触发器的ID号;定位标签根据接收到的第一触发信号向外发送第二触发信号,第二触发信号包含所述ID号;各楼层触发器选择性接收第二触发信号,将第二触发信号的RSSI值、楼层号、触发结果作为一汇总信息发送至服务器,触发结果为是;服务器根据汇总信息进行统计并判断系统状态,确定当前楼层号。
The present invention provides an indoor floor positioning system and method. Every first positioning time, the positioning tag sends a positioning signal to the outside; each floor trigger will obtain the RSSI value, floor number, and trigger from the received positioning signal. The result is sent to the server as a summary information. At the same time, each floor trigger sends out a first trigger signal every preset second positioning time, and the first trigger signal includes the ID number of the floor trigger; the positioning tag according to The received first trigger signal sends out a second trigger signal, and the second trigger signal includes the ID number; each floor trigger selectively receives the second trigger signal, and sends the RSSI value, floor number, and trigger signal of the second trigger signal The result is sent to the server as summary information, and the trigger result is yes; the server makes statistics and judges the system status according to the summary information, and determines the current floor number.
Description
技术领域technical field
本发明属于无线通信技术领域,具体地,涉及一种室内楼层定位系统及方法。The invention belongs to the technical field of wireless communication, and in particular relates to an indoor floor positioning system and method.
背景技术Background technique
近年来,室内定位是目前无线通信技术领域的热点问题之一。在一些如大型文化体育场馆、大型超市、购物中心等高层建筑中实现定位,不仅需要解决二维平面内的定位,楼层的判别也是亟待解决的问题。这种楼层定位在如火场跟踪定位等领域中有着急切的需求。In recent years, indoor positioning is one of the hot issues in the field of wireless communication technology. To achieve positioning in some high-rise buildings such as large cultural and sports venues, large supermarkets, shopping centers, etc., not only the positioning in the two-dimensional plane needs to be solved, but also the identification of floors is an urgent problem to be solved. This kind of floor positioning has an urgent demand in fields such as fire tracking and positioning.
目前,现有技术中较常见的一种室内定位系统是在每个楼层设置楼层切换装置,当定位目标发射一定位请求,所在楼层的楼层切换装置接收该定位请求后,将自身内设的楼层号反馈给定位目标。但是该楼层切换装置在楼层切换处理上存在以下的一些问题:(1)除了安装常规定的硬件外,需要在楼梯间等位置放置专门的用于楼层切换的设备,大量的这种楼层切换设备使得投入成本极高。(2)设定好的算法在使用中一旦出现楼层判断失误后无法修正,缺少可以进行检查和纠正的设置。(3)由于射频信号的穿透性,在上下临近楼层也可收到信号,楼层定位时易受到上下相邻楼层设备信号的干扰,导致楼层判断出错可能性大大增加。At present, a more common indoor positioning system in the prior art is to install a floor switching device on each floor. When the positioning target transmits a positioning request, the floor switching device on the floor receives the positioning request and uses the built-in floor switching device. The number is fed back to the positioning target. However, the floor switching device has the following problems in the floor switching process: (1) in addition to installing conventional hardware, it is necessary to place special equipment for floor switching in stairwells and other positions, and a large number of such floor switching equipment Make the input cost extremely high. (2) The set algorithm cannot be corrected once a floor judgment error occurs during use, and there is a lack of settings that can be checked and corrected. (3) Due to the penetration of radio frequency signals, signals can also be received on the upper and lower adjacent floors, and the floor positioning is easily interfered by the equipment signals of the upper and lower adjacent floors, which greatly increases the possibility of floor judgment errors.
发明内容Contents of the invention
针对现有技术中的缺陷,本发明的目的是提供一种较低成本的、自动修正定位的、最大程度避免楼层干扰的室内楼层定位方法。Aiming at the defects in the prior art, the object of the present invention is to provide an indoor floor positioning method with low cost, automatic positioning correction and maximum avoidance of floor interference.
根据本发明提供的一种室内楼层定位系统,其特征在于,包括服务器,定位标签和若干个楼层触发器;According to an indoor floor positioning system provided by the present invention, it is characterized in that it includes a server, a positioning tag and several floor triggers;
所述定位标签用于:The location tag is used to:
每隔一预设的第一定位时间向外发送一次定位信号,所述定位信号包含定位标签ID号,sending out a positioning signal every preset first positioning time, the positioning signal includes the ID number of the positioning tag,
根据自楼层触发器接收到的第一触发信号向外发送第二触发信号,所述第二触发信号包含所述触发器的ID号和所述定位标签ID号;Sending a second trigger signal outward according to the first trigger signal received from the floor trigger, the second trigger signal including the ID number of the trigger and the ID number of the positioning tag;
所述楼层触发器用于:The floor triggers are used to:
从接收到的所述定位信号中获取定位信号的RSSI值,将所述定位信号的RSSI值、楼层触发器自身楼层号、第一触发结果和所述定位标签ID号作为一汇总信息发送至服务器;Obtain the RSSI value of the positioning signal from the received positioning signal, and send the RSSI value of the positioning signal, the floor number of the floor trigger itself, the first trigger result, and the ID number of the positioning tag to the server as a summary information ;
每隔一预设的第二定位时间向外发送第一触发信号,所述第一触发信号包含所述楼层触发器的ID号,sending out a first trigger signal every second preset positioning time, the first trigger signal including the ID number of the floor trigger,
选择性接收定位标签发送的第二触发信号,将第二触发信号的RSSI值、楼层触发器自身楼层号、第二触发结果和所述定位标签ID号作为一汇总信息发送至服务器;Selectively receive the second trigger signal sent by the positioning tag, and send the RSSI value of the second trigger signal, the floor number of the floor trigger itself, the second trigger result and the ID number of the positioning tag to the server as a summary information;
所述服务器用于:Said server is used for:
对所述汇总信息进行统计分析并更新当前楼层号。Statistical analysis is performed on the summary information and the current floor number is updated.
进一步地,所述服务器用于:Further, the server is used for:
当所有所述汇总信息包含的楼层号都与服务器内所保存的当前楼层号相同,进入正常状态;When the floor numbers contained in all the summary information are the same as the current floor numbers stored in the server, enter the normal state;
当至少一个汇总信息包含的楼层号与服务器内所保存的当前楼层号不同,进入预切状态,仅在预切状态中,服务器用于对所述汇总信息进行统计分析并更新当前楼层号。When the floor number contained in at least one summary information is different from the current floor number saved in the server, enter the pre-cut state, and only in the pre-cut state, the server is used to perform statistical analysis on the summary information and update the current floor number.
进一步地,所述服务器用于对一个预设的统计周期中接收的若干所述汇总信息进行以下统计分析,从而更新当前楼层号:Further, the server is configured to perform the following statistical analysis on several pieces of summary information received in a preset statistical period, so as to update the current floor number:
由其中RSSI值最小的汇总信息组成楼层号第一集合,根据所述楼层号第一集合包含的各楼层号所占百分比乘以第一权重,获得各楼层号的第一概率;The first set of floor numbers is formed from the summary information with the smallest RSSI value, and the first probability of each floor number is obtained by multiplying the percentage of each floor number included in the first set of floor numbers by the first weight;
由其中包含第二触发结果为“触发”的汇总信息组成楼层号第二集合,根据所述楼层号第二集合包含的各楼层号所占百分比乘以第二权重,获得各楼层号的第二概率;The second set of floor numbers is composed of summary information containing the second trigger result as "trigger", and the second set of floor numbers is obtained according to the percentage of each floor number included in the second set of floor numbers multiplied by the second weight. probability;
由其中所有汇总信息组成楼层号第三集合,根据所述楼层号第三集合包含的各楼层号所占百分比乘以第三权重,获得各楼层号的第三概率;A third set of floor numbers is formed from all the summary information therein, and a third probability of each floor number is obtained by multiplying the percentage of each floor number included in the third set of floor numbers by a third weight;
将所述各楼层的第一概率,第二概率,第三概率相加,获得各楼层对应的预切概率,若存在最大的所述预切概率大于预设的阈值,则定位标签将所述最大预切概率对应的楼层号保存为当前楼层号。Add the first probability, the second probability, and the third probability of each floor to obtain the pre-cut probability corresponding to each floor. If there is a maximum pre-cut probability greater than the preset threshold, the positioning tag will The floor number corresponding to the maximum pre-cutting probability is saved as the current floor number.
进一步地,所述服务器在正常状态时接收到第一个不同楼层的第二触发结果的汇总信息时,进入预切状态,同时,所述统计周期开始起算。Further, when the server receives the summary information of the second trigger result of the first different floor in the normal state, it enters the pre-cut state, and at the same time, the counting period starts to count.
进一步地,所述楼层触发器选择性接收定位标签发送的第二触发信号时,仅接收包含的所述楼层触发器的ID号与自身ID号一致的所述第二触发信号。Further, when the floor trigger selectively receives the second trigger signal sent by the positioning tag, it only receives the second trigger signal in which the ID number of the floor trigger is consistent with its own ID number.
本发明还提供一种室内楼层定位方法,其特征在于,每隔一预设的第一定位时间重复一主动定位流程,每隔一预设的第二定位时间重复一触发定位流程;The present invention also provides an indoor floor positioning method, which is characterized in that an active positioning process is repeated every preset first positioning time, and a triggering positioning process is repeated every preset second positioning time;
所述主动定位流程包括:定位标签向外发送一次定位信号,所述定位信号包含定位标签ID号,The active positioning process includes: the positioning tag sends a positioning signal to the outside, and the positioning signal includes the ID number of the positioning tag,
各楼层触发器根据接收到的所述定位信号计算定位信号的RSSI值,设定一触发结果为“未触发”的第一触发结果,将楼层触发器内置的楼层号、所述第一触发结果、所述RSSI值和所述定位标签ID号作为一汇总信息发送至服务器;Each floor trigger calculates the RSSI value of the positioning signal according to the received positioning signal, sets a trigger result as the first trigger result of "not triggered", and uses the built-in floor number of the floor trigger, the first trigger result , the RSSI value and the positioning tag ID number are sent to the server as a summary information;
所述触发定位流程包括:The trigger location procedure includes:
各楼层触发器向外发送一第一触发信号,所述第一触发信号包含所述楼层触发器的ID号,Each floor trigger sends a first trigger signal to the outside, and the first trigger signal includes the ID number of the floor trigger,
定位标签根据接收到的第一触发信号向外发送第二触发信号,所述第二触发信号包含所述触发器的ID号和所述定位标签ID号,The positioning tag sends out a second trigger signal according to the received first trigger signal, the second trigger signal includes the ID number of the trigger and the ID number of the positioning tag,
各楼层触发器选择性接收所述第二触发信号,计算所述第二触发信号的RSSI值,设定一触发结果为“触发”的第二触发结果,将所述ID号对应的楼层号、所述第二触发结果、所述RSSI值和所述定位标签ID号作为一汇总信息发送至服务器;Each floor trigger selectively receives the second trigger signal, calculates the RSSI value of the second trigger signal, sets a trigger result as the second trigger result of "trigger", and sets the floor number corresponding to the ID number, The second trigger result, the RSSI value and the positioning tag ID number are sent to the server as a summary information;
经过一个预设的统计周期后,所述服务器根据在该统计周期内接收到的汇总信息确定当前楼层号。After a preset statistical period, the server determines the current floor number according to the summary information received within the statistical period.
进一步地,further,
当所有所述汇总信息包含的楼层号都与服务器所确定的当前楼层号相同,服务器进入正常状态;When all the floor numbers contained in the summary information are the same as the current floor number determined by the server, the server enters a normal state;
当至少一个汇总信息包含的楼层号与服务器内所确定的当前楼层号不同,服务器进入预切状态;When the floor number contained in at least one summary information is different from the current floor number determined in the server, the server enters the pre-cut state;
所述服务器在正常状态时接收到第一个不同楼层的第二触发结果的汇总信息时,切换为预切状态,同时,所述统计周期开始起算。When the server receives the summary information of the second trigger result of the first different floor in the normal state, it switches to the pre-cut state, and at the same time, the counting period starts to count.
进一步地,所述服务器确定当前楼层号的过程进一步包括:Further, the process of the server determining the current floor number further includes:
由其中RSSI值最小的汇总信息组成楼层号第一集合,根据所述楼层号第一集合包含的各楼层号所占百分比乘以第一权重,获得各楼层号的第一概率;The first set of floor numbers is formed from the summary information with the smallest RSSI value, and the first probability of each floor number is obtained by multiplying the percentage of each floor number included in the first set of floor numbers by the first weight;
由其中包含第二触发结果为“触发”的汇总信息组成楼层号第二集合,根据所述楼层号第二集合包含的各楼层号所占百分比乘以第二权重,获得各楼层号的第二概率;The second set of floor numbers is composed of summary information containing the second trigger result as "trigger", and the second set of floor numbers is obtained according to the percentage of each floor number included in the second set of floor numbers multiplied by the second weight. probability;
由其中所有汇总信息组成楼层号第三集合,根据所述楼层号第三集合包含的各楼层号所占百分比乘以第三权重,获得各楼层号的第三概率;A third set of floor numbers is formed from all the summary information therein, and a third probability of each floor number is obtained by multiplying the percentage of each floor number included in the third set of floor numbers by a third weight;
最后,将所述各楼层的第一概率,第二概率,第三概率相加,获得各楼层对应的预切概率,若存在最大的所述预切概率大于预设的阈值,则服务器将所述最大预切概率对应的楼层号确定为当前楼层号。Finally, add the first probability, the second probability, and the third probability of each floor to obtain the pre-cut probability corresponding to each floor. If there is a maximum pre-cut probability greater than the preset threshold, the server will The floor number corresponding to the maximum pre-cut probability is determined as the current floor number.
进一步地,各楼层触发器选择性接收所述第二触发信号的过程中,仅接收包含的所述楼层触发器的ID号与自身ID号一致的所述第二触发信号。Further, in the process of selectively receiving the second trigger signal, each floor trigger only receives the second trigger signal in which the ID number of the floor trigger is consistent with its own ID number.
与现有技术相比,本发明具有如下的有益效果:Compared with the prior art, the present invention has the following beneficial effects:
1、本发明适用范围不受楼层高度的限制,具有普适意义。1. The scope of application of the present invention is not limited by the height of the floor, and has universal significance.
2、本发明对楼层的判断结果是一个信号统计结果,克服了实际数据和理论计算数据之间存在差异导致判断结果出错的困难,本发明的判断结果更具有客观和准确性。2. The judgment result of the present invention to the floor is a signal statistical result, which overcomes the difficulty that the difference between the actual data and the theoretical calculation data causes the judgment result to be wrong, and the judgment result of the present invention is more objective and accurate.
3、本发明不涉及复杂的计算,具有低成本的优势,以便实现大范围的应用。3. The present invention does not involve complex calculations, and has the advantage of low cost, so as to realize a wide range of applications.
附图说明Description of drawings
通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为一种室内楼层定位系统;Fig. 1 is a kind of indoor floor positioning system;
图2为一种室内楼层定位方法;Fig. 2 is a kind of indoor floor positioning method;
图3为一种室内楼层定位统计方法。Figure 3 is a statistical method for indoor floor positioning.
具体实施方式detailed description
下面结合附图以具体实施例的方式对本发明进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进。这些都属于本发明的保护范围。The present invention will be described in detail below in terms of specific embodiments in conjunction with the accompanying drawings. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
如图1所示为本实施例提供的一种室内楼层定位系统,包括服务器,定位标签和若干个楼层触发器;As shown in Figure 1, it is an indoor floor positioning system provided by this embodiment, including a server, a positioning tag and several floor triggers;
所述定位标签用于:The location tag is used to:
每隔一预设的第一定位时间向外发送一次定位信号,所述定位信号包含定位标签ID号,sending out a positioning signal every preset first positioning time, the positioning signal includes the ID number of the positioning tag,
根据自楼层触发器接收到的第一触发信号向外发送第二触发信号,所述第二触发信号包含所述触发器的ID号和所述定位标签ID号;Sending a second trigger signal outward according to the first trigger signal received from the floor trigger, the second trigger signal including the ID number of the trigger and the ID number of the positioning tag;
所述楼层触发器用于:The floor triggers are used to:
从接收到的所述定位信号中获取定位信号的RSSI值,将所述定位信号的RSSI值、楼层触发器自身楼层号、第一触发结果和所述定位标签ID号作为一汇总信息发送至服务器;Obtain the RSSI value of the positioning signal from the received positioning signal, and send the RSSI value of the positioning signal, the floor number of the floor trigger itself, the first trigger result, and the ID number of the positioning tag to the server as a summary information ;
每隔一预设的第二定位时间向外发送第一触发信号,所述第一触发信号包含所述楼层触发器的ID号,sending out a first trigger signal every second preset positioning time, the first trigger signal including the ID number of the floor trigger,
选择性接收定位标签发送的第二触发信号,将第二触发信号的RSSI值、楼层触发器自身楼层号、第二触发结果和所述定位标签ID号作为一汇总信息发送至服务器;Selectively receive the second trigger signal sent by the positioning tag, and send the RSSI value of the second trigger signal, the floor number of the floor trigger itself, the second trigger result and the ID number of the positioning tag to the server as a summary information;
所述服务器用于:Said server is used for:
对所述汇总信息进行统计分析并更新当前楼层号。Statistical analysis is performed on the summary information and the current floor number is updated.
所述RSSI值指接收的信号强度指示,用来表示2个无线设备之间的信号强弱度,RSSI值越小表示信号越好。The RSSI value refers to a received signal strength indicator, which is used to indicate the signal strength between two wireless devices, and the smaller the RSSI value, the better the signal.
本实施例预设的第一定位时间和第二定位时间都预设为1秒,即定位标签每隔1秒发送一次定位信号,楼层触发器也每隔1秒发送一次第一触发信号。The first positioning time and the second positioning time preset in this embodiment are both preset to 1 second, that is, the positioning tag sends a positioning signal every 1 second, and the floor trigger also sends a first trigger signal every 1 second.
进一步地,所述服务器用于:Further, the server is used for:
当所有所述汇总信息包含的楼层号都与服务器内所保存的当前楼层号相同,进入正常状态;When the floor numbers contained in all the summary information are the same as the current floor numbers stored in the server, enter the normal state;
当至少一个汇总信息包含的楼层号与服务器内所保存的当前楼层号不同,进入预切状态,仅在预切状态中,服务器用于对所述汇总信息进行统计分析并更新当前楼层号。When the floor number contained in at least one summary information is different from the current floor number saved in the server, enter the pre-cut state, and only in the pre-cut state, the server is used to perform statistical analysis on the summary information and update the current floor number.
进一步地,所述服务器用于对一个预设的统计周期中接收的若干所述汇总信息进行以下统计分析,从而更新当前楼层号:Further, the server is configured to perform the following statistical analysis on several pieces of summary information received in a preset statistical period, so as to update the current floor number:
由其中RSSI值最小的汇总信息组成楼层号第一集合,根据所述楼层号第一集合包含的各楼层号所占百分比乘以第一权重,获得各楼层号的第一概率;The first set of floor numbers is formed from the summary information with the smallest RSSI value, and the first probability of each floor number is obtained by multiplying the percentage of each floor number included in the first set of floor numbers by the first weight;
由其中包含第二触发结果为“触发”的汇总信息组成楼层号第二集合,根据所述楼层号第二集合包含的各楼层号所占百分比乘以第二权重,获得各楼层号的第二概率;The second set of floor numbers is composed of summary information containing the second trigger result as "trigger", and the second set of floor numbers is obtained according to the percentage of each floor number included in the second set of floor numbers multiplied by the second weight. probability;
由其中所有汇总信息组成楼层号第三集合,根据所述楼层号第三集合包含的各楼层号所占百分比乘以第三权重,获得各楼层号的第三概率;A third set of floor numbers is formed from all the summary information therein, and a third probability of each floor number is obtained by multiplying the percentage of each floor number included in the third set of floor numbers by a third weight;
将所述各楼层的第一概率,第二概率,第三概率相加,获得各楼层对应的预切概率,若存在最大的所述预切概率大于预设的阈值,则定位标签将所述最大预切概率对应的楼层号保存为当前楼层号。Add the first probability, the second probability, and the third probability of each floor to obtain the pre-cut probability corresponding to each floor. If there is a maximum pre-cut probability greater than the preset threshold, the positioning tag will The floor number corresponding to the maximum pre-cutting probability is saved as the current floor number.
本实施例预设的统计周期为5秒,即服务器每5秒统计一次接收自各楼层触发器的所有根据定位信号和第二触发信号获得的汇总信息,再根据这些汇总信息统计分析确认当前楼层号。The preset statistical period in this embodiment is 5 seconds, that is, the server counts all the summary information received from the triggers on each floor according to the positioning signal and the second trigger signal every 5 seconds, and then confirms the current floor number according to statistical analysis of these summary information .
当开始计算所述统计周期,即表示标签接收到了不同的楼层触发器发送的第一触发信号,说明标签的位置有可能发生了改变。如果一直只接收到与服务器当前确定的楼层号相同的第一触发信号,那么说明定位标签的位置一直在同一楼层号对应的楼层触发器的信号接收范围内,由此可以判定定位标签一直位于同一楼层,不存在楼层改变,无需楼层切换的操作。When the statistical period starts to be calculated, it means that the tag has received the first trigger signal sent by a trigger on a different floor, indicating that the position of the tag may have changed. If only the first trigger signal with the same floor number as currently determined by the server has been received, it means that the position of the positioning tag has always been within the signal receiving range of the floor trigger corresponding to the same floor number, so it can be determined that the positioning tag has been located at the same Floor, there is no floor change, no floor switch operation.
进一步地,所述服务器在正常状态时接收到第一个不同楼层的第二触发结果的汇总信息时,进入预切状态,同时,所述统计周期开始起算。Further, when the server receives the summary information of the second trigger result of the first different floor in the normal state, it enters the pre-cut state, and at the same time, the counting period starts to count.
进一步地,所述楼层触发器选择性接收定位标签发送的第二触发信号时,仅接收包含的所述楼层触发器的ID号与自身ID号一致的所述第二触发信号。Further, when the floor trigger selectively receives the second trigger signal sent by the positioning tag, it only receives the second trigger signal in which the ID number of the floor trigger is consistent with its own ID number.
每个楼层触发器都设置有唯一的ID号,且每个楼层触发器都设置有所在楼层的楼层号,本实施例中在每个楼梯间或电梯口仅设置一个楼层触发器,因此所述所述楼层触发器的ID号与楼层号一一对应。本实施例所述的各楼层触发器根据所述所述楼层触发器的ID号选择性接收所述第二触发信号,即表示触发器接收第二触发信号时,仅接收响应自身发出去的第一触发信号而反馈回来的第二触发信号,因此有检测所述楼层触发器的ID号是否一致的选择性接收步骤。Each floor trigger is provided with a unique ID number, and each floor trigger is provided with the floor number of the floor. In this embodiment, only one floor trigger is set at each stairwell or elevator entrance, so the described The ID numbers of the above-mentioned floor triggers are in one-to-one correspondence with the floor numbers. Each floor trigger described in this embodiment selectively receives the second trigger signal according to the ID number of the floor trigger, which means that when the trigger receives the second trigger signal, it only receives the first response sent by itself. A second trigger signal is fed back from the first trigger signal, so there is a selective receiving step of detecting whether the ID numbers of the floor triggers are consistent.
如图2所示,本发明还提供一种室内楼层定位方法,包括主动定位流程和触发定位流程;As shown in Figure 2, the present invention also provides an indoor floor positioning method, including an active positioning process and a triggered positioning process;
所述主动定位流程包括:定位标签向外发送一次定位信号,所述定位信号包含定位标签ID号;各楼层触发器根据接收到的所述定位信号计算定位信号的RSSI值,设定一触发结果为“未触发”的第一触发结果,将楼层触发器内置的楼层号、所述第一触发结果、所述RSSI值和所述定位标签ID号作为一汇总信息发送至服务器;The active positioning process includes: the positioning tag sends out a positioning signal once, and the positioning signal includes the ID number of the positioning tag; each floor trigger calculates the RSSI value of the positioning signal according to the received positioning signal, and sets a trigger result For the first trigger result of "not triggered", send the built-in floor number of the floor trigger, the first trigger result, the RSSI value and the positioning tag ID number to the server as a summary information;
所述触发定位流程包括:The trigger location procedure includes:
各楼层触发器向外发送一第一触发信号,所述第一触发信号包含所述楼层触发器的ID号,Each floor trigger sends a first trigger signal to the outside, and the first trigger signal includes the ID number of the floor trigger,
定位标签根据接收到的第一触发信号向外发送第二触发信号,所述第二触发信号包含所述触发器的ID号和所述定位标签ID号,The positioning tag sends out a second trigger signal according to the received first trigger signal, the second trigger signal includes the ID number of the trigger and the ID number of the positioning tag,
各楼层触发器选择性接收所述第二触发信号,计算所述第二触发信号的RSSI值,设定一触发结果为“触发”的第二触发结果,将所述ID号对应的楼层号、所述第二触发结果、所述RSSI值和所述定位标签ID号作为一汇总信息发送至服务器;Each floor trigger selectively receives the second trigger signal, calculates the RSSI value of the second trigger signal, sets a trigger result as the second trigger result of "trigger", and sets the floor number corresponding to the ID number, The second trigger result, the RSSI value and the positioning tag ID number are sent to the server as a summary information;
每隔一预设的第一定位时间重复所述主动定位流程,每隔一预设的第二定位时间重复所述触发定位流程,经过一个预设的统计周期后,所述服务器根据在该统计周期内接收到的汇总信息确定当前楼层号。Repeat the active positioning process every preset first positioning time, repeat the triggering positioning process every preset second positioning time, after a preset statistical cycle, the server according to the statistics The summary information received during the cycle determines the current floor number.
所述汇总信息中的触发结果分为“触发”和“未触发”,表示该汇总信息也分为两类:The trigger results in the summary information are divided into "triggered" and "not triggered", indicating that the summary information is also divided into two categories:
第一类汇总信息来自定位标签主动发送的定位信号,触发结果为“未触发”;第二类汇总信息来自定位标签响应楼层触发器发送的第一触发信号而反馈的第二触发信号,触发结果为“触发”。The first type of summary information comes from the positioning signal actively sent by the positioning tag, and the trigger result is "not triggered"; the second type of summary information comes from the second trigger signal fed back by the positioning tag in response to the first trigger signal sent by the floor trigger, and the trigger result is for "Trigger".
进一步地,further,
当所有所述汇总信息包含的楼层号都与服务器所确定的当前楼层号相同,服务器进入正常状态;When all the floor numbers contained in the summary information are the same as the current floor number determined by the server, the server enters a normal state;
当至少一个汇总信息包含的楼层号与服务器内所确定的当前楼层号不同,服务器进入预切状态;When the floor number contained in at least one summary information is different from the current floor number determined in the server, the server enters the pre-cut state;
所述服务器在正常状态时接收到第一个不同楼层的第二触发结果的汇总信息时,切换为预切状态,同时,所述统计周期开始起算。When the server receives the summary information of the second trigger result of the first different floor in the normal state, it switches to the pre-cut state, and at the same time, the counting period starts to count.
进一步地,如图3所示,所述服务器确定当前楼层号的过程进一步包括:Further, as shown in Figure 3, the process of the server determining the current floor number further includes:
由其中RSSI值最小的汇总信息组成楼层号第一集合,根据所述楼层号第一集合包含的各楼层号所占百分比乘以第一权重,获得各楼层号的第一概率;The first set of floor numbers is formed from the summary information with the smallest RSSI value, and the first probability of each floor number is obtained by multiplying the percentage of each floor number included in the first set of floor numbers by the first weight;
由其中包含第二触发结果为“触发”的汇总信息组成楼层号第二集合,根据所述楼层号第二集合包含的各楼层号所占百分比乘以第二权重,获得各楼层号的第二概率;The second set of floor numbers is composed of summary information containing the second trigger result as "trigger", and the second set of floor numbers is obtained according to the percentage of each floor number included in the second set of floor numbers multiplied by the second weight. probability;
由其中所有汇总信息组成楼层号第三集合,根据所述楼层号第三集合包含的各楼层号所占百分比乘以第三权重,获得各楼层号的第三概率;A third set of floor numbers is formed from all the summary information therein, and a third probability of each floor number is obtained by multiplying the percentage of each floor number included in the third set of floor numbers by a third weight;
最后,将所述各楼层的第一概率,第二概率,第三概率相加,获得各楼层对应的预切概率,若存在最大的所述预切概率大于预设的阈值,则服务器将所述最大预切概率对应的楼层号确定为当前楼层号。Finally, add the first probability, the second probability, and the third probability of each floor to obtain the pre-cut probability corresponding to each floor. If there is a maximum pre-cut probability greater than the preset threshold, the server will The floor number corresponding to the maximum pre-cut probability is determined as the current floor number.
进一步地,各楼层触发器选择性接收所述第二触发信号的过程中,仅接收包含的楼层触发器的ID号与自身ID号一致的所述第二触发信号。Further, in the process of selectively receiving the second trigger signal, each floor trigger only receives the second trigger signal whose ID number of the contained floor trigger is consistent with its own ID number.
本实施例中第一权重为40%,第二权重为40%,第三权重为20%。各个权重确定了各个因素对最终楼层号判断的影响大小,本发明不限于这一种设置。In this embodiment, the first weight is 40%, the second weight is 40%, and the third weight is 20%. Each weight determines the influence of each factor on the judgment of the final floor number, and the present invention is not limited to this setting.
如图1所示,本实施例中触发器安装在需要定位服务的楼梯间或电梯口顶部,定位标签由人员佩戴。当人员从4楼移动到5楼并且接收到了5楼的楼层触发器发送的第一触发信号后,反馈出一个包含5楼楼层触发器ID号的第二触发信号,5楼楼层触发器接收到该第二触发信号后获得一汇总信息并发给服务器(图1中未示出),服务器检测到该汇总信息中包含的楼层号为5楼,与当前确定的楼层号(4楼)不一致,服务器进入预切状态,开始计算统计周期,一个统计周期后以在该统计周期中接收到的汇总信息进行楼层判断。如下为统计分析过程的举例。As shown in FIG. 1 , in this embodiment, the trigger is installed on the top of the stairwell or the elevator entrance where positioning service is required, and the positioning tag is worn by personnel. When a person moves from the 4th floor to the 5th floor and receives the first trigger signal sent by the floor trigger on the 5th floor, a second trigger signal containing the ID number of the floor trigger on the 5th floor is fed back, and the floor trigger on the 5th floor receives After the second trigger signal, obtain a summary information and send it to the server (not shown in Figure 1), the server detects that the floor number contained in the summary information is the 5th floor, inconsistent with the currently determined floor number (4th floor), the server Enter the pre-cut state, start to calculate the statistical period, and judge the floor based on the summary information received in the statistical period after a statistical period. The following is an example of the statistical analysis process.
本实施例所述服务器在5秒内共收到10条触发信号报文,通过报文解析得到如表1:The server described in this embodiment receives 10 trigger signal messages in total within 5 seconds, which are obtained through message parsing as shown in Table 1:
表1Table 1
解析报文获得表1中的数据后,进行以下统计:After analyzing the message to obtain the data in Table 1, perform the following statistics:
根据RSSI值的排序,取出RSSI值最小的项,得到第三条汇总信息,即楼层号第一集合仅包含了一个汇总信息:According to the sorting of RSSI values, the item with the smallest RSSI value is taken out, and the third summary information is obtained, that is, the first set of floor numbers contains only one summary information:
根据所述楼层号第一集合包含的各楼层号所占百分比乘以第一权重40%,楼层号5的第一概率为100%*40%=40%。According to the percentage of each floor number contained in the first set of floor numbers multiplied by the first weight 40%, the first probability of floor number 5 is 100%*40%=40%.
统计触发结果为“触发”的汇总信息,获得以下3条,作为楼层号第二集合。Summarize the summary information whose trigger result is "triggered", and obtain the following 3 items as the second set of floor numbers.
统计获得:Statistics obtained:
5L 2个数据 67%占比;5L 2 data accounted for 67%;
4L 1个数据 33%占比。4L 1 data accounted for 33%.
根据所述楼层号第二集合包含的各楼层号所占百分比乘以第二权重40%,计算获得各楼层号的第二概率:According to the percentage of each floor number contained in the second set of floor numbers multiplied by the second weight 40%, the second probability of obtaining each floor number is calculated:
楼层号5的第二概率为67%*40%=26.8%;The second probability of floor number 5 is 67%*40%=26.8%;
楼层号4的第二概率为33%*40%=13.2%。The second probability of floor number 4 is 33%*40%=13.2%.
由表1中所有汇总信息组成楼层号第三集合,根据楼层号对所有汇总信息进行统计得到:The third set of floor numbers is composed of all the summary information in Table 1, and the statistics of all the summary information are obtained according to the floor numbers:
5L 6个数据 60%占比;5L 6 data 60% proportion;
4L 4个数据 40%占比。4L 4 data 40% proportion.
根据所述楼层号第三集合包含的各楼层号所占百分比乘以第三权重20%,计算获得各楼层号的第三概率:According to the percentage of each floor number contained in the third set of floor numbers multiplied by the third weight 20%, the third probability of obtaining each floor number is calculated:
楼层号5的第三概率为60%*20%=12%;The third probability of floor number 5 is 60%*20%=12%;
楼层号4的第三概率为40%*20%=8%。The third probability of floor number 4 is 40%*20%=8%.
最后,将所述各楼层的第一概率,第二概率,第三概率相加,获得各楼层对应的预切概率:Finally, add the first probability, second probability, and third probability of each floor to obtain the corresponding pre-cut probability of each floor:
楼层号5的预切概率为40%+26.8%+12%=78.8%;The pre-cut probability of floor number 5 is 40%+26.8%+12%=78.8%;
楼层号4的预切概率为13.2%+8%=21.2%。The pre-cut probability of floor number 4 is 13.2%+8%=21.2%.
最大的预切概率是楼层号5对应的78.8%,判断其是否超过阈值50%。由78.8%>50%可知服务器需要更新当前楼层号,所以服务器进行楼层切换,重新确定当前的楼层号为5。此时接收的汇总信息中楼层号都是5,与服务器确定的当前楼层号一致,服务器进入正常状态。若此时接收的汇总信息中楼层号出现6或4,与服务器确定的当前楼层号不一致,服务器进入预切状态,再次进入统计周期,再次进行统计分析以确定楼层号。若所述最大的预切概率小于或等于阈值,则维持服务器确定的原楼层号不变。The maximum pre-cut probability is 78.8% corresponding to floor number 5, and it is judged whether it exceeds the threshold of 50%. From 78.8%>50%, it can be seen that the server needs to update the current floor number, so the server switches floors and re-determines the current floor number as 5. The floor numbers in the summary information received at this time are all 5, which is consistent with the current floor number determined by the server, and the server enters a normal state. If the floor number 6 or 4 appears in the summary information received at this time, which is inconsistent with the current floor number determined by the server, the server enters the pre-cut state, enters the statistical cycle again, and performs statistical analysis again to determine the floor number. If the maximum pre-cut probability is less than or equal to the threshold, the original floor number determined by the server remains unchanged.
以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变形或修改,这并不影响本发明的实质内容。Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art may make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention.
Claims (7)
- A kind of 1. indoor floor location system, it is characterised in that including server, positioning label and several floor triggers;The positioning label is used for:One-time positioning signal is sent out every default first positioning time, the positioning signal includes positioning tag ID Number,The first trigger signal according to being received from floor trigger is sent out the second trigger signal, second trigger signal ID number comprising the trigger and the positioning tag ID number;The floor trigger is used for:The RSSI value of positioning signal is obtained from the positioning signal received, by the RSSI value of the positioning signal, floor Trigger itself floor number, the first triggering result and the positioning tag ID number are sent to server as a summary information;The first trigger signal is sent out every default second positioning time, first trigger signal includes the floor The ID number of trigger,Selectivity receives the second trigger signal that positioning label is sent, by the RSSI value of the second trigger signal, floor trigger certainly Body floor number, the second triggering result and the positioning tag ID number are sent to server as a summary information;The server is used for:Statistical analysis is carried out to the summary information and updates current floor number;The server is additionally operable to default to oneMeasurement period in some summary informations for receiving carry out following statistical analysis, so as to update current floor number:Floor number first set is formed by the minimum summary information of wherein RSSI value, included according to the floor number first set Each floor number percentage is multiplied by the first weight, obtains the first probability of each floor number;Floor number second set is formed for the summary information of " triggering " by wherein including the second triggering result, according to the floor number Each floor number percentage that second set includes is multiplied by the second weight, obtains the second probability of each floor number;Floor number the 3rd is formed by wherein all summary informations to gather, each floor number included according to the floor number the 3rd set Percentage is multiplied by the 3rd weight, obtains the 3rd probability of each floor number;By the first probability of each floor, the second probability, the 3rd probability is added, and obtains pre-cut probability corresponding to each floor, if It is more than default threshold value in the presence of the pre-cut probability of maximum, then positions label by floor number corresponding to the maximum pre-cut probability Save as current floor number.
- 2. system according to claim 1, it is characterised in that the server is used for:When the floor number that all summary informations include is all identical with the current floor number preserved in server, into normal State;When the current floor difference preserved in the floor number and server that at least one summary information includes, into pre-cut shape State, only in pre-cut state, server is used to carry out statistical analysis to the summary information and updates current floor number.
- 3. system according to claim 1, it is characterised in that the server receives first in normal condition not When triggering the summary information of result with the second of floor, into pre-cut state, meanwhile, the measurement period starts to start at.
- 4. system according to claim 1, it is characterised in that the floor trigger selectively receives positioning label and sent The second trigger signal when, only receive the floor trigger included ID number it is consistent with itself ID number it is described second triggering Signal.
- A kind of 5. indoor floor location method, it is characterised in that repeat a positive location every default first positioning time Flow, a triggering positioning flow is repeated every default second positioning time;The positive location flow includes:Positioning label is sent out one-time positioning signal, and the positioning signal includes positioning and marked Sign ID number,Each floor trigger calculates the RSSI value of positioning signal according to the positioning signal that receives, set one trigger result as " not triggering " first triggering result, by the floor number built in floor trigger, it is described first triggering result, the RSSI value and The positioning tag ID number is sent to server as a summary information;The triggering positioning flow includes:Each floor trigger is sent out one first trigger signal, and first trigger signal includes the ID of the floor trigger Number,Positioning label is sent out the second trigger signal according to the first trigger signal received, and second trigger signal includes The ID number of the trigger and the positioning tag ID number,Each floor trigger selectively receives second trigger signal, calculates the RSSI value of second trigger signal, setting One triggering result is the second triggering result of " triggering ", and floor number corresponding to the ID number, described second are triggered into result, described RSSI value and the positioning tag ID number are sent to server as a summary information;After a default measurement period, the server determines according to the summary information received in the measurement period Current floor number;The server determines that the process of current floor number further comprises:Floor number first set is formed by the minimum summary information of wherein RSSI value, included according to the floor number first set Each floor number percentage is multiplied by the first weight, obtains the first probability of each floor number;Floor number second set is formed for the summary information of " triggering " by wherein including the second triggering result, according to the floor number Each floor number percentage that second set includes is multiplied by the second weight, obtains the second probability of each floor number;Floor number the 3rd is formed by wherein all summary informations to gather, each floor number included according to the floor number the 3rd set Percentage is multiplied by the 3rd weight, obtains the 3rd probability of each floor number;Finally, the first probability of each floor, the second probability, the 3rd probability are added, it is general obtains pre-cut corresponding to each floor Rate, if the maximum pre-cut probability be present is more than default threshold value, server is by building corresponding to the maximum pre-cut probability Level number is defined as current floor number.
- 6. according to the method for claim 5, it is characterised in that when the floor number that all summary informations include all with clothes Being engaged in, current floor number determined by device is identical, and server enters normal condition;When identified current floor difference in the floor number and server that at least one summary information includes, server enters Pre-cut state;When the server receives the summary information of the second triggering result of first different floor in normal condition, switching For pre-cut state, meanwhile, the measurement period starts to start at.
- 7. according to the method for claim 5, it is characterised in that each floor trigger selectively receives the second triggering letter During number, the ID number of the floor trigger included second trigger signal consistent with itself ID number is only received.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410699215.7A CN104459605B (en) | 2014-11-27 | 2014-11-27 | A kind of indoor floor location system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410699215.7A CN104459605B (en) | 2014-11-27 | 2014-11-27 | A kind of indoor floor location system and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104459605A CN104459605A (en) | 2015-03-25 |
| CN104459605B true CN104459605B (en) | 2017-11-14 |
Family
ID=52905960
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410699215.7A Active CN104459605B (en) | 2014-11-27 | 2014-11-27 | A kind of indoor floor location system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104459605B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108141698B (en) * | 2015-12-28 | 2020-06-16 | 华为技术有限公司 | Floor positioning method, equipment and system |
| CN109246634B (en) * | 2017-05-19 | 2020-12-04 | 富士通株式会社 | Indoor positioning method, indoor positioning device and electronic equipment |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7825804B2 (en) * | 2007-01-31 | 2010-11-02 | Symbol Technologies, Inc. | Methods and apparatus for opportunistic locationing of RF tags using location triggers |
| CN101236244A (en) * | 2008-02-21 | 2008-08-06 | 当代天启技术(北京)有限公司 | Wireless positioning method, device and system |
| JP4840395B2 (en) * | 2008-04-18 | 2011-12-21 | ソニー株式会社 | Information processing apparatus, program, information processing method, and information processing system |
| CN101644777A (en) * | 2008-08-06 | 2010-02-10 | 艾洛思高有限公司 | Improved room separation in RTLS based on WLAN and method thereof |
| CN102946635B (en) * | 2012-10-17 | 2015-08-05 | 上海京颐科技股份有限公司 | Based on room level level indoor orientation method and the navigation system of exciter technology |
-
2014
- 2014-11-27 CN CN201410699215.7A patent/CN104459605B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN104459605A (en) | 2015-03-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112073901A (en) | Safety early warning method, system, device, equipment and storage medium | |
| CN106937251B (en) | Indoor positioning method and server | |
| CN105704677B (en) | One kind being based on barometrical indoor orientation method and device | |
| CN102395200B (en) | Node positioning method in wireless sensor network and apparatus thereof | |
| CN104202729B (en) | The adding method of a kind of contact person, Apparatus and system | |
| US20150264536A1 (en) | Mobile device locating using limited access points | |
| US9534904B2 (en) | Electronic device and navigation method for indoor escaping | |
| US20170219682A1 (en) | Positioning system | |
| CN102158844A (en) | Method and system for updating position of base station | |
| US11306934B2 (en) | Air-conditioning system control apparatus using degree of influence between air-conditioning indoor units | |
| CN104459605B (en) | A kind of indoor floor location system and method | |
| JP2017122724A5 (en) | ||
| US10480945B2 (en) | Multi-level location disambiguation | |
| US9641983B2 (en) | Location management for access points | |
| US10652040B2 (en) | Common social interface for system controls | |
| CN104501795B (en) | A kind of indoor verandas, room switching system and method | |
| CN101111054A (en) | Method for signal channel resource reconfiguration | |
| CN105101276B (en) | A kind of monitoring method and device of mobile network signals stability | |
| US10156628B2 (en) | Method for determining indoor locations of mobile receiver units | |
| CN109188354B (en) | Wireless positioning method and device | |
| JP7514601B2 (en) | Location estimation system, location estimation method, and program | |
| CN207158534U (en) | A kind of floor detection prompt system and mobile terminal | |
| JPWO2019163130A1 (en) | Existence estimation system and existence estimation method | |
| CN109348427B (en) | Wireless positioning method and device | |
| JP7049860B2 (en) | Position estimation system, position estimation method and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250428 Address after: 4th Floor, Building 5, No. 33 Leshan Road, Xuhui District, Shanghai, 200030 Patentee after: Shanghai Xingzhihu Intelligent Medical Technology Co.,Ltd. Country or region after: China Address before: Room 105, Building 12, No. 333 Chengbei Road, Jiading Town, Jiading District, Shanghai, July 2018 Patentee before: SHANGHAI KYEE TECHNOLOGY Co.,Ltd. Country or region before: China |