File tree Expand file tree Collapse file tree 7 files changed +91
-2
lines changed
src/instrumentman/control Expand file tree Collapse file tree 7 files changed +91
-2
lines changed Original file line number Diff line number Diff line change 1+ :icon: material/toggle-switch
2+
3+ Control
4+ =======
5+
6+ The control commands are a set of simple utilities to activate or deactivate
7+ certain components of an instrument.
8+
9+ .. toctree ::
10+ :maxdepth: 1
11+
12+ shutdown_geocom
13+ startup_geocom
Original file line number Diff line number Diff line change 1+ Shutdown - GeoCom
2+ =================
3+
4+ For power management reasons, it might be required to deactivate some aspects
5+ of an instrument to conserve power.
6+
7+ Requirements
8+ ------------
9+
10+ - GeoCom capable instrument
11+
12+ Examples
13+ --------
14+
15+ .. code-block :: shell
16+ :caption: Shutting down the instrument
17+
18+ iman shutdown geocom instrument COM1
19+
20+ .. code-block :: shell
21+ :caption: Deactivating GeoCom online mode (only applicable before TPS1200)
22+
23+ iman shutdown geocom protocol COM1
24+
25+ Usage
26+ -----
27+
28+ .. click :: instrumentman.control:cli_shutdown_geocom
29+ :prog: iman shutdown geocom
Original file line number Diff line number Diff line change 1+ Startup - GeoCom
2+ =================
3+
4+ If an instrument system was deactivated, it might be necessary to reactivate it
5+ before using certain capabilities of the instrument.
6+
7+ Requirements
8+ ------------
9+
10+ - GeoCom capable instrument
11+
12+ Examples
13+ --------
14+
15+ .. code-block :: shell
16+ :caption: Activating laser pointer
17+
18+ iman startup geocom pointer COM1
19+
20+ Usage
21+ -----
22+
23+ .. click :: instrumentman.control:cli_startup_geocom
24+ :prog: iman startup geocom
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ Content
4646 commands/data/index
4747 commands/jobs/index
4848 commands/settings/index
49+ commands/control/index
4950 commands/station/index
5051
5152Indices
Original file line number Diff line number Diff line change @@ -31,4 +31,5 @@ Applications
3131 commands/data/index
3232 commands/jobs/index
3333 commands/settings/index
34+ commands/control/index
3435 commands/station/index
Original file line number Diff line number Diff line change 3535@com_port_argument ()
3636@com_option_group ()
3737def cli_shutdown_geocom (** kwargs : Any ) -> None :
38+ """
39+ Deactivate components of a GeoCom capable instrument.
40+
41+ To reduce power consumption, in certain scenarios it can be beneficial to
42+ power off some components of an instrument. Or shut down the entire machine
43+ completely.
44+
45+ Instruments before the TPS1200 series cannot be remotely reactivated after
46+ a complete shutdown (the GeoCom online mode has to be manually switched
47+ on). Similarly, instruments that are not connected by physical cable (but
48+ by Bluetooth for example) cannot be reactivated as the wireless connection
49+ can only be esatblished with an active instrument. Only shut down these
50+ instruments remotely if no further operation is needed until the next
51+ manual access.
52+ """
3853 from .app import main_shutdown_geocom
3954
4055 main_shutdown_geocom (** kwargs )
@@ -62,6 +77,12 @@ def cli_shutdown_geocom(**kwargs: Any) -> None:
6277@com_port_argument ()
6378@com_option_group ()
6479def cli_startup_geocom (** kwargs : Any ) -> None :
80+ """
81+ Activate/reactivate components of a GeoCom capable instrument.
82+
83+ Instruments can be reactivated remotely after a complete shutdown only if
84+ they are TPS1200 or newer series and connected by a physical cable.
85+ """
6586 from .app import main_startup_geocom
6687
6788 main_startup_geocom (** kwargs )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def main_shutdown_geocom(
1515 baud : int = 9600 ,
1616 sync_after_timeout : bool = False
1717) -> None :
18- logger = getLogger ("iman.files.list " )
18+ logger = getLogger ("iman.control.shutdown_geocom " )
1919 with open_serial (
2020 port ,
2121 speed = baud ,
@@ -59,7 +59,7 @@ def main_startup_geocom(
5959 baud : int = 9600 ,
6060 sync_after_timeout : bool = False
6161) -> None :
62- logger = getLogger ("iman.files.list " )
62+ logger = getLogger ("iman.control.startup_geocom " )
6363 with open_serial (
6464 port ,
6565 speed = baud ,
You can’t perform that action at this time.
0 commit comments