IXUS 130 (SD1400 IS) Porting Thread - page 28 - DryOS Development - CHDK Forum

IXUS 130 (SD1400 IS) Porting Thread

  • 288 Replies
  • 76563 Views
Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #270 on: 17 / June / 2013, 16:35:43 »
Advertisements
You probably want to start here :  http://chdk.wikia.com/wiki/Prepare_your_SD_card
Thanks- I've been reading through the Wiki as well, so by now I'm quite familiar with the basics of CHDK. I have done my research, as I don't want to be one of those people... you know the ones!


To avoid confusion: STICK can't install unofficial zip releases, so a different utility will be needed.
I understand that, too. I've tried different utilities such as EOScard and the likes, but the camera doesn't seem to want to pick up the 'BOOTDISK' string... I've verified that the card's FAT32 and that the string is at the correct address on the card (and it's locked), but nada. Maybe the camera's running a newer version of 100a?

Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #271 on: 17 / June / 2013, 17:26:25 »
I understand that, too. I've tried different utilities such as EOScard and the likes, but the camera doesn't seem to want to pick up the 'BOOTDISK' string... I've verified that the card's FAT32 and that the string is at the correct address on the card (and it's locked), but nada. Maybe the camera's running a newer version of 100a?
You probably missed the part in the link I posted about needing to know when the camera was released.  The SD1400 was released in Feb 2010 and thus will not boot from a FAT32 partition.   You need to follow the instructions for booting from a FAT16 partition and if your SD card is larger than 4G you will need to use the dual partition scheme.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #272 on: 17 / June / 2013, 23:07:04 »
You probably missed the part in the link I posted about needing to know when the camera was released.  The SD1400 was released in Feb 2010 and thus will not boot from a FAT32 partition.   You need to follow the instructions for booting from a FAT16 partition and if your SD card is larger than 4G you will need to use the dual partition scheme.

Aaahhh... yes, really sorry. I did miss that part! I'll give the dual partition thing a shot when I get home and let you know of the results. Thanks again... *facepalms*

Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #273 on: 17 / June / 2013, 23:17:31 »
Aaahhh... yes, really sorry. I did miss that part! I'll give the dual partition thing a shot when I get home and let you know of the results. Thanks again... *facepalms*
You might find this handy : http://chdk.wikia.com/wiki/Using_SDMinste_to_Create_Dual_Partition_SD_cards
Ported :   A1200    SD940   G10    Powershot N    G16


Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #274 on: 18 / June / 2013, 01:36:51 »
OK, it allows mechanical zoom in video mode.  :D
I have not had any luck with shutter speeds yet but I think it's more me than the code?
I have not had any success with the default script working. It prints out: "Started:)Finished" without allowing me to do anything.

I loaded more scripts on the card and ran the following,
AUTOEXP.LUA (intervalometer with auto Tv) =worked perfectly

AUTOEXP~1.LUA (intervalometer with auto Tv) =worked perfectly

STAR_T~1.LUA (Long-Exposure Continuous Shooting) =worked perfectly

SET_B_14.LUA (Sunset B 14) =worked

PHOTON.BAS  (Long exposure night shot) =image stabilization icon and orange play light just blink continuously.

MD_SDM.BAS (Fast MD 000914) =uBASIC: 71 parse error *** TERMINATED ***

OPEN-S~1.BAS (Open Shutter) =image stabilization icon and orange play light just blink continuously.

SHUTTE.BAS (Shutter speed) =uBASIC: 7 parse err *** TERMINATED ***

SHUTTE~1.BAS (Shutter Speed-AllbestT) =worked

SHUTTE~1.LUA (Shutter Speed) =worked

LIGHTNIN~1.BAS (Fast MD with burst/preview 000285) =worked

TIME_L.BAS (Time-lapse) =uBASIC: 44 Parse err *** TERMINATED ***

TLAPSE.BAS (Time-lapse) =uBASIC: 44 Parse err *** TERMINATED ***

LONGEX~1.BAS (Long exposure night shot>) = image stabilization icon and orange play light just blink continuously.

MOTION~1.BAS (Motion Detection) =worked

SUNSET~1.LUA (Sunset F16) =:86: attempt to call field 'deleteUntilMbFree100CANON' (a nil value)
*** TERMINATED ***

All these scripts work in my other cameras so I'm not sure whats going on
with the errors?

More To Come... ::)

Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #275 on: 18 / June / 2013, 06:23:22 »
I have not had any luck with shutter speeds yet but I think it's more me than the code?
Tell us exactly what you tried - step by step?

Quote
I have not had any success with the default script working. It prints out: "Started:)Finished" without allowing me to do anything.
You have it working - that's all it does.  Nothing.

Quote
I loaded more scripts on the card and ran the following,
MD_SDM.BAS (Fast MD 000914) =uBASIC: 71 parse error *** TERMINATED ***
SHUTTE.BAS (Shutter speed) =uBASIC: 7 parse err *** TERMINATED ***
TIME_L.BAS (Time-lapse) =uBASIC: 44 Parse err *** TERMINATED ***
TLAPSE.BAS (Time-lapse) =uBASIC: 44 Parse err *** TERMINATED ***
SUNSET~1.LUA (Sunset F16) =:86: attempt to call field 'deleteUntilMbFree100CANON' (a nil value)
All these scripts work in my other cameras so I'm not sure whats going on
with the errors?
The fact that many of the scripts you tried worked usually means that there are either issues with the file format (copy&paste problems typically) or there is camera specific code that is wrong.  Post a few of the files here as attachments and we can take a look.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #276 on: 20 / June / 2013, 03:48:05 »
Alright- I've gotten the software working nicely using the utility you linked me, Waterwingz. Thanks for that!
I'm trying to fimilarise myself with CHDK and experiment a bit before I get down to proper testing (jeez, 1SennaFan, you've set
a pretty amazing benchmark for testing! Great job!), so it may be a day or two before I can give some definitive answers.

