ixus175_elph180_100c porting attempt - page 15 - DryOS Development - CHDK Forum

ixus175_elph180_100c porting attempt

  • 201 Replies
  • 78935 Views
*

Offline axman

  • ***
  • 145
Re: ixus175_elph180_100c porting attempt
« Reply #140 on: 29 / June / 2017, 17:31:38 »
Advertisements
Download @blackhole's most recent build and try again, as if I got the builds mixed up.

hooktest fails, but takes (5) images while failing.  Log attached.

hooktest is very slow between images compared to ixus160 or sx530hs;
LCD goes black for seconds, then Busy shows, then test continues, etc.

Maybe you can see the seconds consumed between shots in the log timestamps?

I do not have a build to try.  I am full-stop with hacking on this until I have achieved some C programming skill.  No point in wasting everyone's time.  Working on ^^ in background, I am slow. 

But I will test stuff - builds or source, just let me know.

*

Offline blackhole

  • *****
  • 841
  • A590IS 101b
    • Planetary astrophotography
Re: ixus175_elph180_100c porting attempt
« Reply #141 on: 29 / June / 2017, 19:22:18 »
@axman
I sent you a link if you have the time and the will to test.

Re: ixus175_elph180_100c porting attempt
« Reply #142 on: 29 / June / 2017, 21:50:08 »
My English language skill is too low to explanation in my head. sorry if it make misunderstood in any way.

I tested on ixus175 with zip file from blackhole. Tested by my simply script shoot() function. It's result in ONLY ONE shot (working well). Another test is darkframe subtraction it's result in Explosure 10sec->shutter sound->save picture, no busy, not waiting.

setmod.lua is passed.

Hooktest is result 5 or 6 failed. On last my own porting it result not failed some time and 1 or 2 failed sometime.

Thank you.

*

Offline reyalp

  • ******
  • 13393
Re: ixus175_elph180_100c porting attempt
« Reply #143 on: 30 / June / 2017, 00:37:08 »
My English language skill is too low to explanation in my head. sorry if it make misunderstood in any way.
No problem, it's clear now :D
Quote
I tested on ixus175 with zip file from blackhole. Tested by my simply script shoot() function. It's result in ONLY ONE shot (working well). Another test is darkframe subtraction it's result in Explosure 10sec->shutter sound->save picture, no busy, not waiting.

setmod.lua is passed.

Hooktest is result 5 or 6 failed. On last my own porting it result not failed some time and 1 or 2 failed sometime.
That makes sense. shoot() is fixed, hooktest has same problems axman reported.

I will try to think about what the hooktest log means.
Don't forget what the H stands for.


*

Offline reyalp

  • ******
  • 13393
Re: ixus175_elph180_100c porting attempt
« Reply #144 on: 30 / June / 2017, 01:20:52 »
hooktest is very slow between images compared to ixus160 or sx530hs;
LCD goes black for seconds, then Busy shows, then test continues, etc.
This is expected when hooks time out. Timeout basically means the hook wasn't reached in a reasonable amount of time, which usually means it wasn't called at all.

It's odd that they sometimes seem to be hit in these logs though.

Another oddity is:
Quote
0031730: FAIL: hook_raw count 4 expect 3
Which suggest the raw hook was called once more than expected.

It's possible that one failure is somehow triggering failures in other parts of the test.

Note hook_shoot corresponds to wait_until_remote_button_is_released
Don't forget what the H stands for.

*

Offline axman

  • ***
  • 145
Re: ixus175_elph180_100c porting attempt
« Reply #145 on: 30 / June / 2017, 01:21:42 »
@axman
I sent you a link if you have the time and the will to test.

Thanks for the test builds.  Tested build1 so far.  Summary - all good.  hooktest good.
@tsamma, @blackhole, @reyalp, thanks!!. 

I would like to see how it looks in correct form some day..  But still, to test build2.

Details of build1 tests below.

