Last modified by sndueste on 2025/06/16 17:14

From version 14.1
edited by sndueste
on 2025/06/16 17:09
Change comment: Uploaded new attachment "1750086572452-793.png", version {1}
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
Parent
... ... @@ -1,1 +1,0 @@
1 -FLASHUSER.Controls.WebHome
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,16 @@
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"]]
101 +
98 98  == Direct reading of Train ID ==
99 99  
100 100  Receiving the Train ID via ethernet is rather simple. Just open a TCP socket to the one of the servers and read from it.
... ... @@ -134,7 +134,9 @@
134 134  
135 135  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.
136 136  
141 +[[Contents>>doc:||anchor="Contents"]]
137 137  
143 +\\
138 138  
139 139  == Train ID Yelling server (TIDY) ==
140 140  
... ... @@ -153,6 +153,8 @@
153 153  * [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]:58050 //(for Flash1)//
154 154  * [[flash2cpuxgmd2.desy.de>>url:http://flash2cpuxgmd2.desy.de||shape="rect"]]:58050 //(for Flash2)//
155 155  
162 +\\
163 +
156 156  === Known Issues ===
157 157  
158 158  * 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.
... ... @@ -159,13 +159,13 @@
159 159  ** If you can not guaranty that the socket will be closed properly the best solution is to use always the same (client-)port number.
160 160  ** You can also change your system-settings to let the OS handle it (see tcp_keepalive_time).
161 161  
170 +\\
171 +
162 162  * 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.
163 163  [[attach:AdvancedIDServer.exe]] [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]
164 164  
165 -=== Short presentation by Fini ===
175 +[[Contents>>doc:||anchor="Contents"]]
166 166  
167 -* [[Here a short summary from Fini - held in the group meeting Nov 2014>>attach:eventid.pdf]]
177 +== Short presentation by Fini ==
168 168  
169 -
170 -
171 -Reading the Train ID from the X2 timer via analo
179 +* [[Here a short summary from Fini - held in the groupmeeting Nov 2014>>attach:eventid.pdf]]
1750086572452-793.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.sndueste
Size
... ... @@ -1,1 +1,0 @@
1 -47.6 KB
Content