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.
Hi
I'm trying to get the ZNP to automatically start in case power was lost.
I've commented out the line in znp.cfg
//-DHOLD_AUTO_START
Then I've set up a network with just 1 coordinator and 1 ZED.
However after I unplug the power of the ZC for 5 seconds, I get:
<RX>10:53:17.63 COM8 SYS_RESET_RESPONSE (0x4180)
Reason: 0x00
TransportRev: 0x02
Product: 0x00
MajorRel: 0x02
MinorRel: 0x07
HwRev: 0x02
<TX>10:53:30.18 COM8 UTIL_GET_DEVICE_INFO (0x2700)
<RX>10:53:30.2 COM8 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
Status: SUCCESS (0x0)
IEEEAddr: 0x00124B000FE9A81A
ShortAddress: 0xFFFE
DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
DeviceState: DEV_HOLD (0x0)
NumAssocDevices: 0x00
AssocDevicesList
So the device went back to DEV_HOLD state.
Then I have to manually send a ZB_START_REQUEST (0x2600):
<TX>11:11:46.8 COM8 ZB_START_REQUEST (0x2600)
<RX>11:11:46.97 COM8 ZB_START_REQUEST_RSP (0x6600)
<RX>11:11:46.98 COM8 ZDO_STATE_CHANGE_IND (0x45C0)
State: 9 (0x9)
Are there any other steps that I've missed to get the ZNP to auto-start?
I suppose you can do a fake ZB_START_REQUEST command in init function to make it.
Hi Harry,
I have the same thought as YK, basically this would just be a bdb_StartCommissioning call from npInit.
Regards,
Ryan