The Moxa Nport devices can send serial data across ethernet to the gateway, which we can receive as TCP packets
Here we will show how to setup the Moxa Nport 5110/5110A to send serial data to the gateway as TCP packets.
We can receive TCP packets from the 5130 and 5150 also, however the 5130 is RS422/485 only and the 5150 is RS232/422/485.
Moxa Nport Settings
- Connect to the Moxa Nport via a LAN connection through your browser. Default IP is 192.168.127.254
- On the left hand menu click “Network Settings” and set the IP address as desired. Best practise is to set a static IP address.
- Back in the left hand menu select “Serial Settings” then “Port 1”. Change the settings to be able to receive serial data from your device, for example a fire panel or intruder alarm. Please see below for an example.
- In the left hand menu select “Operating Settings”, select “Port 1” and make the following changes.
- Click “Submit” at the bottom, then click “Save/Restart” to restart the Moxa Nport.
a. “Operation mode” to “TCP Server Mode”
b. “Packing length” to 1024
c. “Force transmit” to 200ms.
SMC Gateway Settings
Add a “TCP Input” node to your flow and double click the node.
Change the node details as below.
- Select the “Type” drop down and choose “Connect to”.
- Set “port” to 4001 (this is the Moxa default, if you change this in the Moxa Nport you must change here also).
- After “at host” enter your Moxa Nport’s IP address.
- Change the “Output” to a “stream of” “String” payloads.
Your node should look like the example below, but with a different IP address and port number.
Now any serial data sent to the Moxa Nport will be forwarded to the SMC Gateway via TCP packets.