Hi,
When I send a request data command for the openings/closings summary the command fails with an unknown error (see below).
I am handling this command the same way as I do for getting Battery Report (0x0011). Getting the battery report works fine.
Does getting the openings/closings summary need to be handled differently?
thx,
Jeroen
************************ SENDING COMMAND ************************
sendEncryptedMessage(): payloadlen: 2
sendEncryptedMessage(): sizeof(plainData): 8
sendEncryptedMessage(): CRC: f257
Plain data with CRC: : 3f 5d 34 00 01 00 10 00 57 f2
Nonce: f0 4b 91 dd 60 e5 f3 bf d6 5a 53 20 a9 9f 59 d6 98 e8 8d 07 8f 89 59 61
sendEncryptedMessage(): encrypted msgLen: 26
Additional data: : f0 4b 91 dd 60 e5 f3 bf d6 5a 53 20 a9 9f 59 d6 98 e8 8d 07 8f 89 59 61 3f 5d 34 00 1a 00
Encryption key (secretKey): : ea 44 4a b1 27 b9 78 c0 05 02 e6 8a 97 4c ae d7 55 5f 0b 8b d3 d0 63 b3 68 2c 18 06 66 10 b8 92
Plain data encrypted: : 2b 6c 60 77 37 a4 c1 f9 dd cc d4 a6 b7 25 cb 19 8e 03 df 96 ed 4c 0b 4e b2 e1
Sending encrypted message: f0 4b 91 dd 60 e5 f3 bf d6 5a 53 20 a9 9f 59 d6 98 e8 8d 07 8f 89 59 61 3f 5d 34 00 1a 00 2b 6c 60 77 37 a4 c1 f9 dd cc d4 a6 b7 25 cb 19 8e 03 df 96 ed 4c 0b 4e b2 e1
notifyCallback(): Notify callback for characteristic: a92ee202-5501-11e4-916c-0800200c9a66 of length: 57
Received data: 5f 6b 5b 27 d5 e4 9f 08 ab fd fa 34 ab b2 6c 73 98 4f 7f f1 8d dd 61 2a 3f 5d 34 00 1b 00 c1 33 43 fb 65 d5 7d 98 19 55 32 e6 55 a0 1a 18 42 70 05 6e 20 16 9a 12 ff 6c a6
notifyCallback(): Received encrypted msg, len: 27
received nonce: 5f 6b 5b 27 d5 e4 9f 08 ab fd fa 34 ab b2 6c 73 98 4f 7f f1 8d dd 61 2a
Received AuthorizationId: 3f 5d 34 00
Rec encrypted data: c1 33 43 fb 65 d5 7d 98 19 55 32 e6 55 a0 1a 18 42 70 05 6e 20 16 9a 12 ff 6c a6
Decrypted data: 3f 5d 34 00 12 00 ff 10 00 a6 fd
crcValid(): CRC CHECK OKE
handleReturnMessage(): Error: ff for command: 00:10
cmdStateMachine(): ************************ COMMAND FAILED ************************
my_gattc_event_handler(): Disconnect reason: 19