5.3.5.10 Enable Local Privacy (&SEP…)

Format: &SEP,<0,1>,<hex8>,<hex16>[,<hex128>]

Use the &SEP command to enable/disable the local privacy configuration in the RNBD350 module.

When enabling local privacy, the device is in the Device Privacy mode, and it is only concerned about its own privacy. It must accept advertising packets from peer devices that contain their identity addresses as well as their private address, even if the peer device distributed its Identity Resolving Key (IRK). For more details, refer to the Privacy Feature in the Bluetooth Core Specification.

The local privacy feature support in the RNBD350 module is dependent on the first parameter. The value ‘1’ enables the local privacy, and value ‘0’ disables the local privacy. If local privacy is disabled, the user can ignore the following parameters.

Use the second parameter to set the privacy address type; only a random resolvable address (value 2) and a random non-resolvable address (value 3) are allowed.

Use the third parameter to set the timeout interval before the device changes the random privacy device address. The time unit is one second and the range is from 1s to 1800s. This value must not be too small; the recommended timeout is larger than 900s.

The fourth parameter is optional for setting the local IRK of the local device. Use this parameter if IRK is a known IRK; otherwise, the system uses a default IRK.

Example:&SEP,1,02,0384

// Enable local privacy with a random resolvable address type; the timeout interval to change the random resolvable address is 900s (unit – 1s).

Response:AOK

// Success

Err// Syntax error or parameter error