Skip to content

Commit

Permalink
Add Tests for Luminode 12 and 4
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Nov 25, 2024
1 parent 96b5a0a commit b83d727
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 2 deletions.
62 changes: 62 additions & 0 deletions ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode12_2_6_2.cs
Original file line number Diff line number Diff line change
@@ -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)
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
62 changes: 62 additions & 0 deletions ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode4_2_6_2.cs
Original file line number Diff line number Diff line change
@@ -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)
{
}
}
}

0 comments on commit b83d727

Please sign in to comment.