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
For Manual Driving Loc Driver Cab Dialog is avaliable. This this Dialog a Locomotive can be controlled. Functions can be switched. Multipel dialog can be show simultanously.
9
+
The Locomotive Driver can be opened by double clicking on the locomotive of choice in locomotive list.
10
+
11
+

12
+
13
+
### Driver Cab
14
+
15
+

16
+
17
+
### Accessory Switching
18
+
19
+
Click in the toolbar on the "switch" button to show Accessory Keyboard
When the __Always Stop__ checkbox is checked, a locomotive will stop and wait for the specified waiting time be for starting a new cycle. The Min. Wait Time is used in case the __Random Wait__ is not selected.
36
+
37
+
When the __Random Wait__ checkbox is checked a random time between the min and max wait time is used when a locomtive stops in the block.
38
+
39
+

40
+
41
+
When this pysical direction of the locomotive is different, it can be changed by either using:
42
+
43
+
- Reverse Arrival side
44
+
- Toggle Direction
45
+
46
+
By Right clicking on the block these menu options are available.
The JCS AutoPilot is the automatic driving Algorithm within JCS.
53
+
AutoPilot is enabled by clicking the __*Pilot*__ button.
54
+
Every locomotive on track is assigned a Dispatcher. whic can be viewd in the Dispatcher List.
55
+
56
+

57
+
58
+
A Locomotive can by started by right click via the Block Menu or Start All by clicking on the __Cruise Control__ button.
59
+
60
+
When Auto drive start the Status of the dispatche is shown in the Dispatche list. Also the layou screen will show what is happening by shoing reserved routes and Block States.
Copy file name to clipboardExpand all lines: JCS_SETUP.md
+41-16Lines changed: 41 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,13 @@
3
3
***
4
4
5
5
## Get Started driving your Trains automatically
6
+
6
7
This guide explains how to configure JCS for a layout and automatically run trains.
7
8
For the purpose of this guide the following Layout is used.
8
9

9
10
10
11
This layout consist out of 4 blocks and 2 switches.
11
-
Every block has 2 sensors, in total there are 8 sensors used.
12
+
Every block has 2 sensors, in total there are 8 sensors used.
12
13
What is a Block? A block is a part of track where one train can be without hindering other routes. In JCS a block is always demarcated by two sensors.
13
14
14
15
## Drawing the Layout
@@ -24,13 +25,20 @@ Use the __+__ button to add a tile on the canvas. The Bin button will delete a t
24
25
Rightclick on a tile to see properties or rotate or flip if applicable.
25
26
When a tile is selected it can be dragged to the right position. Tiles are automatically saved. The example looks like this when all tiles are placed on the canvas.
26
27
27
-

28
+

