Other Parts Discussed in Thread: Z-STACK
Hello,
I'm having one weird problem maybe someone faced it in the past and can give me some help.
I have a motion sensor "Nyce NCZ-3043" that I'm trying to use with a custom coordinator (based on the zigbee stack 3.0). But when the motion sensor (end device) asks to rejoin, the coordinator sends a leave message and I can't quite figure out why.
I paired the device doing the following steps:
-> Open the zigbee network and put the motion sensor in paring mode
-> Write the "CIE Address" attribute with my coordinator MAC
-> Wait for an enroll request and send a enroll response
Everything works as expected, but as soon as I remove the batteries and put them on the device tries to rejoin and fails....
So far what I've tried the changes bellow but nothing seems to work
-> zgApsAllowR19Sec = TRUE
-> BDB_DEFAULT_TC_REQUIRE_KEY_EXCHANGE FALSE
One thing I notice compared to a a device that works is the motion sensor doesn't send the "Nwk Aux Header" in the rejoin request when other devices do. Can this be the reason for the join to fail?
Since this is a 3rd party device changing the end device firmware isn't an option I was hoping maybe I could make my coordinator accept this device changing some flags in my code.
I attached an ubiqua with the rejoin problem I described here maybe it's easier to see if something is wrong that way.
I'm a bit stuck at this moment and don't know what else to try, if anyone has any suggestions feel free to share :).