Skip to content

Store current configuration and execution context #2

@wementoat

Description

@wementoat

As the ICOc package provides the fundamental network.py with its classes for interfacing with the CAN hardware modules, it is the base for further projects in the MyTooliT project group.

Issue

Both the icon and icoc command line utilities rely on the fact that a single user executes a measurement task and knows what they did and what configuration of sensors and settings is currently being captured. As the usage of the MyTooliT system evolves, it is occuring that multiple users (or GUI clients) need to access this data after the measurement has been started, which is currently not possible directly.

Proposed Solution

Add the ability to cache/store all relevant execution context in a separate wrapping class which exposes an event-based system to trigger updates to potential subscribers.

The context should include, but will most likely not be limited to:

  • Current measurement state information
    • name of measurement (file)
    • start time of measurement
    • tool name of used holder
    • MAC address of used holder
  • Instructions for measurement
    • measurement time if any
    • first, second, third channel
    • IFT value
      • if requested
      • channel
      • window width
    • ADC settings

Having this information not only stored within the active network / context but also subscribale as an event system enables the distribution and communication of "what's going on" for IOT and connected machine applications such as websockets and MQTT.

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions