Documentation for USB PTP Control

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Pyrate

  • Posts: 33
  • Joined: Tue Apr 16, 2019 11:16 pm
  • Real Name: Tim Jones

Documentation for USB PTP Control

PostThu Oct 24, 2019 10:15 pm

Are there any resources on how to tap into this new feature in the new firmware?
Offline

MarcusWolschon

  • Posts: 801
  • Joined: Sun Apr 14, 2013 6:59 pm

Re: Documentation for USB PTP Control

PostFri Oct 25, 2019 9:55 am

Looking for that too.
(So I can program a microcontroller to get old BMPCC LANC hardware working on the BMPCC4K again.)
Offline

zapteam

  • Posts: 35
  • Joined: Tue Nov 27, 2018 12:35 am
  • Real Name: Alex Bouchard

Re: Documentation for USB PTP Control

PostSun Oct 27, 2019 6:21 pm

Me too!
Offline

dzed

  • Posts: 4
  • Joined: Wed Nov 13, 2013 12:11 am
  • Real Name: Dyami Caliri

Re: Documentation for USB PTP Control

PostWed Oct 30, 2019 10:15 pm

We are working on Dragonframe integration.
Here is what I'm seeing with the BMPCC 4K and 6.6 software update:

OPERATIONS
0x1001 kGetDeviceInfo
0x1002 kOpenSession
0x1003 kCloseSession
0x1004 kGetStorageIDs
0x100E kInitiateCapture
0x1014 kGetDevicePropInfo
0x1015 kGetDeviceProp
0x1016 kSetDeviceProp
0x1018 kTerminateCapture
0x101C kInitiateOpenCapture

NOTICE: Missing GetObjectInfo, GetObject, GetPartialObject, etc. No way to to retrieve images/videos from media.

PROPS
0x5001 kpropCodeBatteryLevel
0x5002 kpropCodeFunctMode
0x5003 kpropCodeImageSize
0x5007 kpropCodeFNumber
0x5008 kpropCodeFocalLength
0x5009 kpropCodeFocalDist (not controllable?)
0x500F kpropCodeExpIndex (ISO)
0x5011 kpropCodeDateTime
0xD001 2 * current fps?
0xD002 shutter angle * 100
0xD003 focus (controllable) 0-65535
0xD004 color temp
0xD005 tint
0xD006 fps * 100
0xD007 off speed frame rate?
0xD008 off speed frame rate enabled ?(0 off, 1 on)
0xD009 zoom 0-65535
0xD00A busy recording?

It would be great, of course, to be able to download images and videos that are recorded into the media.

It would be even more amazing if BMD would provide a "live view" command to get a viewfinder JPG. This would allow us to use these cameras the way we use most DSLRs.
Offline

Pyrate

  • Posts: 33
  • Joined: Tue Apr 16, 2019 11:16 pm
  • Real Name: Tim Jones

Re: Documentation for USB PTP Control

PostThu Oct 31, 2019 2:09 am

I am more interested in just basic gimbal controls.
Offline

dzed

  • Posts: 4
  • Joined: Wed Nov 13, 2013 12:11 am
  • Real Name: Dyami Caliri

Re: Documentation for USB PTP Control

PostThu Oct 31, 2019 2:50 pm

Pyrate wrote:I am more interested in just basic gimbal controls.


Well, what I listed is the set of available PTP commands and properties. PTP is a protocol to control the camera, not to control a gimbal.

I'm not sure what you think the USB PTP functionality is supposed to do.
Offline

MarcusWolschon

  • Posts: 801
  • Joined: Sun Apr 14, 2013 6:59 pm

Re: Documentation for USB PTP Control

PostThu Oct 31, 2019 3:12 pm

Indeed. It allows the gimbal to control the camera remotely via it's own control elements.

What I miss is a way to start and stop the recording.
Offline

dzed

  • Posts: 4
  • Joined: Wed Nov 13, 2013 12:11 am
  • Real Name: Dyami Caliri

Re: Documentation for USB PTP Control

PostThu Oct 31, 2019 3:20 pm

For video, you use:
  • 0x101C (InitiateOpenCapture) - to start recording
  • 0x1018 (TerminateCapture) - to end recording
  • and the property 0xD00A goes to "1" when it is recording.
You should get a PTP event 0x4006 (property changed) with 0xD00A as the value when recording status changes.

For still images, you use 0x100E (InitiateCapture)
Then you get an event code 0x400D (capture complete) when it has finished.
Offline

jorbedo

  • Posts: 2
  • Joined: Wed Sep 16, 2020 12:04 am
  • Real Name: George Bedoya

Re: Documentation for USB PTP Control

PostWed Sep 16, 2020 12:06 am

Please, where can I find those commands, camera manual?, BMPCC 4K sdk (Any link available?) thanks.
Offline

da8iwr

  • Posts: 6
  • Joined: Thu Dec 10, 2020 2:51 pm
  • Real Name: Ian Wright

Re: Documentation for USB PTP Control

PostThu Dec 10, 2020 3:03 pm

Hi there, did anybody get this info? We are wanting to make software that can retrieve the media from the card on an Ursa mini 12K.

Cheers

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 8 guests