Hello! I open the topic, because after a week of painstaking work, the result was not achieved.
Libraries tried different versions: early and latest. I load the code for deploying the mesh network on two ESP32-CAM boards (I attach the code - basic.ino). Both boards are from Aliexpress (manufacturer not identified). Both are powered by 5 volts. One of them is connected to the port monitor. No messaging takes place.
What could be wrong: in the code or in the hardware? Please give me some good advice: which way to dig. Could someone upload this code to their boards to test if it works?
The mesh network is not working ... although it should!
-
- Posts: 2
- Joined: Wed Dec 15, 2021 9:09 pm
The mesh network is not working ... although it should!
- Attachments
-
- basic.zip
- (1.04 KiB) Downloaded 226 times
-
- Port Monitor Message.png (72.23 KiB) Viewed 4686 times
-
- Posts: 1
- Joined: Tue Dec 21, 2021 3:01 pm
Re: The mesh network is not working ... although it should!
Not sure what was painstaking about loading/running this demo code. I successfully tried this demonstration code in a 5 node mesh (2xESP32 dev boards, 2xESP8266 dev boards, ESP32-CAM.
I assume the code compiled and downloaded on your ESP's without error, and your Serial Monitor baud rate is set to 115200. You might want to enable the full debugging:
Uncomment this line:
mesh.setDebugMsgTypes( ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE ); // all types on
Comment this line:
// mesh.setDebugMsgTypes( ERROR | STARTUP ); // set before init() so that you can see startup messages
If still nothing, add a message inside the loop to see if the program is running:
Serial.printf("Loop Test\n");
... which will (should) give you plenty of this:
10:28:56.249 -> Loop Test
10:28:56.249 -> Loop Test
10:28:56.249 -> Loop Test
10:28:56.249 -> Loop Test
10:28:56.249 -> Loop Test
I assume the code compiled and downloaded on your ESP's without error, and your Serial Monitor baud rate is set to 115200. You might want to enable the full debugging:
Uncomment this line:
mesh.setDebugMsgTypes( ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE ); // all types on
Comment this line:
// mesh.setDebugMsgTypes( ERROR | STARTUP ); // set before init() so that you can see startup messages
If still nothing, add a message inside the loop to see if the program is running:
Serial.printf("Loop Test\n");
... which will (should) give you plenty of this:
10:28:56.249 -> Loop Test
10:28:56.249 -> Loop Test
10:28:56.249 -> Loop Test
10:28:56.249 -> Loop Test
10:28:56.249 -> Loop Test
- Attachments
-
- Painless Screenshot.jpg (2 MiB) Viewed 4629 times
-
- Posts: 2
- Joined: Wed Dec 15, 2021 9:09 pm
Re: The mesh network is not working ... although it should!
Thank you very much for checking the code! You were absolutely right - the code works fine! As it turned out, during Wi-Fi initialization, there was a peak load with a current greater than the USB port on the computer can supply. Therefore, the module was rebooted cyclically. Connecting the ESP32 to a self-contained 5V power supply solved the problem!
Who is online
Users browsing this forum: No registered users and 71 guests