use of jmri.jmrix.loconet.LocoNetMessage in project JMRI by JMRI.
the class LoaderEngine method sendOneWav.
public void sendOneWav(int index) throws DelayException {
notify(java.text.MessageFormat.format(res.getString("EngineSendWavBlock"), new Object[] { "" + index }));
// get control info, data
SpjFile.Header header = spjFile.getHeader(index);
int handle = header.getHandle();
String name = header.getName();
byte[] buffer = header.getByteArray();
// that byte array is the "record", not "data";
// recopy in offset
int offset = header.getDataStart() - header.getRecordStart();
int len = header.getDataLength();
byte[] contents = new byte[len];
for (int i = 0; i < len; i++) {
contents[i] = buffer[i + offset];
}
// transfer
LocoNetMessage m;
m = initTransfer(TYPE_WAV, handle, name, contents);
controller.sendLocoNetMessage(m);
throttleOutbound(m);
while ((m = nextTransfer()) != null) {
controller.sendLocoNetMessage(m);
throttleOutbound(m);
}
}
use of jmri.jmrix.loconet.LocoNetMessage in project JMRI by JMRI.
the class Pr3SelectPane method selectMS100mode.
void selectMS100mode() {
// set to MS100 mode
status.setText(Bundle.getMessage("StatusMs100"));
LocoNetMessage msg = new LocoNetMessage(6);
msg.setOpCode(0xD3);
msg.setElement(1, 0x10);
// set MS100
msg.setElement(2, 0);
msg.setElement(3, 0);
msg.setElement(4, 0);
memo.getLnTrafficController().sendLocoNetMessage(msg);
}
use of jmri.jmrix.loconet.LocoNetMessage in project JMRI by JMRI.
the class LlnmonTest method testBasicTurnoutControlMessages.
public void testBasicTurnoutControlMessages() {
LocoNetMessage l;
l = new LocoNetMessage(new int[] { 0xB0, 0x4A, 0x12, 0x17 });
assertEquals(" Turnout Control test 01", "Requesting Switch at LT331 to Thrown (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x4A, 0x02, 0x07 });
assertEquals(" Turnout Control test 02", "Requesting Switch at LT331 to Thrown (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x08, 0x14, 0x53 });
assertEquals(" Turnout Control test 03", "Requesting Switch at LT521 to Thrown (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x08, 0x04, 0x43 });
assertEquals(" Turnout Control test 04", "Requesting Switch at LT521 to Thrown (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x0B, 0x14, 0x50 });
assertEquals(" Turnout Control test 05", "Requesting Switch at LT524 to Thrown (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x0B, 0x04, 0x40 });
assertEquals(" Turnout Control test 06", "Requesting Switch at LT524 to Thrown (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x65, 0x10, 0x3a });
assertEquals(" Turnout Control test 07", "Requesting Switch at LT102 to Thrown (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x65, 0x00, 0x2a });
assertEquals(" Turnout Control test 08", "Requesting Switch at LT102 to Thrown (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x26, 0x31, 0x58 });
assertEquals(" Turnout Control test 09", "Requesting Switch at LT167 to Closed (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x26, 0x21, 0x48 });
assertEquals(" Turnout Control test 10", "Requesting Switch at LT167 to Closed (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x27, 0x11, 0x79 });
assertEquals(" Turnout Control test 11", "Requesting Switch at LT168 to Thrown (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x27, 0x01, 0x69 });
assertEquals(" Turnout Control test 12", "Requesting Switch at LT168 to Thrown (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x28, 0x31, 0x56 });
assertEquals(" Turnout Control test 13", "Requesting Switch at LT169 to Closed (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x28, 0x21, 0x46 });
assertEquals(" Turnout Control test 14", "Requesting Switch at LT169 to Closed (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x29, 0x31, 0x57 });
assertEquals(" Turnout Control test 15", "Requesting Switch at LT170 to Closed (Output On).\n", f.displayMessage(l));
lntm.newTurnout("LT170", "UserNameForLT170ManuallyCreated");
lntm.newTurnout("LT171", "An Friendly User Name");
l = new LocoNetMessage(new int[] { 0xB0, 0x29, 0x21, 0x47 });
assertEquals(" Turnout Control test 16", "Requesting Switch at LT170 (UserNameForLT170ManuallyCreated) to Closed (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x2a, 0x31, 0x54 });
assertEquals(" Turnout Control test 17", "Requesting Switch at LT171 (An Friendly User Name) to Closed (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x2a, 0x21, 0x44 });
assertEquals(" Turnout Control test 18", "Requesting Switch at LT171 (An Friendly User Name) to Closed (Output Off).\n", f.displayMessage(l));
lntm.newTurnout("LT172", "Another of those Friendly User Names");
l = new LocoNetMessage(new int[] { 0xB0, 0x2B, 0x31, 0x55 });
assertEquals(" Turnout Control test 19", "Requesting Switch at LT172 (Another of those Friendly User Names) to Closed (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x2B, 0x21, 0x45 });
assertEquals(" Turnout Control test 20", "Requesting Switch at LT172 (Another of those Friendly User Names) to Closed (Output Off).\n", f.displayMessage(l));
lntm.newTurnout("LT173", "");
l = new LocoNetMessage(new int[] { 0xB0, 0x2C, 0x31, 0x55 });
assertEquals(" Turnout Control test 21", "Requesting Switch at LT173 to Closed (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x2C, 0x21, 0x45 });
assertEquals(" Turnout Control test 22", "Requesting Switch at LT173 to Closed (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x2D, 0x31, 0x55 });
assertEquals(" Turnout Control test 23", "Requesting Switch at LT174 to Closed (Output On).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x2D, 0x21, 0x45 });
assertEquals(" Turnout Control test 24", "Requesting Switch at LT174 to Closed (Output Off).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x00, 0x40, 0x0F });
assertEquals(" Turnout Control test 25", "Unable to parse LocoNet message.\ncontents: B0 00 40 0F\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x78, 0x27, 0x0F });
assertEquals("Interrogate 1", "Interrogate LocoNet Turnouts/Sensors with bits a/c/b of 1/0/0; addresses...\n" + "\t33-40, 97-104, 161-168, 225-232, 289-296, 353-360, 417-424, 481-488,\n" + "\t545-552, 609-616, 673-680, 737-744, 801-808, 865-872, 929-936, 993-1000,\n" + "\t1057-1064, 1121-1128, 1185-1192, 1249-1256, 1313-1320, 1377-1384, 1441-1448, 1505-1512,\n" + "\t1569-1576, 1633-1640, 1697-1704, 1761-1768, 1825-1832, 1889-1896, 1953-1960, 2017-2024.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x79, 0x27, 0x0F });
assertEquals("Interrogate 2", "Interrogate LocoNet Turnouts/Sensors with bits a/c/b of 1/0/1; addresses...\n" + "\t41-48, 105-112, 169-176, 233-240, 297-304, 361-368, 425-432, 489-496,\n" + "\t553-560, 617-624, 681-688, 745-752, 809-816, 873-880, 937-944, 1001-1008,\n" + "\t1065-1072, 1129-1136, 1193-1200, 1257-1264, 1321-1328, 1385-1392, 1449-1456, 1513-1520,\n" + "\t1577-1584, 1641-1648, 1705-1712, 1769-1776, 1833-1840, 1897-1904, 1961-1968, 2025-2032.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x7a, 0x27, 0x0F });
assertEquals("Interrogate 3", "Interrogate LocoNet Turnouts/Sensors with bits a/c/b of 1/1/0; addresses...\n" + "\t49-56, 113-120, 177-184, 241-248, 305-312, 369-376, 433-440, 497-504,\n" + "\t561-568, 625-632, 689-696, 753-760, 817-824, 881-888, 945-952, 1009-1016,\n" + "\t1073-1080, 1137-1144, 1201-1208, 1265-1272, 1329-1336, 1393-1400, 1457-1464, 1521-1528,\n" + "\t1585-1592, 1649-1656, 1713-1720, 1777-1784, 1841-1848, 1905-1912, 1969-1976, 2033-2040.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x7b, 0x27, 0x0F });
assertEquals("Interrogate 4", "Interrogate LocoNet Turnouts/Sensors with bits a/c/b of 1/1/1; addresses...\n" + "\t57-64, 121-128, 185-192, 249-256, 313-320, 377-384, 441-448, 505-512,\n" + "\t569-576, 633-640, 697-704, 761-768, 825-832, 889-896, 953-960, 1017-1024,\n" + "\t1081-1088, 1145-1152, 1209-1216, 1273-1280, 1337-1344, 1401-1408, 1465-1472, 1529-1536,\n" + "\t1593-1600, 1657-1664, 1721-1728, 1785-1792, 1849-1856, 1913-1920, 1977-1984, 2041-2048.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x78, 0x07, 0x0F });
assertEquals("Interrogate 5", "Interrogate LocoNet Turnouts/Sensors with bits a/c/b of 0/0/0; addresses...\n" + "\t1-8, 65-72, 129-136, 193-200, 257-264, 321-328, 385-392, 449-456,\n" + "\t513-520, 577-584, 641-648, 705-712, 769-776, 833-840, 897-904, 961-968,\n" + "\t1025-1032, 1089-1096, 1153-1160, 1217-1224, 1281-1288, 1345-1352, 1409-1416, 1473-1480,\n" + "\t1537-1544, 1601-1608, 1665-1672, 1729-1736, 1793-1800, 1857-1864, 1921-1928, 1985-1992.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x79, 0x07, 0x0F });
assertEquals("Interrogate 6", "Interrogate LocoNet Turnouts/Sensors with bits a/c/b of 0/0/1; addresses...\n" + "\t9-16, 73-80, 137-144, 201-208, 265-272, 329-336, 393-400, 457-464,\n" + "\t521-528, 585-592, 649-656, 713-720, 777-784, 841-848, 905-912, 969-976,\n" + "\t1033-1040, 1097-1104, 1161-1168, 1225-1232, 1289-1296, 1353-1360, 1417-1424, 1481-1488,\n" + "\t1545-1552, 1609-1616, 1673-1680, 1737-1744, 1801-1808, 1865-1872, 1929-1936, 1993-2000.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x7a, 0x07, 0x0F });
assertEquals("Interrogate 17", "Interrogate LocoNet Turnouts/Sensors with bits a/c/b of 0/1/0; addresses...\n" + "\t17-24, 81-88, 145-152, 209-216, 273-280, 337-344, 401-408, 465-472,\n" + "\t529-536, 593-600, 657-664, 721-728, 785-792, 849-856, 913-920, 977-984,\n" + "\t1041-1048, 1105-1112, 1169-1176, 1233-1240, 1297-1304, 1361-1368, 1425-1432, 1489-1496,\n" + "\t1553-1560, 1617-1624, 1681-1688, 1745-1752, 1809-1816, 1873-1880, 1937-1944, 2001-2008.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB0, 0x7b, 0x07, 0x0F });
assertEquals("Interrogate 8", "Interrogate LocoNet Turnouts/Sensors with bits a/c/b of 0/1/1; addresses...\n" + "\t25-32, 89-96, 153-160, 217-224, 281-288, 345-352, 409-416, 473-480,\n" + "\t537-544, 601-608, 665-672, 729-736, 793-800, 857-864, 921-928, 985-992,\n" + "\t1049-1056, 1113-1120, 1177-1184, 1241-1248, 1305-1312, 1369-1376, 1433-1440, 1497-1504,\n" + "\t1561-1568, 1625-1632, 1689-1696, 1753-1760, 1817-1824, 1881-1888, 1945-1952, 2009-2016.\n", f.displayMessage(l));
}
use of jmri.jmrix.loconet.LocoNetMessage in project JMRI by JMRI.
the class LlnmonTest method testDS64OpSwMessages.
public void testDS64OpSwMessages() {
LocoNetMessage l;
l = new LocoNetMessage(new int[] { 0xD0, 0x62, 0x00, 0x73, 0x58, 0x66 });
assertEquals("DS64 OpSw test 1", "DS64 1 Query OpSw45.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB4, 0x50, 0x30, 0x2B });
assertEquals("DS64 OpSw test 2", "LONG_ACK: OpSwitch report - opSwitch is 1 (Closed).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xD0, 0x62, 0x00, 0x73, 0x40, 0x7E });
assertEquals("DS64 OpSw test 3", "DS64 1 Query OpSw33.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB4, 0x50, 0x10, 0x0B });
assertEquals("DS64 OpSw test 4", "LONG_ACK: OpSwitch report - opSwitch is 0 (Thrown).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xD0, 0x62, 0x00, 0x73, 0x54, 0x6A });
assertEquals("DS64 OpSw test 5", "DS64 1 Query OpSw43.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xD0, 0x62, 0x01, 0x73, 0x56, 0x68 });
assertEquals("DS64 OpSw test 6", "DS64 2 Query OpSw44.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xD0, 0x62, 0x04, 0x73, 0x58, 0x66 });
assertEquals("DS64 OpSw test 7", "DS64 5 Query OpSw45.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xD0, 0x62, 0x7f, 0x73, 0x5A, 0x64 });
assertEquals("DS64 OpSw test 8", "DS64 128 Query OpSw46.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xD0, 0x72, 0x0B, 0x73, 0x01, 0x24 });
assertEquals("DS64 OpSw test 9", "DS64 12 Write OpSw1 value=1 (Closed).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xB4, 0x50, 0x7F, 0x64 });
assertEquals("DS64 OpSw test 10", "LONG_ACK: OpSwitch operation accepted.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xD0, 0x72, 0x0B, 0x73, 0x30, 0x15 });
assertEquals("DS64 OpSw test 11", "DS64 12 Write OpSw25 value=0 (Thrown).\n", f.displayMessage(l));
}
use of jmri.jmrix.loconet.LocoNetMessage in project JMRI by JMRI.
the class LlnmonTest method testSVProgrammingProtocolV1.
public void testSVProgrammingProtocolV1() {
LocoNetMessage l;
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x53, 0x01, 0x00, 0x02, 0x03, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 1", "LocoBuffer => LocoIO@53/1 Query SV3.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x53, 0x01, 0x00, 0x02, 0x03, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 2", "LocoBuffer => LocoIO@53/1 Query SV3.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x51, 0x01, 0x00, 0x02, 0x34, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 3", "Locobuffer=> LocoIO@0x51/1 Query SV52 Firmware rev 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x51, 0x01, 0x00, 0x02, 0x34, 0x12, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 4", "Locobuffer=> LocoIO@0x51/1 Query SV52 Firmware rev 1.8.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x51, 0x01, 0x00, 0x02, 0x34, 0x75, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 5", "Locobuffer=> LocoIO@0x51/1 Query SV52 Firmware rev 1.1.7.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x51, 0x01, 0x00, 0x02, 0x34, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 6", "Locobuffer=> LocoIO@0x51/1 Query SV52.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x50, 0x01, 0x00, 0x02, 0x34, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 7", "Locobuffer=> LocoBuffer Query SV52 Firmware rev 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x50, 0x01, 0x00, 0x02, 0x34, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 7", "Locobuffer=> LocoBuffer Query SV52 Firmware rev 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x51, 0x50, 0x01, 0x02, 0x02, 0x33, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x51/1=> LocoBuffer Report SV179 = 0 Firmware rev 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x02, 0x33, 0x02, 0x00, 0x08, 0x00, 0x00, 0x00, 0x34, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Report SV179 = 0 Firmware rev 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x01, 0x33, 0x02, 0x00, 0x08, 0x00, 0x00, 0x00, 0x34, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Write SV179 = 180 (0xb4) Firmware rev 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x00, 0x33, 0x02, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Write SV179 = 129 (0x81) Firmware rev 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x00, 0x7f, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Write SV255 = 2 Firmware rev 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Write SV255 = 2.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x50, 0x01, 0x00, 0x02, 0x34, 0x63, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 7", "Locobuffer=> LocoBuffer Query SV52 Firmware rev 9.9.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x50, 0x50, 0x01, 0x00, 0x02, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 7", "Locobuffer=> LocoBuffer Query SV52.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x51, 0x50, 0x01, 0x02, 0x02, 0x33, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x51/1=> LocoBuffer Report SV179 = 0.\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x02, 0x33, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x34, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Report SV179 = 180 (0xb4).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x01, 0x33, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x34, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Write SV179 = 180 (0xb4).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x00, 0x33, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Write SV179 = 129 (0x81).\n", f.displayMessage(l));
l = new LocoNetMessage(new int[] { 0xE5, 0x10, 0x52, 0x50, 0x01, 0x02, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x18 });
assertEquals(" read SV 8", "LocoIO@0x52=> LocoBuffer Write SV255 = 2.\n", f.displayMessage(l));
}
Aggregations