What is the security model of esp-now

baoshi
Posts: 23
Joined: Tue Dec 02, 2014 8:35 pm

What is the security model of esp-now

Postby baoshi » Mon Aug 14, 2017 11:43 pm

Trying to develop something using esp-now.

It seems that, there is no way for a sender and receiver to agree upon some common secret before communication. As long as the sender knows receiver's mac address, sender can always send data to receiver.

I tried esp_now_set_kok, and with/without esp_now_add_peer, all does not work. A sender can always send data to receiver with default kok and use esp_now_send with receiver's mac address.

Is this the correct implementation?

Thanks

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: What is the security model of esp-now

Postby ESP_Faye » Tue Aug 15, 2017 5:41 pm

Hi,

Do you set the parameter "key" when calling esp_now_add_peer?
That "key" is used to encrypt the ESP-NOW communication.

Thanks for your interest in ESP8266!

drstefa
Posts: 1
Joined: Thu Feb 22, 2018 1:08 am

Re: What is the security model of esp-now

Postby drstefa » Thu Feb 22, 2018 1:14 am

I got the same problem.

On master i set esp_now_set_kok with the key and add peer using the same key. Master send data and esp_now_register_recv_cb is correct fired.

On slave i set esp_now_set_kok with the key but esp_now_register_recv_cb will not fired.

Same code without using key works fine and correctly.

How could i check?

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: What is the security model of esp-now

Postby Her Mary » Sat Feb 24, 2018 2:17 pm

Could this ESP-NOW guide help?

Who is online

Users browsing this forum: No registered users and 116 guests