Skip to content

CBUS/VLCB interface

Interface for communicating with a CBUS/VLCB network.

Methods

send(message)

Send CBUS/VLCB message.

Use this with caution!

These messages bypass Traintastic’s normal handling. You need a solid understanding of CBUS/VLCB to avoid conflicts. Side effects may occur that Traintastic is not aware of or cannot manage.

Parameters:

  • message
    CBUS/VLCB message bytes. (1...8)

Return values
true if send, false otherwise.

send_dcc(dcc_packet [, repeat = 2])

Request the command station to send a DCC packet to the track (RDCCn).

Use this with caution!

These messages bypass Traintastic’s normal handling. You need a solid understanding of DCC to avoid conflicts. Side effects may occur that Traintastic is not aware of or cannot manage.

Parameters:

  • dcc_packet
    Table containing two to five DCC packet bytes to send excluding checksum byte.

  • repeat
    Number of times to repeat the packet on the track. (1...255)

Return values
true if send, false otherwise.