Gphoto2 Canon EOS 350D

Vous venez de déballer votre Raspberry Pi et vous vous posez des questions ? C'est ici que ça se passe !

Modérateur : Francois

Avatar du membre
Eddie
Messages : 80
Enregistré le : lun. 2 mars 2015 20:30

Gphoto2 Canon EOS 350D

Message par Eddie » ven. 24 juil. 2015 16:13

Bonjour,

Malgré toutes mes recherches sur le net', là je cale. Je n’arrive pas à trouver l'origine du problème.
L'APN est bien sur le mode PTP mais il reste allumé sur "busy" lorsqu'il est branché au RPI.

Sur VNC, j'avais rien de monté en USB. Après avoir débranché l'apn, sortie la carte et rebranché, l'apn ne demarre pas. Remis la carte et rebranché et là PAF carte monté. Alors je sais pas à quelle moment cela c'est passé...
Mais en exécutant la commande

Code : Tout sélectionner

gphoto2 --capture-image
voici l’erreur que j'obtiens :

pi@raspberrypi ~ $ gphoto2 --capture-image
*** Error (-2: 'Bad parameters') ***

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-logfile=my-logfile.txt --capture-image

Please make sure there is sufficient quoting around the arguments.

Mon APN est bien reconnu par

Code : Tout sélectionner

lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 007: ID 04a9:30ef Canon, Inc. EOS 350D (ptp)
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

Voici le resultat avec

Code : Tout sélectionner

gphoto2 -l --debug

Code : Tout sélectionner

0.000251 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.001318 main                        (2): gphoto2 2.5.5
0.002154 main                        (2): gphoto2 has been compiled with the following options:
0.003192 main                        (2):  + gcc (C compiler used)
0.004033 main                        (2):  + popt (mandatory, for handling command-line parameters)
0.004521 main                        (2):  + exif (for displaying EXIF information)
0.004917 main                        (2):  + no cdk (for accessing configuration options)
0.005359 main                        (2):  + no aa (for displaying live previews)
0.005816 main                        (2):  + jpeg (for displaying live previews in JPEG format)
0.006218 main                        (2):  + no readline (for easy navigation in the shell)
0.006848 main                        (2): libgphoto2 2.5.8
0.007289 main                        (2): libgphoto2 has been compiled with the following options:
0.007699 main                        (2):  + all camlibs
0.008076 main                        (2):  + gcc (C compiler used)
0.008210 main                        (2):  + ltdl (for portable loading of camlibs)
0.009519 main                        (2):  + EXIF (for special handling of EXIF files)
0.009723 main                        (2): libgphoto2_port 0.10.0
0.009862 main                        (2): libgphoto2_port has been compiled with the following options:
0.009972 main                        (2):  + gcc (C compiler used)
0.010077 main                        (2):  + ltdl (for portable loading of camlibs)
0.010183 main                        (2):  + USB (libusb1, for USB cameras)
0.010286 main                        (2):  + serial (for serial cameras)
0.010608 main                        (2):  + no resmgr (serial port access and locking)
0.010741 main                        (2):  + no ttylock (serial port locking)
0.010846 main                        (2):  + no lockdev (serial port locking)
0.010951 main                        (2): CAMLIBS env var not set, using compile-time default instead
0.011058 main                        (2): IOLIBS env var not set, using compile-time default instead
0.011165 main                        (2): invoked with following arguments:
0.012164 main                        (2):   -l
0.012327 main                        (2):   --debug
0.012736 load_settings               (2): Creating gphoto config directory ('/home/pi/.gphoto')
0.013537 load_settings               (2): Loading settings from file '/home/pi/.gphoto/settings'.
0.016215 main                        (2): The user has not specified both a model and a port. Try to figure them out.
0.017464 gp_port_info_list_load      (2): Using ltdl to load io-drivers from '/usr/local/lib/libgphoto2_port/0.10.0'...
0.019007 gp_port_info_list_load [gphoto2-port-info-list.c:288](0): No iolibs found in '/usr/local/lib/libgphoto2_port/0.10.0'
0.020363 gp_abilities_list_load_dir  (2): Using ltdl to load camera libraries from '/usr/local/lib/libgphoto2/2.5.8'...
0.025381 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/adc65'.
0.027049 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/agfa_cl20'.
0.027923 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/aox'.
0.028746 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/ax203'.
0.029617 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/barbie'.
0.030120 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/canon'.
0.030542 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/casio_qv'.
0.030950 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/clicksmart310'.
0.031356 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/digigr8'.
0.031759 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/digita'.
0.032174 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/dimagev'.
0.032575 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/dimera3500'.
0.032982 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/directory'.
0.033997 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/enigma13'.
0.035201 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/fuji'.
0.036050 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/gsmart300'.
0.036227 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/hp215'.
0.036522 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/iclick'.
0.037443 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/jamcam'.
0.037629 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/jd11'.
0.037752 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/jl2005a'.
0.037868 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/jl2005c'.
0.037981 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/kodak_dc120'.
0.038096 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/kodak_dc210'.
0.038209 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/kodak_dc240'.
0.039102 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/kodak_dc3200'.
0.039286 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/kodak_ez200'.
0.039405 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/konica'.
0.039892 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/konica_qm150'.
0.040040 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/largan'.
0.040157 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/lg_gsm'.
0.040274 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/mars'.
0.041198 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/mustek'.
0.041376 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/panasonic_coolshot'.
0.041495 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/panasonic_dc1000'.
0.041616 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/panasonic_dc1580'.
0.041732 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/panasonic_l859'.
0.041847 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/pccam300'.
0.041960 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/pccam600'.
0.042110 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/pentax'.
0.043381 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/polaroid_pdc320'.
0.043569 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/polaroid_pdc640'.
0.043689 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/polaroid_pdc700'.
0.043806 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/ptp2'.
0.043921 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/ricoh'.
0.044036 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/ricoh_g3'.
0.044151 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/samsung'.
0.044264 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/sierra'.
0.044379 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/sipix_blink2'.
0.044495 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/sipix_web2'.
0.044612 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/smal'.
0.044724 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/sonix'.
0.045776 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/sony_dscf1'.
0.045957 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/sony_dscf55'.
0.046078 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/soundvision'.
0.046196 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/spca50x'.
0.046916 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/sq905'.
0.047053 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/st2205'.
0.047979 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/stv0674'.
0.048160 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/stv0680'.
0.048283 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/sx330z'.
0.048398 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/topfield'.
0.048511 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/toshiba_pdrm11'.
0.048625 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.8/tp6801'.
0.048817 gp_abilities_list_load_dir  (2): Found 64 camera drivers.
0.634126 gp_abilities_list_detect [gphoto2-abilities-list.c:407](0): Invalid parameters: 'list && info_list && l' is NULL/FALSE.
*** Error (-2: 'Bad parameters') ***

