I'm having a problem trying to read cluster attributes with APS level encryption enabled (TxOptions = 0x20). I'm able to successfully join a SE network including link key exchange with the trust center and can access the general clusters with network level encryption. If I try to access a SE cluster, e.g., Price, with network encryption only I receive the expected default response indicating failure. If I issue the same command but with APS level encryption enabled. I get back a Network ACK failure (0x21) transmit status. Looking at the ZigBee network trace I can see the read attribute command is being sent and the correct response comes back from the device.
I got the command to work correctly once, i.e., received the attribute data, but only once.
Any help would be greatly appreciated.