Arduino Yùn and gphoto

I'm trying to use my smartphone to grab photos from Yùn and forward them to a ftp server, just as a test.
I have an old Canon Powershot too, and I want to use it as weather cam, using a Yùn to forward to a ftp server images captured by the camera. Now I'm using a linux host on pc to do this dirty job and gphoto works fine with the camera.
But trying to connect the any camera to the Yùn, gphoto2 --list-ports command gives this result:

root@Arduino:~# gphoto2 --list-ports

Devices found: 0
Path                             Description
--------------------------------------------------------------

Yùn sees correctly any USB device connected (in this case the smartphone connected as PTP device):

root@Arduino:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 007: ID 04e8:6865 Samsung Electronics Co., Ltd GT-I9300 Phone [Galaxy S III] (PTP mode)
root@Arduino:~#

I'm running a Yùn with 1.5.3 release of OpenWRT
I'm forgetting something on configuring the camera. Any suggestion?

P.S. Using a webcam with UVC and GSPCA driver and fswebcam works fine, but I'd like to use my old Powershot

Does the Yun see the Camera correctly with lsusb? It seems something related to gphoto.

Angelo9999:
Does the Yun see the Camera correctly with lsusb? It seems something related to gphoto.

Yes, every camera I connect to the Yùn is correctly seen by lsusb (even smartphones configured as PTP cameras). I think gphoto rel. 2.4.11 available on OpenWRT repository has some bug.

root@Arduino:~# gphoto2 --list-ports

Devices found: 0
Path                             Description
--------------------------------------------------------------

Install driver:

opkg update
opkg install libgphoto2-drivers
root@Arduino:~# gphoto2 --list-ports
Devices found: 22
Path                             Description
--------------------------------------------------------------
disk:/mnt/sdb1                   Media '/dev/sdb1'
ptpip:                           PTP/IP Connection
...

Many thanks Sonnyyu, your tip made my Yùn to see cameras... :smiley:
Now I have to deal with "Segmentation fault" on autodetect... :smiling_imp:

Your camera models? which one give you problem.

Among supported cameras: Nikon D700; Nikon Coolpix P6000 and a Casio Exilim EX-Z100.
I triead also a Nikon Coolpix P7700 (not supported by gphoto2 2.4.11), same results with every camera I tried. As soon as possible I will try with manual configuration.

Interesting project, keep us updated.

Sorry for my late answer. I'm also try to work with gphoto an the YUN.
The 2.4.x Version of gphoto2 won't work on OpenWRT anymore.
You have to use a 2.5.x Version or above.

Precompiled packages of gphoto2 2.5.2 with not all drivers you can find here:
http://www.diy-wft.org/files/?dir=router-software/trunk

I used a hacked Version of 2.5.2 with all drivesrs aktivated und disabled Lens Zoom function compiled by myself for my Canon EOS 350D.

ylf_de:
Sorry for my late answer. I'm also try to work with gphoto an the YUN.
The 2.4.x Version of gphoto2 won't work on OpenWRT anymore.
You have to use a 2.5.x Version or above.

Precompiled packages of gphoto2 2.5.2 with not all drivers you can find here:
http://www.diy-wft.org/files/?dir=router-software/trunk

I used a hacked Version of 2.5.2 with all drivesrs aktivated und disabled Lens Zoom function compiled by myself for my Canon EOS 350D.

Thank you! Now I've a gphoto2 version fully working.
Is there a way to ask developers of OpenWRT to upgrade their repository with this version of gphoto2?

Again, thank you and Happy New Year!.

December 21st, 2014 libgphoto2 and gphoto2 2.5.6 have been released.

sonnyyu:
December 21st, 2014 libgphoto2 and gphoto2 2.5.6 have been released.

Yes, that's right!
But noone have portet the patchfiles for openwrt to this version yet.

Can you point me in the right direction for installing this:

Precompiled packages of gphoto2 2.5.2 with not all drivers you can find here:
http://www.diy-wft.org/files/?dir=router-software/trunk

And has any one gotten a more current version to work on the Yun?

2.5.2 v.s. 2.5.6, what is missing at your case?

sonnyyu:
2.5.2 v.s. 2.5.6, what is missing at your case?

Currently I have 2.4.7 on my yun. 2.5.6 would be much better. Any help on this would be so awesome.

If I were you, I will upgrade it to 2.5.2 first, since 2.4.7 has problem.

sonnyyu:
If I were you, I will upgrade it to 2.5.2 first, since 2.4.7 has problem.

I agree. Can you help me understand how to upgrade to 2.5.2?

Install gphoto2 dependent:

opkg update
opkg install gphoto2

Configuring libexif.
Configuring libltdl.
Configuring libgphoto2.
Configuring libpopt.
Configuring gphoto2.


opkg install libgphoto2-drivers
Configuring libgphoto2-drivers.


opkg remove libgphoto2-drivers
opkg remove gphoto2
opkg remove libgphoto2

Get 2.5.2 :

 cd /mnt/sda1
wget http://www.diy-wft.org/files/router-software/trunk/gphoto2_2.5.2-1_ar71xx.ipk
wget http://www.diy-wft.org/files/router-software/trunk/libgphoto2-drivers_2.5.2-1_ar71xx.ipk
wget http://www.diy-wft.org/files/router-software/trunk/libgphoto2_2.5.2-1_ar71xx.ipk

Install(order is important):

opkg install libgphoto2_2.5.2-1_ar71xx.ipk
opkg install gphoto2_2.5.2-1_ar71xx.ipk
opkg install libgphoto2-drivers_2.5.2-1_ar71xx.ipk

Oh my gosh. That's exactly what I needed!

Now is it possible to update to 2.5.6? or am I pushing my luck?

I have a d3300 i'd like to work with, but it's not fully supported till now.

hellochris:
Oh my gosh. That's exactly what I needed!

Now is it possible to update to 2.5.6? or am I pushing my luck?

I have a d3300 i'd like to work with, but it's not fully supported till now.

Drop a line here:

ask gphoto2's maintainer to help.

Keep us updated?