I am using Arduino Nano 33 IoT, I need secure communication with another Arduino Nano 33 IoT.
BLE communication works but I need to do a pairing with passkey.
I can't find any example on the official "ArduinoBLE" library
in0
October 7, 2021, 11:53am
2
Hi @salviador . The ArduinoBLE doesn't support pairing. You can learn about that here:
opened 05:35AM - 07 Oct 19 UTC
closed 10:22AM - 13 May 22 UTC
type: enhancement
conclusion: resolved
topic: code
I know ble works by broadcasting and that methods like ccm are available.
In… cryptography, a cipher block chaining message authentication code (CBC-MAC) is a technique for constructing a message authentication code from a block cipher. The message is encrypted with some block cipher algorithm in CBC mode to create a chain of blocks such that each block depends on the proper encryption of the previous block. This interdependence ensures that a change to any of the plaintext bits will cause the final encrypted block to change in a way that cannot be predicted or counteracted without knowing the key to the block cipher.
The trouble with that is that anyone could publish a message and it would mess up the next block process of decryption, effectively rendering the encryption and communication useless and still be legal as defined by fcc part 15.
Doesn’t this practically make ble useless as a protocol if there is no connection state tracking and layered encryption?
There is a proposal to add the capability from the community here:
arduino-libraries:master
← unknownconstant:master
opened 09:19AM - 24 Jan 21 UTC
This pull request is for an implementation of the BLE Security Manager which all… ows arduino devices to pair & encrypt connections using the HCI specification. Specifically, it implements Secure Connect / Numeric comparison.
The branch appears stable but I'm aware it may need some refactoring. An example sketch is included to show how to pair devices.
The branch supports encryption instigated by the central when the arduino is the peripheral.
If you like, you can give the library from that fork a try. The download is here:
https://github.com/unknownconstant/ArduinoBLE/archive/refs/heads/master.zip
Instructions for installing libraries manually here:
(make sure to delete your installation of the official ArduinoBLE when you install the modified one so they don't conflict with each other.
No guarantee whatsoever that it will work for you, but maybe it will be a fun experiment?
Thanks your post was a great help.
The goal is to use a modified wii nunchuk with the nano 33 IoT to control my wheelchair via BLE. For this, a minimum security is appropriate
system
Closed
April 8, 2022, 8:31am
4
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.