← Back

ofxSonyDeckControl

github.com/fred-dev/ofxSonyDeckControl · @fred-dev
OF 0.12 Hardware Interface Video/Camera

Control interface for Sony hardware decks.

0 0 Last commit 18d ago Created 12y ago

README

ofxSonyDeckControl



openFrameworks addon for controlling decks that speak the Sony 9-pin RS-422 protocol (also called P2), such as Blackmagic HyperDecks and broadcast VTRs, through a USB to RS-422 adapter. It sends transport and edit commands and polls the deck for status flags and LTC timecode.

ofxSonyDeckControl deck;
deck.setup("/dev/tty.usbserial-A1234");   // or a device index
deck.update();                            // every frame
deck.play();
if (deck.isPlaying()) ofLog() << deck.getTimecode();


The port is opened at 38400 baud with odd parity, as the protocol requires. ofSerial can't set parity on its own, so the addon does it through a small subclass (termios on macOS/Linux, DCB on Windows).

Based on Kasper Skaarhoj's Arduino library for HyperDeck serial control.

Example



example/ lists the serial ports, connects to the first USB adapter (press 0-9 to pick another), shows the deck status and timecode, and maps the keyboard to transport commands. Generate it with projectGenerator.

Requirements



Written in 2014, rewritten in 2026 for current openFrameworks with corrected command codes.

Get this addon

HTTPS
SSH