It's been rock solid so far, except for one thing.
Going to video mode > playback mode > video mode; CHDK loads in photo mode and I need to switch to auto or manual and
back to video for it to load all the video options.
Is this because the CHDK software gets unloaded upon playback mode? I'm not entirely sure how CHDK actually works; is it a
kernel-type layer that is always present when launched upon booting or is it literally just top-level software that the camera runs?

Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #277 on: 20 / June / 2013, 16:27:35 »
  Ive Been Working Two Jobs This Week, Day And Night So Bare With Me.
Im Not Sure Im Understanding The Menu Concerning Shutter Speed Yet, Ill Work On That.
The Code, (Copy&Paste Problems Typically) Sounds Right To Me.
Here They Are:

rem Fudgey's Fast/Slow/Video Motion Detector with masks. For models with no video button.
rem See MDFB-080914.txt for documentation.
rem Modified to support 'show sample points' option and turn-off synch mode (SDM 1.82 and later)
@title Fast MD 080914

@param a Columns
@default a 3
@param b Rows
@default b 3
@param c Threshold (0-255)
@default c 10
@param g Burst/Review/Video time (s)
@default g 0
@param d Compare Interval (ms)
@default d 7
@param h Pixel Step (pixels)
@default h 40
@param f Channel (0U,1Y,2V,3R,4G,5B)
@default f 1
@param n Timeout (10s of seconds)
@default n 30
@param e Trigger Delay (0.1 sec)
@default e 5
@param q Show sample points
@default q 1
@param r Show sample cells
@default r 1
@param i Masking (0=No 1=Mask 2=Use)
@default i 0
@param j -      Mask Columns Left
@default j 0
@param k -      Mask Columns Right
@default k 0
@param l -      Mask Rows    Top
@default l 0
@param m -      Mask Rows    Bottom
@default m 0
@param o Shoot fast=0,slow=1,test=2
@default o 2

