Part Number: CC2541
Hi, Greetings. I made few changes in hidemukbd.c file related to pairing of BLE to Mobile phone. Like: - // Default passcode // #define DEFAULT_PASSCODE 0 #define DEFAULT_PASSCODE 123 // By Devendra // Default GAP pairing mode // #define DEFAULT_PAIRING_MODE GAPBOND_PAIRING_MODE_INITIATE #define DEFAULT_PAIRING_MODE GAPBOND_PAIRING_MODE_WAIT_FOR_REQ // By Devendra // Default MITM mode (TRUE to require passcode or OOB when pairing) // #define DEFAULT_MITM_MODE FALSE #define DEFAULT_MITM_MODE TRUE //By Devendra I have doubts: - First, But If I unpair my device from mobile phone after above changes & restart download & debug again pairing doen't ask for Password. It paired directly. Is there any other thing to take care in gapbondmanager or somewhere else. Second, I like to rename the BLE for 23 character length excluding NULL character. I tried but I guess only 12 character can be used(correct me if i am wrong). For this I change default size 21 to 24 as well in (#define GAP_DEVICE_NAME_LEN 21 // Excluding null-terminate char) but after doing this BLE device was not in available devices.
Third, How can I restrict BLE not to be available/pair with other mobile phone unless the pair information erased permanently. Pls suggest. Thank you. Regards, Devendra