User Manual

RemoteCOM w/ Wi-Fi (C30 - C32)

Introduction

Serial Port Server w/ Wi-Fi® (C30 - C32)

Serial Port Server is a complete hardware and software solution for creating remote communication ports. The software part can be uploaded to any of the Redisage C30 - C32 Ethernet Converters. It provides a communication between a LAN host and a device equipped with RS232/RS485 serial interfaces. A dedicated app makes it easy and fast to configure and deploy. There is a possibility to create virtual COM ports with the Redisage Configurator to minimize number of cables. Onboard Wi-Fi module makes it even more versatile and independent solution.

eng_pl_C30-Wi-Fi-802-11bgn-Ethernet-10-100MB-2xRS232-Converter-28_4.jpg

Configuration by the Web Page

Serial Port Server w/ Wi-Fi® (C30 - C32)

This page presents capabilities of the Ethernet Converters configuration. First of all, make sure that converter is connected to power supply and to the LAN using a patch cord. If the device has not static IP set up, it will be necessary to obtain its IP address in the local network. User interface is mostly similar for every converters but some subpages might be diffrent for several models depends on amount of interfaces. In order to avoid some issues, click on a “Help” button in the top right corner on every page.

Default configuration

Default configuration of the Ethernet Converters:

Default login details:


Login

To access the web page open the browser, type IP address of the converter (default is 192.168.100.100). Then log in using user’s personal credentials. If it is a first configuration or the converter had a factory reset, then use default login details (login: admin, password: admin123).

image.png

The configuration is available only if devices are connected to the same Local Area Network as the computer used for it.

Status page

After a successful login, there should be an insight to important information such as port status, service and port which are in use and more details about the connection.

image.png

Changing username or password

After clicking “Edit User” under the user icon, it is possible to change the username or the password.

image.png

67bf69dd-bb1e-47f7-8135-4d13cac96cab.png

If login details were forgotten, it would be necessary to do a factory reset via a USB/UART converter and a serial console.

Ports page

This page allows configuring the device’s ports. There is a toggle switch next to a “Port” label by which it is possible to turn ON/OFF any particular ports.

image.png


Item

Description

Service

RemoteCOM

The RemoteCOM option lets to attach the port to a computer running the Redisage Configurator as if it would be physically present in the computer.

TCP Socket

TCP/UDP Socket exposes this port as a regular network socket - connect to this socket with own software and write/read data to send/receive data over the serial port without any additional software or serial port handling.

UDP Socket

Port

The service number - the device has an “IP Address” by which it is identified and a couple of services running on it. It's required to tell the device which service should be in use by entering this device's IP address and the port number in the RemoteCOM client or user’s software.

Connection Timeout [s]

The time specifying how often (every how many seconds) the "keep alive" packet will be sent to check if the client is still connected. Value 0 means that the connection is kept permanently without any timeout.

Inactivity Time [ms]

The maximum allowed time in milliseconds during which there is no data transfer. When connection is inactive for the time longer or equal to the entered value, then it will be closed. Value 0 means there is no measure of the inactivity time at all.

Encryption

Determine how the data is protected 'in flight' over a network. It is available only with the RemoteCOM service. Once enabled, it is necessary to set the password.

Password

Protect the communication between the device and various clients - keep it secret! Same settings have to appear in clients - without the correct passwords, a client will not be able to connect at all.

Termination

Enable/disable termination on the RS line.

Baud Rate

Determine the port's transmission speed over the data channel.

Data Bits

Determine the number of data bits in the port's message frame.

Parity

Enable/disable parity check in the port's message frame.

Stop Bits

Determine the number of stop bits in the port's message frame.

Notes

These notes are for information only - feel free to write down anything related to this port (device it connects to, etc.). They're also shown in the Configurator during the device discovery - in the other words, they're public.

Changing port’s service closes all sockets connected to the ports.

In the UDP mode, port number 15051 is reserved for UDP broadcast service.

Network page

In this section, network settings can be changed according to target LAN parameters.

image.png

image.png

Item

Description

Configuration Method

Enable/disable the DHCP server. If the DHCP server is disabled, the IP address of the device has to be set manually.

IP Address

