Get focal length (a.k.a. zoom) info via BLE?

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

Chris Maier

  • Posts: 55
  • Joined: Fri Sep 22, 2017 3:04 pm
  • Location: Germany

Get focal length (a.k.a. zoom) info via BLE?

PostSun Feb 27, 2022 10:17 am

Hi,

is there a chance to get the focal length of a (non motorized) zoom lens via BLE?

I checked the source code of BlueMagic32, but I think that this will always return 0.00.
https://github.com/schoolpost/BlueMagic ... roller.cpp

Code: Select all
void BlueMagicCameraController::zoom(float zoom)
{
  if (zoom < 0 && zoom > 1)
    return;

  uint16_t val = mapFloat(zoom);

  uint8_t xlow = val & 0xff;
  uint8_t xhigh = (val >> 8);

  uint8_t data[10] = {255, 6, 0, 0, 0, 8, 128, 0, xlow, xhigh};
  _cameraControl->writeValue(data, 10, true);
}

float BlueMagicCameraController::getZoom()
{
  return 0.0;
}


The BMD manual talks at least about setting the focal length:
https://documents.blackmagicdesign.com/ ... 0005210000
BMD_BLE_Zoom.png
BMD_BLE_Zoom.png (127.21 KiB) Viewed 2135 times


Anyone able and willing to help?

Thank you in advance!
Chris
| 2x BMPCC 6K | Davinci Resolve Studio | Davinci Resolve Speed Editor |
Offline

oniongarlic

  • Posts: 59
  • Joined: Thu Dec 05, 2019 9:00 am
  • Location: Turku/Finland
  • Real Name: Kaj-Michael Lang

Re: Get focal length (a.k.a. zoom) info via BLE?

PostMon Aug 14, 2023 10:21 am

You get zoom value by listening to the BLE notifications. Works for me(tm)
Check out my free and open software:
CutePocketRemote - https://www.tal.org/projects/cutepocketremote
CuteAtum - https://www.tal.org/projects/cuteatum

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 30 guests