Porting a camera sx530hs - page 5 - DryOS Development - CHDK Forum  

Porting a camera sx530hs

  • 288 Replies
  • 77291 Views
Re: Porting a camera sx530hs
« Reply #40 on: 10 / February / 2016, 06:48:18 »
Advertisements
Wish this was still being ported, seems to have stopped. Makes me wanna try xD

*

Offline reyalp

  • ******
  • 11849
Re: Porting a camera sx530hs
« Reply #41 on: 15 / February / 2016, 01:29:02 »
For future reference, or anyone who wants to continue work on this port, here's a patch based on the code from http://chdk.setepontos.com/index.php?topic=12418.msg123489#msg123489 for the current trunk (r4449)

From the thread, it appears there was further development after that, but the code has not been posted.

I was going to check this in, because I have another propset to add for g7x, but I'm reluctant to add a propset.h that is probably incomplete / incorrect and has no one working to finish it.

Like the previous version, the code-gen files didn't match the corresponding generated files. I made some modifications to make it consistent:
- commented out the task_RotaryEncoder hook in taskhook.S, since it was commented out in boot.c
- commented out the exp_drv_task hook, and the corresponding code gen lines. In the last zip, the actual apex2us override was not present, so there is no reason to have any of the exp_drive hook active.

There are still a number of other problems:
CAM_JPEG_* in platform_camera.h are incorrect. I suspect other things are too
The modemap is probably not correct.
the jogdial implementation appears to be incomplete (as noted above, the task isn't hooked, and jogdial_control appears to be incomplete)
there is no indication of what features are verified working

I'm not sure what to do with this. I'm leaning toward checking in the platform changes, but not adding the propset7.h to the main includes. Maybe add it as propset7_wip.h in the platform directory or something.

edit:
I've checked this in. The partial propset file is propset_x.h in the platform directory. There are only a few changes form propset 6, but some of them are at low numbers. This *probably* means all the following values are shifted around, so anyone who wants to continue this port needs to go through, verify as many as possible, and clearly identify any that remain unknown.
« Last Edit: 15 / February / 2016, 15:23:06 by reyalp »
Don't forget what the H stands for.

Re: Porting a camera sx530hs
« Reply #42 on: 17 / February / 2016, 00:06:30 »

edit:
I've checked this in. The partial propset file is propset_x.h in the platform directory. There are only a few changes form propset 6, but some of them are at low numbers. This *probably* means all the following values are shifted around, so anyone who wants to continue this port needs to go through, verify as many as possible, and clearly identify any that remain unknown.

Thanks for checking in to that! Hopefully someone can pick this up! Unfortunately I have no clue how to do any of that! :blink:

*

Offline blackhole

  • *****
  • 660
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #43 on: 15 / March / 2016, 22:50:11 »
Patch for modemap.
CHDK is properly start and camera works seamlessly with SD cards up to 2GB. With a larger SD cards, there is an error after trying to save the data on the card. Without launched CHDK same card work without problems.
The camera seamlessly connects to the PTP clients and can be controlled.Chdkptp client in the menu to select the modes does not show anything, ptpCamGui shows only a few modes in the menu... All modes of the camera are available through = set_capture_mode_canon (xxxxx).
Attached is the upgraded propset_x.h file marked with constants that I was able to check up.


*

Offline reyalp

  • ******
  • 11849
Re: Porting a camera sx530hs
« Reply #44 on: 16 / March / 2016, 03:36:05 »
Patch for modemap.
CHDK is properly start and camera works seamlessly with SD cards up to 2GB. With a larger SD cards, there is an error after trying to save the data on the card. Without launched CHDK same card work without problems.
Have you tried large cards with different brands or speed ratings?
Are you using an external power supply?
Quote
The camera seamlessly connects to the PTP clients and can be controlled.Chdkptp client in the menu to select the modes does not show anything,
ptpCamGui shows only a few modes in the menu... All modes of the camera are available through = set_capture_mode_canon (xxxxx).
Attached is the upgraded propset_x.h file marked with constants that I was able to check up.
Thanks for these. I'll take a closer look tomorrow, but a few comments on the propcases:
Usually if one has moved, then the ones after it has moved too. So if metering mode changed from 157 in propset 6 to 160 in your propset, the ones after it will almost certainly be the old value +3 until the next change. In the same way if ISO_MODE is the same propset 6 and your propset, it's pretty likely the ones with lower numbers are the same too (you should still check as many as you can in between though)

You should be able to check almost all the propcases if you have the patience. I can give advice if you aren't sure how to check a particular one, I just when through this with g7x.

This chdkptp module might be helpful https://chdk.setepontos.com/index.php?topic=12759.0

With this, you can get a snapshot of all the propcases, then change a menu item (like jpeg resolution) and compare.

Alll the CUSTOM_XXX ones are things in the "my colors" menu
ISO_MODE is the ISO value you set in the func menu.
The USER_TV and USER_AV are the manual shutter speed and aperture values. They update immediately when you set them. The other TV and AV values update on half press.
Don't forget what the H stands for.

*

Offline blackhole

  • *****
  • 660
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #45 on: 16 / March / 2016, 04:31:27 »
The camera is all the time on the battery.
 I tried several brands and sizes and speeds of class 4 to class 10. Right after you push the shutter button to switch to rec mode appears error.
 Immediately after switching on the camera in play mode, it is possible to view images and delete images without problems.
It seems that the same problem encountered and jeronymoGustavo.

edit:
Camera says that images are deleted in the play mode, but after the restart still exist on the card. :lol
« Last Edit: 16 / March / 2016, 05:29:17 by blackhole »

*

Offline blackhole

  • *****
  • 660
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #46 on: 16 / March / 2016, 07:53:21 »
Quote
This chdkptp module might be helpful https://chdk.setepontos.com/index.php?topic=12759.0

With this, you can get a snapshot of all the propcases, then change a menu item (like jpeg resolution) and compare.

Thanks for the information, I did not notice before, it would be a big help.
Is proptools.lua uploaded somewhere?

*

Offline msl

  • *****
  • 1255
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
CHDK-DE:  CHDK-DE links


*

Offline blackhole

  • *****
  • 660
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #48 on: 16 / March / 2016, 12:06:31 »
Thanks!

*

Offline blackhole

  • *****
  • 660
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #49 on: 16 / March / 2016, 18:27:10 »
I finally found an SD card that works without problems, Toshiba C08G. :D

 

Related Topics