quick shoot, 1x image, good.
half-press then full-press, 1x image, good.

test 'ShortExp' = 10s, DarkFrameSubtraction = Off
  1x image, shutter open 10s, afterwards 'Busy' is shown very briefly.
  exifprobe;    ExposureTime = 10 sec, no crash; chdk osd works well; switch PLAY, REC, off.

test ShortExp ^^ 5x in succession.  All good.

repeat above 2 tests with DarkFrameSubtraction On, all good.

use CHDK menu, RAW -> save raw
  tried destination withJPEG, A/RAW, A/DCIM
  capture with normal Shutter press; JPG are saved.
  no error; single shutter press = 1x image
  but No DNG's are saved.  doing it wrong?  chdk menu hotkey instead?

hooktest - ran twice, continuous mode Enable & Disable, all PASS, both runs.

chdkptp 'shoot' w/RAW -> DNG (destination: A/DCIM) turned on in chdk menu

  1x      CRW_NNNN.DNG           is saved to 102___06/
    view with shotwell; Top half image crazy pixels, bottom half is good img.
    exifprobe; says it is     TIFF:II, details available.
  1x  JPG also saved; bottom half stripe crazy pixels, otherwise good img.

chdkptp 'remoteshoot' w/RAW -> DNG (A/DCIM) turned on
con 1> rs . -dng -shots=1   // 1x JPG save to SD card

chdkptp shoot & remoteshoot w/RAW Off
con 1> shoot        // 1x jpg to sd card, good
con 4> rs . -dng -shots=1    // 1x JPG save to sd card

If something should be / want to be tested that I did not test, pls let me know.

*

Offline blackhole

  • *****
  • 841
  • A590IS 101b
    • Planetary astrophotography
Re: ixus175_elph180_100c porting attempt
« Reply #146 on: 30 / June / 2017, 04:59:43 »
Quote
Another oddity is:
Quote
0031730: FAIL: hook_raw count 4 expect 3
Which suggest the raw hook was called once more than expected.

It's possible that one failure is somehow triggering failures in other parts of the test.

Note hook_shoot corresponds to wait_until_remote_button_is_released
I found it, one raw hook left uncommented, from previous test. My mistake,sorry.
Quote
Thanks for the test builds.  Tested build1 so far.  Summary - all good.  hooktest good.
@tsamma, @blackhole, @reyalp, thanks!!. 
Thank you for the report.
Quote
I would like to see how it looks in correct form some day..  But still, to test build2.
If I understand you well, build2 has not been tested yet. I would like to know if there are any differences.
Used capt_seq.c file is attached.
Quote
chdkptp 'remoteshoot' w/RAW -> DNG (A/DCIM) turned on
con 1> rs . -dng -shots=1   // 1x JPG save to SD card

chdkptp shoot & remoteshoot w/RAW Off
con 1> shoot        // 1x jpg to sd card, good
con 4> rs . -dng -shots=1    // 1x JPG save to sd card
I don't have filewrite hook in my source.
Quote
If something should be / want to be tested that I did not test, pls let me know.
I'll send you a test build later, for the remaining two options.

@tsamma
If you are interested in testing, I can send you a link.
Do not worry about language,nor my English is not good as well, but who cares about it. :D

*

Offline axman

  • ***
  • 145
Re: ixus175_elph180_100c porting attempt
« Reply #147 on: 30 / June / 2017, 13:02:34 »
If I understand you well, build2 has not been tested yet. I would like to know if there are any differences.
Used capt_seq.c file is attached.
No differences in test results that I can see.  Maybe I do not test the code path you want?
 
Anyway, build2 is also good.  Hooktest is good for Continuous Enabled and also Disabled.
Details below.
Quote
chdkptp 'remoteshoot' w/RAW -> DNG (A/DCIM) turned on
con 1> rs . -dng -shots=1   // 1x JPG save to SD card
Quote
I don't have filewrite hook in my source.
I did not think so, but I tested it anyway.
The test results give the behavior I mentioned.
Quote
If something should be / want to be tested that I did not test, pls let me know.
Quote
I'll send you a test build later, for the remaining two options.

@tsamma
If you are interested in testing, I can send you a link.
Do not worry about language,nor my English is not good as well, but who cares about it.
@tsamma & @blackhole - your english is good enough.  :-)   Thank you for helping with this.

build2 test results:

quick shoot, 1x image, good.
half-press then full-press, 1x image, good.

test 'ShortExp' = 00:09.99999, DarkFrameSubtraction = Off
  5x in succession; 1x image for each shutter press;
  shutter open 10s, then 'Busy' shown briefly, return to normal shoot mode.
  no crash; chdk osd works well; switch PLAY, switch REC, off.

test 'ShortExp' = 00:09.99999, DarkFrameSubtraction = On
  3x in succession; 1x image for each shutter press;
  shutter open 10s, afterwards 'Busy' shown 10s, return to normal shoot mode.
  no crash; chdk osd works well; switch PLAY, switch REC, off.

use CHDK menu, RAW -> save raw
  destination A/DCIM, capture with normal Shutter press; JPG is saved.
  no error; single shutter press = 1x image, but No DNG's are saved.

hooktest (Continuous mode On, then Continuous mode off)
  ALL PASS

chdkptp shoot w/RAW On

  con 1> shoot -dng=1

  CRW_NNNN.DNG is saved to 102___06/
  shotwell viewer; Top half image crazy pixels, bottom half is good img.
  JPG also saved; image top half is good, bottom half is stripe crazy pixels.

chdkptp shoot & remoteshoot w/RAW Off

  ___> connect
  connected: Canon PowerShot ELPH 180, max packet size 512
  con> rec
  con 1> shoot                               // 1x JPG is saved to sd card
  con 2> play
  con 3> rec
  con 4> rs '/home/ajm/Pictures' -dng -shots=1  // 1x JPG is saved to sd card
  con 7> play
  con 8> quit


*

Offline blackhole

  • *****
  • 841
  • A590IS 101b
    • Planetary astrophotography
Re: ixus175_elph180_100c porting attempt
« Reply #148 on: 30 / June / 2017, 15:12:08 »
Quote
No differences in test results that I can see.  Maybe I do not test the code path you want?
 
Anyway, build2 is also good.  Hooktest is good for Continuous Enabled and also Disabled.
OK thanks.
I'll send you a new link for testing.
Quote
use CHDK menu, RAW -> save raw
  destination A/DCIM, capture with normal Shutter press; JPG is saved.
  no error; single shutter press = 1x image, but No DNG's are saved.
For DNG you must have RAW and DNG enabled at the same time in the chdk menu.
DNG file is visible only if you use chdkptp or card reader.


*

Offline axman

  • ***
  • 145
Re: ixus175_elph180_100c porting attempt
« Reply #149 on: 30 / June / 2017, 19:26:30 »
@blackhole,

About the new link to test builds, ok.  I will test and report, it might take one day.

About DNG, yes.  Your example is how I have CHDK menu for RAW selected.

With chdk menu -> DNG selected as shown in the attached pictures;

Using shutter press to capture image.
I see small "DNG:NNN" on right side of LCD gui display.
1x JPG is saved to sd card with shutter press.  No DNG is saved.
Yes, I checked it with sd card reader in host-PC.

With chdk menu settings for RAW = save,
  if I use           chdkptp 'shoot -dng=1' then,

  1x DNG is saved to <separate directory> on sd card
  And
  a JPG is saved to sd card.

I think this matches the setting in chdk menu for where to save DNG - 'A/DCIM.'

These DNG and JPG images have faults, i guess bad pixel map or some other effect.

It's the same behavior in build1 and build2.

Going now to test, thank you for the builds.

 

Related Topics