Skip to content

Commit cdc3fc4

Browse files
committedJan 31, 2025
Add Luminode 12 FW 2.6.3 Test (Nodereport is now implemented)
1 parent a3e8220 commit cdc3fc4

File tree

2 files changed

+69
-5
lines changed

2 files changed

+69
-5
lines changed
 

‎ArtNetTests/Binary Tests/ArtPollReplyBinaryTests.cs

+6-5
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ public void TestAll()
7171
Assert.Fail("Not implementet this case");
7272
}
7373
}
74-
if (testSubject.NodeReport.HasValue)
75-
Assert.That(artPollReply.NodeReport, Is.EqualTo(testSubject.NodeReport.Value));
76-
77-
if (testSubject.DataLengthIsEqual)
78-
Assert.That(artPollReply.GetPacket().Take(testSubject.Data.Length), Is.EqualTo(testSubject.Data));
7974
});
75+
76+
if (testSubject.NodeReport.HasValue)
77+
Assert.That(artPollReply.NodeReport, Is.EqualTo(testSubject.NodeReport.Value));
78+
79+
if (testSubject.DataLengthIsEqual)
80+
Assert.That(artPollReply.GetPacket().Take(testSubject.Data.Length), Is.EqualTo(testSubject.Data));
8081
}
8182
}
8283
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
using ArtNetSharp;
2+
3+
namespace ArtNetTests.Binary_Tests.Luminex
4+
{
5+
internal class Luminex_LumiNode12_2_6_3 : AbstractArtPollReplyBinaryTestSubject
6+
{
7+
private static readonly byte[] DATA = [
8+
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
9+
0x00, 0x21, 0x0a, 0x64, 0x0c, 0x15, 0x36, 0x19,
10+
0x02, 0x06, 0x00, 0x00, 0x29, 0xdb, 0x00, 0xe3,
11+
0x4c, 0x4c, 0x4c, 0x75, 0x6d, 0x69, 0x4e, 0x6f,
12+
0x64, 0x65, 0x31, 0x32, 0x00, 0x00, 0x00, 0x00,
13+
0x00, 0x00, 0x00, 0x00, 0x4c, 0x75, 0x6d, 0x69,
14+
0x4e, 0x6f, 0x64, 0x65, 0x31, 0x32, 0x00, 0x00,
15+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
16+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
17+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
18+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21+
0x00, 0x00, 0x00, 0x00, 0x23, 0x30, 0x30, 0x30,
22+
0x31, 0x20, 0x5b, 0x30, 0x5d, 0x20, 0x44, 0x65,
23+
0x76, 0x69, 0x63, 0x65, 0x20, 0x69, 0x73, 0x20,
24+
0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64,
25+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
26+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
27+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
28+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
29+
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00,
30+
0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x81, 0x00,
31+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
32+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
33+
0x00, 0xd0, 0x69, 0x9e, 0xa0, 0x9d, 0xe1, 0x0a,
34+
0x64, 0x0c, 0x15, 0x08, 0x19, 0x00, 0x00, 0x00,
35+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
36+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];
38+
39+
private static readonly PortTestSubject[] PORTS =
40+
[
41+
new PortTestSubject(EPortType.OutputFromArtNet,(PortAddress)8,(PortAddress)0)
42+
];
43+
public Luminex_LumiNode12_2_6_3() : base(
44+
"Luminex LumiNode 12 (FW 2.6.3)",
45+
DATA,
46+
0,
47+
"LumiNode12",
48+
"LumiNode12",
49+
new MACAddress("d0:69:9e:a0:9d:e1"),
50+
new IPv4Address("10.100.12.21"),
51+
new IPv4Address("10.100.12.21"),
52+
0x29db,
53+
0x4c4c,
54+
EStCodes.StNode,
55+
PORTS,
56+
false, // NodeReport is #0001 [0000] Device is unlocked on reverse
57+
0x02,
58+
0x06,
59+
new NodeReport("#0001 [0] Device is unlocked"))
60+
{
61+
}
62+
}
63+
}

0 commit comments

Comments
 (0)