Host Configuration

Name

Host Configuration -- Host Configuration for USB Serial like Peripherals

Host Configuration

Configuration for two hosts are listed here, Microsoft Windows and Linux. It should also be possible to use the eCos USB serial like peripheral driver with other hosts.

Linux

The eCos USB serial like peripheral driver can be used in Linux in one of two ways.

  • Using the generic usbserial kernel module passing the vendor and product ID as module parameters. e.g.

                    modprobe usbserial vendor=0xabcd product=0x1234
                  

    would load the kernel module so that it would use a USB device abcd:1234 as a serial device.

  • Using the mini driver provided with eCos in the host/linux directory. This driver must be edited and the correct vendor and product ID set to match the vendor and product ID used by the device. Once compiled this driver can be loaded with:

                    modprobe usbserial
                    modprobe ecos_usbserial
                  

    This driver is known to compile with kernel versions 2.6.18 and probably works fine with other kernels. However it fails to compile with kernels after 2.6.25.

Both of these methods will result in the Linux Kernel making a new serial device available. This is typically named /dev/ttyUSB0.

Microsoft Windows

To install the device in a Microsoft Windows system make use of the INF file in host/windows/eCosUsbSerial.inf. Copy this INF file and usbser.sys from your version of Windows into an empty directory. Then plug in the USB device. When prompted to load a driver navigate to the INF file and select it.

   
   
  Documentation license for this page: Open Publication License
   
         
 
  Copyright © 2003-2012 eCosCentric Limited Privacy & Legal Statements