This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

hardcoded pin for pairing

hiiii 

i want to set the authentication for my bluetooth device while pairing

fallowing config are done -> mitm=true and pairing mode to initiate and remaining as mentioned in the user guide

i can able to set the pairing pin and from mobile i can enter the pin it is pairing

problem faced are:

1. i have given password as 123456 .and when i try to enter 12345678 from mobile it is pairing where as the password is just 123456 only which is 6 dig length

and when i enter passwords like 123456,12345678,123456789 it is pairing (passcode i set is 123456)

2. and onemore case is of entering password is not working if we fail to set password for 3 times after wards it is directly pairing

could you please suggest me whether i missed any changes from the embedded side or we have a limitation from bluetooth????

devices are devkit-cc2650 in simple ble peripheral mode mobile-nexus6

 pls suggest!!!!

thanks in advance

  • Hi Naveen,

    1. The max value of the passcode is 999999 for six digit number as defined by specifications. It could be the app truncating the values to the first 6 digits. BLE sniffer trace could verify this.

    2. How do you know you are pairing? For example, are you able to read Characteristic 5 in SimpleBLEPeripheral project which has permission of GATT_PERMIT_AUTHEN_READ?

    Best wishes