Changes for page How to read Train IDs at FLASH
Last modified by sndueste on 2024/03/13 14:48
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -40,19 +40,18 @@ 40 40 41 41 [[image:attach:AIDS_running.png||height="189"]] 42 42 43 -\\ 44 44 45 45 Here it is running on Windows, but of course you can also use it on your Linux machine (build it from the source). 46 46 47 -\\ 48 48 49 49 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: 50 50 51 -{{code language="none"}}3437004.37997 O 818 853{{/code}} 49 +{{code language="none"}} 50 +3437004.37997 O 818 853 51 +{{/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 -\\ 56 56 57 57 * Connect to AdvancedIDServer. 58 58 * Check the state flag and jitter number in the first packet. Ignore the ID. ... ... @@ -63,8 +63,8 @@ 63 63 ** save your aquired data with that ID 64 64 * until shift finished or FLASH lost beam 65 65 66 -{{code language="none"}}3437004.37997 O 818 853{{/code}} 67 -{{code language="none"}}3437005.37997 O 851 889{{/code}} 65 +{{code language="none"}}3437004.37997 O 818 853{{/code}} 66 +{{code language="none"}}3437005.37997 O 851 889{{/code}} 68 68 {{code language="none"}}3437006.35997 O 885 925{{/code}} 69 69 70 70 About the format: More abstract you get a number, dot, a second number. A character. A third and fourth number. ... ... @@ -89,13 +89,12 @@ 89 89 90 90 [[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)// 91 91 92 -\\ 93 93 94 94 === Resources: === 95 95 96 96 * [[attach:AdvancedIDServer.exe]] 97 97 * [[attach:AdvancedIDServer-inline.vi]]: Example how to use the Advanced ID Server with Labview (LV11) 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"]]96 +* [[AdvancedIDServer on github>>url:https://github.com/Finii/AdvancedIDServer||shape="rect"]] 99 99 100 100 [[Contents>>doc:||anchor="Contents"]] 101 101 ... ... @@ -140,7 +140,6 @@ 140 140 141 141 [[Contents>>doc:||anchor="Contents"]] 142 142 143 -\\ 144 144 145 145 == Train ID Yelling server (TIDY) == 146 146 ... ... @@ -159,7 +159,6 @@ 159 159 * [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]:58050 //(for Flash1)// 160 160 * [[flash2cpuxgmd2.desy.de>>url:http://flash2cpuxgmd2.desy.de||shape="rect"]]:58050 //(for Flash2)// 161 161 162 -\\ 163 163 164 164 === Known Issues === 165 165 ... ... @@ -167,7 +167,6 @@ 167 167 ** If you can not guaranty that the socket will be closed properly the best solution is to use always the same (client-)port number. 168 168 ** You can also change your system-settings to let the OS handle it (see tcp_keepalive_time). 169 169 170 -\\ 171 171 172 172 * 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. 173 173 [[attach:AdvancedIDServer.exe]] [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]