Factory-pairing two nRF52840

Hi there,

I'm developing a product composed of two nRF52840, one being a USB+BLE keyboard and the other being a wireless USB dongle. The two are connected via Nordic UART Service.

I want to pre-pair the keyboard and dongle in the factory via USB. I already store the keyboard's address in the dongle via the settings API and vice versa, which works as intended. But I also want to ensure secure communication.

By secure communication, I'm not even sure which security level I should use, but I'd expect the pre-pairing process to fill out the relevant bt/* Settings API values so that the keyboard and dongle get securely connected.

Please give me some directions regarding the implementation details because I'm quite lost.

Thanks in advance!
- Laci

Related