Content → Command Stations → DCC232
All personal computers now days have plenty of power free for doing much more then only show and control a model train layout.
Generating a digital signal for mobile and stationary decoders is one possibility to use this potential.
The DCC232 library is a lightweight DCC only generator for boosters like the ORD-3.
DCC signal is generated using a serial device.
Legacy RS232 devices and many USB-RS232 converters are supported.
PC | Device | Chip | Result | CPU % |
---|---|---|---|---|
Intel Pentium Dual Core 1.73GHz 1GB | /dev/ttyUSB0 | PL2303 | OK | 0…2 |
Intel Pentium Dual Core 1.73GHz 1GB | /dev/ttyUSB0 | FTDI | OK | 0…2 |
Intel Pentium Dual Core 1.73GHz 1GB | /dev/ttyUSB0 | DELOCK Serial HUB | UNSTABLE | 0…2 |
Intel Atom 1.6GHz 1GB | /dev/ttyS1 | Legacy | UNSTABLE; super user only | 0…2 |
PC | Device | Chip | Result | CPU % |
---|---|---|---|---|
Raspberry Pi Rev. B | /dev/ttyUSB0 | PL2303 | OK | 1…4 |
Raspberry Pi Rev. B | /dev/ttyUSB0 | FTDI | OK | 1…4 |
PC | Device | Chip | Result | CPU % |
---|---|---|---|---|
Intel Celeron 300MHz 256MB | com1 | Legacy | OK | 0…3 |
PC | Device | Chip | Result | CPU % |
---|---|---|---|---|
Intel Core 2 Duo 2.26GHz 8GB | /dev/tty.usbserial-ftEHGJCX | FTDI | Slow reaction.(4 sec.) | 2…3 |
Intel Core 2 Duo 2.26GHz 8GB | /dev/tty.PL2303-00001004 | PL2303 | No valid DCC signal | 2…3 |
Intel Core 2 Duo 2.26GHz 8GB | /dev/tty.MCS78XX_Port0.0 | DELOCK Serial HUB | No valid DCC signal | 2…3 |
The device name of the serial port to use with DCC232.
Commonly used devices:
OS | Legacy RS232 | USB |
---|---|---|
Linux | /dev/ttyS0, /dev/ttyS1 | /dev/ttyUSB0 |
Mac OS X | - | /dev/tty.*¹ |
Windows | com1, com2 | com7 |
RasPi | /dev/ttyAMA0 | /dev/ttyUSB0 |
¹) Manufacturer dependent.
Remove idle mobile decoders, using the purge time, from the slot after the velocity is zero.
No DCC refresh packets are generated for this address after purge.
The number of seconds a mobile decoder must be idle before it is purged.
Idle = stalled.
Activate the short circuit checking on the DSR line in a separate watchdog thread.
Invert the short circuit signal connected to the DSR line of the RS232 interface.
This option must be set in case the ORD-3 is used as booster.
The time in milliseconds the short circuit must resist before the Rocrail server is informed of a short circuit.
Usable in cases of an old native RS232 interface, to get a fast reading of the CV's.