Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposure no more work? #158

Open
TorAllex opened this issue Mar 3, 2024 · 5 comments
Open

Exposure no more work? #158

TorAllex opened this issue Mar 3, 2024 · 5 comments

Comments

@TorAllex
Copy link

TorAllex commented Mar 3, 2024

Required information

  • Camera board id: hi3516cv100, hi3516ev200
  • OpenIPC version: 2.4.03.01-lite
  • Commit:
  • Branch:
  • Tag: exposure
  • installation method: by manual https://github.com/OpenIPC/openipc-2.1/wiki/install_hisi
  • modified majestic.yaml: yes
  • cat /dev/kmsg: cat: read error: Invalid argument
  • killall majestic
    ulimit -c unlimited
    echo /tmp/%e.%p.%s.%t.core > /proc/sys/kernel/core_pattern
    majestic
    Core dump file from /tmp/ , e.g. /tmp/majestic.806.11.1619707881.core
    -sh: /tmp/majestic.806.11.1619707881.core: not found

Issue description

If I set .isp.exposure value 300000 (just for example), I have error:
01:31:15 <majestic> [config] parse_u64@368 Can't parse param 'exposure' value '300000'. Value '300000' is not in a range [1; 65535].

If I set exposure value 1–65535, another error occur:

[Func]:HI_MPI_ISP_SetExposureAttr [Line]:267 [Info]:Manual AGain should not be less than 0x400!
01:23:27  <majestic> [hal] HiSi_HAL_SetAeTime@852        Cannot set ISP expose attr
01:23:27  <majestic> [hal] HiSi_HAL_SetAeTime@852        ERR_ISP_ILLEGAL_PARAM: The input parameter is invalid

Expectations

Give me a way for exposure control, please.

Steps to reproduce

  1. cli -s .isp.exposure [some_value]
  2. killall majestic; sleep 3; majestic
  3. logread
@skilurius
Copy link
Collaborator

Please try the newest version.

@TorAllex
Copy link
Author

TorAllex commented Apr 3, 2024

Please try the newest version.

Ok, now I can set exposure. But can't see if it really any affect for picture.
More, i've tried varios values for exposure, ispGain, dGain, aGain - all without any results.

@widgetii widgetii reopened this Apr 3, 2024
@skilurius
Copy link
Collaborator

These settings have been adjusted on the current build, following options can change the night picture:

cli -s .isp.drc 400
cli -s .isp.slowShutter high

Additional options for finer control are:

cli -s .isp.exposure 100000
cli -s .isp.aGain 16384
cli -s .isp.dGain 2048
cli -s .isp.ispGain 8192

@TorAllex
Copy link
Author

These settings have been adjusted on the current build, following options can change the night picture:

cli -s .isp.drc 400
cli -s .isp.slowShutter high

Additional options for finer control are:

cli -s .isp.exposure 100000
cli -s .isp.aGain 16384
cli -s .isp.dGain 2048
cli -s .isp.ispGain 8192
Invalid u32StrengthTarget Parameter Input!
majestic> [     hal] HiSi_HAL_SetDRCStrength@971   HI_MPI_ISP_SetDRCAttr
majestic> [     hal] HiSi_HAL_SetDRCStrength@971   ERR_ISP_ILLEGAL_PARAM: The input parameter is invalid

@moosehadley
Copy link

These settings appear to have no effect on the Ingenic T20 with a jxf22 sensor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants