31,703
edits
No edit summary |
|||
Line 1: | Line 1: | ||
{{Template: Networking_rutxxx_manual_fw_disclosure | |||
| fw_version = RUT9XX_R_00.06.06 | |||
}} | |||
==Summary== | ==Summary== | ||
RS232 and RS485 functions are designed to utilize available serial interfaces of the router. Serial interfaces provide a possibility for legacy devices to gain access to IP networks. This chapter is an overview of the RS232/RS485 functions in RUT routers. | RS232 and RS485 functions are designed to utilize available serial interfaces of the router. Serial interfaces provide a possibility for legacy devices to gain access to IP networks. This chapter is an overview of the RS232/RS485 functions in RUT routers. | ||
==RS232== | ==RS232== | ||
Line 19: | Line 18: | ||
<tr> | <tr> | ||
<td>Enabled</td> | <td>Enabled</td> | ||
<td>yes | no; | <td>yes | no; default: <b>no</b></td> | ||
<td>When checked, enables the RS232 service</td> | <td>When checked, enables the RS232 service</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Baud rate</td> | <td>Baud rate</td> | ||
<td>300 | 1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200; | <td>300 | 1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200; default: '''115200'''</td> | ||
<td>Sets the data rate for serial data transmission (in bits per second)</td> | <td>Sets the data rate for serial data transmission (in bits per second)</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Data bits</td> | <td>Data bits</td> | ||
<td>5 | 6 | 7 | 8; | <td>5 | 6 | 7 | 8; default: '''8'''</td> | ||
<td>The number of data bits for each character</td> | <td>The number of data bits for each character</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Parity</td> | <td>Parity</td> | ||
<td>None | Odd | Even; | <td>None | Odd | Even; default: '''None'''</td> | ||
<td>In serial transmission, parity is a method of detecting errors. An extra data bit is sent with each data character, arranged so that the number of 1 bits in each character, including the parity bit, is always odd or always even. If a byte is received with the wrong number of 1s, then it must have been corrupted. However, an even number of errors can pass the parity check. <br> '''None''' ('''N''') - no parity method is used <br> '''Odd''' ('''O''') - the parity bit is set so that the number of "logical ones (1s)" has to be odd <br> '''Even''' ('''E''') - the parity bit is set so that the number of "logical ones (1s)" has to be even</td> | <td>In serial transmission, parity is a method of detecting errors. An extra data bit is sent with each data character, arranged so that the number of 1 bits in each character, including the parity bit, is always odd or always even. If a byte is received with the wrong number of 1s, then it must have been corrupted. However, an even number of errors can pass the parity check. <br> '''None''' ('''N''') - no parity method is used <br> '''Odd''' ('''O''') - the parity bit is set so that the number of "logical ones (1s)" has to be odd <br> '''Even''' ('''E''') - the parity bit is set so that the number of "logical ones (1s)" has to be even</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Stop bits</td> | <td>Stop bits</td> | ||
<td>1 | 2; | <td>1 | 2; default: '''1'''</td> | ||
<td>Stop bits sent at the end of every character allow the receiving signal hardware to detect the end of a character and to resynchronise with the character stream. Electronic devices usually use one stop bit. Two stop bits are required if slow electromechanical devices are used</td> | <td>Stop bits sent at the end of every character allow the receiving signal hardware to detect the end of a character and to resynchronise with the character stream. Electronic devices usually use one stop bit. Two stop bits are required if slow electromechanical devices are used</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Flow control</td> | <td>Flow control</td> | ||
<td>None | RTS/CTS | Xon/Xoff; | <td>None | RTS/CTS | Xon/Xoff; default: '''None'''</td> | ||
<td>In many circumstances a transmitter might be able to send data faster than the receiver is able to process it. To cope with this, serial lines often incorporate a "handshaking" method, usually distinguished between hardware and software handshaking. <br> '''RTS/CTS''' - hardware handshaking. RTS and CTS are turned OFF and ON from alternate ends to control data flow, for instance when a buffer is almost full <br> '''Xon/Xoff''' - software handshaking. The Xon and Xoff characters are sent by the receiver to the sender to control when the sender will send data, i.e., these characters go in the opposite direction to the data being sent. The circuit starts in the "sending allowed" state. When the receiver's buffers approach capacity, the receiver sends the Xoff character to tell the sender to stop sending data. Later, after the receiver has emptied its buffers, it sends an Xon character to tell the sender to resume transmission</td> | <td>In many circumstances a transmitter might be able to send data faster than the receiver is able to process it. To cope with this, serial lines often incorporate a "handshaking" method, usually distinguished between hardware and software handshaking. <br> '''RTS/CTS''' - hardware handshaking. RTS and CTS are turned OFF and ON from alternate ends to control data flow, for instance when a buffer is almost full <br> '''Xon/Xoff''' - software handshaking. The Xon and Xoff characters are sent by the receiver to the sender to control when the sender will send data, i.e., these characters go in the opposite direction to the data being sent. The circuit starts in the "sending allowed" state. When the receiver's buffers approach capacity, the receiver sends the Xoff character to tell the sender to stop sending data. Later, after the receiver has emptied its buffers, it sends an Xon character to tell the sender to resume transmission</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Serial type</td> | <td>Serial type</td> | ||
<td>[[RUT955_RS232/RS485#Console|Console]] | [[RUT955_RS232/RS485#Over_IP|Over IP]] | [[RUT955_RS232/RS485#Modem|Modem]] | [[RUT955_RS232/RS485#Modbus_gateway|Modbus gateway]] | [[RUT955_RS232/RS485#NTRIP_client|NTRIP client]]; | <td>[[RUT955_RS232/RS485#Console|Console]] | [[RUT955_RS232/RS485#Over_IP|Over IP]] | [[RUT955_RS232/RS485#Modem|Modem]] | [[RUT955_RS232/RS485#Modbus_gateway|Modbus gateway]] | [[RUT955_RS232/RS485#NTRIP_client|NTRIP client]]; default: <b>Console</b></td> | ||
<td>Specifies the serial connection type.</td> | <td>Specifies the serial connection type.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Echo</td> | <td>Echo</td> | ||
<td>yes | no; | <td>yes | no; default: <b>no</b></td> | ||
<td>Toggles RS232 echo ON or OFF. RS232 echo is a loopback test usually used to check whether the RS232 cable is working properly</td> | <td>Toggles RS232 echo ON or OFF. RS232 echo is a loopback test usually used to check whether the RS232 cable is working properly</td> | ||
</tr> | </tr> | ||
Line 148: | Line 147: | ||
<tr> | <tr> | ||
<td>Enabled</td> | <td>Enabled</td> | ||
<td>yes | no; | <td>yes | no; default: <b>no</b></td> | ||
<td>Toggles the RS485 serial port function ON or OFF</td> | <td>Toggles the RS485 serial port function ON or OFF</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Baud rate</td> | <td>Baud rate</td> | ||
<td>300 | 1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200; | <td>300 | 1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200; default: '''115200'''</td> | ||
<td>The communication speed of the serial interface</td> | <td>The communication speed of the serial interface</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Parity</td> | <td>Parity</td> | ||
<td>None | Odd | Even; | <td>None | Odd | Even; default: '''None'''</td> | ||
<td>The parity bit setting used for error detection during data transfer</td> | <td>The parity bit setting used for error detection during data transfer</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Flow control</td> | <td>Flow control</td> | ||
<td>None | RTS- CTS | Xon-Xoff; | <td>None | RTS- CTS | Xon-Xoff; default: '''None'''</td> | ||
<td>Specifies how many stop bits will be used to detect the end of character</td> | <td>Specifies how many stop bits will be used to detect the end of character</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Serial type</td> | <td>Serial type</td> | ||
<td>Console | Over IP | Modem | Modbus Gateway | NTRIP Client; | <td>Console | Over IP | Modem | Modbus Gateway | NTRIP Client; default: '''Console'''</td> | ||
<td>Specifies the function of the serial interface</td> | <td>Specifies the function of the serial interface</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Interface</td> | <td>Interface</td> | ||
<td>LAN | WAN | VPN | L2TP | PPTP | GRE | HOTSPOT | SSTP; | <td>LAN | WAN | VPN | L2TP | PPTP | GRE | HOTSPOT | SSTP; default: '''LAN'''</td> | ||
<td>Interface used for connection</td> | <td>Interface used for connection</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Allow IP</td> | <td>Allow IP</td> | ||
<td>ip; | <td>ip; default: <b>none</b></td> | ||
<td>Allows IP to connect to server</td> | <td>Allows IP to connect to server</td> | ||
</tr> | </tr> | ||
Line 315: | Line 314: | ||
<tr> | <tr> | ||
<td>Protocol</td> | <td>Protocol</td> | ||
<td>TCP; | <td>TCP; default: '''TCP'''</td> | ||
<td>Specifies the protocol used in the communication process</td> | <td>Specifies the protocol used in the communication process</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Mode</td> | <td>Mode</td> | ||
<td>Server | Client | Bidirect; | <td>Server | Client | Bidirect; default: '''Server'''</td> | ||
<td>Specifies the device's role in the connection: <br> '''Server''' - the device waits for incoming connections <br> '''Client''' - the device initiates the connection <br> '''Bidirect''' - acts as client by default but waits for incoming connections at the same time</td> | <td>Specifies the device's role in the connection: <br> '''Server''' - the device waits for incoming connections <br> '''Client''' - the device initiates the connection <br> '''Bidirect''' - acts as client by default but waits for incoming connections at the same time</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>No leading zeros</td> | <td>No leading zeros</td> | ||
<td>yes | no; | <td>yes | no; default: <b>no</b></td> | ||
<td>Specifies that the first hex zeros should be skipped</td> | <td>Specifies that the first hex zeros should be skipped</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>TCP port</td> | <td>TCP port</td> | ||
<td>integer [0..65535]; | <td>integer [0..65535]; default: <b>none</b></td> | ||
<td>The port number used to connect to the server</td> | <td>The port number used to connect to the server</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Timeout (s)</td> | <td>Timeout (s)</td> | ||
<td>integer; | <td>integer; default: <b>none</b> </td> | ||
<td>Disconnects clients after the amount of inactivity time (in seconds) specified in this field</td> | <td>Disconnects clients after the amount of inactivity time (in seconds) specified in this field</td> | ||
</tr> | </tr> | ||
Line 352: | Line 351: | ||
<tr> | <tr> | ||
<td>Protocol</td> | <td>Protocol</td> | ||
<td>TCP; | <td>TCP; default: '''TCP'''</td> | ||
<td>The protocol used for data transmission</td> | <td>The protocol used for data transmission</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Mode</td> | <td>Mode</td> | ||
<td>Server | Client | Bidirect; | <td>Server | Client | Bidirect; default: '''Server'''</td> | ||
<td>'''Server''' - waits for incoming connection | <td>'''Server''' - waits for incoming connection | ||
Line 366: | Line 365: | ||
<tr> | <tr> | ||
<td>No leading zeros</td> | <td>No leading zeros</td> | ||
<td>yes | no; | <td>yes | no; default: <b>no</b></td> | ||
<td>Skips first hex zeros</td> | <td>Skips first hex zeros</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Server address</td> | <td>Server address</td> | ||
<td>host | ip; | <td>host | ip; default: <b>no</b></td> | ||
<td>Server address to which the client will connect to</td> | <td>Server address to which the client will connect to</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>TCP port</td> | <td>TCP port</td> | ||
<td>integer [0..65535]; | <td>integer [0..65535]; default: <b>none</b></td> | ||
<td>The port number used to listen for incoming connections</td> | <td>The port number used to listen for incoming connections</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Reconnect intervals (s)</td> | <td>Reconnect intervals (s)</td> | ||
<td>integer; | <td>integer; default: <b>none</b></td> | ||
<td>Indicates the time period between reconnection attempts</td> | <td>Indicates the time period between reconnection attempts</td> | ||
</tr> | </tr> | ||
Line 388: | Line 387: | ||
====Mode: Bidirect==== | ====Mode: Bidirect==== | ||
---- | ---- | ||
[[Image: | [[Image:Networking_rut955_manual_rs232_rs485_over_ip_bidirect.png|border|class=tlt-border ]] | ||
<table class="nd-mantable"> | <table class="nd-mantable"> | ||
Line 398: | Line 397: | ||
<tr> | <tr> | ||
<td>Mode</td> | <td>Mode</td> | ||
<td>Server | Client | Bidirect; | <td>Server | Client | Bidirect; default: <b>Server</b></td> | ||
<td> | <td>Serial connection operating mode. | ||
<ul> | |||
<li><b>Server</b> - this device wait for incoming connection.</li> | |||
<li><b>Client</b> - this device initiates the connection</li> | |||
<li><b>Bidirect</b> – acts as a client by default, but at the same time waits for incoming connections</li> | |||
</ul> | |||
</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>No leading zeros </td> | <td>No leading zeros </td> | ||
<td>yes | no; | <td>yes | no; default: <b>no</b></td> | ||
<td>Skips first hex zeros</td> | <td>Skips first hex zeros</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Server address</td> | <td>Server address</td> | ||
<td>host | ip; | <td>host | ip; default: <b>no</b></td> | ||
<td>Server address to which the client will connect to</td> | <td>Server address to which the client will connect to</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>TCP port</td> | <td>TCP port</td> | ||
<td>integer [0..65535]; | <td>integer [0..65535]; default: <b>none</b></td> | ||
<td>The port number used to listen for incoming connections</td> | <td>The port number used to listen for incoming connections</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Reconnect intervals (s)</td> | <td>Reconnect intervals (s)</td> | ||
<td>integer; | <td>integer; default: <b>none</b></td> | ||
<td>Indicates the time period between reconnection attempts</td> | <td>Indicates the time period between reconnection attempts</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>TCP port</td> | <td>TCP port</td> | ||
<td>integer [0..65535]; | <td>integer [0..65535]; default: <b>none</b></td> | ||
<td>The port number used to listen for incoming connections</td> | <td>The port number used to listen for incoming connections</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Timeout (s)</td> | <td>Timeout (s)</td> | ||
<td>integer; | <td>integer; default: <b>none</b></td> | ||
<td>Disconnects client after the specified timeout of inactivity</td> | <td>Disconnects client after the specified timeout of inactivity</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Output</td> | <td>Output</td> | ||
<td>OC Output | Relay Output; | <td>OC Output | Relay Output; default: '''OC Output'''</td> | ||
<td>Output to indicate that application switched from client (default) to server state</td> | <td>Output to indicate that application switched from client (default) to server state</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Output state</td> | <td>Output state</td> | ||
<td>integer [0..1]; | <td>integer [0..1]; default: '''0'''</td> | ||
<td>Output state value after the application reverts to server mode</td> | <td>Output state value after the application reverts to server mode</td> | ||
</tr> | </tr> | ||
Line 461: | Line 462: | ||
<tr> | <tr> | ||
<td>Direct connect</td> | <td>Direct connect</td> | ||
<td>host:port | ip:port; | <td>host:port | ip:port; default: <b>none</b></td> | ||
<td>Maintains a constant connection to specified host. Leave empty to use an ATD command to initiate the connection</td> | <td>Maintains a constant connection to specified host. Leave empty to use an ATD command to initiate the connection</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>TCP port</td> | <td>TCP port</td> | ||
<td>integer [0..65535]; | <td>integer [0..65535]; default: <b>none</b></td> | ||
<td>The port number used to listen for incoming connections. Leave it empty to disable incoming connections</td> | <td>The port number used to listen for incoming connections. Leave it empty to disable incoming connections</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Initiation string</td> | <td>Initiation string</td> | ||
<td>string; | <td>string; default: <b>none</b></td> | ||
<td>A command string that will be sent to the modem to initiate it in some special way</td> | <td>A command string that will be sent to the modem to initiate it in some special way</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>No extra CR LF in response</td> | <td>No extra CR LF in response</td> | ||
<td>yes | no; | <td>yes | no; default: '''yes'''</td> | ||
<td>Removes extra CR LF before and LF after response code</td> | <td>Removes extra CR LF before and LF after response code</td> | ||
</tr> | </tr> | ||
Line 540: | Line 541: | ||
<tr> | <tr> | ||
<td>Listening IP</td> | <td>Listening IP</td> | ||
<td>ip; | <td>ip; default: '''0.0.0.0'''</td> | ||
<td>IP address on which the Modbus gateway will wait for incoming connections</td> | <td>IP address on which the Modbus gateway will wait for incoming connections</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Port</td> | <td>Port</td> | ||
<td>integer [0..65535]; | <td>integer [0..65535]; default: <b>none</b></td> | ||
<td>The port number used to listen for incoming connections</td> | <td>The port number used to listen for incoming connections</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Slave ID configuration type</td> | <td>Slave ID configuration type</td> | ||
<td>User defined | Obtained from TCP; | <td>User defined | Obtained from TCP; default: '''User defined'''</td> | ||
<td>Specifies whether slave IDs are user defined or automatically obtained from TCP</td> | <td>Specifies whether slave IDs are user defined or automatically obtained from TCP</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Slave ID | Permitted slave IDs</td> | <td>Slave ID | Permitted slave IDs</td> | ||
<td>integer | range of integers; | <td>integer | range of integers; default: '''1'''</td> | ||
<td>Specifies the slave ID of range of permitted slave IDs. The way this field is named and its function depends on the value of the ''Slave ID configuration'' field. <br> A range of IDs can be specified by placing a '''hyphen''' ('''-''') between two integer numbers. For example, if you permitt slave IDs in the range of 10 to 20, you would specify it as: '''10-20''' <br> You can also specify multiple values that are not connected in a range using '''commas''' (''','''). For example, to specify 6, 50 and 100 as permitted slave IDs, you would have to use: '''6,50,100'''</td> | <td>Specifies the slave ID of range of permitted slave IDs. The way this field is named and its function depends on the value of the ''Slave ID configuration'' field. <br> A range of IDs can be specified by placing a '''hyphen''' ('''-''') between two integer numbers. For example, if you permitt slave IDs in the range of 10 to 20, you would specify it as: '''10-20''' <br> You can also specify multiple values that are not connected in a range using '''commas''' (''','''). For example, to specify 6, 50 and 100 as permitted slave IDs, you would have to use: '''6,50,100'''</td> | ||
</tr> | </tr> | ||
Line 574: | Line 575: | ||
<tr> | <tr> | ||
<td>IP address</td> | <td>IP address</td> | ||
<td>ip; | <td>ip; default: '''0.0.0.0'''</td> | ||
<td>IP address of the NTRIP server </td> | <td>IP address of the NTRIP server </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Port</td> | <td>Port</td> | ||
<td>integer [0..65535]; | <td>integer [0..65535]; default: <b>none</b></td> | ||
<td>TCP/UDP port used for NTRIP communication</td> | <td>TCP/UDP port used for NTRIP communication</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Mount point</td> | <td>Mount point</td> | ||
<td>string; | <td>string; default: <b>none</b></td> | ||
<td>NTRIP mount point</td> | <td>NTRIP mount point</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Data format</td> | <td>Data format</td> | ||
<td>NTRIP V2.0 TCP/IP | NTRIP V2.0 RSTP/RTP | NTRIP V1.0 | Automatic detection | NTRIP V2.0 UDP; | <td>NTRIP V2.0 TCP/IP | NTRIP V2.0 RSTP/RTP | NTRIP V1.0 | Automatic detection | NTRIP V2.0 UDP; default: '''NTRIP V1.0'''</td> | ||
<td>Specifies the used version of NTRIP </td> | <td>Specifies the used version of NTRIP </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Username</td> | <td>Username</td> | ||
<td>string; | <td>string; default: <b>none</b></td> | ||
<td>User name for NTRIP authentication</td> | <td>User name for NTRIP authentication</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Password</td> | <td>Password</td> | ||
<td>string; | <td>string; default: <b>none</b></td> | ||
<td>Password for NTRIP authentication</td> | <td>Password for NTRIP authentication</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Default NMEA string</td> | <td>Default NMEA string</td> | ||
<td>string; | <td>string; default: <b>none</b></td> | ||
<td>Optional NMEA string that will be used as the default value when initiating the connection to the NTRIP server (this value is only sent to the server if there is no NMEA from router's GPS device) </td> | <td>Optional NMEA string that will be used as the default value when initiating the connection to the NTRIP server (this value is only sent to the server if there is no NMEA from router's GPS device) </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Use device GPS</td> | <td>Use device GPS</td> | ||
<td>yes | no; | <td>yes | no; default: <b>no</b></td> | ||
<td>Allows to obtain default NMEA string from the router's GPS device. Only works if GPS service is enabled and location fix is obtained at the time of NTRIP service start</td> | <td>Allows to obtain default NMEA string from the router's GPS device. Only works if GPS service is enabled and location fix is obtained at the time of NTRIP service start</td> | ||
</tr> | </tr> |