|
4 | 4 | ALF(Alice Low-level Frontend) spawns DIM services as an interface with detector FEEs(Front-End Electronics). The DIM services can be accessed through DCS's [FRED](https://gitlab.cern.ch/alialfred/FREDServer). |
5 | 5 |
|
6 | 6 | ## Requirements |
7 | | -In order to run ALF a DIM Nameserver has to be up and running. |
| 7 | +In order to run ALF a DIM Nameserver has to be up and running. For performance reasons, it is recommended to run the DIM Nameserver on the host running the FRED server. |
8 | 8 |
|
9 | 9 | ## Usage |
10 | 10 |
|
11 | 11 | ### o2-alf |
12 | 12 | o2-alf is the binary of the ALF server. The only option it expects is the address of the DIM Nameserver. It can be passed either as a command-line argument or as an environmental variable. |
13 | 13 |
|
14 | 14 | ` |
15 | | -o2-alf --dim-dns-node thedimdns |
| 15 | +o2-alf --dim-dns-node thedimdns.cern.ch |
16 | 16 | ` |
17 | 17 |
|
18 | 18 | ` |
19 | | -DIM_DNS_NODE=thedimdns o2-alf |
| 19 | +DIM_DNS_NODE=thedimdns.cern.ch o2-alf |
20 | 20 | ` |
21 | 21 |
|
22 | 22 | ### o2-alf-client |
23 | 23 | o2-alf-client is the binary of an ALF client used solely for testing purposes. On top of the DIM Nameserver it expects the hostname of the node hosting the ALF server, the card's serial and the link number as command-line arguments. |
24 | 24 |
|
25 | 25 | ` |
26 | | -o2-alf-client --dim-dns-node thedimdns --alf-id thealfserver --serial 0 --link 4 |
| 26 | +o2-alf-client --dim-dns-node thedimdns.cern.ch --alf-id thealfserver --serial 0 --link 4 |
27 | 27 | ` |
28 | 28 |
|
29 | 29 | ## Services |
@@ -80,13 +80,13 @@ The services are DIM RPC services. Every RPC is called with a string and expects |
80 | 80 | * Parameters: |
81 | 81 | * Sequence of SWT word and operation pairs as follows: |
82 | 82 | * Operations may be: |
83 | | - * SWT word with `write` |
84 | | - * `reset` (no SWT word) |
85 | | - * `read` (no SWT word) |
| 83 | + * SWT word with suffix `,write` |
| 84 | + * `reset` (without SWT word) |
| 85 | + * `read` (without SWT word) |
86 | 86 | * Returns: |
87 | 87 | * Sequence of SWT output as follows: |
88 | 88 | * `write` always retuns `0` |
89 | | - * `read` returns an SWT word |
| 89 | + * `read` returns the SWT words present in the CRU SWT FIFO |
90 | 90 | * `reset` returns nothing |
91 | 91 |
|
92 | 92 | * Example: |
@@ -120,7 +120,3 @@ The services are DIM RPC services. Every RPC is called with a string and expects |
120 | 120 | * Example: |
121 | 121 | * DIM input `0x3\n` |
122 | 122 | * DIM output ` ` |
123 | | - |
124 | | -#### Examples |
125 | | - |
126 | | -Examples on making the RPC calls can be seen under [ProgramAlfClient.cxx](apps/ProgramAlfClient.cxx) and [AlfClient.h](src/AlfClient.h). |
0 commit comments