Skip to content

sc031gs: frame size err #583

Closed
Closed
@huangdiajd

Description

@huangdiajd

Using the SC031GS camera, the frame_size was found to be wrong. How large frame_size should be set for SC031GS. I see that the error message should be set to 200200, but I set 174144, which is not working. Of course, I also tried to change 174144 to 200200, but the same error will appear. How should I change the appropriate frame_size

I (2715) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (2725) s3 ll_cam: DMA Channel=4
I (2735) cam_hal: cam init ok
I (2735) sccb: pin_sda 21 pin_scl 14
I (2745) sccb: sccb_i2c_port=1
I (2755) camera: Detected camera at address=0x30
I (2755) ov2640: Mismatch PID=0x0
I (2755) camera: Detected SC031GS camera
I (2755) camera: Camera PID=0x31 VER=0x00 MIDL=0x00 MIDH=0x00
I (2845) s3 ll_cam: node_size: 2500, nodes_per_line: 1, lines_per_node: 25
I (2845) s3 ll_cam: dma_half_buffer_min: 2500, dma_half_buffer: 10000, lines_per_half_buffer: 100, dma_buffer_size: 10000
I (2855) cam_hal: buffer_size: 10000, half_buffer_size: 10000, node_buffer_size: 2500, node_cnt: 4, total_cnt: 1
I (2865) cam_hal: Allocating 10016 Byte frame buffer in PSRAM
I (2875) cam_hal: Frame[0]: Offset: 16, Addr: 0x3C0D0A50
I (2875) cam_hal: Allocating 10016 Byte frame buffer in PSRAM
I (2885) cam_hal: Frame[1]: Offset: 16, Addr: 0x3C0D3190
I (2885) cam_hal: cam config ok
E (2895) sc031gs: Only support 200*200 for now, contact us if you want to use other resolutions
E (2905) sc031gs: frame size err
E (2905) camera: Failed to set frame size
E (2915) ESP32-CAM text: Camera Init Failed

After changing it to 200*200, I connected to the WiFi, but I could not connect to the website 192.168.4.1, which would cause an error

app task running...
app task running...
app task running...
app task running...
app task running...
I (19845) wifi:idx:3 (ifx:1, 32:50:13:6a:f7:fd), tid:6, ssn:19, winSize:64
app task running...
W (19935) cam_hal: Failed to get the frame on time!
E (19935) camera http: Camera capture failed
W (19935) httpd_uri: httpd_uri: uri handler execution failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions