Hi,
I asked gThumb developer if import from usb-mass storage device could be possible and I got answer, that all import is done by libgphoto2. So I'm writing here.
Originally I was interested in importing photo from Nokia N73 (has more usb connection modes), but generally from any device would be great.
Here is original post to gThumb http://bugzilla.gnome.org/show_bug.cgi?id=415265
So is there a way to use libgphoto2 to import from nokia?
If it is not, please take this as feature suggest.
I hope I selected right category and that I don't waste your time, because I checked web and didn't find anything about usb-mass-storage and libgphoto2.
Thank you very much
Logged In: YES
user_id=853476
Originator: NO
What version of libgphoto2 do you have? The USB mass storage driver was added in 2.2.x. See http://sourceforge.net/tracker/index.php?func=detail&aid=1581262&group_id=8874&atid=108874.
I'm not familiar with the N73, so I can't say if that driver really is appropriate. Maybe some one else knows.
- Mike
Logged In: YES
user_id=48092
Originator: NO
what is reported with "lsusb -v" when you attach the N73?
Logged In: YES
user_id=27487
Originator: NO
Also the Mass Storage support require that the camera be mounted... and also that the camera conform to the DCF specification (that define the filesystem layout).
Logged In: YES
user_id=1710334
Originator: YES
#lsusb -v gives:
Bus 003 Device 002: ID 0421:0487 Nokia Mobile Phones
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0421 Nokia Mobile Phones
idProduct 0x0487
bcdDevice 1.00
iManufacturer 1 Nokia
iProduct 2 Nokia N73
iSerial 3 352757017883595
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 Bulk transfer method configuration
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 5 USB Mass Storage Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0001
Self Powered
I do have libgphoto2-2 version 2.2.1-16 (powerpc debian unstable).
Maybe problem might be N73 does not have any "DCIM" folder, it stores pictures under "Images" folder.
Logged In: YES
user_id=1710334
Originator: YES
Hi, I just wanted to ask if there is some progress on supporting n73 with libgphoto2 ? I tried even USB PTP camera mode, as the mobile can this, but gthumb reported, that camera was not recognized. I'm thinking about running to fspot, because lack of the import function in gthumb makes it not very comfortable.
So please let me know if there is anything new about this issue.
Thank you very much
Logged In: YES
user_id=27487
Originator: NO
lsusb when the camera is in PTP mode?
What's wrong with using it in Mass Storage mode as in that case you just have to deal with files like you would do on your harddrive....
Logged In: YES
user_id=48092
Originator: NO
the ptp mode will work once you have the ID in camlibs/ptp2
It will then detach the mass storage driver automatically and
able to access it.
current SVN does have the ID, but 2.4.0 did not.
Logged In: YES
user_id=1710334
Originator: YES
marcus> it looks good, so I'll wait until the code gets stable and into debian. if it would need just entering ID in some text file it would be cool, but i don't want to recompile many libraries. thanks
hubert> as marcus wrote it sould be solved by now in svn, so i'll wait. just for sure lsusb -v for nokia pictbridge mode. thanks for your reply
Bus 003 Device 002: ID 0421:0488 Nokia Mobile Phones
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0421 Nokia Mobile Phones
idProduct 0x0488
bcdDevice 1.00
iManufacturer 1 Nokia
iProduct 2 Nokia N73
iSerial 3 352757017883595
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 9984
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 Bulk transfer method configuration
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 6 Imaging
bInterfaceSubClass 1 Still Image Capture
bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
iInterface 5 SICD Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x4000 1x 0 bytes
bInterval 10
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x4000 1x 0 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x4000 1x 0 bytes
bInterval 0
Device Status: 0x0001
Self Powered
Logged In: YES
user_id=48092
Originator: NO
in this mode,
gphoto2 --auto-detect
should show USB PTP Class Camera already.
try:
gphoto2 -L
gphoto2 --summary
Logged In: YES
user_id=1710334
Originator: YES
Hi,
I tried, but nothing more than with gthumb, i think I have to wait until next release with N73 specific code in it.
gphoto2 --auto-detect
Model Port
----------------------------------------------------------
USB PTP Class Camera usb:
gphoto2 -L
There is no file in folder '/'.
There is no file in folder '/store_00000001'.
There is no file in folder '/store_00000002'.
There is no file in folder '/store_00000003'.
There is no file in folder '/store_00000004'.
gphoto2 --summary
Camera summary:
Model: N73
device version: (null)
serial number: 352757017883595
Vendor extension ID: 0x00000000
Vendor extension description: (null)
Capture Formats:
Display Formats: JPEG, TIFF EP
Device Capabilities:
File Download, No File Deletion, File Upload
No Image Capture, No Open Capture, No vendor specific capture
Storage Devices Summary:
store_00000001:
StorageDescription: None
VolumeLabel: C
Storage Type: Builtin RAM
Filesystemtype: Undefined
Access Capability: Read-Write
Maximum Capability: 46498816 (44 MB)
Free Space (Bytes): 15239168 (14 MB)
Free Space (Images): -1
store_00000002:
StorageDescription: None
VolumeLabel: D
Storage Type: Builtin RAM
Filesystemtype: Undefined
Access Capability: Read-Write
Maximum Capability: 16480256 (15 MB)
Free Space (Bytes): 16478208 (15 MB)
Free Space (Images): -1
store_00000003:
StorageDescription: None
VolumeLabel: E
Storage Type: Removable RAM (memory card)
Filesystemtype: Undefined
Access Capability: Read-Write
Maximum Capability: 2057437184 (1962 MB)
Free Space (Bytes): 485097472 (462 MB)
Free Space (Images): -1
store_00000004:
StorageDescription: None
VolumeLabel: Z
Storage Type: Builtin RAM
Filesystemtype: Undefined
Access Capability: Read-Write
Maximum Capability: 0 (0 MB)
Free Space (Bytes): 0 (0 MB)
Free Space (Images): -1
Device Property Summary:
Logged In: YES
user_id=48092
Originator: NO
strange that it shows space used, but no files in it.
Can you also do:
gphoto2 -L --debug --debug-logfile=xx.log
and attach xx.log please?
Logged In: YES
user_id=1710334
Originator: YES
Here, hope it helps.
File Added: n73.log
there are no photos in the trace. So it might not present them via PTP :/
Very strange, becuase the other phones usually do that.
There isnt much we can do here, but I have added the ID.