felis / ptp_2.0 Goto Github PK
View Code? Open in Web Editor NEWDigital Camera Control support for USB Host Shield r.2.0
Home Page: www.circuitsathome.com
Digital Camera Control support for USB Host Shield r.2.0
Home Page: www.circuitsathome.com
Hi, i can't run any sketches from the PTP_20 library. I tried using Arduino Ide 1.0.2, 1.0.5, 1.5.6, 0.2.2...
For example, from the PTPDevInfo sketch I get a lot of "*** causes a section type conflict", and from the EOSCapture sketch I get a lot of error like ".../usbhost.h:21:2: error: #error "Never include usbhost.h directly; include Usb.h instead", and from NKRemote sketch I get same error from EOSCapture plus some type and scope error.
There's anything you can tell me to do in order to make this library work correctly?
Thanks
Can the pull request be accepted, it seems to work and correct the issues?
Many thanks!
Hi !
First, thanks for what you did !
I'm trying to build the ptp device info example, but I have a problem. here is the error :
USB_Host_Shield_2.0-master/settings.h:139:176: fatal error: SPI.h: No such file or directory
#include <SPI.h> // Use the Arduino SPI library for the Arduino Due, RedBearLab nRF51822, Intel Galileo 1 & 2, Intel Edison or if the SPI library with transaction is available
I don't know why this, because, all example of the usb host lib worked perfectly and they use SPI.h
If anybody could help me, it would be great.
thanks in avance !
( Sorry for my bad english, I'm french )
In underlying PTP::Transaction there is an if checking for *params not being zero before calculating len. There is at least one PTP Command that needs the first parameter to be zero (0x90c2=Nikon ChangeCameraMode)
Why is there the check for *params? Removing it would solve the issue.
When compiling sample code using any recent version of Arduino IDE compiler throws numeros errors like this one: "/Users/username/Documents/Arduino/libraries/PTP_20/ptpconstitles.h:166: error: msgPlayback_Rate causes a section type conflict"
I'm getting problems compiling the examples (i've tryed two eos examples).
The error message is:
EOSBulb.pde:1:20: warning: usbhub.h: No such file or directory
EOSBulb.pde:3:17: warning: ptp.h: No such file or directory
EOSBulb.pde:4:22: warning: canoneos.h: No such file or directory
EOSBulb:9: error: expected class-name before '{' token
EOSBulb:16: error: 'PTP' has not been declared
EOSBulb:17: error: 'PTP' has not been declared
EOSBulb:20: error: 'USB' does not name a type
EOSBulb:21: error: 'USBHub' does not name a type
EOSBulb:22: error: 'CanonEOS' does not name a type
EOSBulb:24: error: variable or field 'OnDeviceDisconnectedState' declared void
EOSBulb:24: error: 'PTP' was not declared in this scope
EOSBulb:24: error: 'ptp' was not declared in this scope
The class EOSEventHandlers
provides an OnObjectCreated
event, which is triggered when the camera is done writing a captured image.
virtual void OnObjectCreated(const EOSEvent *evt, uint8_t* buf) = 0;
The event itself triggers fine, but how do I retrieve the filename of the written image? The buf
doesn't seem to be a simple char*
as I first thought.
The EOSEventMonitor example contains a custom parser made to extract a filename from EOS 'Object Created' event, as a source comment states. Running this example does indeed result in the filename being retrieved. Unfortunately, I don't see how I could integrate this code into my code.
If anyone could shed light on how this is done or point me in the right direction, I would greatly appreciate it. Thanks!
Hello,
i'd like to build an arduino controller for a Fujifilm finepix jv100 point and shoot machine.
Would this library work with this kind of cameras?
Sorry for asking, but i'd like to know before testing to avoid breaking something...
Thanks!
I saw that it was mentioned in some of the Demo's that the PTP examples can capture an image and through the serial terminal return a filename of the image captured.
I had a look and have not been able to find this, is it possible to present an example that does a capture and also returns the captured filename? (I use Nikon, but a generic example would be great).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.