Dryos Basic scripting

  • 64 Replies
  • 19153 Views
  • Publish
    Re: Dryos Basic scripting
    « Reply #30 on: 16 / August / 2010, 03:35:20 »
    Advertisements
    Hi there,

    nice development. I still hope more of CHDK is useable on DSLRs.

    Well, also DSLR development making nice steps: http://magiclantern.wikia.com/wiki/Magic_Lantern_Firmware_Wiki

    Is it possible to run 'CBasic' on DSLRs?

    550d runs on SD Cards as well, but 5D uses CF.

    Is there anybody already testing?

    Greets

    ..::T3::..




    *

    Offline emlyn

    • **
    • 88
  • Publish
    Re: Dryos Basic scripting
    « Reply #31 on: 16 / August / 2010, 05:30:19 »
    Another oddity:
    I tried to use PostLogicalEvent* to switch to rec mode (exact same sequence as CHDK uses) and shoot pictures, but the events to switch to rec mode only get processed after the script ends, even if you Wait().

    Just a thought, but have you tried putting something in the Terminate function?
    Maybe the event gets processed after Initialize ends, rather than the whole script.

  • Publish
    Re: Dryos Basic scripting
    « Reply #32 on: 16 / August / 2010, 06:04:06 »
    @T3

    On one of your webpages you say "I've written a modified version of the 1.0.7 firmware image that uses the embedded DryOS to dump out the firmware."

    Is there any information  you can provide that would enable developers to do the same thing with Canon 2010 Point-and-Shoot cameras  ?


    *

    Offline zeno

    • *****
    • 843
  • Publish
    Re: Dryos Basic scripting
    « Reply #33 on: 16 / August / 2010, 07:10:06 »
    Mac OSX users can prepare cards for Canon Basic using my CBasicPrep app. See http://www.zenoshrdlu.com/clickpansdm/cbprep.html

    As well as writing the necessary "SCRIPT" string to the boot sector, it also creates the "script.req" file.
    A570, S100, Ixus 127
    Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit


    *

    Offline emlyn

    • **
    • 88
  • Publish
    Re: Dryos Basic scripting
    « Reply #34 on: 18 / August / 2010, 04:12:42 »
    I've tried the other buttons too, and a few combinations, but still no luck.

    In fact it works with the Ixus 130! It was a stupid mistake on my part that was preventing it (I had written the SCRIPT string to the partition instead of the disk).
    I have managed to flash LEDs and dump the firmware with it.

  • Publish
    Re: Dryos Basic scripting
    « Reply #35 on: 18 / August / 2010, 04:35:28 »
    Is there any information  you can provide that would enable developers to do the same thing with Canon 2010 Point-and-Shoot cameras  ?
    -->http://chdk.setepontos.com/index.php/topic,5045.msg53672.html#msg53672

    *

    Offline pixeldoc2000

    • ****
    • 355
    • IXUS900Ti 1.00C, IXUS300HS 1.00D
      • pixel::doc homebase
  • Publish
    Re: Dryos Basic scripting
    « Reply #36 on: 18 / August / 2010, 14:32:46 »
    "Hello World" from http://chdk.wikia.com/wiki/Canon_Basic#Hello_World does work on SD4000IS / IXUS300HS which is a 2010 camera.

    "Hello World" is barely visible, as its black text on black Screen where Camera says "No Image.". If you open the Menu you can see it.

    Note: It works only if there is not Photo/Video on the SD-Card when starting Camera in Playback Mode. A short press on "FUNC. / SET" will execute script. The text will "stick" at the screen till you switch of the Camera (will stay even in Photo Mode).

    Very nice!
    « Last Edit: 18 / August / 2010, 14:53:44 by pixeldoc2000 »

  • Publish
    Re: Dryos Basic scripting
    « Reply #37 on: 18 / August / 2010, 15:49:26 »
    2pixeldoc2000
    Please use dump script to get firmware from sd4000is and share it to us.


    *

    Offline pixeldoc2000

    • ****
    • 355
    • IXUS900Ti 1.00C, IXUS300HS 1.00D
      • pixel::doc homebase
  • Publish
    Re: Dryos Basic scripting
    « Reply #38 on: 18 / August / 2010, 16:30:36 »
    Please use dump script to get firmware from sd4000is and share it to us.
    Hehe, shure...  ;)

    I've dump SD4000IS / IXUS300HS Firmware 1.00d (2010 Camera Model) with http://chdk.wikia.com/wiki/Canon_Basic#CBasic_dumper.


    Thanx realIP and others for this is awesome work on Canon Basic!
    « Last Edit: 18 / August / 2010, 16:34:30 by pixeldoc2000 »

    *

    Offline ewavr

    • ****
    • 1057
    • A710IS
  • Publish
    Re: Dryos Basic scripting
    « Reply #39 on: 18 / August / 2010, 16:31:40 »
    Vxworks has PT_SetMessage and PT_UndispMessage but I'm not sure how they work.
    ControlViewEvent() is very similar to PT_SetMessage().
    So, "Hello, world!" program for A710 (VxWorks):
    Code: (vb) [Select]
    private sub Initialize()
     SystemEventInit()
     UI_RegistDebugEventProc()
     ControlViewEvent(0x18E, "Hello, world!")
     Wait(1000)
     ControlViewEvent(0x68, 0) ' Hide the message
    end sub
    Where 0x18E and 0x68 are "magic values" (camera dependent  :( ). For a540 , for example, these values are 0x18D and 0x66 respectively.
    Only one line can be displayed. Avoid of use "E18" string  :)

     

    Related Topics