SIG MESH Profile 2.3.4 Elements 翻译

An element is an addressable entity within a node. Each node has at least one element, the primary element, and may have one or more additional secondary elements. The number and structure of elements is static and does not change throughout the lifetime of a node (that is, as long as the node is part of a network) 

元素是节点中可寻址的实体。每个节点至少有一个元素,即主元素,并且可以有一个或多个附加的辅助元素。元素的数量和结构是静态的,在节点的生命周期内(即,只要节点是网络的一部分)不会改变。

The primary element is addressed using the first unicast address assigned to the node during provisioning. Each additional secondary element is addressed using the subsequent addresses. These unicast element addresses allow nodes to identify which element within a node is transmitting or receiving a message.

主元素是使用配置期间(Provisoning)分配给节点的第一个单播地址来寻址的。每个附加的辅助元素都使用后续地址进行寻址。这些单播元素地址允许节点识别节点中的哪个元素正在发送或接收消息。

If the number and structure of elements changes, for example due to a firmware update, the node must be reprovisioned. The Node Removal procedure (see Section 3.10.7) is used when a firmware update is
performed that changes the number or structure of elements.

如果元素的数量和结构发生变化,例如固件更新,则必须重新配置(Reprovisioned)节点。节点移除过程(参见3.10.7节)用于固件更新时更改元素的数量或结构。

Messages are dispatched within models based on opcodes and element addresses

消息在模型中根据操作码和元素地址进行派发。

An element is not allowed to contain multiple instances of models that use the same message (for example, an “On” message). When multiple models within the same element use the same message, the models are said to “overlap.” To implement multiple instances of overlapping models within a single node (for example, to control multiple light fixtures that can be turned on and off), the node is required to contain multiple elements

元素不允许包含使用同一消息的多个模型实例(例如,一个“On”消息)。当同一元素中的多个模型使用相同的消息时,这些模型被称为“重叠”。为了在一个节点中实现多个重叠模型的实例(例如,为了控制多个可打开和关闭的灯具),节点需要包含多个元素。

For example, a light fixture may have two lamps, each implementing an instance of the Light Lightness Server model and an instance of the Generic Power OnOff Server model. This requires that the node contain two elements, one for each lamp. When it receives an "On" message, the node uses the unicast address of the element to identify which instance of the Generic Power OnOff Server model the message is addressed to.

例如,一个灯具可能有两个灯,每个灯实现一个灯光亮度服务器模型实例和一个通用Power OnOff服务器模型实例。这要求节点包含两个元素,每个元素对应一个灯。当节点接收到“On”消息时,它将使用元素的单播地址来标识将消息发送到通用Power OnOff服务器模型的哪个实例。

In another example, a dual-socket power strip contains two independent energy measurement sensors that can measure power consumed by an appliance connected to a socket. This would require that the node have two Sensor Data states, each in a separate element. The first element, the primary element,would be identified using the unicast address for the node and would include a state for the first energy sensor as well as states representing the configuration of the node. The second element, a secondary element, would be identified using a unicast element address and would include the state for the second energy sensor.

在另一个示例中,双插座电源条包含两个独立的能量测量传感器,可以测量连接到插座的设备消耗的能量。这将要求节点具有两个传感器数据状态,每个状态在一个单独的元素中。第一个元素,即主元素,将使用节点的单播地址进行标识,并将包括第一个能量传感器的状态以及表示节点配置的状态。第二个元素,是辅助元素,它将使用单播元素地址进行标识,并包含第二个能量传感器的状态。

Each element has a GATT  Bluetooth Namespace Descriptor [5] value that helps identify which part of the node this element represents. These namespace descriptor values use the same definitions as GATT.For example, the elements of the temperature sensor would use the values “inside” and “outside.”

每个元素都有一个GATT蓝牙名称空间描述符值,该值帮助识别该元素表示的节点的哪个部分。这些名称空间描述符值使用与GATT相同的定义。例如,温度传感器的元素将使用“内部”和“外部”值。

posted @ 2020-02-07 14:20  gancai  阅读(201)  评论(0编辑  收藏  举报