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.

CC2564MODA: How to pair the device without passcode in sppdemo profile

Part Number: CC2564MODA
Other Parts Discussed in Thread: CC2564

Hello,

I am working on cc2564moda, from the SDK I am using SPPDEMO Profile, so I want to implement the pairing without using passcode.. Is it possible means please tell me how to implement.

Thanks in advance

  • Hi Jansi, as I am already working with you on the other thread you can post the requested log here or in that ticket.

    To upload the log while writing a forum reply: click Insert > Image/Video/File, Upload to choose the log, then hit okay.

  • Yeah Daniel,

    That thread is different and this is different. From this thread I am asking is it possible to pair the device without passcode in sppdemo 

    Thanks in advance

  • Hi Jansi, can you try the solution suggested in this thread: CC2564: pairing - no passcode - Bluetooth forum - Bluetooth®︎ - TI E2E support forums and let me know the results?

  • 1. Yeah Thank you Daniel, but I got this forum link TI website, and also I tried this method its working fine for demo code not working for my custom code. 

    2. And also please help me how to check whether the passcode is encrypted or not in my custom code. I don't how to check that , so I am asking your help. 

    Thanks in advance.

  • Hi Jansi,

    1. To confirm in your code, you are updating the RemoteIOCapability and MITM values that are then called in the GAP_Event_Callback? Afterwards, you call 

    GAP_Set_Pairability_Mode(BluetoothStackID, pmPairableMode); to set it to Secure Simple Pairing?
     
    2. Hi Jansi, the passcode in your code will not be encrypted unless you have explicity designed it so. Otherwise the lower layers handle over the air bluetooth message encryption.
  • Hello Daniel.

    #define DEFAULT_IO_CAPABILITY (icNoInputNoOutput) 

    #define DEFAULT_MITM_PROTECTION (FALSE)

    I have updated the above two values thats it.

    Can you please tell me what value I have to updafe for RemoteIOCapability and MITM??

    GAP_Set_Pairability_Mode(BluetoothStackID, pmPairableMode); Where I have to Call this function under SetPairablity or else Under GAP_EVENT_CALLBACK function, Please tell me. And also please help to solve this issue bcz I am struck in past 2 weeks.

    Thanks in Advance.

  • Hi Jansi, I understand your frustration that said you have confirmed that the demo code works on your set-up so the best possible solution is to mimic the demo code. The Set_Pairability function can be called any time after stack initialization, in order to further diagnose where the issue may proper log files are necessary.

  • Hello Daniel,

    I am not able to collect the logs, its showing Log 0/0, Nothing is showing in my log window. Daniel Please give me some other suggestions to solve this issue.

    Thanks in advance

  • Hi Jansi, without any holistic insight as to the changes you've made to the demo code or HCI logs that indicate which messages are being sent to CC2564 it is difficult for me to further advise you. 

    I understand this isn't the answer you're hoping for but I cannot provide any more help than I already have without additional information, otherwise I am fumbling in the dark. As the demo has been built with the capability of pairing without passcode, following its program flow is your best bet on solving your issues.