BMPC - LANC Commands

Getting started with a Blackmagic product? Ask questions here about setup and installation.
  • Author
  • Message
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

BMPC - LANC Commands

PostMon Oct 21, 2013 8:38 pm

Hello,

I am working on building my own custom remote control for the BMPC. So far I have identified most of the LANC Commands that the BMPC listens to except one:

- For Rec ON/OFF it listens to LANC "start/stop" command.

- For Focus control it listens to LANC "Focus manual far" and "Focus manual near" commands.

- For Iris control it listens to LANC "Exposure (models of the early 90's)" and it increases the F (closes the iris) whenever I give this command to the camera.

Can someone please tell me what is the LANC command for decreasing the F (opening the iris)?

Edit:

The command for opening the IRIS is:

Byte 0 - 0010 1000
Byte 1 - 55 (expressed in hexa)

Thank you,
Paul
Last edited by pmijoiu on Tue Nov 12, 2013 4:04 pm, edited 2 times in total.
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostTue Oct 22, 2013 9:45 am

You have 0x53 for exposure. That will probably map to auto-IRIS on the BMPCC
http://www.boehmel.de/lanc.htm
Can't find any other ones for ISIS yet.

I thought zooming was supported but just found out from the BMPCC FAQ that I was wrong. :(
I wanted to have focus+zoom via LANC for remote controlling the BMPCC on a crane and for automated camera movements on a slider. :(

I'll do some LAN tests with a logic analyser and an Arduino next week.

Do you know if I can control the speed of focusing by the rate of "focus near"/"focus far" commands in some kind of PWM?
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostTue Oct 22, 2013 10:51 am

Hi Marcus,

0x53 is the command with which I succeeded to close the IRIS step by step. It does NOT map to auto-IRIS. My problem is that I couldn't identify any command that would open the IRIS. It would have been great if 0x53 mapped to auto-IRIS because I don't necessarily need to have manual control over it.

I was also hoping to have remote control on Zoom for power zoom lenses but unfortunately it is not supported. Also it would have been great to be able to control the ISO and Shutter Angle remotely in order to fine tune the exposure in low light conditions when only changing the IRIS is not enough.

Regarding focus, you can control the speed by means of the frequency with which you repeat the "focus near"/"focus far" command. Each time you give a focus command to the camera it focuses a little bit (one step) nearer or farther. If you want it to work slower then you repeat the command more rarely than when you want it to work faster. I am controlling the BMPC by means of a Radio RC (since I am doing aerial filming with it) and I could even define an exponential speed curve if I wanted to.

Is there any way I could get in contact with any of the dev guys from BMD to ask them for support on the IRIS matter?

Cheers,
Paul
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostTue Oct 22, 2013 12:20 pm

Did you try 0x52, 0x54x 0x55?
They seem to be unassigned and if 0x53 closes the iris, chances are 0x52 or 0x54 opens it.

I'll try to modify my Manfrotto 585LNC LANC remote on the Manfrotto Modosteady
steadycam-grip to focus instead of zoom. That's much more needed on a Steadycam.
Map the different zoom commands to focus commands with different sleep times afterwards.
It's the perfect size for the Pocket.
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostTue Oct 22, 2013 1:43 pm

That was the first thing I tried :) as it seemed logical. I tried using the "52 - search +" and "54 - TV/VTR" commands, but these commands that I tried are in a different set of commands (0001 1000) and not in the same set as the "53 - exposure" command (0010 1000).

The device I am using is limited to standard LANC commands, I don't have access to unassigned bytes unless I modify the device firmware myself which is what I am thinking to do. But before I start reprogramming the firmware I would like to receive a confirmation from someone that that's indeed the way to go and not waste my time on it.

Cheers,
Paul
Offline

Matt Choules

  • Posts: 139
  • Joined: Mon Jul 08, 2013 9:53 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 11:15 am

I would be interested to see what you come up with. Although, having ISO control instead of Iris control might be worth considering for those with manual lenses...
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 11:19 am

Logic analyser and Arduino are ready.
Waiting for some small parts to just try out all possible commands next week.
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 11:27 am

Great news Marcus,

Please note that I have tried myself a lot of the standard LANC commands but only the ones I described above worked. I hope that one of the unassigned bytes near the Exposure one will open the Iris.

Please let me know if you succeed.

Cheers,
Paul
Offline

Matt Choules

  • Posts: 139
  • Joined: Mon Jul 08, 2013 9:53 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 11:56 am

Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 11:58 am

Rumple wrote:Have you tried this one:
http://www.prolanc.com/products.html#rc


Since it can just start/stop and that part works fine with my Manfrott,
I see no problems.
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 12:33 pm

Marcus,

I have found a way to modify the LANC commands from my device and was able to send 52 and 54 to the camera (while having 0010 1000 as byte 0) but unfortunately the Iris won't open.

Do you have any other ideas?

Cheers,
Paul
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 12:37 pm

pmijoiu wrote:Marcus,

I have found a way to modify the LANC commands from my device and was able to send 52 and 54 to the camera (while having 0010 1000 as byte 0) but unfortunately the Iris won't open.

Do you have any other ideas?

Cheers,
Paul


Not at the moment.
Do you have a ticket number for your support-question to Blackmagic?
My question about LANC and zoom is handled as #FWD-153-54110.
They asked for the exact type code of the 4 lenses and I already replied.
(Panasonic
H-FS100300 (mechanical zoom)
H-PS45175 (power zoom)
H-FS014042 (mechanical zoom)
H-PS14042E (power zoom)
)
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 12:50 pm

I have posted my question on the support page but I have not receive any ticket number. How did you post your issue in order to get a ticket number?
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 12:56 pm

pmijoiu wrote:I have posted my question on the support page but I have not receive any ticket number. How did you post your issue in order to get a ticket number?


Same way. The number was in the answer.
On the other hand, my 2 questions about LANC and dimentions way earlier this year are unanswered. (Prevented me from designing a cage and battery grip before I now got my camera.)
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 1:00 pm

EVRIKA!

The command for opening the IRIS is:

Byte 0 - 0010 1000
Byte 1 - 55 (expressed in hexa)

I now have full control over Rec, Focus and Iris functions.
Offline

Matt Choules

  • Posts: 139
  • Joined: Mon Jul 08, 2013 9:53 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 1:03 pm

Would anyone consider trying to control ISO instead of Iris?
Those of us with manual lenses would be very happy...
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 2:19 pm

Rumple wrote:Would anyone consider trying to control ISO instead of Iris?
Those of us with manual lenses would be very happy...


http://www.blackmagicdesign.com/support ... 849&os=mac

No ISO via LANC on BMPCC and I also don't know about any LANC commands for changing ISO/gain.
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 2:19 pm

Its not about people trying to control the ISO instead of Iris, its about BMD implementing remote control support in the camera software of other functions such as:

- ISO
- Shutter Angle
- Zoom
...

So far the only supported functions are Rec, Iris and Focus.
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 3:08 pm

Marcus, we are yet to identify the Auto Focus and Auto Iris commands. If you find them please let me know.

Cheers,
Paul
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostThu Oct 24, 2013 3:20 pm

I feel like playing Battleships on an infinite board trying to hit bytes instead of ships.
Offline

Kari Ylitalo

  • Posts: 12
  • Joined: Mon Nov 04, 2013 5:31 pm
  • Location: Helsinki, Finland

Re: BMPC - LANC Commands

PostMon Nov 04, 2013 5:45 pm

Hello Paul,

I would really appreciate if you could share the commands you have succeed to set REC, iris and focus. I really tend to have REC working too rather than filling my hard drives (and customers too) with footage of takeoffs, transitions and landings :?

Best regards,

Kari
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostTue Nov 05, 2013 3:00 pm

Hi Kari,

In my first post you will see all commands (also see this URL for a complete list of LANC commands: http://www.boehmel.de/lanc.htm).

Good luck!
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostTue Nov 12, 2013 4:05 pm

Has anyone found the Auto Focus and Auto Iris commands?

Cheers,
Paul
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostTue Nov 12, 2013 4:33 pm

pmijoiu wrote:Has anyone found the Auto Focus and Auto Iris commands?

Cheers,
Paul


I had some trouble with my shiny new logic analyser. So I had to wait for the weekend to fetch my old one and will give it another try this week. I did find that my Manfrotto LANC remote works but another one would not work at all. I'm still analysing why.
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostWed Nov 13, 2013 5:29 pm

My old logic analyser works and I was able to test the following commands with success:

//LANC(0x18, 0x33); //send REC command to camera
//LANC(0x28, 0x45); //send MANUAL FOCUS FAR command to camera
//LANC(0x28, 0x47); //send MANUAL FOCUS NEAR command to camera
//LANC(0x28, 0x53); //send IRIS+ command to camera
//LANC(0x28, 0x55); //send IRIS- command to camera

I search in the area of 0x55 and 0x47 but could not find anything that triggers auto iris or auto focus.
http://www.blackmagicdesign.com/support ... 849&os=mac
does however list AUTO IRIS and AUTO FOCUS as being LANC controllable.
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostWed Nov 13, 2013 5:48 pm

If I remember correctly you had an opened support ticket, did anyone from BM answer your question?
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostWed Nov 13, 2013 5:51 pm

pmijoiu wrote:If I remember correctly you had an opened support ticket, did anyone from BM answer your question?


That was about LANC zoom and it is simply not supported.
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostWed Nov 13, 2013 5:53 pm

Since you know the drill maybe you can ask them about the AutoIris and AutoFocus commands :)
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostWed Nov 13, 2013 6:38 pm

I did.


update: I just found autofocus
LANC(0x28, 0x43); // AUTO FOCUS
I tried that code before so some cable must have been loose or something.
(I'm doing this in a breadboard.)

No luck with AUTO IRIS yet.


Here is the blog posting where I document everything:
http://marcuswolschon.blogspot.com/2013 ... clone.html

Update: I found a way to get a much more reliable timing. Works much better now.
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostWed Nov 13, 2013 10:22 pm

That's strange because I remember I have also tried that command with no success. Maybe I should try again 51 and 57.

Anyway, great news, only one command to go. :)
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostThu Nov 14, 2013 11:12 am

Phil Healey from Blackmagic just answered!

IrisAutoAdjust = 0x28 0xAF
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostThu Nov 14, 2013 11:17 am

Thank god! or Phil! :) No way we would have found that on our own.

