CHDK: Difference between revisions
Line 24: | Line 24: | ||
</pre> | </pre> | ||
Despite showing up as a valid camera, no remote control is | Despite showing up as a valid camera, no remote control is available. | ||
'''building chdkptp''' | |||
macOS: | |||
<pre> | |||
brew install lua libusb | |||
brew install --force readline | |||
svn co http://subversion.assembla.com/svn/chdkptp/trunk/ chdkptp | |||
cd chdkptp | |||
cp config-sample-linux.mk config.mk | |||
</pre> | |||
edit config.mk | |||
replace LUA_INCLUDE_DIR and LUA_LIB with the following values | |||
<pre> | |||
LUA_INCLUDE_DIR=/usr/local/opt/lua/ | |||
LUA_LIB=lua | |||
</pre> | |||
edit Makefile so that the line around 111 with the main LDFLAGS definition reads | |||
<pre> | |||
LDFLAGS+=$(LIB_PATHS) -L/usr/local/opt/readline/lib $(patsubst %,-l%,$(LINK_LIBS) $(SYS_LIBS)) | |||
</pre> | |||
continue to build | |||
<pre> | |||
make | |||
</pre> | |||
Edit [https://app.assembla.com/spaces/chdkptp/subversion/source/HEAD/trunk/README-OSX.TXT#ln26 chdkptp-sample.sh] | |||
run chdkptp-sample.sh | |||
<pre>./chdkptp-sample.sh</pre> | |||
== Scripting == | == Scripting == | ||
Once installed, it is possible to write scripts in the Lua language which run directly on the camera. There is a [https://library.noisebridge.net/detail/1303/ Lua reference] in the Noisebridge [[Library]]. | Once installed, it is possible to write scripts in the Lua language which run directly on the camera. There is a [https://library.noisebridge.net/detail/1303/ Lua reference] in the Noisebridge [[Library]]. |
Revision as of 19:53, 3 March 2017
This is the Canon Hack Development Kit. It could be used to overwrite firmware which limits the functionality of Canon PowerShot models of cameras.
It can also brick a camera. The distinction seems difficult to determine.
Installation
The wiki says you are supposed to run ACID to determine the version of the firmware on the PowerShot A2500 that belongs to Noisebridge.
ACID says the camera works but it can't download what I want :(
Operation
Remote Control requires a special PTP extension. From there it appears there are some helpful utilities. There is some low quality information regarding building the computer PTP interface on OS X. Not sure about macOS.
Canon PowerShot A2500 operation in CHDK PTP Extension mode
$ gphoto2 --auto-detect Model Port ---------------------------------------------------------- Canon PowerShot A2500 usb:036,001
Despite showing up as a valid camera, no remote control is available.
building chdkptp
macOS:
brew install lua libusb brew install --force readline svn co http://subversion.assembla.com/svn/chdkptp/trunk/ chdkptp cd chdkptp cp config-sample-linux.mk config.mk
edit config.mk
replace LUA_INCLUDE_DIR and LUA_LIB with the following values
LUA_INCLUDE_DIR=/usr/local/opt/lua/ LUA_LIB=lua
edit Makefile so that the line around 111 with the main LDFLAGS definition reads
LDFLAGS+=$(LIB_PATHS) -L/usr/local/opt/readline/lib $(patsubst %,-l%,$(LINK_LIBS) $(SYS_LIBS))
continue to build
make
Edit chdkptp-sample.sh
run chdkptp-sample.sh
./chdkptp-sample.sh
Scripting
Once installed, it is possible to write scripts in the Lua language which run directly on the camera. There is a Lua reference in the Noisebridge Library.