Smartbox Scripts

Scripts for the Smartbox (FNSC).

fnsc_clr_alarms()

Clear the alarms in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-clr-alarms”.

It connects to the specified FNSC and clears the alarms.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_clr_circuit_breakers()

Clear circuit breakers in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-clr-circuit-breakers”.

It connects to the specified FNSC and clears circuit breakers.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_clr_warnings()

Clear the warnings in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-clr-warnings”.

It connects to the specified FNSC and clears the warnings.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_fem_off()

Set a specific FEM off in FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-fem-off”.

It connects to the specified FNSC and turns off the specified FEM.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:
  • ValueError – if the smartbox argument is out of range.

  • ValueError – if the FEMs argument is out of range.

Return type:

None

fnsc_fem_on()

Set a specific FEM on in FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-fem-on”.

It connects to the specified FNSC and turns on the specified FEM.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:
  • ValueError – if the smartbox argument is out of range.

  • ValueError – if the FEMs argument is out of range.

Return type:

None

fnsc_fems_desired_state()

Set FEMs with DSON to on, and DSOFF to off, so we can see it go offline.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-fems-desired-state”.

It connects to the specified FNPC and sets FEMs to DSON or DSOFF.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_fems_off()

Set all FEMs to off in FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-fems-off”.

It connects to the specified FNSC and turns off all the FEMs.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_fems_on()

Set all FEMs on in FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-fems-on”.

It connects to the specified FNSC and turns on all the FEMs.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_get_alarms()

Get list of the alarms in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-get-alarms”.

It connects to the specified FNSC and gets list of the alarms.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_get_live_readings()

Get list of live readings in FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-get-live-readings”.

It connects to the specified FNSC and reads the list of live readings.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_get_thresholds()

Get list of thresholds in FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-get-thresholds”.

It connects to the specified FNSC and reads the list of thresholds.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser() :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_get_warnings()

Get the list of the warnings in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-get-warnings”.

It connects to the specified FNSC and gets the list of the warnings.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

fnsc_set_current_threshold()

Set the current threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-current-threshold”.

It connects to the specified FNSC and sets the current threshold.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_fem_ambient_temp_threshold()

Set fem ambient temperature threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-fem-ambient-temp-threshold”.

It connects to the specified FNSC and sets the fem ambient temperature threshold.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_fem_case_temp1_threshold()

Set the fem case temperature 1 threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-fem-case-temp1-threshold”.

It connects to the specified FNSC and sets the temperature threshold for fem case 1.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_fem_case_temp2_threshold()

Set the fem case temperature 2 threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-fem-case-temp1-threshold”.

It connects to the specified FNSC and sets the temperature threshold for fem case 2.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_fem_heatsink_temp1_threshold()

Set the fem heatsink temperature 1 threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-fem-heatsink-temp1-threshold”.

It connects to the specified FNSC and sets the temperature threshold for fem heatsink 1.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_fem_heatsink_temp2_threshold()

Set the fem heatsink temperature 2 threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-fem-heatsink-temp2-threshold”.

It connects to the specified FNSC and sets the temperature threshold for fem heatsink 2.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_input_voltage_threshold()

Set input voltage threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-input-voltage-threshold”.

It connects to the specified FNSC and sets the input voltage threshold.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_led_pattern()

Set the led pattern in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-led-pattern”.

It connects to the specified FNSC and sets the led pattern.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_pcb_temp_threshold()

Set PCB temperature threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-pcb-temp-threshold”.

It connects to the specified FNSC and sets the pcb temperature threshold.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_psu_output_voltage_threshold()

Set PSU output voltage threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-psu-output-voltage-threshold”.

It connects to the specified FNSC and sets the PSU output voltage threshold.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

fnsc_set_psu_temp_threshold()

Set PSU temperature threshold in the FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “fnsc-set-psu-temp-threshold”.

It connects to the specified FNSC and sets the PSU temperature threshold.

For script connection arguments, see :raises ValueError: if the smartbox argument is out of range.

Return type:

None

get_fems_state()

See the state of the FEMs in FNSC.

This script is registered as a package entrypoint and can be invoked on the command line under the name “get-fems-states”.

It connects to the specified FNSC and checks the state of all the FEMs.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

get_fnsc_fw_version()

Print the FNSC firmware version number.

This script is registered as a package entrypoint and can be invoked on the command line under the name “get-fnsc-fw-version”.

It connects to the specified FNSC and prints current firmware version number.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None

get_fnsc_status()

Print the FNSC status.

This script is registered as a package entrypoint and can be invoked on the command line under the name “get-fnsc-status”.

It connects to the specified FNSC, queries its status, and prints the result.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the “smartbox” command line argument is out of range.

Return type:

None

set_fnsc_status()

Set the FNSC status to OK.

This script is registered as a package entrypoint and can be invoked on the command line under the name “set-fnsc-status”.

It connects to the specified FNSC, and tries to set its’ status to OK.

For script connection arguments, see ska_low_pasd_driver.scripts.args.connection_parser()

Raises:

ValueError – if the smartbox argument is out of range.

Return type:

None