Great job!

P.S. now let's ask Phil to implement zoom control :P
Offline

Kari Ylitalo

  • Posts: 12
  • Joined: Mon Nov 04, 2013 5:31 pm
  • Location: Helsinki, Finland

Re: BMPC - LANC Commands

PostFri Nov 15, 2013 10:57 am

Thanks a lot for help guys. What i've got working at the moment is: (Just like mentioned in earlier posts)

0x1833 for rec on/off

0x2843 for focus button
0x28AF for iris button

0x2853 for iris close
0x2855 for iris open

but for some reason focus near and focus far does nothing with 0x2845 or 0x2847. Any ideas? What i can be missing somewhere?

Best,

Kari
Offline

MarcusWolschon

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

Re: BMPC - LANC Commands

PostFri Nov 15, 2013 11:04 am

KariY wrote:but for some reason focus near and focus far does nothing with 0x2845 or 0x2847. Any ideas? What i can be missing somewhere?


Did you repeat the command 5 times in a row as LANC requires you to?
Maybe your timing is slightly off (mine was until I changed the code to use direct register access).
You could check with a logic analyser. 1Msps is enough.
Offline

Kari Ylitalo

  • Posts: 12
  • Joined: Mon Nov 04, 2013 5:31 pm
  • Location: Helsinki, Finland

Re: BMPC - LANC Commands

PostThu Nov 28, 2013 5:25 pm

Thanks a lot for suggestions, I'm not electronics hero but i don't think it's timing or commandcycle thing as iris and all other commands are working fine in exact same rc channel. But when input focus near/far commands nothing happens.

Best,

Kari
Offline

pmijoiu

  • Posts: 21
  • Joined: Mon Oct 21, 2013 8:22 pm

Re: BMPC - LANC Commands

PostTue Mar 18, 2014 12:03 pm

This is how a remote controlled BMPCC looks like using a slightly modified StartoSnapper 2:

Offline

george sand

  • Posts: 23
  • Joined: Fri Aug 29, 2014 7:22 pm

Re: BMPC - LANC Commands

PostFri Aug 29, 2014 7:25 pm

is there any LAN-C code to control the ISO and the Shutter Angle of the Pocket Camera?

if not maybe could the software development team of the Pocket Camera implement some special LAN-C codes for these parameters?

i'd like to control them with a couple of potenciometers and an Arduino,

i personally don't careabout controlling Iris, focus or Zoom as i only manual lenses, only the REC, the ISO and the SHUTTER ANGLE

Return to Getting Started

Who is online

Users browsing this forum: Google [Bot] and 24 guests