Changes

no edit summary
Line 20: Line 20:  
When configuring routers in a way that devices connected through serial port, in this example two computers using RS232, could communicate with each other, acting as both, Master and Slave, you only need to configure section in Services > RS232/RS485 > RS232 section, configuration on both devices is almost identical except Client and Server part, where they are reversed.
 
When configuring routers in a way that devices connected through serial port, in this example two computers using RS232, could communicate with each other, acting as both, Master and Slave, you only need to configure section in Services > RS232/RS485 > RS232 section, configuration on both devices is almost identical except Client and Server part, where they are reversed.
   −
[[File:Networking_rut955_configuration_example_bidirectional_serial_comunication_over_tcp_rut_configuration.png|border|class=tlt-border1100x1100px]]
+
[[File:Networking_rut955_configuration_example_bidirectional_serial_comunication_over_tcp_rut_configuration.png|border|class=tlt-border|1100x1100px]]
 +
 
 +
#'''Enable''' Serial port
 +
#Configure Serial port in accordance to connected device, these should match on both routers to avoid miscommunication
 +
#Serial Type must be '''Over IP''' and protocol must match either '''TCP''' or '''UDP'''
 +
#Mode '''Bidirect''' – lets device act as both Server and a Client
 +
#Server address is other routers '''IP''', in this example we are using Public IPs, it also works with Private IPs if routers are in same LAN
 +
#'''Port used by Router1''' to connect to server will be used as '''TCP port for Router2''' and vice versa
 +
#'''TCP port used by Router1''' will be used by '''Router2 to connect to server''' and vice versa.
 +
 
 +
===Add allowed interfaces===
 +
 
 +
After finishing serial port configuration add interfaces through which routers will be communicating, You can add IP address that will be allowed to connect or enter 0.0.0.0/0 to allow all connections coming through correct port.
 +
 
 +
[[File:Networking_rut955_configuration_example_bidirectional_serial_comunication_over_tcp_allow.png|border|class=tlt-border]]
 +
 
 +
==Testing configuration==
 +
 
 +
If you followed configuration steps both end devices should be able to send and receive data from each other. In this example we use Hercules program on both computers and open serial communication with routers. Both of them are able to send and receive data through RS232 from other device.
 +
 
 +
[[File:Networking_rut955_configuration_example_bidirectional_serial_comunication_over_tcp_checking.png|border|class=tlt-border|1100x1100px]]

Navigation menu