Changes

no edit summary
Line 1: Line 1:  +
{{Template: Networking_rutos_manual_fw_disclosure
 +
| fw_version ={{Template: Networking_rutos_manual_latest_fw
 +
| series = {{{series}}}
 +
}}
 +
}}
 +
{{#ifeq: {{{series}}} | RUT9 |<br><i><b>Note</b>: <b>[[{{{name}}} RS232/RS485 (legacy WebUI)#RS232|click here]]</b> for the old style WebUI (FW version {{Template: Networking_rutos_manual_latest_fw | series = RUT9XX}} and earlier) user manual page.</i>|}}
 +
 +
__TOC__
 +
 +
==Summary==
 +
 +
The <b>RS232</b> page is used to configure the operating parameter of RS232 serial connector.
 +
 +
This manual page provides an overview of the RS232 page in {{{name}}} devices.
 +
{{#switch: {{{series}}}
 +
| TRB1|RUT9|RUT9M=
 +
==General information==
 +
 +
==RS232 connector pinout==
 +
 +
The RS232 connector type on this device is a '''DCE female'''. DCE stands for Data Communication Equipment.
 +
 +
[[File:Services_rs232_connector.PNG|400px]]
 +
 +
<table class="nd-othertables">
 +
    <tr>
 +
        <th style="width: 30px">PIN</th>
 +
      <th style="width: 60px">NAME*</th>
 +
      <th style="width: 170px">DESCRIPTION*</th>
 +
        <th style="width: 400px">DIRECTION ON THIS DEVICE</th>
 +
    </tr>
 +
    <tr>
 +
      <td>1</td>
 +
      <td>DCD</td>
 +
      <td>Data Carrier Detect</td>
 +
      <td>Output</td>
 +
    </tr>
 +
    <tr>
 +
      <td>2</td>
 +
      <td>RXD</td>
 +
      <td>Receive Data</td>
 +
      <td>Output</td>
 +
    </tr>
 +
    <tr>
 +
    <td>3</td>
 +
        <td>TXD</td>
 +
        <td>Transmit Data</td>
 +
      <td>Input</td>
 +
    </tr>
 +
    <tr>
 +
    <td>4</td>
 +
        <td>DTR</td>
 +
        <td>Data Terminal Ready</td>
 +
      <td>Input</td>
 +
    </tr>
 +
    <tr>
 +
      <td>5</td>
 +
      <td>GND</td>
 +
      <td>Signal Ground</td>
 +
      <td>-</td>
 +
    </tr>
 +
    <tr>
 +
      <td>6</td>
 +
      <td>DSR</td>
 +
      <td>Data Set Ready</td>
 +
      <td>Output</td>
 +
    </tr>
 +
    <tr>
 +
    <td>7</td>
 +
        <td>RTS</td>
 +
        <td>Ready To Send</td>
 +
      <td>Input</td>
 +
    </tr>
 +
    <tr>
 +
    <td>8</td>
 +
        <td>CTS</td>
 +
        <td>Clear To Send</td>
 +
      <td>Output</td>
 +
    </tr>{{#ifeq:{{{series}}}|TRB1|
 +
    <tr>
 +
    <td>9</td>
 +
        <td>RI</td>
 +
        <td>Ring Indicator</td>
 +
      <td>Output (connected to +3.8V permanently via a 4.7k resistor) </td>
 +
    </tr>|
 +
    <tr>
 +
    <td>9</td>
 +
        <td>RI</td>
 +
        <td>Ring Indicator</td>
 +
      <td>Output (connected to +5V permanently via a 4.7k resistor) </td>
 +
    </tr>}}
 +
</table>
 +
 +
==Cables==
 +
 +
There are two types of RS232 serial devices: '''DTE''' and '''DCE'''. DTE typically refers to the serial port on a PC or terminal, while DCE refers to communication devices. Connectors mounted on DTE are likely to be male, and those mounted on DCE are likely to be female.
 +
 +
This device is DCE and has a female connector.
 +
----
 +
To connect a standard DTE device, use a straight-through Female/Male RS232 cable:
 +
 +
[[File:Services rs232 connector female male.PNG]]
 +
 +
See straight cable pinout below:
 +
 +
[[File:Straight cable pinout v2.png|400px]]
 +
 +
----
 +
 +
To connect another DCE device to RUT955, a Null-modem (crossed) Male/Male cable should be used:
 +
 +
[[File:Male male rs232 cable.jpg]]
 +
 +
See straight crossed cable pinout below:
 +
 +
[[File:Straight crossed rs232 cable pinout v2.png|400px]]
 +
 +
----
 +
 +
Maximum cable length is 15 meters or the cable length equal to a capacitance of 2500 pF (for a 19200 baud rate). Using lower capacitance cables can increase the distance. Reducing communication speed can also increase maximum cable length.|}}
 +
 +
==RS232 Configuration==
 +
 +
The <b>RS232 Configuration</b> section is used to set up the main operating parameters and the serial type of the RS232 connector.
 +
 +
[[File:Networking_rutos_manual_rs232_rs232_configuration_data_bits_{{{data_bit}}}.png|border|class=tlt-border]]
 +
 +
<table class="nd-mantable">
 +
    <tr>
 +
        <th>Field</th>
 +
      <th>Value</th>
 +
      <th>Description</th>
 +
    </tr>
 +
    <tr>
 +
      <td>Enabled</td>
 +
      <td>off | on; default: <b>off</b></td>
 +
      <td>Turns the RS232 service on or off.</td>
 +
    </tr>
 +
    <tr>
 +
    <td>Baud rate</td>
 +
        <td>{{{baud_rates}}}; default: <b>{{{baud_rate}}}</b></td>
 +
        <td>Data rate for serial data transmission (in bits per second (bps)).</td>
 +
    </tr>
 +
    <tr>
 +
    <td>Data bits</td>
 +
        <td>{{{data_bits}}}; default: <b>{{{data_bit}}}</b></td>
 +
        <td>Number of data bits for each character.</td>
 +
    </tr>
 +
    <tr>
 +
    <td>Parity</td>
 +
        <td>None | Odd | Even; default: <b>None</b></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.
 +
            <ul>
 +
              <li><b>None</b> (<b>N</b>) - no parity method is used.</li>
 +
              <li><b>Odd</b> (<b>O</b>) - the parity bit is set so that the number of "logical ones (1s)" has to be odd.</li>
 +
              <li><b>Even</b> (<b>E</b>) - the parity bit is set so that the number of "logical ones (1s)" has to be even.</li>
 +
            </ul>
 +
        </td>
 +
    </tr>
 +
    <tr>
 +
      <td>Stop bits</td>
 +
      <td>1 | 2; default: <b>1</b></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>
 +
    <td>Flow control</td>
 +
        <td>None | RTS/CTS | Xon/Xoff; default: <b>None</b></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.
 +
            <ul>
 +
                <li><b>RTS/CTS</b> - 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.</li>
 +
                <li><b>Xon/Xoff</b> - 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.
 +
            </ul>
 +
        </td>
 +
    </tr>
 +
    <tr>
 +
    <td>Serial type</td>
 +
        <td>[[#Console|Console]] | [[#Over IP|Over IP]] | [[#Modem|Modem]] | [[#Modbus gateway|Modbus gateway]]; default: <b>Console</b></td>
 +
        <td>Specifies the serial connection type.<br><b>Look to the sections below for information on different RS232 serial type options.</b></td>
 +
    </tr>
 +
</table>
 +
 +
===Console===
 +
----
 +
<b>Console</b> mode requires no further configuration than the settings above and is used as a direct-access method to the device's shell interface. For this purpose you may want use such applications as PuTTY on Windows and microcom, minicom, picocom or similar applications on Linux.
 +
 +
[[File:Networking_rutos_manual_usb_tools_printer_server_usb_to_serial_console.png|border|class=tlt-border]]
 +
 
===Over IP===
 
===Over IP===
 
----
 
----
Line 167: Line 354:     
|}}
 
|}}
 +
 +
