2023-09-04 11:50 AM - edited 2023-09-04 11:53 AM
Hello all..
I have a proprietary pcb with the above mcu. Board works fine. I am using BLE but with NO bells and whistles (no encryption, authenication or authorizations. I decided I wanted to play around with these things so I have been following the MOOC videos on security. In the following video at 3:12
the presenter shows that a pairing window pops up on the screen. I have done exactly what he has done in short the only change I make is to change a NO to a YES on one of the characteristic permissions for ENCRYPTION READ. When I try and access this my phone applications (I've tried nRFConnect and ST BLE Toolbox) disconnects and I do NOT get any pairing message. Other characteristics seem to work fine. Can anyone tell me what I may have wrong here?
I am using a power supply so no current limit issues and the parameter can be read fine when I turn YES back to NO.
Thanks
Steve
Solved! Go to Solution.
2023-09-08 07:51 AM
As I've said before I did that....it does not work...app disconnects....
Turns out the key which was never mentioned was setting
CFG_MITM_PROTECTION to MITM protection not required (0x00)
2023-09-04 03:23 PM - edited 2023-09-04 05:29 PM
Hello @SWenn.1
For the Hands-on Pairing Just works, Characteristic must require encryption before it can be read by Client. Upon read request, GATT server will generate error message “Insufficient Encryption”. Client will then initiate pairing and encrypt the link.
You shall not require Authentication since there is no MITM protection with Just Works.
Best regards.
II
2023-09-05 10:02 AM - edited 2023-09-05 10:03 AM
Hello II
if you mean set the parameter as below I already done that as the video explains this....If you mean some other switch needs to be set somewhere then please point me to the correct tab /location as the video definitely does NOT suggest anything else
2023-09-05 10:53 AM - edited 2023-09-05 10:56 AM
Hello again
Yes, I mean set the parameter as you have done. To make the application work you need to switch ENCRYPTION READ to Yes.
Best regards
2023-09-08 07:51 AM
As I've said before I did that....it does not work...app disconnects....
Turns out the key which was never mentioned was setting
CFG_MITM_PROTECTION to MITM protection not required (0x00)