Peripheral Crate Electronics
Peripheral Crate
Electrical Testing Procedures
for testing
in the
Electronics Lab
located at
B904-R-U28
Log
a running commentary of your work session to the paper log book at B904. Start each entry with the date and your name;
and Include board ID#s for both passed and failed
tests; and make special note of problems found.
More information is always better.
Log
the final results of testing for each board to the CMS ELOG as well. Go to URL:
pick
‘+Subsystems’
pick ‘CSC’
then log in and
click on ‘New’ to make an entry. Under
TYPE choose ‘Electronics’ and start the SUBJECT line with ‘B904 Testing …’
Test Peripheral Crate
Labeling – Some crates plus back planes may not have the BAR code
serial numbers attached. Bar code labels
must be attached.
Install complete empty crate in test
stand.
Remove
the presently installed crate
Ensure
that the
Remove
CRB from the BP at the rear of the crate
Make
sure all connections to the front of the crate are removed
Remove
any remaining boards from the crate
Remove
the crate from the rack
Install
the new crate
Make
sure that there is not a CRB attached to the new crate
Install
the new crate into the rack and secure
Install
the CRB at the back of the crate
Install
the (dummy) PCMB
Perform power up test on empty crate
Install full set of boards and perform
all board tests listed below.
If
a problem is found with a board, swap with a different board until problem is
solved
If
all boards pass their board tests the crate is GOOD
Test Boards
Labeling – Some boards may not have the
BAR code serial number on pc board or the front panel. Bar code labels must be attached to the pc
board and front panel of each board.
Make sure crate
For each individual board installed and/or
swapped
Perform Visual Inspection of board prior to installation in crate
Check the switches
and fuses on each board prior to loading.
Install in crate
Put bottom rail in
first, then top. Slide in until contacts
the pins. Hold board to right after insertion in rails to avoid scaping of the solder points on the back of the board from
scraping the front panel of the adjacent boarad. Slowly and firmly push the board onto the
backplane connectors. Then engage the
clips to push into backplane.
DO NOT SLAM BOARDS INTO
BACKPLANE!!!
Front of crate:
Slot 1: VME
with fiber optic connection
Slots 2, 4,
6, 8, 10, 14, 16, 18, 20: TMB
Slots 3, 5,
7, 9, 11, 15, 17, 19, 21: DMB
Slot 12:
MPC
Slot 13:
CCB
Back of crate:
9 RATs – Note that the slot number runs from right to left at
the back of the crate.
Perform power test of
loaded crate
Turn on the
NOTE: A crate can be powered for long
ATTENDED periods without the Turbine Fan in the rack operating. (OFF for reason of excessive noise exposure
to the operator.) But for unattended
operation the turbine fan must be turned on.
Turn fan off by flipping right most breaker at the top of the rack
rear-side.
If this crate has an active PCMB
installed
Run
Startup program on CRB
OR
If
not the dummy PCMB will turn on the crate immediately
Problems? Questions? With Electronics test Call Fred at 160999
Set up for Xdaq tests
Log onto the Test Computer, the CERN standard
desktop running LINEX, on the table just in front of the racks.
Log onto emucom02
Using user ID: emucomm and password:
The driver to talk to
the VME crate should be started, if not start the driver
from the
terminal....
- > $HOME/driver_directory.sh
- (enter root password)
- > ./ethreset
... If any errors, run again until there
are none; warnings are OK.
-
> exit
start the server:
from a small
terminal window ...
- > ../startPerpheralCrate.sh
start the window display at
for the logger:
from a large
terminal window ...
- > ./message_window.sh
You will need an XML file to load necessary parameters into the system for
your tests. Which file you use depends
on what testing you need to conduct.
There are
several xml files to choose from that include;
PC03-06work.xml this is set up for crate PC03 in B904 with VCC #006
installed
Template.xml template for normal tests – this has to be edited for VCC #
Template_broadcast.xml template for broadcast firmware downloads – this has to be
edited for VCC #
The XML file contains the ID number of the crate
controller, VCC. You must use an xml
file with the correct VCC ID # so that the desktop can address the VCC in the
crate via the fiber optic link. The VCC
ID # is the number on its front panel.
For example to open an
xml file to change the crate controller
From terminal...
emacs /home/emucomm/xml/file-name.xml
- change the LSB’s of the MAC address (number after last colon on line
4) to be the crate controller serial number in HEX
For
example VCC ID 12 >> ‘0C’
Open
Browser -> click on the Firefox button on screen.
The
homepage is the hyperDAQ interface.
č Left-Click "EmuPeripheralCrate"
o
http://emucom02:5010/urn:xdaq-application:service=hyperdaq
Set up
the configuration file to point to the xml file
->
Left-Click "Define Configuration"
-> In text below "Upload Configuration", type:
/home/emucomm/xml/ file-name.xml
-> hit Enter
->
Left-Click "Set configuration file Local"
open the
MAIN TEST PAGE
č Right-click "Crate
configuration" ("Open Link in new window") for downloading
firmware and most tests
č Middle-click “Crate
Tests” for physical test (Safe Window Measurement)
o
Automatically opens link in new tab with middle-click
Browser
note: NEVER USE the reload button. Its
use will confuse the XDAQ server so badly that the server must be restarted.
If used follow these steps:
o
kill all browser windows
o
from small terminal window
o
./kill_server.sh
o
Turn off the
o
Turn on the
o
From the small terminal window
o
./startPeripheralCrate.sh
Individual
test can be run on individual boards as desired by going directly to that
section below. If you are conducted more
than one test or all tests, proceed in the order given below.
Check the status
for each TMB, DMB, MPC, CCB to make sure crate is talking to computer:
NOTE that the results of the status tests and firmware
checks depend on the expected values loaded into the system with your XML
file. Be sure that you have the correct
values in your XML file.
->
Right-click on "TMB Status" ("Open Link in new
window")
...
"TMB info" should be all green except for line 5
->
kill "TMB status" window
->
Right-click on "DMB Status" ("Open Link in new
window")
...
"DMB IDs" should be all green and black
Note:
Voltages, Temperatures, and Currents red because not chamber connected
If the DMB fpga user id
is NOT what is desired >> Download the correct DMB firmware:
... For
each DMB ...
->
Right-click "DMB Utils" ("Open Link in new window")
->
Left-click "DMB Load Firmware"
-> after it finishes, kill the "DMB Utils" window
Check the DMB status again
->
kill "DMB status" window
Download Firmware
Firmware
changes often unless you downloaded current firmware to the boards recently, do
this step.
In
the Crate Configuration browser window, slots 25 and 26 broadcast to all boards
(make sure in template_broadcast.xml).
DMB
firmware:
Middle-click
on “DMB Utils”
Right-click
on “DMB Vme Load Firmware”
Right
-click on “DMB CONTROL Load Firmware”
TMB
Firmware
Middle-click
“TMB Utils”
Right-click
on “Load TMB firmware”
Right-click
on “Load RAT firmware”
After loading firmware do a Hard
reset to resynchronize boards.
Middle-click
on “CCB Utils”
Right-click
on “Hard reset”
Can
see lights resynchronize on crate.
Individual
Board Tests:
Record all Results on Traveler:
Go
to: http://cms-emu-slicetest.web.cern.ch/cms-emu-slicetest/904/index.htm
Right-click
on “Run Test”
Right-click
on “Crate Electronics”
Print
crateElec-Traveler.doc and record all test results on traveler
Run self-tests
for each TMB, DMB
Use template.xml not template_broadcast.xml
Use
individual slots not slots 25 and 26
If board fails test
->Power
Cycle
->Physically
install and re-install board
->Reload
firmware:
DMB:
“DMB
Vme Load Firmware (Emergency)” clears out one level
higher than “DMB Vme Load Firmware”.
After complete, continue
with “DMB CONTROL Load Firmware”.
TMB Tests:
->
Right-click on "TMB Tests" ("Open Link in new window")
->
Left-click "Run All TMB Tests"
...
All buttons should turn green ...
If
test takes unusually long time, run test separately by clicking on each test
button individually
If
"TMB Test ADC" is red, click this button again....
->
Kill TMB Tests window
DMB Tests:
There are four lights at the top of the
DMB. Top right red light on = = baaaad.
->
Right-click on "DMB Tests" ("Open Link in new window")
->
Lift-click on “Test 3 (Check DMB Fifos)
…This
button should turn green …
->
Left-click on "Test9(Test CDAC)"
...
This button should turn green...
->
Left-click on "Test11(Test SFM)"
...
This button should turn green...
->
Left-click on "Test4(Check Voltages)"
...
This button will stay red. Look at
output for 5 “goods”. In the output
window below the test buttons there should be 5 lines ending with good from
this test. If the voltage is -1.363 this
test failed. The is
the default bad voltage.
RAT Tests:
->Middle-click on “Chamber tests TMBslot =
x DMBslot = y”
->Left-click
on “Determine RAT-TMB phase”
…output of 0, 1, 1000 are bad …
…output of 7, 8, 9, 10, 11 are good…
Usually
9
Safe
Window Measurement
Turn crate power OFF and
Change SW2 setting on MPC to S2 -1/2 = off/on (SW2-1:low
SW2-2:high).
start the server
from a small terminal window
-> ../startPerpheralCrate.sh
Open Browser -> click
on the Firefox button on screen.
Left-Click "EmuPeripheralCrate"
o http://emucom02:5010/urn:xdaq-application:service=hyperdaq
Set
up the configuration file to point to the xml file
-> Left-Click on "Define
Configuration"
-> In text below
"Upload Configuration",
Type:
/home/emucomm/xml/
Template.xml
-> hit Enter
->
Middle-click “Crate Tests”
-> Left-click
“MPC Safe Window Scan”
Output
will have bell curve around 150. When output equals 150, in safe window.
Turn crate power OFF and
Change SW2 setting on MPC to S2 -1/2 = on/off (SW2-1:high
SW2-2:low).
start the server
from a small terminal window
-> ../startPerpheralCrate.sh
Open Browser -> click
on the Firefox button on screen.
Left-Click "EmuPeripheralCrate"
o http://emucom02:5010/urn:xdaq-application:service=hyperdaq
Set
up the configuration file to point to the xml file
-> Left-Click on "Define
Configuration"
-> In text below
"Upload Configuration",
Type:
/home/emucomm/xml/
Template.xml
-> hit Enter
->
Middle-click “Crate Tests”
->
Left-click “MPC Safe Window Scan”
All
values of output should be 150
->
Left-click on “Crate TMB/MPC test”
Should
say pass under button when test complete
Special CCB out Test
Power down crate
Remove CCB for special test
Power up crate
Observe lights on front panel>> if not OK call
expert
Power down crate
Insert CCB
Power up crate
Save
the results of your tests to disk
To enter
the serial numbers for each TMB, RAT, DMB, MPC, CCB:
From
the Crate configuration page
->
enter number in box
-> hit Enter with curser in box
-> repeat
Record
the test summary
->
Kill the Crate configuration page
On the "Operator page"...
->
enter your name as Operator
-> hit Enter with curser in box
->
enter run number = xx >> a run number determined from previous numbers
used and recorded in the paper log
-> hit Enter
->
Left-click "Log test summary"
Record
the test log so far
On the "Operator page"...
->
Left-click "Log all output"
Save
your log files to a special sub-directory if so desired
From
terminal:
>
mkdir test_results/ new-directory
>
mv EmuPeripheralCrate* new-directory
For example; new-directory = test_results/emupc_NNN
(where NNN is the crate ID number > crate 010 -> emupc_010)
Log all tested boards in
Electronics_boards_log_b904_Adam.sxc
Log
a summary of your work session to the paper log book at B904. Start each entry with the date and your name;
and Include problems found with board ID#s for both
passed and failed tests. More
information is always better.
Log
the final results of testing for each board to the CMS ELOG as well. Go to URL:
https://cmsdaq.cern.ch/elog/CSC/
pick
‘+Subsystems’
pick ‘CSC’
then log in and
click on ‘New’ to make an entry. Under
TYPE choose ‘Electronics’ and start the SUBJECT line with ‘B904 Testing …’
Put
sticky notes on bad boards stating which tests they failed. Put sticky notes on good and bad crates.
Before
Leaving:
Return fiber optic to crate connected to
chamber
Move dummy PCMB to crate connected to
chamber
Turn fan on
Log out of computer
Procedures-working.htm 27-Sept-2007 Fred Borcherding