if a<1 then a=1
if b<1 then b=1
if i<0 then i=0
if i>2 then i=2
if j<0 then j=0
if k<0 then k=0
if l<0 then l=0
if m<0 then m=0
if j>a then j=a
if k>a then k=a
if l>b then l=b
if m>b then m=b
if g<0 then g=0
if f<0 then f=1
if f>5 then f=1
if f=0 then print "Channel: U chroma"
if f=1 then print "Channel: Luminance"
if f=2 then print "Channel: V chroma"
if f=3 then print "Channel: Red"
if f=4 then print "Channel: Green"
if f=5 then print "Channel: Blue"
if n<1 then n=1
if q<0 then q=0
if q>0 then q=32
if r<0 then r=0
e=e*100
g=g*1000
n=n*10000

set_sync 0 0 0 0
P=get_video_button
if P=1 then goto "VideoButtonError"

P=get_mode
if P=1 then goto "PlayModeError"
rem get_mode returns 2 if a we are in video mode (and the camera has no video button)
if P=2 then p=1 else p=0

P=get_flash_mode
if P=2 then goto "SkipFlashWarning"
  print "WARNING: Flash is not"
  print "disabled. May cause  "
  print "odd behavior.        "
:SkipFlashWarning

if o=0 and p=1 then goto "fast_video_md"
if o=1 and p=1 then goto "slow_video_md"
if o=1 and p=0 then goto "slow_md"
if o=2 then goto "test_md"

print "Fast react photo MD"
:fast_md_loop
  t=0
  do
    release "shoot_half"
    press "shoot_half"
    do
      P=get_shooting
    until P=1
    md_detect_motion a, b, f, n, d, c, r, t, i, j+1, l+1, a-k, b-m, 9+q, h, e
  until t>0
  let X=get_tick_count
  :contloop1
    let U=get_tick_count
    let V=(U-X)
    if V<g then goto "contloop1"
  release "shoot_full" 
  release "shoot_half"
  do
    P=get_shooting
  until P<>1
goto "fast_md_loop"

:slow_md
rem print "Slow react photo MD"
:slow_md_loop
  t=0
  do
    md_detect_motion a, b, f, n, d, c, r, t, i, j+1, l+1, a-k, b-m, q, h, e
  until t>0
  if g>0 then goto "contshoot2" else shoot
  goto "slow_md_loop"
  :contshoot2
  press "shoot_full"
  let X=get_tick_count
  :contloop2
    let U=get_tick_count
    let V=(U-X)
    if V<g then goto "contloop2"
  release "shoot_full"
  release "shoot_half"
  do
    P=get_shooting
  until P<>1
goto "slow_md_loop"

:fast_video_md
if g<1 then g=1000
print "Fast react video MD"
:fast_video_md_loop
  t=0
  do
    release "shoot_half"
    press "shoot_half"
    sleep 1000
    md_detect_motion a, b, f, n, d, c, r, t, i, j+1, l+1, a-k, b-m, 9+q, h, e
  until t>0
  rem press "shoot_full" was done by md_detect_motion
  print "starting video record" 
  sleep 300
  release "shoot_full"
  let X=get_tick_count
  :fastvideowaitloop
    let U=get_tick_count
    let V=(U-X)
    if V<g then goto "fastvideowaitloop"
  click "shoot_full"
  print "ending video record"
  rem Need to wait or shoot_half won't work and loop will work like slow react loop:
  sleep 1000
goto "fast_video_md_loop"

:slow_video_md
if g<1 then g=1000
rem Focusing takes time => add a second to make length argument a bit more accurate.
g=g+1000
print "Slow react video MD"
:slow_video_md_loop
  t=0
  do
    md_detect_motion a, b, f, n, d, c, r, t, i, j+1, l+1, a-k, b-m, q, h, e
  until t>0
  press "shoot_full"
  sleep 300
  release "shoot_full"
  print "starting video record" 
  let X=get_tick_count
  :slowvideowaitloop
    let U=get_tick_count
    let V=(U-X)
    if V<g then goto "slowvideowaitloop"
  click "shoot_full"
  print "ending video record"
goto "slow_video_md_loop"

:test_md
  print "MD test, no shooting."
  N=0
:test_md_loop
  t=0
  do
    md_detect_motion a, b, f, n, d, c, r, t, i, j+1, l+1, a-k, b-m, q, h, e
  until t>0
  N=N+1
  print t, "cells, trigger ", N
