Koenkk / Z-Stack-firmware

Compilation instructions and hex files for Z-Stack firmwares
MIT License
2.33k stars 643 forks source link

Sonoff Zogbee 3.0 USB Router Pairing #343

Closed stu1811 closed 2 years ago

stu1811 commented 2 years ago

I flashed the router firmware to the Sonoff Zigbee Dongle. I hoped it would would auto enter pairing mode when I plugged it into a USB outlet. ZHA did not find the device when I tried to add it. How do I enable pairing mode?

This is the output from flashing the latest dev firmware if it matters:

Opening port /dev/ttyUSB1, baud 500000
Reading data from ./CC1352P2_CC2652P_launchpad_router_20210128.hex
Your firmware looks like an Intel Hex file
Connecting to target...
CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00:12:4B:00:24:C0:AE:DF
    Performing mass erase
Erasing all main bank flash sectors
    Erase done
Writing 360448 bytes starting at address 0x00000000
Write 104 bytes at 0x00057F988
    Write done                                
Verifying by comparing CRC32 calculations.
    Verified (match: 0xe0c256fd)
kris-anderson commented 2 years ago

Did you end up getting this to work? I'm stuck on this part as well.

stu1811 commented 2 years ago

@kris-anderson Yes, enable pairing on ZHA/zigbee2mqtt and the connect dongle to power

kris-anderson commented 2 years ago

@stu1811

I'm doing something wrong then. Maybe it's how I'm flashing my stick. This is the command I'm running to flash the router firmware:

python Downloads/cc2538-bsl.py -evw -p /dev/tty.usbserial-210 --bootloader-sonoff-usb Downloads/CC1352P2_CC2652P_launchpad_router_20210128.hex
sonoff

Did you flash your device doing something differently?

stu1811 commented 2 years ago

python3 cc2538-bsl.py -evw -p /dev/ttyUSB1 --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20211217.hex

I'm on the develop branch

kris-anderson commented 2 years ago

I was on the master branch, so thank you for specifying that.

You deployed the coordinator firmware and that worked okay as a router?

I tried both the coordinator and router firmware from the develop branch flashed to my stick, but I never see it when zigbee2mqtt is set to permit joining.

The stick works, I used it as my coordinator before testing my other stick which I left as my coordinator.

🤷 I'm still not sure what I'm doing wrong.

stu1811 commented 2 years ago

@kris-anderson I forgot, I'm using zigbee2mqtt edge. No issues.

kris-anderson commented 2 years ago

Thanks for the feedback @stu1811 . I'm looking for stability so I'm going to stay on the non-dev branch for now, but I'll keep checking each time my instance has an update available.

Thank you again!

Rxich commented 2 years ago

Did you end up getting this to work? I'm stuck on this part as well.

I too am stuck. Flashed the launchpad router firmware successfully, but it never will pair to my coordinator hub(Hubitat) I am able to pair many other zigbee routers but not this dongle.

ptvoinfo commented 2 years ago

@Rxich launchpad may have different chips (CC2652P or CC2652R). Did you use a firmware for the corresponding chip?

NickUfer commented 2 weeks ago

Did anyone ever figure this out? Edit: Just figured it out... for pairing, the device must be closer to the coordinater