Support of DCC extended accessory

http://www.opendcc.de
http://www.bidib.org
Post Reply
opendcc
Posts: 137
Joined: 08.01.2009, 22:03

Support of DCC extended accessory

Post by opendcc » 11.11.2009, 18:31

Hello,

announcing a new feature:

OpenDCC from V0.23 on supports the extended accessory command of DCC. This allows for a easier control of signals with more than two aspects. For access, please use the following command extensions to p50x:

XTrntX (0x91)- length = 1+2 bytes

Bytes:
0: 0x91 XTrntX
1: LSB decoderaddress (A7 ... A0)
2: MSB decoderadress and signal aspect
bit# 7 6 5 4 3 2 1 0
+-----+-----+-----+-----+-----+-----+-----+-----+
| B4 | B3 | B2 | B1 | B0 | A10 | A9 | A8 |
+-----+-----+-----+-----+-----+-----+-----+-----+
A10..A0: Addr of Decoder
B4..B0: Aspect

Answer: 0 or Error-Code

rjversluis
Site Admin
Posts: 42308
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 12.11.2009, 07:39

Hi Wolfgang,

can you add this new feature here:

https://bugs.launchpad.net/rocrail/+filebug

Any information on the aspect bits or are they user defined?

opendcc
Posts: 137
Joined: 08.01.2009, 22:03

Post by opendcc » 12.11.2009, 18:49

Hi Rob,

when I understand NMRA 9.2.1 correctly, there are up to 32 different aspects and only the aspect 0 is defined as 'absolute stop aspect'. So it is up to the decoder (and the user) how he maps these aspects, the command station only feeds this through. But I find is sensible to use the aspect 1 as 'full go' and 2 as 'half go'.

br Wolfgang

Post Reply

Return to “OpenDCC & BiDiB”