esp_now features : Unable to receive message at another end
-
- Posts: 21
- Joined: Wed Jun 03, 2015 1:20 pm
esp_now features : Unable to receive message at another end
Postby parmar7725274 » Thu Oct 08, 2015 1:50 pm
Hi ALL !!
I have two ESP modules. ESP - 01 and ESP 12q. I configured both of modules as follows :
ESP - 01 : mac address - 18:fe:34:9e:18:21
- set mode - STATION
- set role - CONTROLLER ( 1 )
- registered send and receive callback
- Add peer ESP-12q (mac - 5c:cf:7f:00:da:1d ) , role - SLAVE ( 02 ), channel - 1
ESP - 12 : mac address - 5c:cf:7f:00:da:1d
- set mode - STATION+AP
- set role - SLAVE ( 2 )
- registered send and receive callback
- add peer ESP-01 (mac - 18:fe:34:9e:18:21 ), role - CONTROLLER( 1 ), channel - 1
I check the return value of each function call and I get success.
Problem :-
When I'm sending packet from ESP - 01 using esp_now_send function. I'm getting success and send call back is getting called but on other end( ESP - 12q ) doesn't receive any packet.
Please help me to solve this.
Thanks & Regards,
Prakash P.
I have two ESP modules. ESP - 01 and ESP 12q. I configured both of modules as follows :
ESP - 01 : mac address - 18:fe:34:9e:18:21
- set mode - STATION
- set role - CONTROLLER ( 1 )
- registered send and receive callback
- Add peer ESP-12q (mac - 5c:cf:7f:00:da:1d ) , role - SLAVE ( 02 ), channel - 1
ESP - 12 : mac address - 5c:cf:7f:00:da:1d
- set mode - STATION+AP
- set role - SLAVE ( 2 )
- registered send and receive callback
- add peer ESP-01 (mac - 18:fe:34:9e:18:21 ), role - CONTROLLER( 1 ), channel - 1
I check the return value of each function call and I get success.
Problem :-
When I'm sending packet from ESP - 01 using esp_now_send function. I'm getting success and send call back is getting called but on other end( ESP - 12q ) doesn't receive any packet.
Please help me to solve this.
Thanks & Regards,
Prakash P.
Re: esp_now features : Unable to receive message at another end
Postby ESP_Faye » Fri Oct 09, 2015 11:23 am
Hi,
Please make sure that the channel of the two devices are the same.
The actual channel, not the parameter channel in esp_now_add_peer.
Please make sure that the channel of the two devices are the same.
The actual channel, not the parameter channel in esp_now_add_peer.
-
- Posts: 21
- Joined: Wed Jun 03, 2015 1:20 pm
Re: esp_now features : Unable to receive message at another end
Postby parmar7725274 » Tue Oct 13, 2015 3:08 pm
Hi Faye,
Thanks for your reply.
I use function wifi_set_channel ( 1 ) to set channel in user_init( ) of both ESP module. SO, I'm sure that both Modules are in same channel. But still I'm not able to receive message( packet ) on another end.
Thanks & regards,
Prakash P.
Thanks for your reply.
I use function wifi_set_channel ( 1 ) to set channel in user_init( ) of both ESP module. SO, I'm sure that both Modules are in same channel. But still I'm not able to receive message( packet ) on another end.
Thanks & regards,
Prakash P.
Re: esp_now features : Unable to receive message at another end
Postby ESP_Faye » Fri Oct 16, 2015 2:06 pm
Hi,
Please notice that in softAP + station mode, ESP8266 softAP will adjust its channel configuration to be as same as ESP8266 station. So if the ESP8266 station connected to a router, the channel of ESP8266 will change to be the same as the router.
More details in http://bbs.espressif.com/viewtopic.php?f=61&t=324.
Please notice that in softAP + station mode, ESP8266 softAP will adjust its channel configuration to be as same as ESP8266 station. So if the ESP8266 station connected to a router, the channel of ESP8266 will change to be the same as the router.
More details in http://bbs.espressif.com/viewtopic.php?f=61&t=324.
Who is online
Users browsing this forum: No registered users and 27 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.