From b83d727a2173cb0c158659cdbe19f58eb52b6401 Mon Sep 17 00:00:00 2001 From: Patrick Grote Date: Mon, 25 Nov 2024 18:15:33 +0100 Subject: [PATCH] Add Tests for Luminode 12 and 4 --- .../Luminex/Luminex_LumiNode12_2_6_2.cs | 62 +++++++++++++++++++ ...umiNode1.cs => Luminex_LumiNode1_2_6_0.cs} | 4 +- .../Luminex/Luminex_LumiNode4_2_6_2.cs | 62 +++++++++++++++++++ 3 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode12_2_6_2.cs rename ArtNetTests/Binary Tests/Luminex/{Luminex_LumiNode1.cs => Luminex_LumiNode1_2_6_0.cs} (94%) create mode 100644 ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode4_2_6_2.cs diff --git a/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode12_2_6_2.cs b/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode12_2_6_2.cs new file mode 100644 index 0000000..baf31a4 --- /dev/null +++ b/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode12_2_6_2.cs @@ -0,0 +1,62 @@ +using ArtNetSharp; + +namespace ArtNetTests.Binary_Tests.Luminex +{ + internal class Luminex_LumiNode12_2_6_2 : AbstractArtPollReplyBinaryTestSubject + { + private static readonly byte[] DATA = [ + 0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00, + 0x00, 0x21, 0xc0, 0xa8, 0x14, 0xca, 0x36, 0x19, + 0x02, 0x06, 0x00, 0x01, 0x29, 0xdb, 0x00, 0xe3, + 0x4c, 0x4c, 0x4c, 0x75, 0x6d, 0x69, 0x4e, 0x6f, + 0x64, 0x65, 0x31, 0x32, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x4c, 0x75, 0x6d, 0x69, + 0x4e, 0x6f, 0x64, 0x65, 0x31, 0x32, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, + 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x81, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0xd0, 0x69, 0x9e, 0xa0, 0x01, 0x5a, 0xc0, + 0xa8, 0x14, 0xca, 0x0c, 0x19, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]; + + private static readonly PortTestSubject[] PORTS = + [ + new PortTestSubject(EPortType.OutputFromArtNet,(Universe)4,(Universe)0) + ]; + public Luminex_LumiNode12_2_6_2() : base( + "Luminex LumiNode 12 (FW 2.6.2)", + DATA, + 0, + "LumiNode12", + "LumiNode12", + new MACAddress("d0:69:9e:a0:01:5a"), + new IPv4Address("192.168.20.202"), + new IPv4Address("192.168.20.202"), + 0x29db, + 0x4c4c, + EStCodes.StNode, + PORTS, + true, + 0x02, + 0x06) + { + } + } +} diff --git a/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode1.cs b/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode1_2_6_0.cs similarity index 94% rename from ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode1.cs rename to ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode1_2_6_0.cs index 64c2144..0c5e8ba 100644 --- a/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode1.cs +++ b/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode1_2_6_0.cs @@ -2,7 +2,7 @@ namespace ArtNetTests.Binary_Tests.Luminex { - internal class Luminex_LumiNode1 : AbstractArtPollReplyBinaryTestSubject + internal class Luminex_LumiNode1_2_6_0 : AbstractArtPollReplyBinaryTestSubject { private static readonly byte[] DATA = [ 0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00, @@ -40,7 +40,7 @@ internal class Luminex_LumiNode1 : AbstractArtPollReplyBinaryTestSubject [ new PortTestSubject(EPortType.OutputFromArtNet,(Universe)0,(Universe)0) ]; - public Luminex_LumiNode1() : base( + public Luminex_LumiNode1_2_6_0() : base( "Luminex LumiNode 1 (FW 2.6.0)", DATA, 0, diff --git a/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode4_2_6_2.cs b/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode4_2_6_2.cs new file mode 100644 index 0000000..1b7167e --- /dev/null +++ b/ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode4_2_6_2.cs @@ -0,0 +1,62 @@ +using ArtNetSharp; + +namespace ArtNetTests.Binary_Tests.Luminex +{ + internal class Luminex_LumiNode4_2_6_2 : AbstractArtPollReplyBinaryTestSubject + { + private static readonly byte[] DATA = [ + 0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00, + 0x00, 0x21, 0xc0, 0xa8, 0x14, 0xcc, 0x36, 0x19, + 0x02, 0x06, 0x00, 0x00, 0x29, 0xdc, 0x00, 0xe3, + 0x4c, 0x4c, 0x4c, 0x75, 0x6d, 0x69, 0x4e, 0x6f, + 0x64, 0x65, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x4c, 0x75, 0x6d, 0x69, + 0x4e, 0x6f, 0x64, 0x65, 0x34, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, + 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x81, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0xd0, 0x69, 0x9e, 0x9f, 0x27, 0x9b, 0xc0, + 0xa8, 0x14, 0xcc, 0x01, 0x19, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]; + + private static readonly PortTestSubject[] PORTS = + [ + new PortTestSubject(EPortType.OutputFromArtNet,(Universe)13,(Universe)0) + ]; + public Luminex_LumiNode4_2_6_2() : base( + "Luminex LumiNode 4 (FW 2.6.2)", + DATA, + 0, + "LumiNode4", + "LumiNode4", + new MACAddress("d0:69:9e:9f:27:9b"), + new IPv4Address("192.168.20.204"), + new IPv4Address("192.168.20.204"), + 0x29dc, + 0x4c4c, + EStCodes.StNode, + PORTS, + true, + 0x02, + 0x06) + { + } + } +}