PowerShot SX230 HS - Porting Thread - page 41 - General Discussion and Assistance - CHDK Forum

PowerShot SX230 HS - Porting Thread

  • 706 Replies
  • 331632 Views
Re: PowerShot SX230 HS - Porting Thread
« Reply #400 on: 21 / December / 2011, 01:12:31 »
Advertisements
I do get the CHDK logo when I start up off the play button but I do not see the firmware update menu when I go to the menu options.
If you get a CHDK logo then CHDK is loading properly !  I assume that means  you have the card "locked" and that you actually did format it properly using SDMinst.exe.  Good news !

You don't need to use the firmware update method at all - ignore that advice.  Its usually just a fall back for people who can't get their SD cards to "boot" with the SD card lock in the locked position.

OK. I can see the firmware update. I think I understand now. The firmware is not installed on the actual camera but it just lives on the LOCKED card.
Technically CHDK is not firmware - it never resides in "permanent" memory.  It loads from the SD card and goes into the camera's RAM memory and runs there. 

Quote
When the camera is running I see the battery icon showing a percent icon and a ISO icon that is new in the bottom right corner. So I think that is correct.
Sound good to me !

Quote
My son and I were able to get the script working last night. Not sure what is what but when the camera is sitting on the desk it will turn on and show the last picture taken. It will not TAKE a picture but it will show the last one taken.
Put the camera into shooting mode by pressing the shutter button before starting the script.

Quote
How do we get a english version? The version we have is german and neither of us speak or read German.  ???
You have the German version ?  You must be running CHDK-DE then - how in the world did you get that ?  The English CHDK autobuild server is available at http://mighty-hoernsche.de/.  Or if you like the German version,  just delete the file german.lng in subdir CHDK/LANG and it will revert to English.

One last note - the stratos.bas script is pretty sophisticated.  Maybe what you want is a really simple script that simply takes a picture in full auto mode every 60 seconds.   I expect there will be a lot of excitement at launch and things get overlooked so maybe the script should be setup to start running as soon as you turn the camera on.  I can give you a hand  with that.

And I should have posted this earlier for you - a little light reading :

link> CHDK User Manual
link> CHDK for Dummies
link> CHDK UserGuide April 2009
link> CHDK Firmware Usage
link> CHDK Installation Guide
link> One Page Users Guide
link> CHDK in Brief
« Last Edit: 21 / December / 2011, 01:14:47 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: PowerShot SX230 HS - Porting Thread
« Reply #401 on: 21 / December / 2011, 03:53:28 »

Quote
How do we get a english version? The version we have is german and neither of us speak or read German.  ???
You have the German version ?  You must be running CHDK-DE then - how in the world did you get that ?  The English CHDK autobuild server is available at http://mighty-hoernsche.de/.  Or if you like the German version,  just delete the file german.lng in subdir CHDK/LANG and it will revert to English.

Deletion of the language file will not help since we compile the German language. But we have a simple system to switch the language. We use the default script. At the first use of CHDK switch into the ALT mode and full press the shutter. The default script runs and will automatically detect the correct language (atm only English and Russian).

msl
CHDK-DE:  CHDK-DE links

Re: PowerShot SX230 HS - Porting Thread
« Reply #402 on: 21 / December / 2011, 08:06:50 »
English. YES!!! Thank you msl!!!

SUCCESS!!!!!!!!!!

I found another script and it worked GREAT so far! I will be turning the camera over to the students so they can run a battery check to see how long they will last.

The script I downloaded was called "interval.bas".

WOW!
« Last Edit: 21 / December / 2011, 09:54:43 by mnuser »

Re: PowerShot SX230 HS - Porting Thread
« Reply #403 on: 21 / December / 2011, 10:06:31 »
Deletion of the language file will not help since we compile the German language. But we have a simple system to switch the language. We use the default script. At the first use of CHDK switch into the ALT mode and full press the shutter. The default script runs and will automatically detect the correct language (atm only English and Russian).
@msl :  Thanks for the update - this is new ?

Unless I am losing my mind (and all the old posts in this forum are wrong), did not the method of switching to English use to be deleting the german.lng file ?

I downloaded the latest version of CHDK-DE for my G10 and looked at the script. Very nice - although its not immediately clear to me how it deals with all four propsets in get_cam_language().  I'll take a harder look.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: PowerShot SX230 HS - Porting Thread
« Reply #404 on: 21 / December / 2011, 10:35:46 »
@waterwingz

Yes, this is new since changeset 846 + 847. A compiled language file saves memory, also for CHDK-DE.

The original default script is an useless script. That was the reason to use it for an automated switching of the language. The script is based on the get_language()  function of the multilingual script to save and restore the CHDK configaration: conf_rw.lua

