Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canon EOS 700D: Liveview not starting #5

Open
foxinsox opened this issue Feb 24, 2017 · 29 comments
Open

Canon EOS 700D: Liveview not starting #5

foxinsox opened this issue Feb 24, 2017 · 29 comments

Comments

@foxinsox
Copy link

Hey,
i wanted to check out this amazing project with my canon eos 700D (switched on in camera mode), so I downloaded and deployed your latest Image from the image repository, but unfortunately it didn't succeed.
It seems like the Raspberry Pi 3, Model B doesn't really start the application.. Please refer to the added Screenshots for the full console log.
It sets up the WiFi and I can connect to it and ping it under 172.24.1.1, but none of the API calls works yet. Also it recognizes the camera model if i plug it off and in again.
img_2650

@foxinsox
Copy link
Author

Also when I'm listing all the processes, i can neither find it there after restart nor after running either ./camera-toolbox or QT_QPA_EGLFS_FORCE888=1 ./camera-toolbox

List of processes:

# cd usr/local/bin/
# ps -a
PID   USER     COMMAND
    1 root     init
    2 root     [kthreadd]
    3 root     [ksoftirqd/0]
    4 root     [kworker/0:0]
    5 root     [kworker/0:0H]
    6 root     [kworker/u8:0]
    7 root     [rcu_sched]
    8 root     [rcu_bh]
    9 root     [migration/0]
   10 root     [migration/1]
   11 root     [ksoftirqd/1]
   12 root     [kworker/1:0]
   13 root     [kworker/1:0H]
   14 root     [migration/2]
   15 root     [ksoftirqd/2]
   16 root     [kworker/2:0]
   17 root     [kworker/2:0H]
   18 root     [migration/3]
   19 root     [ksoftirqd/3]
   20 root     [kworker/3:0]
   21 root     [kworker/3:0H]
   22 root     [kdevtmpfs]
   23 root     [netns]
   24 root     [perf]
   25 root     [khungtaskd]
   26 root     [writeback]
   27 root     [crypto]
   28 root     [bioset]
   29 root     [kblockd]
   30 root     [kworker/0:1]
   31 root     [rpciod]
   32 root     [kswapd0]
   33 root     [vmstat]
   34 root     [fsnotify_mark]
   35 root     [nfsiod]
   44 root     [kthrotld]
   45 root     [kworker/1:1]
   46 root     [bioset]
   47 root     [bioset]
   48 root     [bioset]
   49 root     [bioset]
   50 root     [bioset]
   51 root     [bioset]
   52 root     [bioset]
   53 root     [bioset]
   54 root     [bioset]
   55 root     [bioset]
   56 root     [bioset]
   57 root     [bioset]
   58 root     [bioset]
   59 root     [bioset]
   60 root     [bioset]
   61 root     [bioset]
   62 root     [bioset]
   63 root     [bioset]
   64 root     [bioset]
   65 root     [bioset]
   66 root     [bioset]
   67 root     [bioset]
   68 root     [bioset]
   69 root     [bioset]
   70 root     [VCHIQ-0]
   71 root     [VCHIQr-0]
   72 root     [VCHIQs-0]
   73 root     [iscsi_eh]
   74 root     [dwc_otg]
   75 root     [kworker/3:1]
   76 root     [DWC Notificatio]
   77 root     [kworker/u8:1]
   78 root     [irq/92-mmc1]
   79 root     [bioset]
   80 root     [mmcqd/0]
   81 root     [kworker/2:1]
   82 root     [VCHIQka-0]
   83 root     [SMIO]
   84 root     [deferwq]
   85 root     [kworker/u8:2]
   86 root     [kworker/3:2]
   87 root     [kworker/2:1H]
   88 root     [jbd2/mmcblk0p2-]
   89 root     [ext4-rsv-conver]
   90 root     [kworker/3:1H]
   91 root     [kworker/0:1H]
  102 root     /sbin/syslogd -n
  105 root     /sbin/klogd -n
  108 root     /sbin/udevd -d
  110 root     [kworker/1:1H]
  129 root     [cfg80211]
  130 root     [brcmf_wq/mmc1:0]
  131 root     [brcmf_wdog/mmc1]
  132 root     [kworker/2:2]
  144 dbus     dbus-daemon --system
  155 root     [ipv6_addrconf]
  188 root     [kworker/2:3]
  194 root     /usr/sbin/sshd
  199 nobody   /usr/sbin/dnsmasq
  203 root     /usr/sbin/hostapd /etc/hostapd.conf
  208 root     /sbin/getty -L console 0 vt100
  210 root     -sh
  211 root     [kworker/0:2]
  221 root     sshd: root@pts/0
  223 root     -sh
  226 root     [kworker/u8:3]
  227 root     [kworker/u8:4]
  230 root     ps ?-a
# ./camera-toolbox 
# QT_QPA_EGLFS_FORCE888=1 ./camera-toolbox
# 

@rlamarche
Copy link
Owner

This very strange that you don't get any message. You run from ssh isn't it ? Can you try to run directly from the RPI ?

@foxinsox
Copy link
Author

I tried it both ways but unfortunately it makes no difference.

@rlamarche
Copy link
Owner

rlamarche commented Feb 24, 2017

After a test, run dmesg and paste it here please

@foxinsox
Copy link
Author

foxinsox commented Feb 24, 2017

Here you are:

# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.21-v7 (romain@romain-ThinkPad-T550) (gcc version 6.2.0 (Buildroot 2016.11) ) #1 SMP Sun Dec 18 10:13:59 CET 2016
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] cma: Reserved 8 MiB at 0x38400000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 232448
[    0.000000] free_area_init_node: node 0, pgdat 808c9180, node_mem_map b7bf7000
[    0.000000]   Normal zone: 2043 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 232448 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (9540->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 13 pages/cpu @b7bb3000 s22540 r8192 d22516 u53248
[    0.000000] pcpu-alloc: s22540 r8192 d22516 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 230405
[    0.000000] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2709.boardrev=0xa02082 bcm2709.serial=0xc45e28d1 smsc95xx.macaddr=B8:27:EB:5E:28:D1 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200
[    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: 902508K/929792K available (6372K kernel code, 433K rwdata, 1720K rodata, 472K init, 764K bss, 19092K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xb9000000 - 0xff800000   (1128 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xb8c00000   ( 908 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x807ef294   (8093 kB)
[    0.000000]       .init : 0x807f0000 - 0x80866000   ( 472 kB)
[    0.000000]       .data : 0x80866000 - 0x808d24f0   ( 434 kB)
[    0.000000]        .bss : 0x808d5000 - 0x80994174   ( 765 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected 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.000024] Switching to timer-based delay loop, resolution 52ns
[    0.000272] Console: colour dummy device 80x30
[    0.001282] console [tty1] enabled
[    0.001334] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001403] pid_max: default: 32768 minimum: 301
[    0.001729] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001773] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002735] Disabling cpuset control group subsystem
[    0.002792] Initializing cgroup subsys io
[    0.002844] Initializing cgroup subsys memory
[    0.002907] Initializing cgroup subsys devices
[    0.002949] Initializing cgroup subsys freezer
[    0.002992] Initializing cgroup subsys net_cls
[    0.003063] CPU: Testing write buffer coherency: ok
[    0.003151] ftrace: allocating 21183 entries in 63 pages
[    0.053431] CPU0: update cpu_capacity 1024
[    0.053490] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.053524] [bcm2709_smp_prepare_cpus] enter
[    0.053690] Setting up static identity map for 0x8240 - 0x8274
[    0.055320] [bcm2709_boot_secondary] cpu:1 started (0) 17
[    0.055534] [bcm2709_secondary_init] enter cpu:1
[    0.055576] CPU1: update cpu_capacity 1024
[    0.055582] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.055954] [bcm2709_boot_secondary] cpu:2 started (0) 18
[    0.056130] [bcm2709_secondary_init] enter cpu:2
[    0.056150] CPU2: update cpu_capacity 1024
[    0.056157] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.056514] [bcm2709_boot_secondary] cpu:3 started (0) 16
[    0.056643] [bcm2709_secondary_init] enter cpu:3
[    0.056662] CPU3: update cpu_capacity 1024
[    0.056669] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.056728] Brought up 4 CPUs
[    0.056825] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.056854] CPU: All CPU(s) started in HYP mode.
[    0.056880] CPU: Virtualization extensions available.
[    0.057513] devtmpfs: initialized
[    0.068051] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.068424] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.069166] pinctrl core: initialized pinctrl subsystem
[    0.069701] NET: Registered protocol family 16
[    0.074730] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.081422] bcm2709: Mini UART enabled
[    0.081482] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.081529] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.081700] Serial: AMBA PL011 UART driver
[    0.081851] uart-pl011 3f201000.uart: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.082053] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.145514] bcm2835-dma 3f007000.dma: DMA legacy API manager at f3007000, dmachans=0x1
[    0.146121] SCSI subsystem initialized
[    0.146330] usbcore: registered new interface driver usbfs
[    0.146441] usbcore: registered new interface driver hub
[    0.146558] usbcore: registered new device driver usb
[    0.152980] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-09-21 13:13
[    0.180018] clocksource: Switched to clocksource arch_sys_counter
[    0.225608] FS-Cache: Loaded
[    0.225909] CacheFiles: Loaded
[    0.238150] NET: Registered protocol family 2
[    0.239022] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.239159] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.239370] TCP: Hash tables configured (established 8192 bind 8192)
[    0.239487] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.239554] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.239806] NET: Registered protocol family 1
[    0.240155] RPC: Registered named UNIX socket transport module.
[    0.240188] RPC: Registered udp transport module.
[    0.240215] RPC: Registered tcp transport module.
[    0.240243] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.241115] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.242466] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.255597] VFS: Disk quotas dquot_6.6.0
[    0.255927] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.258155] FS-Cache: Netfs 'nfs' registered for caching
[    0.259071] NFS: Registering the id_resolver key type
[    0.259138] Key type id_resolver registered
[    0.259166] Key type id_legacy registered
[    0.261450] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.261609] io scheduler noop registered
[    0.261646] io scheduler deadline registered
[    0.261713] io scheduler cfq registered (default)
[    0.264157] BCM2708FB: allocated DMA memory f8800000
[    0.264204] BCM2708FB: allocated DMA channel 0 @ f3007000
[    0.316917] Console: switching to colour frame buffer device 240x67
[    0.345773] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.347960] 3f215040.uart: ttyS0 at MMIO 0x3f215040 (irq = 59, base_baud = 50000000) is a 16550
[    1.139294] bcm2835-rng 3f104000.rng: hwrng registered
[    1.139615] vc-cma: Videocore CMA driver
[    1.139733] vc-cma: vc_cma_base      = 0x00000000
[    1.139855] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.139991] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.140421] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    1.155144] brd: module loaded
[    1.163911] loop: module loaded
[    1.164957] vchiq: vchiq_init_state: slot_zero = 0xb8880000, is_master = 0
[    1.166700] Loading iSCSI transport class v2.0-870.
[    1.167509] usbcore: registered new interface driver smsc95xx
[    1.167705] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.368107] Core Release: 2.80a
[    1.368201] Setting default values for core params
[    1.368345] Finished setting default values for core params
[    1.568848] Using Buffer DMA mode
[    1.568941] Periodic Transfer Interrupt Enhancement - disabled
[    1.569088] Multiprocessor Interrupt Enhancement - disabled
[    1.569228] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.569354] Dedicated Tx FIFOs mode
[    1.569777] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xb8814000 dma = 0xf8814000 len=9024
[    1.570061] FIQ FSM acceleration enabled for :
[    1.570061] Non-periodic Split Transactions
[    1.570061] Periodic Split Transactions
[    1.570061] High-Speed Isochronous Endpoints
[    1.570061] Interrupt/Control Split Transaction hack enabled
[    1.570581] dwc_otg: Microframe scheduler enabled
[    1.570630] WARN::hcd_init_fiq:413: FIQ on core 1 at 0x804492fc
[    1.570784] WARN::hcd_init_fiq:414: FIQ ASM at 0x8044965c length 36
[    1.570945] WARN::hcd_init_fiq:439: MPHI regs_base at 0xb987a000
[    1.571148] dwc_otg 3f980000.usb: DWC OTG Controller
[    1.577971] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    1.584900] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    1.591786] Init: Port Power? op_state=1
[    1.598565] Init: Power Port (0)
[    1.605491] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.612281] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.619082] usb usb1: Product: DWC OTG Controller
[    1.625816] usb usb1: Manufacturer: Linux 4.4.21-v7 dwc_otg_hcd
[    1.632601] usb usb1: SerialNumber: 3f980000.usb
[    1.640184] hub 1-0:1.0: USB hub found
[    1.646901] hub 1-0:1.0: 1 port detected
[    1.654290] dwc_otg: FIQ enabled
[    1.654299] dwc_otg: NAK holdoff enabled
[    1.654308] dwc_otg: FIQ split-transaction FSM enabled
[    1.654349] Module dwc_common_port init
[    1.654643] usbcore: registered new interface driver usb-storage
[    1.661732] mousedev: PS/2 mouse device common for all mice
[    1.669272] bcm2835-cpufreq: min=600000 max=1200000
[    1.676258] sdhci: Secure Digital Host Controller Interface driver
[    1.683019] sdhci: Copyright(c) Pierre Ossman
[    1.690057] sdhost: log_buf @ b8813000 (f8813000)
[    1.750146] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.759129] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.765827] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    1.810138] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.817223] ledtrig-cpu: registered to indicate activity on CPUs
[    1.824042] hidraw: raw HID events driver (C) Jiri Kosina
[    1.830846] usbcore: registered new interface driver usbhid
[    1.837507] usbhid: USB HID core driver
[    1.844732] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.851268] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.853710] mmc0: new high speed SDHC card at address aaaa
[    1.854439] mmcblk0: mmc0:aaaa SL32G 29.7 GiB
[    1.872233] Indeed it is in host mode hprt0 = 00021501
[    1.939172]  mmcblk0: p1 p2
[    1.946027] Initializing XFRM netlink socket
[    1.952786] NET: Registered protocol family 17
[    1.959576] Key type dns_resolver registered
[    1.965175] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.966738] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.968300] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.971104] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.993195] Registering SWP/SWPB emulation handler
[    2.000583] registered taskstats version 1
[    2.007208] vc-sm: Videocore shared memory driver
[    2.013621] [vc_sm_connected_init]: start
[    2.020519] [vc_sm_connected_init]: end - returning 0
[    2.027268] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    2.050059] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.050212] Indeed it is in host mode hprt0 = 00001101
[    2.061836] mmc1: new high speed SDIO card at address 0001
[    2.250318] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.250327] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.256351] hub 1-1:1.0: USB hub found
[    2.256444] hub 1-1:1.0: 5 ports detected
[    2.530045] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.630296] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.630305] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.633639] smsc95xx v1.0.4
[    2.693424] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:5e:28:d1
[    2.930044] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.031509] usb 1-1.2: New USB device found, idVendor=04a9, idProduct=3272
[    3.031519] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.031526] usb 1-1.2: Product: Canon Digital Camera
[    3.031533] usb 1-1.2: Manufacturer: Canon Inc.
[    3.110045] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[    3.215335] usb 1-1.4: New USB device found, idVendor=046d, idProduct=c52b
[    3.215345] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.215352] usb 1-1.4: Product: USB Receiver
[    3.215359] usb 1-1.4: Manufacturer: Logitech
[    3.259040] console [ttyAMA0] enabled
[    3.269616] of_cfs_init
[    3.278539] of_cfs_init: OK
[    3.288531] uart-pl011 3f201000.uart: no DMA platform data
[    3.304761] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    3.323210] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    3.341850] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    3.355627] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    3.445273] EXT4-fs (mmcblk0p2): recovery complete
[    3.466118] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.480580] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.499817] devtmpfs: mounted
[    3.509765] Freeing unused kernel memory: 472K (807f0000 - 80866000)
[    3.614401] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro,data=ordered
[    3.731832] udevd[106]: starting version 3.2
[    3.773252] random: udevd: uninitialized urandom read (16 bytes read, 74 bits of entropy available)
[    3.793977] random: udevd: uninitialized urandom read (16 bytes read, 74 bits of entropy available)
[    3.809869] random: udevd: uninitialized urandom read (16 bytes read, 74 bits of entropy available)
[    3.856210] udevd[108]: starting eudev-3.2
[    3.953751] random: udevd: uninitialized urandom read (16 bytes read, 75 bits of entropy available)
[    3.987140] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    4.004197] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    4.051860] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-3f980000.usb-1.4/input2
[    4.197617] usbcore: registered new interface driver brcmfmac
[    4.210764] logitech-hidpp-device 0003:046D:402D.0004: hidraw1: USB HID v1.11 Keyboard [Logitech M560] on usb-3f980000.usb-1.4:1
[    4.238987] input: Logitech K400 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.2/0003:046D:C52B.0003/0003:046D:4024.0005/input/input0
[    4.261783] logitech-hidpp-device 0003:046D:4024.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech K400] on usb-3f980000.usb-1.4:2
[    4.357661] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[    4.403411] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    4.446213] random: dd: uninitialized urandom read (512 bytes read, 117 bits of entropy available)
[    4.505068] random: dbus-uuidgen: uninitialized urandom read (12 bytes read, 118 bits of entropy available)
[    4.523159] random: dbus-uuidgen: uninitialized urandom read (8 bytes read, 119 bits of entropy available)
[    4.569511] random: dbus-daemon: uninitialized urandom read (12 bytes read, 120 bits of entropy available)
[    4.600371] random: dbus-daemon: uninitialized urandom read (12 bytes read, 120 bits of entropy available)
[    4.805733] NET: Registered protocol family 10
[    4.921837] random: nonblocking pool is initialized
[    4.935444] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    4.950906] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   14.342650] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[   14.357386] brcmfmac: brcmf_add_if: ignore IF event
[   14.365764] brcmfmac: power management disabled
[   14.367549] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   14.826941] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[   14.841633] brcmfmac: brcmf_add_if: ignore IF event
[   14.902514] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   26.519150] usb 1-1.2: USB disconnect, device number 4
[   28.550054] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[   28.681464] usb 1-1.2: New USB device found, idVendor=04a9, idProduct=3272
[   28.696547] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   28.712059] usb 1-1.2: Product: Canon Digital Camera
[   28.725222] usb 1-1.2: Manufacturer: Canon Inc.
# 

