Skip to content

Have RSSI Reset Task Return its successΒ #875

@msilvafe

Description

@msilvafe

Currently the restart_rssi task in the pysmurf_controller agents returns as soon as it has written the RestartRSSI rogue register. However this does not ensure that rssi lane was properly restarted. @swh76 has suggested there's another register (which hopefully he can reply with here) we can poll which will tell us if it succeeded. I think we should modify the agent with the following logic:

epics.caput(f"smurf_server_s{self.slot}:AMCc:RestartRssi", 1)

state = epics.caget(<our_register_to_check>)
session_data = {"fields": {"rssi_state": state},
                          "last_updated": time.time()}
session.data.update(session_data)
if state == <good_state>:
     return True, "RSSI restarted"
else:
     return False, "RSSI restart failed"

Then an ROC will see the task fail in ocs-web in the little output under the button and the return from the caget will get published to session.data which is viewable from the "browser" section of ocs-web. This will help with directions for ROCs. Tagging @BrianJKoopman @tpsatt @swh76 and @tristpinsm for discussion.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions