/
index.shtml
193 lines (144 loc) · 6.7 KB
/
index.shtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta name="generator" content=
"HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 15.17), see www.w3.org">
<title>JMRI Hardware Support - CAN Network</title><!-- Style -->
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
<link rel="stylesheet" type="text/css" href="/css/default.css"
media="screen">
<link rel="stylesheet" type="text/css" href="/css/print.css"
media="print">
<link rel="icon" href="/images/jmri.ico" type="image/png">
<link rel="home" title="Home" href="/"><!-- /Style -->
</head>
<body>
<!--#include virtual="/Header" -->
<div class="nomenu" id="mBody">
<div id="mainContent">
<h1>Hardware Support: CAN Network</h1>
<ul class="snav">
<!-- TOC -->
<li><a href="#hardware">Hardware</a></li>
<li><a href="#connect">Connecting</a></li>
<li><a href="#tools">JMRI CAN Tools</a></li>
<li><a href="#documentation">Documentation</a></li>
</ul>
<p>There's an emerging trend to develop model-railroad
control systems that are based on standard CAN network
technology. JMRI provides support for the development and use
of these. Two initial efforts are described below.</p>
<h2>CAN Implementations</h2><img src=
"http://www.openlcb.org/trunk/web/logo-ajs-dph.png" align=
"right" alt="OpenLCB logo" height="43" width="104">
<h3><a href="../openlcb/index.shtml">OpenLCB</a></h3>
<p>OpenLCB is a group of hobbyists and manufacturers who have
come together to produce a future-oriented layout control
bus, also called <a href=
"http://openlcb.org">OpenLCB</a>.<br>
JMRI includes <a href="../openlcb/index.shtml">basic support
for OpenLCB</a>, and more is being developed along with
OpenLCB itself.</p><img src=
"http://www.nmra.org/common/nmra_logo.jpg" align="right" alt=
"NMRA logo" height="45" width="55">
<p>The <a href="http://www.nmra.org">NMRA</a> has <a href=
"http://www.nmra.org/news/proposed-standard-layout-command-control-lcc-published-comments#">
decided</a> to adopt OpenLCB and standardize it as <a href=
"http://www.nmra.org/index-nmra-standards-and-recommended-practices#node-171">
Layout Command Control (LCC, formerly
NMRAnet)</a>.</p><img src=
"http://www.merg.org.uk/merg_images/merg_logo.png" align=
"right" alt="MERG logo" height="45" width="100">
<h3><a href="cbus/index.shtml">MERG CBUS</a></h3>
<p>A group of hobbyists, under the umbrella of the Model
Electronic Railway Group (<a href=
"http://www.merg.org.uk/">MERG</a>), are developing a layout
control bus called CBUS. They are creating <a href=
"http://www.merg.org.uk/merg_resources/cbus.php">extensive
documentation</a>.<br>
JMRI includes <a href="cbus/index.shtml">basic support for
CBUS</a>, and more is being developed along with CBUS
itself.</p><a name="hardware" id="hardware"></a>
<h2>Supported Hardware</h2>
<h3>Computer Interfaces</h3>
<p>Various CAN-USB adapters are available:</p>
<dl>
<dt>TCH Technology</dt>
<dd><a href=
"http://www.tchtechnology.com/products/can_usb/">TCH
Technology CAN/USB</a> which provides a high-speed
connection for model railroad use</dd>
<dt>grid connect</dt>
<dd><a href=
"http://www.gridconnect.com/canboandto.html">GridConnect</a>
CAN_RS, which is also the protocol used by the MERG CAN_RS
board</dd>
<dt>lawicell</dt>
<dd><a href="http://canusb.com/">LAWICEL AB</a> CANUSB and
CAN232 adapters.</dd>
</dl><a name="connect" id="connect"></a>
<h2>Connecting</h2>
<p>JMRI can provide the usual Sensor and Turnout features,
once configured for <a href=
"../openlcb/index.shtml">OpenLCB</a> or <a href=
"cbus/index.shtml">CBUS</a> "Events".</p>
<p>JMRI can connect to CAN networks in several ways:</p>
<h3>Via USB</h3>
<p>To use any of the above Adapters, select the appropriate
device/connection type in the JMRI Preferences. If using a
GridConnect or Lawicel device, be sure to set the appropriate
baud rate under Advanced Preferences.<br>
The TCH Technology adapter does this automatically, so no
setting is required.</p>
<h3>TCP/IP Network</h3>
<p>It's also possible to attach via a TCP/IP connection
(EtherNet or WiFi). This can either go to another JMRI
instance running e.g. an OpenLCB hub, or directly to an
IP-CAN adapter. To configure one of these, open the
Connections tab in the JMRI Preferences and:</p>
<ul>
<li>Select as System Manufacturer "OpenLCB"</li>
<li>For System Connection, select "CAN via GridConnect
Network Interface"</li>
<li>Under settings, enter the IP address and TCP/UDP port
for the destination.
<p>OpenLCB CAN Adapters advertise under mDNS/Bonjour, so
you can use that to specify the IP address if JMRI is on
the same network segment as your adapter. In that case,
put "openlcbcan.local." (note trailing period!) in the IP
address field.</p>
<p>The port number for OpenLCB adapters is 23 by
default.</p>
</li>
<li>Set the connection protocol as desired, e.g. "OpenLCB",
the Connection Prefix (usually "M") and Connection Name as
needed.</li>
<li>Click Save, and restart.</li>
</ul><a name="tools" id="tools"></a>
<h2>JMRI CAN Tools</h2>
<ul>
<li>JMRI provides a basic <a href=
"../../../package/jmri/jmrix/AbstractMonFrame.shtml">Monitor
tool</a> for watching traffic on a CAN bus.</li>
<li>There's also a <a href=
"../../../package/jmri/jmrix/can/swing/send/CanSendFrame.shtml">
Send Frame tool</a> for sending CAN frames manually and in
sequences.</li>
<li>For development, there are <a href=
"scripting.shtml">CAN Scripting tools</a> for sending and
receiving CAN frames. These can be very useful in testing
hardware, etc.</li>
</ul><a name="documentation" id="documentation"></a>
<h2>Documentation</h2>
<h3>JMRI Help</h3>
<p><a href="../openlcb/index.shtml">OpenLCB</a> Help</p>
<p><a href="cbus/index.shtml">CBUS</a> Help</p>
<h3>Third Party info</h3>
<p><a href="http://www.openlcb.org">OpenLCB.org</a></p>
<!--#include virtual="/Footer" -->
</div><!-- closes #mainContent-->
</div><!-- closes #mBody-->
</body>
</html>