Zigbee: различия между версиями

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
 
(не показано 13 промежуточных версий этого же участника)
Строка 5: Строка 5:
   
 
{| class="wikitable"
 
{| class="wikitable"
  +
|+ Сравнение
|+ Файлы
 
 
|-
 
|-
 
! Zigbee concept
 
! Zigbee concept
  +
! Описание
 
! Wi-Fi equivalent
 
! Wi-Fi equivalent
  +
  +
 
|-
 
|-
 
| Zigbee coordinator
| Текст ячейки || Текст ячейки
 
 
| The coordinator is responsible for selecting the channel, PanID, security policy, and stack profile for a network. Zigbee2Tasmota will act as a coordinator.
 
You can have multiple coordinators as long as they have different PanIDs.
  +
| Wi-Fi Access Point
  +
  +
 
|-
 
|-
  +
| <B>PanID</B>
| Текст ячейки || Текст ячейки
 
 
(Personal Area Network IDentifier)
|}
 
 
| This parameter is unique in a Zigbee network (16-bit integer, 0x0000–0x3FFF). At initial start a pseudo-random PanID is derived from the ESP MAC address.
  +
| <B>SSID</B> (the Wi-Fi network name)
   
   
  +
|-
 
| <B>ShortAddr</B>
 
| Address of the device on the Zigbee network. This address is randomly assigned when the device first connects to the coordinator
  +
<BR>
  +
(16 bits integer, 0x0000–0xFFF7). The coordinator has address 0x0000.
  +
<BR>
 
You need to track which device has which address or assign a "Friendly Name" to each new discovered device.
  +
| IP address
   
  +
Zigbee coordinator
 
  +
|-
The coordinator is responsible for selecting the channel, PanID, security policy, and stack profile for a network. Zigbee2Tasmota will act as a coordinator.
 
 
| <B>GroupAddr</B>
You can have multiple coordinators as long as they have different PanIDs. Wi-Fi Access Point
 
 
|Group address of a collection of devices, it allows a single message to address multiple devices at once
PanID
 
  +
(16 bits integer, 0x0000–0xFFFF). For example a remote can turn on/off a group of lights. GroupAddr 0x0000 is not assigned.
(Personal Area Network IDentifier)
 
  +
| Multicast
This parameter is unique in a Zigbee network (16-bit integer, 0x0000–0x3FFF).
 
  +
At initial start a pseudo-random PanID is derived from the ESP MAC address. SSID (the Wi-Fi network name)
 
  +
ShortAddr
 
  +
|-
Address of the device on the Zigbee network. This address is randomly assigned when the device first connects to the coordinator (16 bits integer, 0x0000–0xFFF7). The coordinator has address 0x0000.
 
 
| Endpoint
You need to track which device has which address or assign a "Friendly Name" to each new discovered device. IP address
 
 
| The endpoint on the coordinator or on the Zigbee device the message is sent from/to. You can see endpoints as logical devices providing distinct features (8 bits integer, 1–240).
GroupAddr
 
  +
| TCP port
Group address of a collection of devices, it allows a single message to address multiple devices at once (16 bits integer, 0x0000–0xFFFF). For example a remote can turn on/off a group of lights. GroupAddr 0x0000 is not assigned. Multicast
 
  +
Endpoint
 
  +
|-
The endpoint on the coordinator or on the Zigbee device the message is sent from/to. You can see endpoints as logical devices providing distinct features (8 bits integer, 1–240). TCP port
 
IEEEAddr
+
| IEEEAddr
Device hardware address (64 bits). This is unique per device and factory assigned. MAC address
+
| Device hardware address (64 bits). This is unique per device and factory assigned. MAC address <BR>
Channel 11-26
+
Channel 11-26 <BR>
Default: 11 (See Zigbee-Wifi coexistence) Wi-Fi Channel
+
Default: 11 (See Zigbee-Wifi coexistence) <BR>
  +
| Wi-Fi Channel
Encryption Key
 
  +
128-bit encryption key.
 
  +
|-
At initial start a pseudo-random Encryption key is derived from the ESP MAC address. Wi-Fi password
 
 
| Encryption Key
Pairing
 
 
| 128-bit encryption key.
By default the coordinator does not accept new devices unless put in pairing mode. When in pairing mode, it will accept pairing requests from any device within range.
 
 
At initial start a pseudo-random Encryption key is derived from the ESP MAC address.
Default: pairing disabled WPS
 
  +
| Wi-Fi password
Cluster
 
  +
Clusters are a group of commands and attributes that define what a device can do. Think of clusters as a group of actions by function. A device can support multiple clusters to do a whole variety of tasks. The majority of clusters are defined by the ZigBee Alliance and listed in the ZigBee Cluster Library
 
  +
|-
 
| Pairing
 
| By default the coordinator does not accept new devices unless put in pairing mode. When in pairing mode, it will accept pairing requests from any device within range. Default: pairing disabled
  +
| WPS
  +
  +
|-
 
| Cluster
 
| Clusters are a group of commands and attributes that define what a device can do. Think of clusters as a group of actions by function. A device can support multiple clusters to do a whole variety of tasks. The majority of clusters are defined by the ZigBee Alliance and listed in the ZigBee Cluster Library
  +
|
  +
 
|}
  +
  +
