Encoder for port connection of Daslight DMX interfaces