IP address of the device.

Netmask

Netmask associated with the IP address.

Gateway

Gateway address currently used by the device.

MAC Settings

Allow setting the default MAC address or typing it manually.

MAC Address

Allow changing the physical address of the device.

image.png

Item

Description

HTTP Port

Determine the port of the control panel.

Telnet Port

Allow connection with the device via Telnet.

Broadcasts

Notify RemoteCOM clients in the same network about this device's existence. With this enabled, the Configurator will automatically set most of the settings correctly after picking the correct port.

Hostname

Label that is assigned to the device.

DNS Address 1 (Primary)

Primary Domain Name System used by the device.

DNS Address 2

Domain Name System used by the device.

It is possible to obtain a dynamic IP address. Just switch configuration method from static IP to DHCP (automatic). This process may cause some issues with identifying converters in LAN unless there is an access to the device which is responsible for allocating IP addresses.

Keep in mind that in case of changed IP address user needs to type new IP in the address bar and log in again.


Device page

On the device page there are tools used to a firmware update, a factory reset and a device reboot.

image.png

Item

Description

Firmware Update

Update firmware.

Factory Reset

Restore default ports settings and default network configuration.

Reboot

Reboot the device.

Firmware update

The device firmware update must not be interrupted. Update the device only if experiencing issues, being instructed to do so by our support or requiring the latest features/bugfixes. Failure during the update may 'brick' the device and make it unusable.

image.png

Use the remote-com-esp32.fir file for a firmware update.

Factory reset

To restore default settings, press the “Factory Reset” button. After that, user will be asked to type “RESET”. Then it will take a few seconds to reload the web page and restart the device.

image.png


Configuration by the Telnet Console‎

Serial Port Server w/ Wi-Fi® (C30 - C32)

The device can be also configured via the Telnet Console. Firstly, make sure that converter is connected to the power supply and to the LAN using a patch cord. Knowledge of the device’s IP address (default is 192.168.100.100) and Telnet port number (default is 23) is necessary to establish a connection.

Use command below in a terminal window to connect to the device:

telnet <ip_address> <port_number>

If the connection is successful there will be a login prompt visible. Log in using user’s personal credentials or the default login details (login: admin, password: admin123). If login is successful, it will be possible to start typing configuration commands.

0e6873d5-31dd-4050-9c0b-e87fcaa271e4.png

The configuration is available only if devices are connected to the same Local Area Network as the computer used for it.

List of all commands

Command

Description

help

Print the help.

conn

Print active TCP connections.

eth_mac

Print or change MAC address.

exit

Close current CLI session.

http_port

Print or change default http port.

ipconfig

Print or change the network configuration.

net_stat

Print lwIP statistics.

ping

Check internet connection with the desired host.

restart

Restart the system.

reboot

Same as restart.

sys_heap_usage

Print current heap usage.

telnet_port

Print or change default telnet port.

uart

Print or change uart configuration.

uart_service

Print or change uart_service configuration.

user

Print or change user configuration.

wificonf

Print or change the Wi-Fi configuration

wifi_mac

Print or change Wi-Fi MAC address.

Ports configuration commands

In terms of ports configuration it is possible to change parameters like: service, baud rate, data bits, parity, stop bits and so on. UART commands are provided below.

Network settings

The following commands might be helpful to change network settings according to target LAN parameters. 

Changing username or password

To change username or password, use user command. Available commands:

Additional notes

After some time of inactivity, session will be disconnected automatically.

In order to avoid issues like connecting to the host, type “help” to get more information.

To get more details about every particular command, append “help” after each commands (example: "ipconfig help").

Factory reset is not available from the Telnet Console level.

Configuration by the Serial Console‎

Serial Port Server w/ Wi-Fi® (C30 - C32)

Another way to configure the device is via a serial console. C30 - C32 require a dedicated USB/UART converter connected to the USB micro-B connector on the front of the device (check our converters).

Procedure to enter serial console mode on C30 - C32

Once this is done, log in using the default username and password, then change the network settings using "ipconfig" command.

5875417d-264b-4abb-bdcd-4ea4e558bd5a.png

List of all commands

Command

Description

help

Print the help.

conn

