Giter Club home page Giter Club logo

esp32cam-ready's Introduction

You ❤️ it?
Please ⭐ it!

esp32cam-ready's People

Contributors

rzeldent avatar wifwucite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

esp32cam-ready's Issues

WebRTC support request

Is your feature request related to a problem? Please describe.
I'd like the esp32 cam to connect p2p via WebRTC instead of using RTSP as webrtc faster and efficient.

Default accesspoint password is incorrect

Describe the bug
The default accesspoint password in README.md is incorrect.

It is stated as espcam32# but the actual password is esp32cam#

Suggest removing the "." afterwards too to avoid confusion as to whether that forms part of the password.

mqtt support

Great work!, do you have any plans to introduce mqtt support and add automatic discovery say with Homeassistant. It would be a cool feature especially if you can add motion detection without IR components. There are some examples out there but I like your approach; clean and easy to read/understand.

RTSP UDP Streaming issues

Excellent project! I'm inexperienced with PlatformIO, but have used Arduino IDE for some time. Was finally able to get the bin file made & uploaded. See the attached txt file for my issues.

rtsp.txt
Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Camera config failed

Hello

I tried your library . It gives an error.
[ 29][I][main.cpp:38] setup(): CPU Freq = 240 Mhz [ 29][I][main.cpp:39] setup(): Starting ESP32Cam... [ 29][I][main.cpp:44] setup(): Initialize the camera E (143) cam_hal: cam_dma_config(280): frame buffer malloc failed E (144) cam_hal: cam_config(364): cam_dma_config failed E (144) camera: Camera config failed with error 0xffffffff [ 152][E][main.cpp:47] setup(): Initializing the camera failed [ 158][I][main.cpp:49] setup(): Instance_name: LIGHTS-40f520788218 [ 164][I][main.cpp:51] setup(): Connecting... [ 277][E][WiFiSTA.cpp:262] begin(): connect failed! 0x300a

I use AI THINKER CAMERA . I tried sample code with two different cameras.

Default password doesn't work

After uploading firmware I wasn't able to connect to AP with default password (esp32cam#). I'm not sure why. I tried Macbook, iPhone and Android phone. After changing password to 12345678 and upload firmware again it worked fine.
Please, investigate the problem and consider to change default password.

No video on Lilygo TTGO Wrover

Describe the bug
I was able to compile and install the firmware but I got no video on the camera of the following link

To Reproduce
Steps to reproduce the behavior:

  1. Downloaded the repository manually.
  2. Opened the repository through VSCode , PlatformIO plugin --> Open command
  3. Compiled
  4. Uploaded code
  5. Connected to camera's Wifi and set local SSID/Password successfully
  6. Connected my computer back to router
  7. Found espCam IP address through my router's menu
  8. Connected to espCap IP using my browser , all OK there
  9. Tried menu options single frame, stream frames , no video
  10. Tried the RTSP link provided on the camera's web server on the VLC, no video there

Expected behavior
I expected to have a live view of the camera feed.
Screenshots
none

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 83.0.4103.116

Smartphone (please complete the following information):

  • Device: iPhone 11 Pro
  • OS: 13.5
  • Browser Safari
  • Version [ not sure about that]

Additional context
none

Reboots after trying to enter Configuration Page

Describe the bug
Hi
Whenever i want to enter the config page to set up my wifi after successfully connecting to the esp32-cam Wifi-AP after flashing --> it reboots with this error:

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400014dc  PS      : 0x00060230  A0      : 0x800ddacd  A1      : 0x3ffb1840  
A2      : 0xa5a5a5a5  A3      : 0xa5a5a5a1  A4      : 0x000000ff  A5      : 0x0000ff00  
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x800ddab2  A9      : 0x3ffb1820  
A10     : 0x3ffd2abc  A11     : 0x3f403dab  A12     : 0x000000ff  A13     : 0x0000ff00  
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x00000018  EXCCAUSE: 0x0000001c  
EXCVADDR: 0xa5a5a5a5  LBEG    : 0x4000142d  LEND    : 0x4000143a  LCOUNT  : 0xfffffffc  