goto "test_md_loop"

:PlayModeError
  print "MDFB script ERROR:"
  print "Not in REC mode, exiting."
end

:VideoButtonError
  print "MDFB script ERROR:"
  print "Incompatible camera! Try"
  print "MDFB VideoButtonModels"
  print "version."
end

More To Follow


Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #278 on: 20 / June / 2013, 16:28:45 »

@title Time-lapse
@param a first delay minutes
@default a 0
@param b first delay seconds
@default b 10
@param c shoot interval minutes
@default c 0
@param d shoot interval seconds
@default d 5
@param e number of repeats
@default e 3
@param f endless mode N/Y    0/1
@default f 0
@param g single/cont/time/burst
@default g 0
@param h Tv exposures
@default h 3
@param i Focus exposures
@default i 3
@param j bracket Tv/foc/Both   0/2
@default j 0
@param k light/dark/alternate   0/1/2
@default k 2
@param l num of 1/3 EV steps
@default l 3
@param m equal/auto/digi  0-2
@default m 0
@param n focus-step
@default n 50
@param p digiscope focus ref
@default p 500
@param q blank screen N/Y 0/1
@default q 0
@param r shutdown N/Auto/USB 0/1/2
@default r 0
@param s save stack N/Y 0/1
@default s 0
@param t Sunrise mode
@default t 0
@param u TXT/CSV 0/1
@default u 0

time_lapse a, b, c, d, e, f, g, h, i, j, k, l, m, n, p, q, r, s, t, u
end

-------------------------------------------------------

--[[
@title Sunset F16
@param a How many pics/hour
@default a 45

@param b Max. exposure (sec)
@default b 30

@param c Default ISO (*100)
@default c 1

@param d Maximum ISO (*100)
@default d 1200

@param e Dusk start (sec/10)
@default e 5

@param f Dusk duration (EV/10)
@default f 60

@param h U Start (0-255)
@default h 0

@param i U End (0-255)
@default i 5

@param j U Limit (%)
@default j 30

@param k U Weight (0-100)
@default k 0

@param l O Start (0-255)
@default l 40

@param m O End (0-255)
@default m 255

@param n O Limit (%)
@default n 4

@param o O Weight (0-100)
@default o 0

@param p M Value (0-255)
@default p 20

@param q M Weight (0-100)
@default q 50

@param r Focus to Inf.(0=no, 1=yes)
@default r 1

@param s JPG Q:-1..2=off,best..norm
@default s 0

@param t JPG resol.(-1=off,see doc)
@default t -1

@param u Startup Delay (minutes)
@default u 0

@param v Reload Prev Exposure (0=no, 1=yes)
@default v 1
]]
propcase=require("propcase")

require("util")
require("date")
require("log")
require("tblsave")
require("disk")
require("cam")
require("sunset")

log.open("F16.log")
initConfig()
initScript()
initCamera()
initLog()

verbose = 1
next_shoot=0

repeat
      disk.deleteUntilMbFree100CANON(20,40)
      
      util.sleepUntilNextPeriodOfAnHour(a)
      
      bv, av = cam.smartShoot(shoot_tv,shoot_sv,subjdist)
      log.print("00 - "..bv..", "..av.." = ".."smartShoot(newFileName(),"..shoot_tv..","..shoot_sv..","..subjdist..")\n")

      calcNextExposure()
      
   if(v) then
      saveSettings()
   end
      
      count_frames=count_frames+1
      print(count_frames)
until 1==2

-------------------------------------------

@title Shutter speed
@param a numerator
@default a 1
@param b denominator
@default b 1
sync_off
shutter_speed a / b
shoot
sync_on
end
--------------

Hope This Helps

Re: IXUS 130 (SD1400 IS) Porting Thread
« Reply #279 on: 20 / June / 2013, 19:39:13 »
Ok I Figured It Out I Think?
Shutter Speed Works With Both Long And Short Exposures In The Few I Have Tried So Far.  ::)
More To Come...

 

Related Topics