@foxinsox
Copy link
Author

I restarted without camera now, but plugged it in again at sec 26 as you can see…

@protobubble
Copy link

protobubble commented Mar 19, 2017

Same camera here, same issue. I've run into strange things like this before in my previous gphoto2 projects. Question: In your readme you mentioned that you are packaging libgphoto2 into this project's build. What version are you packaging, or are you referencing the latest versions by default? Certain earlier versions of libgphoto2 have an issue requiring a usbreset to be sent to the pi in order for the camera to recognize again.

Also: How are you implementing the camera-toolbox start on boot?

I have a 700D and will be testing this early this week.

@rlamarche
Copy link
Owner

rlamarche commented Mar 20, 2017

Indeed I was packaging libgphoto2, but now I've removed it from the project (but I still reference it with git submodule).
This was to allow debugging libgphoto and patching it easily.

Can you update the cameratoolbox binary and try again please ? You need the latest version so that it recognize canon camera.
Unzip this file in /usr/local/bin :
camera-toolbox.zip

@foxinsox this the same binary that you should have already installed previously here rlamarche/camera-toolbox-images#1 (comment)

@protobubble on boot, I try to detect the camera model and start toolbox : https://github.com/rlamarche/camera-toolbox/blob/master/app/main.cpp#L177

On the init sequence I get some infos :
https://github.com/rlamarche/camera-toolbox/blob/master/app/gphoto/gpcamera.cpp#L146

