SX40HS porting thread - page 19 - DryOS Development - CHDK Forum

SX40HS porting thread

  • 258 Replies
  • 116469 Views
Re: SX40HS porting thread
« Reply #180 on: 10 / August / 2012, 07:21:16 »
Advertisements
How about controlling sx40 with android phone. We know that PTP camera GUI can control camera using USB then it possible to develop a android app to control camera also.
There has been a little discussion about this on the CHDK irc channel.   FWIW, if you were to make such an app, it would work with any CHDK camera.  However, it will probably not work with many phones as they are not capable of being USB hosts (as noted in the link you posted).

The Android solution appears to be a bluetooth->USB bridge.  The software wouldn't be applicable, but the hardware could be:

http://www.instructables.com/id/Building-the-YaNis-EOS-Controller/
http://code.google.com/p/yanis-android-wireless-camera-controller/
https://play.google.com/store/apps/details?id=appinventor.ai_manis404.YaNis_Controller&hl=en

Re: SX40HS porting thread
« Reply #181 on: 10 / August / 2012, 07:26:21 »
Other than disabling it and forcing a manual focus distance...  does CHDK have any hooks into the autofocus routine?  I often use the SX40 at full telephoto minimum focus distance for backyard birding and the like.  It has this annoying (even if understandable) habit of focusing on the background that is perhaps 20 feet away while the subject is 6 feet or so.  A focus limiter function would be a tremendous addition to the already awesome (thank you so much for all the work!) software.  Unless it's already there and I just didn't look hard enough...

Re: SX40HS porting thread
« Reply #182 on: 10 / August / 2012, 08:45:13 »
Other than disabling it and forcing a manual focus distance...  does CHDK have any hooks into the autofocus routine?
I do not believe it does.
« Last Edit: 10 / August / 2012, 10:16:01 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX40HS porting thread
« Reply #183 on: 10 / August / 2012, 17:53:32 »
Good news and bad news:

The SX40HS + Motion script I referenced earlier works if you use the DEFAULTS.

If you try to make it take continuous pictures ( I put it to 2-3 seconds ) so any movement took 3 pictures for each event, the camera shuts off and it leaves the lens extended.

Again, is there anything I can do to help debug this issue?

Re: SX40HS porting thread
« Reply #184 on: 10 / August / 2012, 17:54:20 »
Note, the SX30IS works fine with any type of setting, continuous or not.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX40HS porting thread
« Reply #185 on: 10 / August / 2012, 19:15:13 »
Good news and bad news:

The SX40HS + Motion script I referenced earlier works if you use the DEFAULTS.

If you try to make it take continuous pictures ( I put it to 2-3 seconds ) so any movement took 3 pictures for each event, the camera shuts off and it leaves the lens extended.


Does it crash straight away or only after extended use like before?

Is the crashdump (ROMLOG.LOG) the same?

So far I have not been able to reproduce any of the crashes you are getting.

Can you zip up the contents of the SD card you are using on the SX40 (without any pictures) and post it here so I can see exactly what CHDK and script settings you have. Also post all the Canon camera settings you are using.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: SX40HS porting thread
« Reply #186 on: 10 / August / 2012, 20:32:49 »
>> Does it crash straight away or only after extended use like before?
It crashes after extended use (anywhere from 5 min++), I will try to make it crash by walking in front of it etc so I can gather a crashdump.
I recorded a video of the screen this time from another camera and this is what it showed before it shutdown(!):
http://home.comcast.net/~jpiszcz/20120810/camera-takes-picture-lens-retracts-and-this-error-is-displayed.JPG
In the instance above, it did retract in that case, but it does not always retract properly/etc.

>> Is the crashdump (ROMLOG.LOG) the same?
I am not sure, will pull this down and upload it as soon as it crashes.
It is posted at the bottom of this reply, it is also located here:
http://home.comcast.net/~jpiszcz/20120810/ROMLOG.LOG

>> So far I have not been able to reproduce any of the crashes you are getting.
Interesting, its a stock SX40HS and I have even reset all to the defaults, its when I set to continuous shooting that I see the problem (at least most recently).
I will reproduce the problem then take pictures of each settings page then maybe you would be able to re-produce it, is it possible that this bug is only present in the 'I' firmware, e.g., have there been certain firmwares that have experienced problems while other versions remain unaffected?

Here are my settings:
http://home.comcast.net/~jpiszcz/20120810/IMG_1104.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1105.JPG-800x600.jpg (motion settings, only thing modified in CHDK)
http://home.comcast.net/~jpiszcz/20120810/IMG_1106.JPG-800x600.jpg (motion settings, only thing modified in CHDK)
http://home.comcast.net/~jpiszcz/20120810/IMG_1107.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1108.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1109.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1110.JPG-800x600.jpg (modified to cont. mode)
http://home.comcast.net/~jpiszcz/20120810/IMG_1111.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1112.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1113.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1114.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1115.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1116.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1117.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1118.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1119.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1120.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1121.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1122.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1123.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1124.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1125.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1126.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1127.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1128.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1129.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1130.JPG-800x600.jpg
http://home.comcast.net/~jpiszcz/20120810/IMG_1131.JPG-800x600.jpg


>> Can you zip up the contents of the SD card you are using on the SX40 (without any pictures) and post it here so I can see exactly what CHDK and script settings you have. Also post all the Canon camera settings you are using.
Yes, it is here (2.6M): (The actual settings though are in the pictures I took as I had set this back to normal (DEFAULTS) prior to dumping the card, the only thing I changed is mentioned below the URL:
http://home.comcast.net/~jpiszcz/20120810/chdk-sdhc-card-dump.zip

What was changed:
1) Set continuous shooting (the option in the middle for the regular canon/software)
2) I changed the parameters for the motion script (loaded from CHDK) as shown in the pictures below:

--

Here is the latest crash log:

HARDWARE DEFECT!!  ShutdownReason[9] ErrorNo[2]
Occured Time  2012:08:10 19:43:29
06866590: UI:DSIC:e,0
06866590: SS:LoadTest:10
06866590: SS:PreCapt
06866630: UI:ShtCon_SetReviewMode
06866630: UI:_fDisplayQuickReview->0
06866630: UI:ShootState:0x31
06866630: UI:_fPopupState(LogicalSw):0
06866630: UI:UI_STC_NotPoppedUp
06866640: UI:SMPC_IsProhibitStillInMovieMode:0
06866640: SS:IsQ=0
06866640: UI:ShootState:0x12
06866640: UI:DisplayPhysicalScreenCBR
06866640: UI:ShootState:0x32
06866640: UI:ShootState:0x1
06866640: UI:ClearEventComp
06866640: UI:DisplayPhysicalScreenCBR
06866850: UI:LogicalEvent:0x665e:adr:0x3c120,Para:246048
06866850: UI:ScreenLock
06866850: UI:ScreenUnLock
06866890: UI:LogicalEvent:0x1167:adr:0x2,Para:2
06866910: UI:DisplayPhysicalScreenCBR
06866910: UI:DSIC:54,0
06866910: UI:DispSwCon_MuteOnPhysicalScreen
06866910: UI:Window MuteOn
06866910: UI:MuteOnPhysicalScreen
06866910: UI:DispSwCon_DisableMute
06866910: UI:ShtCon_Shut
06866910: UI:ScreenLock
06866920: UI:ScreenUnLock
06866920: UI:_StopBlinkSelfTimerLamp

06866920: UI:_nContiShootCount:0
06866920: SS:#ImgSys
06866990: SS:#ImgSys 1
06866990: UI:DisplayPhysicalScreenCBR
06866990: UI:ShootSeqToUI:0x2006:adr:0xfffffffe,Para:-2
06867020: UI:ShootSeqToUI:0x201b:adr:0x3210,Para:12816
06867020: UI:HwErrPreShtDwn
06867020: UI:EmergencyMuteOn
06867110: SS:StopLens
06867110: M:LensError.c 0x20000000
06867110: SS:StrLens
06867110: M:TERM_S
06867110: M:SH_CLS_S
06867120: M:SH_CLS_E
06867120: M:ND_OFF_S
06867120: M:ND_OFF_E
06867130: M:FC_RST_S
06868010: M:FC_RST_E
06868010: M:FC_TRM_S
06868130: M:FC_TRM_E
06868130: M:ZM_RST_S
06869050: UI:LogicalEvent:0x665f:adr:0x3c120,Para:246048
06869050: UI:ScreenLock
06869050: UI:ScreenUnLock
06869090: UI:DisplayPhysicalScreenCBR
06869450: UI:Button:0x000009A4:UnpressSwTwo
06869450: UI:Button:0x000009A2:UnpressSwOne
06869500: UI:ScreenLock
06869500: UI:ScreenUnLock
06869530: UI:DisplayPhysicalScreenCBR
06869550: UI:Button:0x000009A1:PressSwOne
06869550: UI:Button:0x000009A3:PressSwTwo
06869960: M:ZM_RST_E
06869960: M:ZM_TRM_S
06869970: M:ZM_TRM_E
06869970: M:IS_PWS_S
06870230: M:IS_PWS_E
06870230: UI:ShootSeqToUI:0x2004:adr:0x8,Para:8
06870230: M:TERM_E
06870230: UI:HwErrShtDwn
06870230: UI:VALDispErr
06870230: UI:TurnOnDisplay
06870230: UI:TurnOnBackLight
06870250: UI:ScreenLock
06870270: UI:Window_EmergencyRefresh
06870270: UI:Window_EmergencyRefreshPhysicalScreen
06870270: UI:Window MuteOn
06870270: UI:MuteOnPhysicalScreen
06870270: UI:DispSwCon_MuteOffPhysicalScreen
06870270: UI:Window Reduce MuteOff
06870270: UI:EmergencyShutDownDisplay
06872600: UI:Button:0x000009A4:UnpressSwTwo
06872600: UI:Button:0x000009A2:UnpressSwOne

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX40HS porting thread
« Reply #187 on: 10 / August / 2012, 21:33:30 »
>> So far I have not been able to reproduce any of the crashes you are getting.
Interesting, its a stock SX40HS and I have even reset all to the defaults, its when I set to continuous shooting that I see the problem (at least most recently).

Can you try it with a normal SD card, rather than an Eye-Fi card.

I've had it running on my camera for 15 minutes with your CHDK config and camera settings without any issues.
Pointed the camera at my monitor so every time I do something it takes photos.

The Eye-Fi card is the only major difference I can think of at this stage.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: SX40HS porting thread
« Reply #188 on: 12 / August / 2012, 14:04:28 »
So far I've been using the Eye-Fi (for the past 24hr+) with the default settings and there are no errors.
The next time I test it (change settings) I'll test on a different card and update here, thanks.

Re: SX40HS porting thread
« Reply #189 on: 18 / August / 2012, 05:50:05 »
Hi, guys.

theres no way to make RAW(DNG) visible via USB.

the second issue is that all CHDK icons and information are atop so as camera ones. And we've got a heap of useless garbage at one side of the display and the only way to fix it is turn off all chdk info.
« Last Edit: 20 / August / 2012, 05:30:47 by _AVP_ »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal