TW201929582A - Positioning method and system - Google Patents
Positioning method and system Download PDFInfo
- Publication number
- TW201929582A TW201929582A TW107123045A TW107123045A TW201929582A TW 201929582 A TW201929582 A TW 201929582A TW 107123045 A TW107123045 A TW 107123045A TW 107123045 A TW107123045 A TW 107123045A TW 201929582 A TW201929582 A TW 201929582A
- Authority
- TW
- Taiwan
- Prior art keywords
- devices
- message
- identity information
- forwarding
- lost
- Prior art date
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本發明屬通訊技術領域,涉及一種定位方法及定位系統。The invention belongs to the technical field of communication and relates to a positioning method and a positioning system.
在生活中經常會存在找不到鑰匙、錢包等東西,以及老人及小孩走丟的情況,目前,大都藉由採用定位技術來解決此類問題。現有技術中通常採用的定位技術是基於藍牙連接來實現,藉由監測藍牙設備的連接情況來進行定位。此種定位方式主要存在兩個問題:1、藉由通訊協議連接的藍牙設備的數量非常有限,通常僅為6-8個,由此無法管理大數量範圍內的物品的定位;2、基於藍牙通訊的通訊距離較短,超過10m以外可靠性就大幅下降,即通過藍牙管理的設備必須集中在中心設備周圍,因此也不能夠進行較大面積範圍內的定位。In life, there are often cases where no keys, wallets, etc. can be found, and the elderly and children are lost. At present, most of them are solved by using positioning technology. The positioning technology commonly used in the prior art is implemented based on a Bluetooth connection, and is monitored by monitoring the connection status of the Bluetooth device. There are two main problems with this type of positioning: 1. The number of Bluetooth devices connected by communication protocols is very limited, usually only 6-8, which makes it impossible to manage the positioning of a large number of items; 2. Based on Bluetooth The communication distance of the communication is short, and the reliability is greatly reduced beyond 10m, that is, the device managed by Bluetooth must be concentrated around the center device, and therefore it is not possible to perform positioning within a large area.
本發明的目的在於提供一種定位方法及定位系統,解決現有技術的定位系統中可管理定位的物品數量少以及可定位範圍小的問題。The object of the present invention is to provide a positioning method and a positioning system, which solve the problem that the number of items that can be managed and positioned in the positioning system of the prior art is small and the range of the positioning is small.
為解決上述技術問題,本發明提供了一種定位方法,包括如下步驟:以一第一設備構建Mesh網路;將多個第二設備加入所述Mesh網路並在所述Mesh網路中傳遞訊息;當其中一個第二設備發出訊息時,其餘第二設備作為轉發設備接收並轉發所述訊息,當其中另一個第二設備接收到所述訊息後,轉發包含轉發設備身份資訊的訊息,所述轉發設備身份資訊包括除所述其中一個第二設備外的其餘第二設備中的至少一個的身份資訊;所述第一設備接收至少一台所述第二設備發出的包含所述轉發設備身份資訊的訊息;當所述其中一個第二設備丟失時,所述第一設備根據所述轉發設備身份資訊定位丟失的所述其中一個第二設備。To solve the above technical problem, the present invention provides a positioning method, including the steps of: constructing a mesh network with a first device; adding a plurality of second devices to the mesh network and transmitting information in the mesh network. When one of the second devices sends a message, the remaining second device receives and forwards the message as a forwarding device, and when another second device receives the message, forwards a message including forwarding device identity information, Forwarding device identity information includes identity information of at least one of the remaining second devices except the one of the second devices; the first device receiving at least one of the second devices that includes the forwarding device identity information a message; when the one of the second devices is lost, the first device locates the lost one of the second devices according to the forwarding device identity information.
可選的,所述其中一個第二設備發出的訊息中包含所述其中另一個第二設備的身份資訊。Optionally, the message sent by one of the second devices includes the identity information of the other second device.
進一步的,所述其中另一個第二設備接收所述訊息後,轉發包含轉發設備身份資訊的訊息的步驟包括:所述其中另一個第二設備接收到除自身外的其他第二設備發出的訊息;所述其中另一個第二設備檢測所述訊息中是否包含轉發設備身份資訊;若包含,則所述其中另一個第二設備將接收到的所述訊息直接轉發出去;若不包含,則所述其中另一個第二設備將自身的身份資訊作為轉發設備身份資訊添加至所述訊息中,並轉發出去。Further, after the other second device receives the message, the step of forwarding the message including the forwarding device identity information includes: the other second device receiving the message sent by the second device other than itself The other second device detects whether the message includes forwarding device identity information; if included, the other second device forwards the received message directly; if not, if The other second device adds its identity information as forwarding device identity information to the message and forwards it out.
進一步的,所述其中另一個第二設備接收所述訊息後,轉發包含轉發設備身份資訊的訊息的步驟包括:所述其中另一個第二設備接收到除自身外的其他第二設備發出的訊息;所述其中另一個第二設備將自身的身份資訊作為轉發設備身份資訊添加至所述訊息中,並轉發出去。Further, after the other second device receives the message, the step of forwarding the message including the forwarding device identity information includes: the other second device receiving the message sent by the second device other than itself The other second device adds its identity information as forwarding device identity information to the message and forwards it out.
進一步的,多個所述第二設備加入所述Mesh網路時,多個所述第二設備向所述第一設備提供自身的身份資訊。Further, when the plurality of the second devices join the Mesh network, the multiple second devices provide the identity information of the first device to the first device.
進一步的,所述第二設備每間隔設定時間發出一次訊息;所述第一設備每間隔所述設定時間收到包含所述轉發設備身份資訊的訊息;當所述第一設備超過所述設定間隔時間未收到包含所述轉發設備身份資訊的訊息時,則判斷所述其中一個第二設備丟失。Further, the second device sends a message every interval set time; the first device receives a message including the forwarding device identity information every interval of the set time; when the first device exceeds the set interval When the time does not receive the message including the forwarding device identity information, it is determined that one of the second devices is lost.
進一步的,所述第一設備根據所述轉發設備身份資訊定位丟失的所述其中一個第二設備的具體步驟包括:確定所述其中一個第二設備丟失前,所述第一設備最後收到的至少一條由所述其中一個第二設備發出並經其餘第二設備轉發的包含所述轉發設備身份資訊的訊息;根據所述訊息中包含的轉發設備身份資訊定位該轉發設備身份資訊對應的所述其中另一個第二設備的位置;根據所述其中另一個第二設備的位置定位丟失的所述其中一個第二設備的位置。Further, the specific step of the first device to locate the lost one of the second devices according to the forwarding device identity information includes: determining that the first device last received before the one of the second devices is lost At least one message that is sent by the one of the second devices and forwarded by the remaining second device, and includes the forwarding device identity information; and the forwarding device identity information corresponding to the forwarding device identity information is located according to the forwarding device identity information included in the message a location of another of the second devices; wherein the location of the one of the second devices is lost according to the location of the other of the second devices.
進一步的,所述其中一個第二設備發出訊息時採用廣播的方式;且其餘第二設備作為轉發設備接收並轉發所述訊息時亦採用廣播的方式。Further, the one of the second devices sends a message when the message is sent; and the other second device also uses the broadcast mode when receiving and forwarding the message as the forwarding device.
本發明還提供了一種定位系統,包括至少一個第一設備以及多個第二設備;所述第一設備構建有一Mesh網路,多個所述第二設備位於所述Mesh網路中並能夠在所述Mesh網路中傳遞訊息;所述第二設備皆包括發送單元及接收轉發單元,所述發送單元用於發送訊息,所述接收轉發單元用於接收其他第二設備發出的訊息並轉發出去;其中一個第二設備的發送單元發送訊息時,另一個第二設備的接收轉發單元在接收訊息並轉發時能夠將自身的身份資訊作為轉發設備身份資訊添加至所述訊息中並轉發出去;所述第一設備用於接收至少一台所述第二設備發出的訊息,並用於當所述第二設備的其中一個丟失時,根據所述訊息中的轉發設備身份資訊定位丟失的所述其中一個第二設備。The present invention further provides a positioning system including at least one first device and a plurality of second devices; the first device is configured with a mesh network, and the plurality of the second devices are located in the mesh network and can be Transmitting a message in the Mesh network; the second device includes a sending unit and a receiving and forwarding unit, the sending unit is configured to send a message, and the receiving and forwarding unit is configured to receive a message sent by another second device and forward the message. When the sending unit of one of the second devices sends a message, the receiving and forwarding unit of the other second device can add its own identity information as forwarding device identity information to the message and forward it when receiving the message and forwarding; The first device is configured to receive a message sent by at least one of the second devices, and configured to locate, when one of the second devices is lost, locate the lost one according to the forwarding device identity information in the message. Second device.
進一步的,所述第二設備發送訊息及轉發訊息時均採用廣播的方式。Further, the second device uses a broadcast mode when sending and forwarding messages.
與現有技術相比,本發明提供了一種定位方法及系統,藉由Mesh網路實現節點之間的通訊,Mesh網路能夠連接的設備可多達65536個,並且其覆蓋範圍在數百米以上,且還能夠藉由增加節點來繼續提高覆蓋面積,由此能夠極大的提高定位方法中可以定位的節點的數量及定位的面積。並且,在本發明的方案中,當一個節點的訊息被其他節點轉發時,轉發的另一個節點在轉發訊息時,可以將自身的身份資訊作為轉發設備身份資訊添加到訊息中再轉發,由此,當所述一個節點丟失時,可以根據該節點丟失前最後發出的訊息中的轉發設備身份資訊快速定位到對應的轉發節點,該轉發節點理論上是距離丟失節點距離最近的節點,這樣就可以在該轉發節點周圍進行尋找,可以比較快速、準確的找到該丟失的節點,從而提高了定位的速度及準確性。Compared with the prior art, the present invention provides a positioning method and system, and the Mesh network can realize communication between nodes, and the Mesh network can connect up to 65,536 devices, and the coverage thereof is several hundred meters or more. Moreover, it is also possible to continue to increase the coverage area by adding nodes, thereby greatly improving the number of nodes that can be located in the positioning method and the area of positioning. Moreover, in the solution of the present invention, when a node's message is forwarded by another node, another node that forwards may add its identity information as forwarding device identity information to the message and then forward the message. When the one node is lost, the corresponding forwarding node can be quickly located according to the forwarding device identity information in the last sent message before the node is lost. The forwarding node is theoretically the closest node to the lost node, so that Searching around the forwarding node can find the lost node relatively quickly and accurately, thereby improving the speed and accuracy of the positioning.
以下結合圖式及具體實施例對本發明提出的一種定位方法及定位系統作進一步詳細說明。根據下面說明及申請專利範圍,本發明的優點及特徵將更清楚。需說明的是,圖式均採用非常簡化的形式且均使用非精準的比例,僅用以方便、明晰地輔助說明本發明實施例的目的。A positioning method and a positioning system according to the present invention will be further described in detail below with reference to the drawings and specific embodiments. Advantages and features of the present invention will be apparent from the description and appended claims. It should be noted that the drawings are all in a very simplified form and both use non-precise proportions, and are only for convenience and clarity to assist the purpose of the embodiments of the present invention.
第1圖是本發明的定位方法的流程示意圖,第2圖是本發明的定位方法對應的結構圖,請參考第1圖及第2圖,本發明的定位方法包括:一第一設備10構建Mesh網路;多個第二設備20加入所述Mesh網路並在所述Mesh網路中傳遞訊息;當其中一個第二設備20發出訊息時,該訊息可以包括該其中一個第二設備20的身份資訊,以便能夠快速的確定該條訊息對應的設備為所述其中一個第二設備20;此時,其餘第二設備20作為轉發設備接收並轉發所述訊息,當其中另一個第二設備20接收到所述訊息後,轉發包含轉發設備身份資訊的訊息,所述轉發設備身份資訊包括除所述其中一個第二設備20外的其餘第二設備20中的至少一個的身份資訊;所述第一設備10接收至少一台所述第二設備20發出的包含所述轉發設備身份資訊的訊息;當所述其中一個第二設備20丟失時,所述第一設備10根據所述轉發設備身份資訊定位丟失的所述其中一個第二設備20。1 is a schematic flowchart of a positioning method of the present invention, and FIG. 2 is a structural diagram corresponding to a positioning method of the present invention. Referring to FIG. 1 and FIG. 2, the positioning method of the present invention includes: constructing a first device 10 a plurality of second devices 20 join the Mesh network and transmit messages in the Mesh network; when one of the second devices 20 sends a message, the message may include the second device 20 of the second device 20 Identity information, so as to be able to quickly determine that the device corresponding to the message is the second device 20; at this time, the remaining second device 20 receives and forwards the message as a forwarding device, and when another second device 20 After receiving the message, forwarding a message including forwarding device identity information, where the forwarding device identity information includes identity information of at least one of the remaining second devices 20 except the one of the second devices 20; A device 10 receives at least one message sent by the second device 20 that includes the forwarding device identity information; when the one of the second devices 20 is lost, the first device 10 The device forwards the information to locate the missing identity of one of the second device 20.
本發明Mesh網路實現節點(每一個終端設備可視為一個節點,即上述的多個第二設備20)之間的通訊,Mesh網路能夠連接的設備可多達65536個,並且其覆蓋範圍在數百米以上,且還能夠藉由增加節點來繼續提高覆蓋面積,由此能夠極大的提高定位方法中可以定位的節點的數量及定位的面積。並且,在本發明中,當一個節點的訊息被其他節點轉發時,轉發的另一個節點在轉發訊息時,可以將自身的身份資訊作為轉發節點身份資訊添加到訊息中再轉發,由此,當所述一個節點丟失時,可以根據該節點丟失前最後發出的訊息中的轉發節點身份資訊快速定位到對應的轉發節點,該轉發節點理論上是距離丟失節點距離最近的節點,這樣就可以在該轉發節點周圍進行尋找,可以比較快速、準確的找到該丟失的節點,從而提高了定位的速度及準確性。The Mesh network of the present invention implements communication between nodes (each terminal device can be regarded as one node, that is, the plurality of second devices 20 described above), and the Mesh network can connect up to 65536 devices, and the coverage thereof is More than a few hundred meters, and can continue to increase the coverage area by adding nodes, thereby greatly improving the number of nodes that can be located in the positioning method and the area of positioning. Moreover, in the present invention, when a node's message is forwarded by another node, another node that forwards may add its identity information as a forwarding node identity information to the message and then forward the message, thereby When the one node is lost, it can quickly locate the corresponding forwarding node according to the forwarding node identity information in the last sent message before the node is lost. The forwarding node is theoretically the node closest to the lost node, so that the node can be Searching around the forwarding node can find the lost node relatively quickly and accurately, thereby improving the speed and accuracy of the positioning.
作為本發明的一種實現方式,所述其中另一個第二設備20接收所述訊息後,轉發包含轉發設備身份資訊的訊息時,具體可以包括如下步驟:所述其中另一個第二設備20接收到除自身外的其他第二設備20發出的訊息;所述其中另一個第二設備20檢測所述訊息中是否包含轉發設備身份資訊;若包含,則所述其中另一個第二設備20將接收到的所述訊息直接轉發出去;若不包含,則所述其中另一個第二設備20將自身的身份資訊作為轉發設備身份資訊添加至所述訊息中,並轉發出去。這樣佈局的好處是,保證所述其中一個第二設備20的訊息在被轉發時,只有直接從所述其中一個第二設備20接收到訊息的第二設備20才可以將自身的身份資訊作為轉發設備身份資訊添加到訊息中轉發出去,而理論上直接從所述其中一個第二設備20接收到訊息的第二設備20是距離所述其中一個第二設備20最近的第二設備20,因此,在後續轉發時,轉發設備身份訊息中就只包含距離所述其中一個第二設備20最近的第二設備20的身份資訊,一方面,可以降低轉發訊息的數據量,減輕Mesh網路的承載,另一方面,當所述其中一個第二設備20丟失時,也可以直接根據轉發設備身份資訊定位到距離丟失設備最近的第二設備20的位置,以此來迅速定位丟失設備的位置。As an implementation of the present invention, when the second device 20 receives the message and forwards the message including the forwarding device identity information, the method may include the following steps: the other second device 20 receives the message. a message sent by the second device 20 other than itself; wherein the other second device 20 detects whether the message includes forwarding device identity information; if included, the other second device 20 will receive The message is forwarded directly; if not, the other second device 20 adds its identity information as forwarding device identity information to the message and forwards it out. The advantage of such a layout is that, when the message of one of the second devices 20 is guaranteed to be forwarded, only the second device 20 that receives the message directly from the one of the second devices 20 can forward its identity information. The device identity information is added to the message and forwarded out, and the second device 20 that theoretically receives the message directly from the one of the second devices 20 is the second device 20 that is closest to the one of the second devices 20, therefore, In the subsequent forwarding, the forwarding device identity message only includes the identity information of the second device 20 that is closest to the one of the second devices 20. On the one hand, the data amount of the forwarded message can be reduced, and the bearer of the Mesh network is reduced. On the other hand, when one of the second devices 20 is lost, the location of the second device 20 closest to the lost device can also be directly located according to the forwarding device identity information, thereby quickly locating the location of the lost device.
當然,本發明也並不限定其他的轉發設定方式,例如,作為另一種實現方案,每個第二設備20在訊息轉發時均可以將自身的身份資訊作為轉發設備身份資訊添加到訊息中轉發出去,這樣,所述其中另一個第二設備20接收所述訊息後,轉發包含轉發設備身份資訊的訊息的步驟就如下述:所述其中另一個第二設備20接收到除自身外的其他第二設備20發出的訊息;所述其中另一個第二設備20將自身的身份資訊作為轉發設備身份資訊添加至所述訊息中,並轉發出去。其中,每個第二設備20在將自身的身份資訊作為轉發設備身份資訊添加至所述訊息時,轉發設備身份資訊中還包括時間資訊,即所有的轉發設備可以根據時間排序,根據時間的先後可以確定哪些設備更加靠近所述其中一個第二設備20。Of course, the present invention is not limited to other forwarding setting manners. For example, as another implementation manner, each second device 20 can add its own identity information as forwarding device identity information to the message during message forwarding. In this way, after the other second device 20 receives the message, the step of forwarding the message including the forwarding device identity information is as follows: the other second device 20 receives the second other than itself. The message sent by the device 20; wherein the other second device 20 adds its identity information as forwarding device identity information to the message and forwards it out. When the second device 20 adds the identity information of the device to the message as the forwarding device identity information, the forwarding device identity information further includes time information, that is, all the forwarding devices can be sorted according to time, according to the time sequence. It can be determined which devices are closer to the one of the second devices 20.
為了便於第一設備10能夠精確定位第二設備20,在多個所述第二設備20加入所述Mesh網路時,多個所述第二設備20向所述第一設備10提供自身的身份資訊。In order to facilitate the first device 10 to accurately locate the second device 20, when the plurality of the second devices 20 join the mesh network, the plurality of the second devices 20 provide the first device 10 with its own identity. News.
採用本發明的定位方法管理第二設備20時,為了便於判斷是否有第二設備20丟失,作為本發明的一種實現方案,所述其中一個第二設備20可以每間隔設定時間發出一次訊息,經過其他第二設備20的轉發後訊息達到所述第一設備10,相應的,所述第一設備10也會每間隔所述設定時間收到包含所述轉發設備身份資訊的訊息;當所述第一設備10超過所述設定間隔時間未收到包含所述轉發設備身份資訊的訊息時,則可以判斷所述其中一個第二設備20丟失。When the second device 20 is managed by the positioning method of the present invention, in order to facilitate the determination of whether the second device 20 is lost, as one implementation of the present invention, one of the second devices 20 may send a message every time set interval. The forwarded message of the other second device 20 reaches the first device 10, and correspondingly, the first device 10 also receives a message including the forwarding device identity information every interval of the set time; When a device 10 does not receive the message including the forwarding device identity information within the set interval time, it may be determined that one of the second devices 20 is lost.
此外,還可以採用其他方案來判斷第二設備20是否丟失,例如,可以藉由第一設備10發送驗證詢問訊息給第二設備20,經過第二設備20的轉發後可以達到每個第二設備20,第二設備20再進行響應,響應訊息經過轉發後傳遞給第一設備10,當有一個第二設備20丟失時,將不會有響應訊息反饋,由此,可以判斷第二設備20丟失。In addition, other schemes may be used to determine whether the second device 20 is lost. For example, the first device 10 may send a verification query message to the second device 20, and after forwarding by the second device 20, each second device may be reached. 20, the second device 20 responds again, and the response message is forwarded to the first device 10. After a second device 20 is lost, there will be no response message feedback, thereby determining that the second device 20 is lost. .
當所述其中一個第二設備20丟失後,所述第一設備10根據所述轉發設備身份資訊定位丟失的所述其中一個第二設備20的具體步驟包括:確定所述其中一個第二設備20丟失前,所述第一設備10最後收到的至少一條由所述其中一個第二設備20發出並經其餘第二設備20轉發的包含所述轉發設備身份資訊的訊息;根據所述訊息中包含的轉發設備身份資訊定位該轉發設備身份資訊對應的所述其中另一個第二設備20的位置;根據所述其中另一個第二設備20的位置定位丟失的所述其中一個第二設備20的位置。After the one of the second devices 20 is lost, the specific step of the first device 10 to locate the lost one of the second devices 20 according to the forwarding device identity information includes: determining the one of the second devices 20 Before the loss, the first device 10 finally receives at least one message sent by the one of the second devices 20 and forwarded by the remaining second device 20, including the forwarding device identity information; according to the message Forwarding device identity information locates the location of the other second device 20 corresponding to the forwarding device identity information; the location of the one of the second devices 20 lost according to the location of the other second device 20 .
在本發明的方案中,不管是所述其中一個第二設備20發出訊息時,還是其餘第二設備20作為轉發設備接收並轉發所述訊息時,均可以採用廣播的方式進行訊息發送。這樣,當所述其中一個第二設備20發出訊息時,可能會有兩個以上的第二設備20均從所述其中一個第二設備20直接收到訊息,此時,這兩個以上的第二設備20均會將自身的身份資訊作為轉發設備身份資訊添加到訊息中轉發出去,這樣,當所述其中一個第二設備20丟失時,就可以藉由兩條以上的包含不同轉發設備身份資訊的訊息去定位丟失的設備,使得定位效果更加精確。In the solution of the present invention, whether the one of the second devices 20 sends a message, or the other second device 20 receives and forwards the message as the forwarding device, the message may be sent by using a broadcast manner. Thus, when one of the second devices 20 sends a message, there may be more than two second devices 20 receiving the message directly from the one of the second devices 20. At this time, the two or more The second device 20 adds the identity information of the device as the forwarding device identity information to the message, so that when one of the second devices 20 is lost, more than two different forwarding device identity information may be included. The message to locate the missing device makes the positioning more accurate.
本發明還提供了一種定位系統,如第2圖及第3圖所示,包括至少一個第一設備10以及多個第二設備20;所述第一設備10構建有一Mesh網路,多個所述第二設備20位於所述Mesh網路中並能夠在所述Mesh網路中傳遞訊息;所述第二設備20包括發送單元201及接收轉發單元202,所述發送單元201用於發送訊息,所述接收轉發單元202用於接收其他第二設備20發出的訊息並轉發出去;其中一個第二設備20的發送單元201發送訊息時,其中另一個第二設備20的接收轉發單元202在接收訊息並轉發時能夠將自身的身份資訊作為轉發設備身份資訊添加至所述訊息中並轉發出去;所述第一設備10用於接收至少一台所述第二設備20發出的訊息,並用於當所述第二設備20的其中一個丟失時,根據所述訊息中的轉發設備身份資訊定位丟失的所述其中一個第二設備20。其中,所述第二設備20發送訊息及轉發訊息時均採用廣播的方式。The present invention also provides a positioning system, as shown in FIGS. 2 and 3, including at least one first device 10 and a plurality of second devices 20; the first device 10 is constructed with a mesh network, and multiple devices The second device 20 is located in the Mesh network and can transmit a message in the Mesh network. The second device 20 includes a sending unit 201 and a receiving and forwarding unit 202, where the sending unit 201 is configured to send a message. The receiving and forwarding unit 202 is configured to receive the message sent by the other second device 20 and forward it out; when the sending unit 201 of the second device 20 sends the message, the receiving and forwarding unit 202 of the other second device 20 receives the message. And forwarding, the identity information of the device is added to the message and forwarded to the message; the first device 10 is configured to receive at least one message sent by the second device 20, and used to When one of the second devices 20 is lost, the one of the second devices 20 that is lost is located according to the forwarding device identity information in the message. The second device 20 uses a broadcast mode when sending and forwarding messages.
下面,藉由一個具體的實例來對本發明的定位方法及系統進行進一步詳細的介紹,藉由該具體的實例,本發明的優點及特徵將更清楚。Hereinafter, the positioning method and system of the present invention will be further described in detail by way of a specific example, and the advantages and features of the present invention will become more apparent by the specific example.
本實例以旅遊團出遊為例,一個旅遊團通常包括一名導遊及多名遊客,遊客中的小孩或老人經常容易發生掉隊走丟的情況,採用本發明的定位系統及方法後,將有助於導遊對遊客進行管理,及時發現丟失旅客進行找回。This example takes a tour group as an example. A tour group usually includes a tour guide and a number of tourists. The children or elderly people in the tourists are often prone to falling behind. The positioning system and method of the present invention will help. The tour guide manages the tourists and finds lost passengers in time to retrieve them.
本實例中,導遊配備了一具有藍牙模組的手機(當然在其他方案中,也可以是一藍牙設備以及終端,藍牙設備可以與該終端通訊),該具有藍牙模組的手機作為第一設備10構建一Mesh網路,每個遊客均佩戴一藍牙設備(例如具有藍牙功能的手機),該藍牙設備作為第二設備20加入該Mesh網路中進行訊息傳遞,並且將每個遊客的身份資訊提供給導遊,該身份資訊可以為設備的編號,還可以是遊客的手機的IMEI(International Mobile Equipment Identity,移動設備國際識別碼,又稱為國際移動設備標識)。這樣,就構建了一個定位系統。In this example, the tour guide is equipped with a mobile phone with a Bluetooth module (of course, in other schemes, it may also be a Bluetooth device and a terminal, the Bluetooth device can communicate with the terminal), and the mobile phone with the Bluetooth module is used as the first device. 10 constructing a mesh network, each of which wears a Bluetooth device (for example, a Bluetooth-enabled mobile phone), which is added as a second device 20 to the Mesh network for message transmission, and identifies each visitor's identity information. Provided to the tour guide, the identity information may be the number of the device, or may be the IMEI (International Mobile Equipment Identity, also known as the International Mobile Equipment Identity) of the mobile phone of the visitor. In this way, a positioning system is constructed.
如第4圖所示,示意性的標出了5個節點a,b,c,d及e,代表5名遊客,其中,每個節點均可以發送訊息,也可以接收轉發訊息,訊息藉由5個節點的轉發傳遞給第一設備10,即導遊,5個節點的位置可以任意變化,即遊客處於活動狀態。以下以節點a發送訊息,節點b、c、d、e轉發訊息為例進行介紹,節點a、b、c、d及e的實時位置如第4圖所示。As shown in Figure 4, five nodes a, b, c, d and e are schematically indicated, representing 5 visitors, each of which can send messages or receive forwarding messages. The forwarding of the five nodes is transmitted to the first device 10, that is, the tour guide, and the positions of the five nodes can be arbitrarily changed, that is, the tourists are in an active state. The following is an example of sending a message by node a, and forwarding messages by nodes b, c, d, and e. The real-time positions of nodes a, b, c, d, and e are as shown in FIG.
當節點a發送訊息時,該訊息可以包括遊客a的身份資訊。此時在節點a發送訊息的可接收範圍內的其他節點可以對所述訊息進行轉發,該接收範圍的大小根據藍牙設備的通訊距離決定。When node a sends a message, the message may include the identity information of visitor a. At this time, other nodes in the receivable range in which the node a sends the message may forward the message, and the size of the receiving range is determined according to the communication distance of the Bluetooth device.
此時,節點b由於距離節點a最近,理論上是最先收到直接來自於節點a發出的訊息的,此時,節點b可以對接收到的訊息進行驗證,確認是否包含轉發設備身份資訊,若不包含轉發設備身份資訊,則節點b將自身的身份資訊作為轉發設備身份資訊添加到訊息中再轉發出去。At this time, the node b is the closest to the node a, and is theoretically the first to receive the message directly from the node a. At this time, the node b can verify the received message to confirm whether the forwarding device identity information is included. If the forwarding device identity information is not included, the node b adds its identity information as forwarding device identity information to the message and then forwards it out.
節點c接收到節點b轉發的訊息,此時,節點c同樣可以對接收到的訊息進行驗證,確認是否包含轉發設備身份資訊,若不包含轉發設備身份資訊,則節點c也可以將自身的身份資訊作為轉發設備身份資訊添加到訊息中再轉發出去。此時,由於節點b的轉發訊息中已經包含了轉發設備身份資訊(節點b的身份資訊),因此,節點c可以不添加身份資訊直接將節點b發過來的訊息轉發出去。The node c receives the message forwarded by the node b. At this time, the node c can also verify the received message to confirm whether the forwarding device identity information is included. If the forwarding device identity information is not included, the node c can also identify the identity of the device. The information is added to the message as forwarding device identity information and then forwarded out. At this time, since the forwarding information of the node b already includes the forwarding device identity information (identity information of the node b), the node c can directly forward the message sent by the node b without adding the identity information.
依此類推,節點d及節點e接收到訊息後,進行與節點c相似的操作將訊息轉發出去,最終第一設備10可以接收到轉發的訊息,該訊息包含了轉發設備身份資訊(節點b的身份資訊)以及節點a的身份資訊。And so on, after receiving the message, the node d and the node e perform an operation similar to that of the node c to forward the message, and finally the first device 10 can receive the forwarded message, where the message includes the forwarding device identity information (node b Identity information) and identity information of node a.
需要注意的是,節點發送訊息及轉發訊息均是藉由廣播的形式發送,因此,一個節點發出的訊息會被在其通訊距離內的所有其他節點接收到並轉發出去,這樣就會有多條轉發訊息。例如,假設節點b及c均在a的通訊範圍內,節點b距離節點a更近。此時,節點a發出的訊息會被節點b及節點c接收到,且兩者均會將各自的身份資訊作為轉發設備身份資訊添加到訊息中進行轉發,即至少會有兩條包含不同轉發設備身份資訊的訊息在Mesh網路傳遞,此時,為了分辨哪個節點距離a更近,可以在轉發設備身份資訊中添加節點接收訊息的時間,這樣,先收到訊息的節點距離節點a更近,以便更加精準的進行定位。It should be noted that the node sends and forwards the message by broadcast. Therefore, the message sent by one node will be received and forwarded by all other nodes within its communication distance. Forward the message. For example, assume that nodes b and c are both within the communication range of a, and node b is closer to node a. At this time, the message sent by node a will be received by node b and node c, and both will add their identity information as forwarding device identity information to the message for forwarding, that is, at least two will contain different forwarding devices. The information of the identity information is transmitted on the Mesh network. In this case, in order to distinguish which node is closer to a, the time at which the node receives the message may be added in the forwarding device identity information, so that the node that first receives the message is closer to the node a. In order to more accurately locate.
此外,節點b、c、d及e在轉發訊息時,也可以不經過驗證,即不確認接收到的訊息中是否包含轉發設備身份資訊,而是直接將自身的身份資訊添加到訊息中,即一條轉發設備身份資訊將包含多個節點的身份資訊,此時,我們同樣可以採取在轉發設備身份資訊中添加節點接收訊息的時間的方法,即可以藉由時間進行排序,這樣就可以確認哪個節點距離節點a更近。In addition, the nodes b, c, d, and e may not be authenticated when forwarding the message, that is, if the received message does not include the forwarding device identity information, the identity information is directly added to the message, that is, A forwarding device identity information will contain the identity information of multiple nodes. In this case, we can also adopt the method of adding the time when the node receives the message in the forwarding device identity information, that is, it can be sorted by time, so that which node can be confirmed. Closer to node a.
為了判斷節點a是否丟失,我們可以採取多種方法進行驗證。例如,可以設定節點a每隔設定時間(例如2分鐘)發送一次訊息,訊息經過其他節點的傳遞後傳遞至第一設備10(即傳遞給導遊),此時,第一設備10也會每間隔所述設定時間收到包含所述轉發設備身份資訊的訊息;一旦當所述第一設備10超過所述設定間隔時間未收到包含所述轉發設備身份資訊的訊息時,則可以判斷節點a丟失,即遊客a走失。當然,也可以採取其他方式來確認節點a是否丟失,例如,第一設備10可以發送驗證詢問訊息藉由其他節點傳遞給節點a,節點a進行響應,響應訊息經過轉發後傳遞給第一設備10,當節點a丟失時,將不會有響應訊息反饋,由此,可以判斷節點a丟失。In order to determine whether node a is lost, we can take a variety of methods to verify. For example, the node a can be configured to send a message every set time (for example, 2 minutes), and the message is transmitted to the first device 10 after being transmitted by other nodes (that is, delivered to the tour guide). At this time, the first device 10 also has an interval. Receiving, by the set time, a message including the forwarding device identity information; once the first device 10 does not receive the message including the forwarding device identity information when the first device 10 exceeds the set interval, the node a may be determined to be lost. That is, the visitor a lost. Certainly, the method may also be used to confirm whether the node a is lost. For example, the first device 10 may send a verification query message to the node a by another node, and the node a responds, and the response message is forwarded and then transmitted to the first device 10. When the node a is lost, there will be no response message feedback, and thus, it can be judged that the node a is lost.
當節點a丟失,即導遊發現遊客a走失後,會立即找到節點a丟失前一刻,第一設備10收到的對應於節點a的包含轉發設備身份資訊的訊息,根據該訊息中包含的轉發設備身份資訊可以定位距離節點a走失前距離最近的節點的位置,即定位到節點b的位置,此時,就可以在節點b附近進行尋找定位,快速找到丟失的節點a。這樣,一方面,導遊可以及時知曉是否有遊客走失,另一方面,還可以發現遊客走失前所在的位置,從而能夠迅速定位到走失的遊客。When the node a is lost, that is, after the tour guide finds that the visitor a is lost, it immediately finds the message that the first device 10 receives the identity information of the forwarding device corresponding to the node a immediately before the node a is lost, according to the forwarding device included in the message. The identity information can locate the location of the node closest to the distance before the node a is lost, that is, locate the location of the node b. At this time, the location can be searched near the node b, and the lost node a can be quickly found. In this way, on the one hand, the tour guide can know in time whether there are tourists lost, on the other hand, you can also find out where the tourists were before the loss, so that they can quickly locate the lost tourists.
其他節點b、c、d及e發送訊息時,與節點a相似,在此不再贅述。The other nodes b, c, d, and e are similar to the node a when they send a message, and are not described here.
此外,本發明的定位方法及系統除了應用在上述實例的旅遊團管理上,還可以用於物品的管理上,例如錢包、手機等物件,可以藉由上述方法對這些易丟失物品進行管理。In addition, the positioning method and system of the present invention can be applied to the management of articles, such as a wallet, a mobile phone, and the like, in addition to the tour group management of the above example, and these easily lost items can be managed by the above method.
綜上所述,本發明提供了一種定位方法及系統,藉由Mesh網路實現節點之間的通訊,Mesh網路能夠連接的設備可多達65536個,並且其覆蓋範圍在數百米以上,且還能夠藉由增加節點來繼續提高覆蓋面積,由此能夠極大的提高定位方法中可以定位的節點的數量及定位的面積。並且,在本發明的方案中,當一個節點的訊息被其他節點轉發時,轉發的另一個節點在轉發訊息時,可以將自身的身份資訊作為轉發設備身份資訊添加到訊息中再轉發,由此,當所述一個節點丟失時,可以根據該節點丟失前最後發出的訊息中的轉發設備身份資訊快速定位到對應的轉發節點,該轉發節點理論上是距離丟失節點距離最近的節點,這樣就可以在該轉發節點周圍進行尋找,可以比較快速、準確的找到該丟失的節點,從而提高了定位的速度及準確性。In summary, the present invention provides a positioning method and system. The Mesh network can realize communication between nodes, and the Mesh network can connect up to 65,536 devices, and the coverage thereof is several hundred meters or more. Moreover, it is also possible to continue to increase the coverage area by adding nodes, thereby greatly improving the number of nodes that can be located in the positioning method and the area of positioning. Moreover, in the solution of the present invention, when a node's message is forwarded by another node, another node that forwards may add its identity information as forwarding device identity information to the message and then forward the message. When the one node is lost, the corresponding forwarding node can be quickly located according to the forwarding device identity information in the last sent message before the node is lost. The forwarding node is theoretically the closest node to the lost node, so that Searching around the forwarding node can find the lost node relatively quickly and accurately, thereby improving the speed and accuracy of the positioning.
上述描述僅是對本發明較佳實施例的描述,並非對本發明範圍的任何限定,本發明領域的普通技術人員根據上述揭示內容做的任何變更、修飾,均屬申請專利範圍書的保護範圍。The above description is only for the description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes and modifications made by those skilled in the art based on the above disclosure are within the scope of the claims.
10‧‧‧第一設備10‧‧‧First equipment
20‧‧‧第二設備20‧‧‧second equipment
201‧‧‧發送單元201‧‧‧Send unit
202‧‧‧接收轉發單元202‧‧‧Receiving and forwarding unit
a、b、c、d、e‧‧‧節點a, b, c, d, e‧‧‧ nodes
S101、S102、S103、S104、S105、S106、S107、S108、S109、S110‧‧‧步驟Steps S101, S102, S103, S104, S105, S106, S107, S108, S109, S110‧‧
第1圖繪示本發明一實施例提供的定位方法的流程圖;FIG. 1 is a flowchart of a positioning method according to an embodiment of the present invention;
第2圖繪示本發明一實施例提供的定位系統的結構圖;2 is a structural diagram of a positioning system according to an embodiment of the present invention;
第3圖繪示本發明一實施例提供的定位系統的第二設備之間的通訊示意圖;FIG. 3 is a schematic diagram of communication between second devices of a positioning system according to an embodiment of the present invention; FIG.
第4圖繪示本發明一實施例提供的5個節點之間訊息傳遞的示意圖。FIG. 4 is a schematic diagram of message transmission between five nodes according to an embodiment of the present invention.
Claims (10)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711375545.0A CN109936867A (en) | 2017-12-19 | 2017-12-19 | A kind of localization method and positioning system |
CN201711375545.0 | 2017-12-19 | ||
??201711375545.0 | 2017-12-19 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201929582A true TW201929582A (en) | 2019-07-16 |
TWI681682B TWI681682B (en) | 2020-01-01 |
Family
ID=66983794
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107123045A TWI681682B (en) | 2017-12-19 | 2018-07-04 | Positioning method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109936867A (en) |
TW (1) | TWI681682B (en) |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7760109B2 (en) * | 2005-03-30 | 2010-07-20 | Memsic, Inc. | Interactive surveillance network and method |
US7720037B2 (en) * | 2006-08-03 | 2010-05-18 | Aol Inc. | Wireless social networking |
CN101202769B (en) * | 2006-12-14 | 2011-08-24 | 华为技术有限公司 | Node identification method and system in wireless mesh network |
US8695089B2 (en) * | 2007-03-30 | 2014-04-08 | International Business Machines Corporation | Method and system for resilient packet traceback in wireless mesh and sensor networks |
CN101110732B (en) * | 2007-07-27 | 2011-05-04 | 北京大学 | Method for relatively locating backbone node in wireless meshed network |
CN101697635B (en) * | 2009-09-16 | 2011-10-12 | 重庆大学 | Access method and control method of cognitive wireless MESH network |
US20140347973A1 (en) * | 2013-05-24 | 2014-11-27 | WorldStrides | System for Maintaining the Integrity of a Tour Group |
EP4216589B1 (en) * | 2014-06-24 | 2024-08-07 | Google LLC | Mesh network commissioning |
US9386605B2 (en) * | 2014-07-11 | 2016-07-05 | Motorola Solutions, Inc. | Mobile dynamic mesh cluster bridging method and apparatus at incident scenes |
CN104469882B (en) * | 2014-11-19 | 2018-04-27 | 广州杰赛科技股份有限公司 | The cut-in method and user terminal of wireless mesh network |
US9538331B2 (en) * | 2015-06-03 | 2017-01-03 | Vivint, Inc. | Narrow beam mesh network |
CN104902530B (en) * | 2015-06-10 | 2018-06-01 | 东南大学 | A kind of location-aided routing protocols method applied in Wireless Mesh network |
CN105873023A (en) * | 2016-05-09 | 2016-08-17 | 深圳市天工测控技术有限公司 | Indoor positioning system and method based on BLE mesh networking |
CN106658731B (en) * | 2016-12-20 | 2019-12-24 | 西安电子科技大学 | Resource Scheduling Method for Wireless MESH Networks |
CN107462868A (en) * | 2017-10-09 | 2017-12-12 | 深圳市芯联锐创科技有限公司 | Indoor locating system based on bluetooth MESH |
-
2017
- 2017-12-19 CN CN201711375545.0A patent/CN109936867A/en active Pending
-
2018
- 2018-07-04 TW TW107123045A patent/TWI681682B/en active
Also Published As
Publication number | Publication date |
---|---|
CN109936867A (en) | 2019-06-25 |
TWI681682B (en) | 2020-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11671228B2 (en) | Method and apparatus for MoCA network with protected set-up | |
CN111263338B (en) | Network distribution method of Bluetooth Mesh network, related network distribution equipment and system | |
CA2575971A1 (en) | Enhanced techniques for using core based nodes for state transfer | |
CN107682857B (en) | Data sharing method of Zigbee network, gateway equipment and Zigbee network system | |
CN105409187B (en) | Device and method for performing wireless docking operation in communication system supporting Universal Plug and Play protocol | |
US10716048B2 (en) | Detecting critical links in bluetooth mesh networks | |
CN106604266A (en) | Intelligent equipment system connection method, intelligent equipment and intelligent equipment access system | |
CN105743752B (en) | The signal acquisition of radio gang meshed network, data transmission method and its internal node device | |
US12177217B2 (en) | Method and apparatus for MoCA network with protected set-up | |
US20150373692A1 (en) | Anonymous fingerprint generation for mobile communication device | |
JP2013175916A5 (en) | ||
CN100461723C (en) | Routing Update Method for Micro Mobility Networks | |
CN103716230B (en) | Message sending method, device and server | |
CN107113688A (en) | simple mesh network for wireless transceiver | |
CN109391968A (en) | Communication means and communication device | |
CN108684021B (en) | Bluetooth low-power-consumption communication method and device | |
US20190281444A1 (en) | Wireless communication apparatus, communication system and wireless communication apparatus control method to exchange services | |
US20170041861A1 (en) | Method of Communicating to Selected Nodes in a Mesh Network | |
TWI681682B (en) | Positioning method and system | |
US20090157878A1 (en) | Method and system for connecting lower nodes to one another to increase scalability in zigbee network | |
CN116887381A (en) | Bluetooth communication system with multiple Bluetooth nodes | |
US11246081B2 (en) | Detecting critical links in bluetooth mesh networks | |
CN104079479A (en) | Control method and control device | |
CN107426752A (en) | Bridged link automatic matching method and WDS bridged link systems | |
CN106878113B (en) | Link connectivity detection method and device |