zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Sonoff CC2652P router doesn't pair

Open mendoncart opened this issue 4 years ago • 35 comments

What happened?

I have 2 Sonoff dongle CC2652P. One is flashed with firmware CC1352P2_CC2652P_launchpad_coordinator_20220219 and working (despite the weak signal) with zigbee2mqtt and my zigbee devices. Now, I want to use my second Sonoff Dongle CC2652P as a router, so I flashed it with firmware CC1352P2_CC2652P_launchpad_router_20220125, but it doesn't pair to zigbee network... I've tried to use z-tool.exe, but it doesn't even detect the dongle with the router firmware, only with coordinator firmware. I can't get the router to pair.

What did you expect to happen?

The router flashed dongle to join the zigbee2mqtt device list, and work as a router.

How to reproduce it (minimal and precise)

Flash one sonoff dongle with firmware CC1352P2_CC2652P_launchpad_coordinator_20220219 Set it up with zigbee2mqtt add some zigbee devices on it (so far, everything works) (now the problem) flash other sonoff dongle with firmware CC1352P2_CC2652P_launchpad_router_20220125 enable permit join on zigbee2mqtt wait and nothing happens Disconnectig the newly flashed router and plugging it on a wall power adpter does nothing

Zigbee2MQTT version

1.25.2 commit: 3c5854f

Adapter firmware version

20220219

Adapter

ITead’s Sonoff Zigbee 3.0 USB Dongle Plus

Debug log

No response

mendoncart avatar Jun 23 '22 14:06 mendoncart

Hi, don´t mean to hijack your post, but I have the exact same setup and the router did pair once. I changed the channel and can´t get it to re-pair. Have you seen any instructions on how to set it in pairing mode? Can´t find it anywhere....

As a comment, first time my didn't work I reloaded the fw, have you tried that?

EDIT: Mine are CC2652P as in the description, not the CC2532P as on the title...

fnees avatar Jun 23 '22 15:06 fnees

I've flashed 4 or 5 Sonoff Zigbee 3.0 Dongle Plus sticks as routers without issue, moving some of them between machines and between zha/z2m multiple times.

The steps I take:

  • Flash under Linux (usually from the HA container) with cc2538-bsl using the sonoff bootloader parameter
  • Disconnect stick from usb
  • Enable permit join in z2m
  • Plug stick into a power block
  • Stick pairs virtually instantly

I haven't tried changing channels in z2m explicitly, but re-flashing a previously paired stick has put the it back into pairing mode for me.

Also, if you remove the stick from net via z2m, it will go back into pairing mode.

YMMV

jerrm avatar Jun 23 '22 15:06 jerrm

Hi, don´t mean to hijack your post, but I have the exact same setup and the router did pair once. I changed the channel and can´t get it to re-pair. Have you seen any instructions on how to set it in pairing mode? Can´t find it anywhere....

As a comment, first time my didn't work I reloaded the fw, have you tried that?

EDIT: Mine are CC2652P as in the description, not the CC2532P as on the title...

Hi! No problem at all! Thanks for the heads up on the description, I had made a mistake on the title. Yes, I did reflash it several times with the router firmware. None of them worked. I haven't reflash my coordinator, because I would probably have to repair all my devices again, and if I can avoid doing that again, it would be great. I didn't find any instructions about putting the dongle in pairing mode. Only trough zigbee2mqtt can I enable the coordinator to accept new devices.

mendoncart avatar Jun 23 '22 17:06 mendoncart

  • cc2538-bsl

What would this be? My dongle flashed as router is not detected by my coordinator... I don't know why is not working, I follow the same steps in this video, but my router never shows up... https://www.youtube.com/watch?v=4usy1ESI4k4&ab_channel=MarkWattTech

mendoncart avatar Jun 23 '22 17:06 mendoncart

Like @jerrm, I use cc2538-bsl to flash my Sonoff CC2652P USB dongles as routers. With the same firmware version you are using. Works fine. Maybe something is wrong with the program you are using to flash the firmware.

Why not just use cc2538-bsl?

ashokaiyar avatar Jun 25 '22 13:06 ashokaiyar

As a contribution, to re-pair sonoff dongle one must open the case and press any of the two buttons shortly.

fnees avatar Jun 26 '22 16:06 fnees

Here the same problem. Moved from a cc2531 which was working flawlessly but because of the limitations of stat stock ordered an sonoff. No pairing, battery's of remote die very soon etc. No errors or something, then devices where losing. Needed to repair with the old stick.

After some days went back to the 2531 and no problems left, only some errors in the log of Domoticz but those came from the legacy API. Thought it was because of sonoff.... But maybe there is more.

rolfie23 avatar Jun 27 '22 07:06 rolfie23

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jul 28 '22 00:07 github-actions[bot]

I'm still waiting for help.

mendoncart avatar Jul 28 '22 00:07 mendoncart

I'm still waiting for help.

Did you try using cc2538-bsl?

ashokaiyar avatar Jul 28 '22 00:07 ashokaiyar

I'm still waiting for help.

Did you try using cc2538-bsl?

I did, didn't help. Tried every update way mentioned on the internet.

rolfie23 avatar Jul 28 '22 06:07 rolfie23

I did, didn't help.

Can you post the logs generated when flashing with cc2538-bsl? They will provide clues as to what the issue is.

ashokaiyar avatar Jul 28 '22 12:07 ashokaiyar

I use the SONOFF Dongle as a router and coordinator myself. From my experience I get the same problem trying to add routers to my network. If the Router (SONOFF Dongle) has never been used before, then it will connect without problems. If it was previously used as a router then joining the network again is problematic. I find pressing the reset button next to the bootloader button when plugged in seems to clear the memory (not sure about that) it will then be recognised.

Profixit avatar Jul 28 '22 14:07 Profixit

I did, didn't help.

Can you post the logs generated when flashing with cc2538-bsl? They will provide clues as to what the issue is.

Where can I find them? Looked in the folder where the cc2538-bsl plugin was, but can't find the logs.

rolfie23 avatar Jul 30 '22 07:07 rolfie23

I use the SONOFF Dongle as a router and coordinator myself. From my experience I get the same problem trying to add routers to my network. If the Router (SONOFF Dongle) has never been used before, then it will connect without problems. If it was previously used as a router then joining the network again is problematic. I find pressing the reset button next to the bootloader button when plugged in seems to clear the memory (not sure about that) it will then be recognised.

Here a brand new sonoff that's not working. It's in a case don't going to remove the case every time... So that's no solution.

rolfie23 avatar Jul 30 '22 07:07 rolfie23

I leave the case off, until I'm happy with my mesh. Strange a new one isn't recognised.

Profixit avatar Jul 30 '22 10:07 Profixit

I leave the case off, until I'm happy with my mesh. Strange a new one isn't recognised.

That you want to work that way.... Even my old cc2531 can work without putting a case off when adding a new device.

rolfie23 avatar Jul 30 '22 11:07 rolfie23

Where can I find them? Looked in the folder where the cc2538-bsl plugin was, but can't find the logs.

Setup a screen capture - they're console logs.

ashokaiyar avatar Jul 30 '22 14:07 ashokaiyar

Same issue here. Pairing with SONOFF Zigbee 3.0 USB Dongle Plus ZBDongle-P is not working. Existing network is up and running but pairing new devices is not working. Did anyone figured this out yet?

mcruscher avatar Aug 21 '22 18:08 mcruscher

In order to debug this, I would to need a sniff + network key when trying to pair the router: https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html#with-cc2531

Koenkk avatar Aug 21 '22 18:08 Koenkk