Hi,
im a little confused about the ZDO_MGMT_PERMIT_JOIN_REQ command from the ZNP Firmware.
What i actually want to do is set the joining permissions for all devices in my network at the same time. According to the ZNP Interface Specification PDF the ZDO_MGMT_PERMIT_JOIN_REQ command has the parameters:
- AddrMode (1byte)
Destination address type: 0x02 – Addres 16 bit, 0xFF – Broadcast.
- DstAddr (2bytes)
Specifies the network address of the destination device whose Permit Join information is to be modified.
- Duration (1byte)
Specifies the duration to permit joining. 0 = join disabled. 0xff = join enabled. 0x01-0xfe = number of seconds to permit joining.
- TCSignificance (1byte)
Trust Center Significance.
So I'm a little confused what i should send in order to achieve what I want.
I tried to set the AddrMode to 0xFF and leave the DstAddr blank -> ZInvalidParameter
I tried to set the AddrMode to 0x02 and the DstAddr to 0xFFFF, I do not get ZInvalidParameter for the SRSP but also no ZDO_MGMT_PERMIT_JOIN_RSP with a success of any form.
Also i cannot really understand what the answer of the ZDO_MGMT_LQI_REQ is giving me. The spec is telling me that bits 1-0 of a specific byte is used to print the status but why 2 bits for a boolean value?
any kind of help would be appreciated!
Thanks!