Sudden, unexpected success!!!
While I was writing my last post, I started wondering if the issues I was experiencing were 'permissions based'.. 'owenership' of the USB port having been mentioned somewhere in my research.
So I decided to double check that my bash-script based installation of chdkptp, which I run as the default Raspberry Pi user user 'pi' (as opposed to multilapse via sudo root), was in fact still working.
On my first attempt to run the script I was shocked to find a fail with the same exact error I've been getting with multilapse:
pi@raspberrypi_Zero-01:~/share/scripts $ ./CHDK_remote_15.sh
ERROR: unrecognized argument delete DCIM
CHDK PTP control utility
Usage: chdkptp [options]
Options:
-g start GUI - default if GUI available and no options given
-i start interactive cli
-c connect at startup, with optional device spec e.g. -c"-d001 -bbus-0"
-e execute cli command, multiple allowed, e.g -e"u DISKBOOT.BIN" -ereboot
-r specify startup command file, if no file given skip default startup files
-h help
open_camera_dev_usb: ptp_opensession failed 0x2ff
open_camera_dev_usb:usb_ptp_device_reset(): Device or resource busy
usb_ptp_get_device_status(): Device or resource busy
connected: Canon IXUS 160, max packet size 512
ERROR: switch failed
ERROR: already in playI have had the occasional failure with my script which I've sometimes put down vaguely to either the presence (or lack of) of a DCIM folder. So this time, I put the camera into none-chdk ie. Canon mode, having established that there was no DCIM folder present, took a single image (thereby creating a DCIM folder), before attempting another run.
The second run worked just fine so I proceeded to fire up multilapse and BOOM!
Multilapse has been shooting away merrily every 60 seconds for the last 40 minutes and uploading to my website.
Could it be something as simple as a lack of a DCIM folder causing the problem?
I just tried multilapse on my second IXUS160 and it's working fine too.
Great to have it working but the inconsistency is a little troubling