Sending Strings to Another NetLinx Master Over the Network or the Internet
Frequently Asked Questions
Brand:
- AMX
Models:
- NI-Series Controllers
- NX-Series Controllers
Question:
How Do I Send Strings to Another NetLinx Master Over My Network or the Internet?
Answer:
In the legacy Axcess systems, we used to send strings between RS232 ports to communicate between masters. With NetLinx, we can do very much the same thing over our networks.
The primary commands we would use are:
- IP_SERVER_OPEN
- IP_SERVER_CLOSE
- IP_CLIENT_OPEN
- IP_CLIENT_CLOSE
The Server is the port listening to a Client, and the Client is the port talking to a Server. To establish this " conversation ", you first need to open a server port on one of your systems to listen, then on the other system, you would open a client port to speak to it. If this is two way communication, you'll need to open a Client and Server port on each system. The ports must be closed before a new session can begin.
Below is an example almost identical to the one in the NetLinx Programming Guide. If you download this code into your two masters and pull up a terminal or Telnet session on each, you will see the communication between systems.