Skip to content
Snippets Groups Projects
Commit 30a35bb1 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-391: Added landing notebook

parent 98800f63
Branches
Tags
1 merge request!144L2SS-391: Add boot device
......@@ -54,24 +54,7 @@ The start-up procedure is needed both after bootstrapping and after a system reb
make start elk-configure-host
```
The software devices start in an OFF state, after bootstrap or reboot. To boot the devices, go to Jupyter (port 8888), start a new notebook, and run:
```
# start boot device
boot.initialise()
boot.on()
# this should report as DevState.ON
boot.status()
# boot station
boot.initialise_station()
# wait until this reports the initialisation is done (or was stopped half way):
print(f"Still initialising: {boot.initialising_station_R}. Completeness: {boot.initialisation_progress_R}%. State: {boot.initialisation_status_R}")
```
Then, in Grafana (port 3000), you should see the devices reaching the ON state.
The software devices start in an OFF state, after bootstrap or reboot. To boot the devices, go to Jupyter (replace "localhost" with the hostname of your installation, if required): http://localhost:8888/notebooks/Home.ipynb . Then, in Grafana (http://localhost:3000), you should see the devices reaching the ON state.
# Remote Interfaces
......
%% Cell type:markdown id:d3ffb821 tags:
# Welcome to your LOFAR2.0 station!
The following interfaces are available to you, on the same host as this notebook, but on different ports:
|Interface |Subsystem |Port|Credentials |
|----------|----------|----|--------------|
|Scripting |Jupyter |8888| |
|Monitoring|Grafana |3000|admin/admin |
|Logs |Kibana |5601| |
|ReST |tango-rest|8080|tango-cs/tango|
Below are codes to manage the station at high level.
%% Cell type:markdown id:70a5de26 tags:
## (Re)boot station
The code below is used to:
* Reboot all station software
* Reset the hardware configuration
%% Cell type:code id:57263a16 tags:
``` python
# Restart boot device itself
boot.off()
assert boot.state() == DevState.OFF, boot.state()
boot.initialise()
assert boot.state() == DevState.STANDBY, boot.state()
boot.on()
assert boot.state() == DevState.ON, boot.state()
```
%% Cell type:code id:64f33a76 tags:
``` python
# Request to reinitialise the station.
#
# WARNING: This will reset settings across the station!
boot.initialise_station()
assert boot.state() != DevState.FAULT
```
%% Cell type:code id:714b7f0b tags:
``` python
import time
while boot.initialising_station_R:
print(f"Still initialising station. {boot.initialisation_progress_R}% complete. State: {boot.initialisation_status_R}")
time.sleep(1)
if boot.initialisation_progress_R == 100:
print("Done initialising station.")
else:
print(f"Failed to initialise station: {boot.initialisation_status_R}")
```
%% Cell type:code id:299b0ceb tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment