JN-AN-1189 - smart Plug don't want to join the network

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

JN-AN-1189 - smart Plug don't want to join the network

1,388 次查看
timothee_gros
Contributor II

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 = 52

Scan 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 ?

0 项奖励
回复
8 回复数

1,244 次查看
timothee_gros
Contributor II

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.

1.png

I guess, this means that i should flash a program that will clear the eeprom ?

0 项奖励
回复

1,244 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

1,244 次查看
timothee_gros
Contributor II

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.   

0 项奖励
回复

1,244 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

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

1,244 次查看
timothee_gros
Contributor II

I have erased the EEPROM n the code, and it is working know. I can pair into my zigbee network. Thanks for your help.

0 项奖励
回复

1,244 次查看
timothee_gros
Contributor II

Broadcast transaction table is 35. I have not modified it.

0 项奖励
回复

1,244 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tim,

Could you program the JN selecting Erase EEPROM OPTION?

pastedImage_1.png

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

0 项奖励
回复

1,244 次查看
timothee_gros
Contributor II

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 = 52

Scan 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" ?

0 项奖励
回复