• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP-NOW, Many-to-One, Can't get to Work

Q&A Forum › ESP-NOW, Many-to-One, Can't get to Work
0 Vote Up Vote Down
Gayland Monken asked 2 years ago

I’m working out of “Learning ESP32 with Arduino IDE”, Module 8, Unit 4, ESP-NOW Many-to-One.
I can’t seem to get anything to work on this project.  I’m using three senders and one receiver.  I’ve gone over everything about three times and still no luck.  I’ve adder the MAC address of the receiver board to the senders sketches and incremented the board numbers in the sender sketches, line 61, by one on the second and third board.  Was this correct?  Were there any other changes to the sketches that needed to be made?
I was able to connect all four esp32 boards up to one computer usb extender and monitor all four esp32s.
This is what I got from the serial monitor of the receiver board:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13220
ho 0 tail 12 room 4
load:0x40080400,len:3028
entry 0x400805e
And this is what I got from the sender boards:
Error sending the data
Error sending the data
Error sending the data
Error sending the data
Where could I have made my errors?  And also, how does one know that all the boards are connected?  Could you please help?
Gayland

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
How are you writing the receiver’s MAC address on the code?
Can you show me the line of code with the receiver’s MAC address? Maybe you’re not writing it in the right syntax…
Regards,
Sara
 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
I’m sorry, I just noticed that after some updates, we forgot to update that sketch.
Cut this line from the setup()

  esp_now_peer_info_t peerInfo;

And past it before the loop() and before the setup().
 
The code is already updated on this link: https://raw.githubusercontent.com/RuiSantosdotme/ESP32-Course/master/code/ESP_NOW/Unit_4/ESP_NOW_Sender/ESP_NOW_Sender.ino
 
I’m sorry for the inconvinience.
 
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Let me know if it is working now.

0 Vote Up Vote Down
Gayland Monken answered 2 years ago

Sara,
Everything now seems to work. Thank you for getting back to me in a timely manner.  
It was that line.  I used the sketch from the link in the latest edition of the book but it must not have been updated.
Thanks again and you do very good work.
Gayland
PS:The temperature measuring system that you helped me with 3 or 4 years ago is still working and I can read it from anywhere.

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.

You’re right, it was not updated in the eBook yet.

Please note that you might have the same issue with the other ESP-NOW examples. You just need to do the same change as you did in this example.

That’s great. I’m glad to hear that. It seems it’s a robust system.

I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.