Module azcam.tools.mag.camera_server

Contains the CameraServerInterface class for Magelllan controllers.

Classes

class CameraServerInterface (host: str = '', port: int = 0)

The azcam controller server interface class for Magellan controllers.

Methods

def close_server(self)

Closes the ControllerServer.

def command(self, command: str, terminator: str = '\n')

Command method for controller server.

def delete_file(self, filename)

Delete a file which wa uploaded to the controller server.

def echo(self, Message='This is a ControllerServer test message.')

Echo a message string from controller server.

def get(self, Parameter)

Return a paramater from the controller server, as a string.

def load_file(self, board, filename)

Send a a DSP code file to the controller server.

def reset_server(self)

Resets the ControllerServer.

def restart_server(self)

Restarts the ControllerServer.

def set(self, Parameter, value)

Set a parameter in the controller server.

def set_server(self, host: str, port: int = 2405) ‑> None

Set host and port of controller server.

def test(self)

Echo a message string from controller server.

def upload_file(self, fbuffer)

Sends a file as a binary buffer to the ControllerServer to be written to its file system. Returns the name of the file on the ControllerServer file system.