You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/software/command-summary-consolidated.rst
+37-9Lines changed: 37 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1297,7 +1297,7 @@ Writing CVs - Program on the main
1297
1297
|_| > **bit:** ??? |BR|
1298
1298
|_| > **value:** The value to be written to the Configuration Variable memory location (0-255)
1299
1299
1300
-
*Response:* ???
1300
+
*Response:* N/A
1301
1301
1302
1302
|hr-dashed|
1303
1303
@@ -1338,13 +1338,14 @@ By design, for safety reasons, the NMRA specification prevents locos from respon
1338
1338
|_| > **cv:** CV number
1339
1339
1340
1340
*Response:* |BR|
1341
-
|_| ``<r cv value>`` |BR|
1342
-
|_| > **cv:** The number of the Configuration Variable memory location in the decoder to write to (1-1024) |BR|
1341
+
|_| ``<v cv value>`` |BR|
1342
+
|_| > **cv:** The number of the Configuration Variable memory location in the decoder (1-1024) |BR|
1343
1343
|_| > **value:** one of |BR|
1344
1344
|_| |_| |_| |_| • value of the CV |BR|
1345
1345
|_| |_| |_| |_| • -1: if the write failed
1346
1346
1347
-
*Example:* ``<r 3450>`` shows that Loco with ID **3450** is on the programming track.
1347
+
*Example:* ``<v 1 3>`` shows that the value ``3`` is stored in CV ``1``. |BR|
1348
+
*Example:* ``<v 1 -1>`` shows that reading the value stored in CV ``1`` failed.
1348
1349
1349
1350
|hr-dashed|
1350
1351
@@ -1384,9 +1385,17 @@ By design, for safety reasons, the NMRA specification prevents locos from respon
1384
1385
|_| |_| |_| |_| • 0=off
1385
1386
1386
1387
*Response:* |BR|
1387
-
|_| Response (successful): **0 | 1** |BR|
1388
-
|_| Response (fail): **<V -1>**
1388
+
|_| ``<v cv bit onOff>`` |BR|
1389
+
|_| > **cv:** CV number |BR|
1390
+
|_| > **bit:** bit to verify in the CV |BR|
1391
+
|_| > **onOff:** one of |BR|
1392
+
|_| |_| |_| |_| • 1=on |BR|
1393
+
|_| |_| |_| |_| • 0=off |BR|
1394
+
|_| |_| |_| |_| • -1=error
1389
1395
1396
+
*Example:* ``<v 1 3 1>`` shows that the value ``1`` is stored in bit ``3`` of CV ``1``. |BR|
1397
+
*Example:* ``<v 1 3 -1>`` shows verifying the value stored in bit ``3`` of CV ``1`` failed.
1398
+
1390
1399
*Notes:*
1391
1400
1392
1401
This command is designed to offer faster verification of the value held in a CV and can be used instead of the ``<R>`` commands. Instead of reading a bit value, it compares the bit to an expected value. It will attempt to verify the value first, an if it is successful, will return the value as if it was simply “read”. If the verify fails, it will perform a read bit command (see above) and return the value read.
@@ -1408,7 +1417,10 @@ By design, for safety reasons, the NMRA specification prevents locos from respon
1408
1417
|_| > **cv:** CV number |BR|
1409
1418
|_| > **value:** one of |BR|
1410
1419
|_| |_| |_| |_| • actual value of the CV |BR|
1411
-
|_| |_| |_| |_| • -1: if the write failed
1420
+
|_| |_| |_| |_| • -1: if the verify failed
1421
+
1422
+
*Example:* ``<v 1 3>`` shows that the value ``3`` is stored in CV ``1``. |BR|
1423
+
*Example:* ``<v 1 -1>`` shows verifying the value stored in CV ``1`` failed.
1412
1424
1413
1425
*Notes:*
1414
1426
@@ -1428,7 +1440,20 @@ By design, for safety reasons, the NMRA specification prevents locos from respon
1428
1440
|_| |_| |_| |_| • 1=on |BR|
1429
1441
|_| |_| |_| |_| • 0=off
1430
1442
1431
-
*Response:* ???
1443
+
*Response:* |BR|
1444
+
|_| ``<r0|0|cv bit onOff>`` |BR|
1445
+
|_| > **cv:** CV number |BR|
1446
+
|_| > **bit:** bit changed |BR|
1447
+
|_| > **onOff:** one of |BR|
1448
+
|_| |_| |_| |_| • 0|1 |BR|
1449
+
|_| |_| |_| |_| • -1: if the write failed
1450
+
1451
+
*Example:* ``<r0|0|1 3 1>`` shows that the value ``1`` was written to bit ``3`` of CV ``1``. |BR|
1452
+
*Example:* ``<r0|0|1 3 -1>`` shows that writing to bit ``3`` of CV ``1`` failed.
1453
+
1454
+
*Notes:*
1455
+
1456
+
The response is a legacy DCC++ formatted response that is hard to parse, and it is recommended to write full CVs where possible.
1432
1457
1433
1458
|hr-dashed|
1434
1459
@@ -1442,12 +1467,15 @@ By design, for safety reasons, the NMRA specification prevents locos from respon
1442
1467
|_| > **value:** value to change the CV to
1443
1468
1444
1469
*Response:* |BR|
1445
-
|_| ``<w cv value>`` |BR|
1470
+
|_| ``<r cv value>`` |BR|
1446
1471
|_| > **cv:** CV number |BR|
1447
1472
|_| > **value:** one of |BR|
1448
1473
|_| |_| |_| |_| • value CV was changed to |BR|
1449
1474
|_| |_| |_| |_| • -1: if the write failed
1450
1475
1476
+
*Example:* ``<r 1 3>`` shows that the value ``3`` was written to CV ``1``. |BR|
1477
+
*Example:* ``<r 1 -1>`` shows writing a value to CV ``1`` failed.
Copy file name to clipboardExpand all lines: docs/throttles/native-protocol-library.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,4 @@ A DCC-EX Native command protocol library is available to help develop throttle a
13
13
14
14
The library implements the DCC-EX Native command protocol (as used in the |DCC-EX| |EX-CS| ONLY), allowing a device to connect to the server and act as a client (such as a hardware based throttle).
15
15
16
-
Details of the library, including instructions and examples, `is available here <https://dcc-ex.com/DCCEXProtocol/index.html>`_ |EXTERNAL-LINK|.
16
+
Details of the library, including instructions and examples, `is available here <https://dcc-ex.com/DCCEXProtocol/index.html>`__ |EXTERNAL-LINK|.
0 commit comments