Skip to end of metadata
Go to start of metadata

Overview of "Direct Instrument Access" Use Case

Communicate directly with instrument via terminal or 3rd-party applications


Tip: Key Points
UC Priority= 4 or 5: Critical, is in R2
Only boldface steps are required
<#> before a step —> lower priority
(optional) —> run-time option

Related Jira Issues:   Open   •   All

Metadata

Refer to the Product Description and Product Description Release 2 pages for metadata definitions.

Actors 'User' with appropriate role: Integrated Observatory Operator, Marine Asset Operator
References UC.R1.19 Direct Instrument Access
Uses  
Is Used By  
Extends  
Is Extended By  
In Acceptance Scenarios AS.R2.01A Operate Marine Observatory, AS.R2.02C Instrument Life Cycle Support
Technical Notes  
Lead Team SA
Primary Service Instrument Direct Access
Version 2.3
UC Priority 4
UC Status Mapped + Ready
UX Exposure MNC, SYS

Summary

This information summarizes the Use Case functionality.

Request authority/permission for directly controlling the instrument (excluding others from accessing it). Directly communicate with instrument, via windowed interface for ASCII commands, or via a socket for third-party applications. The system keeps a snapshot of instrument state before and after the direct access session, and tracks the session.

Assumptions

  • Flexible access to this capability depends on the Integrated Observatory system's capability to enforce access policy; until then, access will be limited to a narrow set of operators. (We do not want just any user to be able to command just any instrument just any time.)
  • Direct access to an instrument requires that the instrument is online. Acquiring direct access can occur before the instrument is online and can span a longer period of time.

Initial State

User who wishes to directly access an instrument has accessed the general overview screen for that instrument.

Scenario for "Direct Instrument Access" Use Case

  1. User makes request for direct access via the general instrument interface for this instrument.
    1. A link may also be provided via the observatory management interface, but it should bring up the instrument's interface, to provide that context.
    2. The user's authorization for direct access is verified
  2. Policy is applied, evaluating availability of instrument, instrument policy, and role of requester.
    1. Other criteria may also be considered (expenses, timing, involvement in mutual observations)
  3. If policy allows, direct access is enabled after the current state of the instrument is saved.
    1. Subscribers to instrument data stream may be notified.
    2. Other users and operators are blocked from routine access to instrument.
    3. While in direct access mode, no other user can be in direct access mode or send commands to the instrument.
    4. Other active users of instrument are informed about the ongoing direct access and the user who requested it (via messaging events)
  4. User is provided either RS-232 command or socket-level access to the instrument, as requested.
    1. If user is running 3rd-party application to talk to instrument, application connection must be bridged into ION.
    2. RS-232 command means terminal emulator is provided via Integrated Observatory interface or standalone terminal window.
    3. In later releases, being able to generate commands from scripts in user's computer will be helpful.
    4. Note: actual direct access to instrument is only possible while the instrument is online, but exclusive direct access mode to an instrument can be requested independent of that.
  5. User directly communicates with instrument to issue commands, change settings, and/or collect data.
    1. While this is happening, the Observatory is not capable of commanding scheduled activities to the instrument, and the instrument can't push data.
    2. Direct access may need to consider possible impacts to routine operations, and grant the access privilege (or set a time-out for it) accordingly.
  6. Observatory records communications in both directions.
    1. This recording is not required for the system to operate; it is required for later auditing or diagnostic purposes should that be needed.
    2. In later releases, the 'Observatory monitors direct access effects on instrument state.'
    3. This is necessary for the most well-characterized and well-understood interaction with instruments.
  7. Direct access connection is terminated when appropriate.
    1. Reasons to terminate direct access could include user requests termination, access privileges time out, time out due to inactivity, an Operator reclaims instrument for observatory, or another (higher-priority) user gets approval for direct access. Observatory policy determines which reasons are valid for termination.
    2. When possible and appropriate, the state at the end of the direct access session is retrieved and recorded
  8. If appropriate, instrument agent restores the state of the instrument to that preceding the direct access operation.
    1. It might not be appropriate to revert if it is too hard or unreliable to do so, or if the direct access session made changes that should not be reverted but would be.
  9. Interested parties are notified of the change of instrument state and the end of the direct access session.
    1. Their interest is determined by whether they have subscribed to such notifications.

Final State

Direct access has been provided as permitted, user has successfully interacted directly with the instrument, the direct access session has been closed, the instrument has been reverted to its previous state if appropriate, and interested users are notified of the state change.

Comments

These comments provide additional context (usually quite technical) for editors of the use case.

Notes from UX/Architecture discussion (2011.07.01):

  • The scenarios driving this use case include:
    1. a user can use 3rd-party software (typically provided by the instrument manufacturer) to interact directly with the instrument
    2. a user wants to make a custom adjustment to the instrument that can not be supported by our infrastructure
    3. a user or operator needs to troubleshoot an instrument by interacting directly with it
    4. a user does not believe our representation of what an instrument is doing, and wants to directly verify that it is behaving as we say it is

Preservation and restoration of state is qualified in this use case. State management can be problematic, as instruments support a really wide range of state awareness and capabilities. Notionally every instrument driver could implement a "getDeviceState" method that retrieves device's notion of its state, using the device's protocol (assuming it exists and supports information to reliably identify and set state). But the driver developer needs to recognize that some changes performed during the session need to survive the session, so invoking getDeviceState on entering and setDeviceState on exiting direct mode is not necessarily a panacea even if possible.

(click on # to go to R2 use case)
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
61     27B

Labels

r2-usecase r2-usecase Delete
usecase usecase Delete
productdescription productdescription Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.