Hi.
I am trying to run the JN-AN-1189 app note and more specifically the Smart Plug app.
I was not able to join my existing zigbee network and here is what I see when i look at the debugging output:
Set Channel to 11
Setting Filtes : sBeaconFilter.u8Lqi =29
sBeaconFilter.u16FilterMap = 52Scan is over Channel
vAttemptDiscovery :- Discovery API Status =0
ZPS_EVENT_NWK_DISCOVERY_COMPLETE......NWK Found, Count = 1
vEZ_SortAndSaveNetworks
*Saving Open NWK ExPANID = 0xdddddddddddddddd
vEZ_SortAndSaveNetworks sEZModeData.u8DiscoveredNwkCount = 1
API failed in vEZ_JoinSavedNetwork 194
Exhausted NWK Join
Could you give me some pointers about what may be wrong ?
OK. Apparently the EEPROM has not been cleared.
I am using a JN5169 which is CRP1 protected. apparently this prevent the EEPROM to be erased.
I have this exact message.
I guess, this means that i should flash a program that will clear the eeprom ?
Hi Tim,
I am not sure if the code protection is part of your requirement.
Could you please try to erase the flash and then the EEPROM?
However, please can you check the size of the Broadcast Transaction table size, this can be found in app.zpscfg in advanced properties.
Regards,
Mario
code protection is not a must for me, but i am reusing a chip which have already been CRP-1 protected. I guess i have to live with it.
Hi Tim,
The device is CRP-1, you can not access to the flash memory. You could erase the flash memory, with the Flash erase request command. https://www.nxp.com/docs/en/application-note/JN-AN-1003.pdf
However, as you suggest, could you please erase the EEPROM in the code?
Regards,
Mario
I have erased the EEPROM n the code, and it is working know. I can pair into my zigbee network. Thanks for your help.
Broadcast transaction table is 35. I have not modified it.
Hi Tim,
Could you program the JN selecting Erase EEPROM OPTION?
The EEPROM should have been erased completely as it contains the network information from previous networks it has been and that is what we recommend to always erase EEPROM before trying to join. If EEPROM is not erased and there is some content present in the memory, the stack will give an error when application calls ZPS_eAplZdoJoinNetwork as stack thinks that the device is already part of a Zigbee network.
Regards,
Mario
OK.
Some news:
I have cleared all PDM records and tried again to pair the device with my network.
Here is what i see now:
Set Channel to 11
Setting Filtes : sBeaconFilter.u8Lqi =29
sBeaconFilter.u16FilterMap = 52Scan is over Channel
vAttemptDiscovery :- Discovery API Status =0
ZPS_EVENT_NWK_DISCOVERY_COMPLETE......NWK Found, Count = 1
vEZ_SortAndSaveNetworks
*Saving Open NWK ExPANID = 0xdddddddddddddddd
vEZ_SortAndSaveNetworks sEZModeData.u8DiscoveredNwkCount = 1
Join Network API Success
Exhausted NWK Join
After this last message, the devices continue to scan all chanels. Each time it comes back to channel 11, it attempt connecting again and output the same message as above. What does means this "Exhausted NWK Join" ?