module documentation

DCC RailCom DCC Command Response

This module contains the functions and classes for DCC RailCom DCC command mobile responses on Channel 2.

The following Sequence Diagram shows the reading of a RailCom Channel 2 response.

images/ch2.svg

DCC Channel 2 Sequence Diagram

Author
Paul Redhead
Class RComCmdRsp Channel 2 (Command Response) Decode
Constant _DG2_LEN Channel 2 Datagram Length
_DG2_LEN: dict[int, int] = ΒΆ

Channel 2 Datagram Length

This is for mobile decoders - see RCN-217 Table 6. The table for accessory (static) decoders differs, but no plans to support them yet.

Indexed by datagram id, contains the additional number of 6 bit groups to be concatenated.

Value
{0: 1,
 1: 1,
 2: 1,
 3: 5,
 4: 5,
 7: 2,
 8: 5,
...