<
From version < 38.1 >
edited by Alexander Schulz-Rosengarten
on 2014/08/18 11:57
To version < 32.1 >
edited by csp
on 2014/08/05 11:29
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.als
1 +XWiki.csp
Content
... ... @@ -2,6 +2,10 @@
2 2  
3 3  {{toc/}}
4 4  
5 +
6 +
7 +{{status colour="Red" title="Work in progress - Might bE subject to change"/}}
8 +
5 5  Both the controller and the client GUI send their data as JSON Objects.
6 6  In JSON every Object is an unordered set of key/value pairs. The values of these pairs can be a JSON Object, a JSON Array or a primitive value (integer, string, boolean or null).
7 7  For more information or a complete grammar see [[http:~~/~~/www.json.org/>>url:http://www.json.org/||shape="rect"]].
... ... @@ -28,7 +28,7 @@
28 28  * **pause** - true while the controller is paused, false otherwise
29 29  * **trainCount** - an integer with the number of active trains on the railway
30 30  * **trains** - a JSON Array with the data of all trains, each entry is a JSON Object with these values
31 -** **state** - integer value for current train state (0 = travelling, 1 = waiting, 2 = travelling until next station, 3 = forced wait, 4 = no schedule)
35 +** **state** - integer value for current train state (0 = travelling, 1 = waiting, 2 = travelling until next station, 3 = forced wait)
32 32  ** **waitTime** - (integer) remaining milliseconds until departure (0 if not waiting)
33 33  ** **spdSlow** - the integer PWM value of this train while driving slow
34 34  ** **spdCaution** - the integer PWM value of this train while driving caution
... ... @@ -166,9 +166,11 @@
166 166  )))
167 167  )))
168 168  * **locks** - a JSON Array containing the current value of the track permissions, ordered by the default encoding (Hoermann API)
169 -**tickTime** - Time consumption of tick function in milliseconds. 3 element double-array [min,avg,max]. 
170 -**overallTime** -  Time consumption of overall controller loop in milliseconds. 3 element double-array [min,avg,max].
173 +* **tickTime** - Time consumption of tick function in milliseconds. 3 element double-array [min,avg,max]. 
174 +* **{{status colour="Yellow" title="CHaNGED"/}}overallTime** -  Time consumption of overall controller loop in milliseconds. 3 element double-array [min,avg,max]. 
171 171  
176 +{{status colour="Yellow" title="CHaNGED"/}}
177 +
172 172  
173 173  
174 174  {{code title="Sample status" language="js" collapse="true"}}
... ... @@ -198,10 +198,8 @@
198 198  
199 199  == Messages received by controller ==
200 200  
201 -* Every message must contain the keys **command **and **data**.
202 -* Valid values for **command **are the following uppercase commands.
203 -* Depending on the command, the **data**-object contains the described infos.
204 -** If a command doesn't require any additional information, the data-object may be omitted or empty.
207 +* Every message must contain the key **command**.
208 +* Depending on the command, additional keys might be required.
205 205  
206 206  === Valid commands ===
207 207  
... ... @@ -213,8 +213,6 @@
213 213  * //CLEANUP// - Start the cleanup procedure, sending the trains back to their home tacks
214 214  * //DEBUG// - enable or disable verbose output, must supply additional payload
215 215  ** **state** - boolean value, true if verbose output should be activated
216 -* //ECHO// - Prints message as log message on the server (will be broadcasted to all clients)\\
217 -** **message** - string, message text
218 218  * //LIGHT// - activate or deactivate the lights on the railway, must supply additional payload\\
219 219  ** **state** - boolean value, true if lights should be lit
220 220  * //WAIT// - Force a train to wait in the next station, must supply additional payload
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -9471685
1 +9471634
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/SS14Railway/pages/9471685/TCP Communication
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/SS14Railway/pages/9471634/TCP Communication