0.638679 gp_camera_free              (2): Freeing camera...
0.639567 gp_port_free                (2): Freeing port...
0.640507 gp_filesystem_reset         (2): resetting filesystem
0.640978 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.641336 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.641686 delete_all_folders          (2): Internally deleting all folders from '/'...
0.642044 lookup_folder               (2): Lookup folder '/'...
0.642394 lookup_folder               (2): Found! / is 0x1c22310
0.642743 recurse_delete_folder       (2): Recurse delete folder 0x1c22310//

Code : Tout sélectionner

gphoto2 --list-ports

Code : Tout sélectionner

Devices found: -2
Path                             Description
--------------------------------------------------------------

Code : Tout sélectionner

gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
Je sais plus par ou prendre le problème... Merci de me donner un coup de main les z'amis. :?

Eddie,
Raspberry Pi 2 et KODI + HD
Raspberry B et Recalbox
Raspberryi B+ expérience électronique Lego et Python
Raspicam
Freebox V6

Avatar du membre
Manfraid
Modérateur
Messages : 1402
Enregistré le : ven. 3 oct. 2014 14:50
Contact :

Re: Gphoto2 Canon EOS 350D

Message par Manfraid » ven. 24 juil. 2015 18:15

salut, et tu en graphique sur ton Rpi

si oui affiche le résultat de la commande mount
NAS : DIY OS Debian: DD250Go + 3x2To + 6To
Raspberry pi : 2B OS : Raspbian
Se tromper est humain, Vraiment foutre la merde nécessite le mot de passe de root.

Avatar du membre
Eddie
Messages : 80
Enregistré le : lun. 2 mars 2015 20:30

Re: Gphoto2 Canon EOS 350D

Message par Eddie » ven. 24 juil. 2015 18:21

Bonjour,

CAD je ne comprend pas ? En mode graphique ?
Je me connecte en SSH puis VNC
Raspberry Pi 2 et KODI + HD
Raspberry B et Recalbox
Raspberryi B+ expérience électronique Lego et Python
Raspicam
Freebox V6

Avatar du membre
vague nerd
Modérateur
Messages : 1473
Enregistré le : mar. 14 oct. 2014 11:42
Localisation : France !

Re: Gphoto2 Canon EOS 350D

Message par vague nerd » ven. 24 juil. 2015 18:24

Bonsoir.
Je pense que Manfraid vous demande d'ouvrir un terminal (dans l'interface graphique que vous accédez au travers de vnc) et d'y taper la commande "mount".
Cdt.
Cordialement,

Vague Nerd

Avatar du membre
Eddie
Messages : 80
Enregistré le : lun. 2 mars 2015 20:30

Re: Gphoto2 Canon EOS 350D

Message par Eddie » ven. 24 juil. 2015 18:58

Bonsoir

Ok j'essayerais de le faire depuis putty... Juste mount ? Pas sudo mount ?
Ca va permettre quoi en faite ?
Raspberry Pi 2 et KODI + HD
Raspberry B et Recalbox
Raspberryi B+ expérience électronique Lego et Python
Raspicam
Freebox V6