@rlamarche
Copy link
Owner

The version of libgphoto2 in the image is 2.5.11.
The latest version is 2.5.12.

http://gphoto.org/news/

@protobubble do you want to try with a specific version of libgphoto ? let me know

@foxinsox
Copy link
Author

foxinsox commented Mar 22, 2017

Hej @rlamarche , thanks for coming back on this.
Meanwhile, i made a build of this project with libgphoto2 v 2.5.12 via CT Creator on my linux machine. Maybe it helps solving those Canon issues?

What happens at first is that the program "canon digital camera" opens automatically and claims the camera. Camera-toolbox fails due to this:

1 cameras detected.
Open camera : "Canon EOS 700D" at port "usb:001,009"
Error : "Unable to get root widget : Could not claim the USB device"

I remember calling killall PTPCamera under OSX helped on this, but under linux it doesn't work and i haven't found the according PID yet. So i have to unmount it manually.
I wonder: How is this solved on the raspberry pi? Is there maybe any other programm claiming the canon camera before camera-toolbox does?

When i run the program again after i manually unmounted the camera from the "canon digital camera" software, camera-toolbox starts successfully. I can see a black window with some camera settings and I can run most commands like setting Aperture, ISO or Speed or trigger a picture capture. However, the live-view does not work:

Starting /home/alex/build-hpis-Desktop_Qt_5_8_0_GCC_64bit-Debug/app/camera-toolbox...
1 cameras detected.
Open camera : "Canon EOS 700D" at port "usb:001,009"
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Start camera thread
Start liveview decoder thread
Idle event: Unknown
Unknown data: PTP Property d105 changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
[...]
Idle event: Unknown
Unknown data: PTP Property d103 changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Idle event: Unknown
Unknown data: OLCInfo event 0x0010 content 040101e3
Idle event: Unknown
Unknown data: OLCInfo event 0x0020 content 000000000000
Idle event: Unknown
Unknown data: OLCInfo exposure indicator 1,0,0.0 (00000000)
Idle event: Unknown
Unknown data: OLCInfo event 0x0080 content 00000000
Idle event: Unknown
Unknown data: OLCInfo event 0x0400 content 00000000000000
Idle event: Unknown
Unknown data: OLCInfo event 0x0800 content 0000000000080000
Idle event: Unknown
Unknown data: OLCInfo event 0x1000 content 00
Idle event: Unknown
Unknown data: OLCInfo event mask=1fff
[...]
Idle event: Unknown
Unknown data: OLCInfo event mask=2
Error : "Unable to get single config movie: Bad parameters"
Error : "Unable to start record a movie: Bad parameters"
Command failed:  "CommandStartLiveview"
Capture success.
Idle event: Unknown
Unknown data: Button 2
Idle event: Unknown
Unknown data: PTP Property d102 changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Idle event: Unknown
Unknown data: PTP Property d103 changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Idle event: Unknown
Unknown data: OLCInfo exposure indicator 1,1,0.0 (00000000)
Idle event: Unknown
Unknown data: OLCInfo event mask=24b
Idle event: Unknown
Unknown data: PTP Property d1c0 changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Idle event: Unknown
Unknown data: OLCInfo event mask=100
Idle event: Unknown
Unknown data: Camera Status 1
Idle event: Unknown
Unknown data: PTP Property d11b changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Idle event: Unknown
Unknown data: PTP Property d1d3 changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Idle event: Unknown
Unknown data: OLCInfo event 0x0010 content 040201e3
Idle event: Unknown
Unknown data: OLCInfo event mask=10
Idle event: Unknown
Unknown data: PTP Property d1d3 changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Idle event: Unknown
Unknown data: PTP Property d1c0 changed
Error : "Unable to get single config shootingmode: Bad parameters"
Error : "Unable to get single config exposurecompensation: Bad parameters"
Idle event: Unknown
Unknown data: Button 3
Idle event: Unknown
Unknown data: OLCInfo event mask=101
Idle event: File added
File / / capt0000.cr2 added to queue.
Error : "Unable to get single config movie: Bad parameters"
Error : "Unable to start record a movie: Bad parameters"
Command failed:  "CommandStartLiveview"

The EOS 700 D is on movie record mode and i can see the live-view on the cameras display.

@foxinsox
Copy link
Author

Actually i just see that the programm creates a GPCanonCamera instance, but unlike the GPNikonCamera class you haven't implemented any methods for live-view yet. So i guess by now it's not even supposed to work at all?
https://github.com/rlamarche/camera-toolbox/blob/master/app/gphoto/canon/gpcanoncamera.cpp#L82

@rlamarche
Copy link
Owner

Hi,

Just a quick reply : the "startliveview" is not really needed neither on Nikon nor Canon camera because libgphoto should start it automatically when requesting for preview.

Thank you for your feedback above, I'll look at it when I'll have the time 👍

@foxinsox
Copy link
Author

WOW, Amazing!!! Quick update:
Apparently i was too stupid to find the right key combination for hitting "enter" on my macbook-virtual machine ubuntu setup… Now I just started the liveview via
curl --request POST http://[Pi IP]:8080/api/v1/liveview/start
and it works! :) Framerate is just around 8fps, but maybe that's due to my system running on a virtual machine with two cores only… Is it going any faster on the raspberry pi?

@rlamarche
Copy link
Owner

Hi,
Good news 👍

With a nikon camera and raspberry pi 3, I get between 25 and 40 fps. Maybe more I don't remember - it depends of the camera mode. For example, if I set the mode 1280x720 60fps, I should get 60fps.

I don't think that your virtual machine is limiting you here.
I think that canon camera need tuning to increase the framerate like decreasing the liveview resolution.
On my Nikon the resolution is 640x426. On Canon it is more I think.

Can you get a single preview image on this url : http://..../api/v1/preview.jpg and publish it here please ?
Thank you.

@rlamarche
Copy link
Owner

The right key to enable liveview is "enter" from the numpad.

@foxinsox
Copy link
Author

Voila!
preview2
Just attached a Canon EOS 600D and it runs a little faster – around 13fps. So i still haven't found out how to speed the camera up but i'm working on it. Changing the resolution and framerate didn't help yet. Also I wonder where to find the recorded movie file after calling /capture/start and /capture/stop during liveview…?

@rlamarche
Copy link
Owner

Thank you !
The preview resolution is 960x640 pixels and the size is 544kb.
With 13fps, you get more than 7mb/s.
If we talk in mbits, it is around 56mbits/s.

I think that the bandwidth (or CPU) is limiting you, and that's why I get more fps with a nikon.

