Super New super Newbee :goto Super - end :-) (I/O question) - Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes) - CHDK Forum  

Super New super Newbee :goto Super - end :-) (I/O question)

  • 7 Replies
  • 2507 Views
Super New super Newbee :goto Super - end :-) (I/O question)
« on: 26 / December / 2010, 13:36:16 »
Advertisements
Hello to every one and Happy Xmas :xmas

I am at work away from home, and in the meanwhile i was looking for a Camera to buy once i put my feet back home.

Serching, serching, found Panasonic ,Fuji , "Canon". Liking the Timelapse i was more on the Panasonic UNTIL i discoverd CHDK!! :D

Now mi view is only CANON :D (But for now i still dont see nothing for SX30is)
I'am reading a lot of stuff, manuals, ect,ect, doing test with that nice Ubasic Debugger called UBDB :P
I have e doubt: Were do i find the list of Output and Input of the various cameras?Without knowing this I/O ,how is it possible to command/see the camera?
Is it possible to have the I/O from the camera, like the prosess for having the Firmware?
Is it possible to be "Online" in some way with the device to see what is doing? (Using USB port, even just to see the bits moving)

Sorry maybe to much questions, but i like this thing, i remeber my young days with my old C64 :P

HAPPY NEW YEAR
end

*

Offline reyalp

  • ******
  • 12586
Re: Super New super Newbee :goto Super - end :-) (I/O question)
« Reply #1 on: 26 / December / 2010, 15:04:42 »
I'm not really clear what you are asking. If you want to communicate between PC and camera, there is http://chdk.setepontos.com/index.php?topic=4338.0

If you mean how does the script communicate with the camera, then there are functions in CHDK that are made available to the script. If you use lua, you can also call firmware functions directly.
Don't forget what the H stands for.

*

Offline SkyWalker9

  • ****
  • 301
  • SX20 IS (fw 1.02b)
Re: Super New super Newbee :goto Super - end :-) (I/O question)
« Reply #2 on: 26 / December / 2010, 22:42:06 »
...But for now i still dont see nothing for SX30is...
Here SX30 IS porting forum can be found here: http://chdk.setepontos.com/index.php?topic=5900.0

Were do i find the list of Output and Input of the various cameras? Without knowing this I/O ,how is it possible to command/see the camera?...Is it possible to be "Online" in some way with the device to see what is doing?
From your description, I think you may be referring to the On-Screen-Display (OSD). The CHDK User Manual has examples of what you can expect for the various menus and their options. In addition, most scripts usually have lots of output info written to the OSD during processing and after completion. Scripts allow you to save information in text files on the camera SD card as well.

Here is the CHDK UserGuide 2009 in PDF format: http://chdk.wikia.com/wiki/File:CHDK_UserGuide_April_2009_A4.pdf

Here is a link to the various I/O screens for the CHDK menu system: http://chdk.wikia.com/wiki/CHDK_firmware_usage#Script_menu

Here is a link to the Scripts page http://chdk.wikia.com/wiki/UBASIC
(Note: to see an example of output while a script is running, select the "Running a Script - Exposure Bracketing" image displayed on this page)

Hope we've answered your questions.
« Last Edit: 26 / December / 2010, 22:55:35 by SkyWalker9 »

Re: Super New super Newbee :goto Super - end :-) (I/O question)
« Reply #3 on: 27 / December / 2010, 12:12:09 »
 :D thanks all for the attention.
For the guides i have them already and i read them.Now i'm reading Ubasic user guide+ UBDB, 46 pages,but after 2 days i'am still at page 17, making experiments :P
Yesterday i found also the LUA language and is Debugger Downloaded, but for now i'am still on Ubasic. Step at a time  :D

I saw the topic talking about the SX30is,but maybe better starting with something more old, and with no parallel viewfinder.

For the input/Output= I/O:Are the commands, If i press the shutter button,that gives a INPUT to the script,but if you dont know the input name the script will never know that you are pressing the button.
Same for the OUTPUT, if i dont know the name of the "shoot" command how can i make photos with the script.

Please dont laugh this is my Timelapse version0.00000000000000000000003 :haha
get_shooting= shutter button, i change the value with the UBDB Debugger (1=pressed,0=released)

I STILL DONT HAVE A CAMERA


@title My personal Timelapse
@param a TimeLapse
@default a 3
rem Lowest TIME
if a<=1 then a=3
c=a*1000

do
s=get_shooting
until s=1

do
s=get_shooting
until s<1

sleep3000
shoot
f=f+1
o=get_tick_count
:top
m=get_tick_count
p=m
:time
s=get_shooting
t=get_tick_count
y=t-p
if s=1 then goto "finish"
if y>=c then goto"print"
goto"time"
:print
shoot
f=f+1
goto"top"
:finish
z=get_tick_count-o
x=z/1000
print"N-Photo",f ,"in",x/60;"min-";x%60,"sec"
f=0
end
 :-X

Bye
« Last Edit: 29 / December / 2010, 14:47:25 by Wolfox »


*

Offline reyalp

  • ******
  • 12586
Re: Super New super Newbee :goto Super - end :-) (I/O question)
« Reply #4 on: 27 / December / 2010, 12:34:05 »
For the input/Output= I/O:Are the commands, If i press the shutter button,that gives a INPUT to the script,but if you dont know the input name the script will never know that you are pressing the button.
Same for the OUTPUT, if i dont know the name of the "shoot" command how can i make photos with the script.
So what you are asking is the name of the functions available. This unfortunately isn't documented in a single place (except the CHDK soruce: http://tools.assembla.com/chdk/browser/trunk )

Some places to start:
http://chdk.wikia.com/wiki/UBASIC/uBASIC_syntax
http://chdk.wikia.com/wiki/UBASIC/TutorialScratchpad
http://chdk.wikia.com/wiki/CHDK_firmware_usage/AllBest#Current_List_of_uBASIC_Operations_and_Commands:
http://chdk.wikia.com/wiki/CHDK_firmware_usagehttp://chdk.wikia.com/wiki/CHDK_firmware_usage/MoreBest#New_uBASIC_and_LUA_Scripting_Commands.21

Don't forget what the H stands for.

Re: Super New super Newbee :goto Super - end :-) (I/O question)
« Reply #5 on: 27 / December / 2010, 12:58:03 »
For the input/Output= I/O:Are the commands, If i press the shutter button,that gives a INPUT to the script,but if you dont know the input name the script will never know that you are pressing the button.
Same for the OUTPUT, if i dont know the name of the "shoot" command how can i make photos with the script.
So what you are asking is the name of the functions available. This unfortunately isn't documented in a single place (except the CHDK soruce: http://tools.assembla.com/chdk/browser/trunk )

Some places to start:
http://chdk.wikia.com/wiki/UBASIC/uBASIC_syntax
http://chdk.wikia.com/wiki/UBASIC/TutorialScratchpad
http://chdk.wikia.com/wiki/CHDK_firmware_usage/AllBest#Current_List_of_uBASIC_Operations_and_Commands:
http://chdk.wikia.com/wiki/CHDK_firmware_usagehttp://chdk.wikia.com/wiki/CHDK_firmware_usage/MoreBest#New_uBASIC_and_LUA_Scripting_Commands.21



Thanks!!! this i interesting.

EDIT: I reached the "get_"  "set_" part of the guide.Maybe now i "get_it" better. :D
ReEDIT: My Personal Timelapse now is precise like a swiss watch  :D
« Last Edit: 29 / December / 2010, 14:41:25 by Wolfox »

Re: Super New super Newbee :goto Super - end :-) (I/O question)
« Reply #6 on: 02 / January / 2011, 15:08:25 »
« Last Edit: 04 / January / 2011, 13:08:57 by Wolfox »

Re: Super New super Newbee :goto Super - end :-) (I/O question)
« Reply #7 on: 04 / January / 2011, 13:07:50 »
« Last Edit: 04 / January / 2011, 13:15:07 by Wolfox »


 

Related Topics