-
Notifications
You must be signed in to change notification settings - Fork 331
/
MigrateSystemPrefixes.shtml
125 lines (112 loc) · 5.57 KB
/
MigrateSystemPrefixes.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>JMRI Setup - Migrating System Prefixes</title>
<meta name="keywords" content=
"java model railroad JMRI install Dropbox">
<!-- 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.shtml" -->
<div id="mBody">
<!--#include virtual="Sidebar.shtml" -->
<div id="mainContent">
<!-- Page Body -->
<h1>JMRI Setup: Migrating System Prefixes</h1>
<a href="../doc/Technical/Names.shtml">JMRI system names</a>
are supposed to have a
<a href="../doc/Technical/Names.shtml#format">specific format</a>
that starts with a "system prefix" consisting of a single
letter, optionally followed by digits.
Unfortunately, for a while JMRI wasn't enforcing that properly, and
in a few cases JMRI set itself up with prefixes that contained
multiple letters. This can cause significant
long term problems, so we're getting people to migrate their
configurations and panel files to the proper format.
<h2 id="if">Does this affect me?</h2>
You can check if this is an issue for your setup any of a couple ways:
<ul>
<li>Open the Preferences, and look at each of the "Connection" panes. If the connection prefix
has a letter or a single letter plus digits, this doesn't affect you.
If it has more than a single letter, you should do this migration.
(With
<a href="/releasenotes/jmri4.13.4.shtml">JMRI 4.13.4</a>
or later, the background will be colored red
and the tooltip will say "This is a legacy prefix that should be migrated, ask on JMRIusers"
if the prefix needs to be migrated)
<li>Check the system log after running and quiting the program to see if there's a
warning message about "The following system names need to be migrated..."
If it's there, you should do this migration.
</ul>
<h2 id="do">How to fix the issue</h2>
To fix this issue, you update your configuration and panel files to
use new prefixes.
<p>
If you encounter any problems, please
ask for help on the
<a href="https://groups.io/g/jmriusers">JMRI users group</a>.
There are people there who will happily do the necessary file modifications.
If your computer is connected to the Internet, you can upload your configuration as
described on
<a href="../../package/jmri/jmrit/mailreport/Report.shtml">this page</a>.
This will make it easy for the people on jmriusers
see exactly what's needed.
<ul>
<li>First, you should be using
<a href="/releasenotes/jmri4.12.shtml">JMRI 4.12</a>
or later. If you're using an earlier
version, please update to at least
<a href="/releasenotes/jmri4.12.shtml">JMRI 4.12</a>
and fix any problems.
<li>Next, determine the new prefix for your connection:
<ul>
<li>DCCPP for DCC++ should be changed to D
<li>DP for DCC4PC should be changed to D
<li>DX for Anya DX should be changed to D
<li>MC for Marklin CS2 should be changed to M
<li>MR for MRC should be changed to M
<li>PI for Raspberry Pi should be changed to P
<li>TM for TMCC should be changed to T
</ul>
However, if you already have a connection with that
letter, you'll need to pick another one. The letter
is arbitrary, so just pick one that makes sense to you.
<li>Take a backup of all your files. Maybe more than one.
And make sure that they're usable in case you need to restore
from them!
<li>Take all your panel files, and edit them to change the prefix
of all the references. To help with this, the last time
you run JMRI, it put a list of reference names in the log near the end,
and a similar "legacy_bean_names.csv" file was written to your user files directory.
You can search for each of those reference names in turn and change it to the new prefix.
<li>Start JMRI, open the Preferences to the Connection pane,
change your connection prefix, Save and Restart.
</ul>
<h2 id="not">What happens if I don't make this change?</h2>
If you don't make this change, your existing JMRI installation will keep working fine.
<p>
If/when you update to newer versions of JMRI:
<ul>
<li>When you update to JMRI 4.15.3 or later, you'll start getting prompts
about fixing this every time you start JMRI.
<li>If you update to JMRI 4.17.1 or later (summer 2019)
without fixing this, you won't be able to use your
existing configuration or panel files.
</ul>
We're sorry for this inconvenience, but we really do have to fix this.
Giving people over 18 months lead time seems sufficient.
<!--#include virtual="/Footer.shtml" -->
</div><!-- closes #mainContent-->
</div><!-- closes #mBody-->
</body>
</html>