Re: Retrieving photos via gphoto2
> [snip]
>
> Did you ever actually run:
> # env LANG=C gphoto2 --debug -L
> # env LANG=C gphoto2 --debug --auto-detect
Yes. The output from the first command is listed below.
However, in trying to capture the output, I had one of those
"moments" where it started working again. I have narrowed it
down to a particular sequence. It seems to go like this:
gphoto2 is unable to work with the camera, error codes are
returned, either:
canon_usb_lock_keys: Unexpected return of 0 bytes (expected 820) from "get picture abilities."
or:
Could not apply USB settings
or:
Error (-37: 'Error updating the port settings')
I then restart hotplug. The initial "gphoto2 -L" does not work
(returns "Error (-102: 'Corrupted data')" message), but my second
attempt works, and continues to work.
Before I get too excited, if I then switch the camera off and
then on again, and then try the gphoto2 commands, one of the
same error messages above are returned again, until I restart
hotplug once more (where, again, it fails first time, but
succeeds on the second attempt).
Any ideas?
Best wishes,
David Joyce
ps. apologies for the formatting of my first e-mail - just getting
used to this new account!
==========
# env LANG=C gphoto2 --debug -L
[snip]
0.127781 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b5). Make sure this device is connected to the computer.
0.128255 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x309a)... found.
0.128602 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
0.129044 gphoto2-abilities-list.c(2): Found 'Canon PowerShot A80 (normal mode)' (0x4a9,0x309a)
0.129406 gphoto2-port-info-list(2): Getting info of entry 7 (9 available)...
0.130856 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
0.131481 gphoto2-port(2): Setting settings...
0.131781 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
0.132288 gphoto2-port(0): Could not find USB device (vendor 0x553, product 0x202). Make sure this device is connected to the computer.
[snip]
0.330883 gphoto2-port(2): Freeing port...
0.331199 gphoto2-port(2): Closing port...
0.331702 gphoto2-camera(2): Setting abilities ('Canon PowerShot A80 (normal mode)')...
0.332373 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.372607 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.373397 gphoto2-setting(2): Setting key 'model' to value 'Canon PowerShot A80 (normal mode)' (gphoto2)
0.373778 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings"
0.374553 gp-port-info-list(2): Loading io-drivers from '/usr/lib/gphoto2_port/0.5.1'...
0.375315 gphoto2-port-serial(2): Trying to lock '/dev/ttyS0'...
0.375944 gphoto2-port-serial(2): Trying to lock '/dev/ttyS1'...
0.376427 gphoto2-port-serial(2): Trying to lock '/dev/ttyS2'...
0.376796 gphoto2-port-serial(2): Trying to lock '/dev/ttyS3'...
0.377173 gphoto2-port-serial(2): Trying to lock '/dev/ttyS4'...
0.377545 gphoto2-port-serial(2): Trying to lock '/dev/ttyS5'...
0.377875 gphoto2-port-serial(2): Trying to lock '/dev/ttyS6'...
0.378207 gphoto2-port-serial(2): Trying to lock '/dev/ttyS7'...
0.378522 gphoto2-port-serial(2): Trying to lock '/dev/ttyS8'...
0.378838 gphoto2-port-serial(2): Trying to lock '/dev/ttyS9'...
0.379165 gphoto2-port-serial(2): Trying to lock '/dev/ttyS10'...
0.379483 gphoto2-port-serial(2): Trying to lock '/dev/ttyS11'...
0.379796 gphoto2-port-serial(2): Trying to lock '/dev/ttyS12'...
0.380123 gphoto2-port-serial(2): Trying to lock '/dev/ttyS13'...
0.380438 gphoto2-port-serial(2): Trying to lock '/dev/ttyS14'...
0.380754 gphoto2-port-serial(2): Trying to lock '/dev/ttyS15'...
0.381079 gphoto2-port-serial(2): Trying to lock '/dev/ttyS16'...
0.381400 gphoto2-port-serial(2): Trying to lock '/dev/ttyS17'...
0.381714 gphoto2-port-serial(2): Trying to lock '/dev/ttyS18'...
0.382028 gphoto2-port-serial(2): Trying to lock '/dev/ttyS19'...
0.382448 gphoto2-port-serial(2): Trying to lock '/dev/ttyS20'...
0.382774 gphoto2-port-serial(2): Trying to lock '/dev/ttyS21'...
0.383100 gphoto2-port-serial(2): Trying to lock '/dev/ttyS22'...
0.383417 gphoto2-port-serial(2): Trying to lock '/dev/ttyS23'...
0.383732 gphoto2-port-serial(2): Trying to lock '/dev/ttyS24'...
0.384058 gphoto2-port-serial(2): Trying to lock '/dev/ttyS25'...
0.384374 gphoto2-port-serial(2): Trying to lock '/dev/ttyS26'...
0.384690 gphoto2-port-serial(2): Trying to lock '/dev/ttyS27'...
0.385003 gphoto2-port-serial(2): Trying to lock '/dev/ttyS28'...
0.385332 gphoto2-port-serial(2): Trying to lock '/dev/ttyS29'...
0.385646 gphoto2-port-serial(2): Trying to lock '/dev/ttyS30'...
0.385961 gphoto2-port-serial(2): Trying to lock '/dev/ttyS31'...
0.386287 gphoto2-port-serial(2): Trying to lock '/dev/ttyS32'...
0.386635 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/ttyS0) from 'libgphoto2_port_serial.so'
0.387062 gphoto2-port-core(2): Loaded 'Serial Port 1' (serial:/dev/ttyS1) from 'libgphoto2_port_serial.so'
0.387472 gphoto2-port-core(2): Loaded 'Serial Port 2' (serial:/dev/ttyS2) from 'libgphoto2_port_serial.so'
0.387878 gphoto2-port-core(2): Loaded 'Serial Port 3' (serial:/dev/ttyS3) from 'libgphoto2_port_serial.so'
0.388299 gphoto2-port-core(2): Loaded 'Serial Port 4' (serial:/dev/ttyS4) from 'libgphoto2_port_serial.so'
0.388705 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so'
0.390199 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so'
0.390845 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:002,002) from 'libgphoto2_port_usb.so'
0.391281 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:001,002) from 'libgphoto2_port_usb.so'
0.391788 gphoto2-port-info-list(2): Looking for path 'usb:' (9 entries available)...
0.392178 gphoto2-port-info-list(2): Getting info of entry 5 (9 available)...
0.392542 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'...
0.393852 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
0.394476 gphoto2-port(2): Setting settings...
0.394776 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2)
0.395120 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings"
0.395837 foreach(2): Executing action 'List Files' for folder '/'.
0.397149 gphoto2-camera(2): Listing files in '/'...
0.397854 gphoto2-camera(2): Initializing camera...
0.398220 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x309a)... found.
0.398576 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
0.399018 gphoto2-camera(2): Loading '/usr/lib/gphoto2/2.1.5/libgphoto2_canon.so'...
0.399820 gphoto2-port(2): Opening USB port...
0.400412 gphoto2-port(0): Could not query kernel driver of device.
0.400799 canon/library.c(2): canon camera_init()
0.401190 canon/library.c(2): GPhoto tells us that we should use a USB link.
0.401539 canon/usb.c(2): Initializing the (USB) camera.
0.401931 gphoto2-port(2): Setting settings...
0.404324 gphoto2-port-usb(2): Changed usb.config from -1 to 1
0.405321 gphoto2-port-usb(2): Changed usb.altsetting from -1 to 0
0.405788 canon/usb.c(2): canon_usb_camera_init()
0.406336 canon/usb.c(2): canon_usb_identify: USB ID match 0x04a9:0x309a (model name "Canon:PowerShot A80 (normal mode)")
0.406896 context(2): Detected a 'Canon:PowerShot A80 (normal mode)'.
Detected a 'Canon:PowerShot A80 (normal mode)'.
0.407686 gphoto2-port(2): Reading message (request=0xc value=0x55 index=0x0 size=1=0x1)...
0.409323 gphoto2-port(3): Hexdump of 1 = 0x1 bytes follows:
0000 43 - C
0.409910 canon/usb.c(2): canon_usb_camera_init() initial camera response: C/'Camera was woken up'
0.410432 gphoto2-port(2): Reading message (request=0x4 value=0x1 index=0x0 size=88=0x58)...
0.419221 gphoto2-port(3): Hexdump of 88 = 0x58 bytes follows:
0000 18 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0040 01 06 15 83 9a 30 a9 04-00 08 00 00 ff ff ff ff .....0..........
0050 00 fd 00 00 00 fd 00 00- ........
0.420750 gphoto2-port(2): Writing message (request=0x4 value=0x11 index=0x0 size=80=0x50)...
0.421203 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows:
0000 10 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0040 00 08 00 00 ff ff ff ff-00 fd 00 00 00 fd 00 00 ................
0.424310 canon/usb.c(2): canon_usb_camera_init() PC sign on LCD should be lit now (if your camera has a PC sign)
0.424837 gphoto2-port(2): Reading 64=0x40 bytes from port...
0.426307 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows:
0000 04 00 00 00 02 03 00 00-00 00 00 00 00 00 00 00 ................
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0.427338 gphoto2-port(2): Reading 4=0x4 bytes from port...
0.428305 gphoto2-port(3): Hexdump of 4 = 0x4 bytes follows:
0000 00 00 00 00 - ....
0.429299 gphoto2-port(2): Could only read 8 out of 16 byte(s)
0.429737 gphoto2-port(2): Reading 16=0x10 bytes from interrupt ep (fast)...
0.430178 gphoto2-port(3): Hexdump of 8 = 0x8 bytes follows:
0000 02 00 00 00 20 00 00 00- .... ...
0.431296 gphoto2-port(2): Could only read 8 out of 16 byte(s)
0.431704 gphoto2-port(2): Reading 16=0x10 bytes from interrupt ep (fast)...
0.432311 gphoto2-port(3): Hexdump of 8 = 0x8 bytes follows:
0000 10 00 00 00 00 00 00 00- ........
0.432903 canon/usb.c(2): canon_usb_lock_keys()
0.433371 canon/usb.c(2): Locking camera keys and turning off LCD using 'normal' locking code...
0.433854 canon/usb.c(2): canon_usb_dialogue() cmd 0x1f 0x12 0x201 (Get picture abilities)
0.434320 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=80=0x50)...
0.434757 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows:
0000 10 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0040 02 00 00 00 1f 00 00 12-10 00 00 00 00 00 00 00 ................
0.437314 gphoto2-port(2): Reading 896=0x380 bytes from port...
0.443350 gphoto2-port(3): Hexdump of 896 = 0x380 bytes follows:
0000 54 03 00 00 01 03 00 00-00 00 00 00 00 00 00 00 T...............
0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0040 02 00 00 00 1f 00 00 22-54 03 00 00 00 00 00 00 ......."T.......
0050 00 00 00 00 40 03 00 00-34 01 ff ff ff ff ff ff ....@...4.......
0060 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0070 ff ff ff ff ff ff ff ff-ff ff 00 00 00 00 00 ff ................
0080 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0090 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
00a0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
00b0 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
00c0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
00d0 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
00e0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
00f0 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
0100 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0110 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
0120 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0130 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
0140 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0150 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
0160 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0170 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
0180 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0190 ff ff 00 00 00 00 00 00-00 00 00 00 00 00 ff ff ................
01a0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
01b0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
01c0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
01d0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
01e0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
01f0 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0200 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0210 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0220 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0230 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0240 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0250 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0260 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ................
0270 ff ff ff ff ff ff ff ff-ff ff ff ff ff ff 00 00 ................
0280 00 00 00 00 00 00 00 00-00 00 00 00 00 00 14 00 ................
0290 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
02a0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
02b0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
02c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
02d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
02e0 2c 00 00 50 00 80 00 00-00 00 00 00 00 00 00 00 ,..P............
02f0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0300 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0310 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0320 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0330 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0340 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0350 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0360 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0370 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
0.451011 gphoto2-port(2): Reading 4=0x4 bytes from port...
0.452646 canon/usb.c(2): canon_usb_dialogue: read 2 of 4 bytes failed! (Error reading from the port)
0.453106 context(0): canon_usb_lock_keys: Unexpected return of 0 bytes (expected 820) from "get picture abilities."
*** Error ***
canon_usb_lock_keys: Unexpected return of 0 bytes (expected 820) from "get picture abilities."
0.454239 context(0): lock keys failed.
*** Error ***
lock keys failed.
0.455010 gphoto2-port(2): Closing port...
*** Error (-102: 'Corrupted data') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --debug -L
Please make sure there is sufficient quoting around the arguments.
5.458631 gp-camera(2): Freeing camera...
5.458943 gphoto2-port(2): Freeing port...
5.459229 gphoto2-port(2): Closing port...
5.459639 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
5.459968 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
5.460296 gphoto2-filesystem(2): Internally deleting all folders from '/'...
#
_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com
Reply to: