Last modified by sndueste on 2024/03/13 14:48

From version 13.1
edited by sndueste
on 2024/03/13 14:48
Change comment: There is no comment for this version
To version 11.1
edited by sndueste
on 2021/10/14 10:19
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -40,18 +40,19 @@
40 40  
41 41  [[image:attach:AIDS_running.png||height="189"]]
42 42  
43 +\\
43 43  
44 44  Here it is running on Windows, but of course you can also use it on your Linux machine (build it from the source).
45 45  
47 +\\
46 46  
47 47  The users can access this server via a socket. Use localhost:58051. Connect your program to that socket and you get immediately the actual Train ID for this very moment. (e.g. in the CMD window with {{code language="none"}}telnet localhost 58051{{/code}} ... note:telnet is usually deactivated in win10 and has to be activated) The packet you get looks like this:
48 48  
49 -{{code language="none"}}
50 -3437004.37997 O 818 853
51 -{{/code}}
51 +{{code language="none"}}3437004.37997 O 818 853{{/code}}
52 52  
53 53  You get a new calculated ID every time you send any data to the server. So normally your program looks like this and should not close and open the socket all the time:
54 54  
55 +\\
55 55  
56 56  * Connect to AdvancedIDServer.
57 57  * Check the state flag and jitter number in the first packet. Ignore the ID.
... ... @@ -62,8 +62,8 @@
62 62  ** save your aquired data with that ID
63 63  * until shift finished or FLASH lost beam
64 64  
65 -{{code language="none"}}3437004.37997 O 818 853{{/code}}
66 -{{code language="none"}}3437005.37997 O 851 889{{/code}}
66 +{{code language="none"}}3437004.37997 O 818 853{{/code}}
67 +{{code language="none"}}3437005.37997 O 851 889{{/code}}
67 67  {{code language="none"}}3437006.35997 O 885 925{{/code}}
68 68  
69 69  About the format: More abstract you get a number, dot, a second number. A character. A third and fourth number.
... ... @@ -88,13 +88,15 @@
88 88  
89 89  [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]{{code language="none"}}AdvancedIDServer.exe :58050{{/code}} //(for Flash1)// or [[flash2cpuxgmd2.desy.de>>url:http://flash2cpuxgmd2.desy.de||shape="rect"]]{{code language="none"}}AdvancedIDServer.exe :58050{{/code}} //(for Flash2)//
90 90  
92 +\\
91 91  
92 92  === Resources: ===
93 93  
94 94  * [[attach:AdvancedIDServer.exe]]
95 95  * [[attach:AdvancedIDServer-inline.vi]]: Example how to use the Advanced ID Server with Labview (LV11)
96 -* [[AdvancedIDServer on github>>url:https://github.com/Finii/AdvancedIDServer||shape="rect"]]
98 +* [[AdvancedIDServer on github~[~[image:url:http://hasfweb.desy.de/pub/TWiki/TWikiDocGraphics/external-link.gif~|~|width="13" height="12"~]~]>>url:https://github.com/Finii/AdvancedIDServer||shape="rect"]]
97 97  
100 +[[Contents>>doc:||anchor="Contents"]]
98 98  
99 99  == Direct reading of Train ID ==
100 100  
... ... @@ -135,7 +135,9 @@
135 135  
136 136  The time and date have leading zeros as necessary to ensure a constant field width. The ID number is not zero padded and thus has a varying field width.
137 137  
141 +[[Contents>>doc:||anchor="Contents"]]
138 138  
143 +\\
139 139  
140 140  == Train ID Yelling server (TIDY) ==
141 141  
... ... @@ -154,6 +154,8 @@
154 154  * [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]:58050 //(for Flash1)//
155 155  * [[flash2cpuxgmd2.desy.de>>url:http://flash2cpuxgmd2.desy.de||shape="rect"]]:58050 //(for Flash2)//
156 156  
162 +\\
163 +
157 157  === Known Issues ===
158 158  
159 159  * If you write code to read the train-ID please make sure you close the socket properly. Otherwise it can happen that you eat up all available connections.
... ... @@ -160,9 +160,12 @@
160 160  ** If you can not guaranty that the socket will be closed properly the best solution is to use always the same (client-)port number.
161 161  ** You can also change your system-settings to let the OS handle it (see tcp_keepalive_time).
162 162  
170 +\\
171 +
163 163  * 20.9.18: The .exe always try [[hasfhvctrl.desy.de>>url:http://hasfhvctrl.desy.de||shape="rect"]] first. So start with additional parameter via the commandline.
164 164  [[attach:AdvancedIDServer.exe]] [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]
165 165  
175 +[[Contents>>doc:||anchor="Contents"]]
166 166  
167 167  == Short presentation by Fini ==
168 168