Print active TCP connections.

eth_mac

Print or change MAC address.

exit

Close current CLI session.

http_port

Print or change default http port.

ipconfig

Print or change the network configuration.

net_stat

Print lwIP statistics.

ping

Check internet connection with the desired host.

restart

Restart the system.

reboot

Same as restart.

sys_heap_usage

Print current heap usage.

telnet_port

Print or change default telnet port.

uart

Print or change uart configuration.

uart_service

Print or change uart_service configuration.

user

Print or change user configuration.

wificonf

Print or change the Wi-Fi configuration

wifi_mac

Print or change Wi-Fi MAC address.

Ports configuration commands

In terms of ports configuration it is possible to change parameters like: service, baud rate, data bits, parity, stop bits and so on. UART commands are provided below.

Network settings

The following commands might be helpful to change network settings according to target LAN parameters. 

Changing username or password

To change username or password, use user command. Available commands:

Service mode

Procedure to enter service mode for C30 - C32 converters

List of commands in the service mode

Command

Description

help

Print the help.

credits

Print current credits value for this device.

dev_ident

Print the device identification value.

restart

Restart the system.

serial_num

Print the serial number of this device.

version

Display the bootloader version.

xmodem

Download image to the internal flash using xmodem.

defaults

Reset application variables to defaults.

ipconfig

Print or change the network configuration.

flash_read

Read bytes from flash memory.

md

Read bytes from memory address.

In the service mode, the “ipconfig” command can only show a last static IP address.

Factory reset

To restore default settings, type “defaults”. After that, user will be asked to type “default network” to reset the network settings as well. Then user will be informed if the process is successful.

Additional notes

In order to avoid issues like connecting to host, type “help” to get more information.

To get more details about every particular command, append “help” after each commands (example: "ipconfig help").

Redisage Configurator‎

Serial Port Server w/ Wi-Fi® (C30 - C32)

Redisage Configurator is an app used to emulate connection between converter and a PC as if its RS232/RS485 ports would be connected directly to the COM port. The advantage of that functionality is lack of additional cables. Transmission can be tested over Ethernet. First connect the device to a local network using the Ethernet port and power it up. During the configuration process set “Service” to the RemoteCOM option on the “Ports” page.

While changing port service from RemoteCOM to TCP/UDP Socket make sure to disable RemoteCOM virtual port in the Redisage Configurator first.

image.png

Redisage VSP Driver

In order for Redisage Configurator to work properly, it is necessary to install the Redisage VSP Driver. It can be done with RedisageVSPDriver Installer available for Windows. You can download it for free here.

4e06a5a0-4a26-4fb3-b676-8b6d856b08d2.png

Redisage Configurator

When the device is configured open the Redisage Configurator app.

11350c46-7007-4fcb-add1-062c5c31ef21.png

Use the “Add Device” button to set up a new connection with a device. On the right side there should be a list of available devices visible. Choose one of them or specify a custom COM port number, an IP address and a service port number.

While specifying a custom virtual COM make sure to use the same IP address and service port as set earlier in the port configuration.

7d9e3ea8-6904-4f6d-b072-47b15c80d60c.png

In order to establish a connection with a desired device use the “Enable” button. To end the connection use the “Disable” button. Service IP/hostname, service port and password can be modified at any time. There are also available 2 options of the encryption methods (none (disabled) or strong (AES-GCM 128-bit, Argon2)) and 5 options of the connection timeout (brief, short, fair, modest or lengthy). Changes have to be saved with “Save Changes” button.

434ace32-b439-47be-b821-da79cef2b770.png

There is also the “Settings” tab at the top of the window from where the Logging Directory or the Device Manager can be opened.

ae6fd1d6-457d-4da4-82bc-99785acd103f.png

If everything is connected properly there should be a new COM port available in the Device Manager. It is also possible to check it, for example, on the web page.

If any change is made to the port configuration, make sure to apply it with the “Save Changes” button.

Troubleshooting

If a discovered device cannot be added, check if it hadn’t been added before with a different COM port / service port. In that case, delete previous configuration from the Redisage Configurator.

If that doesn't work, check if the port service was configured correctly for the RemoteCOM Service.