====== Thermometre Zigbee ====== ===== Thermometre Hygrometre Blitzwolf ===== ^Blitzwolf BW_IS4^Specifications| |{{:electronique:numerique:zigbee_thermometer:bw_is4_blitzwolf_thermometer.png?nolink&350x308}}|{{:electronique:numerique:zigbee_thermometer:bw_is4_blitzwolf_spec.png?nolink&773x450}}| ===== Récepteur USB programmable Zigbee ===== ^Module CC2531 + 8dbi Antenna ^Upload Connector^JTAG Header| |{{:electronique:numerique:zigbee_thermometer:cc2531_module_antenna.png?nolink&600x237}}|{{:electronique:numerique:zigbee_thermometer:cc2531_upload_connector.png?nolink&320x226}}|{{:electronique:numerique:zigbee_thermometer:cc-debugger-jtag-header.jpg?nolink&444x217|cc-debugger-jtag-header.jpg}}| Quelques information sur le circuit TI CC2531 : ^Block Diagram^Features| |{{:electronique:numerique:zigbee_thermometer:cc2531_block_diagram.gif?direct&500x663}}| * RF/Layout * 2.4-GHz IEEE 802.15.4 Compliant RF Transceiver * USB * USB 2.0 Certified Full Speed Device (12 Mbps)L * Low Power * Wide Supply-Voltage Range (2 V–3.6 V) * Power Mode 3 (External Interrupts): 0.4 µA * Active Mode TX at 1 dBm (CPU Idle): 29 mA * Microcontroller * 8051 Microcontroller Core * 256-KB or 128-KB In-System-Programmable Flash * 8-KB RAM With Retention in All Power Modes * Peripherals * Powerful Five-Channel DMA * IEEE 802.15.4 MAC Timer, General-Purpose Timers (One 16-Bit, Two 8-Bit) * IR Generation Circuitry * 32-kHz Sleep Timer With Capture * CSMA/CA Hardware Support * Accurate Digital RSSI/LQI Support * Battery Monitor and Temperature Sensor * 12-Bit ADC With Eight Channels and Configurable Resolution * AES Security Coprocessor * Two USARTs With Support for Several Serial Protocols * 21 General-Purpose I/O Pins \\ (19 × 4 mA, 2 × 20 mA) * Watchdog Timer | Sources & Datasheet : [[https://www.ti.com/product/CC2531|https://www.ti.com/product/CC2531]] ===== Zigbee to Mqtt ===== Flashing CC2531 with Raspberry : [[https://www.zigbee2mqtt.io/information/alternative_flashing_methods.html|https://www.zigbee2mqtt.io/information/alternative_flashing_methods.html]]\\ \\ Zigbee2mqtt :[[https://www.zigbee2mqtt.io/information/docker.html|https://www.zigbee2mqtt.io/information/docker.html]] docker run -it -v $(pwd)/data:/app/data --device=/dev/ttyACM0 -e TZ=Europe/Amsterdam -v /run/udev:/run/udev:ro -privileged=true koenkk/zigbee2mqtt Mosquitto : [[https://hub.docker.com/_/eclipse-mosquitto|https://hub.docker.com/_/eclipse-mosquitto]] docker run -it -p 1883:1883 -p 9001:9001 eclipse-mosquitto ===== Sources ===== Wireshark with original TI firmware : [[https://github.com/andrebdo/wireshark-cc2531|https://github.com/andrebdo/wireshark-cc2531]]\\ Zstack MT API to serial [[https://github.com/zigpy/zigpy/issues/85|https://github.com/zigpy/zigpy/issues/85]]\\ Zpi.py : [[https://github.com/whatcall/zpi.py|https://github.com/whatcall/zpi.py]]\\ \\ ~~socialite~~