Model Railroad System  2.2.1
Overall User Manaual
raildriverd

Raildriver USB Hotplug Daemon

SYNOPSIS

raildriverd [-debug] busnum devnum

DESCRIPTION

This is the deamon program for the Rail Driver. It is started by the USB Hotplug code. See Hotplugging scripts and setup. for details. It should not be started or stopped by hand!

The API to use this deamon is described in Model Railroad System Programming Guides, Part I. User programs connect to this deamon through a Tcp/Ip port. It allows multiple programs to access a single Raildriver device. These programs can then in turn implement various functionallity for the various levers, knobs, switches, and buttons on the Raildriver device.

OPTIONS

  • -debug This option turns on verbose debug logging.

PARAMETERS

  • busnum This is the USB bus number the device is connected to.
  • devnum This is the USB device number the device is connected to.

Hotplugging scripts and setup.

There are two ways to set up auto starting of this daemon.

  1. Using the Hotplug daemon. Copy the raildriverd.hotplug script to /etc/hotplug/usb/ as raildriverd Use the print-usb-usermap stript to append a line to /etc/hotplug/usb.usermap.
  2. Using udev. Copy 90-raildriver.rules to /etc/udev/rules.d/ and copy raildriverd.udev to /lib/udev/ as raildriverd

AUTHOR

Robert Heller <heller@deepsoft.com>