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.

CC2564: pairing - no passcode

Part Number: CC2564

Hi All, is there any proprietary command to send to the CC2564 to avoid the need for pairing the device with a passcode? (we want to have the device paired without key in anything if possible)

Thanks

Florent

  • Hi Florent,

    What you are looking for is "just works" pairing. It will not require any user input. The Pairing method is selected according to the Bluetooth protocol based on the 2 device's IO capabilities. You can change your device's default parameters to the following value to force this pairing method.

    #define DEFAULT_IO_CAPABILITY        (icNoInputNoOutput) 
    
    #define DEFAULT_MITM_PROTECTION                  (FALSE) 

    For example, you can refer to the A3DPDemo_SNK.c in the SDK.

    Best regards,

    Vihang

  • Hello Vihang. When the user pairs the CC2564 to the computer, we want no passcode to be input by the user( After finding the device the user will be pairing without the need to input any password). Please confirm if above feedback is OK.
    Thanks
    Florent
  • Yes, this feedback is for your requirement. Please try it out and let me know if this behaves like you want it to.

    Best regards,
    Vihang
  • Hi Vihang,
    We tried, it is working but only if the user doesn't input any passcode. is that possible to make it working whenever the end user input no passcode or any passcode? I mean the end user may type nothing, or for example "1234", is that possible to pair in any case?
    Thanks
    Florent
  • Hi Florent,

    What do you exactly mean by " but only if the user doesn't input any passcode"?

    Also, can you share what kind of device would be paired? The "Just works" pairing mentioned above is one of the secure ways of pairing 2 Bluetooth devices while not having any input/output capability on the local device.

    There are other pairing methods defined in Bluetooth specs that can be used to do this like having a fixed PIN. But as you can imagine, that defeats the purpose of securely pairing two Bluetooth devices. Please let me know more about the questions above.

    Best regards,
    Vihang
  • Hello Vihang,

    In fact we dont really care about secure connection, the link doesn't need to be secured at all. What we have is a RFCOMM, our device can not display anything, and we would like the user to just simple connect to the device by not entering anything at all in the Bluetooth settings on the PC side. In case the user enters any passcode like "0000" or "1234 we want the RFCOMM to work also the same as when not entering any code.

    This is just to make it simple for the user, without the need to key in anything when searching and connecting to the device.

    Thanks again,

    Florent.

  • Hi Vihang,
    Sorry I may miss some information on the Bluetooth spec,I am not exoert on that topic that's why there may be some misunderstandings!
    I want to pair a CC2564 running RFCOMM stack with a PC running MAC OS or Windows, and exchanging data with hyperterminal. So far it is OK on Windows, but when searching for the CC2564 device we always need to key in on Windows (only first time when pairing) a passcode of "1234" matching the one we use in the CC2564 Bluetooth stack (using pincoderequest function ). Indeed we dont need to secure any data exchanged between the PC and the CC2564... Is that possible to completely disable the pairing with pincode? So when first time binding the CC2564 to the PC, the user just click on the CC2564 in the Bluetooth devices on Windows for example, then Windows doesn't ask for pin code at all and just connect immediately?
    Thanks again
    Florent
  • Hi Florent,

    Sorry for the delay. Using the default SPPDemo, I am able to achieve this by setting the SPP server like the following on the SPPDemo.

    1. Open 1 - to open SPP server port.
    2. ChangeSimplePairingParameters 3 0 - to apply the IOCapabilities and MITM values mentioned above.
    3. SetPairabilityMode 2 - to enable the Secure Simple Pairing.

    After that, I can pair from windows without the need to enter any PINCode/Passcode.

    The steps 2 and 3 can be used similarly for SPP client as well.

    Best regards,
    Vihang
  • Hello Vihang,

    Thanks a lot for your reply, we will give it a try shortly. Do you have idea this would be the same mechanism applying on MAC OS?

    Thanks a lot again and B.Rgds

    Florent

  • Hi Florent,

    I tried this with Windows and Android. I would assume it would be the same for MAC OS.

    Best regards,
    Vihang
  • Hello Vihang, we tried. We can connect to the device, but no data can be exchanged. Also shortly after the device is connected, windows shows an error message (device was not correctly configured) while the device seems connected (the COM ports are showing). That s a bit weird, maybe the RFCOMM can not work with simple pairing.
    Thanks again
    Florent
  • Hi,

    florent coste said:

    maybe the RFCOMM can not work with simple pairing.

    Less likely, but It's possible. Just to check on my end, are you using SPPDemo as SPP Server or SPP Client? Also, which windows version are you running on?

    Best regards,

    Vihang

  • Hello Vihang,

    I am using Windows 10, the SPPDemo is running in SERVER mode.

    Thanks again,

    Florent

  • Hello Vihang,

    It's all good we tested OK under win10 and MACOS. Thanks for your very good support!

    Florent

  • Florent,

    Thanks for posting the update. 

    Cheers,

    Vihang

  • Hello Vihang, we are now using the SPP+LE stack. With above modifications applied to SPP it was OK, but it doesn't work with the SPP+LE, Windows is still asking for a pin code when pairing the device. Please can you let me know if anything to change in the code?
    Thanks/F
  • FYI we have tried many kind of configurations, changed bounding type, tried different licDisplayxxx mode, sent ChangePairingParameters 3 0 0 0 0 command, ... but nothing works Windows is still asking for a pin code when pairing the device.
    Thanks/F
  • Hello Vihang, do I need to open another thread?

    Thanks/F