The SPROG II / 3 and SPROG nano are relative easy to use and economically priced DCC Generator/Programmer with some extras.
¹) The mode word is currently not changed if the speed step of a loco is not set to 128.
Rocrail sends every 25ms a byte string like "
O 73 3F CC 80" as a command to SPROG II which on its turn generates the real DCC packet on the track output.
This byte string is a hexadecimal representation of the DCC packet to be send. A complete refresh cycle will take about 4 seconds if all 128 slots are in use.
SPROG 3 and S_Nano have device name "/dev/ttyACM0" under Linux.
The Pi-SPROG can only be used if Rocrail runs on the Raspberry Pi on which the Pi-SPROG is connected.
Pi-SPROG has the device name "/dev/ttyAMA0" under Linux/Raspbian.
sudo nano /boot/config.txt Scroll to the end of the file and add the following lines:
Use the CBUS library with serial 115200, and as device /dev/serial0.