Art-Net library (DMX over Ethernet) - Art-Net ライブラリ
Art-Net library (DMX over Ethernet) - Art-Net ライブラリ
ステージや設備などの照明向けの調光プロトコルである DMX512 を、Ethernet(LAN) UDP/IP へ乗せるプロトコル「Art-Net」に対応したライブラリです。
複数ノードの送信・受信に対応しています。
Library
Import libraryDmxArtNet
http://mbed.org/users/okini3939/notebook/art-net/
最大ノード数、UDPバッファサイズなどは DmxArtNet.h を編集してください。
Sample
mbedをArt-Netのノードにするサンプル。
Art-NetのIPドレスは通常 2.xx.xx.xx/255.0.0.0 を使用します。
Import programArtNode
Art-Net node http://mbed.org/users/okini3939/notebook/art-net/
#include "mbed.h"
#include "EthernetNetIf.h"
#include "DmxArtNet.h"
DmxArtNet art;
int main() {
:
art.BindIpAddress = IpAddr(2,0,0,100);
art.BCastAddress = IpAddr(2,255,255,255);
art.InitArtPollReplyDefaults();
art.ArtPollReply.PortType[0] = 128; // output
art.ArtPollReply.PortType[2] = 64; // input
art.ArtPollReply.GoodInput[2] = 4;
art.Init();
art.SendArtPollReply(); // announce to art-net nodes
:
Net::poll();
if (art.Work()) {
// recv
universe = art.LastRecievedUniverse;
:
}
// send
art.ArtPollReply.GoodInput[u] = 128;
art.Send_ArtDmx(universe, 0, buf, 512);
:
}
Import programDMXStation
DMX interface (DMX in/out, Art-Net in/out, DMX patch) http://mbed.org/users/okini3939/notebook/dmx-platform/
Base board
mbed DMX Platform - DMX512プラットフォーム
Original
Art-Net library は ArtNode Pro からの移植です。
- ArtNode Pro
- (c) Rowan Maclachlan (hippy)
Note
Please log in to post comments.
