Gphoto2 - Impossible de communiquer avec l'appereil branché en USB


#1

Bonjour à tous,

Aujourd’hui, j’ai finalisé mon projet de photomaton personnalisé à l’aide d’un RPI3B+ sous Raspbian, la petite PiCamera, un bouton poussoir, une imprimante Selphy CP1300 de chez Canon et un peu de code (https://www.hackster.io/sabat54i/wedding-photo-booth-with-raspberry-pi-1cea3a).

Tout fonctionne, c’est super à constater pour quelqu’un qui n’y connait pas grand chose comme moi #fierté :star_struck:

Désormais, je souhaite brancher mon appareil photo Canon PowerShot SX500 IS, histoire que les photos que je vais prendre soient les plues jolies possible.

Après avoir vérifié que mon appareil est bien compatible avec GPHOTO2, j’ai tout installé.

Pas de problème avec l’auto-detect, mon RPI retrouve bien l’appareil photo.

Mais lorsque je souhaite prendre une photo, alors c’est un message d’erreur qui s’affiche : “Erreur -53 : Impossible de communiquer avec le périphérique USB”.

J’ai beaucoup cherché sur les internets, mais je ne trouve rien de convaincant…

Pourriez-vous m’aider ? Je suis à dispo pour plus d’infos si besoin.

Merci beaucoup :slight_smile:

Jérémy L


#2

Bonjour,

J’ai réglé le problème en faisant la seconde partie du tutoriel de ce site : https://ouilogique.com/installer-gphoto2/

Après reboot, le message n’apparaît plus.

Toutefois, j’ai désormais un “Opération non prise en charge”. J’ai fais quelques recherches, mais rien n’a pu m’aiguiller vers une résolution.

Mon appareil photo est bel et bien dans la liste de compatibilité Gphoto2… Le problème vient d’ailleurs, car j’ai essayé avec deux appareil et j’ai le même résultat.

Je suis un peu perdu… Auriez-vous SVP une piste ?

Merci pour votre aide,
Jérémy L


#3

Bonjour,

Coté matériel, le câble USB peut être défectueux.

Sinon, passer la commande lsusb avant et après avoir connecté l’appareil photo en USB.
Récupérer l’ID de l’appareil photo xxxx:yyyy
Consulter le résultat de la commande sudo dmesg après avoir connecté l’appareil photo.
Consulter les dernières lignes de cette log. On devrait retrouver l’ID de l’appareil photo.

Nous poster les résultats.

A+


#4

Salut,
Merci de ces infos. Voici le lsusb :

Avant
pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 0000:0538
Bus 001 Device 006: ID 1a2c:0e24 China Resource Semico Co., Ltd
Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Après
pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 0000:0538
Bus 001 Device 006: ID 1a2c:0e24 China Resource Semico Co., Ltd
Bus 001 Device 010: ID 04a9:325c Canon, Inc. PowerShot SX500 IS
Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Concernant le dmesg, voici le résultat. On trouve en effet l’appareil en fin de résultats :

pi@raspberrypi:~ $ sudo dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.79-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1159 SMP Sun Nov 4 17:50:20 GMT 2018
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x37800000
[    0.000000] On node 0 totalpages: 229376
[    0.000000] free_area_init_node: node 0, pgdat 80c85280, node_mem_map b7014000
[    0.000000]   Normal zone: 2016 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 229376 pages, LIFO batch:31
[    0.000000] percpu: Embedded 17 pages/cpu @b6fbd000 s38720 r8192 d22720 u69632
[    0.000000] pcpu-alloc: s38720 r8192 d22720 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 227360
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=d9c13538-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 887448K/917504K available (7168K kernel code, 576K rwdata, 2076K rodata, 1024K init, 698K bss, 21864K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xb8800000 - 0xff800000   (1136 MB)
                   lowmem  : 0x80000000 - 0xb8000000   ( 896 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x80008000 - 0x80800000   (8160 kB)
                     .init : 0x80b00000 - 0x80c00000   (1024 kB)
                     .data : 0x80c00000 - 0x80c9017c   ( 577 kB)
                      .bss : 0x80c97f04 - 0x80d468b0   ( 699 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 25287 entries in 75 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000018] Switching to timer-based delay loop, resolution 52ns
[    0.000267] Console: colour dummy device 80x30
[    0.000284] console [tty1] enabled
[    0.000308] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000323] pid_max: default: 32768 minimum: 301
[    0.000640] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000654] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001588] Disabling memory control group subsystem
[    0.001664] CPU: Testing write buffer coherency: ok
[    0.002080] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002479] Setting up static identity map for 0x100000 - 0x10003c
[    0.002597] Hierarchical SRCU implementation.
[    0.003270] smp: Bringing up secondary CPUs ...
[    0.004054] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004893] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.005712] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.005816] smp: Brought up 1 node, 4 CPUs
[    0.005827] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.005832] CPU: All CPU(s) started in HYP mode.
[    0.005836] CPU: Virtualization extensions available.
[    0.006748] devtmpfs: initialized
[    0.017004] random: get_random_u32 called from bucket_table_alloc+0xfc/0x24c with crng_init=0
[    0.017763] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.017987] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018004] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.018560] pinctrl core: initialized pinctrl subsystem
[    0.019303] NET: Registered protocol family 16
[    0.022045] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.026926] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.026933] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.027132] Serial: AMBA PL011 UART driver
[    0.028793] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.029248] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.060827] bcm2835-dma 3f007000.dma: DMA legacy API manager at b8813000, dmachans=0x1
[    0.062241] SCSI subsystem initialized
[    0.062464] usbcore: registered new interface driver usbfs
[    0.062515] usbcore: registered new interface driver hub
[    0.062600] usbcore: registered new device driver usb
[    0.070085] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-11-04 16:35
[    0.071482] clocksource: Switched to clocksource arch_sys_counter
[    0.148519] VFS: Disk quotas dquot_6.6.0
[    0.148606] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.148791] FS-Cache: Loaded
[    0.148991] CacheFiles: Loaded
[    0.157856] NET: Registered protocol family 2
[    0.158577] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.158687] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.158872] TCP: Hash tables configured (established 8192 bind 8192)
[    0.159001] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.159045] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.159273] NET: Registered protocol family 1
[    0.159731] RPC: Registered named UNIX socket transport module.
[    0.159737] RPC: Registered udp transport module.
[    0.159742] RPC: Registered tcp transport module.
[    0.159747] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.161339] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.164089] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.172069] FS-Cache: Netfs 'nfs' registered for caching
[    0.172666] NFS: Registering the id_resolver key type
[    0.172696] Key type id_resolver registered
[    0.172701] Key type id_legacy registered
[    0.172716] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.174633] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.174763] io scheduler noop registered
[    0.174770] io scheduler deadline registered (default)
[    0.174937] io scheduler cfq registered
[    0.174944] io scheduler mq-deadline registered
[    0.174950] io scheduler kyber registered
[    0.177239] BCM2708FB: allocated DMA memory f7900000
[    0.177266] BCM2708FB: allocated DMA channel 0 @ b8813000
[    0.227659] Console: switching to colour frame buffer device 228x61
[    0.257942] bcm2835-rng 3f104000.rng: hwrng registered
[    0.258071] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.258562] vc-sm: Videocore shared memory driver
[    0.258836] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.268486] brd: module loaded
[    0.277562] loop: module loaded
[    0.277578] Loading iSCSI transport class v2.0-870.
[    0.278271] libphy: Fixed MDIO Bus: probed
[    0.278371] usbcore: registered new interface driver lan78xx
[    0.278431] usbcore: registered new interface driver smsc95xx
[    0.278446] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.306365] dwc_otg 3f980000.usb: base=0xf0980000
[    0.506620] Core Release: 2.80a
[    0.506629] Setting default values for core params
[    0.506663] Finished setting default values for core params
[    0.706914] Using Buffer DMA mode
[    0.706920] Periodic Transfer Interrupt Enhancement - disabled
[    0.706925] Multiprocessor Interrupt Enhancement - disabled
[    0.706932] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.706946] Dedicated Tx FIFOs mode
[    0.707307] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xb7914000 dma = 0xf7914000 len=9024
[    0.707335] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.707342] dwc_otg: Microframe scheduler enabled
[    0.707397] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805ea470
[    0.707409] WARN::hcd_init_fiq:460: FIQ ASM at 0x805ea7d8 length 36
[    0.707422] WARN::hcd_init_fiq:486: MPHI regs_base at 0xf0006000
[    0.707476] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.707511] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.707542] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.707591] Init: Port Power? op_state=1
[    0.707596] Init: Power Port (0)
[    0.707797] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.707807] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.707816] usb usb1: Product: DWC OTG Controller
[    0.707825] usb usb1: Manufacturer: Linux 4.14.79-v7+ dwc_otg_hcd
[    0.707832] usb usb1: SerialNumber: 3f980000.usb
[    0.708446] hub 1-0:1.0: USB hub found
[    0.708485] hub 1-0:1.0: 1 port detected
[    0.709030] dwc_otg: FIQ enabled
[    0.709035] dwc_otg: NAK holdoff enabled
[    0.709041] dwc_otg: FIQ split-transaction FSM enabled
[    0.709051] Module dwc_common_port init
[    0.709296] usbcore: registered new interface driver usb-storage
[    0.709465] mousedev: PS/2 mouse device common for all mice
[    0.709540] IR NEC protocol handler initialized
[    0.709547] IR RC5(x/sz) protocol handler initialized
[    0.709552] IR RC6 protocol handler initialized
[    0.709557] IR JVC protocol handler initialized
[    0.709562] IR Sony protocol handler initialized
[    0.709567] IR SANYO protocol handler initialized
[    0.709574] IR Sharp protocol handler initialized
[    0.709579] IR MCE Keyboard/mouse protocol handler initialized
[    0.709584] IR XMP protocol handler initialized
[    0.710276] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.710538] bcm2835-cpufreq: min=600000 max=1400000
[    0.710900] sdhci: Secure Digital Host Controller Interface driver
[    0.710906] sdhci: Copyright(c) Pierre Ossman
[    0.711264] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.711633] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.711726] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.713155] ledtrig-cpu: registered to indicate activity on CPUs
[    0.713301] hidraw: raw HID events driver (C) Jiri Kosina
[    0.713463] usbcore: registered new interface driver usbhid
[    0.713468] usbhid: USB HID core driver
[    0.714102] vchiq: vchiq_init_state: slot_zero = b7980000, is_master = 0
[    0.715653] [vc_sm_connected_init]: start
[    0.725095] [vc_sm_connected_init]: end - returning 0
[    0.725694] Initializing XFRM netlink socket
[    0.725717] NET: Registered protocol family 17
[    0.725823] Key type dns_resolver registered
[    0.726358] Registering SWP/SWPB emulation handler
[    0.726950] registered taskstats version 1
[    0.732925] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.732995] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.734850] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    0.734860] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    0.792100] sdhost: log_buf @ b7913000 (f7913000)
[    0.828960] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.830528] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.832094] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.834871] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    0.871503] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    0.872562] of_cfs_init
[    0.872647] of_cfs_init: OK
[    0.873255] Waiting for root device PARTUUID=d9c13538-02...
[    0.912843] random: fast init done
[    0.919992] mmc1: new high speed SDIO card at address 0001
[    0.921600] Indeed it is in host mode hprt0 = 00021501
[    0.988525] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.991300] mmc0: new high speed SDXC card at address 0001
[    0.991822] mmcblk0: mmc0:0001 ED4QT 119 GiB
[    0.993347]  mmcblk0: p1 p2
[    1.042202] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.042266] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.050371] devtmpfs: mounted
[    1.053830] Freeing unused kernel memory: 1024K
[    1.131549] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.131693] Indeed it is in host mode hprt0 = 00001101
[    1.391880] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    1.391902] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.392609] hub 1-1:1.0: USB hub found
[    1.392707] hub 1-1:1.0: 4 ports detected
[    1.538684] systemd[1]: System time before build time, advancing clock.
[    1.672126] NET: Registered protocol family 10
[    1.673254] Segment Routing with IPv6
[    1.683230] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.702147] random: systemd: uninitialized urandom read (16 bytes read)
[    1.708108] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    1.708693] systemd[1]: Detected architecture arm.
[    1.709829] systemd[1]: Set hostname to <raspberrypi>.
[    1.741576] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.753892] random: systemd: uninitialized urandom read (16 bytes read)
[    1.790275] random: systemd-cryptse: uninitialized urandom read (16 bytes read)
[    1.871870] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514
[    1.871884] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.872556] hub 1-1.1:1.0: USB hub found
[    1.872637] hub 1-1.1:1.0: 3 ports detected
[    2.181548] usb 1-1.3: new low-speed USB device number 4 using dwc_otg
[    2.237914] systemd[1]: Listening on udev Control Socket.
[    2.239110] systemd[1]: Created slice System Slice.
[    2.239485] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.240141] systemd[1]: Created slice system-autologin.slice.
[    2.240972] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.241187] systemd[1]: Listening on Syslog Socket.
[    2.242127] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    2.289301] i2c /dev entries driver
[    2.316072] usb 1-1.3: New USB device found, idVendor=0000, idProduct=0538
[    2.316087] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.316096] usb 1-1.3: Product:  USB OPTICAL MOUSE
[    2.322380] input:  USB OPTICAL MOUSE as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:0000:0538.0001/input/input0
[    2.323136] hid-generic 0003:0000:0538.0001: input,hidraw0: USB HID v1.11 Mouse [ USB OPTICAL MOUSE] on usb-3f980000.usb-1.3/input0
[    2.571744] usb 1-1.1.1: new high-speed USB device number 5 using dwc_otg
[    2.702162] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800
[    2.702183] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.801684] usb 1-1.2: new low-speed USB device number 6 using dwc_otg
[    2.951948] usb 1-1.2: New USB device found, idVendor=1a2c, idProduct=0e24
[    2.951980] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.951993] usb 1-1.2: Product: USB Keyboard
[    2.952005] usb 1-1.2: Manufacturer: SEM
[    2.968175] input: SEM USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1A2C:0E24.0002/input/input1
[    2.982576] libphy: lan78xx-mdiobus: probed
[    3.032530] hid-generic 0003:1A2C:0E24.0002: input,hidraw1: USB HID v1.10 Keyboard [SEM USB Keyboard] on usb-3f980000.usb-1.2/input0
[    3.043198] input: SEM USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:1A2C:0E24.0003/input/input2
[    3.112067] hid-generic 0003:1A2C:0E24.0003: input,hidraw2: USB HID v1.10 Device [SEM USB Keyboard] on usb-3f980000.usb-1.2/input1
[    3.250596] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.264021] usb 1-1.1.3: new high-speed USB device number 7 using dwc_otg
[    3.313264] systemd-journald[94]: Received request to flush runtime journal from PID 1
[    3.405535] usb 1-1.1.3: New USB device found, idVendor=054c, idProduct=03aa
[    3.405556] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.405566] usb 1-1.1.3: Product: DSLR-A330
[    3.405576] usb 1-1.1.3: Manufacturer: Sony
[    3.950475] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    3.960703] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[    4.114444] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.124083] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[    4.124873] usbcore: registered new interface driver brcmfmac
[    4.374762] random: crng init done
[    4.374776] random: 7 urandom warning(s) missed due to ratelimiting
[    4.448453] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[    4.449136] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28 
[    5.335666] uart-pl011 3f201000.serial: no DMA platform data
[    6.512557] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    6.512613] brcmfmac: power management disabled
[    7.093004] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.847332] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    9.047951] warning: process `colord-sane' used the deprecated sysctl system call with 8.1.2.
[    9.730380] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   12.638545] Bluetooth: Core ver 2.22
[   12.638678] NET: Registered protocol family 31
[   12.638685] Bluetooth: HCI device and connection manager initialized
[   12.638743] Bluetooth: HCI socket layer initialized
[   12.638762] Bluetooth: L2CAP socket layer initialized
[   12.638799] Bluetooth: SCO socket layer initialized
[   12.657134] Bluetooth: HCI UART driver ver 2.3
[   12.657173] Bluetooth: HCI UART protocol H4 registered
[   12.657180] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   12.657408] Bluetooth: HCI UART protocol Broadcom registered
[   12.984823] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   12.984832] Bluetooth: BNEP filters: protocol multicast
[   12.984845] Bluetooth: BNEP socket layer initialized
[   13.039828] Bluetooth: RFCOMM TTY layer initialized
[   13.039845] Bluetooth: RFCOMM socket layer initialized
[   13.039869] Bluetooth: RFCOMM ver 1.11
[   13.188528] fuse init (API version 7.26)
[  140.200115] usb 1-1.1.3: USB disconnect, device number 7
[  153.296113] usb 1-1.1.3: new high-speed USB device number 8 using dwc_otg
[  153.427551] usb 1-1.1.3: New USB device found, idVendor=04a9, idProduct=325c
[  153.427567] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  153.427576] usb 1-1.1.3: Product: Canon Digital Camera
[  153.427585] usb 1-1.1.3: Manufacturer: Canon Inc.
[  153.427593] usb 1-1.1.3: SerialNumber: ECF60E0642E84FF89B1C7ADE9505C0D7
[  198.056378] usb 1-1.1.3: USB disconnect, device number 8
[ 1666.513699] usb 1-1.1.3: new high-speed USB device number 9 using dwc_otg
[ 1666.645195] usb 1-1.1.3: New USB device found, idVendor=04a9, idProduct=325c
[ 1666.645211] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1666.645221] usb 1-1.1.3: Product: Canon Digital Camera
[ 1666.645230] usb 1-1.1.3: Manufacturer: Canon Inc.
[ 1666.645238] usb 1-1.1.3: SerialNumber: ECF60E0642E84FF89B1C7ADE9505C0D7
[ 2175.400374] usb 1-1.1.3: USB disconnect, device number 9
[106730.701148] usb 1-1.3: reset low-speed USB device number 4 using dwc_otg
[227123.081203] usb 1-1.3: reset low-speed USB device number 4 using dwc_otg
[233253.326020] usb 1-1.1.3: new high-speed USB device number 10 using dwc_otg
[233253.457241] usb 1-1.1.3: New USB device found, idVendor=04a9, idProduct=325c
[233253.457251] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[233253.457255] usb 1-1.1.3: Product: Canon Digital Camera
[233253.457259] usb 1-1.1.3: Manufacturer: Canon Inc.
[233253.457262] usb 1-1.1.3: SerialNumber: ECF60E0642E84FF89B1C7ADE9505C0D7

Pour le moment, je n’ai pas trouvé de solutions pour faire fonctionner la prise de vue avec mon appareil…

Si tu as une idée…

Merci,
Jérémy L


#5

Bonjour,

Déjà l’appareil est bien reconnu par le système. Il n’y a pas d’erreur dans dmesg donc on peut supposer que c’est bon de ce coté.

Maintenant que disent les commandes

gphoto2 --auto-detect
gphoto2 --summary

source d’info https://doc.ubuntu-fr.org/gphoto

A+


#6

Hello,

Pas de problèmes niveau --auto-detect

pi@raspberrypi:~ $ sudo gphoto2 --auto-detect
Modèle Port
__
Canon PowerShot SX500IS usb:001,011

Voici le contenu du --summary :

pi@raspberrypi:~ $ sudo gphoto2 --summary
Résumé sur l'appareil :                                                        
Manufacturer: Canon Inc.
Model: Canon PowerShot SX500 IS
  Version: 1-13.0.1.0
  Serial Number: ECF60E0642E84FF89B1C7ADE9505C0D7
Vendor Extension ID: 0xb (1.0)

Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, Defined Type, CRW, Unknown(b103), Unknown(b105), Unknown(b104), Unknown(bf01)

Device Capabilities:
	File Download, File Deletion, File Upload
	No 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: 7956725760 (7588 MB)
	Free Space (Bytes): 2457239552 (2343 MB)
	Free Space (Images): -1

Device Property Summary:
Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 2
Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0
Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288
Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288
Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3)
Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0)
Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1)
UNIX Time(0xd034):(readwrite) (type=0x6) 1552311620
Type of Slideshow(0xd047):(read only) (type=0x4) 0
DPOF Version(0xd046):(read only) (type=0x4) 257
Remote API Version(0xd030):(read only) (type=0x6) 256
Model ID(0xd049):(read only) (type=0x6) 53936128
Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot SX500 IS'
Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] 
Firmware Version(0xd031):(read only) (type=0x6) 16777216
Property 0xd050:(read only) (type=0x2) 0
Property 0xd051:(read only) (type=0x0) Undefined
Property 0xd052:(read only) (type=0x2) 0
Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot SX500 IS'
Property 0xd406:(readwrite) (type=0xffff) 'Windows'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd303:(read only) (type=0x2) 1

Pour info, dans la foulée j’ai lancé un --capture-image-and-download, voici le résultat :

pi@raspberrypi:~ $ sudo gphoto2 --capture-image-and-download 
                                                                               
*** Erreur ***
Sorry, your camera does not support generic capture
Erreur : Acquisition d'image impossible.
Erreur : Acquisition impossible.
*** Erreur (-6 : « Opération non prise en charge ») ***

Pour obtenir les messages de débogage, veuillez utiliser l'option --debug.
Ces messages peuvent aider à trouver une solution au problème. Si vous avez
l'intention d'envoyer un message d'erreur ou de débogage à la liste de
diffusion des développeurs de gPhoto <gphoto-devel@lists.sourceforge.net>,
en anglais, veuillez exécuter gphoto2 comme suit :

    env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image-and-download

Veuillez vous assurer que les arguments sont suffisamment protégés.

Si tu as d’autres pistes, je suis preneur… Merci ! :slight_smile:

Jérémy L


#7

Bonjour,

Je pense que la réponse est dans le summary

No Image Capture même en parlant très mal anglais on comprends hélas la signification.
Il faut trouver un autre appareil photo :disappointed_relieved:

A+


#8

Salut,

Ah, merde… En effet j’avais bien vu cela mais j’ai pensé qu’il s’agissait d’un réglage, d’où ma question…

Quelle galère :frowning:

Merci beaucoup pour ton aide en tous cas !

Jérémy L


#9

Hello,

J’ai vérifié sur le site de gphoto2 et je constate qu’en théorie, c’est compatible.

Le modèle de mon appareil photo est bel et bien listé sans aucun autre commentaire.

Le problème que je rencontre est peut-être une histoire de config ?

Merci,
Jérémy L


#10

Bonjour,

Je ne suis pas assez calé pour répondre. Mais à mon avis, il faudrait le commentaire “Image Capture” pour prendre des photos ?

Sur le site il est écrit

Supported means here: Able to download images from the camera (or upload images to the picture frame). For remote control support check out the Remote Control Overview page.

Bonne recherches.

A+


#11

Salut,
Il m’arrive parfois de faire des prises de vue consécutives, pour réaliser ensuite des Timelapse.
J’ai un Canon EOS 50D qui fonctionne très bien avec gphoto2.

Ce matin, vous m’avez donné envie de réessayer avec la dernière version de Raspian sur une framboise 3B+ :slight_smile:

Par contre, j’ai le même message d’erreur, si une carte sd est insérée dans le Canon.
Une fois la carte retirée, l’image est capturée et téléchargée dans le répertoire de votre choix.

@++


#12

Bonjour,

Merci pour cette piste !

J’ai essayé de capturer après avoir retiré la carte SD mais cela n’a pas fonctionné.

Après un reboot, j’ai retesté et toujours rien.

J’ai donc refait la première étape : lsusb.
Résultat, connecté ou pas, allumé ou pas, la réponse est la même et l’appareil semble ne pas être reconnu par le RPI… La réponse est la même que celle que j’ai pu donner plus haut.

@stef-k, par hasard, est qu’il y a une action particulière à faire quand on retire la carte SD pour que l’appareil soit reconnu ?

Merci beaucoup,
Jérémy L