SWRU581 March 2021 CC2564C , CC2564MODA , CC2564MODN , WL1831
SS1BTPM is compiled to support secure simple pairing as the default configuration. If legacy pairing is needed instead, for example so that the user is forced to enter a fixed pin code, then it is possible to configure and recompile SS1BTPM to only support legacy pairing. To do this open <INSTALLATION_DIR>/BluetopiaPM/ss1btpm/server/BTPMSRVR.c in a text editor. Near the bottom of the file modify the assignment:
DefaultInitializationData.DefaultPairabilityModeSSP = TRUE;
and change TRUE to FALSE.
DefaultInitializationData.DefaultPairabilityModeSSP = FALSE;
After making this change next rebuild SS1BTPM.
SS1BTPM is now compiled to support only legacy pairing. You will notice that the next time a device pairs with the target that the demo application will prompt the user for a pin code response. When this occurs respond with the PINCodeResponse command, for example PINCodeResponse 0000. The pin code used, 0000 in this example, must be the same on both devices.