<
From version < 17.1 >
edited by nbw
on 2014/07/18 11:26
To version < 12.1 >
edited by Alexander Schulz-Rosengarten
on 2014/07/14 16:27
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.nbw
1 +XWiki.als
Content
... ... @@ -34,17 +34,15 @@
34 34  * **trainCount** - an integer with the number of active trains on the railway
35 35  * **trains** - a JSON Array with the data of all trains, each entry is a JSON Object with these values\\
36 36  ** **trainNum** - the individual controller number of the train
37 -** --**waiting** - boolean value, true if the train is waiting in a station, false otherwise --
38 -** **{{status colour="Red" title="Removed"/}}waitTime** - (integer) remaining milliseconds until departure (0 if not waiting) 
39 -** **{{status colour="Yellow" title="changed"/}}spdSlow** - the integer PWM value of this train while driving slow
37 +** **waiting** - boolean value, true if the train is waiting in a station, false otherwise 
38 +** **{{status colour="Green" title="NEW"/}}waitTime** - (integer) timestamp, when the train is allowed to depart, should only be interpreted if **waiting** is true 
39 +** **{{status colour="Green" title="NEW"/}}spdSlow** - the integer PWM value of this train while driving slow
40 40  ** **spdCaution** - the integer PWM value of this train while driving caution
41 41  ** **spdNormal** - the integer PWM value of this train while driving normally
42 42  ** **currentIndex** -an integer describing the current position in the schedule
43 43  ** (((
44 -**schedule** - a JSON Array of integer values, representing the station tracks, encoded in the following fashion
44 +**schedule** - a JSON Array of integer values, representing the station tracks, encoded in the following fashion
45 45  
46 -{{status colour="Yellow" title="CHANGED"/}}
47 -
48 48  |=(((
49 49  Number
50 50  )))|=(((
... ... @@ -67,75 +67,75 @@
67 67  Track
68 68  )))
69 69  |(((
70 -9
68 +1
71 71  )))|(((
72 72  KH_ST_1
73 73  )))|(% colspan="1" %)(% colspan="1" %)
74 74  (((
75 -17
73 +6
76 76  )))|(% colspan="1" %)(% colspan="1" %)
77 77  (((
78 78  KH_ST_1 (reverse)
79 79  )))|(((
80 -25
78 +11
81 81  )))|(((
82 -IC_ST_1
80 +IC_ST_3
83 83  )))|(% colspan="1" %)(% colspan="1" %)
84 84  (((
85 -33
83 +14
86 86  )))|(% colspan="1" %)(% colspan="1" %)
87 87  (((
88 -OC_ST_1
86 +OC_ST_3
89 89  )))
90 90  |(((
91 -10
89 +2
92 92  )))|(((
93 93  KH_ST_2
94 94  )))|(% colspan="1" %)(% colspan="1" %)
95 95  (((
96 -18
94 +7
97 97  )))|(% colspan="1" %)(% colspan="1" %)
98 98  (((
99 99  KH_ST_2 (reverse)
100 100  )))|(((
101 -26
99 +12
102 102  )))|(((
103 103  IC_ST_2
104 104  )))|(% colspan="1" %)(% colspan="1" %)
105 105  (((
106 -34
104 +15
107 107  )))|(% colspan="1" %)(% colspan="1" %)
108 108  (((
109 109  OC_ST_2
110 110  )))
111 111  |(((
112 -11
110 +3
113 113  )))|(((
114 114  KH_ST_3
115 115  )))|(% colspan="1" %)(% colspan="1" %)
116 116  (((
117 -19
115 +8
118 118  )))|(% colspan="1" %)(% colspan="1" %)
119 119  (((
120 120  KH_ST_3 (reverse)
121 121  )))|(((
122 -27
120 +13
123 123  )))|(((
124 -IC_ST_3
122 +IC_ST_1
125 125  )))|(% colspan="1" %)(% colspan="1" %)
126 126  (((
127 -35
125 +16
128 128  )))|(% colspan="1" %)(% colspan="1" %)
129 129  (((
130 -OC_ST_3
128 +OC_ST_1
131 131  )))
132 132  |(((
133 -12
131 +4
134 134  )))|(((
135 135  KH_ST_4
136 136  )))|(% colspan="1" %)(% colspan="1" %)
137 137  (((
138 -20
136 +9
139 139  )))|(% colspan="1" %)(% colspan="1" %)
140 140  (((
141 141  KH_ST_4 (reverse)
... ... @@ -151,12 +151,12 @@
151 151  
152 152  )))
153 153  |(((
154 -13
152 +5
155 155  )))|(((
156 156  KH_ST_5
157 157  )))|(% colspan="1" %)(% colspan="1" %)
158 158  (((
159 -21
157 +10
160 160  )))|(% colspan="1" %)(% colspan="1" %)
161 161  (((
162 162  KH_ST_5 (reverse)
... ... @@ -173,14 +173,8 @@
173 173  )))
174 174  )))
175 175  * **locks** - a JSON Array containing the current value of the track permissions, ordered by the default encoding (Hoermann API)
176 -* **tickTime** - Time consumption of tick function. 3 element array [min,avg,max].
177 -* **overallTime** -  Time consumption of overall controller loop. 3 element array [min,avg,max].
178 178  
179 -
180 -
181 181  {{code title="Sample status" language="js" collapse="true"}}
182 -<<OUTDATED>>
183 -
184 184  {"msgType":"status",
185 185   "data":{
186 186   "debug":false,
... ... @@ -204,7 +204,7 @@
204 204  
205 205  === Valid commands ===
206 206  
207 -* //STATUS// - Poll for the current status, should trigger a status reply message
199 +* //STATUS// - Poll for the current status, should trigger a status reply message\\
208 208  * //SHUTDOWN// - Causing the controller to end the program and close all sockets
209 209  * //LOGOUT// - Closing the connection, leaving the controller running
210 210  * //PAUSE// - suspend or resume the controller, must supply additional payload
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -9471580
1 +9471544
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/SS14Railway/pages/9471580/TCP Communication
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/SS14Railway/pages/9471544/TCP Communication