Can you run gphoto2 --list-all-config and post here the result ? I think that there is a config to reduce the preview resolutions. It exists on recent Nikon DSLR (D810, D500, D750). I think that it already exists on canon camera.

Thanks !

@foxinsox
Copy link
Author

Interesting!
Here are the configs for the Canon EOS 600D (which is actually an american Canon rebel T3i):

$ gphoto2 --list-all-config
/main/actions/syncdatetime                                                     
Label: Synchronize camera date and time with PC
Type: TOGGLE
Current: 0
/main/actions/uilock
Label: UI Lock
Type: TOGGLE
Current: 2
/main/actions/autofocusdrive
Label: Drive Canon DSLR Autofocus
Type: TOGGLE
Current: 0
/main/actions/manualfocusdrive
Label: Drive Canon DSLR Manual focus
Type: RADIO
Current: None
Choice: 0 Near 1
Choice: 1 Near 2
Choice: 2 Near 3
Choice: 3 None
Choice: 4 Far 1
Choice: 5 Far 2
Choice: 6 Far 3
/main/actions/cancelautofocus
Label: Cancel Canon DSLR Autofocus
Type: TOGGLE
Current: 0
/main/actions/eoszoom
Label: Canon EOS Zoom
Type: TEXT
Current: 0
/main/actions/eoszoomposition
Label: Canon EOS Zoom Position
Type: TEXT
Current: 0,0
/main/actions/viewfinder
Label: Canon EOS Viewfinder
Type: TOGGLE
Current: 2
/main/actions/eosremoterelease
Label: Canon EOS Remote Release
Type: RADIO
Current: None
Choice: 0 None
Choice: 1 Press Half
Choice: 2 Press Full
Choice: 3 Release Half
Choice: 4 Release Full
Choice: 5 Immediate
Choice: 6 Press 1
Choice: 7 Press 2
Choice: 8 Press 3
Choice: 9 Release 1
Choice: 10 Release 2
Choice: 11 Release 3
/main/actions/opcode
Label: PTP Opcode
Type: TEXT
Current: 0x1001,0xparam1,0xparam2
/main/settings/datetime
Label: Camera Date and Time
Type: DATE
Current: 1490610157
Printable: Mo 27 Mär 12:22:37 2017
Help: Use 'now' as the current time when setting.

/main/settings/reviewtime
Label: Quick Review Time
Type: RADIO
Current: 2 seconds
Choice: 0 None
Choice: 1 2 seconds
Choice: 2 4 seconds
Choice: 3 8 seconds
Choice: 4 Hold
/main/settings/output
Label: Camera Output
Type: RADIO
Current: Off
Choice: 0 TFT
Choice: 1 PC
Choice: 2 TFT + PC
Choice: 3 Setting 4
Choice: 4 Setting 5
Choice: 5 Setting 6
Choice: 6 Setting 7
Choice: 7 Off
/main/settings/movierecordtarget
Label: Recording Destination
Type: RADIO
Current: None
Choice: 0 Card
Choice: 1 None
/main/settings/evfmode
Label: EVF Mode
Type: RADIO
Current: Unknown value 0002
Choice: 0 Unknown value 0002
/main/settings/ownername
Label: Owner Name
Type: TEXT
Current: 
/main/settings/artist
Label: Artist
Type: TEXT
Current: 
/main/settings/copyright
Label: Copyright
Type: TEXT
Current: 
/main/settings/customfuncex
Label: Custom Functions Ex
Type: TEXT
Current: c8,4,1,2c,3,101,1,0,103,1,0,10f,1,0,2,2c,3,201,1,0,202,1,0,203,1,0,3,20,2,50e,1,0,60f,1,0,4,38,4,701,1,0,704,1,0,811,1,0,80f,1,0,
/main/settings/focusinfo
Label: Focus Info
Type: TEXT
Current: eosversion=4,size=5184x3456,size2=5184x3456,points={{-1477,0,186,139},{-886,418,186,139},{-886,-418,186,139},{0,787,127,196},{0,0,231,238},{0,-787,127,196},{886,418,186,139},{886,-418,186,139},{1477,0,186,139}},select={},unknown={ff010000ffff}
/main/settings/autopoweroff
Label: Auto Power Off
Type: TEXT
Current: 0
/main/settings/depthoffield
Label: Depth of Field
Type: TEXT
Current: 0
/main/settings/capturetarget
Label: Capture Target
Type: RADIO
Current: Internal RAM
Choice: 0 Internal RAM
Choice: 1 Memory card
/main/settings/capture
Label: Capture
Type: TOGGLE
Current: 0
/main/status/serialnumber
Label: Serial Number
Type: TEXT
Current: 79e44cfec434554
/main/status/manufacturer
Label: Camera Manufacturer
Type: TEXT
Current: Canon Inc.
/main/status/cameramodel
Label: Camera Model
Type: TEXT
Current: Canon EOS REBEL T3i
/main/status/deviceversion
Label: Device Version
Type: TEXT
Current: 3-1.0.2
/main/status/vendorextension
Label: Vendor Extension
Type: TEXT
Current: None
/main/status/model
Label: Camera Model
Type: TEXT
Current: 2147484294
/main/status/ptpversion
Label: PTP Version
Type: TEXT
Current: 256
/main/status/Battery Level
Label: Battery Level
Type: TEXT
Current: 100%
/main/status/batterylevel
Label: Battery Level
Type: TEXT
Current: 100%
/main/status/lensname
Label: Lens Name
Type: TEXT
Current: EF-S18-55mm f/3.5-5.6 IS
/main/status/eosserialnumber
Label: Serial Number
Type: TEXT
Current: 222076057635
/main/status/shuttercounter
Label: Shutter Counter
Type: TEXT
Current: 16765
/main/status/availableshots
Label: Available Shots
Type: TEXT
Current: 42109
/main/imgsettings/imageformat
Label: Image Format
Type: RADIO
Current: Large Fine JPEG
Choice: 0 Large Fine JPEG
Choice: 1 Large Normal JPEG
Choice: 2 Medium Fine JPEG
Choice: 3 Medium Normal JPEG
Choice: 4 Small Fine JPEG
Choice: 5 Small Normal JPEG
Choice: 6 Smaller JPEG
Choice: 7 Tiny JPEG
Choice: 8 RAW + Large Fine JPEG
Choice: 9 RAW
/main/imgsettings/imageformatsd
Label: Image Format SD
Type: RADIO
Current: Large Fine JPEG
Choice: 0 Large Fine JPEG
Choice: 1 Large Normal JPEG
Choice: 2 Medium Fine JPEG
Choice: 3 Medium Normal JPEG
Choice: 4 Small Fine JPEG
Choice: 5 Small Normal JPEG
Choice: 6 Smaller JPEG
Choice: 7 Tiny JPEG
Choice: 8 RAW + Large Fine JPEG
Choice: 9 RAW
/main/imgsettings/iso
Label: ISO Speed
Type: RADIO
Current: 3200
Choice: 0 Auto
Choice: 1 100
Choice: 2 200
Choice: 3 400
Choice: 4 800
Choice: 5 1600
Choice: 6 3200
Choice: 7 6400
/main/imgsettings/whitebalance
Label: WhiteBalance
Type: RADIO
Current: Auto
Choice: 0 Auto
Choice: 1 Daylight
Choice: 2 Shadow
Choice: 3 Cloudy
Choice: 4 Tungsten
Choice: 5 Fluorescent
Choice: 6 Flash
Choice: 7 Manual
/main/imgsettings/whitebalancexa
Label: WhiteBalance X A
Type: TEXT
Current: 0
/main/imgsettings/whitebalancexb
Label: WhiteBalance X B
Type: TEXT
Current: 0
/main/imgsettings/colorspace
Label: Color Space
Type: RADIO
Current: sRGB
Choice: 0 sRGB
/main/capturesettings/focusmode
Label: Focus Mode
Type: RADIO
Current: One Shot
Choice: 0 One Shot
/main/capturesettings/autoexposuremode
Label: Canon Auto Exposure Mode
Type: RADIO
Current: Unknown value 0014
Choice: 0 P
Choice: 1 TV
Choice: 2 AV
Choice: 3 Manual
Choice: 4 Bulb
Choice: 5 A_DEP
Choice: 6 DEP
Choice: 7 Custom
Choice: 8 Lock
Choice: 9 Green
Choice: 10 Night Portrait
Choice: 11 Sports
Choice: 12 Portrait
Choice: 13 Landscape
Choice: 14 Closeup
Choice: 15 Flash Off
Choice: 16 Unknown value 0014
/main/capturesettings/drivemode
Label: Drive Mode
Type: RADIO
Current: Single
Choice: 0 Single
/main/capturesettings/picturestyle
Label: Picture Style
Type: RADIO
Current: Auto
Choice: 0 Standard
Choice: 1 Portrait
Choice: 2 Landscape
Choice: 3 Neutral
Choice: 4 Faithful
Choice: 5 Monochrome
Choice: 6 Auto
Choice: 7 User defined 1
Choice: 8 User defined 2
Choice: 9 User defined 3
/main/capturesettings/aperture
Label: Aperture
Type: RADIO
Current: 4
Choice: 0 4
Choice: 1 4.5
Choice: 2 5
Choice: 3 5.6
Choice: 4 6.3
Choice: 5 7.1
Choice: 6 8
Choice: 7 9
Choice: 8 10
Choice: 9 11
Choice: 10 13
Choice: 11 14
Choice: 12 16
Choice: 13 18
Choice: 14 20
Choice: 15 22
Choice: 16 25
/main/capturesettings/shutterspeed
Label: Shutter Speed
Type: RADIO
Current: 1/60
Choice: 0 30
Choice: 1 25
Choice: 2 20
Choice: 3 15
Choice: 4 13
Choice: 5 10
Choice: 6 8
Choice: 7 6
Choice: 8 5
Choice: 9 4
Choice: 10 3.2
Choice: 11 2.5
Choice: 12 2
Choice: 13 1.6
Choice: 14 1.3
Choice: 15 1
Choice: 16 0.8
Choice: 17 0.6
Choice: 18 0.5
Choice: 19 0.4
Choice: 20 0.3
Choice: 21 1/4
Choice: 22 1/5
Choice: 23 1/6
Choice: 24 1/8
Choice: 25 1/10
Choice: 26 1/13
Choice: 27 1/15
Choice: 28 1/20
Choice: 29 1/25
Choice: 30 1/30
Choice: 31 1/40
Choice: 32 1/50
Choice: 33 1/60
Choice: 34 1/80
Choice: 35 1/100
Choice: 36 1/125
Choice: 37 1/160
Choice: 38 1/200
Choice: 39 1/250
Choice: 40 1/320
Choice: 41 1/400
Choice: 42 1/500
Choice: 43 1/640
Choice: 44 1/800
Choice: 45 1/1000
Choice: 46 1/1250
Choice: 47 1/1600
Choice: 48 1/2000
Choice: 49 1/2500
Choice: 50 1/3200
Choice: 51 1/4000
/main/capturesettings/bracketmode
Label: Bracket Mode
Type: TEXT
Current: 0
/main/capturesettings/aeb
Label: Auto Exposure Bracketing
Type: RADIO
Current: off
Choice: 0 off
/main/other/d402
Label: PTP Property 0xd402
Type: TEXT
Current: Canon EOS REBEL T3i
/main/other/d407
Label: PTP Property 0xd407
Type: TEXT
Current: 1
/main/other/d406
Label: PTP Property 0xd406
Type: TEXT
Current: Unknown Initiator
/main/other/d303
Label: PTP Property 0xd303
Type: TEXT
Current: 1
/main/other/5001
Label: Battery Level
Type: MENU
Current: 100
Choice: 0 100
Choice: 1 0
Choice: 2 75
Choice: 3 0
Choice: 4 50

and for the Canon EOS 700D:

$ gphoto2 --list-all-config
/main/actions/syncdatetimeutc                                                  
Label: Synchronize camera date and time with PC
Type: TOGGLE
Current: 0
/main/actions/syncdatetime
Label: Synchronize camera date and time with PC
Type: TOGGLE
Current: 0
/main/actions/uilock
Label: UI Lock
Type: TOGGLE
Current: 2
/main/actions/autofocusdrive
Label: Drive Canon DSLR Autofocus
Type: TOGGLE
Current: 0
/main/actions/manualfocusdrive
Label: Drive Canon DSLR Manual focus
Type: RADIO
Current: None
Choice: 0 Near 1
Choice: 1 Near 2
Choice: 2 Near 3
Choice: 3 None
Choice: 4 Far 1
Choice: 5 Far 2
Choice: 6 Far 3
/main/actions/cancelautofocus
Label: Cancel Canon DSLR Autofocus
Type: TOGGLE
Current: 0
/main/actions/eoszoom
Label: Canon EOS Zoom
Type: TEXT
Current: 0
/main/actions/eoszoomposition
Label: Canon EOS Zoom Position
Type: TEXT
Current: 0,0
/main/actions/viewfinder
Label: Canon EOS Viewfinder
Type: TOGGLE
Current: 2
/main/actions/eosremoterelease
Label: Canon EOS Remote Release
Type: RADIO
Current: None
Choice: 0 None
Choice: 1 Press Half
Choice: 2 Press Full
Choice: 3 Release Half
Choice: 4 Release Full
Choice: 5 Immediate
Choice: 6 Press 1
Choice: 7 Press 2
Choice: 8 Press 3
Choice: 9 Release 1
Choice: 10 Release 2
Choice: 11 Release 3
/main/actions/opcode
Label: PTP Opcode
Type: TEXT
Current: 0x1001,0xparam1,0xparam2
/main/settings/datetimeutc
Label: Camera Date and Time
Type: DATE
Current: 1490616355
Printable: Mo 27 Mär 14:05:55 2017
Help: Use 'now' as the current time when setting.

/main/settings/datetime
Label: Camera Date and Time
Type: DATE
Current: 1490609155
Printable: Mo 27 Mär 12:05:55 2017
Help: Use 'now' as the current time when setting.

/main/settings/reviewtime
Label: Quick Review Time
Type: RADIO
Current: 2 seconds
Choice: 0 None
Choice: 1 2 seconds
Choice: 2 4 seconds
Choice: 3 8 seconds
Choice: 4 Hold
/main/settings/output
Label: Camera Output
Type: RADIO
Current: Off
Choice: 0 Off
Choice: 1 TFT
Choice: 2 PC
Choice: 3 TFT + PC
Choice: 4 Setting 4
Choice: 5 Setting 5
Choice: 6 Setting 6
Choice: 7 Setting 7
/main/settings/movierecordtarget
Label: Recording Destination
Type: RADIO
Current: None
Choice: 0 Card
Choice: 1 None
/main/settings/evfmode
Label: EVF Mode
Type: RADIO
Current: Unknown value 0002
Choice: 0 Unknown value 0002
/main/settings/ownername
Label: Owner Name
Type: TEXT
Current: 
/main/settings/artist
Label: Artist
Type: TEXT
Current: 
/main/settings/copyright
Label: Copyright
Type: TEXT
Current: 
/main/settings/customfuncex
Label: Custom Functions Ex
Type: TEXT
Current: 98,4,1,20,2,101,1,0,103,1,0,2,14,1,203,1,0,3,20,2,50e,1,0,60f,1,0,4,2c,3,701,1,0,704,1,0,811,1,0,
/main/settings/focusinfo
Label: Focus Info
Type: TEXT
Current: eosversion=4,size=5184x3456,size2=5184x3456,points={{-1368,0,172,129},{-819,387,172,129},{-819,-387,172,129},{0,763,117,181},{0,0,224,222},{0,-763,117,181},{819,387,172,129},{819,-387,172,129},{1368,0,172,129}},select={},unknown={ff01000000000000ffff}
/main/settings/focusarea
Label: Focus Area
Type: TEXT
Current: 63
/main/settings/autopoweroff
Label: Auto Power Off
Type: TEXT
Current: 0
/main/settings/depthoffield
Label: Depth of Field
Type: TEXT
Current: 0
/main/settings/capturetarget
Label: Capture Target
Type: RADIO
Current: Internal RAM
Choice: 0 Internal RAM
Choice: 1 Memory card
/main/settings/capture
Label: Capture
Type: TOGGLE
Current: 0
/main/status/serialnumber
Label: Serial Number
Type: TEXT
Current: 31f821cade5947419068f4fb43fef51f
/main/status/manufacturer
Label: Camera Manufacturer
Type: TEXT
Current: Canon Inc.
/main/status/cameramodel
Label: Camera Model
Type: TEXT
Current: Canon EOS 700D
/main/status/deviceversion
Label: Device Version
Type: TEXT
Current: 3-1.1.4
/main/status/vendorextension
Label: Vendor Extension
Type: TEXT
Current: None
/main/status/model
Label: Camera Model
Type: TEXT
Current: 2147484454
/main/status/ptpversion
Label: PTP Version
Type: TEXT
Current: 256
/main/status/Battery Level
Label: Battery Level
Type: TEXT
Current: 100%
/main/status/batterylevel
Label: Battery Level
Type: TEXT
Current: 100%
/main/status/lensname
Label: Lens Name
Type: TEXT
Current: EF-S18-55mm f/3.5-5.6 IS STM
/main/status/eosserialnumber
Label: Serial Number
Type: TEXT
Current: 413075028835
/main/status/shuttercounter
Label: Shutter Counter
Type: TEXT
Current: 491
/main/status/availableshots
Label: Available Shots
Type: TEXT
Current: 11940
/main/imgsettings/imageformat
Label: Image Format
Type: RADIO
Current: RAW
Choice: 0 Large Fine JPEG
Choice: 1 Large Normal JPEG
Choice: 2 Medium Fine JPEG
Choice: 3 Medium Normal JPEG
Choice: 4 Small Fine JPEG
Choice: 5 Small Normal JPEG
Choice: 6 Smaller JPEG
Choice: 7 Tiny JPEG
Choice: 8 RAW + Large Fine JPEG
Choice: 9 RAW
/main/imgsettings/imageformatsd
Label: Image Format SD
Type: RADIO
Current: RAW
Choice: 0 Large Fine JPEG
Choice: 1 Large Normal JPEG
Choice: 2 Medium Fine JPEG
Choice: 3 Medium Normal JPEG
Choice: 4 Small Fine JPEG
Choice: 5 Small Normal JPEG
Choice: 6 Smaller JPEG
Choice: 7 Tiny JPEG
Choice: 8 RAW + Large Fine JPEG
Choice: 9 RAW
/main/imgsettings/iso
Label: ISO Speed
Type: RADIO
Current: Auto
Choice: 0 Auto
/main/imgsettings/colortemperature
Label: Color Temperature
Type: TEXT
Current: 5200
/main/imgsettings/whitebalancexa
Label: WhiteBalance X A
Type: TEXT
Current: 0
/main/imgsettings/whitebalancexb
Label: WhiteBalance X B
Type: TEXT
Current: 0
/main/imgsettings/colorspace
Label: Color Space
Type: RADIO
Current: sRGB
Choice: 0 sRGB
/main/capturesettings/focusmode
Label: Focus Mode
Type: RADIO
Current: AI Focus
Choice: 0 AI Focus
/main/capturesettings/continuousaf
Label: Continuous AF
Type: RADIO
Current: On
Choice: 0 Off
Choice: 1 On
/main/capturesettings/autoexposuremode
Label: Canon Auto Exposure Mode
Type: RADIO
Current: Unknown value 0016
Choice: 0 P
Choice: 1 TV
Choice: 2 AV
Choice: 3 Manual
Choice: 4 Bulb
Choice: 5 A_DEP
Choice: 6 DEP
Choice: 7 Custom
Choice: 8 Lock
Choice: 9 Green
Choice: 10 Night Portrait
Choice: 11 Sports
Choice: 12 Portrait
Choice: 13 Landscape
Choice: 14 Closeup
Choice: 15 Flash Off
Choice: 16 Unknown value 0016
/main/capturesettings/drivemode
Label: Drive Mode
Type: RADIO
Current: Single
Choice: 0 Single
Choice: 1 Continuous
Choice: 2 Timer 10 sec
Choice: 3 Timer 2 sec
Choice: 4 Unknown value 0007
/main/capturesettings/picturestyle
Label: Picture Style
Type: RADIO
Current: Auto
Choice: 0 Auto
Choice: 1 Standard
Choice: 2 Portrait
Choice: 3 Landscape
Choice: 4 Neutral
Choice: 5 Faithful
Choice: 6 Monochrome
Choice: 7 User defined 1
Choice: 8 User defined 2
Choice: 9 User defined 3
/main/capturesettings/aperture
Label: Aperture
Type: RADIO
Current: implicit auto
Choice: 0 implicit auto
/main/capturesettings/shutterspeed
Label: Shutter Speed
Type: RADIO
Current: auto
Choice: 0 auto
/main/capturesettings/bracketmode
Label: Bracket Mode
Type: TEXT
Current: 0
/main/capturesettings/aeb
Label: Auto Exposure Bracketing
Type: RADIO
Current: off
Choice: 0 off
/main/other/d402
Label: PTP Property 0xd402
Type: TEXT
Current: Canon EOS 700D
/main/other/d407
Label: PTP Property 0xd407
Type: TEXT
Current: 1
/main/other/d406
Label: PTP Property 0xd406
Type: TEXT
Current: Unknown Initiator
/main/other/d303
Label: PTP Property 0xd303
Type: TEXT
Current: 1
/main/other/5001
Label: Battery Level
Type: MENU
Current: 100
Choice: 0 100
Choice: 1 0
Choice: 2 75
Choice: 3 0
Choice: 4 50

