21 #ifndef PLUGINS_PATHPORT_PATHPORTNODE_H_
22 #define PLUGINS_PATHPORT_PATHPORTNODE_H_
28 #include "ola/network/IPV4Address.h"
29 #include "ola/network/InterfacePicker.h"
30 #include "ola/network/Socket.h"
31 #include "plugins/pathport/PathportPackets.h"
42 explicit PathportNode(
const string &preferred_ip, uint32_t device_id,
51 UDPSocket *GetSocket() {
return &m_socket; }
54 bool SetHandler(uint8_t universe,
57 bool RemoveHandler(uint8_t universe);
60 bool SendDMX(
unsigned int universe,
const DmxBuffer &buffer);
63 static const uint8_t MAX_UNIVERSES = 127;
72 XDMX_DATA_FLAT = 0x0101,
73 XDMX_DATA_RELEASE = 0x0103
77 NODE_MANUF_PATHWAY_CONNECTIVITY = 0,
78 NODE_MANUF_INTERACTIVE_TECH = 0x10,
79 NODE_MANUF_ENTERTAINMENT_TECH = 0x11,
80 NODE_MANUF_MA_LIGHTING = 0x12,
81 NODE_MANUF_HIGH_END_SYSTEMS = 0x13,
82 NODE_MANUF_CRESTRON_ELECTRONICS = 0x14,
83 NODE_MANUF_LEVITON = 0x15,
84 NODE_MANUF_FLYING_PIG = 0x16,
85 NODE_MANUF_HORIZON = 0x17,
86 NODE_MANUF_ZP_TECH = 0x28,
90 NODE_CLASS_DMX_NODE = 0,
91 NODE_CLASS_MANAGER = 1,
92 NODE_CLASS_DIMMER = 2,
93 NODE_CLASS_CONTROLLER = 3,
94 NODE_CLASS_FIXTURE = 4,
95 NODE_CLASS_EFFECTS_UNIT = 5,
99 NODE_DEVICE_PATHPORT = 0,
100 NODE_DEVICE_DMX_MANAGER_PLUS = 1,
101 NODE_DEVICE_ONEPORT = 2,
104 typedef std::map<uint8_t, universe_handler> universe_handlers;
111 bool SendArpRequest(uint32_t destination = PATHPORT_ID_BROADCAST);
118 string m_preferred_ip;
119 uint32_t m_device_id;
120 uint16_t m_sequence_number;
122 universe_handlers m_handlers;
129 static const uint16_t PATHPORT_PORT = 0xed0;
130 static const uint16_t PATHPORT_PROTOCOL = 0xed01;
131 static const uint32_t PATHPORT_CONFIG_GROUP = 0xefffed02;
132 static const uint32_t PATHPORT_DATA_GROUP = 0xefffed01;
133 static const uint32_t PATHPORT_ID_BROADCAST = 0xffffffff;
134 static const uint32_t PATHPORT_STATUS_GROUP = 0xefffedff;
135 static const uint8_t MAJOR_VERSION = 2;
136 static const uint8_t MINOR_VERSION = 0;
141 #endif // PLUGINS_PATHPORT_PATHPORTNODE_H_