JControl/IDE  Eclipse/SWT  RXTX JAVA Communication API  JControl/Profiles  Examples & Demos  

Zusätzliche Hinweise für die Installation der JControl/IDE unter Linux


Using the USB-RS232-Adapter in Linux

Recent Linux distributions already include the drivers for the USB-RS232 adapter and should load them on demand. To verify this, insert your adapter and read the kernel messages by calling

dmesg

from the shell. You should encounter a dump similar to the following:

[...]
usb 1-2: new full speed USB device using ohci_hcd and address 2
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for PL-2303
pl2303 1-2:1.0: PL-2303 converter detected
usb 1-2: PL-2303 converter now attached to ttyUSB0
usbcore: registered new driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.12

The two modules responsible for the USB-RS232 adapter are pl2303 and usbserial. Check if the modules have been loaded by calling

lsmod

from the shell. If not, load them by calling

modprobe pl2303

as root user. Now the COM port should be available as device "/dev/ttyUSB0".

If the required modules pl2303 and usbserial are not available on your system, they have to be installed manually. Please refer to distribution specific tutorials and forums to find help.

Unfortunately the RXTX library used by the JControl/IDE will not discover the serial port under the current device name. To overcome this, create a sybolic link in the "/dev" directory as root:

cd /dev
ln -s ttyUSB0 ttyS100

Now the JControl/IDE should be able to discover the new COM-Port.