Пример #1
0
        public void InitializeFields(string sourceName, ushort universe)
        {
            CommonE1_31.RootLayer Root = new CommonE1_31.RootLayer();
            byte[] RootLayerOctets = Root.RootLayerPacket;
            CommonE1_31.FramingLayer Frame = new CommonE1_31.FramingLayer(sourceName, universe);
            byte[] FramingLayerOctets = Frame.FramingLayerPacket;
            CommonE1_31.DmpLayer Dmp = new CommonE1_31.DmpLayer();
            byte[] DmpLayerOctets = Dmp.DmpLayerPacket;

            E131Packet = CommonE1_31.ConcatBytes(new byte[][] { RootLayerOctets, FramingLayerOctets, DmpLayerOctets });
            InitializedProtocol = true;
        }
        public void InitializeFields(string sourceName, ushort universe)
        {
            CommonE1_31.RootLayer Root     = new CommonE1_31.RootLayer();
            byte[] RootLayerOctets         = Root.RootLayerPacket;
            CommonE1_31.FramingLayer Frame = new CommonE1_31.FramingLayer(sourceName, universe);
            byte[] FramingLayerOctets      = Frame.FramingLayerPacket;
            CommonE1_31.DmpLayer Dmp       = new CommonE1_31.DmpLayer();
            byte[] DmpLayerOctets          = Dmp.DmpLayerPacket;

            E131Packet          = CommonE1_31.ConcatBytes(new byte[][] { RootLayerOctets, FramingLayerOctets, DmpLayerOctets });
            InitializedProtocol = true;
        }
Пример #3
0
        //public SacnSlave()
        //{
        //}
        public void InitializeFields(ushort universe)
        {
            if (universe >= 1 && universe <= 63999)
            {
                Universe = universe;
                Root = new CommonE1_31.RootLayer();
                byte[] RootLayerOctets = Root.RootLayerPacket;
                Frame = new CommonE1_31.FramingLayer("", universe);
                byte[] FramingLayerOctets = Frame.FramingLayerPacket;
                Dmp = new CommonE1_31.DmpLayer();
                byte[] DmpLayerOctets = Dmp.DmpLayerPacket;
                //E131Packet = CommonE1_31.ConcatBytes(new byte[][] { RootLayerOctets, FramingLayerOctets, DmpLayerOctets });

                DmxData = new ushort[512];

                CrestronInvoke.BeginInvoke(StartUdpThread);
            }
            else
                ErrorLog.Error(this.ToString());
        }
Пример #4
0
        //public SacnSlave()
        //{
        //}

        public void InitializeFields(ushort universe)
        {
            if (universe >= 1 && universe <= 63999)
            {
                Universe = universe;
                Root     = new CommonE1_31.RootLayer();
                byte[] RootLayerOctets = Root.RootLayerPacket;
                Frame = new CommonE1_31.FramingLayer("", universe);
                byte[] FramingLayerOctets = Frame.FramingLayerPacket;
                Dmp = new CommonE1_31.DmpLayer();
                byte[] DmpLayerOctets = Dmp.DmpLayerPacket;
                //E131Packet = CommonE1_31.ConcatBytes(new byte[][] { RootLayerOctets, FramingLayerOctets, DmpLayerOctets });

                DmxData = new ushort[512];

                CrestronInvoke.BeginInvoke(StartUdpThread);
            }
            else
            {
                ErrorLog.Error(this.ToString());
            }
        }