Zigbee

From Eric

(Difference between revisions)
Jump to: navigation, search
m (Created page with " = Install zigbee2mqtt = == Configure the zigbee adapter == See https://www.zigbee2mqtt.io/information/flashing_the_cc2531.html == Install zigbee2mqtt == See https://www.zigb...")
m
Line 1: Line 1:
-
 
= Install zigbee2mqtt =
= Install zigbee2mqtt =
Line 29: Line 28:
   # View the log of Zigbee2MQTT
   # View the log of Zigbee2MQTT
   sudo journalctl -u zigbee2mqtt.service -f
   sudo journalctl -u zigbee2mqtt.service -f
 +
 +
 +
 +
= Zigbee sniffing =
 +
 +
Install
 +
Texas Instruments SmartRF studio (I use smartrftm_studio-2.21.0)
 +
Texas instruments flash programmer (I use flash-programmer-1.12.8)
 +
Zboss (I use 2020_11_02_zboss_sniffer_windows_ubuntu_64bit)
 +
WireShark
 +
 +
The Zboss archive contains both the desktop application and the firmware to be programmed to the dongle.
 +
 +
Note that I have not managed to make ZBoss work on Linux.
 +
 +
 +
On Linux, you’ll have to use cc-tools:
 +
 +
git clone https://github.com/dashesy/cc-tool.git
 +
cd cc-tool
 +
./bootstrap
 +
./configure
 +
make
 +
 +
And to flash:
 +
sudo ./cc-tool -e -w <firmware>.hex
 +
 +
Instructions are given at https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html
 +
 +
(see also: https://www.hal9k.dk/sniffing-philips-hue-zigbee-traffic-with-wireshark/, https://www.youtube.com/watch?v=4vG4CVNAm_A,
 +
 +
 +
Zigbee frames are encrypted.
 +
 +
To decrypt the frames, follow the following procedure:
 +
 +
 +
Voir aussi : https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/218226/getting-started-with-the-cc2530
 +
 +
https://electronics.stackexchange.com/questions/158637/zigbee-firmware-for-cc2530-chips

Revision as of 13:41, 19 June 2021

Contents

Install zigbee2mqtt

Configure the zigbee adapter

See https://www.zigbee2mqtt.io/information/flashing_the_cc2531.html

Install zigbee2mqtt

See https://www.zigbee2mqtt.io/


To mofidy the state of a device, refer to the zigbee2mqtt documentation for your device. For instance, for a 4-relay Tuya adapter:

 mosquitto_pub -t "zigbee2mqtt/relays/set" -m  '{"state_l1": "OFF"}'

start zigbee2mqtt automatically

See https://www.zigbee2mqtt.io/getting_started/running_zigbee2mqtt.html

 # Stopping Zigbee2MQTT
 sudo systemctl stop zigbee2mqtt
 # Starting Zigbee2MQTT
 sudo systemctl start zigbee2mqtt
 # View the log of Zigbee2MQTT
 sudo journalctl -u zigbee2mqtt.service -f


Zigbee sniffing

Install Texas Instruments SmartRF studio (I use smartrftm_studio-2.21.0) Texas instruments flash programmer (I use flash-programmer-1.12.8) Zboss (I use 2020_11_02_zboss_sniffer_windows_ubuntu_64bit) WireShark

The Zboss archive contains both the desktop application and the firmware to be programmed to the dongle.

Note that I have not managed to make ZBoss work on Linux.


On Linux, you’ll have to use cc-tools:

git clone https://github.com/dashesy/cc-tool.git cd cc-tool ./bootstrap ./configure make

And to flash: sudo ./cc-tool -e -w <firmware>.hex

Instructions are given at https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html

(see also: https://www.hal9k.dk/sniffing-philips-hue-zigbee-traffic-with-wireshark/, https://www.youtube.com/watch?v=4vG4CVNAm_A,


Zigbee frames are encrypted.

To decrypt the frames, follow the following procedure:


Voir aussi : https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/218226/getting-started-with-the-cc2530

https://electronics.stackexchange.com/questions/158637/zigbee-firmware-for-cc2530-chips

Personal tools