Shop OBEX P1 Docs P2 Docs Learn Events
MTP - Media Transfer Protocol — Parallax Forums

MTP - Media Transfer Protocol

48design48design Posts: 12
edited 2011-01-11 02:55 in Propeller 1
Hi community,

has somebody written code before to communicate with a camera via PTP/MTP?
For a project I need to trigger some DSLR cameras and get feedback from them...
I am very new to all that, so help would be appreciated!

Comments

  • MagIO2MagIO2 Posts: 2,243
    edited 2010-12-19 04:15
    Hi 48,

    a quick look at wikipedia let's me believe that MTP usually uses a USB connection where the camera is the slave and the attached computer is the master. As the propeller has no native support of USB, you propably need to add a controller in between which translates from USB to serial for example.
  • 48design48design Posts: 12
    edited 2010-12-20 13:50
    Thanks MagIO2!
    That's a good startingpoint.

    Danke
  • 48design48design Posts: 12
    edited 2010-12-20 14:24
    I re-read your post. Doesn't a ProtoBoard have a FTDI (http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/usb/List/0/SortField/4/ProductID/278/Default.aspx) onboard which lets you translate from USB to serial and vise versa?
  • TubularTubular Posts: 4,726
    edited 2010-12-20 16:31
    Unfortunately the FTDI chip is a "slave" (device), and connecting 2 slaves will not work. You need a "master" (host), which means something like the Vinculum 2 chip which is also by FTDI.

    Some clever people here have made the Prop emulate something approaching a non conformant USB host - talking HID slowly and also to bluetooth usb dongles, but I think you'd be the pioneer getting MTP up and running.

    Triggering the DSLRs generally just requires a relay contact to initiate the shot. What information were you hoping to get back? The picture itself? or parameters related to the picture such as ISO setting etc
  • 48design48design Posts: 12
    edited 2010-12-21 05:49
    Thank you Tubular!

    This helps me even more! So we will use a Vinculum II for our project.
    We need to get some data like "ready to shoot", allthough receiving the images would be really cool, I don't think that is necessary. I think shooting over MTP is also possible. I have to search for that. A relay contact should also be fine!

    Thany you very much!
  • greeshmagreeshma Posts: 1
    edited 2011-01-11 02:55
    hello every1,

    can anyone get me the code supporting object add/delete and object info changed event to mtp initiator ....i am in need of it for my project...plz let me knw..
Sign In or Register to comment.