A guess: CHDK is able to mask the USB bit. If you know for sure that USB data connection is available, you could set/unset the USB bit independently from the hardware... It's just not a CHDK feature yet.
Update : I suppose we could change the USB remote enable to allow a read only mode as well as the current OFF & ON modes
Reading through this thread and the others linked from it, it's not clear to me how nafraf gets all his cameras to enable/disable the USB remote functionality locally so that PTP communications can be used interchangably with CHDK USB remote 5V sync? But then nafraf has done quite a bit of CHDK porting work and is quite capable of spinning a custom version to support that I guess?
You could also switch in/out of usb remote mode using set_config_value. You'd need to take some care to not lock yourself out of PTP or be stuck with a camera side script running, but it's definitely possible.
Ummm ... how would that work?If you did it over a chdkptp link, wouldn't you immediately crash the link?
CHDK is able to mask the USB bit. If you know for sure that USB data connection is available, you could set/unset the USB bit independently from the hardware...
A script started over PTP isn't affected by the PTP connection going away.so in ptp you do the usual .loadfile('A/foo.lua')()foo.lua would set_config_value to enable USB remote (edit: your client would get disconnected here. If you want a chance to disconnect cleanly, you could just have a delay in the script)The next question is how you get back to PTP mode. If the script ends, and your remote is ON, you'll be stuck.If the script stays running, then it could handle the shooting based on the remote signal, but I'm not sure how this interacts with sync? Alternatively, the script could just use exit_alt() and go into a sleep loop waiting for the shot to happen (based on exposure count perhaps?) and disable remote once it's done to switch back to ptp mode.
Sounds a bit tricky to get it just right.
But then if the option to only enable USB remote when the camera is in shooting mode is implemented, I guess its the same issue. How does a script reliably know when to disable the USB remote and/or switch to playback mode ?
Started by mweerden « 1 2 ... 124 125 » General Discussion and Assistance
Started by jbaiter General Discussion and Assistance
Started by Peter Machtschuß General Discussion and Assistance
Started by andrew.stephens.754365 Hotwire! Hardware Mods, Accessories and Insights
Started by reyalp General Discussion and Assistance