Enabling Serial Communications

Java Virtual Machine that runs Iotellect Server needs a special Java Communication API driver to be able to communicate with Serial devices (RS-232, RS-482, etc.). This driver is automatically installed by the Iotellect Server Installer for Microsoft Windows operating system. For other operating systems, the Java Communication API driver has to be manually installed to get access to Serial devices.

If the Java Communication API driver is not properly installed, Serial device's Connection Settings will not contain the list of serial ports available in the system.

To install the Java Communication API for your operating system, follow these instructions:

1. Download the Java Communication API for your operating system from Sun Java website. At the time of this writing, it is available at http://java.sun.com/products/javacomm/.

2. Follow the instructions contained in driver distribution package.

By default, the Java Virtual Machine that executes Iotellect Server is located in the /jre subdirectory of Iotellect Server installation.

Linux Note

If your server is installed on Linux machine, only ports that follow the standard naming conventions (/dev/ttyS*) will be visible in Iotellect.

If your port has a name that doesn't satisfy this, you will get a No such port or gnu.io.NoSuchPortException error.

To overcome the issue, create a symbolic link for it, for example:

# ln -s /dev/tty200 /dev/ttyS200
# updatedb

It is necessary to restart Iotellect Server after creating a symlink to make the new port appear in the serial port list. Otherwise, new port alias can be manually typed in device communication settings.

Was this page helpful?