geeksville / TenDollarWebcam

A small example app for ESP32 + Micro-RTSP
MIT License
389 stars 59 forks source link

no image #2

Open rodri16 opened 5 years ago

rodri16 commented 5 years ago

Hi Kevin, I've been trying to make ESP32-CAM ex1 work with your code, after installing platformIO and flashing ESP32 as specified in the repository (had to add a jumper between pin0 and ground) I have the board connected to my WiFi. When trying to see the camera using browser or rtsp nothing happens. I ping to the IP address and it is alive. This is the output from PlatformIO. Any idea why?

PS C:\Users\Rodri-OGS\Documents\PlatformIO\Projects\TenDollarWebcam-master> pio run -t upload
Processing m5stack-core-esp32 (platform: espressif32@>=1.6.0; board: m5stack-core-esp32; framework: arduino)

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-core-esp32.html
PLATFORM: Espressif 32 > M5Stack Core ESP32
HARDWARE: ESP32 240MHz 320KB RAM (4MB Flash)
DEBUG: CURRENT(esp-prog) EXTERNAL(esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
Converting ESP32-devcam.ino
C:/Users/Rodri-OGS/Documents/PlatformIO/Projects/TenDollarWebcam-master/src/ESP32-devcam.ino:53:0: warning: "I2C_SDA" redefined
{
^
C:/Users/Rodri-OGS/Documents/PlatformIO/Projects/TenDollarWebcam-master/src/ESP32-devcam.ino:47:0: note: this is the location of the previous definition
#else
^
C:/Users/Rodri-OGS/Documents/PlatformIO/Projects/TenDollarWebcam-master/src/ESP32-devcam.ino:55:0: warning: "I2C_SCL" redefined
String response = "HTTP/1.1 200 OK\r\n";
^
C:/Users/Rodri-OGS/Documents/PlatformIO/Projects/TenDollarWebcam-master/src/ESP32-devcam.ino:49:0: note: this is the location of the previous definition
#endif
^
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 27 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Micro-RTSP> 0.1.4
|   |-- <WiFi> 1.0
|-- <WebServer> 1.0
|   |-- <WiFi> 1.0
|   |-- <FS> 1.0
|-- <WiFi> 1.0
Compiling .pioenvs\m5stack-core-esp32\src\ESP32-devcam.ino.cpp.o
Linking .pioenvs\m5stack-core-esp32\firmware.elf
Retrieving maximum program size .pioenvs\m5stack-core-esp32\firmware.elf
Checking size .pioenvs\m5stack-core-esp32\firmware.elf
Building .pioenvs\m5stack-core-esp32\firmware.bin
Memory Usage -> http://bit.ly/pio-memory-usage
DATA:    [==        ]  21.0% (used 68916 bytes from 327680 bytes)
PROGRAM: [======    ]  61.6% (used 807810 bytes from 1310720 bytes)
esptool.py v2.6
Configuring upload protocol...
AVAILABLE: esp-prog, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM17
Uploading .pioenvs\m5stack-core-esp32\firmware.bin
esptool.py v2.6
Serial port COM17
Connecting........_____....._____....._____....._____....._____....._
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:0a:c4:29:5e:0c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 16176 bytes to 10658...
Wrote 16176 bytes (10658 compressed) at 0x00001000 in 0.1 seconds (effective 1011.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 1638.4 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 4096.0 kbit/s)...
Hash of data verified.
Compressed 807920 bytes to 450859...
Wrote 807920 bytes (450859 compressed) at 0x00010000 in 6.7 seconds (effective 971.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
bbbenji commented 5 years ago

Experiencing the same issue with the same ESP32 and camera (OV2640).

Here is the serial output

ets Jun  8 2016 00:22:57

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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:9280
load:0x40080400,len:5860
entry 0x40080698
⸮[E][camera.c:1085] esp_camera_init(): Camera probe failed with error 0x20001
...WiFi connected

192.168.1.211

EDIT: Looks related to https://github.com/geeksville/Micro-RTSP/issues/4

bbbenji commented 5 years ago

@rodri16 Works for me since commit: https://github.com/geeksville/Micro-RTSP/commit/53284101a2442a954695ef0a27e00e45d2d7a9ce

hexaguin commented 5 years ago

Same issue here, using an ESP32-CAM and the webpage never loads. No issues are reported over serial, and I am using USEBOARD_AITHINKER. RTSP also does not respond.