483 lines
21 KiB
Plaintext
483 lines
21 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy for HTML5 for Apple macOS version 5.8.0">
|
|
<title>JMRI Hardware Support - Connecting to a Digitrax DCS240</title>
|
|
<meta name="author" content="Bob Jacobsen">
|
|
<meta name="author" content="B. Milhaupt">
|
|
<meta name="keywords" content=
|
|
"Digitrax DCS Command Station DCS240 java model railroad JMRI install windows">
|
|
<!--#include virtual="/help/en/parts/Style.shtml" -->
|
|
|
|
<style>
|
|
.ctr {
|
|
text-align: center;
|
|
}
|
|
|
|
table {
|
|
border-width: 5px;
|
|
}
|
|
|
|
th {
|
|
border: 1px solid;
|
|
}
|
|
|
|
td {
|
|
border: 1px solid;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!--#include virtual="/help/en/parts/Header.shtml" -->
|
|
|
|
<div id="mBody">
|
|
<!--#include virtual="Sidebar.shtml" -->
|
|
|
|
<div id="mainContent">
|
|
<h1>Hardware Support: Digitrax DCS240</h1>
|
|
|
|
<div class="toc">
|
|
<ul>
|
|
<li>
|
|
<a href="#ConnectingDCS240">Connecting JMRI to a Digitrax DCS240</a>
|
|
<ul>
|
|
<li>
|
|
<a href="#ChooseAMethod">Choosing the configuration method</a>
|
|
<ul>
|
|
<li>
|
|
<a href="#Dcs240Standalone">DCS240 USB interface as a stand-alone decoder
|
|
programmer</a>
|
|
<ul>
|
|
<li>
|
|
<a href="#Dcs240SetupStandAlone">Setup for the DCS240 acting as a
|
|
standalone programmer</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#Dcs240StandaloneHints">DCS240 USB Interface in Standalone
|
|
Programming Mode Usage Hints</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#Dcs240GeneralCmdStn">DCS240 USB interface as a LocoNet Interface</a>
|
|
<ul>
|
|
<li>
|
|
<a href="#Dcs240SetupUsbInterface">Setup for the DCS240 acting as a LocoNet
|
|
interface</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#Dcs240ViaAdapter">DCS240 connected via some other LocoNet
|
|
Interface</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#Dcs240Drivers">DCS240 Drivers</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#SeeAlso">See Also</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<h1 id="ConnectingDCS240">Connecting JMRI to a Digitrax DCS240</h1>
|
|
|
|
<p>Note that the DCS240+ is quite similar to the DCS240, and probably can be used in JMRI
|
|
as if it is equivalent to a DCS240.)
|
|
|
|
<p>JMRI may be connected to the Digitrax DCS240 in any of a wide variety of ways. Since the
|
|
DCS240 has a built-in USB interface, it is possible to simply plug a USB cable into the
|
|
computer and the DCS240, and configure JMRI to suit this connection. It is also possible to
|
|
use another LocoNet interface device, such as a LocoBuffer-USB, Digitrax PR3, or Digitrax
|
|
PR4, to interface a computer to LocoNet, and connect that LocoNet to the DCS240. JMRI does
|
|
not prefer any one connection method over any other method. Choose one which is suitable for
|
|
your needs.</p>
|
|
|
|
<p>If a USB cable is used to connect the JMRI computer to the DCS240's USB connection, JMRI
|
|
may be configured in one of two modes. If the computer will only be used for decoder
|
|
programming, and JMRI will not need access to LocoNet features other than the DCS240
|
|
"programming track", then JMRI may be configured to use a "connection" where the DCS240 USB
|
|
interface is placed into a mode where it acts as a standalone decoder programmer. In this
|
|
mode, JMRI will access the DCS240 dedicated programming track connections. This mimics the
|
|
"standalone programmer" configuration which the PR2 provides, and which the PR3 and PR4 can
|
|
support.</p>
|
|
|
|
<p>Alternately, when JMRI will be used to access LocoNet resources which go beyond simply the
|
|
DCS240 programming track, then JMRI should be configured to act as a general-purpose LocoNet
|
|
interface. The JMRI "connection" should be configured so that the "command station" type
|
|
specifies the type of command station which is being used.</p>
|
|
|
|
<p>If, instead of using the DCS240's integrated USB port, you plan to connect your computer
|
|
to the DCS240 using a LocoNet adapter device, follow the instructions found <a href=
|
|
"Digitrax.shtml#ConnectingAdapter">here</a>.</p>
|
|
|
|
<p>The table below summarizes these possibilities.</p>
|
|
|
|
<table>
|
|
<tr>
|
|
<th rowspan="2">Connection Type</th>
|
|
<th rowspan="2">Usage</th>
|
|
<th colspan="2">Settings in JMRI Connection Profile<</th>
|
|
<th rowspan="2">Instructions</th>
|
|
<th rowspan="2">Available JMRI Capabilities</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="ctr"><strong>System Connection</strong>
|
|
</td>
|
|
<td class="ctr"><strong>JMRI Command Station Type</strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td rowspan="9" class="ctr">USB cable from computer to DCS240 USB connector</td>
|
|
<td rowspan="2" class="ctr">Decoder Programming</td>
|
|
<td rowspan="2" class="ctr">"<em>DCS240 USB Interface</em>"</td>
|
|
<td rowspan="2" class="ctr">"<em>DCS240 Standalone Programmer</em>"</td>
|
|
<td rowspan="2" class="ctr">
|
|
<a href="#Dcs240Standalone">Configuration help</a>
|
|
</td>
|
|
<td>Program decoder CVs on the dedicated programming track</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Operate one loco on the dedicated programming track</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td rowspan="7" class="ctr">LocoNet Interface, Decoder Programming</td>
|
|
<td rowspan="7" class="ctr">"<em>DCS240 USB Interface</em>"</td>
|
|
<td rowspan="7" class="ctr">"<em>DCS240 (Advanced Command Station)</em>"</td>
|
|
<td rowspan="7" class="ctr">
|
|
<a href="#Dcs240GeneralCmdStn">Configuration help</a>
|
|
</td>
|
|
<td>Program decoder CVs on the dedicated programming track and/or the main track</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Control one or more locos on the main track</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Control and monitor LocoNet-connected Switches, Sensors, and Transponding</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Configure some LocoNet devices</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Control or monitor the LocoNet Fast Clock</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Update firmware on some LocoNet devices</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>etc.</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td rowspan="7" class="ctr">LocoNet Interface, Decoder Programming</td>
|
|
<td rowspan="7" class="ctr">Computer Connection to something other than the DCS240 USB
|
|
connector</td>
|
|
<td rowspan="7" class="ctr">Something other than "DCS240 USB Interface"</td>
|
|
<td rowspan="7" class="ctr">"<em>DCS240 (Advanced Command Station)</em>"</td>
|
|
<td rowspan="7" class="ctr">
|
|
<a href="#Dcs240ViaAdapter">Configuration help</a>
|
|
</td>
|
|
<td>Program decoder CVs on the dedicated programming track</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Control one or more locos on the main track</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Control and monitor LocoNet-connected Switches, Sensors, and Transponding</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Configure some LocoNet devices</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Control or monitor the LocoNet Fast Clock</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Update firmware on some LocoNet devices</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>etc.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>Note that it is possible to use the DCS240 in a "booster" mode, and rely upon some other
|
|
command station. If this configuration is used, the "command station" specified for the JMRI
|
|
connection should match the device which is actually acting as the command station.</p>
|
|
|
|
<h2 id="ChooseAMethod">Choosing the configuration method</h2>
|
|
|
|
<p>When setting up a JMRI "connection profile", which "command station" should you use when
|
|
configuring JMRI? That depends on what you intend to do with JMRI.</p>
|
|
|
|
<ul>
|
|
<li>If you will <em>only</em> use JMRI to program decoders on the dedicated programming
|
|
track, then configuring the connection for the "command station" type of "DCS240 Standalone
|
|
Programmer" mode is a good choice. In this mode, JMRI will be able to read and write
|
|
decoder CV values. In this mode, you may also use a JMRI throttle to select and control the
|
|
locomotive on the dedicated programming track, subject to the ability of the DCS240 to
|
|
supply sufficient current to the decoder. JMRI will <em>not</em> be able to access LocoNet
|
|
peripherals and JMRI throttles will <em>not</em> be able to control decoders via the "main
|
|
track".</li>
|
|
|
|
<li>
|
|
<p>If you wish JMRI to be able to control decoders via the DCS240 main track outputs, and
|
|
access LocoNet devices, then configuring the connection for the "command station" type of
|
|
"DCS240 USB Interface" mode is a good choice. In this mode, JMRI is able to control
|
|
decoders connected via the main track outputs and access LocoNet devices. JMRI may also
|
|
perform decoder programming via the dedicated programming track, but JMRI throttles will
|
|
<em>not</em> be able to run decoders which are on the dedicated programming track.</p>
|
|
</li>
|
|
|
|
<li>If you think that both modes may be useful to you, you should consider setting up
|
|
<em>two</em> configuration profiles. Then, when you start JMRI, you may select the
|
|
configuration profile which suits the way you want to use JMRI. And to switch to the other
|
|
mode, you may simply quit JMRI and re-start it, and select the other profile, so that you
|
|
may perform the other type of work.</li>
|
|
</ul>
|
|
|
|
<h3 id="Dcs240Standalone">DCS240 USB interface as a stand-alone decoder programmer</h3>
|
|
|
|
<p><img src="images/DCS240StandaloneProgrammerConnections.png" alt=
|
|
"Typical connections for DCS240 for use as standalone programmer" width="300">
|
|
</p>
|
|
|
|
<p>When the DCS240 USB interface is configured to act as a programmer, it acts upon the
|
|
dedicated programming track via the "programming track" connections on the DCS240. When JMRI
|
|
is properly configured, JMRI can use the DCS240 programming track to access decoder CVs when
|
|
the decoder is connected to the programming track.</p>
|
|
|
|
<p>This JMRI configuration may also be used to download sound information into Digitrax sound
|
|
decoders and, within its limited current capability, run one locomotive to test it. When used
|
|
with Digitrax SFX decoders, "neutral mode" allows you to vary the speed without the motor
|
|
moving the decoder, so you can hear how the locomotive sound reacts to varying speeds.</p>
|
|
|
|
<p>In this mode of operations, JMRI will not have access to LocoNet-based devices.</p>
|
|
|
|
<h4 id="Dcs240SetupStandAlone">Setup for the DCS240 acting as a standalone programmer</h4>
|
|
|
|
<p>To use the DCS240 programming track, connect the DCS240 to its power supply and connect a
|
|
dedicated piece of track which you'll use as the programming track to the DCS240 "programming
|
|
track" terminals. Finally, connect a USB cable between the DCS240 and your computer.</p>
|
|
|
|
<p>To set up JMRI to use the DCS240 via the dedicated decoder programming track mode:</p>
|
|
|
|
<ul>
|
|
<li>Start the program.</li>
|
|
|
|
<li>Open the Preferences window from the Edit menu and configure the connection by:
|
|
<ul>
|
|
<li>For the "<strong>System Connection</strong>" setting, select "DCS240 USB
|
|
Interface"</li>
|
|
|
|
<li>Under "<strong>Serial Port</strong>", select the serial port that's connected to
|
|
the DCS240</li>
|
|
|
|
<li>In the "<strong>Command station type</strong>" option, select the type of command
|
|
station you've got on your LocoNet. Typically, this will be "<code><strong>DCS240 USB
|
|
Interface as standalone programmer</strong></code>".</li>
|
|
|
|
<li>In the advanced settings, the speed will be fixed at 57,600 baud.</li>
|
|
|
|
<li>In the advanced settings, the "Flow Control" option defaults to "Use Hardware Flow
|
|
Control", which is the preferred setting for the DCS240. You should try that first, as
|
|
it is the most reliable mode. Only if you can't reliably program decoders using that
|
|
choice, and only after checking that you're using the right port, should you select
|
|
"None" for this preference and try again.</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>Click Save at the bottom of the preferences window, quit the program and restart.</li>
|
|
</ul>
|
|
|
|
<p>The "connection" preferences should look similar to this image:</p>
|
|
<img src="images/DCS240StandConnProfile.png" alt=
|
|
"Sample configuration profile with DCS240 USB interface as a standalone programmer" width=
|
|
"500">
|
|
<h4 id="Dcs240StandaloneHints">DCS240 USB Interface in Standalone Programming Mode Usage
|
|
Hints</h4>
|
|
|
|
<ul>
|
|
<li>You can use a JMRI throttle to control the locomotive connected to the DCS240
|
|
Programmer track. Use the JMRI Power Control or the "Power" menu item on the Throttle's
|
|
menu bar to turn on track power, and then you can operate the locomotive normally via a
|
|
JMRI throttle.</li>
|
|
|
|
<li>The DCS240 can only provide very limited current to the programming track, so Digitrax
|
|
has built a "neutral mode" into their sound decoders. When JMRI and the DCS240 is running a
|
|
Digitrax sound decoder, the motor is disconnected to reduce the current load. You can still
|
|
ramp the speed up and down with the throttle and listen to how the sound responds, but the
|
|
motor won't move the locomotive.
|
|
<ul>
|
|
<li>To implement that "neutral mode" described above, the DCS240 automatically writes
|
|
CV128 to 0 or 1. This happens when a JMRI throttle is used to run the locomotive on the
|
|
DCS240 programming track, and there's nothing JMRI can do to prevent it. Unfortunately,
|
|
this can interfere with the CV programming on some non-Digitrax decoders. For example,
|
|
it will set the "Master Volume" CV128 on some SoundTraxx decoders to a very low
|
|
volume.</li>
|
|
|
|
<li>If you are working with a decoder that uses CV128 for something, you should either
|
|
not use a JMRI throttle to run the locomotive on the DCS240 programming track, or
|
|
remember to rewrite CV128 with the right value just before removing the locomotive from
|
|
the track.</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>Other decoders, including decoders from other manufacturers, may draw enough motor
|
|
current to trip the DCS240 internal circuit breakers. This will cause JMRI to mark track
|
|
power as "off". Just wait a couple seconds and turn the track power back on to
|
|
recover.</li>
|
|
|
|
<li>It is possible run trains via LocoNet-based throttles when JMRI is programming a
|
|
decoder on the DCS240 programming track.</li>
|
|
</ul>
|
|
|
|
<h3 id="Dcs240GeneralCmdStn">DCS240 USB interface as a LocoNetInterface</h3>
|
|
|
|
<p><img src="images/DCS240LocoNetInterfaceConnections.png" alt=
|
|
"Typical connections for DCS240 acting as a LocoNet interface" width="300">
|
|
</p>
|
|
|
|
<p>When acting as an interface, the DCS240 USB connection allows JMRI to interact with
|
|
devices connected to LocoNet. This includes programming decoders on a programming track
|
|
attached to a LocoNet command station. Where the LocoNet command station supports
|
|
"programming on the main", JMRI is able to make use of that feature.</p>
|
|
|
|
<h4 id="Dcs240SetupUsbInterface">Setup for the DCS240 acting as a LocoNet interface</h4>
|
|
|
|
<p>To use the DCS240 USB connection as a LocoNet interface, connect a LocoNet cable to a
|
|
LocoNet connector on the DCS240. Connect an appropriate power supply to the DCS240, per the
|
|
Digitrax instructions for the DCS240. The DCS240 USB interface will not be able to
|
|
communicate with LocoNet unless the DCS240 is properly powered. Finally, connect an
|
|
appropriate USB cable between the DCS240 USB connector and your computer.</p>
|
|
|
|
<p>To set up a JMRI application to use the DCS240 as an interface to a LocoNet which includes
|
|
a LocoNet command station:</p>
|
|
|
|
<ul>
|
|
<li>Start the program.</li>
|
|
|
|
<li>Open the Preferences window from the Edit menu and configure the connection by:
|
|
<ul>
|
|
<li>For the "<strong>System Connection</strong>" setting, select "DCS240 USB
|
|
Interface"</li>
|
|
|
|
<li>Under "<strong>Serial Port</strong>", select the serial port that's connected to
|
|
the DCS240</li>
|
|
|
|
<li>In the "<strong>Command station type</strong>" option, select the type of command
|
|
station you've got on your LocoNet. Typically, this will be "<code><strong>DCS240
|
|
(Advanced)</strong></code>", but, if you have configured your DCS240 to act only as a
|
|
booster, you should select the command station option which matches the active command
|
|
station.</li>
|
|
|
|
<li>In the advanced settings, the speed will be fixed at 57,600 baud.</li>
|
|
|
|
<li>In the advanced settings, the "Flow Control" option defaults to "Use Hardware Flow
|
|
Control", which is the preferred setting for the DCS240. You should try that first, as
|
|
it is the most reliable mode. Only if you can't reliably program decoders using that
|
|
choice, and only after checking that you're using the right port, should you select
|
|
"None" for this preference and try again.</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>Click Save at the bottom of the preferences window, quit the program and restart.</li>
|
|
</ul>
|
|
|
|
<p>The "connection" preferences should look similar to this image:</p>
|
|
<img src="images/DCS240LocoNetInterfaceConnProfile.png" alt=
|
|
"Sample configuration profile with DCS240 USB interface as a LocoNet interface" width="500">
|
|
<h3 id="Dcs240ViaAdapter">DCS240 connected via some other LocoNet Interface</h3>
|
|
|
|
<p><img src="images/DCS240LocoNetInterfaceViaAdapter.png" alt=
|
|
"Typical connections for DCS240 when connected to computer via a LocoNet Interface Adapter"
|
|
width="300">
|
|
</p>
|
|
|
|
<p>JMRI may connect to the LocoNet via a LocoNet interface other than the DCS240 USB
|
|
connector. When connected in this fashion, <a href="Digitrax.shtml#ConnectingAdapter">these
|
|
general instructions</a>, or, where available, the JMRI documentation associated with the
|
|
LocoNet interface which is being used.</p>
|
|
|
|
<h2 id="Dcs240Drivers">DCS240 Drivers</h2>
|
|
The DCS240 USB interface needs to have a driver installed when used with any Microsoft
|
|
Windows Operating System. See the Digitrax <a href=
|
|
"https://www.digitrax.com/downloads/">"Downloads"</a> page for drivers. At the time this help
|
|
page was written, Digitrax provides Windows drivers for the PR3 device. Those drivers are
|
|
suitable for use with the DCS240 USB interface. Make sure to follow any instructions,
|
|
particularly any instructions about the order of installing the drivers and plugging in the
|
|
device.
|
|
<p>You don't need to install a separate driver when using current versions of Mac OS X or
|
|
Linux.</p>
|
|
|
|
<p>If you choose to use JMRI with some other interface than the DCS240's integrated USB
|
|
connector, the driver requirements for the DCS240 do not apply for JMRI purposes, but
|
|
other driver requirements <em>may</em> apply</p>
|
|
|
|
<h1 id="SeeAlso">See Also</h1>
|
|
|
|
<ul>
|
|
<li>
|
|
<a href="Digitrax.shtml">JMRI's general Digitrax support page</a>
|
|
</li>
|
|
|
|
<li>The JMRI <a href="../../apps/DecoderPro/Roster.shtml">Rosters</a> page.
|
|
</li>
|
|
|
|
<li>The JMRI <a href="CommandStationConfig.shtml">Command Station Configuration</a> page
|
|
describes how to configure command station OpSw settings.
|
|
</li>
|
|
|
|
<li>For more information on the DCS240 itself, please consult the Digitrax website:
|
|
<ul>
|
|
<li>The Digitrax <a href=
|
|
"https://www.digitrax.com/products/retired/command-stations-boosters/dcs240/">DCS240</a> product
|
|
page.
|
|
</li>
|
|
|
|
<li>The Digitrax <a href="https://www.digitrax.com/tsd/product/DCS240/">DCS240
|
|
Support</a> page.
|
|
</li>
|
|
|
|
<li>Drivers for Windows-based machines may be found at the Digitrax <a href=
|
|
"https://www.digitrax.com/downloads/">Downloads</a> page. Note: Use the Digitrax PR3
|
|
drivers when connecting via the DCS240 USB interface.
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
<p>LocoNet® is a registered trademark of <a href="https://www.digitrax.com">Digitrax,
|
|
Inc.</a></p>
|
|
<!--#include virtual="/help/en/parts/Footer.shtml" -->
|
|
</div>
|
|
<!-- closes #mainContent-->
|
|
</div>
|
|
<!-- closes #mBody-->
|
|
<script src="/js/help.js"></script>
|
|
</body>
|
|
</html>
|