1
Vote

No Channel 512 from sACN

description

In the ACN.Helpers.DmpSetProperty.ReadData(AcnBinaryReader) method you read the propertyLength of the frame. It returns 512 but you have to read 513 byte. DD-Flag and then 512byte for the 512 channels in the universe. Otherwise the StreamingAcnSocket event called "NewPacket" returns a 512 byte array with [0] DD-Flag and [1]-[511] channel values without Channel 512.


this solved the problem for me:
    protected override void ReadData(AcnBinaryReader data)
    {
        AddressType = data.ReadByte();
        FirstPropertyAddress = data.ReadOctet2();
        AddressIncrement = data.ReadOctet2();

        int propertyLength = data.ReadOctet2();
        PropertyData = data.ReadBytes(propertyLength + (AddressType == 161 ? 1 : 0));
    }

comments

wrote Jan 16, 2013 at 12:03 PM

I believe the implementation to be correct as to the Streaming ACN spec. I will wait for a response from the submitter before rejecting this.

wrote Feb 13, 2013 at 11:15 PM