Skip to content

ESP32-P4 OV5640 test pattern activation with V4L2 command (AEGHB-1116) #29

@ddB0515

Description

@ddB0515

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • Included any relevant context or examples.

Issue or Suggestion Description

Hello all 👋
I have question that could be totally wrong but as not so experienced with ESP Camera/Video and I didn't find anywhere how to do it

From example here

I have working display based on GC9503P

I (1584) LCD-mipi: MIPI DSI PHY Powered on
I (1594) LCD-mipi: Install MIPI DSI LCD control IO
I (1594) LCD-mipi: Install MIPI DSI LCD data panel
I (1594) LCD-mipi: esp_lcd_new_panel_gc9503p panel
I (1634) LCD-mipi: esp_lcd_panel_reset panel
I (1654) LCD-mipi: esp_lcd_panel_init panel
I (1774) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (1794) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (1814) ov5647: Detected Camera sensor PID=0x5647
I (1924) app_video: version: 1.0.0
I (1924) app_video: driver:  MIPI-CSI
I (1924) app_video: card:    MIPI-CSI
I (1924) app_video: bus:     esp32p4:MIPI-CSI
I (1934) app_video: width=800 height=640
I (1964) app_video: Video Stream Start
I (1964) main_task: Returned from app_main()

Is it possible to somehow setup test pattern before opening a device in app_video_open?
As I can see most of ioctl is done via V4L2 and maybe could be set via VIDIOC_S_PARM but this is just my wild guess.

Does anyone knows what would be easiest method to make it working?
Or if is not doable like that is possible to use normal ov5647_set_test_pattern and how would be easiest to do it?

Thank in advance

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