msl
CHDK-DE:  CHDK-DE links

Re: PowerShot SX230 HS - Porting Thread
« Reply #405 on: 21 / December / 2011, 10:42:29 »
The script I downloaded was called "interval.bas".
@mnuser
By "downloaded" do you mean the "interval.bas" script you found preloaded on the SD card or one you found online and transferred to the SD card ?   If the latter,  do you have a link you can post ?

Also, did you see my suggestion about making it Autostart when CHDK loads ?  Its a menu option in the CHDK Script menu.

Yes, this is new since changeset 846 + 847. A compiled language file saves memory, also for CHDK-DE.
The original default script is an useless script. That was the reason to use it for an automated switching of the language. The script is based on the get_language()  function of the multilingual script to save and restore the CHDK configaration: conf_rw.lua
@msl :
Thanks for the note.  Didn't think I was going crazy. I believe the useless script was there so that a new user could not accidentally run anything while learning the camera.  I like what CHDK-DE did instead.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX230 HS - Porting Thread
« Reply #406 on: 21 / December / 2011, 11:25:55 »
Yea. I downloaded it from another website and then transfered it to the SD card. Went into the menu and ran the script. It has a few settings that fit just what I needed.

Here is the URL. The script is located at the bottom of the page:

http://sites.google.com/site/ledzeppelinweatherballoon/paylaod-details/diy-instructions

I did not see the note to make the script autostart. I do see a menu that says Autostart but when I turn it to [on], it just goes back to [off] when powered down and powered back up.

Any ideas or did I just miss something?

The "interval.bas" script has three variables. I'm still trying to figure them all out.

Shoot Count: [4000]
Interval (minutes) : [1]
Interval (seconds) : [10]

Those are the settings as of now.
« Last Edit: 21 / December / 2011, 11:37:39 by mnuser »

Re: PowerShot SX230 HS - Porting Thread
« Reply #407 on: 21 / December / 2011, 12:17:19 »
I did not see the note to make the script autostart. I do see a menu that says Autostart but when I turn it to [on], it just goes back to [off] when powered down and powered back up.

Any ideas or did I just miss something?
Strange - if I use that setting then the current script that I have loaded runs each time.   Are you starting the camera by holding down the On/Off button so that it starts in shooting mode ?  If you start in Playback mode then the script might stop when it hits a command only valid in shooting mode.  I'll play with that and see if CHDK disables autostart if there is a script "error" like that.

Either that or there  is something different in the CHDK-DE version.  It would not be the first time.

Quote
The "interval.bas" script has three variables. I'm still trying to figure them all out.

Shoot Count: [4000]
Interval (minutes) : [1]
Interval (seconds) : [10]

Those are the settings as of now.
Pretty much what it says - the script will keep going until it takes 4000 shots or whatever you change that to.  You set the interval between shots by setting the minutes and seconds variable - the script sums the two so in the example you posted the interval will be 70 seconds.

If you had the non-German version of CHDK,  there is an even simpler scripts on the card that just runs forever.  Here it is :
Code: [Select]
@title Intervalometer
@param a = interval (sec)
@default a 15
 
do
    s = get_tick_count
shoot
    sleep a*1000 - (get_tick_count - s)
until ( 0 )

Meanwhile,  the stratos.bas script does some sophisticated stuff like taking a movie at lift off and changing the exposure options at higher altitudes.   Seems to be based on an assumption of how long it takes to get to certain points in the flight so I suspect its a bit touchy to setup.


Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX230 HS - Porting Thread
« Reply #408 on: 21 / December / 2011, 12:22:22 »
Another mistake proofing idea - you can force the camera to switch into record mode when start a script by putting the following code at the start :

Code: [Select]
if get_mode = 0 then goto "in_rec"
  sleep 1000
  set_record 1
:wait_rec
  sleep 100
  if get_mode <> 0 then goto "wait_rec"
:in_rec

which gets you this :

Code: [Select]
<-- Deleted : see improved script posted below -->
« Last Edit: 28 / December / 2011, 11:49:40 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX230 HS - Porting Thread
« Reply #409 on: 21 / December / 2011, 14:03:57 »
I think everything is working great. No problems yet. I let it run for an hour in my classroom taking a picture every 15 seconds and it went off without a hitch. So far so good.

I'm going to run it in the fridge this week with two hand warmers and see how long the battery lasts. Should be a good indication of the conditions in the insulated payload box. It gives me a baseline. Kids will also be doing all these experiments too and sharing their data. I won't tell them that I have done it already....

Thanks guys. You have been really helpful! I love stuff like this. Without these boards I don't know how I would have got it done.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal