command(rf'./chdkptp.sh -c -e"luar return set_zoom({int(zoom * MAX_ZOOM + 0.5)})")
ASSERT!! FocusLensController.c Line 203Occured Time 2021:01:13 00:14:43TCB: 00272E38Task: tCaptSeqTaSP: 0x00272CE4StackDump:0x000000000x313230320x3A31303A0x302033310x34313A300x0033343A0xFFEA45280xFFEB2E000x000000010x00272D500x000010260x000000000x000000000x000000000xFFC03D1C0x000000010xFFEA47B40xFFC11E180x002E55BC0x000010260x000000000x00272D500x0000A4680x000000000x000000000xFFEB32640x00272D500x00000C800x000000000x000010260x0000A45C0x00007FFFShootConDump:01 02 ff ff ff ff ff ff ff ff CameraConDump:08 0b 02 0e 0a 01 ff ff ff ff 00008560: DSIC:0xc,000008560: Window:EffectiveLockPhysicalScreen00008560: Window:IneffectiveLockPhysicalScreen00008570: LogicalEvent:0x3135:adr:0x0,Para:000008570: _ManagePTMProperty00008570: DSID:0x2000008580: DSID:0x2a00008580: DSID:0x2b00008580: DSID:0x2500008580: DSIC:0xb4,000008580: DSIC:0xb1,000008590: DSID:0x2000008590: DSID:0x2a00008590: DSID:0x2b00008590: SS:CaptureModeChange00008590: SS:EvfMode = 000008590: SS:CaptMode = 0x800400008600: SS:CaptModeCustom = 0x800400008600: SS:CompleteCaptureModeChange00008600: _DecideCaptureMode00008600: _StartStill00008610: SS:UsingRaw[0]00008610: DSID:0x2700008610: DSID:0x2400008610: DSID:0x2500008620: DSID:0x8600008620: DSID:0xa500008620: DSIC:0xb4,000008620: DSIC:0xb1,000008620: DSID:0xa400008620: DSID:0x2400008620: DSID:0x2500008630: DSID:0x2400008630: DSID:0x2500008640: DSID:0x2500008640: DSIC:0xb4,000008640: DSIC:0xb1,000008640: DSIC:0xb2,000008640: DSIC:0x41,600008690: Window:IneffectiveLockPhysicalScreen00008690: _MuteOffStitch00008690: TerminateDeliverToZoomController00008690: DSID:0x2000008700: DSID:0x2a00008700: DSID:0x2b00008700: OPTICAL_ZOOM_MIN_POS00008700: UnpressZoomLever00008700: SS:StartFinder00008700: SS:EvfMode = 000008700: SS:StartFinder00008750: DispSwCon_TurnOnDisplayDevice00008750: DispSwCon_TurnOnDisplayDevice00008750: LogicalEvent:0x313d:adr:0x0,Para:000008760: _EntryStartRecMode00008760: CaptModeChanger_CheckRTCRrepared00008760: DispSwCon_MuteOffPhysicalScreen00008760: MuteOffPhysicalScreen00008760: DSID:0x1100008760: _DecideModeDial00008760: LogiEvnt_NotPowerType:0x0984:adr:0x0,Para:000008760: LogiEvnt_NotPowerType:0x0982:adr:0x0,Para:000008820: Window:IneffectiveLockPhysicalScreen00011470: Window:IneffectiveLockPhysicalScreen00012810: Window:IneffectiveLockPhysicalScreen00012900: Window:IneffectiveLockPhysicalScreen00014040: Window:IneffectiveLockPhysicalScreen00015360: Window:IneffectiveLockPhysicalScreen00015650: Window:IneffectiveLockPhysicalScreen00018720: PressSwOne00018720: SS:UsingRaw[0]00018720: DSID:0x2700018720: ShtCon_Activate00018730: ShtCon_PrepareCapture00018730: LockChangeFinder00018730: DSIC:0x61,000018730: DSIC:0xe,000018730: Window:EffectiveLockPhysicalScreen00018730: Window:IneffectiveLockPhysicalScreen00018730: LogicalEvent:0x3135:adr:0x0,Para:000018740: DSIC:0xe,000018740: SS:PrepareCapture00018760: ClearEventComp00018780: Window:IneffectiveLockPhysicalScreen00018880: Window:IneffectiveLockPhysicalScreen00019850: PressSwTwo
./chdkptp.sh -c -e"luar return set_prop(12, 1)./chdkptp.sh -c -e"luar return set_focus(65535)
Eventually I found out about ROMLOG.LOG - I found this:Code: [Select]ASSERT!! FocusLensController.c Line 203Occured Time 2021:01:13 00:14:43TCB: 00272E38Task: tCaptSeqTa...I tried to look at FocusLensController.c line 203, hoping to get a clue re what's going wrong, but I've downloaded release-1_5.zip, and I can't find any such file FocusLensController.c in there. (Am I looking in the wrong place?)
ASSERT!! FocusLensController.c Line 203Occured Time 2021:01:13 00:14:43TCB: 00272E38Task: tCaptSeqTa...
Code: [Select]./chdkptp.sh -c -e"luar return set_prop(12, 1)./chdkptp.sh -c -e"luar return set_focus(65535)Something about that crashes the camera.
luar set_tv(...)luar shoot()
luar set_tv(...) shoot()
Yes, that's a Canon firmware assert, and refers to their source file which we obviously don't have. You can use a disassembler to find the relevant firmware code, but it probably won't help much.
QuoteCode: [Select]./chdkptp.sh -c -e"luar return set_prop(12, 1)./chdkptp.sh -c -e"luar return set_focus(65535)Something about that crashes the camera.Generally, setting the propcase isn't sufficient to actually set the focus mode. I'd suggest using set_mf(1) instead.According the A640 platform_camera.h, focus override should work in MF and AF lock, but not in AF. My guess is setting the propcase makes CHDK think it was in MF, but then try to apply the override when it's still actually in AF, triggering the crash.
Here's an odd thing - I tried it on a 2nd A640 (I buy them used on eBay cheap...) that I'm keeping in reserve for when the first one wears out. That one doesn't crash with the same script.
Anybody know how many shutter actuations an A640 is supposed to last?
* I'm planning to reboot the camera periodically, thinking that the firmware wasn't designed to run 24/7 for years (maybe there are small memory leaks, etc.). Any advice on how often is wise? (Each reboot runs the lens motors, so I'd like to reboot as rarely as I can.)
Generally, setting the propcase isn't sufficient to actually set the focus mode. I'd suggest using set_mf(1) instead.
You might want to mention that in the propcase docs...
Started by PhyrePhoX « 1 2 3 » General Discussion and Assistance
Started by mrShrimp LUA Scripting
Started by reyalp General Discussion and Assistance
Started by reyalp General Chat
Started by VinzVideo Script Writing