Sena Device Server and Serial/IP Application Guide Version 1.0.0 2005. 3. 7.
Revision History Revision V1.0.0 Date 2005-04-21 Name Kumar Technical Support Sena Technologies, Inc. 210 Yangjae-dong, Seocho-gu , Seoul 137-130, Korea Tel: (+82-2) 573-5422 Fax: (+82-2) 573-7710 E-Mail: support@sena.com Website: http://www.sena.com Description Serial/IP 4.3.
Table of Contents 1. Serial/IP............................................................................................................................... 5 1.1 Overview..................................................................................................................... 5 1.2 Application Diagram .................................................................................................... 5 1.3 Screenshot ..............................................................................
.2.3 Configuring the Encryption feature....................................................................21 4.2.4 Operation .........................................................................................................25 5. Appendix.............................................................................................................................
1. Serial/IP 1.1 Overview Sena bundles Serial/IP™ from Tactical Software as standard COM Port Redirector software of Sena products. This software enables your existing serial communication programs that use Windows serial port drivers to be used over the network allowing you to keep using your existing program without any modification. It provides access to the serial ports of the Sena Device Servers from multiple PCs over a TCP/IP network.
1.3 Screenshot - Configuration of COM x: Enter the IP address and Local Port number of Sena Device Server when working in Client mode. - Accept Connections: Enter the listening port number when working in Server mode. - Configuration Wizard: The Configuration Wizard determines whether the Serial/IP Redirector can communicate with the Sena Device server using the following settings for a Serial/IP COM port: IP Address of Server, TCP Port Number and Credentials.
Note: For more information on Serial/IP installation, please refer the Serial/IP user manual. 1.4 Operation Modes 1.4.1 Client Mode Check the “Connect to Server” option. Enter the IP address and Local Port number of the Sena Device Server. If users open Virtual COM port created and send data, it tries to connect to the specified IP address: TCP port and to transfer data accordingly. 1.4.2 Server Mode Check the “Accept Connection” option. Enter the listening TCP port number.
2.1.3 Configuration in the Serial/IP Example - Connect to server: IP address and Port number of the connected Sena Device Server is 192.168.18.50: 7001. - Connection Protocol: Connection Protocol has been set to Raw TCP.
- DSR/DCD/CTS Emulation: These settings allow control of the respective signals as presented to the application by the redirector. - Restore Failed Connections: When this option is enabled, a dropped TCP connection will cause the Serial/IP Redirector to automatically attempt to reconnect to the Sena Device server.
2.1.4 Operation - After opening a Virtual COM Port in the user application, Serial/IP will start communication with Sena Device Server. - User can monitor or trace the connection status using Serial/IP Port Monitor or Trace window. - Client mode is useful when user application is initiating the communication.
Note: When using the Serial/IP in client mode, user application needs to know the IP of the Sena Device Server. In this scenario, if the users network environment is DHCP, the IP address might be changed whenever it reconnects to the network. Sena Device Server supports Dynamic DNS Protocol that enables user to access the Sena Device Server via a domain name.
2.2. VirtualCOM Operation Mode Virtual COM Mode of Sena device servers use a driver to create a "Virtual COM Port" so that the software thinks it's talking to a serial port, but it's really talking to a LAN. When working with Serial/IP COM port redirector, Sena device servers transmit all serial signals including DTR, DSR and DCD. 2.2.1 Supported Models HelloDevice PS110/410/810, Super Series, and STS Series 2.2.2 Setting in the Sena Device Server - Set the Telnet protocol option enabled.
2.2.3 Serial/IP Configuration - Connection protocol is set to Telnet. 2.2.4 Sample Application Here is a sample application named "Protek" that changes serial port settings like baud rates and framing automatically. For this kind of applications, Sena's device servers support the COM Port Control protocol.
.
3. Serial/IP Server Operation Mode 3.1 RawTCP Operation Mode 3.1.1 Supported Products LS, NEMO, PS, SS, STS 3.1.2 Sena Device Server configuration TCP Client Mode (Destination IP, Port assignment-LS, PS), and Remote Host assignment (SS, STS) 3.1.
- Connection Protocol: Connection has been set to RawTCP mode. 3.1.4 Operation - If Virtual COM port is opened, then Serial/IP waits at the listening port until an incoming connection is established. - Server mode operation is working even when users don not know the IP address of the Sena Device Servers in a dynamic IP environment, since it does not initiate the connection.
4. SSL Security features Sena now takes COM Port Redirection a step further with encryption features, offering a secure Ethernet connection between the COM port and a Sena device server or terminal server. When working with the Serial/IP COM Port Redirector and OpenSSL Toolkit, the new SSL/TLS Security option offers a selection of five ciphers (including 3-DES and AES) and strengths up to 256 bits, sufficient to meet the tough security requirements encountered in the financial services industry. 4.
4.1.3 SSL Security configuration options in Serial/IP - Specify the operation mode according to users’ application scenario. - Check the “Use SSL/TLS Encryption with” option. - Set the Encryption method in Sena Device Server configuration... 4.1.4 Operation - When user opens the Virtual COM Port, the TCP connection between the Serial/IP and Sena Device Server is done via SSL Secure encryption. - If the authentication is completed, then data communication is started.
Note: Serial/IP settings according to the Encryption methods of Sena Device Servers. Sena Device Server SSLv3 Rollback to v2 Serial/IP SSL v3 or TLS v1 SSL v3 Only TLS v1 Only SSLv3 SSL v3 Only TLSv1 TLS v1 Only Remarks Serial/IP supports all Encryption methods.
4.2 SSL Data Transfer using certificate 4.2.1 Supported Models HelloDevice PS110/PS410/PS810, SS100/SS110/SS400/SS800, and STS800/STS1600 4.2.2 Sena Device Server Configuration - Set the Encryption method serial port #1 of Sena Device Server as follows ?? SSL v3, SSLv3 rollback to V2, TLS v1 - Select the “Samplecert.pem” certificate file from Serial/IP folder and upload. - Select the “Samplecert.pem” Key file from Serial/IP folder and upload. - Set the Key file password. - Upload the “Samplecert.
4.2.3 Configuring the Encryption feature To use SSL encryption: 1. Click the [Advanced] button to get the Advanced Settings dialog window. 2. Select the [Encryption] tab. 3. In the Encryption Strength group, select Minimum and Maximum strengths in their respective dropdown lists. 4. In the Encryption Ciphers group, select one or more cipher suites. 5. Verify that at least one cipher appears in the Cipher Set Preview display. 6. Click [Apply] or [OK] to make the settings effective.
- In the Certificate Authority Keys group, select the radio button that corresponds to the source of the CA keys to be used. Built-in CA keys are those used by Internet Explorer 6, and are summarized in Appendix B. Alternatively, a file containing CA keys can be specified in Filename. A sample CA file named "sampleca.pem" is included with the software and is located in the software installation folder.
- Select the checkbox Supply Certificate. This enables the other controls in the window. - In the Certificate File field, enter the filename of a certificate file or use Choose File to specify a file. - A sample certificate file named "samplecert.pem" is included with the Serial/IP package and is located in the same folder as the product software.
- The password for this certificate is "password".
4.2.4 Operation - Open the Virtual COM Port COM4 and wait for the incoming connection. - If the application sends data through COM1 port connected to the Sena Device Server, then the device server tries to connect to the listening port of the Serial/IP. - If the connection is established, then the data communication is started after the SSL authentication process.
5. Appendix - Host mode configuration between the Serial/IP and Sena Device server in communication depends on the TCP data initiation. - Depending upon the application scenario, user should choose the host mode of - If there is any communication error, please check on the Port Monitor window. - Below are 3 common causes for errors in communication. communication.