1.8 KiB
CBUS/VLCB reference
CBUS is a Layout Control Bus developed by members of the Model Electronic Railway Group (MERG). CBUS uses the Controller Area Network (CAN) for communication between the CBUS modules.
VLCB is an CBUS extension developed by MERG members to it adds additional commands and introduced a a stricter priority system for commands.
This appendix does not explain the CBUS/VLCB protocol. Instead, it how Traintastic implements and uses CBUS/VLCB and which protocol messages are recognized. It is intended for advanced users who are already familiar with the basics of the CBUS/VLCB protocol.
Supported hardware
TODO: under development
Message support
General control
- Track on/off:
TOF,TON,RTOF,RTON- Supported - Emergency stop:
ESTOP,RESTP- Supported
TODO: under development, will be expanded when implemented
Debugging and monitoring
Traintastic provides a debug option for CBUS/VLCB that logs all bus traffic. Messages are shown in hexadecimal format, and for many message types a human-readable textual description of the content is also provided.
This is useful for:
- Diagnosing compatibility issues with specific modules.
- Verifying that messages are transmitted and received as expected.
Sending raw messages
Through Lua scripting, it is also possible to:
- Send raw CBUS/VLCB messages, see
send(). - Send raw DCC track commands (
RDCCn), seesend_dcc().
!!! warning "Use this with caution!" - These messages bypass Traintastic’s normal handling. - You need a solid understanding of CBUS/VLCB and DCC to avoid conflicts. - Side effects may occur that Traintastic is not aware of or cannot manage.