29
+
30
+
## Pysical vs schematic Layout
28
31
29
-
## Configuring Accessories and Sensors
32
+
The below picure shows the physical layout side by side with the schematic layout.
The next step is to configure the Accessories and Sensors.
32
-
Accessories Sensore and locomotive are alway linked to a Command Station.
38
+
Accessories, Sensors and Locomotives are always linked to a Command Station.
39
+
33
40
#### Step 1 selecting the Default Command Station
41
+
34
42
For this guide the [DCC-EX](https://dcc-ex.com) Command Station is used. Feedback via [DCC-EX](https://dcc-ex.com) is not yet supported, see [issue 59](https://github.com/fransjacobs/model-railway/issues/59), hence the [HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb) is used for Sensor feedback.
35
43
Use the cog button or via Menu -> Tools Command Stations to show the Command Station Dialog.
36
44
@@ -43,17 +51,20 @@ Set the [DCC-EX](https://dcc-ex.com) Command Station as __Default__ and __Enable
43
51
The Test Button can be used to check whether the connection can be established.
44
52
45
53
##### Setup the Feedback module(s)
54
+
46
55
In the Command Station Dialog select the [HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb) in the Command Stations dropdown menu.
Do __*NOT*__ set the [HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb) as *Default*, as the default Command Station is supposed to put the power on the Track. However set the [HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb)__Enabled__.
59
+
Do __*NOT*__ set the [HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb) as *Default*, as the default Command Station is supposed to put the power on the Track.
60
+
However set the [HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb)__Enabled__. The [HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb) is connected via the "ttyACM1" port.
51
61
52
62
For the Feedback Interface like the [HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb) the number of connected S88 modules has to be specified. Set the Channel to which the S88 module(s) is/are connected and the number of Modules.
53
63
In this case one S88 module, connected to Channel 0 is used.
54
64
Click on __*Re-create Sensors*__ button to create the sensors in the system.
55
65
56
-
### Step 2 create Accessories
66
+
### Step 2 create Accessories
67
+
57
68
The Test track has two turnouts which can be added using the Accessory Dialog. This Dialog can be opened via Settings (Mac) or Menu -> Tools -> Options.
58
69
To Add a new Accessory click on the __+__ button. For a Turnout choose the right Turnout type in the __*Type*__ dropdown menu.
59
70
@@ -62,11 +73,12 @@ To Add a new Accessory click on the __+__ button. For a Turnout choose the right
62
73
To save the Accessory click the Save Button. When save the Accessory will appear in the list on the left side. This List can be filtered using the 3 radio buttons on top (All, Turnouts, Signals).
63
74
64
75
### Step 3 add Locomotives
76
+
65
77
As we are in the options Dialog let's also add the Locomotives. In this Example two locomotives used. For both locomotives an icon is already put in a subdirectory .../jcs/images.
66
78
67
79

68
80
69
-
Locomotives can only commute back and forth, hence the __Commuter__ check box is selected for both locomotives. If the __Commuter__ checkbox not selected the Locomotice can __*NOT*__ change direction in Automatic mode.
81
+
Locomotives can only commute back and forth, hence the __Commuter__ check box is selected for both locomotives. If the __Commuter__ checkbox not selected the Locomotice can __*NOT*__ change direction in Automatic mode.
70
82
71
83
### Step 4 Link sensors to their graphical representation
72
84
@@ -90,22 +102,35 @@ The Sensor Monitor will appear. When the sensor is activated (pre condition is t
90
102
91
103
Select the Sensor with the right name in Sensor Properties dialog. Repeat this for all sensors in the layout.
92
104
93
-
### Step 5 Trace the layout
105
+
### Step 5 Link Accessories to the pycisl ones
106
+
107
+
Like the Sensor also accessories __must__ be linke to their pysical counterpart.
108
+
Right click on the Accessory and select properties.
109
+
110
+

111
+
112
+
### Step 6 Trace the layout
113
+
94
114
Trace the layout. This will generate all the driveways from block to block. Click on the __*Trace*__ button.
95
115
96
-

116
+

97
117
98
118
Left of the Main JCS Window the Routes Dialog will Appear.
99
119
Click in the __*Trace*__ Button in the *Routes Dialog* to generate all possible routes.
100
120
101
-

121
+

102
122
103
123
When a route is selected in the list it is displayed in the main screen.
104
124
105
-
### Step 6 Configure the Blocks
106
-
Configure the Block properties.
107
-
First Restart JCS. This is due to a [known issue 78](https://github.com/fransjacobs/model-railway/issues/78).
125
+
### Step 7 Configure the Blocks
126
+
127
+
Configure the Block properties. For every Block a name __must__ be filled in. Sensors must be linked to a block. The side of the Block with the __Bold__ line is the __+__ (plus) side of the Block. The Sensors can be automatically linked by using the __*Auto Link*__ Button.
128
+
Notice: when the Sensors do not link to the block, the sensors are usually not linked to a pysical sensor.
129
+
130
+

131
+
132
+
After all these settings are done a restart of JCS is strongly advised.
108
133
109
-
The Sensors must be linked to a block. The side of the Block with the __Bold__ line is the __+__ (plus) side of the Block. The Sensor can be automatically linked.
JCS is a hobby project of me where I try to automate my Model Railway. The past year I have on and off worked on several aspects or modules of the software whic are needed to finally drive automatically. A short summary of the topics which are needed and used to finally be able to drive a train automatically:
14
-
- Connectivety to the Command Station hardware. (DCC-EX,HSI-S88, Marklin CS2/3)
12
+
## About the Project
13
+
14
+
JCS is a hobby project of me where I try to automate my Model Railway. Over the past years I have worked on and off on several aspects and modules of the software which are needed to drive automatically.
15
+
A short summary of the topics which are needed and used to be able to drive trains automatically:
16
+
17
+
- Connectivity to the Command Station hardware. (DCC-EX,HSI-S88, Marklin CS2/3)
15
18
- Edit and display graphically a layout
16
19
- With the layout be able to route all the possible drive ways
17
20
- Show the routes and driveways in the layout screen
@@ -24,6 +27,7 @@ JCS is a hobby project of me where I try to automate my Model Railway. The past
24
27
I created a [short video](https://youtu.be/xP6eUdScMY0) demonstrating automatic running of locomotives. Also a [video of pysical locomotives running on the Test Layout](https://www.youtube.com/watch?v=CyLmGk6gfHA)
25
28
26
29
## Why?
30
+
27
31
There are already many "out of the box" working products. I wanted to create my own to learn and to have FUN!
28
32
29
33
As I am a great supporter of Open Source I have put the project on github with the purpose for others to use it, learn from it, or improve it.
@@ -32,15 +36,24 @@ So I hope you get inspired!
32
36
33
37
Frans
34
38
39
+
## Guides
40
+
41
+
- Setup : [JCS_SETUP](JCS_SETUP.md)
42
+
- Driving : [DRIVING](DRIVING.md)
43
+
35
44
## Screenshots
45
+
36
46
So here are a few screenshots of the Project:
37
-
#### Thottle / Driver Cab
47
+
48
+
### Thottle / Driver Cab
49
+
38
50
The Locomotive- and function images are displayed. Images are automatically downloaded from the Central Station.
*[HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb) or the [DIY version](https://mobatron.4lima.de/2020/05/s88-scanner-mit-arduino) for feedback
83
+
84
+
-[DCC-EX](https://dcc-ex.com) can be connected either via serial port or network
-[HSI-S88](https://www.ldt-infocenter.com/dokuwiki/doku.php?id=en:hsi-88-usb) or the [DIY version](https://mobatron.4lima.de/2020/05/s88-scanner-mit-arduino) for feedback
71
88
72
89
## Current status
90
+
73
91
Currently the following feature are in development:
74
-
* Internationalization enable multiple languages
75
-
* Add support for ESU ECOS
76
-
* Show Signal aspects in automatic driving
77
-
* Document
78
-
79
-
## TODO's (and there are still a lots of todo's...):
80
-
Currently the following features are under active development:
81
-
* Documentation
82
-
* Enhance GUI
83
-
* Add more Unit tests
84
-
* ...
92
+
93
+
- Documentation
94
+
- Internationalization enable multiple languages
95
+
- Add support for ESU ECOS
96
+
- Show Signal aspects in automatic driving
97
+
- Enhance GUI
98
+
- Add more Unit tests
99
+
- ...
85
100
86
101
## License
102
+
87
103
[LICENSE](LICENSE.md)
88
104
89
105
## Build JCS from source
106
+
90
107
[BUILDING](BUILDING.md)
91
108
92
109
## Contributors
@@ -105,7 +122,7 @@ Currently the following features are under active development:
105
122
</tr>
106
123
</table>
107
124
108
-
** Copyright 2019 - 2024 Frans Jacobs**
125
+
##Copyright 2019 - 2024 Frans Jacobs
109
126
110
127
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
111
128
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
0 commit comments