AnsweredAssumed Answered

bug report JN-AN-1217-zigbee30-base-device

Question asked by brcue liu on Dec 7, 2016
Latest reply on Jun 29, 2017 by liu xiang

operation steps:

1,flash coordinator with erase EEPROM

2.flash router with erase EEPROM

3.press SW3 on Coordinator to form a network,successful

4.Press SW2 to steering ,successful

5.press reset button on Router ,the Router join the network succefull

everything working well.but .. when do as below steps

1. flash router again with erase EEPROM .

2.Press SW2 on Coordinator to steering ,successful

3..press reset button on Router ,the Router join failed.

the Router log:

*********************************************** * ROUTER RESET * ***********************************************

APP: Entering APP_vInitResources()

APP: Entering APP_vSetUpHardware()

APP: Entering APP_vInitialise()

PDM: Capacity 41

PDM: Occupancy 22

Start Up Styae 0 On Network 0

APP: Entering BDB_vStart()

APP: BDB_EVENT_INIT_SUCCESS BDB Try Steering status 0

APP: Entering APP_vMainLoop()

APP-ZDO: Discovery Complete 00 MAC: 0000000000000000 Key: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Incoming FC: 0 Outgoing FC: 0 MAC: 0000000000000000 Key: 5a 69 67 42 65 65 41 6c 6c 69 61 6e 63 65 30 39 Incoming FC: 0 Outgoing FC: 0

APP-ZDO: Failed To Join ad Rejoin 0

APP-ZDO: Failed To Join ad Rejoin 0

APP-ZDO: Discovery Complete ea

 

COORDINATOR:

APP-BDB: NwkSteering Success

APP-EVT: Request Nwk Steering 00

BDB: APP_vGenCallback [0 2]

APP-EVT: Event 1, NodeState=1

BDB: APP_vGenCallback [0 9]

APP-ZDO: New Node 311d Has Joined

 

it's very confuse the Coordinator  said the Router had join as new node .but on the router side ,it's get join fail log.

 

 

i enable the BDB debug and  ZCL debug with CFLAGS += -DDEBUG_BDB ,CFLAGS += -DDEBUG_ZCL,and the Router ,then the Router  show the logs:

 

APP: Entering BDB_vStart()

APP: BDB_EVENT_INIT_SUCCESS

BDB: Disc on Ch 11 from 0x02108800 BDB Try Steering status 0

APP: Entering APP_vMainLoop() BDB: APP_vGenCallback [0 10]

BDB: vNsTryNwkJoin - index 0 of 1 Nwks BDB: Try To join 00158d0001011240 on Ch 11

APP-ZDO: Discovery Complete 00 MAC: 0000000000000000 Key: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Incoming FC: 0 Outgoing FC: 0 MAC: 0000000000000000 Key: 5a 69 67 42 65 65 41 6c 6c 69 61 6e 63 65 30 39 Incoming FC: 0 Outgoing FC: 0

BDB: APP_vGenCallback [0 8] FailedToJoin sNwkJoinFailedEvent.u8Status=173 !!!

BDB: vNsTryNwkJoin - index 0 of 1 Nwks

BDB: Try To join 00158d0001011240 on Ch 11

APP-ZDO: Failed To Join ad Rejoin 0

BDB: APP_vGenCallback [0 8] FailedToJoin sNwkJoinFailedEvent.u8Status=173 !!!

BDB: vNsTryNwkJoin - index 0 of 1 Nwks

 

the Joni Failed Event u8Status 173 is 0xAD,

ZPS_APL_APS_E_SECURITY_FAIL  0xAD

An APSDE-DATA.request requesting security has resulted in an error during the corresponding security processing.

 

Please review  

thanks 

Bruce Liu

Outcomes