CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD - page 65 - Creative Uses of CHDK - CHDK Forum

CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD

  • 704 Replies
  • 191756 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #640 on: 14 / September / 2013, 11:53:14 »
Advertisements
rmem is a chdkptp command (see the help for details)

*

Offline SticK

  • *****
  • 779
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #641 on: 14 / September / 2013, 12:21:00 »
I tried the rmem when we were looking for vignetting and that works so syntax is OK.  For the peek return value the interpreter gives sprintf error, so it thought it can only handle HEX numbers.  I tried 0x198580, it complains.  HEX or DEC, seems the number returned by peek is too big.  So that was the problem.
« Last Edit: 14 / September / 2013, 12:25:38 by SticK »

*

Offline srsa_4c

  • ******
  • 4451
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #642 on: 14 / September / 2013, 12:32:12 »
Works for me.
Code: [Select]
> rmem 1672576 1024
0x00198580 1024
  198580: 00 00 00 00 00 e8 03 00 00 00 00 00 00 00 00 00 | ................
  198590: 00 00 00 00 00 04 00 00 00 01 00 00 00 00 00 00 | ................
Code: [Select]
> rmem 0x198580 1024
0x00198580 1024
  198580: 00 00 00 00 00 e8 03 00 00 00 00 00 00 00 00 00 | ................
  198590: 00 00 00 00 00 04 00 00 00 01 00 00 00 00 00 00 | ................
Try downloading a new build: https://www.assembla.com/spaces/chdkptp/documents

0x198580 can't be too big for a RAM address.

*

Offline SticK

  • *****
  • 779
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #643 on: 14 / September / 2013, 12:54:58 »
Works for me.
Ah! ... it's the 1024, in REC mode.   I started trying this in the REC mode and got stymied.  Yes, in PLAY I get the full dump w/o error at 1024 like you demoed.  But in REC I tried 512, that worked, but then then next 512 didn't.  But the next 256 worked (ie 512+256).  A limiting value somewhere in REC? 

Quote
Try downloading a new build.
Thanks for the link, but I prefer not to venture into the updating quagmire for now .. but will get around to it on the 100c much later.

Please investigate REC and let me know.  I have to step out for several hours

*

Offline reyalp

  • ******
  • 14126
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #644 on: 14 / September / 2013, 15:09:39 »
I haven't yet looked into your solution, but before I do, this fix is external to CHDK.  Hence will the EXIF and file time stamps agree, or is that standardized and unaffected?  In other words, if I look at File Explorer time stamp, and the RAWTherapee time stamp, will they agree, or is there something I am misunderstanding?
The change only affect the filesystem timestamp on the downloaded file. It should now match what appears on the camera. Anything in the exif is is done entirely on the camera and will not be affected.
Don't forget what the H stands for.

*

Offline SticK

  • *****
  • 779
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #645 on: 14 / September / 2013, 15:53:52 »
PALETTE DUMPS 1 of 2  S90_100c (GOOD)

@srsa_4c

I dropped by the lab to send you the data.  The REC 1024 fail also occurs on this cam so I've truncated REC dumps to 768 bytes.  I hope this helps for now.  Please let me know if you need more // will be back later.

*

Offline SticK

  • *****
  • 779
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #646 on: 14 / September / 2013, 15:55:01 »
PALETTE DUMPS 2 of 2  S90_101a (BAD)

*

Offline srsa_4c

  • ******
  • 4451
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #647 on: 14 / September / 2013, 16:41:21 »
Ah! ... it's the 1024, in REC mode.   I started trying this in the REC mode and got stymied.  Yes, in PLAY I get the full dump w/o error at 1024 like you demoed.  But in REC I tried 512, that worked, but then then next 512 didn't.  But the next 256 worked (ie 512+256).  A limiting value somewhere in REC?
I see no limit here. What does it look like when it "doesn't work"? 

Quote
Quote
Try downloading a new build.
Thanks for the link, but I prefer not to venture into the updating quagmire for now .. but will get around to it on the 100c much later.
You don't need to "update". Just extract the archive into a directory then start the executable. IMHO it doesn't touch the registry.

Thx for the files. Were the Canon menus open when you dumped the palette? If so, was the play menu corrupted on 101a? The thing is, your dumps are identical in play and rec mode. If something's still corrupted, that could be the temporary buffer used by CHDK's liveview code.

Next try (when you have time): make quick dumps in chdkptp: live tab -> debug tab -> quick dump. Note that this will record both the bitmap overlay and the viewfinder stream, so make sure the viewfinder doesn't show material you don't want to publish. For best results (good compression ratio) erase all images from the camera - that will make the viewfinder solid black.

*

Offline reyalp

  • ******
  • 14126
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #648 on: 14 / September / 2013, 17:24:34 »
Quote
Thanks for the link, but I prefer not to venture into the updating quagmire for now .. but will get around to it on the 100c much later.
You don't need to "update". Just extract the archive into a directory then start the executable. IMHO it doesn't touch the registry.
This is correct. chdkptp is completely standalone, you can can have as many copies in different directories as you want. If you have CHDKPTP_HOME or HOME set, it will read startup files (_chdkptprc, _chdkptpguirc) from there, but it never writes them.

I too don't really understand how rmem can fail. It doesn't do any checking, if you ask for a value outside of valid memory you will get an exception and shutdown on the camera, but I do don't really see any other ways would fail.

peek only fails if you give it an improperly aligned address, or a size that isn't 1,2 or 4
Don't forget what the H stands for.

*

Offline SticK

  • *****
  • 779
Re: CHDKPTP: S90 Primary Focal Plane Configuration - hacking out the CCD
« Reply #649 on: 14 / September / 2013, 20:17:06 »
What does it look like when it "doesn't work"?
Figure.  On yours REC mode is fine ??

Quote
Were the Canon menus open when you dumped the palette?
Well that is indeed embarrassing.  I'll blame on the fact that I had to leave in a rush, but really that's no excuse!  I'm issuing new dumps before getting around to your next suggestion.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal