This MR offers a validated power up and down procedure for the DSSC2 for a single module (Q2M1).
The MPOD is powered through Karabo using the DETLAB_DSSC2/PSC/MPOD2
, DETLAB_DSSC2/PSC/TAG_GROUP_Q2
, and Manual Powering Instructions.
Only a single module, M1
was powered up and down.
Shutdown order matters.
Validation of channel order done while powering up:
import requests
from time import monotonic
def power_all_on():
tstart = monotonic()
print(requests.get("http://192.168.140.67/power?group=AON&output=on")) # Group does not exist, validate that error handled, expect HTTP 406
print(requests.get("http://192.168.140.67/power?group=ASICS&output=on"))
print(requests.get("http://192.168.140.67/power?group=HV&output=on"))
print(requests.get("http://192.168.140.67/power?group=ISVOLTAGE&output=on"))
print(requests.get("http://192.168.140.67/power?group=PLCSOURCE&output=on"))
print("Took ", monotonic() - tstart)
Command used for triggering power down from microcontroller:
import requests
from time import monotonic
def off():
tstart = monotonic()
print(requests.get("http://192.168.140.67/alloff?token=CWH").json()['groups'])
print("Took ", monotonic() - tstart)
Test Protocol:
RAMPING
to ON
when setting voltage, but would not hurt. A feature on its own, better handled in separate MR.