-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having troubles compiling #1
Comments
Hi elerir, When downloaded, you need to clone this project to somewhere in your system. make menuconfig make this should compile the project. -.... it is done with 5 retrys to solve situations where you suddenly loose connection and try to reconnect. |
PS. i checked the configuration value of the TCP/IP-Adapters IPaddress_lost_timer. It should work as it is. |
Hello, thanks for your answer. |
Yes, if your router is down, the device will continuously reset....until it can establish a valid/configured connection. |
Okay, so the esp indeed resets after 5 failed connection retries. |
The IPaddress is assigned by the router to the device at connection setup. But yes, you could set the rertys to 0. |
Yeah, but this problem would occur only if the router assigns this old IP to another device, right ? EDIT, reply to myself : Nah, even if the IP is not re-assigned, it would probably wouldnt work since the router's ipstack would considers the connection as failed and not anymore in "time_wait". |
Yes, in most cases the router memorizes the IPaddress in connection with the unique MAC address of the device. in this software, if the IPaddress is lost, the IPstack doesnt work properly any more and the server cannt communicate. Configure fixed IP addresses for the Cams in your router.....for linux motion. |
For some reasons it was not working with this compiler version. However it almost did work with the last version. |
i got |
yeah the "eth_phy/phy_lan8720.h" is a leftover and can be removed. didnt hurt. To see your current ESP-IDF Version, goto esp-idf directory. my project was compiled towards the long term support version V3.3.1 https://docs.espressif.com/projects/esp-idf/en/latest/esp32/versions.html The worklow to get esp-idf for V3.3.1 : get the compiler gzip file: get the camera project: export IDF_PATH= cd espcam2640 make menuconfig make it takes a while until everything is compiled. assuming you have th serial adapter at ttyUSB0 with the device. with serial connected, you can watch the logs in the terminal. |
During the execution of "install.sh" in the "esp-idf"-dir, I got this error: And during "make", I got this error: Then, I was able to compile the source-code and upload it to my ESP32-Cam. Do you have a hint how I can include libraries like the DHT-one (https://github.com/adafruit/DHT-sensor-library)? (I want to use a DHT22 on the ESP32-Cam.) |
i never use "install.sh". just procedure above. |
Hello, Thus, in order to compile this project with a newer version (4.4) of the one you used :
Hope this helps |
Great project, thanks for the effort. I've been using the original binaries and decided I'd try to compile with a newer version. In my case I've installed the ESP-IDF v4.3 on Windows 10. I found a few other issues in addition to what Elerir encountered preventing compilation in my environment:
I'll test flashing the new binaries on a new ESP32-CAM when it comes in. The only issue I've had with the original binaries is that intermittently (once a week or so?) I get connection errors downloading an image from the capture URL to an Ubuntu PC. The errors seem to be connection refused or timeout errors. However, when this happens I can still ping the ESP32 from the same machine, so it still seems to have WiFi connectivity. Once the errors start occurring, I have to power cycle the ESP32 and it always comes back to life. I've just put in some better error reporting in my Linux app so I may get additional clues soon. Maybe just a flaky module... My application simply downloads a UXGA-resolution image once every five minutes using the flashlight feature for monitoring a meter in a dark and difficult to access location. |
I was able to flash the binaries to a new ESP32-CAM and I have it working! I found one additional issue. I had to adjust the fix that Elerir provided for i2c to this: |
thanks,will update to idf 4.3 with fixes |
@hedgemybets |
Yes, my app uses a Keras machine learning model running on a PC. I trained the model to classify images downloaded from the ESP32-CAM running your code. It determines the state of my water softener under the house. This is based on meter dial position. BTW, your latest updates providing the ESP restart when there are connection issues solved my problem from before. Thanks! |
please look into the closed issues for further help ! ;) |
This issue stays open for further inputs and suggestions........ |
Hello,
Good job with this really great project.
I'm facing troubles compiling your project.
Using the pre-built binaries does not fit my needs because I would like to change the param "max retry wifi reconnect" which is set by default to 5, in order to be able to handle long-loss connection issue (due to router shutdown for instance or electricity outage (>1day))
Would it be possible for you to share the way you build your project in order to get these binaries please ?
Thank you,
PS : I am not confortable at all with building C project
PS2 : I just realized you reset the board (I think) after 5 fails
ESP32-CAM-Linux-Motion/main/espcam2640.c
Line 239 in dee15f3
The text was updated successfully, but these errors were encountered: