Encryption of frames (dynamic preamble select)


We are using DW1001C Module to find distance. here we want to make sure that our frames should not be decode by others and alter by others.

so when i gone through the user manual i found at 10.5 section about Dynamic preamble select.

The IEEE 802.15.4 UWB PHY standard includes a feature called dynamic preamble select (DPS) intended for use a security mechanism for two-way ranging, where devices switch to using one of the DPS specific preamble codes for the ranging exchange, and perhaps a different one for each direction of communication. The idea is to make it more difficult to eavesdrop or spoof, by randomly changing the DPS preamble codes in a mutually agreed sequence only known to the valid participants. This is supported by the DW1000 where at 64 MHz PRF the preamble codes additionally available for DPS are: 13, 14, 15, 16, 21, 22, 23 and 24.

how to implemet this in my code. what changes i need to do? can any one help me.