Canon IXUS - s10sh

The contents of this page were taken from the s10sh README.

Command Line Options

s10sh accepts the following command line options:

-D enable debug mode
-d set the serial device, default /dev/ttyS0
-a enable A50/Pro70 compatibility mode
-s set the serial speed (9600 19200 38400 57600 115200)
-u USB mode, default is serial mode
-g non-interactive mode, get all images
-l non-interactive mode, list all images
-E non-interactive mode, delete all images
-h show this help screen reports)

Example

  s10sh -d /dev/ttyS1  -- start the program in serial mode, COM2.

  s10sh -u             -- start the program in USB mode.

  s10sh -ug            -- get all images in USB mode.

Interactive Mode

If you are able to use a command line ftp client you can use S10sh. When you start the program S10sh contacts the camera and shows a prompt like this:
  [Canon PowerShot S10] D:>
  
The format is [CAMERA ID] [CURRENT PATH]>

Now you can use ls or cd that are aliases in order to walk among directories. The commands are:

help show this help screen
open open the camera
reopen close and open the camera
close close the connection with the camera
speed [speed] change the serial speed
quit close the camera and quit the program
ping ping four times the camera
clear clear the screen under some terminal types
id show the camera id
date show the internal date of the camera
disk show the CF disk letter
diskinfo <disk> show disk information
ls | cd | dir change to and list the specified directory
lastls show the last cached directory listing
get <pathname> get the specified image
getall get all the files in the current directory
getallold get all the old files in the current directory
getallnew get all the new files in the current directory
tget <pathname> get the specified image as thumbnail
view <pathname> view the thumbnail using xv
viewall view all thumbnails in the current directory
power show informations about power status
overwrite switch on/off the overwrite mode, when overwrite mode is ON the old files will be overwritten with the new files. For default ovewrite mode is turned OFF.
mkdir <dirname> create a directory
rmdir <dirname> remove a directory
debug (DEBUG) turn the debug on/off
getpkt (DEBUG) wait for a packet from the camera
test (DEBUG) send the specified request and wait for data
rm | delete <filename> remove a file in the current path
deleteall remove all files in the current directory
deleteold remove downloaded files in the current directory
deletenew remove new files in the current directory
protect <filename> set the protected flag (in the current path)
unprotect <filename> clear the protected flag (in the current path)
new <filename> clear the downloaded flag (in the current path)
newall exec new against all files in the current directory
old <filename> set the downloaded flag (in the current path)
oldall exec old against all files in the current directory
protectall protect all files in the current directory
unprotectall unprotect all files in the current directory
upload <source> [dest] upload a file (USB only)
some command is not available in both serial and USB mode.

A directory entry has the following format:

  --n-  IMG_0852 JPG          53k  Fri Jun 23 19:11:40 2000

The first 4 characters are the file attributes, the flags are:
p--- -i-- --n- ---e or combinations:

p protected
i directory
n the file was not downloaded, alias "new" file. if the file does not have the 'n' flags it is "old". So you can guess how the commands with "new" or "old" postfix works.
edirectory entered with recursion.

An example of session

PowerShot SH -- version 0.0.1
Copyright (C) 2000 by Salvatore Sanfilippo <antirez@invece.org>
S10sh is FREE SOFTWARE under the terms of the GNU public license

Open /dev/ttyS0: OK
Sync: .....
::Canon PowerShot A5::
Switching to 115200 bound ..OK
[Canon PowerShot S10] D:> ls

DCIM          <DIR>        Thu Jun  8 20:41:56 2000
        1 files      0 bytes

[Canon PowerShot S10] D:> cd dcim

102CANON      <DIR>        Thu Jun  8 20:41:56 2000
CANONMSC      <DIR>        Fri Jun  9 00:16:10 2000
        2 files      0 bytes

[Canon PowerShot S10] D:\dcim> cd 102canon

IMG_0252 JPG        1809k  Thu Jun  8 20:42:52 2000
IMG_0253 JPG         210k  Thu Jun  8 20:54:44 2000
        2 files      2068073 bytes

[Canon PowerShot S10] D:\dcim\102canon> get img_0253.jpg
Getting D:\dcim\102canon\img_0253.jpg, 215388 Kbytes
0------------------25------------------50------------------75----------------100
................................................................................
Downloaded in 36 seconds, 5983 bytes/s
get successful
[Canon PowerShot S10] D:\dcim\102canon> exit
bye!