Coder Social home page Coder Social logo

ptp_2.0's People

Contributors

felis avatar janhruby avatar jtenberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ptp_2.0's Issues

How to retrieve image filename from within OnObjectCreated event

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!

PTP2.0 + Nikon + Return Image Filename

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).

ptp.cpp: PTP::Operation doesn't work with first Parameter = 0

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.

Problems compiling examples

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

PROGMEM causes a section type conflict

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"

support of fujifilm finepix jv100

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!

Problem with USB Host Shield 2.0 and this Lib

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 )

PROGMEM causes a section conflict

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.