GetCameraInformationData and AdjLog - General Discussion and Assistance - CHDK Forum
supplierdeeply

GetCameraInformationData and AdjLog

  • 2 Replies
  • 469 Views
*

Online reyalp

  • ******
  • 12217
GetCameraInformationData and AdjLog
« on: 13 / October / 2019, 00:27:17 »
Advertisements
There is a reference to "freefall" in the firmware, which would appear to be output by GetCameraInformationData and seems like it might record something about whether a camera was dropped. I thought it might be interesting to get this on a camera that had a hard fall  but I haven't been able to figure where it goes. It seems like it could be related to "StartLogOut" "OutputLogToFile", AdjLog.txt etc. I was able to get content in AdjLog.txt using 
Code: [Select]
=return call_event_proc('FA.Create')
=return call_event_proc('InitializeAdjustmentSystem')
=return call_event_proc('StartLogOut',2,0x1000,0)
=return call_event_proc('OutputLogToFile')
However, calling GetCameraInformationData and (and GetTotalShootCount, which appears to use similar functions) didn't result in any output.

StartLogOut appears to take 3 arguments: mode, buffer size, and optional filename. Mode appears to range from -3 to +3, with +/-2 being connected to the AjdLog.txt, and the others possibly not.

There are also functions ActivateAdjLog and InactivateAdjLog, which appear to check a field in the adjlog related struct that I don't see being set anywhere.
Don't forget what the H stands for.

Re: GetCameraInformationData and AdjLog
« Reply #1 on: 22 / October / 2019, 09:48:03 »
There is a reference to "freefall" in the firmware, which would appear to be output by GetCameraInformationData and seems like it might record something about whether a camera was dropped. I thought it might be interesting to get this
However, calling GetCameraInformationData and (and GetTotalShootCount, which appears to use similar functions) didn't result in any output.

I've done something similar here in Reply #304
.https://chdk.setepontos.com/index.php?topic=12542.300
CameraInfo.xml says that FreeFall TotalCount = 0.


Not sure if it was powered off  by the time it hit.

I was sure, my S110 was off when it hit…
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Online reyalp

  • ******
  • 12217
Re: GetCameraInformationData and AdjLog
« Reply #2 on: 22 / October / 2019, 15:30:11 »
Thanks! I remembered there was discussion but couldn't find it. I'll check in RAM.
Don't forget what the H stands for.

 

Related Topics