How to issue ZigBee ZDO Device Announce ?

What API could be used to send out ZDO Device announce, when router (zr) or end device joins network ?

Is there any sample code could be referenced?

Thanks,

Robert

Parents Reply Children
  • Hi Robert,

    This signal is only generated when a new device joins the network. If the device has previously been commissioned to and joined the network and has the network data stored so that it is rejoining without being commissioned again, then it will not send a device announcement.

    Best regards,

    Marte

  • Hi Marte,

    Is there any way, the device could send a device announcement when it re-joins the network. For example, after power outage or reset.

    Thanks,

    Robert

  • Hi Robert,

    When the device restarts and it has previously been joined to a network it will generate the signal ZB_BDB_SIGNAL_DEVICE_REBOOT. If you want to overwrite the default handling of this signal, or do something in additional, you can do so by handling the signal in zboss_signal_handler. In this way, you can make the device send a command when it rejoins. You should make sure that the device still stops network rejoin if the device successfully rejoins when this signal is generated (stop_network_rejoin), so do not override it completely.

    You cannot manually send a device announcement, as that command is not available to the application, so you must find another way to handle this.

    Best regards,

    Marte

Related