21 #ifndef PLUGINS_PATHPORT_PATHPORTNODE_H_
22 #define PLUGINS_PATHPORT_PATHPORTNODE_H_
29 #include "ola/network/InterfacePicker.h"
30 #include "ola/network/Socket.h"
31 #include "plugins/pathport/PathportPackets.h"
39 explicit PathportNode(
const std::string &preferred_ip, uint32_t device_id,
51 bool SetHandler(uint8_t universe,
54 bool RemoveHandler(uint8_t universe);
57 bool SendDMX(
unsigned int universe,
const DmxBuffer &buffer);
60 static const uint8_t MAX_UNIVERSES = 127;
69 XDMX_DATA_FLAT = 0x0101,
70 XDMX_DATA_RELEASE = 0x0103
74 NODE_MANUF_PATHWAY_CONNECTIVITY = 0,
75 NODE_MANUF_INTERACTIVE_TECH = 0x10,
76 NODE_MANUF_ENTERTAINMENT_TECH = 0x11,
77 NODE_MANUF_MA_LIGHTING = 0x12,
78 NODE_MANUF_HIGH_END_SYSTEMS = 0x13,
79 NODE_MANUF_CRESTRON_ELECTRONICS = 0x14,
80 NODE_MANUF_LEVITON = 0x15,
81 NODE_MANUF_FLYING_PIG = 0x16,
82 NODE_MANUF_HORIZON = 0x17,
83 NODE_MANUF_ZP_TECH = 0x28,
87 NODE_CLASS_DMX_NODE = 0,
88 NODE_CLASS_MANAGER = 1,
89 NODE_CLASS_DIMMER = 2,
90 NODE_CLASS_CONTROLLER = 3,
91 NODE_CLASS_FIXTURE = 4,
92 NODE_CLASS_EFFECTS_UNIT = 5,
96 NODE_DEVICE_PATHPORT = 0,
97 NODE_DEVICE_DMX_MANAGER_PLUS = 1,
98 NODE_DEVICE_ONEPORT = 2,
101 typedef std::map<uint8_t, universe_handler> universe_handlers;
104 void PopulateHeader(pathport_packet_header *header, uint32_t destination);
105 bool ValidateHeader(
const pathport_packet_header &header);
106 void HandleDmxData(
const pathport_pdu_data &packet,
108 bool SendArpRequest(uint32_t destination = PATHPORT_ID_BROADCAST);
109 bool SendPacket(
const pathport_packet_s &packet,
115 std::string m_preferred_ip;
116 uint32_t m_device_id;
117 uint16_t m_sequence_number;
119 universe_handlers m_handlers;
126 static const uint16_t PATHPORT_PORT = 0xed0;
127 static const uint16_t PATHPORT_PROTOCOL = 0xed01;
128 static const uint32_t PATHPORT_CONFIG_GROUP = 0xefffed02;
129 static const uint32_t PATHPORT_DATA_GROUP = 0xefffed01;
130 static const uint32_t PATHPORT_ID_BROADCAST = 0xffffffff;
131 static const uint32_t PATHPORT_STATUS_GROUP = 0xefffedff;
132 static const uint8_t MAJOR_VERSION = 2;
133 static const uint8_t MINOR_VERSION = 0;
138 #endif // PLUGINS_PATHPORT_PATHPORTNODE_H_
Definition: PathportNode.h:37
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A class used to hold a single universe of DMX data.
Represents a IPv4 Address.
Definition: IPV4Address.h:55
Definition: Interface.h:35
Represents an IPv4 Address.
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44