photo
Jordan Sissel
geek

Sat, 25 Nov 2006

gphoto2 with Nikon Coolpix 5200

My version of gphoto2 doesn't include support for Wendy's digital camera. Googling shows that this camera supports two transfer modes: mass storage and PTP. Mass storage is where the camera shows up as a removable drive. PTP is a protocol developed by Kodak(?) for transferring data from cameras.

Gphoto2 supports PTP on other Nikon Coolpix cameras, just not the 5200 model. In freebsd, I use usbdevs(8) to show me the usb vendor and product id.

% sudo usbdevs -v | grep NIKON
 port 1 addr 2: full speed, power 2 mA, config 1, NIKON DSC E5200(0x0205), NIKON(0x04b0), rev 1.00
The vendor id is 0x04b0 and the product is 0x0205. Looking around online finds the Nikon Coolpix 5400 with a product id of 0x0119. gphoto2 allows you to force a given usb vendor:product key to be treated as another. Super useful.

The following will download all media files from the camera, masquerading the 5200 model as 5400.

gphoto2 --usbid 0x04b0:0x0206=0x04b0:0x0119 -P

Comments: 0 (view comments)
Tags: ,
Permalink: /geekery/gphoto2-Nikon-Coolpix-5200
posted at: 17:53

Search this site

Navigation

Metadata

Home About Resume My Code (SVN)

Articles

ARP Security Dynamic DNS with DHCP OpenLDAP+Kerberos+SASL PPP over SSH SSH Security: /bin/false Week of Unix Tools Work Efficiency

Projects

fex firefox tabsearch firefox urledit grok keynav liboverride newpsm (FreeBSD) nis2ldap pam_captcha poor man's backup Solaris audio utility xboxproxy xdotool xmlpresenter xpathtool misc scripts

Presentations

Yahoo! Hack Day '08 Yahoo! Hack Day '06 Unix Essentials Vi/Vim Essentials SSH Tunneling (Video)

Tag Cloud

Calendar

< November 2006 >
SuMoTuWeThFrSa
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
2627282930  

Friends

BarCamp Kent Brewster Tantek Çelik John Resig Wesley Shields Tyler Shields

Technorati