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
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.
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,
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.
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 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