Re: Arduino support?

Marcus Meissner <[email protected]>
Newsgroups gmane.comp.multimedia.gphoto.devel
Organization SUSE Software Solutions Ger many GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany , GF: Ivo Totev, HRB 36809, AG Nürnberg
Message-ID <[email protected]>
On Tue, Feb 15, 2022 at 03:23:12PM -0800, Dan Fandrich wrote:
> On Tue, Feb 15, 2022 at 05:37:10PM -0500, Hubert Figuiere wrote:
> > On 2022-02-15 5:17 p.m., Dave Taylor wrote:
> > > If not, how much effort do we think it might take to port?
> > you'll need:
> > 
> > - A modern C toolchain
> > - A certain about of RAM
> > - A proper libusb implementation OR rewrite the USB layer to the platform
> > implementation
> > 
> > I'd rate that hard, downright impossible if you hit the hardware limitation.
> 
> Looking at the various Arduino boards out there, it looks to me like they
> typically have RAM measured in two-digit KiB and flash measured in three-digit
> KiB (that's in the range of 0.0001 GiB for you kids out there). Given that the
> library binaries libgphoto2, libgphoto2_port and ptp2 alone total well over 1
> MiB on my desktop machine, I'd say it's impossible.  You might be able to use
> the source code as a base to create a stripped-down version that could squeeze
> into that space, but it would be a huge undertaking.

I think this is too small alone for the ptp2 implementation.
 
> With such tight constraints, you'd probably be better off starting from
> scratch. A quick search brought me to https://github.com/felis/PTP_2.0 which is
> a PTP driver for Arduino. That's probably a better basis for starting such a
> project. gphoto2 was designed for extensibility, not for optimized space
> saving in an embedded environment.

Also check libptp2 (but it does not have any of the functionality from
the last 10+ years).

I think you could do some downstripping of our ptp2 driver perhaps, but
still a challenge ;)

ciao, Marcus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.