How to: Flash SonOff USB Dongle to be a Zigbee Repeater/Router & Set Transmit Power

Some additional information on this device

Note on C-8 Migration: I had to reboot my SonOff USB dongles after doing a migration from C-7 to C-8. Before I rebooted them they weren't working well for me. After a reboot (unplug, plug in again) they've been fine.

SonOff USB Dongle P/Plus version router FW changelog.

Pairing with your hub after flashing - important tips!
Important: In many cases pairing w/your hub after flashing can be difficult. It will pair, but it could take a few tries in some cases.

The most effective pairing approach I've seen is below - thanks to @kahn-hubitat for this:

  1. Complete flashing of the dongle
  2. Unplug & remove the dongle from it's black case (two tiny screws at the USB end - don't lose them!!) You'll have to unscrew the dongle antenna to remove the dongle from its case after you remove the screws at the USB end.
  3. Start Zigbee pairing on your hub
  4. Press and hold the top round (Reset) button (the closest button to the antenna). Press the round button, don't change the slider above the two buttons.
  5. Connect the dongle to power while holding the button, and continue to hold the button for 15s to 17s after connecting the dongle to power. The red LED on the dongle will be on, but won't do anything.
  6. A few seconds after releasing the button the dongle should pair.

Above has worked every time I've tried it. Recommended.

This may also work: It has not worked for me.

  1. Start Zigbee pairing on your hub
  2. Complete the flash of the dongle on your pi/computer.
  3. When the flashing ends the dongle automatically goes into pairing mode so it will be ready to join your hub and should be picked up.

After Pairing

  1. Change the driver from the default "Device" to "Ikea Tradfri Signal Repeater." The default Device driver results in unnecessary noise in the logs.
    image

  2. Only the "Get Link Quality" button on the Device page works, you'll see output in your logs from that button.

Selecting a driver:
After pairing the dongle it will work as a driver by default. Check the automatically chosen driver - sometimes the driver selected may not match w/the Dongle. You can choose a specific driver. Options include:

  • Device: Built into HE, can make the device a little noisey in terms of log events. This is sometimes the driver selected by HE by default.
  • Ikea Tradfri Signal Repeater: Built into HE, all the commands don't work, doesn't cause any problems.
  • Zigbee Monitor Driver. Should be in HPM, full featured powerful driver to get info on your repeater.
  • Zigbee - Generic Repeater (w/ healthStatus): Updated version of relatively simple zigbee repeater driver w/Health Status (health = is the repeater connected to the hub).

Transmit Power
As of the 20220125 Sonofff dongle P/Plus router FW release the transmit power (normally 5dbm) is set to 9dbm. (Changelog here.) The more recent dev 20221102 release allows the transmit power to be customized, but we haven't worked out yet how to access that setting. Default power on 20221102 is still 9dbm.

HE forum post from about a year ago when the P/Plus version of the device was released:

Github that contains the different FW versions for the P/Plus version of the dongle:

Some discussion about potential thread compatibility for both the P and E versions of the dongle:

Another SonOff dongle flashing thread recently created with info on the "E" version. Includes Information from @NoWon on how to set the power level of the Sonoff USB Dongle: See Stan's E dongle flashing process here in this thread as well. I believe it's a little simpler to follow.
Thread:

Post on Setting Transmit Power

6 Likes