// HACKER NEWS — CYBERSECURITY
Sierra digital cameras on the Apple II
After successfully adding support for the Kodak DC-50 camera in Quicktake for Apple II, I investigated what else was there that had vastly overblown “System requirements”.
Based on libgphoto2’s source code, I chose to give a closer look to what I (and they) call the “Sierra-class” cameras. There are a lot of cameras sharing the same class of protocol there, more than 80 models are referenced. Not all of them will be usable on Apple II, as my JPEG decoder is hardcoded to 640×480 images (de-hardcoding it would be possible, but memory and CPU expensive, and it’s already slow enough as is that I don’t want – yet – to even try decoding and scaling down 800×600 or 1024×768). Even limited to 640×480 cameras, this will open a number of options.
I bought a pair of very cheap Sanyo cameras on eBay (a VPC-G1 from 1995, also sold as Epson PhotoPC PCDC001 and Sierra Imaging SD640, and a VPC-G200 from 1997), and started my 2026 summer staycation implementing my driver: during the previous release cycle, leading to the Kodak DC50 support, I reworked my code so that cameras drivers are now modules with a defined interface. This allows my program to only load the relevant driver into memory, making Quicktake for Apple II extensible with an arbitrary number of drivers as long as it fits on the floppy!
Here’s my “skeleton” driver that does nothing but the boilerplate. It basically defines a bitfield of supported features, and 16 “API methods”, most of which being optional. The only required endpoints are _wakeup, _set_speed, _get_information and _get_picture.
In the end, my Sierra driver implements almost everything my program supports: all information fields (camera name, camera time, quality mode, flash mode, pictures taken, pictures remaining, battery status) are readable, flash and quality modes are settable, we can snap a picture, etc.
The libgphoto2 Sierra driver has made things very easy as it is functional and easy to understand. It’s sprinkled with a a few magic numbers here and there, but they were easy to make sense of and #define.
The only feature not available is sierra_get_thumbnail. It actually is implemented, because it is easy to fetch a thumbnail from the camera: it’s the same procedure as getting a picture, using two different camera registers. But it’s not wired in the UI, as the thumbnails are JPEGs. There is no way I have room to load the JPEG decoder in the UI program, where thumbs are displayed, so I left it out.
Another small annoyance with the Sierra cameras (at least the two Sanyos I have) is that it seems they cheaped out on the serial chip. I can talk to them at 115200bps on the PC, but not on the Apple II. Sigrok captures of the signals show that the start bits start too soon after the stop bits, and this confuses the Apple II’s ACIA 6551, which throws framing errors. So, speed is limited to 19200bps – even on the IIgs.
Only noting the cameras I tested with, this will add support for:
I strongly suspect that the following cameras might work out-of-the-box, but that is untested.: