This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How does reload network ?

The coordinator has started. But I have the table in my App where I am keeping table of the devices that can join to the network ... The problem is in that when I have added device to network, but then reloading the EndDevice table of network. Then the device who was joining the network does not want join to network right now, even I make power-reset and then power-on EndDevice ... somehow EndDevice remembers that it was connected to a network and holds the DEV_END_DEVICE status  (NV_RESTORE - is set) ? After reset the Coordinator of the network EndDevice work good and will success  be joining to the network ... What am I doing wrong ?

P.S. Sorry for my English )

  • Don't understand your problem well. Try to explain step by step. Basically, coordinator, router, or end device would keep their network status if you define NV_RESTORE on them. When power recycle them, it will restore to previous status.
  • The problem in that when the EndDevice has started then it is trying to connect the network. If it can't find any network or I told its device Leave network then the EndDevice change state on DEV_HOLD ? How does the EndDevice start the join to network by myself? I trying:
    ZDO_UpdateNwkStatus(DEV_NWK_DISC);
    ZDO_StartDevice( NODETYPE_DEVICE,MODE_JOIN,BEACON_ORDER_NO_BEACONS,BEACON_ORDER_NO_BEACONS );

    But it does not work, EndDevice does not want start the join to the network ...
  • You can disable HOLD_AUTO_START in C/C++ Compiler option and device will start to search Zigbee network automatically.

  • Can you read question carefully ?
    I have asked: "How does the EndDevice start the joining to the network by itself ?"
    About flag HOLD_AUTO_START I know and it is disabled, but HOLD_AUTO_POOL is set ...
    I want to know: "How does the EndDevice start the joining to the network by itself ?"
    What is the function that I must to use ?

    P.S. Sorry for being rude, but I'm tired of asking the same thing, but do not get a clear answer.

  • Hi Denis,

    the function that you are looking for is ZDO_StartDevice().

    To YK's point, the end device are going to perform a network discovery automatically if HOLD_AUTO_START is disabled, that is why he's saying that you just need to undefine that compilation flag and your end devices should start doing an active scan and looking for the network.

    I would like to remind everybody that community members are doing their best to help each other so I encourage to maintain an open and collaborative style of communication in this forum which is aimed at helping engineers developing great products.

    Thanks,

    TheDarkSide