Arduino Shield - Need Help to for Iris Read

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

predrag.hauber

  • Posts: 3
  • Joined: Mon Dec 17, 2018 3:40 pm
  • Real Name: Predrag D Spasojevic

Arduino Shield - Need Help to for Iris Read

PostMon Dec 17, 2018 3:55 pm

Hello,
Im new to arduino so i need little help for BlackMagic shield. I need to extract iris value from atem 2 and to read it from shield for 8 cameras (BlackMagic Studio Cameras).
So i know how to overwrite data for itch camera but i dont know how can i get values that is set from atem 2 CCU. I find in BMDSDICameraControl.h functions but i dont know how i can use them form sketch in arduino and to display value over serial for camera that i select.

template <unsigned N>
int SDICameraControl::read(byte (&data)[N]) const
{
return read(data, N);
}

template <unsigned N>
void SDICameraControl::write(const byte (&data)[N]) const
{
write(data, N);
}

If really hope that someone can help mi with this interpretation and to figure it out how to use this commands.

From examples i try to make it read but without success
Here is code that i made for test so please give me some suggestion what should i write for this.

#include "Wire.h"
#include <BMDSDIControl.h>
#include "Streaming.h"

const int shieldAddress = 0x6E;
BMD_SDICameraControl_I2C sdiCameraControl(shieldAddress);
//BMD_SDICameraControl_I2C sdiCameraControl;

void setup() {
sdiCameraControl.begin();
Serial.begin(115200);


}


void loop() {

int SDICameraControl = sdiCameraControl.read(0,0);
delay(50);

Serial << "Iris Value " << SDICameraControl << "\n";
}
Offline
User avatar

Xtreemtec

  • Posts: 3675
  • Joined: Wed Jan 02, 2013 11:48 am
  • Location: The Netherlands

Re: Arduino Shield - Need Help to for Iris Read

PostMon Dec 17, 2018 8:18 pm

BMD does not really support reading from the SDI. It can be done.. But it is kind of buggy.. The shield does miss out on packets.. And checksums are not correct..
As i do have my own chipset for decoding SDI, i have never tried it with the shield.. But i hear other developers complaining about it and ask for help too. ;)
Daniel Wittenaar .:: Xtreemtec Media Productions ::. -= www.xtreemtec.nl =-
4K OBV Trailer, ATEM TVS HD, 1M/E 4K, 4M/E Broadcast Studio 4K, Hyperdeck Studio Mini, Ursa Broadcast 4K, 4K fiber converters with Sony Control
Offline

predrag.hauber

  • Posts: 3
  • Joined: Mon Dec 17, 2018 3:40 pm
  • Real Name: Predrag D Spasojevic

Re: Arduino Shield - Need Help to for Iris Read

PostMon Dec 17, 2018 8:46 pm

Thank you very much for fast reply and for info.
Is it possible to use arduino ethernet to get packets from atem 2, i have standard atem.h library but there is no option for it. So i basically need to get read iris value that is set from atem 2 mixer CCU for camera that i choose let say from 1 - 8.
Do you have any suggestion for this particular project that im trying to make ?

Thank you in advance

Best Regards Hauber
Offline
User avatar

Xtreemtec

  • Posts: 3675
  • Joined: Wed Jan 02, 2013 11:48 am
  • Location: The Netherlands

Re: Arduino Shield - Need Help to for Iris Read

PostTue Dec 18, 2018 12:29 am

Well it can be done on Ethernet if you implement the Skaarhoj library.
Skaarhoj also has ready made products to do this on SDI.
https://www.skaarhoj.com/products/sdi-b4-link/
Image

Be aware your Atem is limited to X connections on Ethernet. And depending on the model it will bog out at 7 to 12 connections maximum.
Daniel Wittenaar .:: Xtreemtec Media Productions ::. -= www.xtreemtec.nl =-
4K OBV Trailer, ATEM TVS HD, 1M/E 4K, 4M/E Broadcast Studio 4K, Hyperdeck Studio Mini, Ursa Broadcast 4K, 4K fiber converters with Sony Control
Offline

