Where can I find the latest Linux drivers for my USB device or ExpressCard?

FAQs

Downloads
Brainboxes-USB Linux Driver
SHA1: 1524E3DBC7A8C631BD072BADC515EF950DF61C61
Product Documentation

Brainboxes USB-connected serial port products can be installed as standard Linux serial port devices using the ftdi_sio module which is already available in any modern variety of Linux.  All that is required is to teach the module the plug-and-play codes which identify the products, and we provide a shell script to automate that process.

To set up your system to automatically recognise and install all Brainboxes USB-connected serial port devices, you need to have the ‘brainboxes-usb’ script run at start-up.  The standard way to arrange for scripts to be run at start-up is to use the System V style init system, and you can add the script to the init system using the following steps.

You will need superuser privileges to do this, so either log in as root or prefix all the commands below with ‘sudo ’ (you will be asked for the root password):

  1. Download the ‘brianboxes-usb’ script onto your Linux system and save or copy it into the /etc/init.d directory:
    cd /etc/init.d
    wget -q0- -0 tmp.zip https://www.brainboxes.com/files/pages/support/faqs/sample_code/brainboxes-usb.zip [&][&] unzip tmp.zip [&][&] rm tmp.zip
  2. Use chmod to make the script executable:
    chmod +x /etc/init.d/brainboxes-usb
  3. Make the file run at system start up:
    • Debian-type (Including Raspbian for Raspberry Pi) systems, use this command to add this script to the init system:
      update-rc.d brainboxes-usb defaults
    • Redhat and SuSE Linux (Including CentOS) use a program called chkconfig instead:
      /sbin/chkconfig --add brainboxes-usb
    • On systems where neither of these programs are available, you can use runlevel editors such as sysv-rc-conf or bum instead, or create the link directly:
      cd /etc
      ln -s ../init.d/brainboxes-usb rsS.d/S20brainboxes-usb

      Adjusting the sequence number ’20’ if necessary so that it’s greater than the sequence number of the udev start script. If your system has no /etc/rcS.d directory, you’ll have to create links in /etc/rc2.d, /etc/rc3.d, /etc/rc4.d & /etc/rc5.d instead.

  4. The script will now be run automatically on start-up. To run it the first time, either reboot or run the script manually: /etc/init.d/brainboxes-usb start. The USB-connected serial ports will be installed as devices named /dev/ttyUSBn, where ‘n’ is a number.

RS-422/485 Full/Half Duplex

For RS-422/485 ports, the half/full duplex mode is selected by configuring the DTR output. If DTR is set (which seems to be the default), the port is in full-duplex mode, and if DTR is not set, the port is in half-duplex mode. You can control DTR from your application using ioctl() calls.

Product Support for this Driver

This driver is intended for use with Brainboxes USB2Serial devices and Express cards with product codes US & VX.

Related FAQs

Related Products

Related Range

FAQs