How to build the set-up for Virtual Serial Ports communicating to an end device, via the Nodegrid OS

How to build the set-up for Virtual Serial Ports communicating to an end device, via the Nodegrid OS

Abstract: 
In the industry, some legacy applications impose to use serial ports (COM) to interface with the industrial automates. In this article, we will study a set-up in which a desktop emulates a virtual serial COM, and conveys the connection via the Nodegrid, down to the industrial automate. 

Requirements: 
- Laptop, equipped with a Virtual Serial Ports Tool. 

Network Diagram: 
The laptop is connected in RJ45 Ethernet to the Nodegrid (in our case a NSR). The NSR is connected, on one of its RJ45 serial port, to the industrial automate. The industrial automate communicates in serial RS232. Please note that an adapter may be required (RJ45-DB9, for instance). 


The laptop establishes a connection in serial, redirected to a Telnet connection; the NSR then redirected that Telnet connection to the serial console link. It works with the RFC2217, with Terminal Server Emulation, but the set-up also allows Raw Socket to go through. As for the industrial automate, I merely used a Cisco Catalyst 9200. 

Configuration: 
 Install on the laptop the free version of HHD Virtual Serial Port Tools, https://www.hhdsoftware.com .Open the application, select "TCP/IP Ports (RFC2217, Raw)". The window "Create TCP/IP Serial Port" opens. Fill in the following fields: 
- for Protocol, select 'RFC2217' (respectively, 'Raw') 
- for Remote Host IP address or name: enter the IP address of the NSR. 
- for Remote TCP Port: enter the redirection port, in our case '7101' (respectively, '7102')
Click on Create. 



On the NSR, in Managed Devices :: Devices :: LAB-CSW2 :: Access, click on "Allow Telnet protocol", and in the field Telnet Port, enter the same port as above, '7101'.  
(respectively, click on "Allow Binary Socket", and in the field TCP Socket Port, enter '7102'). 


Test: 
To test the end-to-end communication, open a Putty terminal on the laptop, and open a regular serial console communication. 


The putty windows then leads to the console connection window, to the Cisco Catalyst: 

 




    • Related Articles

    • How to Configure Nodegrid Serial Ports

      To configure the serial ports of your Nodegrid Serial Console, follow the guideline steps below.   WebUI Log in as admin to the Nodegrid Serial Console Web interface. Go to Managed Devices page. Select the serial ports you want to configure, or check ...
    • Power Control within Serial Session

      Nodegrid Serial Console features the Power Control integration which gives authorized users the ability to power on, power off and reset/reboot the serial devices, within the serial session, by using an escape character (default escape character is ...
    • Nodegrid Serial Console: Pinouts, Cables and Connectors

      The tables below show the serial port pinout information of the NSC TxxR (Cisco Pinout) and NSC Txx (Legacy Pinout).  NSC TxxR - Cisco-like Pinout Pin Signal Name Input/Output 1 CTS IN 2 DCD IN 3 RxD IN 4 GND N/A 5 GND N/A 6 TxD OUT 7 DTR OUT 8 RTS ...
    • How to Telnet and SSH to the Nodegrid Serial Ports

      Note: by default, Telnet access is turned off with your Nodegrid Serial Console. Authorized users can use Telnet or SSH to connect directly to the console of a managed device if all of the following are true: Telnet / SSH protocol is enabled under ...
    • Rename an attached serial port

      Prior to 5.10.x, to rename an attached serial port, you need to go to Managed Devices :: Devices, tick the serial port that you want to rename and click on "Rename": Then change the name and "Save": From 5.10.x you can now rename the serial port from ...