This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to increse the packet length of gzll

hi 

      im use nrf52840 as a gazell device which run the demo  \nRF5_SDK_16.0.0_98a08e2\examples\proprietary_rf\gzll\gzp_desktop_emulator\pca10056  ,and use nrf24lu1p

(\nrfready_desktop_2_v3.0.0\source_code\nrfready_desktop_dongle\projects\nrfready_desktop\dongle) as a gazell host.

  the demo can send 8 bytles at once,but i hope it can send consumer keys and system key ,obviously the packet length is too small.so i want to konw how to increse the packet length?

 

  • Hi,

    From gzp.h I can find that:

    #define GZP_CMD_ENCRYPTED_USER_DATA_VALIDATION_ID 1  ///< "Encrypted user data" packet, validation ID position
    #define GZP_CMD_ENCRYPTED_USER_DATA_PAYLOAD ((GZP_CMD_ENCRYPTED_USER_DATA_VALIDATION_ID + GZP_VALIDATION_ID_LENGTH)) ///< "Encrypted user data" packet, user data position
    #define GZP_ENCRYPTED_USER_DATA_PACKET_OVERHEAD ( GZP_CMD_ENCRYPTED_USER_DATA_VALIDATION_ID + GZP_VALIDATION_ID_LENGTH)        ///< "Encrypted user data" packet, packet overhead length
    #define GZP_ENCRYPTED_USER_DATA_MAX_LENGTH (17 - GZP_ENCRYPTED_USER_DATA_PACKET_OVERHEAD) ///< "Encrypted user data" packet, max payload length
    

    This should mean that you can send 17 - 1 - 3 = 14 bytes encrypted packet using for instance gzp_crypt_data_send(payload, GZP_ENCRYPTED_USER_DATA_MAX_LENGTH).

    Best regards,
    Kenneth

Related