smartphone esp32 ble communcation and encryption

blekyo
Posts: 3
Joined: Tue Nov 14, 2017 2:15 am

smartphone esp32 ble communcation and encryption

Postby blekyo » Thu Nov 23, 2017 6:46 am

Hi,
I'm quite new on the ble communcation. What I am trying to do is to create a gatt server with the esp32, which is working with the different example provided. What I'm struggling to do is to create a custom service and characteristic on my gatt server and also to encrypt the communication. Something like a common encryption key on both smartphone and esp32 gatt server in order to secure the communication, so only the gatt server itslef and the smartphone can understand each other.
Any suggestion or lead to make it happened would be really appreciate.
Thanks

espiot
Posts: 2
Joined: Wed Nov 29, 2017 2:10 pm

Re: smartphone esp32 ble communcation and encryption

Postby espiot » Sat Dec 02, 2017 2:54 am

Once connected, the encryption is taken care by the BLE stack. The SDK example such as spp server can help to create your own GATT servers. I found web Bluetooth is the easiest to work with as the client. Good luck.

bschwind
Posts: 5
Joined: Mon Jul 03, 2017 3:29 pm

Re: smartphone esp32 ble communcation and encryption

Postby bschwind » Mon Dec 11, 2017 7:54 am

Is there anywhere I can read about the encryption used? I'm developing a device which uses BLE for a part of its operation and I want to have my bases covered and make sure I'm using it properly.

Right now the blufi example uses its own diffie-helman key exchange and encryption on top of BLE. espiot, are you saying that is unnecessary while using the BLE stack?

Who is online

Users browsing this forum: No registered users and 7 guests