DA14580 to DA14580 communication and pairing

7 posts / 0 new
Last post
abhijitpatil1975
Offline
Last seen:6 years 2 months ago
加入:2015-01-27 06:22
DA14580 to DA14580 communication and pairing

Hi Support Team,

I am currently building an IoT application, where the objective is to use two DA14580. One DA14580 is attached to some device and the other DA15480 is attached to the other device.

The two Bluetooths are not paired and they would like to establish connection with each other. There is a provision that through the UART port of the first DA15480, I can send the UID of the second bluetooth. Is it then possible to establish the pairing, and start communication with each other?

Is there a way that once the UID of the second bluetooth is fed into the first bluetooth through say the UART port only once, then that address gets permanently registered into the memory of the first Bluetooth and from there on, automatic pairing of the two devices and sharing of the data can proceed?

I am looking forward to your solution. I am very keen on using DA14580.

thanks for your help in advance.

with best regards,
Abhijit

JE_Dialog
Offline
Last seen:2 weeks 4 days ago
工作人员
加入:2013-12-05 14:02
Hello Abhijit,

Hello Abhijit,

Before the establishment of data connection, pairing is required. Since the pairing is between 2 BLE-UART dongles, the 1st question is how to define the individual role. Secondly, the inputs through UART can act as a cipher key that the dongle can advertise to request for a pairing connection and this cipher key is validate the process. After the completion of the pairing, the information can be saved and the data connection is then opened.

The assumption here is that each dongle has its own cipher key printed for identification, equivalent to a password.

BR JE_Dialog.

Daniel.Landherr
Offline
Last seen:1 year 7 months ago
加入:2014-06-19 20:36
Once a pairing is achieved,

Once a pairing is achieved, where is the pairing information stored? If the DA14581 is turned off can I store the pairing information off-chip in memory and reload into a location where the DA14581 will find it?

JE_Dialog
Offline
Last seen:2 weeks 4 days ago
工作人员
加入:2013-12-05 14:02
Hello Daniel, yes, you can do

Hello Daniel, yes, you can do that . The best example we have is the keyboard reference design. It has a small 2kB EEPROM for preceisely this reason. PLease see section 7 of the user manual for the Keyboard reference design.

BR JE_Dialog

jhangwenjie
Offline
Last seen:3 years 9 months ago
加入:2017-06-01 09:15
Hi,

Hi,

I'm using ancs_example project on a DA1580 EVB using sdk 5, could you kindly advise where can I find reference code to achieve the same?
The KB example seems to carry a different project structure...

I basically want to be able to have my kit be able to reconnect again after a power reset (without having to do another pairing).

Cheers,
jwj

MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi jhangwenjie,

Hi jhangwenjie,

If you are looking for a pairing example, then the SDK 5.0.4 carries a quite good example for security and pairing, you can have a look at the ble_app_security project that implements the security feature. Regarding tha fact that you would like your kit to reconnect after power loss i suppose, you will have to store the bonding data in a non-volatile memory, either a flash or an eeprom in order to do so, because when powering up the bonding data would be lost and you will have to go through the bonding procedure again. You can have a look at the security tutorial as well (Training_05_ble_security_example.pdf) which explains some basic staff regarding the security procedure.

Thanks MT_dialog

jhangwenjie
Offline
Last seen:3 years 9 months ago
加入:2017-06-01 09:15
gotit, thanks MT_dialog

gotit, thanks MT_dialog