If of interest: gphoto2 version specifics:

$ gphoto2 --version
gphoto2 2.5.11

Copyright (c) 2000-2016 Lutz Mueller and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.11         clang, popt(m), no exif, no cdk, no aa, jpeg, readline
libgphoto2      2.5.12         all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0         clang, ltdl, USB, serial without locking

@rlamarche
Copy link
Owner

Ok I have (re-)found a previous issue on libgphoto where somebody has succesfully changed the livevew resolution : gphoto/libgphoto2#75 (comment)
That's a good news ;)

The widget name is : /main/settings/output (PTP_DPC_CANON_EOS_EVFOutputDevice)
So we should set the value to another value than PC or TFT and test !

Do you have compiled your-self camera-toolbox ?

@foxinsox
Copy link
Author

Oh that sounds good!
Yes i compiled camera-toolbox by myself with the settings from the your latest commit in QT Creator. So libgphoto2 is included as a submodule but not recompiled since you commented it out in the latest pro-file. The libgphoto2 version it's now linked to was downloaded and compiled independently.

@rlamarche
Copy link
Owner

rlamarche commented Mar 27, 2017

Ok I checked libgphoto2 sourcecode and it seems that the value "2" is forced on each previewframe.
So we can't change it using camera-toolbox but we will need to patch libgphoto2.

Did you compiled libgphoto2 youself ? Are you using the image I provided ? Tell me.

In the current version, the following line needs to be updated : val.u32 = 2;

https://github.com/gphoto/libgphoto2/blob/master/camlibs/ptp2/library.c#L2585 :

/* do not set it everytime, it will cause delays */
ret = ptp_canon_eos_getdevicepropdesc (params, PTP_DPC_CANON_EOS_EVFOutputDevice, &dpd);
if ((ret != PTP_RC_OK) || (dpd.CurrentValue.u32 != 2)) {
	/* 2 means PC, 1 means TFT */
	val.u32 = 2;
	C_PTP_MSG (ptp_canon_eos_setdevicepropvalue (params, PTP_DPC_CANON_EOS_EVFOutputDevice, &val, PTP_DTC_UINT32),
		   "setval of evf outputmode to 2 failed (curval is %d)!", dpd.CurrentValue.u32);
}
ptp_free_devicepropdesc (&dpd);

@rlamarche
Copy link
Owner

Also I wonder where to find the recorded movie file after calling /capture/start and /capture/stop during liveview…?

The widget "movierecordtarget" is the answer. The current value on your both cameras is "None". We should set "Card" here. It is possible by updating camera-toolbox code.

For example, update startLiveView method in the file gpcanoncamera.cpp like this :

bool GPCanonCamera::startLiveView()
{
    // TODO how to implement on Canon Rebel XT ?

    // force record target to card
    gpSetRadioWidget("movierecordtarget", "Card");
    m_isInLiveView = true;
    return true;
}

@foxinsox
Copy link
Author

Alright, thanks for the help! I'll try to change the libgphoto sourcecode and recompile now. I'm not using the image you provided. I downloaded libgphoto2 2.5.12 from here and compiled it myself, so I'll just to that again with the change you proposed.

@foxinsox
Copy link
Author

Ok, so i tried it with

val.u32 = 0x009; which didn't work unfortunately:

Error : "Unable to capture preview: The camera is already busy"
The camera is not ready, try again later.

however, val.u32 = 0x0002;, val.u32 = 0x0004;, val.u32 = 0x0006; or val.u32 = 0x0007;does work and gives a slighty higher framerate (around 12fps on the Canon 700D - before it was 8fps). But any preview stills i'm taking with those different values via /preview.jpg are all the same resolution and size: 960x640 pixels and ~500kb.

@rlamarche
Copy link
Owner

Ok. Maybe this is a feature added on camera that has wifi remote feature.
Have you tried all possible values ?

@rlamarche
Copy link
Owner

rlamarche commented Mar 28, 2017

Was the screen of the canon camera always "ON" on your tests ?

@foxinsox
Copy link
Author

Have you tried all possible values

i wonder where i could find out about all other possible values… 1and 2are mentioned in the sourcecode itself (/* 2 means PC, 1 means TFT */), but i don't really know any more than that.

Was the screen off the canon camera always "ON" on your tests ?

Yes, it was.

@rlamarche rlamarche mentioned this issue Mar 28, 2017
@rlamarche
Copy link
Owner

On this ticket #4 (comment), with a canon 6D, @claussteinmassl is getting around 22fps in the same resolution, but have a lag.

Do you have a lag ?

@foxinsox
Copy link
Author

Hi again,
actually there is almost no lag at all in the Qt-Apps preview window and in any browser (firefox, chrome) on my machine. The lag just appears when streaming over wifi to another device in the LAN, but that doesn't matter since it's a different issue i guess... yeah it's really strange to see that @claussteinmassl had 22fps on the same camera as I.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants