I am using JN5169 with JN-SW-4170 Zigbee 3.0 v1840.
Does this mean the parameter sBeaconFilter will not work?
BDB_vSetRejoinFilter() function code:
Is it OK If I change the code like this:
Hi,
I am not sure what is the modification that you did.
The example that we provide shows the code:
sBeaconFilter.pu64ExtendPanIdList = NULL;
sBeaconFilter.u8ListSize = 0;
sBeaconFilter.u8Lqi = BEACON_FILTER_LQI_VALUE;
Note: If this is a whitelist, only beacons from networks with EPIDs in the list will be accepted
Regards,
Mario
Hi,
This is my modification:
What is you SDK version?
I am using JN-SW-4170 Zigbee 3.0 v1840.
It seems my original code is not the same as yours.
Can you put all code about BDB_vSetRejoinFilter() function?
Regards,
qingshu
Hi,
I am working with the same SDK version.
PUBLIC void BDB_vSetRejoinFilter()
{
uint64 u64Epid;
sBeaconFilter.u16FilterMap = BF_BITMAP_LQI;
sBeaconFilter.u8ListSize = 0;
sBeaconFilter.pu64ExtendPanIdList = NULL;
u64Epid = ZPS_psAplAibGetAib()->u64ApsUseExtendedPanid;
if ((u64Epid > 0) &&
(u64Epid < 0xffffffffffffffffUL))
{
/* Apply a beacon filter */
au64ExtPanListForBeaconFilter[0] = u64Epid;
sBeaconFilter.pu64ExtendPanIdList = &au64ExtPanListForBeaconFilter[0];
sBeaconFilter.u8ListSize = BEACON_FILTER_EXT_PAN_LIST_SIZE;
sBeaconFilter.u16FilterMap |= BF_BITMAP_WHITELIST;
}
}
Regards,
Mario
Hi,
Thank you for your reply.
My original code is the same as yours.
What do you think about the code I modified?is it necessary?
Hi,
It depends on your requirement, what are you trying to achieve?
You are saving and filtering the Extended PAN ID, but are you trying to filter some devices?
Do you want to only permit some devices in your network? Did you try to change the network key?
Regards,
Mario
Hi,
Sorry i didn't make it clear before.
I want the device to rejoin the network according to the LQI,Select parent node based on LQI。
Hi,
By default, the device is looking for the network baes on the LQI.
Regards,
Mario