Converter RS485 to ethernet – Media Converter
he converter allows user to connect devices with RS485 interface to the PC via LAN TCP / IP.
Configuration of the module is done via the built-in website.
It can also act as a transparent bridge between two RS485 devices over WAN/LAN network.
Examples of use:
Connection Client TCP → Server TCP
The module which operates in TCP Server mode waits for a connection from the module operating as a TCP Client mode.
Once connected, data from the RS485 port of the server module is transmitted to the client module and vice versa.
The server module can be connected to only one client module.
Connection can be established over internet or local network.
In this mode, it does not matter which module will be connected to the MASTER and which to the SLAVE device.
Example configuration:
Moduł A | Moduł B |
---|---|
IP Address: 192.168.111.15 | IP Address: 192.168.111.16 |
IP Mask: 255.255.255.0 | IP Mask: 255.255.255.0 |
Communication Mode: TCP Server | Communication MODE: TCP Client |
Communication IP Address: 192.168.111.16 | Communication IP Address: 192.168.111.15 |
Communication IP Port: 10000 | Communication IP Port: 10000 |
Connection Client UDP → Server UDP
All data that is received on the RS485 port on the client module is sent to the server module and vice versa. By using UDP / IP (connectionless protocol) user can achieve higher data throughput. Server module can only send data to one client module. Connection can be established over internet or local network.
It is important that the Master device is connected to Media Converter which operates in UDP Client mode (as in the picture below). This is due to the fact that the Client by sending the first data packet to the server sets the network parameters to send data through the server.
Otherwise, the server (when it did not receive any package) will send data to the broadcast address.
Example configuration:
Moduł A | Moduł B |
---|---|
IP Address: 192.168.111.15 | IP Address: 192.168.111.16 |
IP Mask: 255.255.255.0 | IP Mask: 255.255.255.0 |
Communication Mode: UDP Server | Communication MODE: UDP Client |
Communication IP Address: 192.168.111.16 | Communication IP Address: |
Communication IP Port: 10000 | Communication IP Port: 10000 |
The UDP Multicast connection
All incoming data on the RS485 port is sent to the multicast address on the network and gets to all the modules operating in multicast mode. Such connection may be carried out only in the local network.
Example configuration:
Moduł A | Moduł B |
---|---|
IP Address: 192.168.111.15 | IP Address: 192.168.111.16 |
IP Mask: 255.255.255.0 | IP Mask: 255.255.255.0 |
Communication Mode: UDP Multicast | Communication Mode: UDP Multicast |
Communication IP Address: 224.0.23.55 | Communication IP Address: 224.0.23.55 |
Communication IP Port: 10000 | Communication IP Port: 10000 |