跳到主要內容

發表文章

目前顯示的是有「Zigbee」標籤的文章

cc2530 + cc2591整合Wemos D1-mini(ESP8266)

cc2530 + cc2591透過Wemos D1-mini(ESP8266),直接具備Wifi功能 1. 刷cc2530 + cc2591韌體 2.接線(燒錄前CPIO0要接到GND) ESP8266 CC2530 3v3 VCC GND GND TX P02 RX P03 GND P20 GND P04 GND P05 3.燒錄ESPEasy到Wemos D1-mini(ESP8266) 下載 ESPEasy_binaries.zip ,取出ESP_Easy_mega_20221105_normal_ESP8266_4M1M.bin 下載ESPEasy_dist.zip 執行 ESPEasy_dist\FlashESP8266.exe 燒錄 ESP_Easy_mega_20221105_normal_ESP8266_4M1M.bin 4.設定ESPEasy 尋找Wifi(ESP-Easy) Wifi default password:configesp ESPEasy web interface Devices \  Communication - Serial Server a.    Name: ZIGBEE2MQTT b.    Enabled: checked c.    TCP Port: a number between 1000 and 9999 "1775" d.    Baud Rate: 115200 e.    Data bits: 8 f.    Parity: No Parity g.    Stop bits: 1 h.    Reset target after boot: - none – i.    RX receive timeout: 0 j.    Event processing: Generic Submit 5.設定Zigbee2MQTT serial:     port: 'tcp://192.168.1.xx:1775'     adapter: z...

透過Wemos D1-mini(ESP8266)刷cc2530 + cc2591韌體

  1.下載 CCLoader   2.準備Z-Stack Firmware      燒錄 CCLoader_Arduino.bin 到Wemos D1-mini(ESP8266)      下載 CC2530_CC2591_20190523.zip      下載 objcopy.exe, binutils-2.28-1-mingw32-bin.tar.xz      下載  libiconv  ,並解壓縮到 \ binutils-2.28-1-mingw32-bin\bin           objcopy.exe --gap-fill 0xFF --pad-to 0x040000 -I ihex CC2530ZNP-with-SBL.hex -O binary CC2530ZNP-with-SBL.bin 3.燒錄 CCLoader_Arduino.bin 到Wemos D1-mini(ESP8266) 使用 Tasmotizer! ,  NodeMCU-pyflasher ,  esptool.py  燒錄  CCLoader_Arduino.bin 到ESP-8266 4. 燒錄cc2530 + cc2591韌體前置作業 編輯 \CCLoader\src\CCLoader.ino,在大約86-90行,確認以下文字 // Debug control pins & the indicate LED int DD = 14; //GPIO14=D5 on NodeMCU/WeMos D1 Mini int DC = 4; //GPIO4=D2 on NodeMCU/WeMos D1 Mini int RESET = 5; //GPIO5=D1 on NodeMCU/WeMos D1 Mini int LED = 2; //GPIO2=D4 and the Blue LED on the WeMos D1 Mini and the ESP-12E module on the NodeMCU, or...

Sonoff Zigbee 3.0 USB Dongle Plus燒錄ZigBee Router 模式

前言       Sonoff Zigbee 3.0 USB Dongle Plus燒錄為ZigBee Router 模式,可加以延伸ZigBee訊息(提供給ZHA 或Zigbee2MQTT) 1.下載韌體 https://github.com/Koenkk/Z-Stack-firmware/raw/master/router/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_router_20220125.zip 2.下載燒錄軟體(FLASH-PROGRAMMER-2 — SmartRF Flash Programmer v2) 要註冊才能下載 https://www.ti.com/tool/FLASH-PROGRAMMER 3.拆除Sonoff Zigbee 3.0 USB Dongle Plus外殼,按住靠近USB的按鈕不放,插入電腦USB後,等待10秒後,再放開 4.開啟燒錄軟體     點選COM Port(Unknow)- > CC2652P -> 勾選 Erase + Program -> Play(燒錄)     如果遇到失敗,大部份是步驟3沒做好,再重新拔插一下 5.如果看到成功,就大功告成了,開啟 ZHA 或Zigbee2MQTT配對模式後,就可以看到它了。 註:目前不知道如何重新配對,我都是執行重新燒錄動作 參考文章 https://forum.automata.id/t/topic/247 https://github.com/Koenkk/Z-Stack-firmware/raw/master/router/Z-Stack_3.x.0/

[ZHA]將小米網關變為ZHA閘道

前言     因為小米網關在Zigbee2MQTT太容易無回應,所以改為ZHA 注意事項      原本透過小米網關的ZigBee設備會全部消失,不影響小米藍芽、Wifi設備 步驟 1.將小米網關啟用  [DANGER] ZHA 或 zigbee2mqtt 模式 -> 傳送(需等待幾分鐘) 完成後,它會提供訊息 Radio Type: EZSP Path: socket://192.168.1.xx:8888 2.新增整合->Zigbee Home Automation。依步驟1的訊息填入相關資訊。 3.點選 新增裝置 ,將各ZigBee裝置開始進行重新配對。

[ZHA]支援小米無線開關按鈕

  匯入小米無線開關(WXKG01LM)後,按鈕動作只會出現以下訊息,NR會無法直接動作。 1.建立BluePrint (1)HA->自動化與場景 (2)匯入 https://community.home-assistant.io/t/longpress-and-shortpress-script-automation-for-xiaomi-round-button-with-zha/229367  (3)在BluePrint點選剛才建立的BluePrint->自動化 (4)指定各按鈕的指定動作 (5)完成 參考文章 https://community.home-assistant.io/t/zha-xiaomi-mijia-round-wireless-switch-wxkg01lm-with-hold-lumi-sensor-switch/263075 https://community.home-assistant.io/t/zha-xiaomi-mijia-round-wireless-switch-wxkg01lm-lumi-sensor-switch/258472/18