Avatar du membre
Manfraid
Modérateur
Messages : 1402
Enregistré le : ven. 3 oct. 2014 14:50
Contact :

Re: Gphoto2 Canon EOS 350D

Message par Manfraid » ven. 24 juil. 2015 21:39

Cela va juste permettre de savoir si ton appareil photo et utiliser par le pi en dehors de gphoto
NAS : DIY OS Debian: DD250Go + 3x2To + 6To
Raspberry pi : 2B OS : Raspbian
Se tromper est humain, Vraiment foutre la merde nécessite le mot de passe de root.

Avatar du membre
Eddie
Messages : 80
Enregistré le : lun. 2 mars 2015 20:30

Re: Gphoto2 Canon EOS 350D

Message par Eddie » sam. 25 juil. 2015 10:41

Voilà voilà

Ça n'a pas l'aire bon signe... "errors=remount"


pi@raspberrypi ~ $

Code : Tout sélectionner

mount
/dev/root on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=186124k,nr_inodes=46531,mode=75
5)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=38080k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=76140k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmod
e=000)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=43
7,iocharset=ascii,shortname=mixed,errors=remount-ro)
Raspberry Pi 2 et KODI + HD
Raspberry B et Recalbox
Raspberryi B+ expérience électronique Lego et Python
Raspicam
Freebox V6

Avatar du membre
Eddie
Messages : 80
Enregistré le : lun. 2 mars 2015 20:30

Re: Gphoto2 Canon EOS 350D

Message par Eddie » sam. 25 juil. 2015 15:24

Bon ça marche.

Mais en mettant l'apn sur PC et non sur PTP ??? Cela va t'il me contraindre dans certaines commandes ?

Voici ce que cela donne.

Code : Tout sélectionner

gphoto2 --capture-image-and-download
Detected a 'Canon:EOS 350D (normal mode)'.
New file is in location /DCIM/162CANON/IMG_6206.JPG on the camera

*** Error ***
canon_usb_set_file_attributes: canon_usb_dialogue failed
Saving file as IMG_6206.JPG
Deleting file /DCIM/162CANON/IMG_6206.JPG on the camera
gphoto2: symbol lookup error: /usr/local/lib/libgphoto2_port/0.12.0/usb1.so: undefined symbol: libusb_strerror
pi@raspberrypi ~ $
-> c'est quoi cette erreur ?

Question : Waiting for next capture slot 2 seconds...
Peut on réduire le temps de pose entre chaque prise de vue ?

- Bon maintenant le but et de faire un time lapse qui s'enregistre sur mon dongle USB sur le RPI... Qui lui aussi est reconnu :D
Raspberry Pi 2 et KODI + HD
Raspberry B et Recalbox
Raspberryi B+ expérience électronique Lego et Python
Raspicam
Freebox V6

Avatar du membre
Eddie
Messages : 80
Enregistré le : lun. 2 mars 2015 20:30

Re: Gphoto2 Canon EOS 350D

Message par Eddie » sam. 25 juil. 2015 17:26

Bon ça évolue... Mais c'est pas encore ça !!!
Je n'arrive pas à changer shutterspeed (vitesse d'obturation) et aperture (ouverture) avec :

Code : Tout sélectionner

gphoto2 --set-config shutterspeed=9 --capture-image
Detected a 'Canon:EOS 350D (normal mode)'.
Could not change shutter speed
New file is in location /DCIM/162CANON/IMG_6256.JPG on the camera

Code : Tout sélectionner

gphoto2 --set-config aperture=8 --capture-image
Detected a 'Canon:EOS 350D (normal mode)'.
Could not change aperture
New file is in location /DCIM/162CANON/IMG_6255.JPG on the camera

Pourtant la photo se prend mais étrangement en iso ça marche

Code : Tout sélectionner

gphoto2 --set-config iso=1 --capture-image
Detected a 'Canon:EOS 350D (normal mode)'.
ISO speed changed
New file is in location /DCIM/162CANON/IMG_6254.JPG on the camera

Même si je met l'apn en mode M directement sur celui-ci.

J'ai raté un truc ?
Raspberry Pi 2 et KODI + HD
Raspberry B et Recalbox
Raspberryi B+ expérience électronique Lego et Python
Raspicam
Freebox V6

Avatar du membre
Manfraid
Modérateur
Messages : 1402
Enregistré le : ven. 3 oct. 2014 14:50
Contact :

Re: Gphoto2 Canon EOS 350D

Message par Manfraid » sam. 25 juil. 2015 18:19

Salut. Je regarderai des que je peu, j'avais eu le même soucis que toi avec mon 600D et j'avais trouver ce qu'il fallait faire. Je te tiens au courant des que je retrouve mes lignes de commande
NAS : DIY OS Debian: DD250Go + 3x2To + 6To
Raspberry pi : 2B OS : Raspbian
Se tromper est humain, Vraiment foutre la merde nécessite le mot de passe de root.

Répondre

Retourner vers « Débutants »