predrag.hauber

  • Posts: 3
  • Joined: Mon Dec 17, 2018 3:40 pm
  • Real Name: Predrag D Spasojevic

Re: Arduino Shield - Need Help to for Iris Read

PostTue Dec 18, 2018 8:24 am

I got one SDI B4 Link from Skaarhoj, but i want to build device that i can use to receive iris information over SDI signal throu fiber optics because we use BlackMagic Studio Cameras over fiber optic so on other side in studio i can use it to get sdi information and wirelessly distribute values to every camera. My plan is if i dont succeed with this to extract from sdi then ill try to get packets from atem over ethernet and that packets will received by one lets say server and distribute signal to cameras wirellesly.
Thank you very much for help.
Offline
User avatar

Xtreemtec

  • Posts: 3675
  • Joined: Wed Jan 02, 2013 11:48 am
  • Location: The Netherlands

Re: Arduino Shield - Need Help to for Iris Read

PostTue Dec 18, 2018 7:41 pm

The SDI output of the Studio camera's when connected to fiber do not carry any CCU data anymore as far as i remember. ;) So this won't work then i guess.
Daniel Wittenaar .:: Xtreemtec Media Productions ::. -= www.xtreemtec.nl =-
4K OBV Trailer, ATEM TVS HD, 1M/E 4K, 4M/E Broadcast Studio 4K, Hyperdeck Studio Mini, Ursa Broadcast 4K, 4K fiber converters with Sony Control
Offline
User avatar

Xtreemtec

  • Posts: 3675
  • Joined: Wed Jan 02, 2013 11:48 am
  • Location: The Netherlands

Re: Arduino Shield - Need Help to for Iris Read

PostTue Apr 23, 2019 7:38 pm

salmino wrote:Do you have any suggestion for this particular project that im trying to make ?

What project are you trying to make? It isn't clear from your post. ;)
Daniel Wittenaar .:: Xtreemtec Media Productions ::. -= www.xtreemtec.nl =-
4K OBV Trailer, ATEM TVS HD, 1M/E 4K, 4M/E Broadcast Studio 4K, Hyperdeck Studio Mini, Ursa Broadcast 4K, 4K fiber converters with Sony Control
Offline
User avatar

Baz

  • Posts: 561
  • Joined: Wed Aug 22, 2012 5:06 am
  • Location: Sydney, Australia

Re: Arduino Shield - Need Help to for Iris Read

PostWed Apr 24, 2019 2:20 am

Yes you can read the Iris data on the Arduino Shield; its part of the sdiCameraControl.read() function.
Just be aware the BMD changed the way the iris data is derived in later versions.

Baz

MISC
U/S Express, SmartviewDuo, SmartScopeDuo, Teranex 2D, Web Pres, 5/7 Vid Assists
VIDEOHUB
Smart 12x12
12x24
72x144
HYPERDECK
Studio, Shuttle, Studio Mini
ATEM
2me4K, 2me, TVS, TVS HD, CamConvs, StudioConvs, Studio Cams, Micro Studio Cam
Offline
User avatar

Xtreemtec

  • Posts: 3675
  • Joined: Wed Jan 02, 2013 11:48 am
  • Location: The Netherlands

Re: Arduino Shield - Need Help to for Iris Read

PostWed Apr 24, 2019 9:46 am

Also don't look into the Checksum as it is faulty! ;) BMD knows it but no fix there.
Also the shield seems to miss out on packets. :lol:
Personally i have no issues at all as i build my own SDI data extractor.
Daniel Wittenaar .:: Xtreemtec Media Productions ::. -= www.xtreemtec.nl =-
4K OBV Trailer, ATEM TVS HD, 1M/E 4K, 4M/E Broadcast Studio 4K, Hyperdeck Studio Mini, Ursa Broadcast 4K, 4K fiber converters with Sony Control

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 2 guests