Two ESP32-CAM synchronously streaming to PI4

lukas1000
Posts: 7
Joined: Mon Jul 29, 2019 7:29 pm

Re: Two ESP32-CAM synchronously streaming to PI4

Postby lukas1000 » Mon Aug 05, 2019 6:38 am

Now I have a new problem.

Code is working so far, but:
if only one cam has an active stream, the pictures are taken quite exactly with a very small delay.
If I start the stream on the second cam, one of the cams fail immediately.
The cam is not able to send its data, it get stuck by sending the data.
If I switch off the working CAM, the other one resumes sending.

I had the same problem with the standard demo application, but thought just the traffic is to high.
I already tested this with 2 brand new ESP32-CAM and with a dedicated WIFI router.

Timing output shows, that the whole server function is processed within 100ms, with 500ms trigger input this should be enough time for the second ESP32 to send its data.
But no, I doesn't.

As all of you recommend I added some delay() to all while loops, but no improvement, same problem and less exact timing accuracy.

It is also strange, that if I touch the antenna with my fingers, sometimes the stream of both ESP runs. But not always and only stable for some seconds.

I also checked if they have different MAC addresses, yes they have.

Does any one has an idea why always one of two ESP is not able send the data?


Thanks

Lukas

Who is online

Users browsing this forum: No registered users and 72 guests