Reading out the Shutter Count of Canon EOS Cameras

Reading out the Shutter Count of Canon EOS Cameras

Reposted from: http://www.twam.info/software/read-out-canon-eos-7d-shuttercount-on-os-x

 

Read out Canon EOS 7D shutter count on OS X

If you own a Digital single-lens reflex (DSLR) camera you might want to read out the shutter count. For my Canon EOS 7D this can be done very easily using gPhoto2. gPhoto2 is a free open-source tool which supports more than 1300 cameras. As it is written for Unix-like systems it can be compiled for OS X very easily. If you have Homebrewinstalled, you can install it easily via the terminal by running

brew install gphoto2

Homebrew will install some libraries and gphoto2. Now we can switch on the camera and connect it by USB. If we ask gPhoto2 to query all support config options by

gphoto2 --list-config

we might receive an error like

An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (m). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***

This is because OS X starts the Picture-Transfer-Protocol daemon which occupies the device. We can quit the daemon by

killall PTPCamera

If we now try again to readout the support config options by

gphoto2 --list-config

we should receive a list like

/main/actions/bulb
/main/actions/uilock
/main/actions/syncdatetime
/main/actions/autofocusdrive
/main/actions/manualfocusdrive
/main/actions/eoszoom
/main/actions/eoszoomposition
/main/actions/eosviewfinder
/main/settings/datetime
/main/settings/reviewtime
/main/settings/output
/main/settings/evfmode
/main/settings/ownername
/main/settings/artist
/main/settings/copyright
/main/settings/capturetarget
/main/settings/capture
/main/status/model
/main/status/ptpversion
/main/status/batterylevel
/main/status/lensname
/main/status/serialnumber
/main/status/shuttercounter
/main/status/availableshots
/main/imgsettings/imageformat
/main/imgsettings/imageformatcf
/main/imgsettings/imageformatexthd
/main/imgsettings/iso
/main/imgsettings/whitebalance
/main/imgsettings/whitebalanceadjusta
/main/imgsettings/whitebalanceadjustb
/main/imgsettings/whitebalancexa
/main/imgsettings/whitebalancexb
/main/capturesettings/exposurecompensation
/main/capturesettings/autoexposuremode
/main/capturesettings/drivemode
/main/capturesettings/picturestyle
/main/capturesettings/shutterspeed
/main/capturesettings/meteringmode
/main/capturesettings/bracketmode
/main/capturesettings/aeb
/main/other/d402
/main/other/d407
/main/other/d406
/main/other/d303

Now, we can read out one of these config options, e.g. the shutter count, by running

gphoto2 --get-config /main/status/shuttercounter

which results in

Label: Shutter Counter
Type: TEXT
Current: 4930

The 4930 fits perfectly to the number of pictures I made with my Canon EOS 7D.

 
    • Related Articles

    • Punctuation and Reading for Details are Important!

      Punctuation can mean very different things. Such as known examples: Let's eat, grandma! Let's eat grandma! In the case of company names. We see some common confusions between different companies with different names. US Tech Support Solutions, LLC ...
    • Don't Get Blindsided by Unexpected Charges: Why Reading What You Agree to Matters

      The importance of reading what you agree to The inclusion of terms and conditions in various forms of communication, such as emails and popups, is becoming more and more common in the modern digital era. It's critical to realize that you might ...
    • How failure to read can hurt the business you support

      In today's fast-paced business world, it is crucial for individuals and companies to carefully read and understand the contracts they sign. Failing to do so can have detrimental effects on both parties involved, leading to misunderstandings, ...
    • Everything you need to know about hiring a photographer!

      Photographers, everyone thinks they are one. It’s so easy to go out, buy a camera and shoot on auto. Though there are the few of us who know what we are doing and can get you more publicity than anyone else. Which is why you hire a photographer in ...
    • The truths about Tesla

      I've had my Model 3 Standard Range Plus w/ FSD (full self driving) for about 3 weeks now, and have put about 1300 miles on it. Let me tell you right from the horse's mouth. It's the best car I've ever driven. I keep reading all this hate, ignorance ...