Backtrace: 0x400014dc:0x3ffb1840 0x400ddaca:0x3ffb1850 0x400dbbdd:0x3ffb1870 0x400d2a75:0x3ffb1a50 0x400d7193:0x3ffb1a70 0x400d7209:0x3ffb1a90 0x400d7262:0x3ffb1ac0 0x400d73da:0x3ffb1b10 0x400dc716:0x3ffb1b60 0x400d2e29:0x3ffb1b80 0x400df09b:0x3ffb1fb0 0x4008d7c1:0x3ffb1fd0

Would be really nice if you could help

Thx, Paul

To Reproduce
Steps to reproduce the behavior:

  1. Downloading Github-Zip and flashing --> Successful
  2. connect wifi (tested with iPhone, or mac with different browsers) --> Successful
    (with Password for the AP: esp32cam --> not documented in readme)
  3. Reboot
    in the serial monitor you can see that esp32-cam reboots with an error after typing 192.168.4.1 in the browser window --> See error log below

I tried it connected to power only and and also connected to the USB connector for getting error log

Expected behavior
I would expect to be able to enter the config page an run the cam

Desktop (please complete the following information):

  • OS: MacOS
  • Browser testeten with chrome and safari

Smartphone (please complete the following information):

  • Device: iPhone x
  • OS: ios12
  • Browser safari
  • Version latest

Additional context

Serial Monitor Log

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_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:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:8424
ho 0 tail 12 room 4
load:0x40080400,len:5868
entry 0x4008069c
[D][esp32-hal-psram.c:47] psramInit(): PSRAM enabled
[I][main.cpp:33] setup(): Starting ESP32Cam...
[I][main.cpp:40] setup(): instance_name: esp32cam-200048286f24
Config size: 165
Wrong config version.
AP password was not set in configuration
State changing from: 0 to 1
I (1433) wifi: wifi driver task: 3ffb6110, prio:23, stack:3584, core=0
I (2991) wifi: wifi firmware version: 6d404d4
I (2994) wifi: config NVS flash: enabled
I (2998) wifi: config nano formating: disabled
I (3020) wifi: Init dynamic tx buffer num: 32
I (3020) wifi: Init data frame dynamic rx buffer num: 10
I (3020) wifi: Init management frame dynamic rx buffer num: 10
I (3024) wifi: Init static rx buffer size: 1600
I (3028) wifi: Init static rx buffer num: 8
I (3032) wifi: Init dynamic rx buffer num: 10
I (3097) wifi: mode : softAP (24:6f:28:48:00:21)
I (3100) wifi: Init max length of beacon: 752/752
I (3101) wifi: Init max length of beacon: 752/752
[D][WiFiGeneric.cpp:336] _eventCallback(): Event: 0 - WIFI_READY
[D][WiFiGeneric.cpp:336] _eventCallback(): Event: 13 - AP_START
Setting up AP: esp32cam-200048286f24
With default password:
AP IP address: 192.168.4.1
State changed from: 0 to 1
Connection to AP.
I (8865) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (8867) wifi: station: c8:bc:c8:c1:bd:3c join, AID=1, bgn, 20
[D][WiFiGeneric.cpp:336] _eventCallback(): Event: 15 - AP_STACONNECTED
Configuration page requested.
Rendering 'iwcThingName' with value: esp32cam-200048286f24
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400014dc PS : 0x00060230 A0 : 0x800ddacd A1 : 0x3ffb1840
A2 : 0xa5a5a5a5 A3 : 0xa5a5a5a1 A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x800ddab2 A9 : 0x3ffb1820
A10 : 0x3ffd2abc A11 : 0x3f403dab A12 : 0x000000ff A13 : 0x0000ff00
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000018 EXCCAUSE: 0x0000001c
EXCVADDR: 0xa5a5a5a5 LBEG : 0x4000142d LEND : 0x4000143a LCOUNT : 0xfffffffc

Backtrace: 0x400014dc:0x3ffb1840 0x400ddaca:0x3ffb1850 0x400dbbdd:0x3ffb1870 0x400d2a75:0x3ffb1a50 0x400d7193:0x3ffb1a70 0x400d7209:0x3ffb1a90 0x400d7262:0x3ffb1ac0 0x400d73da:0x3ffb1b10 0x400dc716:0x3ffb1b60 0x400d2e29:0x3ffb1b80 0x400df09b:0x3ffb1fb0 0x4008d7c1:0x3ffb1fd0

Rebooting...
ets Jun 8 2016 00:22:57

Failed to get the frame on time

Describe the bug
When clicking "Single Frame" from the web interface the serial console reports "Failed to get the frame on time" and ESP32 crashes.

I have two seemingly identical ESP32CAMs, this code works on one but not the other. I've tried swapping the OV2640 with the working model and have the same results (remains working on the other one).

To Reproduce
Steps to reproduce the behavior:

  1. Flash latest code from the repo to the ESP32CAM.
  2. Click "Single Frame"
  3. ESP32CAM crashes

Expected behavior
Web interface should return a jpg snapshot.

Screenshots
See terminal output below.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Firefox
  • Version 96.0.1

Additional context

``
8:58:33.605 > [I][espcam_webserver.cpp:23] begin(): Starting web server
08:59:35.836 > [I][espcam_webserver.cpp:102] handle_jpg(): handle_jpg
08:59:39.873 > [E][camera.c:1483] esp_camera_fb_get(): Failed to get the frame on time!
08:59:43.878 > [E][camera.c:1483] esp_camera_fb_get(): Failed to get the frame on time!
08:59:43.884 > Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
08:59:43.889 > Core 1 register dump:
08:59:43.892 > PC : 0x400d4e6b PS : 0x00060130 A0 : 0x800d1bbe A1 : 0x3ffb1de0
08:59:43.900 > A2 : 0x00000000 A3 : 0x3ffe5b68 A4 : 0x0000000b A5 : 0x3ffbddc0
08:59:43.910 > A6 : 0x3ffc324c A7 : 0x00000000 A8 : 0x800d4e68 A9 : 0x3ffb1dc0
08:59:43.917 > A10 : 0x3ffc301c A11 : 0x3ffe5b68 A12 : 0x00000060 A13 : 0x00000000
08:59:43.922 > A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000004 EXCCAUSE: 0x0000001c
08:59:43.931 > EXCVADDR: 0x00000000 LBEG : 0x4008e46d LEND : 0x4008e47d LCOUNT : 0xfffffffb
08:59:43.939 >
08:59:43.939 > ELF file SHA256: 0000000000000000
08:59:43.942 >
08:59:43.942 > Backtrace: 0x400d4e6b:0x3ffb1de0 0x400d1bbb:0x3ffb1e00 0x40161fc2:0x3ffb1e60 0x400d5d0a:0x3ffb1e80 0x400d5db9:0x3ffb1ea0 0x400d5e36:0x3ffb1ed0 0x400d5fda:0x3ffb1f20 0x400d2133:0x3ffb1f70 0x400d21e2:0x3ffb1f90 0x400db905:0x3ffb1fb0 0x40091056:0x3ffb1fd0
08:59:43.964 >
08:59:43.964 > Rebooting...
08:59:43.967 > ets Jun 8 2016 00:22:57
08:59:43.970 >
08:59:43.970 > rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
08:59:43.973 > configsip: 0, SPIWP:0xee
08:59:43.976 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
08:59:43.981 > mode:DIO, clock div:1
08:59:43.984 > load:0x3fff0018,len:4
08:59:43.987 > load:0x3fff001c,len:1044
08:59:43.989 > load:0x40078000,len:10124
08:59:43.992 > load:0x40080400,len:5856
08:59:43.992 > entry 0x400806a8
08:59:45.189 > [I][main.cpp:38] setup(): CPU Freq = 240 Mhz
08:59:45.192 > [I][main.cpp:39] setup(): Starting ESP32Cam...
08:59:45.195 > [I][main.cpp:44] setup(): Initialize the camera
08:59:45.743 > [I][main.cpp:49] setup(): Instance_name: esp32cam-omitted
08:59:45.748 > [I][main.cpp:51] setup(): Connecting...
08:59:45.751 > I (1439) wifi:wifi driver task: 3ffbbcd4, prio:23, stack:3584, core=0
08:59:45.774 > I (3042) wifi:wifi firmware version: dc30037
08:59:45.775 > I (3043) wifi:config NVS flash: enabled
08:59:45.778 > I (3043) wifi:config nano formating: disabled
08:59:45.783 > I (3044) wifi:Init data frame dynamic rx buffer num: 32
08:59:45.786 > I (3049) wifi:Init management frame dynamic rx buffer num: 32
08:59:45.792 > I (3054) wifi:Init management short buffer num: 32
08:59:45.797 > I (3059) wifi:Init dynamic tx buffer num: 32
08:59:45.803 > I (3063) wifi:Init static rx buffer size: 1600
08:59:45.805 > I (3067) wifi:Init static rx buffer num: 16
08:59:45.808 > I (3071) wifi:Init dynamic rx buffer num: 32
08:59:45.900 > I (3170) wifi:mode : sta (omitted)
08:59:45.904 > [I][wifi_provisioning.cpp:17] connect(): Connecting 29 seconds left...
08:59:46.905 > [I][wifi_provisioning.cpp:17] connect(): Connecting 28 seconds left...
08:59:47.905 > [I][wifi_provisioning.cpp:17] connect(): Connecting 27 seconds left...
08:59:47.956 > I (5226) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
08:59:47.961 > I (5227) wifi:state: init -> auth (b0)
08:59:48.004 > I (5274) wifi:state: auth -> assoc (0)
08:59:48.023 > I (5293) wifi:state: assoc -> run (10)
08:59:48.087 > I (5357) wifi:connected with omitted, aid = 10, channel 11, BW20, bssid = omitted
08:59:48.096 > I (5358) wifi:security type: 3, phy: bgn, rssi: -63
08:59:48.099 > I (5367) wifi:pm start, type: 1
08:59:48.103 >
08:59:48.146 > I (5416) wifi:AP's beacon interval = 102400 us, DTIM period = 1
08:59:48.905 > [I][wifi_provisioning.cpp:22] connect(): Connection result: 3
08:59:48.908 > [I][main.cpp:66] setup(): Connected! IP address: omitted
08:59:48.913 > [I][main.cpp:68] setup(): Starting servers...
08:59:48.919 > [I][espcam_webserver.cpp:20] begin(): Starting rtsp_server
08:59:48.925 > [I][rtsp_server.cpp:21] begin(): Starting RTSP server
08:59:48.927 > [E][ESPmDNS.cpp:148] addService(): Failed adding service rtsp.tcp.
08:59:48.936 >
08:59:48.936 > [I][espcam_webserver.cpp:23] begin(): Starting web server

Wont start after upload / reset

Hi, i was just trying to upload the fw via pio, that works but after boot i get the following:

23:08:07.983 > rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
23:08:07.983 > configsip: 0, SPIWP:0xee
23:08:07.983 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
23:08:07.983 > mode:DIO, clock div:1
23:08:07.983 > load:0x3fff0018,len:4
23:08:07.983 > load:0x3fff001c,len:1044
23:08:07.983 > load:0x40078000,len:10124
23:08:07.983 > load:0x40080400,len:5856
23:08:07.983 > entry 0x400806a8
23:08:09.162 > �[I][main.cpp:38] setup(): CPU Freq = 240 Mhz
23:08:09.189 > [I][main.cpp:39] setup(): Starting ESP32Cam...
23:08:09.189 > [I][main.cpp:44] setup(): Initialize the camera
23:08:10.512 > [E][camera.c:222] skip_frame(): Timeout waiting for VSYNC
23:08:10.560 > [E][camera.c:1406] esp_camera_init(): Camera init failed with error 0x20003
23:08:10.560 > [E][main.cpp:47] setup(): Initializing the camera failed
23:08:10.560 > [I][main.cpp:49] setup(): Instance_name: esp32cam-a8032a64e56c
23:08:10.560 > [I][main.cpp:51] setup(): Connecting...
23:08:10.560 > Camera probe failed with error 0x20003I (2248) wifi:wifi driver task: 3ffb5eac, prio:23, stack:3584, core=0
23:08:10.560 > I (4668) wifi:wifi firmware version: 9ebfd5b
23:08:10.612 > I (4668) wifi:config NVS flash: enabled
23:08:10.612 > I (4668) wifi:config nano formating: disabled
23:08:10.612 > I (4669) wifi:Init data frame dynamic rx buffer num: 32
23:08:10.612 > I (4674) wifi:Init management frame dynamic rx buffer num: 32
23:08:10.612 > I (4679) wifi:Init management short buffer num: 32
23:08:10.612 > I (4684) wifi:Init dynamic tx buffer num: 32
23:08:10.612 > I (4688) wifi:Init static rx buffer size: 1600
23:08:10.612 > I (4692) wifi:Init static rx buffer num: 16
23:08:10.612 > I (4696) wifi:Init dynamic rx buffer num: 32
Exception in thread rx:

then the serial connection fails

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.