HK1238467B - Method for affiliating a cluster of electronic devices communicating via a wireless network, associated electronic device implementing said method and system - Google Patents
Method for affiliating a cluster of electronic devices communicating via a wireless network, associated electronic device implementing said method and systemInfo
- Publication number
- HK1238467B HK1238467B HK17112203.9A HK17112203A HK1238467B HK 1238467 B HK1238467 B HK 1238467B HK 17112203 A HK17112203 A HK 17112203A HK 1238467 B HK1238467 B HK 1238467B
- Authority
- HK
- Hong Kong
- Prior art keywords
- message
- communication device
- cluster
- maa
- identifier
- Prior art date
Links
Description
本发明涉及一种用于加入通信电子设备的集群的方法,所述方法由通过无线通信网成对通信的所述电子设备中之一的处理单元来实施。The present invention relates to a method for joining a cluster of communicating electronic devices, the method being implemented by a processing unit of one of the electronic devices communicating in pair via a wireless communication network.
本发明此外涉及包括多个实施这样的加入方法的设备的系统。The invention furthermore relates to a system comprising a plurality of devices for carrying out such an incorporation method.
作为优选但非限制性的应用示例,本发明通过与量的收集相关的应用示例被描述,所述量诸如例如温度、湿度率、光强度、振动频率、冲击等等,与物资或货物的容器、或更一般地容器的内部和/或外部环境相关联。根据所述应用示例,所述容器被堆积和/或堆叠在存储场地上又或在运输平台上巡游,所述运输平台诸如集装箱船舶、货物火车或任何其它合适的运输平台。每个容器与所述通信设备之一协作。这些通信设备负责收集所述量并且将所述量通过服务消息而发送到目的地为作为“集群头(tête de grappe)”或根据英语术语的“head(头端)”起作用的成对设备。所述头端的任务之一在于实施所确定的服务。这样的服务可以例如在于聚合通过通信设备所收集的数据并且通过卫星联接或无线电话联接类型的长距离或长程的联接而将所述数据在其聚合之后传输到远程实体。然而,本发明将不受限于该单一的应用示例。更一般地,“集群头”设备负责实施与通过其配对收集和发送的数据相关联的给定服务,所述给定服务能够涉及监测或警报管理,其代替或补充与远程实体的通信。As a preferred but non-limiting example application, the present invention is described using an example application related to the collection of quantities, such as temperature, humidity, light intensity, vibration frequency, shock, and the like, associated with containers of goods or cargo, or more generally, the internal and/or external environment of the container. According to this example application, the containers are stacked and/or piled on a storage site or traveling on a transport platform, such as a container ship, a freight train, or any other suitable transport platform. Each container collaborates with one of the communication devices. These communication devices are responsible for collecting the quantities and transmitting them via service messages to a pair of devices acting as a "cluster head" or, as the English terminology suggests, a "head." One of the tasks of the head end is to implement a specified service. Such a service may, for example, aggregate the data collected by the communication devices and transmit the aggregated data to a remote entity via a long-range or long-distance connection, such as a satellite connection or a wireless telephone connection. However, the present invention is not limited to this single example application. More generally, a "cluster head" device is responsible for implementing a given service associated with the data collected and sent by its pair, which can relate to monitoring or alarm management, either instead of or in addition to communication with a remote entity.
现今存在通信对象的网络的众多类型或配置。图1因此示意性地呈现了两个无线通信网络示例R1和R2。无论所操作的网络如何,每个通信设备(同样且一般地将其命名为这样的网络中的“节点”)实施一种通信方法,从而使得它能够与第三节点或成对节点交换数据和/或服务消息。因此,R1网络设置了(mettre en situation)在图1中分别标记的四十个通信电子设备,a1至a8、b1至b8、c1至c8、d1至d8以及e1至e8。在其旁边,R2网络设置了在图1中分别标记的二十五个通信电子设备,f1至f5、g1至g5、h1至h5、i1至i5以及j1至j5。Today, there are numerous types or configurations of networks for communicating objects. Figure 1 schematically illustrates two examples of wireless communication networks, R1 and R2. Regardless of the network in which they operate, each communication device (also and generally referred to as a "node" in such a network) implements a communication method that enables it to exchange data and/or service messages with a third node or paired nodes. Thus, the R1 network comprises forty communication electronic devices, labeled in Figure 1: a1 to a8, b1 to b8, c1 to c8, d1 to d8, and e1 to e8. Next to these, the R2 network comprises twenty-five communication electronic devices, labeled in Figure 1: f1 to f5, g1 to g5, h1 to h5, i1 to i5, and j1 to j5.
无论是利用单跳网络(或根据英语术语的“single-hop network(单跳网络)”),诸如,作为示例,结合图1描述的R2网络,还是利用多跳网络(或者根据英语术语的“multi-hopnetwork(多跳网络)”),诸如,作为示例,结合图1描述的R1网络,我们命名为“源”节点的第一节点可以准备服务消息,所述服务消息在图1中通过单线条的双箭头来表示、包括与(作为非限制性的示例)通过与所述第一节点协作的传感器所测量的量关联的数据、目的地为第二“收件方”节点。Whether using a single-hop network (or "single-hop network" in English terms), such as, by way of example, the R2 network described in conjunction with FIG1 , or a multi-hop network (or "multi-hop network" in English terms), such as, by way of example, the R1 network described in conjunction with FIG1 , a first node, which we designate as a "source" node, can prepare a service message, represented in FIG1 by a double arrow with a single line, comprising data associated with (as a non-limiting example) a quantity measured by a sensor cooperating with the first node, and destined for a second "recipient" node.
根据单跳网络,在第一和第二节点之间的通信是直接的。相反,根据多跳网络,这样的通信可以是间接的。因此,从源节点寻址的消息可以通过一个或多个“中继器或中间”节点被中继,所述“中继器或中间”节点的相应作用在于重发射来源于源节点的所述消息以便所述消息最后被发送向“收件方”节点并且被该后者接收。源节点,其能够直接或间接地与头端节点通信,构成“集群(grappe)”或根据英语术语的“cluster(集群)”,诸如,作为示例,通过图1的虚线圆框所表示的集群C1和C2。将如下的行进一般地命名为“路由”:遵循该行进,发源于第一源节点的服务消息经由一个或多个中继器节点到达目的地第二收件方节点。因此,根据图1,从节点a4发出的、目的地到节点d2的消息将接连通过中继器节点b4和c3而被中继。In a single-hop network, communication between the first and second nodes is direct. In contrast, in a multi-hop network, such communication can be indirect. Thus, a message addressed to a source node can be relayed via one or more "repeater or intermediate" nodes, whose respective function is to retransmit the message originating from the source node so that it is ultimately sent to and received by the "recipient" node. Source nodes, which are capable of communicating directly or indirectly with a headend node, form "clusters" or, in English, "clusters," such as, for example, clusters C1 and C2, represented by the dashed circles in Figure 1. A "route" is generally defined as the path by which a service message originating from a first source node reaches its destination, a second recipient node, via one or more repeater nodes. Thus, according to Figure 1, a message sent from node a4 and destined for node d2 will be relayed successively via repeater nodes b4 and c3.
在单跳或多跳通信网络中的通信一般通过无线电途径来被实现。这样的通信一般是短程的,也就是说大约为几米到几十米,以使得逐渐地服务消息在不同的节点之间传输。当假定数据被发送到的目的地为服务器或更一般地远程实体的时候,第二通信模式例如通过GSM(根据英语术语的“Global System for Mobile Communications(全球移动通信系统)”)或GPRS(根据英语术语的“General Packet Radio Service(通用分组无线电服务)”)途径、甚至还通过卫星联接来被实施。Communication in single-hop or multi-hop communication networks is typically accomplished via radio. Such communication is typically short-range, meaning on the order of a few to several dozen meters, so that service messages are transmitted between different nodes. If the data is destined for a server or, more generally, a remote entity, a second communication mode is implemented, for example, via GSM (Global System for Mobile Communications) or GPRS (General Packet Radio Service), or even via satellite connections.
在节点之间的交换、通过这些节点基于所交换的数据而实施的处理或计算、以及在网络或通信设备集群中的所收集的数据的可能的且远程的发送同样都是消耗电能量的动作。The exchanges between nodes, the processing or calculations performed by these nodes based on the exchanged data, and the possible remote transmission of the collected data within a network or a cluster of communication devices are likewise actions that consume electrical energy.
如图2作为优选示例所指示的,节点一般并且主要在于电子设备10,所述电子设备10包括处理单元11,所述处理单元11例如以微控制器的形式、与数据存储器12、可能是程序存储器14协作,所述存储器可以可能地是分离的。处理单元11经由内部通信总线与所述存储器12和14协作。电子设备10一般包括用于测量与设备10的环境相关联的物理量的一个或多个传感器15。这样的传感器可以测量环境温度、湿度率或光的存在和/或不存在。设备10此外包括第一通信装置13,所述第一通信装置13与处理单元11协作并且确保与位于通信范围内的任何其它电子设备10i的无线邻近通信。它还可以包括“长距离”类型的第二通信装置16,所述第二通信装置16还与处理单元11协作。这些第二通信装置使得这样的设备10能够向远程实体、例如RS服务器、通过MC消息而传输数据,所述MC消息通过RR网络而分发,所述RR网络利用例如GSM、GPRS或卫星技术。为了运转,也就是说,为了使处理单元11实施从所述处理单元对记录在程序存储器14中的程序P的指令的执行或解译而得到的方法,设备10包括电能量源17,所述电能量源17例如以一个或多个电池的形式。节点能够通信或完全简单地能够运转的能力与所述节点的剩余且可用的能量容量直接关联。As indicated by way of example in FIG2 , a node typically and primarily consists of an electronic device 10 comprising a processing unit 11, for example in the form of a microcontroller, cooperating with a data memory 12 and possibly a program memory 14, which may be separate. Processing unit 11 cooperates with memories 12 and 14 via an internal communication bus. Electronic device 10 typically includes one or more sensors 15 for measuring physical quantities associated with the environment of device 10. Such sensors may measure ambient temperature, humidity, or the presence and/or absence of light. Device 10 also includes first communication means 13, which cooperate with processing unit 11 and ensure wireless proximity communication with any other electronic devices 10i within communication range. It may also include second communication means 16 of the "long-range" type, also cooperating with processing unit 11. These second communication means enable such a device 10 to transmit data to a remote entity, such as an RS server, via MC messages distributed via an RR network utilizing, for example, GSM, GPRS, or satellite technology. In order to operate, that is, to enable the processing unit 11 to implement the method resulting from its execution or interpretation of the instructions of the program P recorded in the program memory 14, the device 10 includes an electrical energy source 17, for example in the form of one or more batteries. The ability of a node to communicate or simply to operate is directly related to the remaining and available energy capacity of the node.
某些运营商已经寻求设计这样的网络或通信方法:其通过网络或集群中的节点来实施,用于全局地保存网络或集群的电能量容量。总体地,第一途径在于将来自节点之间的交换的能量开销分布到网络或集群的所述节点的整体上。第二途径在于将来自在所收集的数据上实施的处理、例如长距离发射的能量消耗分布在大部分节点上,因此在多个节点上共同承担电消耗。因此,无论无接触的通信网络是通过单跳还是多跳的配置,节点可以任意地被指定或升级作为“网络头”节点或至少作为集群头,即头端节点。与图1相关联地,作为头端起作用的设备通过组线条绘制的圆圈来表示。其涉及用于网络R1的节点d2以及用于网络R2的节点h3。节点d2和h3因此分别作为集群C1和C2的头端来起作用。以此方式,所消耗的能量,尤其是用于远程传输在网络中所收集的数据而消耗的能量,在多个节点上共同承担。作为变型,头端可以随机地被指定,或者更准确地可以随机地分别将自身指定为头端,只要这些头端具备足够用于实施所确定的服务的软件和/或物质构件即可。Some operators have sought to design networks or communication methods that are implemented across nodes in a network or cluster to globally conserve the network's or cluster's electrical energy capacity. Generally speaking, a first approach involves distributing the energy costs of exchanges between nodes across the network or cluster's nodes. A second approach involves distributing the energy consumed by processing collected data, such as long-distance transmission, across a majority of nodes, thereby sharing the power consumption across multiple nodes. Therefore, regardless of whether the contactless communication network is configured using a single hop or multi-hop approach, nodes can be arbitrarily designated or upgraded as "network head" nodes or at least cluster heads, i.e., headend nodes. In conjunction with Figure 1, devices acting as headends are represented by circles drawn with lines. This refers to node d2 for network R1 and node h3 for network R2. Nodes d2 and h3 therefore function as headends for clusters C1 and C2, respectively. In this way, energy consumed, particularly the energy consumed for long-distance transmission of data collected within the network, is shared across multiple nodes. As a variant, the headends can be designated randomly, or more precisely can each randomly designate itself as a headend, provided that these headends have sufficient software and/or material components for implementing the determined service.
作为示例,“LEACH”方法,诸如尤其通过题为“An Application-SpecificProtocol Architecture for Wireless Microsensor Networks”(W. Heinzelman, A.Chandrakasan, H. Balakrishnan – IEEE TRANSACTIONS ON WIRELESS COMMUNICATIONS,VOL. 1, NO. 4, 2002年10月)的文献所描述的,使得能够在单跳网络中随机地指定节点使得其变成头端。属于所述头端的集群的其它节点、被我们相应地命名为“成员”或根据英语术语的“member(成员)”的节点,向集群头、因此向头端寻址其服务消息。与图1相关联地,每个成员节点通过细线条绘制的圆圈来表示。因此,在网络R2中,头端h3直接与节点g2至g4、h2和h3以及与节点i2至i4通信。头端收集从不同的成员节点发出的所述数据、处理所述数据、聚合甚至合并所述数据,并且触发例如长程发射到目的地远程实体,诸如与图2相关联地描述的服务器RS。根据该已知的技术,一旦节点已经担当了头端的角色,这样的节点就不能在确定的时段满期之前再次担当这样的角色。新的成员节点于是被随机指定为头端,因此确保了服务的连续性。为了使得我们将其命名为“自由的”或根据英语术语的“loose(无拘束)”的节点(其与图1相关联地通过双线条绘制的圆圈来表示)能够“加入”头端并且因此构成新的集群或再加入现存的集群,这样的自由节点,位于被升级或指明为头端的节点的无线电范围中的自由节点被布置用于接收招入消息MH,所述招入消息MH发源自所述头端、一般以招入消息MH的不经区分的发射(还以英语名称“broadcast(广播)”而已知)的形式被发到目的地为位于头端的无线电范围中的任何节点。图1通过网络R2使得能够描述从节点h3传输的消息MH的发射的结果,所述节点h3被指定用于作为头端而起作用,消息MH根据短程广播模式被传输到位于通信范围内的节点,在这种情况下为节点g2至g4、h2和h4以及节点i2至i4,其初始是自由节点,如同其它节点,以非穷举的方式诸如节点f1至f5,其在图1上通过双线条的圆圈来表示。在接收到这样的招入消息MH时,自由节点、例如节点h4更新其数据存储器,所述存储器与其处理单元协作以用于在其中存放头端的坐标或标识值,即,与图1相关联的节点h3的标识。先前自由的设备h4变成集群C2的成员,通过细线条的圆圈来表示。设备h3,其作为头端起作用,变成任何服务消息MS的收件方,所述服务消息MS包括通过设备h4所收集的数据,所述设备h4新成为集群C2的成员,如同所述集群的其它成员设备,即节点g2、g3、g4、i2、i3和i4。因此,所述节点g2至g4、h2和h4,完全如同节点i2至i4,预先为自由节点,变成成员节点,在图1上通过单线条绘制的圆圈而显现。通过节点h3的消息MH的发射在范围上受限。而且,位于范围外的节点不将消息MH接收为可理解的消息,甚至完全接收不到。在网络R2是单跳类型的情况下,在h3的范围外的节点,诸如节点f1至f5、g1、g5、h1、h5、i1、i5又或节点j1至j5继续是自由节点,通过双线条绘制的圆圈表示。集群C2只包括作为头端起作用的节点h3以及成员节点,也就是说已经接受了头端h3的招入。As an example, the "LEACH" method, such as described in particular in the document "An Application-Specific Protocol Architecture for Wireless Microsensor Networks" (W. Heinzelman, A. Chandrakasan, H. Balakrishnan - IEEE TRANSACTIONS ON WIRELESS COMMUNICATIONS, VOL. 1, NO. 4, October 2002), makes it possible to randomly designate a node in a single-hop network to become the headend. The other nodes of the cluster belonging to the headend, which we will accordingly designate as "members" or, in English, "members," address their service messages to the cluster head, and therefore to the headend. In connection with FIG. 1 , each member node is represented by a circle drawn with thin lines. Thus, in network R2, headend h3 communicates directly with nodes g2 to g4, h2 and h3, and with nodes i2 to i4. The headend collects the data emitted by the different member nodes, processes it, aggregates it, and even merges it, and triggers, for example, a long-range transmission to a destination remote entity, such as the server RS described in connection with FIG. According to this known technique, once a node has assumed the role of headend, it cannot assume this role again before the expiration of a certain period of time. New member nodes are then randomly designated as headends, thereby ensuring continuity of service. In order to enable nodes, which we will designate as "free" or, in English, "loose" (represented in connection with FIG. 1 by circles drawn with double lines), to "join" the headend and thus form a new cluster or rejoin an existing one, such free nodes, located within radio range of a node being promoted or designated as headend, are arranged to receive a recruiting message MH originating from the headend, typically in the form of an indiscriminate transmission of the recruiting message MH (also known by the English name "broadcast") destined for any node within radio range of the headend. FIG1 illustrates, via network R2, the results of transmitting a message MH from node h3, designated to function as a headend. This message MH is transmitted according to a short-range broadcast mode to nodes within communication range, in this case nodes g2 to g4, h2 and h4, and nodes i2 to i4, initially free nodes, like other nodes, such as, in a non-exhaustive manner, nodes f1 to f5, represented in FIG1 by double-lined circles. Upon receiving such an incoming message MH, a free node, such as node h4, updates its data memory, which, in conjunction with its processing unit, stores therein the coordinates or identification value of the headend, i.e., the identification of node h3 associated with FIG1. The previously free device h4 becomes a member of cluster C2, represented by the thin-lined circle. Device h3, acting as a headend, becomes the recipient of any service message MS containing data collected by device h4, which has newly become a member of cluster C2, just like its other member devices, namely nodes g2, g3, g4, i2, i3, and i4. Thus, nodes g2 to g4, h2, and h4, just like nodes i2 to i4, previously free nodes, become member nodes, as indicated by the circles drawn with a single line in FIG1 . The transmission of messages MH by node h3 is limited in range. Furthermore, nodes outside of its range do not receive messages MH as intelligible messages, or even receive them altogether. In the case of a single-hop network R2, nodes outside of h3's range, such as nodes f1 to f5, g1, g5, h1, h5, i1, i5, or nodes j1 to j5, continue to be free nodes, as indicated by the circles drawn with a double line. Cluster C2 only includes node h3 acting as the head end and member nodes, that is, it has accepted the recruitment of head end h3.
LEACH教导在多跳网络、如与图1相关联地描述的网络R1的范围中的移植可以使得假设:变成包括作为头端而起作用的节点的集群的成员的节点在其相应的数据存储器中记录路由,即,作为头端起作用的节点的标识值以及至少已经中继了所述头端的招入消息的节点的标识值、甚至作为变型地将其与所述头端分离的中间或中继器节点的标识的相应值。因此,作为示例,节点c2记录头端d2的标识值,在已经直接接收了所述节点d2的招入消息MH的情况下。至于节点b2,其除了节点d2的标识值之外还记录节点c2的标识值,所述节点c2已经中继了d2的招入消息MH以用于节点b2。The LEACH teaching, when implemented within a multi-hop network, such as network R1 described in conjunction with FIG. 1 , allows for the assumption that a node that becomes a member of a cluster including a node acting as a headend records in its respective data store the routing information, namely, the identification value of the node acting as the headend and at least the identification value of the node that relayed the headend's recruit message, and even, as a variant, the identification values of intermediate or relay nodes that are separate from the headend. Thus, as an example, node c2 records the identification value of headend d2, having directly received a recruit message MH from said node. Node b2, in addition to the identification value of node d2, also records the identification value of node c2, having relayed d2's recruit message MH for node b2.
这样的途径在理论上或者至少根据完美的应用模式使得能够保存包括多个通信节点的通信网络的全局能量资源。在实践中或在现实中,并且尤其是根据与同电子通信设备协作的容器的运输相关联的这样的通信网络的利用或应用领域,这样的解决方案依然是非恰当的、至少不太有效。While such an approach theoretically, or at least according to a perfect application model, allows for the conservation of global energy resources of a communication network comprising a plurality of communication nodes, in practice or in reality, and particularly depending on the use or application area of such a communication network associated with the transport of containers cooperating with electronic communication devices, such a solution remains inappropriate, or at least less effective.
事实上,取如优选但非限制性的应用示例,描述了无线通信网络的利用,所述无线通信网络的节点存放、收集并且传输与多个容器相关联的度量,所述容器诸如物资或货物的容器。设想每个容器都相关联于实施诸如LEACH或多跳类型等同物之类的通信方法的电子通信设备。根据该假设,与容器相关联的每个电子通信设备作为无线网络中的节点而起作用,所述无线网络诸如与图1相关联地描述的网络R2。设想在节点之间的通信模式通过无线电途径而进行。除了LEACH类型的通信方法指定单跳途径、因此指定了每个节点可以能够直接与头端通信这一事实之外,容器的相对布置、例如在船舶上、在存储场地上或在任何道路或铁路运输平台上创建应用上下文,诸如被指定为头端的节点可能不能或不再能确保其任务,所述任务例如在于将聚合的数据传输到目的地远程单元,这例如仅仅是由于其定位在容器堆叠中。事实上,很多是由运输平台和/或存储空间构成的障碍,这由于容器的接纳结构又或容器本身互相产生的相互作用所施加的隔断或部分禁闭所致,所述容器本身的堆叠可能引起降级,甚至是能够以头端的名义通过长距离途径传输数据的能力的丢失。以下风险非常大:观察到数据丢失、所述数据发送缓慢,而且还有无用且非恰当的能量花费用于“活化”其头端将不能有效确保其功能或服务的集群。在其中相继头端的随机选定通过不太有成效的“选择”而体现的情况中,该风险更大。为了解决这样的不便,与法兰西信息与自动化国家研究院相关联的TRAXENS公司已经设计了特别是创新且性能好的无线通信网络,无论节点的相对布置如何且无论所述网络的利用或应用范围如何,无论所述网络是单跳还是多跳类型的。这样的网络使得能够优化网络确保根据不同节点所收集的数据而确定的服务的全局能力。其主要依靠根据头端的选定模态加入通信设备的集群的方法,当且仅当这些头端确实能够承担其作为头端的角色,例如用于根据长距离通信模式而发射数据。实施这样的方法的每个节点可以决定作为头端而起作用,这开始于所述节点知道它处于有效坚守其角色的情形的时刻。此外,任何自由节点可以决定加入或不加入节点的集群,所述集群包括所述头端,所述头端有利地是自指定的。In fact, taking a preferred but non-limiting example of application, the use of a wireless communication network is described, the nodes of which store, collect, and transmit metrics associated with a plurality of containers, such as containers of supplies or cargo. It is assumed that each container is associated with an electronic communication device that implements a communication method such as LEACH or a multi-hop equivalent. According to this assumption, each electronic communication device associated with a container functions as a node in a wireless network, such as network R2 described in connection with FIG. Communication between the nodes is assumed to take place via radio. While LEACH-type communication methods specify a single-hop path, and therefore each node can communicate directly with a headend, the relative arrangement of the containers, for example on a ship, at a storage facility, or on any road or rail transport platform, creates an application context in which a node designated as the headend may be unable or no longer able to fulfill its task, such as transmitting aggregated data to a destination remote unit, simply due to its location within a stack of containers. Indeed, many obstacles are posed by transport platforms and/or storage spaces, resulting from partitions or partial confinement imposed by the container's receiving structure or the interactions between the containers themselves. Stacking these containers can lead to degradation or even loss of the ability to transmit data over long distances on behalf of the headend. The risk is significant: data loss, slow data transmission, and the wasteful and inappropriate expenditure of energy to "activate" clusters whose headends are unable to effectively ensure their functionality or services. This risk is even greater in cases where the random selection of successive headends represents a less-than-effective "selection." To address this inconvenience, TRAXENS, a company associated with the French National Institute for Computer Science and Automation, has designed a particularly innovative and high-performance wireless communication network, regardless of the relative arrangement of nodes, the network's utilization or scope of application, and whether it is single-hop or multi-hop. This network makes it possible to optimize the network's global capacity to ensure services determined by the data collected by the different nodes. It primarily relies on a method for joining a cluster of communication devices according to the selected modality of a headend, if and only if these headends are truly capable of assuming their role as headend, for example, for transmitting data according to a long-range communication mode. Each node implementing such a method can decide to act as a headend, starting from the moment it knows it is in a situation where it can effectively maintain its role. Furthermore, any free node can decide whether to join or not join a cluster of nodes including the headend, which is advantageously self-designated.
这样的创新带来众多优点,其中能提及可以:Such innovation brings many advantages, among which can be mentioned:
-以恰当的方式在网络的节点上共同承担能量花费,因此相对于先前提及的解决方案尚无匹敌地延长所述网络呈递服务的能力;- sharing the energy costs among the nodes of the network in an appropriate manner, thus extending the network's ability to render services unrivalled by the previously mentioned solutions;
-设想一种节点网络,所述节点网络例如在各自与电子设备相关联的容器的调度、存储或运输期间、根据节点之间的相对定位的改变或所述节点的利用条件的演进的要求而自动可适配和运转;- envisages a network of nodes that can automatically adapt and function, for example during the dispatch, storage or transport of containers each associated with an electronic device, as required by changes in the relative positioning of the nodes or by the evolution of the conditions of utilization of the nodes;
-给予服务(例如通过长距离途径的数据发射)的鲁棒性以优先,这向每个节点赋予确定其在网络中的角色以及在每个时刻根据所考虑的服务引用最佳头端的机会,而同时最小化位于公共节点的无线电范围内的多个头端的同时选定期间的集群的冲突或修改。- giving priority to the robustness of services (such as data transmission over long distances), which gives each node the opportunity to determine its role in the network and to refer to the best headend according to the service considered at each moment, while minimizing conflicts or modifications of the cluster during the simultaneous selection of multiple headends located within the radio range of a common node.
虽然提供了显著的进步,但是这样的解决方案如同先前提及的竞争解决方案一样呈现某些限制或不便,尤其是如果这样的通信网络在对其而言所述网络的拓扑尤其多变(也就是说对其而言新节点希望重加入网络,或对其而言一些节点相对于其它节点而移位,因此变到无线电范围甚或相反变到它们分别且预先加入的集群的成员或头端的无线电通信范围外)的应用上下文中被利用的话。While providing a significant advance, such a solution, like the previously mentioned competing solutions, presents certain limitations or inconveniences, in particular if such a communication network is utilized in an application context for which the topology of the network is particularly variable (that is, for which new nodes wish to rejoin the network, or for which some nodes are displaced relative to other nodes and thus become out of radio range or even conversely out of radio communication range of members or headends of their respective and previously joined clusters).
事实上,无论所选的通信网络如何,所述网络的路由或拓扑、即集群的构成或拆毁不是以足够的规律性或根据用于考虑所述网络动态的足够频率更新的。借助于已知的解决方案,如果这样的根据大频率的更新被实现,则招入、集群拆毁或服务的消息的数目将倍增,使得目的在于保存网络节点的能量消耗的主要目的将不会被保持。In fact, regardless of the communication network selected, the network's routing or topology, i.e., the formation or destruction of clusters, is not updated with sufficient regularity or frequency to take into account the network's dynamics. With known solutions, if such updates were implemented with a high frequency, the number of recruitment, cluster destruction, or service messages would multiply, so that the primary purpose of saving energy consumption of network nodes would not be maintained.
本发明使得能够回应由已知解决方案提出的不便中的大多数。通过构成特别是创新且鲁棒的无线通信网络,其中包括当构成所述网络的节点相对于彼此移动的时候或当所述网络的拓扑表现得波动的时候,任何自由节点、即非集群头(头端)或非集群成员可以按需请求加入集群成员的过程。这样的加入方法可以来自先前描述的不同网络、尤其是与图1或图2相关联地图示的那些网络的适配。自由节点的加入请求通过双线条箭头来表示。在该情况中涉及节点c5或i5,其分别向节点c4和i4请求加入,所述节点c4和i4是集群C1和C2的相应成员,所述集群C1和C2的头端对于网络R1而言是节点d2并且对于网络R2而言是h3。图1还图示了根据本发明的变型,按照所述变型,自由节点、诸如节点c8可以进而向预先加入了其集群头是节点d2的集群C1的节点(在该情况中是根据图1的节点c5)提出加入请求。The present invention addresses most of the inconveniences presented by known solutions. It constructs a particularly innovative and robust wireless communication network, including a process whereby any free node, i.e., a non-cluster head (headend) or non-cluster member, can request cluster membership on demand when the nodes comprising the network move relative to one another or when the network's topology fluctuates. This joining method can be adapted from the various networks previously described, particularly those illustrated in connection with FIG. 1 or FIG. 2 . A free node's joining request is represented by a double-line arrow. In this case, it involves node c5 or i5, which requests membership from nodes c4 and i4, respectively, members of clusters C1 and C2, whose headends are node d2 for network R1 and h3 for network R2. FIG. 1 also illustrates a variant of the present invention, according to which a free node, such as node c8, can in turn submit a joining request to a node (in this case, node c5 according to FIG. 1 ) that has previously joined cluster C1, whose cluster head is node d2.
实施根据本发明的方法的每个节点因此可以按其需求并且独立于头端的招入策略而向集群的成员请求加入,并且因此尤其经由已经接受了加入过程的成员节点而以头端为目的地传输服务消息,虽然所述头端在请求加入以用于传输招入消息的所述节点的无线电范围外。本发明因此使得能够在招入过程之后扩展所构成的集群,甚至将单跳类型的网络变换成“伪多跳网络”,其中成员节点已经接受了加入请求,作为被准许加入节点的中继器节点而开放,以用于传输服务消息。Each node implementing the method according to the invention can therefore request membership from a member of the cluster, as needed and independently of the recruitment policy of the headend, and thus transmit service messages destined for the headend, in particular via the member nodes that have accepted the recruitment process, even though the headend is outside the radio range of the node that requested membership for transmitting the recruitment message. The invention thus makes it possible to expand the formed cluster after the recruitment process, and even to transform a single-hop network into a "pseudo-multihop network," in which the member nodes that have accepted the recruitment request are available as relay nodes for the nodes admitted to the recruitment process, for transmitting service messages.
为此,本发明涉及由第一电子通信设备的处理单元实施的方法,所述第一电子通信设备此外包括数据存储器、第一通信装置,所述第一通信装置确保与位于包括多个电子通信设备的集群内的通信范围中的任何其它电子设备的无线邻近通信,所述存储器和所述通信装置与所述处理单元协作,所述数据存储器存储专用于第一电子通信设备的标识的值以及被布置用于包括作为集群头起作用的电子通信设备的标识的当前值。所述方法包括用于以作为集群头起作用的设备为目的地发射服务消息的步骤。To this end, the present invention relates to a method implemented by a processing unit of a first electronic communication device, the first electronic communication device also comprising a data memory, first communication means for ensuring wireless proximity communication with any other electronic device within communication range of a cluster comprising a plurality of electronic communication devices, the memory and the communication means cooperating with the processing unit, the data memory storing a value of an identification specific to the first electronic communication device and a current value of an identification arranged for an electronic communication device acting as a cluster head. The method comprises a step for transmitting a service message destined for the device acting as a cluster head.
为了确保集群的持久性以及防止在服务消息中包含的信息丢失的风险,所述方法包括:In order to ensure the persistence of the cluster and prevent the risk of loss of information contained in the service message, the method includes:
-在服务消息的发射之前的步骤,用于由第一通信装置制定和发射属于集群的验证消息,所述消息对以下各项进行编码:- a step, prior to the transmission of the service message, for formulating and transmitting, by the first communication device, a verification message belonging to the cluster, said message encoding:
i. 作为所述属于集群的验证消息的收件方电子通信设备的标识的第二电子通信设备的标识的值;i as the identification value of the second electronic communication device of the identification of the recipient electronic communication device of the verification message belonging to the cluster;
ii. 作为所述属于所述集群的验证消息的源电子通信设备的标识的第一设备的标识的值。ii. a value of the identification of the first device being the identification of the source electronic communication device of the verification message belonging to the cluster.
为了限制消息流,所述方法可以预备所述在服务消息的发射之前的用于由第一通信装置制定和发射属于集群的验证消息的步骤仅仅在测试步骤证明了所述设备被准予加入集群的情况下被实施。In order to limit the message flow, the method may provide that the step of formulating and transmitting the verification message belonging to the cluster by the first communication device before the transmission of the service message is only carried out if the test step proves that the device is authorized to join the cluster.
为了证明集群的持久性,所述方法可以包括:To demonstrate the persistence of the cluster, the method may include:
-当且仅当显露所述属于集群的验证消息的接收的消息在被确定对属于集群的验证消息的发射进行计数的最大等待期限期满之前被接收的情况下所实施的步骤,其用于解码所述显露接收的消息并且从中推断:- a step for decoding said message revealing reception and inferring from it, if and only if, a message revealing reception of said verification message belonging to a cluster is received before expiration of a maximum waiting period determined for counting the transmission of verification messages belonging to a cluster:
i. 所述显露属于集群的验证消息的接收的消息的收件方设备的标识的值;i. The exposed value of the identification of the recipient device of the received message belonging to the cluster verification message;
ii. 所述显露属于集群的验证消息的接收的消息的源设备的标识的值。ii. The value of the identification of the source device of the received message revealing the verification message belonging to the cluster.
根据该有利的实施例,用于制定服务消息并且触发所述服务消息发射的步骤有利地仅仅在以下情况下被实施:According to this advantageous embodiment, the steps for formulating a service message and triggering the transmission of said service message are advantageously only carried out in the following cases:
-显露属于集群的验证消息的接收的消息的收件方设备的标识的所推断的值等于第一电子通信设备的标识的值;- revealing that the deduced value of the identification of the recipient device of the received message belonging to the authentication message of the cluster is equal to the value of the identification of the first electronic communication device;
-所述显露属于集群的验证消息的接收的消息的源设备的标识的所推断的值等于第二电子通信设备的标识的值。- the deduced value of the identification of the source device of the received message revealing the verification message belonging to a cluster is equal to the value of the identification of the second electronic communication device.
为了扩展所述集群,根据本发明的加入方法可以包括:In order to expand the cluster, the joining method according to the present invention may include:
- 用于接收由请求加入集群的第三电子通信设备制定和发射的请求加入消息的步骤,所述请求加入消息包括请求加入的所述第三设备的标识的值;- a step for receiving a request to join message formulated and transmitted by a third electronic communication device requesting to join the cluster, said request to join message comprising the value of the identification of said third device requesting to join;
-用于解码所述请求加入消息并且用于从中推断请求加入的所述第三设备的所述标识的值的步骤;- a step for decoding said request to join message and for deducing therefrom the value of said identification of said third device requesting to join;
-用于制定显露加入请求的接收的消息的步骤,其在于在所述消息内编码:- a step for formulating a message revealing the receipt of the request to join, consisting in encoding within said message:
i. 作为所述显露加入请求的接收的消息的源设备的标识的第一设备的标识的值;i as the value of the identification of the first device revealing the source device identification of the received message to join the request;
ii. 作为所述显露加入请求的接收的消息的收件方设备的标识的请求加入的第三设备的标识的值,ii as the value of the identifier of the third device requesting to join the message revealing the identity of the recipient device of the received request to join,
iii. 作为集群头起作用的第四电子通信设备的标识的当前值,所述值在记录中被读取,iii. the current value of the identification of the fourth electronic communication device acting as cluster head, said value being read in the record,
-用于触发通过第一通信装置而发射显露加入请求的接收的消息的步骤。- a step for triggering the transmission of a message by the first communication means revealing the receipt of the request to join.
在其中有可能对确保由电子设备确定的服务的能力进行量化的情况中,用于制定显露加入请求的接收的消息的步骤可以此外在于对这样的值进行编码:所述值描述作为集群头起作用的第四电子通信设备确保服务的能力,所述值被记在记录中,所述记录此外存储作为集群头起作用的所述第四电子通信设备的标识的当前值。In the case where it is possible to quantify the ability to ensure a service determined by the electronic device, the step for formulating a message revealing the receipt of a join request may furthermore consist in encoding a value describing the ability of the fourth electronic communication device acting as cluster head to ensure a service, said value being recorded in a record which furthermore stores the current value of the identification of said fourth electronic communication device acting as cluster head.
为了使得第一电子通信设备可以能够给出有利于且有关于加入请求的后续,本发明可以预备用于触发通过第一通信装置对显露加入请求的接收的消息的发射的步骤仅仅可以在以下情况下被实现:数据存储器存储记录,所述记录包括作为集群头起作用的电子通信设备的标识的当前值。In order to enable the first electronic communication device to give a follow-up that is advantageous and relevant to the joining request, the invention can provide that the step for triggering the transmission of a message by the first communication means revealing the receipt of the joining request can only be implemented if: the data memory stores a record comprising the current value of the identification of the electronic communication device acting as cluster head.
本发明还可以预备第一电子通信设备可以进而甚至请求加入集群。这样的情形可能例如由于所述第一设备是其中成员的集群的解散。为此,根据本发明的加入方法可以包括:The invention also provides that the first electronic communication device may even request to join a cluster. Such a situation may be due, for example, to the dissolution of a cluster of which the first device is a member. To this end, the joining method according to the invention may comprise:
-用于制定请求加入消息的步骤,其在于对作为请求加入集群的设备的标识起作用的第一设备的标识的值进行编码;- a step for formulating a request to join message consisting in encoding the value of the identification of the first device acting as the identification of the device requesting to join the cluster;
-用于触发通过第一通信装置对所述请求加入消息进行发射的步骤;- a step for triggering the transmission of said request to join message by the first communication means;
-用于通过通信装置接收由第五设备制定和发射的显露请求加入消息的接收的消息的步骤;- a step for receiving, by the communication means, a message indicating receipt of a request to join message formulated and transmitted by the fifth device;
-当且仅当显露请求加入消息的接收的所述消息在用以对所述请求加入消息的发射进行计数的所确定的最大等待期限的期满之前被接收的情况下实施的步骤,其用于对所述显露请求加入消息的接收的消息进行解码并且从中推断:a step for decoding the message revealing the reception of a request to join message and inferring therefrom if and only if said message revealing the reception of a request to join message is received before expiry of a determined maximum waiting period for counting the transmission of said request to join message:
i. 所述显露请求加入的接收的消息的收件方设备的标识的值;i. The value of the identification of the recipient device of the message that reveals the request to join the reception;
ii. 作为所述显露请求加入的接收的消息(MAA)的源方第五设备属于其的集群的头起作用的第六电子通信设备的标识的值;ii. the value of the identification of the sixth electronic communication device acting as the source of the received message (MAA) revealing a request to join the head of the cluster to which the fifth device belongs;
-当且仅当收件方设备的标识的所推断的所述值等于请求加入的第一设备的标识的值的情况下实施的步骤,其用于在记录中记入作为集群头起作用的第六电子通信设备的标识的所推断的值,当作作为集群头起作用的设备的标识的当前值。- a step, carried out if and only if said deduced value of the identification of the recipient device is equal to the value of the identification of the first device requesting to join, for entering in the record the deduced value of the identification of the sixth electronic communication device acting as cluster head as the current value of the identification of the device acting as cluster head.
有利地,根据该实施例:Advantageously, according to this embodiment:
-所述用于对显露请求加入消息的接收的消息进行解码的步骤可以此外在于从所述消息中推断所述消息的源方第五电子通信设备的标识的值;- said step for decoding a message revealing the receipt of a request-to-join message may further consist in deducing from said message the value of an identification of a fifth electronic communication device that is the source of said message;
-所述用于更新记录的步骤可以此外在于在其中记录所述推断的标识值,作为在将请求加入的第一电子通信设备与作为集群头起作用的第六电子通信设备分离的上行路由上通信的电子设备的标识。- said step for updating the record may further consist in recording said inferred identification value therein as identification of an electronic device communicating on an upstream route separating the first electronic communication device requesting to join and a sixth electronic communication device acting as cluster head.
为了以作为集群头起作用的设备为目的地传送例如与第一电子通信设备的环境相关的信息,根据本发明的方法可以包括在用于以作为集群头起作用的设备为目的地发射服务消息的步骤之前的步骤,其用于由第一通信装置制定服务消息并且触发所述服务消息的以其标识值被通过记录存储为作为集群头起作用的电子通信设备的标识的当前值的电子通信设备为目的地的发射。In order to transmit information, for example, relating to the environment of the first electronic communication device, destined for a device acting as a cluster head, the method according to the invention may comprise, before the step for transmitting a service message destined for the device acting as a cluster head, a step for formulating a service message by the first communication device and triggering the transmission of the service message destined for an electronic communication device whose identification value is stored by means of a record as the current value of the identification of the electronic communication device acting as the cluster head.
根据第二目标,尤其是为了适配电子通信设备,本发明还涉及包括多个程序指令的计算机程序,所述程序指令在其经历如下各项的时候促使实施诸如本发明预备的加入方法:According to a second object, in particular for adapting an electronic communication device, the invention also relates to a computer program comprising a plurality of program instructions causing the implementation of an accession method such as that provided by the invention when it undergoes:
-预先被记录在这样的电子设备的程序存储器中,所述电子设备此外包括处理单元、确保与位于通信范围中的任何其它电子设备的无线邻近通信的第一通信装置、记录专用于所述设备的标识的值以及用于包括作为集群头起作用的设备的标识的当前值的记录的数据存储器,所述存储器以及所述第一通信装置与所述处理单元协作;- is previously recorded in a program memory of an electronic device comprising, among other things, a processing unit, first communication means ensuring wireless proximity communication with any other electronic device located within a communication range, a data memory for recording a value of an identification specific to said device and for recording a current value of an identification of a device acting as a cluster head, said memory and said first communication means cooperating with said processing unit;
-被所述处理单元执行或解译。- is executed or interpreted by said processing unit.
根据第三目标,本发明此外涉及一种电子设备,所述电子设备包括处理单元、数据存储器、程序存储器、确保与位于通信范围中的任何其它电子设备的无线邻近通信的第一通信装置,所述存储器和第一通信装置与所述处理单元协作,所述数据存储器包括专用于所述设备的标识的值与用于包括作为集群头起作用的设备的标识的当前值的记录。为了使所述设备能够实施根据本发明的加入方法,其在程序存储器中有利地包括诸如先前提及的程序指令。According to a third aspect, the invention further relates to an electronic device comprising a processing unit, a data memory, a program memory, and first communication means for ensuring wireless proximity communication with any other electronic device within communication range, the memory and the first communication means cooperating with the processing unit, the data memory comprising a record of values for an identification specific to the device and current values for identification of devices acting as cluster heads. In order to enable the device to implement the joining method according to the invention, it advantageously comprises program instructions such as those mentioned above in its program memory.
本发明还预备了一种系统,所述系统包括多个这样的电子通信设备。根据优选且非限制性的应用示例,这样的系统可以有利地包括用于物资、固体、流体或液体货物的多个容器,所述容器相应地与电子通信设备协作,这些电子通信设备各自包括传感器,所述传感器与处理单元协作以用于测量和收集与所述容器的内部和/或外部环境相关联的量。The present invention also provides a system comprising a plurality of such electronic communication devices. According to a preferred and non-limiting example of application, such a system may advantageously comprise a plurality of containers for goods, solid, fluid or liquid, each of which is associated with an electronic communication device, each of which comprises a sensor that cooperates with a processing unit for measuring and collecting quantities associated with the internal and/or external environment of the container.
在阅读随后与作为指示性且非限制性所给出的实现示例有关的描述以及审阅随附各图的时候,其它的特征和优点将更清楚地显现,在所述各图中:Other characteristics and advantages will appear more clearly on reading the description that follows in relation to an example of implementation given as indicative and non-limiting, and on examining the accompanying figures, in which:
-已经描述的图1图示了分别为单跳或多跳的无线通信网络的两个配置示例;- FIG. 1 already described illustrates two configuration examples of wireless communication networks, respectively single-hop and multi-hop;
-已经部分描述的图2呈现了当根据本发明的电子通信设备被适配用于实施用于加入经由无线通信网络成对通信的设备的集群的方法时所述根据本发明的电子通信设备与根据现有技术的电子通信设备的功能架构,所述方法根据本发明;- FIG. 2 , already partially described, presents the functional architecture of an electronic communication device according to the invention and an electronic communication device according to the prior art when the device is adapted for implementing a method for joining a cluster of devices communicating in pairs via a wireless communication network, said method according to the invention;
-图3呈现了根据本发明的加入方法的功能描述。- Figure 3 presents a functional description of the joining method according to the invention.
根据本发明的电子通信设备类似于已知的设备10,诸如先前与图2相关联地描述的设备。The electronic communication device according to the present invention is similar to known devices 10 , such as the device previously described in association with FIG. 2 .
为此,根据本发明的电子通信设备包括处理单元11,其在于一个或多个微控制器,所述微控制器负责尤其在数据上实现处理。所述数据有利地全部或部分地记录在一个或多个数据存储器12上,所述数据存储器一般是电可擦除且可写的。存储器12可以有利地包括不可擦除的区段,所述区段在物理上隔离或简单地被布置使得通过写入或擦除的访问被禁止,又或需要满足认证过程。其通过修改的访问被约束的存储器12的这样的有利区段使得能够在其中存放尤其是专用于电子通信设备的标识ID的值。有利地,但是以非必须的方式,设备10可以此外包括一个或多个程序存储器14以用于记录一个或多个程序P,或更一般地一个或多个程序指令集,所述程序指令可被处理单元11理解。所述指令通过所述处理单元的执行或解析引起设备10的运转或数据的处理方法的实施。该设备10还包括第一通信装置13,其确保与任何其它电子设备、诸如设备10i的无线邻近通信,只要该其它电子设备处于通信范围内即可。经由所述第一通信装置13,设备10、或更准确地其处理单元11可以向或自定位在通信范围中的第三设备发射和/或接收消息。这样的消息可以是任何性质的。在不同类型的消息当中我们可以以非穷举的方式提及与特定服务S相关联的数据消息MS、招入消息MH、拆毁集群的消息MR。To this end, the electronic communication device according to the present invention includes a processing unit 11, which comprises one or more microcontrollers, which are responsible for, inter alia, performing data processing. The data is advantageously stored, in whole or in part, in one or more data memories 12, which are generally electrically erasable and writable. The memory 12 may advantageously include non-erasable sections that are physically isolated or simply arranged so that access via writing or erasing is prohibited, or otherwise requires an authentication procedure. Such advantageous sections of the memory 12, to which access is restricted by modification, allow for the storage of, inter alia, an identification value specific to the electronic communication device. Advantageously, but not necessarily, the device 10 may also include one or more program memories 14 for storing one or more programs P, or more generally, one or more sets of program instructions, which are understandable by the processing unit 11. Execution or interpretation of these instructions by the processing unit causes the device 10 to operate or implement a data processing method. The device 10 also includes a first communication device 13, which ensures wireless proximity communication with any other electronic device, such as device 10i, as long as the other electronic device is within communication range. Via the first communication means 13, the device 10, or more precisely its processing unit 11, can transmit and/or receive messages to or from a third device located within the communication range. Such messages can be of any nature. Among the different types of messages, we can mention, in a non-exhaustive manner, data messages MS associated with a specific service S, recruitment messages MH, and group teardown messages MR.
某些通信设备可以得益于通过网络创建的电磁场,以用于从中吸取足以确保其运转的电能量,尽管仅仅持续短的时间段。然而,为了确保持续的运转和/或实施需要更多能量的处理,根据本发明的电子通信设备10可以有利地包括适当的电能量源17,其尤其为处理单元11、甚至构成所述设备的将需要它的任何其它元件供电。这样的源17一般在于一个电池或多个电池。根据尤其与容器的监测相关联的优选的应用上下文,虽然该特定上下文将不限制本发明的利用范围,电子通信设备10可以包括一个或多个传感器15,所述传感器15与处理单元11协作。这样的传感器可以测量与所述容器的内部和/或外部环境相关联的一个或多个量并且从中产生数据。作为示例,如通过图2所图示的,传感器15可以测量容器中占主导的温度和/或湿度、在壳体中证实容器的意外开口的暗度或暗度损失、甚至还有震动。如果必要,则所述一个或多个传感器可以经由导体层或探头来与设备的处理单元协作,尤其是在其中设备10靠着容器的外隔板安放而期望借助于所述设备10来监测所述容器的内部环境的情况中。这样的设备10可以此外包括时钟,从而使得其能够对所收集的度量进行定时,所述时钟在图2中没有被表示。Certain communication devices can benefit from the electromagnetic field created by the network, drawing sufficient electrical energy from it to ensure their operation, albeit only for a short period of time. However, to ensure continuous operation and/or implement processes that require more energy, the electronic communication device 10 according to the present invention can advantageously include a suitable electrical energy source 17, which can power the processing unit 11 and any other components of the device that may require it. Such a source 17 typically consists of one or more batteries. Depending on the preferred application context, particularly related to monitoring containers, although this specific context does not limit the scope of the present invention, the electronic communication device 10 can include one or more sensors 15 that cooperate with the processing unit 11. Such sensors can measure one or more quantities associated with the internal and/or external environment of the container and generate data therefrom. By way of example, as illustrated in FIG2 , the sensors 15 can measure the temperature and/or humidity prevailing in the container, the darkness or loss of darkness in the housing to indicate an unexpected opening of the container, or even vibrations. If necessary, the one or more sensors may cooperate with a processing unit of the device via a conductor layer or probes, in particular in the case where the device 10 is placed against the outer wall of a container and it is desired to monitor the internal environment of the container with the help of the device 10. Such a device 10 may also include a clock, which is not represented in FIG2 , so that it can time the collected measurements.
根据期望借助于按照本发明的电子通信设备而运作的所述一个或多个服务,这些电子通信设备可以包括附加的和可选的装置。作为优选示例,服务可以在于:Depending on the service or services that are desired to be operated with the aid of the electronic communication device according to the invention, these electronic communication devices may comprise additional and optional means. As a preferred example, the services may be:
-在根据本发明的电子通信设备的网络节点附近收集数据,例如与通过所述节点测量的量相关联;- collecting data in the vicinity of a network node of an electronic communication device according to the invention, for example related to quantities measured by said node;
-聚合在多个节点附近收集的所述数据,然而制作消息MC,所述消息MC对经合并的服务数据进行编码,目的地为远程实体,诸如服务器RS。- Aggregating said data collected in the vicinity of a plurality of nodes and then crafting a message MC encoding the merged service data destined for a remote entity such as a server RS.
为了发射这样的消息MC,设备10有利地包括第二长距离通信装置16,所述第二长距离通信装置16与处理单元11协作。这样的通信可以经由RR网络、通过GPRS或卫星途径、甚至通过任何其它合适的通信途径来被实现。电子设备的不同的内部组成部分与处理单元11协作,有利地通过有线总线或通过耦合。设备10可以包括保护所述组成部分的外壳,所述外壳有利地包括固定装置以用于将设备10安放在期望确保监测的支撑件上,在这种情况下为根据优选应用示例的容器。To transmit such messages MC, the device 10 advantageously includes a second long-distance communication device 16 that cooperates with the processing unit 11. Such communication can be achieved via the RR network, via GPRS or satellite, or even via any other suitable communication path. The various internal components of the electronic device cooperate with the processing unit 11, advantageously via a wired bus or by coupling. The device 10 may include a housing that protects the components, said housing advantageously including fixing means for placing the device 10 on a support for which monitoring is desired, in this case a container according to a preferred application example.
为了实施本发明,需要作用于处理单元的运转,更准确地作用于通过所述处理单元所实施的通信方法。这样的方法将稍后结合图3来被描述。优选的适配模式在于预备程序或更一般地程序指令,其被相互布置用于在通过处理单元对所述程序指令进行执行或解译时实施所述方法。有利地,所述程序P在所述设备的组装时被加载在程序存储器15中,或者在所述设备的所述组装阶段之后通过将所述程序下载到存储器15中。In order to implement the present invention, it is necessary to act on the operation of the processing unit, more precisely on the communication method implemented by the processing unit. Such a method will be described later in conjunction with Figure 3. The preferred adaptation mode is to prepare a program or more generally program instructions, which are arranged to implement the method when the program instructions are executed or interpreted by the processing unit. Advantageously, the program P is loaded into the program memory 15 during the assembly of the device, or by downloading the program into the memory 15 after the assembly stage of the device.
本发明主要在于实施单跳网络(例如LEACH网络)或有利地多跳网络,为此每个节点在于电子通信设备,诸如先前描述的设备10。The invention mainly consists in implementing a single-hop network (for example a LEACH network) or advantageously a multi-hop network, for which each node consists in an electronic communication device such as the device 10 previously described.
这样的网络的节点一般被适配或布置用于实施加入设备集群的方法。数据存储器12除了专用于电子通信设备的标识ID的值之外包括记录RH,所述记录RH预备用于包括作为头端起作用的电子通信设备(诸如根据图1的节点d2或h3)的标识的当前值IDHc。The nodes of such a network are generally adapted or arranged to implement a method for joining a device cluster. The data memory 12 includes, in addition to the value of the identification ID specific to the electronic communication device, a record RH prepared to include the current value IDHc of the identification of the electronic communication device acting as a headend (such as the node d2 or h3 according to FIG. 1 ).
当设备选择加入其节点之一作为头端而起作用的集群时,该加入一般是排他的。换言之,对于相同的服务,一个节点不能是不同集群(即分别具有不同的头端节点)的成员。加入集群的节点选择针对所述服务的最佳头端。When a device chooses to join a cluster where one of its nodes functions as a headend, the joining is generally exclusive. In other words, a node cannot be a member of different clusters (i.e., each with a different headend node) for the same service. A node joining a cluster selects the best headend for that service.
然而,节点还能够被连接到多个头端,如果所述头端被指派为实施不同的服务的话,诸如例如用于长距离数据发射(服务Si)的头端以及用于在站点上实施警报管理服务(服务Sj)的第二头端。However, a node can also be connected to multiple headends if the headends are assigned to implement different services, such as for example a headend for long distance data transmission (service Si) and a second headend for implementing alarm management services on site (service Sj).
为此,如同先前呈现的解决方案LEACH,电子通信设备的集群,诸如结合图1所描述的网络R1和R2的集群C1和C2,包括作为头端而起作用的设备,诸如结合图1所描述的节点d2或h3。其它设备作为所述集群的成员而起作用,以非穷举的方式诸如结合图1所描述的节点c2或i3。成员的作用主要在于收集信息,诸如例如环境量的度量,将其转化成数据然后以服务消息MS的形式对所述数据进行编码,所述服务消息MS的目的地为能够确保所确定的服务的头端。该头端识别所述服务消息MS,然后实施所确定的服务S。例如,这样的服务可以在于对自多个成员、经由消息MS传输到头端的数据进行聚合、然后实施以消息MC的形式的所聚合甚至合并的所述数据向目的地远程实体RS的长距离传输。To this end, as in the previously presented solution LEACH, a cluster of electronic communication devices, such as clusters C1 and C2 of networks R1 and R2 described in conjunction with FIG. 1 , includes a device acting as a headend, such as nodes d2 or h3 described in conjunction with FIG. Other devices act as members of the cluster, such as, in a non-exhaustive manner, nodes c2 or i3 described in conjunction with FIG. The role of the members is primarily to collect information, such as measurements of environmental quantities, convert them into data, and then encode this data in the form of service messages MS, destined for a headend capable of providing a specific service. This headend recognizes the service message MS and then implements the specified service S. For example, such a service could consist in aggregating data transmitted from multiple members to the headend via messages MS, and then transmitting this aggregated, or even merged, data over long distances in the form of messages MC to a destination remote entity RS.
自集群成员向目的地头端寻址的服务消息MS被结构化使得包括:A service message MS addressed from a cluster member to the destination headend is structured so as to include:
-表征消息的类型(MS、MH、MR等等)的信息;- Information indicating the type of message (MS, MH, MR, etc.);
-源节点(此外一般为成员节点)的标识的值;- the value of the source node's (generally a member node's) identifier;
-收件方节点(在该情况下为头端)的标识的值、甚至在多跳网络的情况中的中间或中继器节点的标识;- the value of the identity of the recipient node (in this case the headend), or even the identity of an intermediate or repeater node in case of a multi-hop network;
-数据(例如有关于通过设备传感器所测量的量);- data (e.g. about quantities measured by device sensors);
-可能地冗余码、甚至密码、或使得接收这样的服务消息的节点能够对所述服务消息进行解码、利用它或中继它的任何其它控制信息。- Possibly a redundancy code, even a cipher, or any other control information enabling a node receiving such a service message to decode said service message, utilize it or relay it.
消息MS、如在网络中流通的任何其它消息可以触发接收确认消息MACK,其通过消息接收方传输到目的地源节点。在所确定的时段的停止时或根据英语术语的“超时”,如果没有接收到任何MACK消息,则触发新的消息MS发射,并且这进行有限数目的迭代,在此结束时,源节点认为与收件方节点的“路由”或通信不可用或不再可用。这样的源节点可以决定放弃集群并且复原自由节点状态,又或寻求加入另一集群。Messages MS, like any other message circulating in the network, can trigger a receipt confirmation message MACK, which is transmitted by the message recipient to the destination source node. If no MACK message is received at the end of a specified period, or "timeout" in English, a new message MS is triggered. This is repeated for a finite number of times, at the end of which the source node considers the "route" or communication with the recipient node unavailable or no longer possible. Such a source node may decide to abandon the cluster and return to free node status, or seek to join another cluster.
自由节点向作为头端起作用的节点的加入接近于根据LEACH解决方案所实施的加入。然而,头端的选定模态以及自由节点变成集群成员的加入模态可以非常不同,如例如与法兰西国家信息和自动化研究院(INRIA)相关联的公司TRAXENS所预见的那样。根据该变型,仅仅是确实能够确保所确定的服务的节点能自指定为头端。在其侧,其它节点自由仲裁头端的竞争并且选择看来是对于实施它们所贡献于的服务而言最佳的候选的头端。The joining of a free node to a node acting as a headend is similar to the joining implemented according to the LEACH solution. However, the mode of selection of the headend and the joining of a free node to a cluster member can be very different, as foreseen, for example, by TRAXENS, a company associated with the French National Institute for Computer Science and Automation (INRIA). According to this variant, only nodes that can reliably guarantee a specific service can self-designate as headends. On their side, other nodes are free to arbitrate the competition for headends and select the headend that appears to be the best candidate for implementing the service to which they contribute.
无论头端的选定模式如何,通信设备的第一概念模式可以在于持续地维持所述这些通信设备收听无线电通信的频率以用于测试来源于成对设备的消息的存在。这样的途径可能引起重大的能量消耗并且使网络整体的自主性负担沉重。第二途径,其在英语术语下已知为无线电唤醒(“Wake On Radio”,WOR),在于在它们的相应功能的时间的大部分期间使节点进入相对睡眠中。无线电通信尤其被去活,因为在电能方面有相当的消耗。然而,这样的节点可以继续实施不太耗能的内部处理。以循环的方式,这样的节点被唤醒以用于收听来自配对的可能的消息或者用于进而发射招入消息、服务消息等等。Regardless of the selected mode of the headend, a first conceptual mode of communication devices can consist in continuously maintaining these communication devices listening to the radio communication frequency to test for the presence of messages from the paired device. Such an approach can result in significant energy consumption and place a heavy burden on the autonomy of the network as a whole. A second approach, known in English as "Wake-On-Radio" (WOR), consists in putting the nodes into a relative sleep state for most of the time their respective functions are in operation. Radio communication is particularly deactivated, as it consumes considerable electrical energy. However, such nodes can continue to perform less energy-intensive internal processing. In a cyclical manner, such nodes are woken up to listen for possible messages from the paired device or to subsequently transmit recruitment messages, service messages, etc.
图3图示了通过根据本发明的第一设备所实施的通信方法P100,所述方法P100包括请求加入集群的过程,所述设备作为示例诸如结合图2所描述的设备10。这样的按需加入过程使得自由节点、诸如例如节点c5又或节点i5能够主动开始在其邻域中发现成员节点或头端的阶段。这样的情形例如来自这样的自由节点的出现而且此后构成集群。其此外可以来自集群的拆毁,该集群的头端节点及其成员节点变成自由的,而且所述成员节点需要以新的头端为目的地而发射服务消息。所述情形还可以来自在适宜于且候选变成成员的节点与头端之间的太大的远离或非最优的定位,所述候选节点位于无线电范围外或在跳数方面太远离而使得发自所述头端的招入消息不被发送给它。FIG3 illustrates a communication method P100 implemented by a first device according to the present invention, said method P100 comprising a process for requesting to join a cluster, said device being, for example, the device 10 described in conjunction with FIG2 . Such an on-demand joining process enables a free node, such as, for example, node c5 or node i5, to proactively initiate a phase of discovering member nodes or headends in its neighborhood. Such a situation may arise, for example, from the emergence of such a free node and the subsequent formation of a cluster. It may also arise from the dismantling of a cluster, the headend node of the cluster and its member nodes becoming free, and the member nodes needing to transmit service messages destined for a new headend. Such a situation may also arise from a too great distance or non-optimal positioning between a node suitable and candidate for becoming a member and the headend, said candidate node being out of radio range or too far away in terms of hops so that a recruitment message from the headend is not sent to it.
根据已知技术,有必要的是节点主动开始自推选或被指定为头端,并且其触发招入过程,以便自由节点可以复原成员节点的状态。因此在服务消息的发送中可能损耗珍贵的时间和能量。According to the known technology, it is necessary for a node to actively start self-election or be designated as a head end, and it triggers the recruitment process so that the free node can restore the status of the member node. Therefore, precious time and energy may be wasted in sending service messages.
本发明因此使得自由节点能够通过加入请求过程来请求连结到集群,因此间接地连结到头端。The present invention thus enables a free node to request attachment to the cluster, and thus indirectly to the headend, through a join request procedure.
首先介绍由根据本发明的、实施方法P100的电子通信设备10实施的处理210。这样的处理在于触发加入过程。First, a process 210 implemented by an electronic communication device 10 according to the invention implementing the method P100 is described. Such a process consists in triggering a joining procedure.
该后者可以有利地包括设备10的唤醒的预先步骤219,如果该设备10实施例如无线电唤醒(“Wake On Radio”,WOR)技术的话。所述处理210包括步骤211以用于制定请求加入消息MAR。如同第一信息MAR-1那样,这样的消息包括和/或编码设备10的标识IDa的值。所述标识被有利地以独特的方式记录在所述设备10的存储装置12中。处理210此外包括步骤212,以用于触发所述请求加入消息MAR由第一通信装置13以任何相邻节点为目的地的发射。这样的消息MAR可以在附加字段MAR-3的形式下编码其它补充信息IMr。This latter step may advantageously include a preliminary step 219 of waking up the device 10, if it implements, for example, the "Wake on Radio" (WOR) technique. The process 210 includes a step 211 for formulating a request-to-join message MAR. Like the first information MAR-1, such a message includes and/or encodes the value of the identifier IDa of the device 10. This identifier is advantageously recorded in a unique manner in the storage device 12 of the device 10. The process 210 also includes a step 212 for triggering the transmission of the request-to-join message MAR by the first communication device 13, addressed to any neighboring node. Such a message MAR may encode other supplementary information IMr in the form of an additional field MAR-3.
这样的消息MAR的发射功率可以是预定和固定的。作为变型,所述发射功率可以是可变的,以便例如根据实施所述方法P100的设备的内部供给装置17的剩余能量容量而被降低。所述发射功率还可以是渐进的,其中发射步骤212是迭代的,如果加入请求继续没有响应的话,如我们稍后将看到的那样。The transmission power of such a message MAR may be predetermined and fixed. Alternatively, it may be variable, so as to be reduced, for example, as a function of the remaining energy capacity of the internal supply means 17 of the device implementing the method P100. It may also be gradual, with the transmission step 212 being iterative, if the join request continues to remain unanswered, as we will see later.
在所有情况中,用于触发请求加入消息MAR的发射的步骤212随后是消息MAA的接收等待步骤213,所述消息MAA显露由集群的头端或成员近邻节点所发射的所述请求加入消息MAR的接收。这样的消息MAA的步骤213的最大等待期限可以被参数化或确定以使得在给定时间结束时,实施所述方法P100的设备10认为(在图3上由经标注的连接213-n所符号表示的情形)它太孤立或不良地定位而不能重加入集群。处理210因此在步骤220处中断。这样的步骤220可以此外在于在根据例如WOR技术所确定的时段期间使设备进入睡眠或唤醒。In all cases, step 212, which triggers the transmission of a request-to-join message MAR, is followed by a step 213 of waiting for the reception of a message MAA, which signals the reception of the request-to-join message MAR transmitted by the cluster's headend or a member neighbor node. The maximum waiting period for such a step 213 of the message MAA can be parameterized or determined so that, at the end of a given time, the device 10 implementing the method P100 will deem itself too isolated or poorly located to rejoin the cluster (a situation symbolized in FIG3 by the labeled connection 213 - n). Process 210 is thus interrupted at step 220. Such a step 220 can also consist in putting the device to sleep or waking up during a period determined, for example, according to a WOR technique.
当在步骤213期间显露接收MAA的消息被装置13接收(在图3上由经标注的连接213-y所符号表示的情形)的时候,处理210包括步骤214以用于解码所述消息MAA。事实上,本发明预备了这样的消息MAA包括或编码尤其是第一信息MAA-1,所述第一信息MAA-1相当于所述消息MAA的源设备的标识IDm的值。该消息MAA此外编码请求加入消息的源设备的标识Ida的值,作为消息MAA的收件方设备的标识,其采用在与图3相关联地描述的非限制性的示例上的经标注的信息MAA-2的形式。所述消息MAA可以此外有利地编码上行路由Ru,其采用图3上经标注的信息MAA-3的形式,包括在所述消息MAA的源节点与集群(该源节点构成该集群的一部分)的头端之间的服务MS和/或招入MH消息的中继器和/或成员节点的标识的值。这样的字段MAA-3有利地包括至少属于所述路由的、最接近消息MAA的源设备的中继器节点的标识的值和头端标识IDH。字段MAA-4可以此外或作为变型编码下行路由,所述下行路由把消息MAA的源节点与请求加入的节点分离开。有利地,消息MAA可以此外作为变型或作为补充而包括字段MAA-3和/或MAA-4、信息MAA-5,其反映对上行路由Ru、甚至对下行路由Rd而言必要的跳数TTL。消息MAA可以有利地包括或编码字段MAA-6、MAA-7,其例如相关联于头端确保这样或那样的服务的通常能力的值CHc1、CHc2,甚至还有任何其它附加信息IMa,其采用与图3相关联的经标注的字段MAA-8的形式。When, during step 213, a message indicating the receipt of an MAA is received by device 13 (symbolized by the labeled connection 213-y in FIG. 3 ), process 210 includes step 214 for decoding the MAA message. The present invention provides for such a MAA message to include or encode, in particular, first information MAA-1, corresponding to the value of the identifier IDm of the source device of the MAA message. The MAA message also encodes the value of the identifier Ida of the source device of the join request message, as the identifier of the recipient device of the MAA message, in the form of the labeled information MAA-2 in the non-limiting example described in connection with FIG. The MAA message may also advantageously encode the upstream route Ru, in the form of the labeled information MAA-3 in FIG. This includes the values of the identifiers of the serving MS and/or the relays and/or member nodes that enrolled the MH message, between the source node of the MAA message and the headend of the cluster of which the source node is a part. Such a field MAA-3 advantageously includes at least the value of the identifier of the repeater node belonging to the route, closest to the source device of the message MAA, and the headend identifier IDH. Field MAA-4 can also or as a variant encode a downstream route that separates the source node of the message MAA from the node requesting to join. Advantageously, the message MAA can also include, as a variant or supplement, fields MAA-3 and/or MAA-4, information MAA-5 reflecting the number of hops TTL required for the upstream route Ru and even for the downstream route Rd. The message MAA can also advantageously include or encode fields MAA-6 and MAA-7, for example, values CHc1 and CHc2 associated with the headend's general ability to provide certain services, and even any other additional information IMa, in the form of the labeled field MAA-8 associated with FIG. 3 .
步骤214因此在于从消息MAA中推断相关的并且被编码在所述消息中的信息的集。当步骤214确认在字段MAA-2中所编码的标识的值对应于申请了加入请求的设备的标识IDa的值的时候,消息MAA被认为是显露所述加入请求的接收的消息。处理210于是包括步骤215,其在步骤214之后,在于在设备的存储装置12内记录从所述消息MAA中推断的信息,尤其是头端节点的标识IDH的值,甚至是在自请求加入的节点起的上行路由Ru上的第一节点的标识的值。这样的动作可以有利地在于在所述存储装置12内的记录RH的更新。标识IDH的值尤其作为当前值IDHc被写在记录RH内。设备10于是变成“加入了”头端节点的集群的节点。方法P100于是可以包括处理120并且触发处理120的实施,所述处理120在于经由尤其是已经赞同地回应了加入请求的节点、也就是说经由消息MAA的源设备而以头端为目的地发射服务消息MS。Step 214 therefore involves deducing from the message MAA the relevant set of information encoded in the message. If step 214 confirms that the value of the identifier encoded in field MAA-2 corresponds to the value of the identifier IDa of the device requesting the join request, the message MAA is considered to indicate receipt of the join request. Process 210 then includes step 215, which, after step 214, involves recording in the device's memory device 12 the information deduced from the message MAA, in particular the value of the identifier IDH of the headend node, and even the value of the identifier of the first node on the upstream route Ru from the node requesting the join request. This action can advantageously involve updating the record RH in the memory device 12. The value of the identifier IDH is written in particular as the current value IDHc in the record RH. The device 10 then becomes a node "joined" to the cluster of the headend node. Method P100 can then include and trigger the execution of process 120, which involves transmitting a service message MS, destined for the headend, via, in particular, the node that has affirmatively responded to the join request, that is, via the source device of the message MAA.
先前已经看到了本发明预备请求加入消息MAR的发射功率可以是渐进的。由该实施例所寻求的目的是保存根据本发明的设备10的装置17的能量资源。为了实施这样的渐进性,消息MAR的发射功率首先由处理单元参数化,以用于根据广播类型的技术、以小范围传输所述消息MAR。步骤212的第一迭代因此在于将发射功率参数化为底值Pmin。在步骤213处预见的最大等待期限结束时,如果没有任何显露加入请求接收的消息MAA被接收(在图3上由经标注的连接213-n所符号表示的情形),则步骤220不被如针对先前的实施例那样自动实施。代替地,处理210在于触发步骤212的新迭代并且因此重新以增加的发射功率Pmin+发射消息MAR。该增长由处理单元实现,所述处理单元通过步骤217而实施处理210,例如根据给定的倍数因子或被应用到底功率Pmin的经确定的增量步长。如果在步骤213处预见的最大期限结束时没有接收到任何消息MAA(在图3上由经标注的连接213-n所符号表示的情形),则处理210可以触发步骤212的新迭代。步骤217和212的一个或多个迭代因此可以相继而来,只要没有接收到任何消息MAA,只要功率Pmin+继续小于消息MAR的最大发射功率Pmax(在图3上由经标注的连接218-n所符号表示的情形)。一旦在218处达到了消息MAR的最大发射功率,所述迭代就停止。在该情况中,处理210在220处中断。As previously noted, the transmission power of the preliminary join request message MAR according to the present invention can be gradually increased. The objective pursued by this embodiment is to conserve energy resources of the device 17 of the apparatus 10 according to the present invention. To implement this gradual increase, the transmission power of the message MAR is first parameterized by the processing unit for transmission of the message MAR over a narrow range using a broadcast-type technology. The first iteration of step 212 thus involves parameterizing the transmission power to a base value Pmin. At the end of the foreseen maximum waiting period at step 213, if no message MAA indicating the receipt of a join request has been received (symbolized in FIG3 by the labeled connection 213-n), step 220 is not automatically performed as in the previous embodiment. Instead, process 210 triggers a new iteration of step 212 and retransmits the message MAR at an increased transmission power of Pmin+. This increase is implemented by the processing unit, which implements process 210 via step 217, for example, according to a given multiplication factor or a determined incremental step size applied to the base power Pmin. If no MAA message is received at the end of the foreseen maximum period at step 213 (a situation symbolized in FIG3 by the labeled connection 213-n), process 210 can trigger a new iteration of step 212. Thus, one or more iterations of steps 217 and 212 can continue as long as no MAA message is received and as long as the power Pmin+ remains less than the maximum transmission power Pmax of the MAR message (a situation symbolized in FIG3 by the labeled connection 218-n). Once the maximum transmission power of the MAR message is reached at 218, the iterations stop. In this case, process 210 is interrupted at 220.
本发明预备对于先前与渐进的消息MAR的发射功率相关联地描述的实施例的变型或补充。根据该新的实施例,在于制定消息MAR的步骤211在于在所述消息中整合字段MAR-2,所述字段MAR-2明确所准许的跳数,其被我们在下文中标记为TTL,把请求加入的节点与成员节点或集群头端分开。当所述跳数大于一时,本发明预备请求加入消息MAR能够被不作为集群成员或头端起作用的节点中继。我们将在下文中看到如何使这样的功能变得可能,这通过描述根据本发明的方法P100的处理200、在请求加入消息MAR的接收时触发的处理。The invention provides for a variant or supplement to the embodiment previously described in connection with the progressive transmission power of the message MAR. According to this new embodiment, the step 211 of formulating the message MAR consists in integrating in said message a field MAR-2 which specifies the number of hops allowed, which we will mark below as TTL, separating the node requesting to join from the member nodes or cluster head. When said number of hops is greater than one, the invention provides for the request to join message MAR to be relayed by nodes that do not act as cluster members or headends. We will see below how such a function is made possible by describing the process 200 of the method P100 according to the invention, a process triggered upon reception of the request to join message MAR.
根据该实施例,通过如下来对后随有消息MAA的接收等待步骤213的消息MAR的制定和发射触发的相应步骤211和212进行共同迭代:在每个无效迭代的结束时——也就是说,只要在步骤213处没有接收到任何消息MAA(在图3上由经标注的连接213-n所符号表示的情形)——在步骤217处使所述经准许的跳数递增或倍增。当所述跳数TTL达到预定最高限度(在图3上由经标注的连接218-y所符号表示的情形)并且步骤213没有允许接收消息时,处理210触发步骤220并且中断。实施所述方法P100的设备继续是自由节点。作为非限制性的示例,在步骤211的第一迭代处的TTL的最小值可以等于一,表明没有任何消息MAR中继被加入请求者准许。在每个迭代处,该数目可以乘以给定的倍数因子,例如等于二的值,直到TTL的所述值达到等于16的最高限度值。作为变型,TTL的值可以在每个迭代处递增一步,例如等于一或等于任何其它非零整数。本发明此外预备在步骤213处预见的最大等待期限还可以是渐进的并且在步骤217处的每个迭代处被修正。According to this embodiment, steps 211 and 212 of the formulation and transmission triggering of a message MAR followed by a wait-for-receive step 213 for a message MAA are jointly iterated as follows: at the end of each inactive iteration—that is, as long as no message MAA is received at step 213 (symbolized by the labeled connection 213-n in FIG3 )—the permitted hop count is incremented or multiplied at step 217. When the hop count TTL reaches a predetermined ceiling (symbolized by the labeled connection 218-y in FIG3 ) and no message is permitted to be received at step 213, process 210 triggers step 220 and aborts. The device implementing method P100 continues to be a free node. As a non-limiting example, the minimum TTL value at the first iteration of step 211 may be one, indicating that no message MAR relaying is permitted by the join requestor. At each iteration, this number may be multiplied by a given multiplication factor, such as two, until the TTL value reaches a ceiling of 16. Alternatively, the value of TTL may be incremented at each iteration, for example equal to one or any other non-zero integer. The invention further provides that the maximum waiting period foreseen at step 213 may also be progressive and modified at each iteration at step 217 .
现在研究由根据本发明的设备(诸如与图2相关联地描述的设备10)的处理单元11所实施的处理200的若干实施例。这样的处理200与图3相关联地被描述。它在加入方法P100的实施时、响应于由请求加入集群的第三设备发射的请求加入消息MAR的接收而被触发。Several embodiments of a process 200 implemented by the processing unit 11 of a device according to the present invention, such as the device 10 described in connection with FIG2 , will now be considered. Such a process 200 is described in connection with FIG3 . It is triggered during the implementation of the joining method P100 in response to the receipt of a request to join message MAR transmitted by a third device requesting to join the cluster.
根据本发明的这样的处理200因此包括用于接收由电子通信设备、诸如与图2相关联地描述的节点c5或节点i5所制定和发射的请求加入消息MAR的第一步骤201。这样的消息MAR例如在字段MAR-1内包括或编码尤其是请求加入集群的设备的标识IDa的值。方法P100还包括用于解码所述请求加入消息MAR并且因此从中推断尤其是标识IDa的所述值的步骤202。Such a process 200 according to the invention thus comprises a first step 201 for receiving a request-to-join message MAR formulated and transmitted by an electronic communication device, such as the node c5 or the node i5 described in connection with FIG2 . Such a message MAR comprises or encodes, for example, in a field MAR-1, a value of an identification IDa of the device requesting to join the cluster. The method P100 further comprises a step 202 for decoding said request-to-join message MAR and thus deducing therefrom said value of the identification IDa in particular.
当根据本发明的设备在201处接收由根据本发明的并且请求加入集群的第二设备所发射的请求加入消息MAR的时候,本发明主要预备两种情形,其分别由图3上经标注的连接203-a和203-b所符号表示:When the device according to the present invention receives at 201 a join request message MAR transmitted by a second device according to the present invention and requesting to join the cluster, the present invention mainly prepares for two situations, which are respectively symbolized by the marked connections 203-a and 203-b on FIG3:
-接收所述消息MAR的设备是成员节点或集群的头端;接收自节点i5发射的消息MAR的这样的设备、例如(诸如与图1和图2相关联地描述的)节点i4包括记录RH,所述记录RH对标识IDH的当前值IDHc进行编码,所述标识IDH在该情况中是作为集群C2的头端节点起作用的节点h3的标识;the device receiving said message MAR is a member node or headend of a cluster; such a device, for example the node i4 (such as described in connection with Figures 1 and 2), which receives the message MAR transmitted from the node i5, comprises a record RH encoding the current value IDHc of the identifier IDH, in this case the identifier of the node h3 acting as headend node of the cluster C2;
-接收所述消息MAR的设备是自由节点;接收由节点c8所发射的消息MAR的这样的设备、例如(诸如与图1和图2相关联地描述的)节点c5不包括记录RH,所述记录RH对等于作为头端节点起作用的节点、诸如d2的标识IDH的值的当前值IDHc进行编码;作为变型,这样的自由节点可以包括记录RH,所述记录RH编码了对节点不是集群的头端或成员进行指示的所确定的值。-The device receiving the message MAR is a free node; such a device receiving the message MAR transmitted by the node c8, for example the node c5 (such as described in connection with Figures 1 and 2) does not include a record RH encoding the current value IDHc of the identifier IDH equal to the value of the node acting as a head node, such as d2; as a variant, such a free node may include a record RH encoding a determined value indicating that the node is not the head end or member of the cluster.
在第一情形(图3中的连接203-a)中,处理200包括步骤204,所述步骤204用于制定消息MAA,所述消息MAA显露请求加入的设备的加入请求的接收。这样的步骤204在于在消息MAA(根据图3的示例的字段MAA-2)内编码最初来自加入请求的设备的标识IDa的值,作为消息MAA的收件方设备的标识。如先前提及的,这样的步骤204此外在于对实施处理200并且作为集群的头端或成员节点起作用的设备的标识IDm的值进行编码(根据图3的示例的字段MAA-1)。步骤204此外可以编码(根据图3的示例的字段MAA-3)上行路由Ru,即把因此准备发射消息MAA的节点与它要形成其一部分的集群的头端分离开的节点的标识的值,所述路由包括所述头端的标识IDH的值。步骤204此外可以在于编码(根据图3的示例的字段MAA-5、MAA-6)对头端确保这样或那样的服务的一个或多个能力CHc1、CHc2进行描述的附加信息或值。步骤204此外可以编码把消息MAA的源节点与请求加入的节点分离开的下行路由Rd(根据图3的示例的字段MAA-4),甚至还有附加信息(根据图3的示例的字段MAA-8)。处理200从那时起包括步骤205,用于触发通过实施所述处理200的设备10的通信装置13对所述消息MAA的发射。In the first scenario (connection 203-a in Figure 3), process 200 includes step 204 for formulating a message MAA, which indicates the receipt of a join request from a device requesting to join. This step 204 encodes within the message MAA (field MAA-2 in the example of Figure 3) the value of the identifier IDa originally received from the device requesting to join, as the identifier of the device to which the message MAA is addressed. As previously mentioned, this step 204 also encodes the value of the identifier IDm of the device implementing process 200 and acting as a cluster headend or member node (field MAA-1 in the example of Figure 3). Step 204 may also encode (field MAA-3 in the example of Figure 3) the value of the upstream route Ru, i.e., the identifier of the node separating the node that is to transmit the message MAA from the cluster headend of which it is to form a part. This route includes the value of the identifier IDH of the headend. Step 204 can also include encoding (according to the example fields MAA-5 and MAA-6 in FIG3 ) additional information or values describing one or more capabilities CHc1 and CHc2 that the headend uses to ensure certain services. Step 204 can also encode the downstream route Rd separating the source node of the message MAA from the node requesting to join (according to the example field MAA-4 in FIG3 ), or even additional information (according to the example field MAA-8 in FIG3 ). Process 200 then includes step 205 for triggering the transmission of the message MAA by the communication device 13 of the device 10 implementing process 200.
在其中接收请求加入消息MAR的这样的设备是自由节点的情况(在图3上由连接203-b所符号表示的第二情形)中,本发明预备:有利地,根据第一实施例,这样的设备继续是静默的(步骤207)。根据第二实施例,尤其是在根据本发明并且在先前描述的处理210的步骤211在于制定对明确所准许的中继或跳数的字段进行编码的消息MAR的时候,本发明预备处理200使得能够在接收到所述消息MAR时经由不作为集群的头端或成员起作用的一个或多个节点而中继请求加入消息MAR。根据该实施例,处理200包括步骤206,所述步骤206目的在于以预定义的步长、例如一单位而使在步骤202处推断或解码的值TTL递减。步骤206此外在于比较字段TTL的经递减的值与底值(作为非限制性的示例,零值)。如果所述经递减的值达到所述底值(在图3中由连接206-n所符号表示的情形),则处理200在207处中断并且实施所述处理的设备响应于消息MAR的接收而继续是静默的。在相反情况(在图3中由连接206-y符号表示的情形)中,处理200包括步骤208,用于重新编码在202处从所接收的消息MAR中推断的信息,除了被更新并且取在206处递减的值TTL的字段TTL之外。步骤208此外在于触发所述经重编码的消息MAR以设备的邻域为目的地的发射,如同实施处理210以用于为自己制定和发射请求加入消息MAR的成对设备那样。因此,中继器设备为他人传输加入请求。步骤208于是有利地在于此外在存储装置中针对如下节点记录节点的标识IDa的值:该节点对消息MAR进行了中继。In the case where such a device receiving the request-to-join message MAR is a free node (the second scenario symbolized by connection 203-b in FIG3 ), the present invention provides that, advantageously, according to the first embodiment, such a device remains silent (step 207). According to a second embodiment, in particular when, according to the present invention and in step 211 of the previously described process 210, a message MAR is formulated that encodes a field specifying the number of permitted relays or hops, the present invention provides that process 200 enables, upon receipt of the message MAR, the request-to-join message MAR to be relayed by one or more nodes that do not function as a cluster headend or member. According to this embodiment, process 200 includes a step 206 for decrementing the value TTL deduced or decoded in step 202 by a predefined step size, such as one unit. Step 206 also involves comparing the decremented value of the TTL field with a floor value (zero, as a non-limiting example). If the decremented value reaches the bottom value (the situation symbolized by connection 206-n in FIG. 3 ), process 200 is interrupted at 207 and the device implementing the process continues to remain silent in response to receiving the message MAR. In the opposite case (symbolized by connection 206-y in FIG. 3 ), process 200 includes step 208 for re-encoding the information inferred from the received message MAR at 202, except for the field TTL, which is updated and takes the value TTL decremented at 206. Step 208 also triggers the transmission of the re-encoded message MAR to the device's neighborhood, just as process 210 is performed for a paired device that formulates and transmits a request-to-join message MAR. Thus, the repeater device transmits the request to join for others. Step 208 then advantageously also records in a storage device the value of the node identifier IDa for the node that relayed the message MAR.
根据本发明的设备此外可以还中继显露消息MAR的接收的任何消息MAA,所述消息MAA已经由作为集群的成员或头端而起作用的第三设备、通过尤其是根据本发明的处理200的步骤204和205的实施而预先被制定和发射。为此,本发明预备由消息MAA的中继器设备实施的处理200包括用于解码消息MAA的步骤209。该步骤尤其在于确定消息MAA的收件方设备的标识IDa、即已经发射了原始消息MAR的设备的标识的值。如果所述标识值对应于208中记录的标识的值,则那么实施目的在于触发显露加入请求的接收的消息的发射的步骤205的迭代以便传播所述消息MAA。因此,越来越近地,经由一个或多个根据本发明的中继器设备,自集群的头端或成员发射的消息MAA可以被发送到原始加入请求的源设备。The device according to the present invention can also relay any received message MAA revealing a message MAR, which has been previously formulated and transmitted by a third device acting as a member or headend of the cluster, in particular by implementing steps 204 and 205 of process 200 according to the present invention. To this end, process 200, which is provided by the present invention for implementation by the repeater device of the message MAA, includes a step 209 for decoding the message MAA. This step consists in determining the value of the identifier IDa of the device to which the message MAA is addressed, i.e., the identifier of the device that has transmitted the original message MAR. If this identifier value corresponds to the identifier value recorded in step 208, an iteration of step 205 is implemented, aimed at triggering the transmission of a received message revealing a join request, in order to disseminate the message MAA. Thus, more and more, via one or more repeater devices according to the present invention, the message MAA transmitted from the headend or member of the cluster can be sent to the device that originally requested to join.
通过实施诸如先前描述的加入方法P100,诸如与图2相关联地作为非限制性示例描述的设备10还可以变成加入集群的节点。与图3相关联地,为了达成这点,这样的设备实施处理210以用于:By implementing a joining method P100 such as previously described, a device 10 such as described as a non-limiting example in association with FIG2 may also become a node joining a cluster. In association with FIG3 , to achieve this, such a device implements a process 210 for:
-首先,制定和传输请求加入集群的消息MAR,然后- First, formulate and transmit the message MAR requesting to join the cluster, then
-响应于所述加入请求,考虑显露所述加入请求的接收的消息MAA,这样的消息MAA已经被集群的头端或成员第三设备制定,所述第三设备还设置根据本发明的方法P100、更明确地为处理200,并且以请求加入的设备为目的地被传输,可能地经由一个或多个自由和/或被准予加入的设备。- In response to said join request, taking into account the message MAA received revealing said join request, such message MAA having been formulated by a head end or member third device of the cluster, said third device also being provided with the method P100 according to the invention, more specifically the process 200, and being transmitted with the device requesting to join as destination, possibly via one or more free and/or admitted devices.
如先前与图1和2相关联地提及的那样,根据本发明的单跳网络R2或多跳网络R1的实施主要目的在于通过传感器15收集与不同节点的环境相关联的信息。事实上,每个通信设备10有利地被安置成对着容器的隔板。根据上下文作为成员而起作用或凭借本发明作为被准许加入的节点而起作用的每个通信设备10的处理单元11被适配用于触发对设备的环境信息进行编码的服务消息MS的制定和传输。作为头端起作用的设备10的处理单元11被适配用于接收这样的服务消息MS,从中推断来自一个或多个成员或被准许加入者的所述环境信息并且实施服务,例如经由GPRS网络或等同物、以远程服务器RS为目的地而进行消息MC的长程传输。As previously mentioned in connection with Figures 1 and 2, the implementation of a single-hop network R2 or a multi-hop network R1 according to the invention mainly aims at collecting information related to the environment of the different nodes by means of sensors 15. In fact, each communication device 10 is advantageously placed facing the partition of the container. The processing unit 11 of each communication device 10 that acts as a member according to the context or as a node admitted to join by virtue of the invention is adapted to trigger the formulation and transmission of a service message MS encoding information about the environment of the device. The processing unit 11 of the device 10 that acts as a head end is adapted to receive such a service message MS, to infer said environment information from one or more members or admitted persons and to implement a service, for example by long-distance transmission of a message MC via a GPRS network or equivalent with a remote server RS as destination.
由单跳或多跳网络的成员设备根据由一个或多个传感器递送的度量而制定服务消息MS基本上是已知的。相反,在本发明内、由被准许加入的设备以头端为目的地而进行服务消息MS的制定和发射需要这样的消息MS的制定和传输的创新处理120。图3描述了这样的处理120的实现示例。The formulation of service messages MS by member devices of a single-hop or multi-hop network based on metrics delivered by one or more sensors is generally known. In contrast, the formulation and transmission of service messages MS by devices admitted to the network, destined for the headend, within the present invention, requires an innovative process 120 for the formulation and transmission of such messages MS. FIG3 illustrates an example implementation of such a process 120.
该处理120典型地包括、即如同由根据现有技术的成员节点所实施的那个一样包括用于制定服务消息MS的步骤123a以及用于以针对所确定的服务S、作为头端起作用的设备为目的地而发射所述消息的步骤。这样的步骤123在预先步骤121之后被实施,以用于例如从传感器15收集与在对着其安放了实施方法P100的设备10的容器内占主导的温度相关联的度量。This process 120 typically comprises, i.e., as implemented by a member node according to the prior art, a step 123 a for formulating a service message MS and a step for transmitting said message destined for the device acting as headend for the determined service S. Such a step 123 is implemented after a previous step 121 for collecting, for example, from a sensor 15, a metric associated with the temperature prevailing in the container in front of which the device 10 implementing the method P100 is placed.
这样的步骤123还取决于记录的存在(图3中由步骤122所符号表示的测试),所述记录诸如在与图2相关联地描述的设备10的数据存储器12中所记入的记录RH,包括作为头端起作用的节点或设备的标识的值IDHc(图3中通过连接122-y符号表示的情形),其表明节点是成员或是被准许加入集群。在相反情况中(图3中由连接122-n符号表示的情形),处理在129处中断,并且没有触发这样的消息的任何发射。Such a step 123 is also subject to the presence of a record (test symbolized by step 122 in FIG. 3 ), such as the record RH entered in the data memory 12 of the device 10 described in connection with FIG. 2 , including a value IDHc for the identification of the node or device acting as headend (the case symbolized by the connection 122 -y in FIG. 3 ), indicating that the node is a member or has been admitted to the cluster. In the opposite case (the case symbolized by the connection 122 -n in FIG. 3 ), the process is interrupted at 129 and no transmission of such a message is triggered.
根据所述记录RH包括直接的上行路由Ru、即在记录RH中仅仅存在头端的标识的一个值IDHc,或者包括间接的上行路由Ru、即所述记录RH此外包括中继器成员的标识ID’的值,消息MS被直接传输到所述头端或所述中继器成员。Depending on whether the record RH includes a direct uplink route Ru, i.e., only a value IDHc of the head end identifier exists in the record RH, or includes an indirect uplink route Ru, i.e., the record RH also includes the value of the repeater member identifier ID’, the message MS is transmitted directly to the head end or the repeater member.
此外,服务消息MS的这样的发射123还可以由对发源于相同集群的成员并且被寻址到设备10的服务消息MS的接收121b所触发,所述设备10实施所述加入方法P100并且作为中继器成员起作用。在发源于相同集群的成员的这样的服务消息的接收之后,步骤121b可以因此包括一个步骤,以用于接收并且解码这样的消息MS、甚至用于在存储器12中暂时记录在经解码的所述服务消息MS中所包含的数据。所述消息MS的中继可以因此通过不同时间的所述消息MS的重发射来体现。Furthermore, such transmission 123 of a service message MS may also be triggered by the reception 121b of a service message MS originating from a member of the same cluster and addressed to a device 10 implementing the joining method P100 and acting as a repeater member. Following the reception of such a service message MS originating from a member of the same cluster, step 121b may thus include a step for receiving and decoding such a message MS, and even temporarily recording the data contained in the decoded service message MS in the memory 12. The relaying of such a message MS may thus be manifested by retransmitting it at different times.
根据优选的第一实施例,可能相关的是在服务消息的发射之前,作为被准许加入集群的节点起作用的通信设备验证其加入的连续性。事实上,所述设备被准许加入的集群可能已经被拆毁,例如,在头端的主动发起下或在节点的相互配置的修改之后。According to a preferred first embodiment, it may be relevant that, before transmitting a service message, a communication device acting as a node admitted to the cluster verifies the continuity of its admission. In fact, the cluster to which the device was admitted may have already been torn down, for example, at the initiative of the head end or after a modification of the mutual configuration of the nodes.
处理120因此包括测试步骤124,所述测试步骤124目的在于确定设备是作为成员节点还是被准许加入的节点而起作用。该状态可以例如通过读取布尔状态指示符来被确定,所述布尔状态指示符的当前值被记录在设备的数据存储器12中或通过任何其它技术而被记录。这样的状态指示符因此可以交替地取两个预定值,其分别描述节点是“成员甚至头端”或“被准许加入”。因此,处理210的步骤215可以此外在于更新所述状态指示符以用于指定所述设备直到相反证据为止都是被准许加入的节点。在其中所述状态指示符表明节点是集群的成员的情况(图3中通过连接124-n图示的情形)中,一旦在123a中制定了消息MS,就实施步骤123。相反,在其中所述状态指示符表明节点是被准许加入的情况(图3中通过连接124-y图示的情形)中,处理120包括步骤125以用于制定其加入的持久性的验证消息MAS并且触发通过第一通信装置13对所述消息的发射。这样的消息MAS的目的在于在后续的步骤126中验证已经预先赞同地响应于加入请求的成员节点总是相同集群的成员,即关联于相同的头端节点。如图3作为非限制性示例所指示的,在125中制定和传输的消息MAS有利地包括两个字段MAS-1和MAS-2以用于分别编码所述消息MAS的收件方设备的标识IDm的值和被准许加入的设备的标识IDa的值。这样的消息MAS将可以以附加字段MAS-3的形式编码其它补充信息IMs。Process 120 therefore includes a test step 124, the purpose of which is to determine whether the device is acting as a member node or a node that is allowed to join. This state can be determined, for example, by reading a Boolean status indicator, the current value of which is recorded in the device's data memory 12 or recorded by any other technique. Such a status indicator can therefore alternately take two predetermined values, which respectively describe whether the node is a "member even head end" or "allowed to join". Therefore, step 215 of process 210 can also consist in updating the status indicator to specify that the device is a node that is allowed to join until proven otherwise. In the case where the status indicator indicates that the node is a member of the cluster (the situation illustrated by connection 124-n in Figure 3), step 123 is implemented once message MS has been formulated in 123a. In contrast, in the case where the status indicator indicates that the node is admitted to the network (the situation illustrated in FIG3 by connection 124-y), process 120 includes a step 125 for formulating a permanent verification message MAS of its admission and triggering the transmission of said message by the first communication means 13. The purpose of such a message MAS is to verify, in a subsequent step 126, that the member nodes that have previously responded to the admission request with consent are always members of the same cluster, i.e., associated with the same headend node. As indicated in FIG3 as a non-limiting example, the message MAS formulated and transmitted in 125 advantageously includes two fields MAS-1 and MAS-2 for encoding, respectively, the value of the identifier IDm of the recipient device of the message MAS and the value of the identifier IDa of the device admitted to the admission. Such a message MAS may also encode other supplementary information IMs in the form of an additional field MAS-3.
如同包括显露加入请求的接收的消息的接收等待步骤213的处理210那样,处理120包括由消息MAS的收件方节点制定和发射的、显露消息MAS的接收的消息MAA的接收等待步骤126。Like the process 210 comprising the reception waiting step 213 of a message revealing the reception of a request to join, the process 120 comprises the reception waiting step 126 of a message MAA formulated and transmitted by the addressee node of the message MAS revealing the reception of the message MAS.
事实上,由先前已经赞同地响应于加入请求的设备所实施的处理200可以有利地包括步骤202a以用于解码在201a中由第一通信装置预先接收的加入验证的消息MAS。步骤202a可以在于解码所述验证消息MAS,以用于从中推断消息MAS的源设备的标识IDa的值以及所述消息的收件方设备的标识的值。当该后者对应于专用于实施处理200的所述设备的标识的值的时候,该后者认为消息MAS是被指定供其所用的。In fact, the process 200 implemented by the device that has previously responded to the accession request with approval can advantageously include a step 202a for decoding the accession verification message MAS previously received by the first communication device in 201a. Step 202a can consist in decoding the verification message MAS in order to deduce from it the value of the identification IDa of the device from which the message MAS originated and the value of the identification of the device to which the message was addressed. When the latter corresponds to the value of the identification dedicated to the device implementing the process 200, the latter considers the message MAS to be destined for its use.
如果在203中,所述设备检测到它是集群的成员(在图3中通过连接203-a图示的情形),则所述设备实施步骤204然后实施步骤205以用于制定然后由第一通信装置13发射消息MAA,所述消息MAA显露消息MAS的接收,如同响应于所述设备赞同地响应于的请求加入消息MAR的接收而制定然后发射的消息MAA那样。在相反情况(图3中通过连接203-b所图示的情形)中,设备在207中继续是静默的。处理200中断。If, in 203, the device detects that it is a member of a cluster (the situation illustrated in FIG3 by connection 203-a), it then carries out step 204 and then step 205 to formulate a message MAA, which is then transmitted by the first communication means 13, indicating the receipt of the message MAS, just as the message MAA was formulated and then transmitted in response to the receipt of the request to join message MAR, to which the device responded in agreement. In the opposite case (the situation illustrated in FIG3 by connection 203-b), the device continues to remain silent in 207. Process 200 is interrupted.
在被准许加入的设备侧,这样的消息MAA在步骤126处的最大等待期限可以被参数化或确定成使得在给定时间的结束时,被准许加入的设备认为(图3上通过经标注的连接126-n所符号表示的情形)它不再被准许加入到集群。处理120因此在步骤129处中断。设备重新变成自由节点。这样的步骤129可以尤其在于擦除记录RH。它此外可以在于在根据例如WOR技术所确定的短暂时段期间使所述设备进入睡眠或唤醒。On the part of the device admitted to the cluster, the maximum waiting period for such a message MAA at step 126 can be parameterized or determined such that, at the end of a given period, the admitted device considers (symbolized in FIG3 by the labeled connection 126 - n) that it is no longer admitted to the cluster. Processing 120 is therefore interrupted at step 129. The device becomes a free node again. Such a step 129 can, in particular, consist of erasing the record RH. It can also consist of putting the device to sleep or waking up during a brief period determined, for example, according to the WOR technique.
本发明作为变型或作为补充而预备加入丢失消息MAAR可以被制定然后由电子通信设备发射,响应于当所述消息MAS的收件方不再是集群的成员时对加入验证消息MAS的接收,加入丢失消息MAAR代替“静默”或消息MAA的不发射。为此,这样的设备可以在步骤207处制定加入丢失消息MAAR并且从中触发通过第一通信装置的发射。As a variant or in addition to the present invention, a lost access message MAAR can be formulated and then transmitted by the electronic communication device, in response to the receipt of a join verification message MAS when the recipient of said message MAS is no longer a member of the group, replacing the "silence" or non-transmission of the message MAA. To this end, such a device can formulate the lost access message MAAR at step 207 and trigger the transmission thereof by the first communication means.
消息MAAR的这样的制定可以在于编码:Such a formulation of the message MAAR may consist in encoding:
-作为消息MAAR的收件方设备的标识的值的标识IDa的值;- the value of the identifier IDa being the value of the identifier of the recipient device of the message MAAR;
-作为所述消息MAAR的源设备的标识的值的设备的标识IDm的值。- the value of the identification IDm of the device being the value of the identification of the source device of said message MAAR.
如同其它消息MAR、MAA、MAS或MS那样,这样的消息可以包括录入所述消息的附加信息。Like the other messages MAR, MAA, MAS or MS, such a message may comprise additional information entered into said message.
根据该变型,当在步骤126期间,消息MAAR被接收然后解码,其表明收件方设备的标识的值等于消息MAS的源设备的标识IDa的值并且所述消息MAAR的源标识的值对应于消息MAS的收件方设备的标识的值时,处理120在129处结束,如先前所述那样。先前被准许加入的设备重新变成自由节点。According to this variant, when during step 126 a message MAAR is received and then decoded, which indicates that the value of the identifier of the recipient device is equal to the value of the identifier IDa of the source device of the message MAS and that the value of the source identifier of said message MAAR corresponds to the value of the identifier of the recipient device of the message MAS, the process 120 ends at 129, as previously described. The device previously admitted to joining becomes a free node again.
当在步骤126期间显露消息MAS的接收的消息MAA被第一通信装置13接收的时候,所述消息MAA被解码以用于从中推断尤其是字段MAA-1、MAA-2和MAA-3的内容并且因此知道消息MAA的源设备的标识IDm的值、被准许加入的节点的标识IDa的值以及集群的头端节点的标识IDHc的值。步骤126因此使得能够验证(在图3上通过经标注的连接126-y所符号表示的情形)被准许加入的节点正是消息MAA的收件方、该后者已经由已赞同地响应于加入请求的成员节点发射以及集群总是关联于相同的头端。步骤126可以此外从消息MAA中推断头端确保特定服务的能力的值(例如被编码在字段MAA-5或MAA-6中)。因此,本发明预备一种实施例,针对其而言被准许加入的节点可以确认或废除:所述能力相对于预确立的准则是足够的。步骤126可以此外在于更新数据存储器12中的记录RH,以用于更新所述能力的当前值CHc。在消极情况中,步骤129被实施并且被准许加入的节点自身结束其加入。如果消息MAA很好地符合被准许加入的节点的期待,其因此确认了加入的连续性,则触发服务消息MS的发射的步骤123被实施。When the message MAA, revealing the receipt of the message MAS during step 126, is received by the first communication device 13, it is decoded to infer, in particular, the contents of fields MAA-1, MAA-2, and MAA-3, thereby determining the values of the identifier IDm of the source device of the message MAA, the identifier IDa of the node admitted to joining, and the identifier IDHc of the cluster's headend node. Step 126 thus enables verification (symbolized in FIG3 by the labeled connection 126-y) that the node admitted to joining is the recipient of the message MAA, that the message MAA was transmitted by a member node that has responded to the joining request in agreement, and that the cluster is always associated with the same headend. Step 126 can also infer from the message MAA the value of the headend's capabilities for providing a specific service (e.g., encoded in fields MAA-5 or MAA-6). The present invention thus provides for an embodiment in which the node admitted to joining can confirm or rescind that these capabilities are sufficient according to pre-established criteria. Step 126 may also consist in updating the record RH in the data memory 12 in order to update the current value CHc of the capability. In the negative case, step 129 is implemented and the node admitted to the admission process terminates its admission itself. If the message MAA satisfies the expectations of the node admitted to the admission process, thus confirming the continuity of the admission, step 123 is implemented, which triggers the transmission of the service message MS.
我们先前已经看到,与处理210相关联地,本发明预备请求加入消息MAR的发射功率可以是渐进的。有利地,对于消息MAS的发射而言在这点上是相同的。由该实施例所寻求的目标因此是保存被准许加入的设备的装置17的能量资源。为了实施这样的渐进性,消息MAS的发射功率可以首先由处理单元参数化,以用于以小范围传输所述消息MAS。步骤125的第一迭代因此在于将发射功率参数化为底值P’min。在步骤126处预见的最大等待期限结束时,如果没有任何消息MAS被接收(在图3上由经标注的连接126-n所符号表示的情形),则步骤129不被如针对先前的实施例那样自动实施。代替地,处理120在于触发步骤125的新迭代并且因此重新以增加的发射功率P’min+发射消息MAS。该增长由处理单元实现,所述处理单元通过步骤127而实施处理120(例如根据给定的倍数因子或被应用到底功率P’min的经确定的增量步长)。如果在步骤126处预见的最大期限结束时没有接收到任何消息MAA(在图3上由经标注的连接126-n所符号表示的情形),则处理120可以触发步骤125的新迭代。步骤127和125的一个或多个迭代因此可以相继而来,只要没有接收到任何消息MAS,并且只要功率P’min+继续小于消息MAS的最大发射功率P’max(在图3上由经标注的连接128-n所符号表示的情形)。一旦在128处达到了消息MAS的最大发射功率(图3上由经标注的连接128-y所符号表示的情形),所述迭代就停止。在该情况中,处理120在129处中断。We have already seen that, in connection with process 210, the transmission power of the preliminary accession request message MAR according to the present invention can be gradual. Advantageously, this is also true for the transmission of the message MAS. The goal sought by this embodiment is therefore to conserve the energy resources of the device 17 of the device being admitted. To implement such gradualness, the transmission power of the message MAS can first be parameterized by the processing unit for transmitting the message MAS over a small range. The first iteration of step 125 thus consists in parameterizing the transmission power to a minimum value P'min. If, at the end of the maximum waiting period foreseen in step 126, no message MAS has been received (a situation symbolized in FIG3 by the labeled connection 126-n), step 129 is not automatically implemented as in the previous embodiment. Instead, process 120 consists in triggering a new iteration of step 125 and thus retransmitting the message MAS at an increased transmission power of P'min+. This increase is implemented by a processing unit that implements process 120 via step 127 (e.g., according to a given multiplication factor or a determined incremental step size applied to the bottom power P'min). If no message MAA is received at the end of the maximum period foreseen at step 126 (a situation symbolized by the labeled connection 126-n in FIG3 ), process 120 may trigger a new iteration of step 125. One or more iterations of steps 127 and 125 may thus follow as long as no message MAS is received and as long as the power P'min+ remains less than the maximum transmit power P'max of the message MAS (a situation symbolized by the labeled connection 128-n in FIG3 ). Once the maximum transmit power of the message MAS is reached at 128 (a situation symbolized by the labeled connection 128-y in FIG3 ), the iterations cease. In this case, process 120 is interrupted at 129.
本发明预备此外在步骤126处预见的最大等待期限还可以是渐进的并且在步骤127处的每个迭代处被修正。The present invention further provides that the maximum waiting period foreseen at step 126 may also be progressive and modified at each iteration at step 127 .
此外,为了保存能量资源,诸如与图2相关联地描述的装置17、符合本发明的网络的节点,本发明预备尤其是请求加入消息MAR、加入验证消息MAS(其显露先前消息的接收MAA)、又或服务消息MS的中继或初次发射可以在作为所述网络的成员节点、被准许加入的节点或自由节点而起作用的电子通信设备内被调节成一个或多个与所述电子通信设备的装置17的电能量上的剩余容量相关联的最小阈值(例如,根据消息的类型又或根据所述消息是被中继还是被初次发射)。因此,与图3相关联地,本发明预备用于发射消息的步骤(即以非限制性的方式:步骤212、125、123、205又或208)各自包括或部分包括预先步骤,所述预先步骤在于相对于所涉及的最小阈值而测试剩余的能量容量。如果所述剩余容量大于所述阈值,则消息的发射被触发。在相反情况中,实施根据本发明的加入方法的设备继续是静默的。这样的实现变型使得能够例如相对于网络的管理消息MAR、MAS、MAA而给予服务消息MS的发射以优先。Furthermore, to conserve energy resources, the present invention provides for the relaying or initial transmission of, in particular, a request to join message MAR, a join verification message MAS (which indicates the receipt of a previous message MAA), or a service message MS, in a node of a network according to the present invention, such as the device 17 described in connection with FIG. 2 , to be regulated within an electronic communication device acting as a member node, a node admitted to joining, or a free node of the network to one or more minimum thresholds associated with the remaining capacity of the device 17 of the electronic communication device (e.g., depending on the type of message or whether the message is being relayed or initially transmitted). Thus, in connection with FIG. 3 , the present invention's steps for transmitting a message (i.e., in a non-limiting manner: steps 212 , 125 , 123 , 205 , or 208 ) each include or partially include a preliminary step of testing the remaining capacity relative to the relevant minimum threshold. If the remaining capacity is greater than the threshold, the transmission of the message is triggered. In the opposite case, the device implementing the joining method according to the present invention remains silent. Such a realization variant makes it possible, for example, to give priority to the transmission of service messages MS with respect to management messages MAR, MAS, MAA of the network.
根据优选的第二实施例,本发明预备成员可以预先在服务消息(MS)或更一般地经中继的消息的发送时,如同被准许加入的节点那样,以集群头或头端为目的地来制定不再是针对其加入的持久性而是针对其对集群的附着的持久性的验证消息MAS。这样的消息MAS包括第一字段MAS-1和字段MAS-2,所述第一字段MAS-1对头端的标识进行编码,所述字段MAS-2对所述消息MAS的源方成员节点的标识进行编码。头端可以:以与已经赞同地响应于加入请求的成员节点的名义,发射消息MAA,所述消息MAA显露验证消息MAS的接收并且证明其头端角色的维持。这样的消息MAA可以此外包括字段MAA-6、MAA-7,以用于例如更新所述头端确保这样或那样的服务的当前能力值CHc1、CHc2。它包括字段MAA-1和字段MAA-2,所述字段MAA-1对所述消息的源方头端的标识进行编码,所述字段MAA-2对消息的收件方节点的标识进行编码。根据该优选的第二实施例,目的在于将成员节点与被准许加入的节点解相关的步骤124可能不再被实施。事实上,任何成员节点或被准许加入的节点在尤其是以所述集群的头为目的地而发射消息之前验证对集群的从属的持久性,这通过发送对集群的从属的验证消息MAS以及通过接收消息MAA来进行,所述消息MAA显露所述对集群的从属的验证消息的接收并且证明对集群的从属,响应于由所述消息的收件方对消息MAS的接收而被发射。According to a preferred second embodiment, a provisioning member of the present invention can, in advance, send a service message (MS) or, more generally, a relayed message, like a node being admitted to joining, with the cluster head or headend as the destination, not to confirm the persistence of its joining, but rather to confirm the persistence of its attachment to the cluster. This MAS message includes a first field, MAS-1, encoding the identity of the headend, and a field, MAS-2, encoding the identity of the member node originating the MAS message. The headend can, on behalf of the member node that has approved the joining request, transmit a MAA message, indicating receipt of the MAS authentication message and certifying its maintenance of the headend role. This MAA message can also include fields, MAA-6 and MAA-7, used, for example, to update the headend's current capability values, CHc1 and CHc2, for ensuring certain services. It comprises a field MAA-1 encoding the identification of the source head of the message and a field MAA-2 encoding the identification of the recipient node of the message. According to this preferred second embodiment, step 124 aimed at de-correlating the member nodes from the nodes admitted to joining may no longer be implemented. In fact, any member node or node admitted to joining verifies the persistence of its membership in the cluster before transmitting a message, in particular destined for the head of the cluster, by sending a verification message MAS of membership in the cluster and by receiving a message MAA revealing the reception of the verification message of membership in the cluster and proving membership in the cluster, transmitted in response to the reception of the message MAS by the recipient of the message.
如同被准许加入的节点那样,任何成员节点或被准许加入的节点可以接收对集群的从属的丢失的消息(如同加入丢失消息MAAR那样),响应于当所述消息MAS的收件方不再属于集群的时候对集群的从属的验证消息MAS的接收,该消息被制定然后由电子通信设备发射而代替“静默”或消息MAA的不发射。Any member node or node admitted to joining can receive a message of loss of membership to the cluster (like a joining loss message MAAR), in response to the reception of a verification message MAS of membership to the cluster when the addressee of said message MAS no longer belongs to the cluster, which message is formulated and then transmitted by the electronic communication device instead of "silence" or non-transmission of the message MAA.
本发明作为变型或补充地预备一旦成员节点已经赞同地响应于加入请求,被准许加入的节点就可以有利地以与在招入消息MH之后已经重加入集群的成员节点那样类似或相似的方式运作。被准许加入的节点可以因此接收请求加入消息MAR并且有利地响应于加入请求,这通过制定并且发射消息MAA来进行,所述消息MAA显露所述请求加入消息MAR的接收。As a variant or supplement, the present invention provides that once a member node has responded in favor of joining the request, the node admitted to joining can advantageously operate in a manner similar or analogous to a member node that has rejoined the cluster after the recruitment message MH. The node admitted to joining can therefore receive the request-to-join message MAR and advantageously respond to the request to join by formulating and transmitting a message MAA indicating the receipt of the request-to-join message MAR.
作为变型,本发明预备被准许加入的节点不能直接赞同地响应于加入请求,但是如同所述请求的中继器那样起作用,以便集群的成员能够有可能访问加入请求。被准许加入的节点可以以相同的方式将集群的成员对加入请求的响应中继向加入请求的源节点。As a variant, the present invention provides that the node that is admitted to join cannot directly respond to the join request with approval, but acts as a relay for the request so that cluster members can potentially access the join request. In the same manner, the node that is admitted to join can relay the responses of cluster members to the join request to the source node of the join request.
无论加入集群的方法P100的配置如何,所述方法根据本发明——电子通信设备的优选适配模式(诸如与图2相关联地描述的适配模式)——而在于通过程序存储器14记录或加载计算机程序P,所述计算机程序P包括多个程序指令,所述程序指令在其被所述设备的处理单元执行或解译的时候引起所述方法P100的实施。Regardless of the configuration of the method P100 for joining a cluster, said method, according to the invention - a preferred adaptation mode of an electronic communication device (such as the adaptation mode described in connection with FIG. 2 ) - consists in recording or loading a computer program P via a program memory 14 , said computer program P comprising a plurality of program instructions which, when executed or interpreted by a processing unit of said device, cause the implementation of said method P100 .
已经通过与物资、固体、流体或液体货物的容器的监测相关联的优选应用示例而描述了本发明,所述容器相应地与电子通信设备协作,所述电子通信设备诸如根据图2的设备10,其实施加入方法,诸如通过图3图示的方法P100,所述设备各自包括传感器,所述传感器与处理单元协作以用于测量和收集与所述容器的内部和/或外部环境相关联的量。The invention has been described by means of a preferred application example associated with the monitoring of containers of goods, solid, fluid or liquid cargo, said containers correspondingly cooperating with electronic communication devices, such as the device 10 according to FIG. 2 , which implement an incorporation method, such as the method P100 illustrated by FIG. 3 , said devices each comprising a sensor cooperating with a processing unit for measuring and collecting quantities associated with the internal and/or external environment of said container.
这样的设备可以被用于与目标在于沿着长距离链路发射所收集的数据的应用不同的任何其它应用。它们还可以作为变型或作为补充确保一个或多个其它服务。为此,如我们先前已经提及的,每个设备的数据存储器12可以包括不仅是专用于所确定的服务S的单个记录RH,而且还包括多个记录RHn,其形成表,其中每个记录专用于特定服务Sn。请求加入消息MAR或服务消息MS根据该变型将包括使得能够标识通过所述消息中的每一个所确定和涉及的服务Sn的信息。为此,根据本发明的加入方法P100的步骤211、123a将尤其被适配用于对使得能够标识服务Sn的所述信息进行编码。Such devices can be used for any other application than that aimed at transmitting the collected data along long-distance links. They can also, as a variant or as a supplement, ensure one or more other services. To this end, as we have already mentioned previously, the data memory 12 of each device can include not only a single record RH dedicated to the determined service S, but also a plurality of records RHn forming a table, each of which is dedicated to a specific service Sn. The request to join message MAR or the service message MS, according to this variant, will include information making it possible to identify the service Sn determined and involved by each of said messages. To this end, steps 211, 123a of the joining method P100 according to the invention will be adapted in particular for encoding said information making it possible to identify the service Sn.
此外,本发明预备通信设备能够在接收到经由消息MAR的加入请求时被准许加入到用于相同服务的多个集群。因此,多个记录RHm形成表,其中每个记录专用于特定的头端。根据该变型,这样被多重准许加入的设备可以选择以所述头端之一为目的地而发射服务消息MS。这样的选择可以基于头端确保服务的相应能力,甚至还以非限制性的方式基于所述头端在跳数方面的相应远离。为了实施这样的多重加入,用于制定服务消息的步骤123a可以有利地对能力最好的或者最接近设备的头端的标识的值进行编码,作为所述服务消息的收件方的标识值。所述头端的能力的相应值可以事实上被更新——例如根据在诸如与图3相关联地描述的处理120的步骤126处被接收和解码的消息MAA。被准许加入的设备可以因此根据不同的准则而在它被准许加入的集群之间进行仲裁,所述不同的准则作为非限制性的示例诸如头端的能力、所述头端在跳数方面的远离等等。Furthermore, the present invention provides for a communication device to be admitted to multiple clusters for the same service upon receiving a join request via a message MAR. Thus, a table is formed of multiple records RHm, each dedicated to a particular headend. According to this variant, a device admitted to multiple admissions can select one of the headends to transmit a service message MS. This selection can be based on the headend's respective capabilities in providing the service, or even, in a non-limiting manner, on the headend's relative distance in hop count. To implement this multiple admission, step 123a for formulating the service message can advantageously encode, as the recipient's identification value, a value identifying the headend with the best capabilities or closest to the device. The corresponding value of the headend's capabilities can actually be updated—for example, based on a message MAA received and decoded at step 126 of process 120, such as that described in connection with FIG. A device admitted to admissions can thus arbitrate between clusters admitted to admissions based on various criteria, such as, by way of non-limiting example, headend capabilities, headend distance in hop count, and so forth.
此外,本发明因此涉及包括多个根据本发明的电子通信设备的任何系统。更特别地,本发明涉及用于存储场地或运输平台上的容器的可追踪性的任何系统,所述系统此外包括远程实体,用于收集和利用当所述设备作为集群头起作用时从所述设备中的一个或多个发射的消息MC。这样的系统呈现在以下方面的性能:能量自主、鲁棒性以及对于不均等且相对于通过已知解决方案、作为示例诸如LEACH方法所给予的条件没有可能相比的利用条件的可适应性。事实上,凭借本发明,集群头的利用,从其选定直到所确定的服务所涉及的一个或多个动作的实现,是最优的,防止了在网络中或向第三实体目的地的多余或无效的任何通信。Furthermore, the present invention relates to any system comprising a plurality of electronic communication devices according to the present invention. More particularly, the present invention relates to any system for the traceability of containers on storage sites or transport platforms, said system also comprising a remote entity for collecting and utilizing messages MC transmitted from one or more of said devices when said devices act as cluster heads. Such a system exhibits performance in terms of energy autonomy, robustness, and adaptability to utilization conditions that are unequal and incomparable to those imposed by known solutions, such as the LEACH method, for example. Indeed, thanks to the present invention, the utilization of cluster heads, from their selection to the implementation of one or more actions related to the determined service, is optimized, preventing any unnecessary or ineffective communications within the network or to third-party destinations.
Claims (13)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| FR1461609 | 2014-11-27 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1238467A1 HK1238467A1 (en) | 2018-04-27 |
| HK1238467B true HK1238467B (en) | 2022-03-11 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107211255B (en) | Method for joining a cluster of electronic devices communicating via a wireless network, electronic devices implementing the method, and related systems | |
| Ingelrest et al. | Localized broadcast incremental power protocol for wireless ad hoc networks | |
| CN107005785B (en) | Method for joining a cluster of electronic devices communicating via a wireless network, electronic devices implementing the method, and associated systems | |
| US9763062B2 (en) | Rapid deployment of software updates in multi-hop wireless networks | |
| KR101742997B1 (en) | Method and Apparatus for Transmitting and Receiving of Data | |
| Zhao et al. | Approximation algorithms for broadcasting in duty cycled wireless sensor networks | |
| JP6464282B2 (en) | Communication method within a cluster of communication electronic devices with dynamic depth, communication electronic device performing the method, and related system | |
| Zheng et al. | A survey on data dissemination in wireless sensor networks | |
| Chlipala et al. | Deluge: data dissemination for network reprogramming at scale | |
| CN102202430B (en) | Zigbee wireless gateway and data transmission method thereof | |
| HK1238467B (en) | Method for affiliating a cluster of electronic devices communicating via a wireless network, associated electronic device implementing said method and system | |
| HK1238467A1 (en) | Method for affiliating a cluster of electronic devices communicating via a wireless network, associated electronic device implementing said method and system | |
| JP6254840B2 (en) | Aggregation apparatus, distribution method, distribution program, and network system | |
| JP6599044B2 (en) | Wireless communication device | |
| HK1247024B (en) | Communication method within a dynamic-depth cluster of communicating electronic devices, communicating electronic device and system | |
| CN106993277B (en) | System, method and device for role assignment parameter distribution in wireless sensor network | |
| HK1238850B (en) | Method for joining a cluster of electronic devices communicating via a wireless network, associated electronic device implementing said method and system | |
| Chen et al. | Simulation of Green Internet of Things |