=MQTT=
  +
* <B>MQTT</B> (англ. message queuing telemetry transport) — упрощённый сетевой протокол, работающий поверх TCP/IP, ориентированный на обмен сообщениями между устройствами по принципу «издатель — подписчик».
  +
* https://habr.com/ru/articles/463669/

Текущая версия на 15:14, 12 апреля 2024

Введение в умный дом

Before using Zigbee with Tasmota, you need to understand a few concepts. Here is a simplified comparison to the Wi-Fi equivalent (sort of).

Сравнение
Zigbee concept Описание Wi-Fi equivalent


Zigbee coordinator The coordinator is responsible for selecting the channel, PanID, security policy, and stack profile for a network. Zigbee2Tasmota will act as a coordinator.

You can have multiple coordinators as long as they have different PanIDs.

Wi-Fi Access Point


PanID

(Personal Area Network IDentifier)

This parameter is unique in a Zigbee network (16-bit integer, 0x0000–0x3FFF). At initial start a pseudo-random PanID is derived from the ESP MAC address. SSID (the Wi-Fi network name)


ShortAddr Address of the device on the Zigbee network. This address is randomly assigned when the device first connects to the coordinator


(16 bits integer, 0x0000–0xFFF7). The coordinator has address 0x0000.
You need to track which device has which address or assign a "Friendly Name" to each new discovered device.

IP address


GroupAddr Group address of a collection of devices, it allows a single message to address multiple devices at once

(16 bits integer, 0x0000–0xFFFF). For example a remote can turn on/off a group of lights. GroupAddr 0x0000 is not assigned.

Multicast


Endpoint The endpoint on the coordinator or on the Zigbee device the message is sent from/to. You can see endpoints as logical devices providing distinct features (8 bits integer, 1–240). TCP port
IEEEAddr Device hardware address (64 bits). This is unique per device and factory assigned. MAC address

Channel 11-26
Default: 11 (See Zigbee-Wifi coexistence)

Wi-Fi Channel
Encryption Key 128-bit encryption key.

At initial start a pseudo-random Encryption key is derived from the ESP MAC address.

Wi-Fi password
Pairing By default the coordinator does not accept new devices unless put in pairing mode. When in pairing mode, it will accept pairing requests from any device within range. Default: pairing disabled WPS
Cluster Clusters are a group of commands and attributes that define what a device can do. Think of clusters as a group of actions by function. A device can support multiple clusters to do a whole variety of tasks. The majority of clusters are defined by the ZigBee Alliance and listed in the ZigBee Cluster Library

MQTT

  • MQTT (англ. message queuing telemetry transport) — упрощённый сетевой протокол, работающий поверх TCP/IP, ориентированный на обмен сообщениями между устройствами по принципу «издатель — подписчик».
  • https://habr.com/ru/articles/463669/