A BoardManager registers expansion boards and handles parsing of raw messages and insertion into the database
Gets the descriptions of the boards given in a list
Parameters: | boards – a list of board ID strings |
---|---|
Returns: | A list of tuples. each tuple containing (ID, DESCRIPTION) |
Gets a variable dictionary from a board and save to database :param message: The raw message to parse :param session_id: The session ID of the message (ignore if getting cached variables) :param board_id: The id of the board to parse the message :returns: a list of variables added to the cache or data store
A class that all client side expansion boards MUST inherit. In addition, boards which are derived from BaseExpansionBoard must call the constructor of this class in their derived class using “super”
This provides basic functionality such as parsing of raw logger messages
Returns the flag defined at the given bit number. This method SHOULD NOT be overridden by derived classes
Get a number from the payload, breaking out bits between ‘start_bit’ and ‘length’. Note that the bits are 0 indexed - e.g. the first bit is bit #0, the second is #1, etc. This method SHOULD NOT be overridden by derived classes
Get the raw payload (an unsigned, big endian, 32 bit number) This method SHOULD NOT be overridden by derived classes
Queries the split up binary data generated by self.parse_message and creates a dictionary of “variable”: “value” pairs. This method MUST be overridden by derived classes
Takes a raw binary message received from an expansion board and breaks it up into parts as described in section 4 of TS0002.
This method SHOULD NOT be overridden in derived classes. Derived classes should implement the get_variables function