Project

General

Profile

Starting and using TDUControl » History » Version 6

Thomas Dealtry, 01/30/2015 04:18 AM

1 6 Thomas Dealtry
{{toc}}
2 1 Kurt Biery
3 6 Thomas Dealtry
h1. Getting help
4 6 Thomas Dealtry
5 6 Thomas Dealtry
Email Tom Dealtry - thomas.dealtry@physics.ox.ac.uk
6 6 Thomas Dealtry
7 6 Thomas Dealtry
h1. Overview
8 6 Thomas Dealtry
9 6 Thomas Dealtry
The following are instructions on how to communicate with the NOvA timing distrubution unit (TDU). The TDU distributes timing information throughout the system, handles synchronisation between boards, and includes automatic propagation delay calculation & compensation.
10 6 Thomas Dealtry
11 6 Thomas Dealtry
There are various ways to communicate:
12 6 Thomas Dealtry
13 6 Thomas Dealtry
* Through lbnerc & daqinterface (coming soon)
14 6 Thomas Dealtry
* Booting up an xmlrpc server & commuicating through this
15 6 Thomas Dealtry
* Communicating with the TDU directly
16 6 Thomas Dealtry
17 6 Thomas Dealtry
h1. List of commands (to be expanded)
18 6 Thomas Dealtry
19 6 Thomas Dealtry
All 'get', 'do', and 'read' commands return an error code with a common numbering scheme.
20 6 Thomas Dealtry
21 6 Thomas Dealtry
h2. 'get' commands
22 6 Thomas Dealtry
23 6 Thomas Dealtry
* <code>get_status()</code>
24 6 Thomas Dealtry
Returns [error_code, ready_to_do]. When ready_to_do is True, the control register can be modified (i.e. a 'do' command can be performed)
25 6 Thomas Dealtry
26 6 Thomas Dealtry
h2. 'do' commands
27 6 Thomas Dealtry
28 6 Thomas Dealtry
* <code>do_ping()</code>
29 6 Thomas Dealtry
ping the TDU
30 6 Thomas Dealtry
31 6 Thomas Dealtry
* <code>do_time_sync()</code>
32 6 Thomas Dealtry
Perform a time synchronisation (this calls <code>get_status()</code> internally)
33 6 Thomas Dealtry
34 6 Thomas Dealtry
* <code>do_delay_calc()</code>
35 6 Thomas Dealtry
Perform a propagation delay calculation (this calls <code>get_status()</code> internally)
36 6 Thomas Dealtry
37 6 Thomas Dealtry
* <code>do_send_sync_pulse()</code>
38 6 Thomas Dealtry
Send a sync pulse (this calls <code>get_status()</code> internally)
39 6 Thomas Dealtry
40 6 Thomas Dealtry
* <code>debug_do_write_control_reg(data_to_or)</code>
41 6 Thomas Dealtry
Write the control register to perform a none standard operation (this calls <code>get_status()</code> internally)
42 6 Thomas Dealtry
43 6 Thomas Dealtry
h2. 'read' commands
44 6 Thomas Dealtry
45 6 Thomas Dealtry
* <code>read_tdu_id()</code>
46 6 Thomas Dealtry
Read out the TDU version & ID numbers
47 6 Thomas Dealtry
48 6 Thomas Dealtry
* <code>read_tdu_status()</code>
49 6 Thomas Dealtry
Read out the TDU's current operating conditions (current, voltage, temperature, fan status, FPGA status)
50 6 Thomas Dealtry
51 6 Thomas Dealtry
* <code>read_gps_status()</code>
52 6 Thomas Dealtry
Read out the GPS status (faults, timeouts, sat count, etc. + current UTC time)
53 6 Thomas Dealtry
54 6 Thomas Dealtry
* <code>read_error_registers()</code>
55 6 Thomas Dealtry
Read out the error registers
56 6 Thomas Dealtry
57 6 Thomas Dealtry
* <code>read_control_reg()</code>
58 6 Thomas Dealtry
Read out the control register
59 6 Thomas Dealtry
60 6 Thomas Dealtry
* <code>debug_read_all_registers()</code>
61 6 Thomas Dealtry
Read out all the registers. Also comes with some hints on what the 'default' for normal operating conditions is.
62 6 Thomas Dealtry
63 6 Thomas Dealtry
h2. Other commands
64 6 Thomas Dealtry
65 6 Thomas Dealtry
* <code>close_socket()</code>
66 6 Thomas Dealtry
67 6 Thomas Dealtry
* print_log
68 6 Thomas Dealtry
Will be made private
69 6 Thomas Dealtry
70 6 Thomas Dealtry
h2. Error codes
71 6 Thomas Dealtry
72 6 Thomas Dealtry
100-120
73 6 Thomas Dealtry
74 6 Thomas Dealtry
h1. List of TDU IP addresses (to be expanded)
75 6 Thomas Dealtry
76 6 Thomas Dealtry
* Master: 192.168.100.201
77 6 Thomas Dealtry
* Slave: 192.168.100.202
78 6 Thomas Dealtry
79 6 Thomas Dealtry
h1. Using the NOvA GUI (TDUControl) - OLD & BROKEN
80 6 Thomas Dealtry
81 1 Kurt Biery
To start TDUControl, use the following steps:
82 6 Thomas Dealtry
83 5 Thomas Dealtry
# log into the <code>lbnedaq</code> account on <code>lbne35t-gateway01</code>
84 6 Thomas Dealtry
# <code>source /data/lbnedaq/novadaq/setup/setup_novadaq_nt1.sh</code>
85 6 Thomas Dealtry
# <code>TDUControl -m</code>
86 5 Thomas Dealtry
# enter the IP address of the Master TDU into the GUI (192.168.100.201)
87 1 Kurt Biery
88 6 Thomas Dealtry
Alternatively for steps 3 & 4, you can run <code>TDUControl -m -t 192.168.100.201</code>