you can send and i will test and report
I've managed to work through reyalp's
multicam.lua script and convert it for my project. There were a few trick to learn along the way as I'm planning on having the camera-side script autostart on the cameras rather than download & run from the host script. That will allow getting the USB remote setup correct each time the camera boots and will also support the assignment of sequential camera numbering at the camera by their position on the shooting rig.
Of course this meant a journey into the mysteries of
usb_msg_table_to_string() and the dreaded "
script_id" mechanism.
At this point, there are more things to do than there are things done. However, it will connect to multiple cameras (currently five in my case - I guess can go to seven with what I have around the house), shoot with USB remote sync enabled, and download the latest images.
Here's a link to the two scripts :
bcam.zip bcamHost.lua runs on the PC from the same directory as multicam.lua,
bcamRem.lua needs to be on the camera and running. If you need to halt the script on the camera, press the shutter button and things will shutdown cleanly.
To make this work at the moment, you really need a chdkptp installed and running. Once that's running, these two command line entries will trigger a shoot, and download the result :
> run -e"exec bc=require('bcamHost') bc:connect() bc:cmdwait('shoot')"
> run -e"exec bc=require('bcamHost') bc:connect() bc:download_last()"
Mapping the downloaded images into directories (or filenames) based on camera ID number is still to be done. At some point I need to decide on a Gui. AutoIT vs IUP/Canvas Draw? Decision, decisions ...
Update : I've started a wiki page for
Shooting with Multiple Cameras using CHDK projects. There is a growing list of links at the bottom - additional contributions would be most welcome.