使用的开发板:esp32-s2-kaluga-1
运行的示例程序:usb_camera_lcd_display
摄像头无法正常工作,屏幕无法显示摄像头图像。(屏幕已验证可以正常显示运行)
控制台信息输出如下:
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x17d8
load:0x4004c000,len:0xcec
load:0x40050000,len:0x2d88
entry 0x4004c230
I (21) boot: ESP-IDF v4.4-dev-2533-g83956ebba-dirty 2nd stage bootloader
I (21) boot: compile time 05:59:40
I (22) boot: chip revision: 0
I (26) qio_mode: Enabling default flash chip QIO
I (31) boot.esp32s2: SPI Speed : 80MHz
I (36) boot.esp32s2: SPI Mode : QIO
I (41) boot.esp32s2: SPI Flash Size : 4MB
I (45) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label Usage Type ST Offset Length
I (62) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (77) boot: 2 factory factory app 00 00 00010000 00177000
I (84) boot: 3 storage Unknown data 01 82 00187000 001f4000
I (92) boot: End of partition table
I (96) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=0ec20h ( 60448) map
I (115) esp_image: segment 1: paddr=0001ec48 vaddr=3ffbf360 size=013d0h ( 5072) load
I (116) esp_image: segment 2: paddr=00020020 vaddr=40080020 size=3dcf0h (253168) map
I (164) esp_image: segment 3: paddr=0005dd18 vaddr=3ffc0730 size=00b64h ( 2916) load
I (165) esp_image: segment 4: paddr=0005e884 vaddr=40022000 size=0d354h ( 54100) load
I (182) esp_image: segment 5: paddr=0006bbe0 vaddr=50000000 size=00010h ( 16) load
I (189) boot: Loaded app from partition at offset 0x10000
I (189) boot: Disabling RNG early entropy source...
I (204) ca<��f<� �3?��truction cache : size 8KB, 4Ways, cache line size 32Byte
I (204) cpu_start: Pro cpu up.
I (215) cpu_start: Pro cpu start user code
I (215) cpu_start: cpu freq: 240000000
I (215) cpu_start: Application information:
I (220) cpu_start: Project name: uvc_mjpeg_lcd
I (226) cpu_start: App version: 1
I (230) cpu_start: Compile time: Sep 10 2021 11:00:09
I (236) cpu_start: ELF file SHA256: 33a8f8c09e6d4057...
I (242) cpu_start: ESP-IDF: v4.4-dev-2533-g83956ebba-dirty
I (249) heap_init: Initializing. RAM available for dynamic allocation:
I (256) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM
I (263) heap_init: At 3FFC1EE0 len 0003A120 (232 KiB): DRAM
I (269) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (275) spi_flash: detected chip: generic
I (280) spi_flash: flash io: qio
I (284) cpu_start: Starting scheduler on PRO CPU.
I (289) spi_bus: SPI2 bus created
I (289) spi_bus: SPI2 bus device added, CS=11 Mode=0 Speed=40000000
I (499) lcd st7789: MADCTL=60
I (499) uvc_demo: Screen name:ST7789 | width:320 | height:240
I (659) UVC_STREAM: UVC Streaming Config Succeed
I (709) UVC_STREAM: UVC Streaming Starting
I (989) UVC_STREAM: line 352 HCD_PORT_EVENT_CONNECTION
I (989) UVC_STREAM: Resetting Port
I (1049) UVC_STREAM: Port=0x3ffe7f78 init succeed
I (1049) UVC_STREAM: Port speed = 1
I (1049) UVC_STREAM: Set Device Addr = 1
I (1049) UVC_STREAM: Set Device Addr Done
I (1049) UVC_STREAM: Set Device Configuration = 1
I (1059) UVC_STREAM: Set Device Configuration Done
I (1059) UVC_STREAM: SET_CUR Probe
I (1069) UVC_STREAM: SET_CUR Probe Done
I (1069) UVC_STREAM: GET_CUR Probe
bmHint: 0001
bFormatIndex: 2
bFrameIndex: 3
dwFrameInterval: 666666
wKeyFrameRate: 0
wPFrameRate: 0
wCompQuality: 0
wCompWindowSize: 0
wDelay: 0
dwMaxVideoFrameSize: 614400
dwMaxPayloadTransferSize: 944
dwClockFrequency: 0
bmFramingInfo: 0
bPreferredVersion: 0
bMinVersion: 0
bMaxVersion: 0
bInterfaceNumber: 0
I (1099) UVC_STREAM: GET_CUR Probe Done, actual_num_bytes:26
I (1109) UVC_STREAM: SET_CUR COMMIT
I (1119) UVC_STREAM: SET_CUR COMMIT Done
I (1119) UVC_STREAM: Set Device Interface = 1, Alt = 3
I (1129) UVC_STREAM: Set Device Interface Done
I (1129) UVC_STREAM: Sample processing task started
I (1189) UVC_STREAM: Camera Start Streaming
USB摄像头例程无法正常运行
Moderator: ESP_Bob
Re: USB摄像头例程无法正常运行
1. 请将您使用的摄像头(通过一个 USB 隔离器降到 USB Fullspeed 模式)插在 linux 电脑上,lsusb -v 查看一下摄像头的配置信息
2. 建议在 callback 中开启 log,看是否有图像帧收到
2. 建议在 callback 中开启 log,看是否有图像帧收到
Who is online
Users browsing this forum: No registered users and 36 guests