===Modbus gateway===
 +
----
 +
The <b>Modbus gateway</b> serial type allows redirecting TCP data coming to a specified port to an RTU specified by the Slave ID. The Slave ID can be specified by the user or be obtained directly from the Modbus header.
 +
 +
[[File:Networking_rutos_manual_usb_tools_printer_server_usb_to_serial_modbus_gateway.png|border|class=tlt-border]]
 +
 +
<table class="nd-mantable">
 +
    <tr>
 +
        <th>Field</th>
 +
      <th>Value</th>
 +
      <th>Description</th>
 +
    </tr>
 +
    <tr>
 +
      <td>Listening IP</td>
 +
      <td>ip; default: <b>0.0.0.0</b></td>
 +
      <td>IP address to listen for incoming connections. The default value (<i>0.0.0.0</i>) means that this device will listen for incoming connections on any interface or IP address.</td>
 +
    </tr>
 +
    <tr>
 +
      <td>Port</td>
 +
      <td>integer [0..65535]; default: <b>502</b></td>
 +
      <td>Port number to listen for incoming connections.</td>
 +
    </tr>
 +
    <tr>
 +
    <td>Slave ID configuration type</td>
 +
        <td><span style="color: red;">User defined</span> | <span style="color: purple;">Obtained from TCP</span>;<br>default: <b><span style="color: red;">User defined</span></b></td>
 +
        <td>Specifies whether slave IDs are user defined or automatically obtained from TCP.</td>
 +
    </tr>
 +
    <tr>
 +
    <td><span style="color: red;">Slave ID</span> | <span style="color: purple;">Permitted slave IDs</span></td>
 +
        <td><span style="color: red;">integer</span> | <span style="color: purple;">range of integers</span>;<br>default: <b><span style="color: red;">1</span> or <span style="color: purple;">1-247</span></b></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 (<i>-</i>) between two integer numbers. For example, if you permit slave IDs in the range of 10 to 20, you would specify it as: <i>10-20</i><br>You can also specify multiple values that are not connected in a range using commas (<i>,</i>). For example, to specify 6, 50 and 100 as permitted slave IDs, you would have to use: <i>6,50,100</i></td>
 +
    </tr>
 +
    <tr>
 +
    <td>Open port automatically</td>
 +
        <td>off | on; default: <b>on</b></td>
 +
        <td>Automatically adds a traffic rule in the firewall configuration to open the required port for serial communication.<br><b><u>Caution:</u></b> use with care if listening IP is left as the default value (<i>0.0.0.0</i>). Leaving it as such will leave the device open for remote connections on the specified port.</td>
 +
    </tr>
 +
    <tr>
 +
    <td>Echo</td>
 +
        <td>off | on; default: <b>off</b></td>
 +
        <td>Turns RS232 echo on or off. RS232 echo is a loopback test usually used to check whether the RS232 cable is working properly.</td>
 +
    </tr>
 +
</table>
 +
 +
==IP Filter==
 +
 +
The <b>IP Filter</b> section is used for configuring which network is allowed to communicate with the device. You may add a new instance by selecting the Interface and pressing Add.
 +
 +
[[File:Networking_rutos_manual_console_ip_filter.png|border|class=tlt-border]]
 +
 +
Then enter the IP address and save.
 +
 +
[[File:Networking_rutos_manual_console_ip_filter_instance.png|border|class=tlt-border]]
    
[[Category:{{{name}}} Services section]]
 
[[Category:{{{name}}} Services section]]

Navigation menu