supplierdeeply

shooting script using Canon basic ?

  • 42 Replies
  • 19398 Views
*

Offline reyalp

  • ******
  • 11591
Re: shooting script using Canon basic ?
« Reply #10 on: 06 / September / 2018, 13:36:22 »
Advertisements
Nice work @srsa_4c  :D

FWIW, from the notes on https://chdk.wikia.com/wiki/Event_Procedure#UI_RegistDebugEventProc_.2F_UI.Create  UI_RegistDebugEventProc / UI.Create should register all the button events by name, which might be more convenient for scripting. (edit: but may have side effects)
« Last Edit: 06 / September / 2018, 14:25:07 by reyalp »
Don't forget what the H stands for.

Re: shooting script using Canon basic ?
« Reply #11 on: 08 / September / 2018, 06:46:32 »
Start the cam in playback mode and press SET.
The cam should do the following:
- display Init at the top of the screen - this text will change later
- switch to rec mode
- take 3 shots (this will only succeed if there is nothing preventing the cam from shooting)

I've created both files to the root of the SD, do I need to have SCRIPT in the boot sector?  How do you start the camera directly in playback mode?  ...mine start automatically in record
« Last Edit: 08 / September / 2018, 06:49:18 by cedricb »

*

Offline srsa_4c

  • ******
  • 3728
Re: shooting script using Canon basic ?
« Reply #12 on: 08 / September / 2018, 07:22:05 »
I've created both files to the root of the SD, do I need to have SCRIPT in the boot sector?
The card needs to be setup to run scripts (so yes, you need the string in boot sector and the script.req file): http://chdk.wikia.com/wiki/Canon_Basic/Card_Setup
Quote
  How do you start the camera directly in playback mode?  ...mine start automatically in record
Start the cam with the playback button (the one at the bottom with the arrow).

Re: shooting script using Canon basic ?
« Reply #13 on: 08 / September / 2018, 12:33:41 »
If anyone wants to try: the address in the CreateTask call needs to be adapted to each camera and firmware version. Post here (your camera model and its fw version) if you're unsure.
How can I find the address for my G1x  100e or M3  101a?

For this cam, use the following extend.m script:
With the correct address I should be also work on G1x and M3?

Is the Canon basic independent if the cam has a powershot or EOS firmware?
It looks like the Canon at the M50 has gone back to an EOS firmware ...





*

Offline srsa_4c

  • ******
  • 3728
Re: shooting script using Canon basic ?
« Reply #14 on: 08 / September / 2018, 14:21:10 »
How can I find the address for my G1x  100e or M3  101a?
g1x 100e
0xFF029A9C

m3 101a
0xFC0AB761
Quote
With the correct address I should be also work on G1x and M3?
Probably, but I did not check. Button events might differ, but I don't think that's likely.
Reyalp's hint works (button events by name), but I won't modify this test script.
Quote
Is the Canon basic independent if the cam has a powershot or EOS firmware?
AFAIK real EOS cameras don't have Canon Basic.
Quote
It looks like the Canon at the M50 has gone back to an EOS firmware ...
See here...

Re: shooting script using Canon basic ?
« Reply #15 on: 09 / September / 2018, 03:52:01 »
Probably, but I did not check. Button events might differ, but I don't think that's likely.
On the g1x it’s works very well. Text on the top is visible. I haven’t checked M3.
AFAIK real EOS cameras don't have Canon Basic.
What would you expect in the M50 (or EOS R)?

*

Offline Ant

  • ****
  • 369
Re: shooting script using Canon basic ?
« Reply #16 on: 09 / September / 2018, 08:43:27 »
Quote
It looks like the Canon at the M50 has gone back to an EOS firmware ...

There is a discussion about M50 and other new EOS cameras.
« Last Edit: 09 / September / 2018, 08:57:38 by Ant »

Re: shooting script using Canon basic ?
« Reply #17 on: 12 / September / 2018, 10:24:42 »

Quote from: srsa_4c
The card needs to be setup to run scripts (so yes, you need the string in boot sector and the script.req file): http://chdk.wikia.com/wiki/Canon_Basic/Card_Setup
...fine, I've setup the card based on the bash script from the wiki page (with the default hello word to start with)

Quote from: srsa_4c
Start the cam with the playback button (the one at the bottom with the arrow).
The M6 has a rocker power switch, that's why I've asked... :-)
I've tried to hold the play button and then rock the switch to on but nothing happen when I press the SET button
« Last Edit: 12 / September / 2018, 10:31:20 by cedricb »


*

Offline srsa_4c

  • ******
  • 3728
Re: shooting script using Canon basic ?
« Reply #18 on: 12 / September / 2018, 11:23:21 »
The M6 has a rocker power switch, that's why I've asked... :-)
I missed that detail. But, somehow, M5 and M6 users were able to run scripts - for example, here.
Quote
I've tried to hold the play button and then rock the switch to on but nothing happen when I press the SET button
I guess you should switch the cam on then press playback then press SET (since, apparently, there is no way to start the cam directly in playback mode).

Re: shooting script using Canon basic ?
« Reply #19 on: 12 / September / 2018, 13:45:39 »
I missed that detail. But, somehow, M5 and M6 users were able to run scripts - for example, here.
I've formatted a 64G card to FAT32 and done:
  • echo -n SCRIPT | dd bs=1 count=6 seek=496 of=/dev/mmcblk0
  • then created script.req and extend.m

 

Related Topics