From: Dale P. <DEP...@ed...> - 2012-01-11 00:37:02
|
Howdy, First surprise was that capture worked. When USB attached the lens normally has stayed retracted and closed. After the first command it extended, then took a picture. I guess I can run tethered, if I want. The rest of the information follows. (Unfortunately wrapped) Out of curiosity, what is the difference between Generic Image Capture and Open Capture? Vendor specific capture is rather obvious. Am I going down the right path, filling in the fields as I did before, this time adding TPT_CAP in the third field? I notice that on many of the Nikon cameras an additional bit was ORed in, with a name suggesting that there was something slightly broken about the capture. Presuming all is well, is this something you want me to do, and send you a patch, or is it so trivial that I've already given you enough information, and it's easier to do yourself? Thanks, Dale user@localhost ~ $ gphoto2 --capture-image New file is in location /store_00010001/DCIM/100NIKON/DSCN0665.NRW on the camera user@localhost ~ $ gphoto2 --list-config /main/settings/datetime /main/settings/fastfs /main/settings/capturetarget /main/imgsettings/imagesize /main/capturesettings/imagequality /main/other/5001 /main/other/5003 /main/other/5004 /main/other/5011 /main/other/d005 /main/other/d407 /main/other/d406 /main/other/d303 user@localhost ~ gphoto --summary Manufacturer: Nikon Corporation Model: P7100 Version: COOLPIX P7100V1.0 Serial Number: 000030101859 Vendor Extension ID: 0xa (1.0) Vendor Extension Description: microsoft.com: 1.0; Capture Formats: JPEG Display Formats: Undefined Type, JPEG, Association/Directory, DPOF, MS Wave, Apple Quicktime, Defined Type Supported MTP Object Properties: Undefined Type/3000: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name JPEG/3801: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth Association/Directory/3001: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name DPOF/3006: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Nam MS Wave/3008: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc89/Duration de93/SampleRate de94/NumberOfChannels de9a/AudioBitRate Apple Quicktime/300d: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc08/DateCreated dc09/DateModified dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dc89/Duration de93/SampleRate de94/NumberOfChannels de97/ScanDepth de9a/AudioBitRate de9b/VideoFourCCCodec de9c/VideoBitRate Defined Type/3800: dc01/StorageID dc02/ObjectFormat dc03/ProtectionStatus dc04/ObjectSize dc07/ObjectFileName dc0b/ParentObject dc41/PersistantUniqueObjectIdentifier dc44/Name dc87/Width dc88/Height dcd3/ImageBitDepth Device Capabilities: File Download, File Deletion, File Upload Generic Image Capture, No Open Capture, No vendor specific capture Storage Devices Summary: store_00010001: StorageDescription: None VolumeLabel: None Storage Type: Removable RAM (memory card) Filesystemtype: Digital Camera Layout (DCIM) Access Capability: Read-Write Maximum Capability: 4003463168 (3818 MB) Free Space (Bytes): 3929014272 (3747 MB) Free Space (Images): 205 Device Property Summary: Battery Level(0x5001):(read only) (type=0x2) Enumeration [2,5,25,50,65,80,100] value: 100% (100) Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [ '640x480', '1024x768', '1280x960', '1600x1200', '2048x1536', '2592x1944', '3264x2448', '2736x2736', '3584x2016', '3648x2432', '3648x2736' ] value: '3648x2736' Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [6,12,25] value: 127 Date & Time(0x5011):(readwrite) (type=0xffff) '20120110T202152' Property 0xd005:(read only) (type=0x4) Enumeration [1,2] value: 1 Property 0xd407:(read only) (type=0x6) 1 Property 0xd406:(readwrite) (type=0xffff) '' Property 0xd303:(read only) (type=0x2) 1 On 01/10/2012 06:14 AM, Marcus Meissner wrote: > Hi, > > there is nothing specific you need to do before you can > use it. > > just try: > gphoto2 --capture-image > also try: > gphoto2 --list-config > gphoto2 --summary > > please mail the --summary output. > > The -a output is from static tables without probing the > camera, thats why yiou see differencres. > > It might need PTP_CAP in the third field if capture image worked. > > Ciao, Marcus > > On Mon, Jan 09, 2012 at 09:23:25PM -0500, Dale Pontius wrote: >> Taking a quick look through the source, I added a line identifying the >> camera as 0x04b0 for Nikon and 0x018b as the P7100 model. (From lsusb) >> >> Strangely enough, this seems to reduce the capabilities I get. Using >> the straight libgphoto2 I get: >> ------------------ >> $ gphoto2 --auto-detect -a >> Model Port >> >> ---------------------------------------------------------- >> USB PTP Class Camera usb:002,004 >> Abilities for camera : USB PTP Class Camera >> Serial port support : no >> USB support : yes >> Capture choices : >> : Image >> Configuration support : yes >> Delete selected files on camera : yes >> Delete all files on camera : no >> File preview (thumbnail) support : yes >> File upload support : yes >> ------------------ >> Where after I've made the above mod to the source I get: >> ------------------ >> $ gphoto2 --auto-detect -a >> Model Port >> >> ---------------------------------------------------------- >> Nikon Coolpix P7100 (PTP mode) usb:002,003 >> Abilities for camera : Nikon Coolpix P7100 (PTP mode) >> Serial port support : no >> USB support : yes >> Capture choices : >> : Capture not supported by the driver >> Configuration support : no >> Delete selected files on camera : yes >> Delete all files on camera : no >> File preview (thumbnail) support : yes >> File upload support : yes >> ------------------ >> It appears that with my very minor (and simplistic) mod I've lost >> "Capture choices" and "Configuration support". Were they never really >> possible in the first place, and the "generic -a" was really fooling me? >> >> Another note... I didn't find a place that appears to generate the udev >> rules, but after installing my tweaked libgphoto2 never saw "018b" >> appear in the 70-libgphoto2.rules. (Now that I think of it, it's >> possible that Gentoo's ebuild system hid the update from me.) >> >> I just took another look at library.c... After the two words for the >> brand and model identifiers, there's that third field, a "0". Now I see >> that other cameras have other constants there. I see many of these >> defined in ptp-bugs.h, but not in a way that really tells me anything, >> or what I should have in place of that "0" for my P7100. (Or maybe it >> should be staying "0".) It's only present in library.c and ptp-bugs.h, >> using recursive grep from the top. >> >> Thanks for any insight, >> Dale Pontius >> On 01/09/2012 07:12 PM, Dale Pontius wrote: >>> This past fall I purchased a Nikon P7100. Though it isn't listed as >>> supported, I've been able to talk to it using "gphoto2 --auto-detect" >>> and gtkam with a little futzing. >>> >>> I wish it were officially supported, and I guess that means that I may >>> well need to do it, myself. I'm not terribly familiar, but I've >>> un-tarred the source, and joined these lists. (I'm running Gentoo, by >>> the way.) >>> >>> It looks to me as if I need to be in "libgphoto2-2.4.11/camlibs/ptp2" >>> and at the moment I'd take the P6000 stanzas and duplicate them, first >>> grabbing the specific USB info from my camera by running lsusb while >>> it's plugged in and turned on. >>> >>> I'm not sure how far I need to go beyond that. Might it also be >>> necessary to install ViewNX2 under WINE, turn on USB debugging, and >>> watch that talk to the camera? At the moment I'm less worried about >>> capabilities that I'm missing than I am about doing something wrong to >>> what I've got. >>> >>> Thanks, >>> Dale Pontius >>> >>> >>> ------------------------------------------------------------------------------ >>> Write once. Port to many. >>> Get the SDK and tools to simplify cross-platform app development. Create >>> new or port existing apps to sell to consumers worldwide. Explore the >>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join >>> http://p.sf.net/sfu/intel-appdev >>> _______________________________________________ >>> Gphoto-devel mailing list >>> Gph...@li... >>> https://lists.sourceforge.net/lists/listinfo/gphoto-devel >> >> >> ------------------------------------------------------------------------------ >> Write once. Port to many. >> Get the SDK and tools to simplify cross-platform app development. Create >> new or port existing apps to sell to consumers worldwide. Explore the >> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join >> http://p.sf.net/sfu/intel-appdev >> _______________________________________________ >> Gphoto-devel mailing list >> Gph...@li... >> https://lists.sourceforge.net/lists/listinfo/gphoto-devel >> |