AnsweredAssumed Answered

API failed in vEZ_JoinSavedNetwork 0xC3

Question asked by vihang jani on Feb 20, 2018
Latest reply on Feb 21, 2018 by Mario Ignacio Castaneda Lopez

Hi,

      Sometimes I get “API failed in vEZ_JoinSavedNetwork 0xC3” message when device attempt to call ZPS_eAplZdoJoinNetwork within  vEZ_JoinSavedNetwork to join network , sometimes it can join the network, have anyone know the reason of this issue?

 

0xC3(195) return value of  ZPS_eAplZdoJoinNetwork  API is coming 4 to 6 times in scanning all channel .


NOTE  : I have attached log for your reference and am using JN-SW-4166 SDK. 


Set Channel to 13

vSL_WriteMessage(32793, 1, 95)

vEZ_ClearDiscNT done
vAttemptDiscovery :- Discovery API Status =0
EZ_STATE = 0
******eNodeState : 0x02*****sStackEvent.eType : 0x0
eGetEZModeState = 3 , u8JoinAttempts = 2
EZ_STATE = 3
APP_ZpsEventTask sStackEvent.eType : 0x000a
ZPS_EVENT_NWK_DISCOVERY_COMPLETE

vSL_WriteMessage(32791, 35, 67)
******eNodeState : 0x02*****sStackEvent.eType : 0xa
eGetEZModeState = 3 , u8JoinAttempts = 3
OS_eStartSWTimer APP_JoinDelayTimer
EZ_STATE = 3
******eNodeState : 0x02*****sStackEvent.eType : 0x0
eGetEZModeState = 3 , u8JoinAttempts = 4
EZ_STATE = 3
******eNodeState : 0x02*****sStackEvent.eType : 0x0
eGetEZModeState = 3 , u8JoinAttempts = 5
OS_E_SWTIMER_EXPIRED
Discovery FailedtoJoin.....1
vEZ_ClearDiscNT done
vAttemptDiscovery :- Discovery API Status =0
EZ_STATE = 3
APP_ZpsEventTask sStackEvent.eType : 0x000a
ZPS_EVENT_NWK_DISCOVERY_COMPLETE

vSL_WriteMessage(32791, 35, 67)

******eNodeState : 0x02*****sStackEvent.eType : 0xa
eGetEZModeState = 3 , u8JoinAttempts = 0
ZPS_EVENT_NWK_DISCOVERY_COMPLETE......NWK Found, Count = 2
vEZ_SortAndSaveNetworks
**Saving Open NWK ExPANID = 0x00b57fffeb39849
vEZ_SortAndSaveNetworks sEZModeData.u8DiscoveredNwkCount = 1
u8DiscoveredNwkCount : 1
u8JoinIndex : 0
u64ExtPanId : 0xX00b57fffeb39849
u8EndDeviceCapacity : 1
u8LogicalChan : 13
u8PermitJoining : 1
u8RouterCapacity : 1
u8StackProfile : 2
u8ZigBeeVersion : 2
API failed in vEZ_JoinSavedNetwork 195

vSL_WriteMessage(32800, 16, ba)

 

Exhausted NWK Join


EZ_STATE = 3
******eNodeState : 0x02*****sStackEvent.eType : 0x0
eGetEZModeState = 0 , u8JoinAttempts = 1
E_EZ_SETUP_START
vEZ_ClearStateVariables
eEZ_SetChannel

Outcomes