Communication¶
Description¶
Module: geocompy.geo.com
Definitions for the GeoCOM Communication subsystem.
Types¶
GeoComCOM
Definitions¶
- class GeoComCOM(parent: GeoComType)[source]¶
Communication subsystem of the GeoCOM protocol.
This subsystem contains functions relevant to the communication with the instrument.
- Parameters:
- parent: GeoComType¶
The parent protocol instance of this subsystem.
- get_binary_available() GeoComResponse[bool][source]¶
RPC 113,
COM_GetBinaryAvailableChecks if the instrument supports binary communication.
- Returns:
- Params:
bool: Availability of binary mode.
- Return type:
See also
- get_double_precision() GeoComResponse[int][source]¶
RPC 108,
COM_GetDoublePrecisionGets the current ASCII communication floating point precision of the instrument.
- Returns:
- Params:
int: Floating point decimal places.
- Return type:
See also
- get_geocom_version() GeoComResponse[tuple[int, int, int]][source]¶
RPC 110,
COM_GetSWVersionGets the version of the installed GeoCOM release.
- Returns:
- Params:
int: Release number.
int: Version number.
int: Subversion number.
- Return type:
See also
csv.get_firmware_version
- nullprocess() GeoComResponse[None][source]¶
RPC 0,
COM_NullProcTests connection by executing the null process.
- set_binary_available(enable: bool) GeoComResponse[None][source]¶
RPC 114,
COM_SetBinaryAvailableEnables or disables binary communication with the instrument.
See also
- set_double_precision(digits: int) GeoComResponse[None][source]¶
RPC 107,
COM_SetDoublePrecisionSets the ASCII communication floating point precision of the instrument.
- Parameters:
- Return type:
See also
- set_send_delay(delay: float) GeoComResponse[None][source]¶
RPC 109,
COM_SetSendDelayRemoved in version GeoCOM-TPS1200.
Sets response delay on the instrument.
- Parameters:
- Return type:
-
switch_off(mode: Shutdown | str =
Shutdown.SHUTDOWN) GeoComResponse[None][source]¶ RPC 112,
COM_SwitchOffTPSSwitches off the instrument.
- Parameters:
- Return type:
See also
-
switch_on(mode: Startup | str =
Startup.REMOTE) GeoComResponse[None][source]¶ RPC 111,
COM_SwitchOnTPSSwitches on the instrument.
- Parameters:
- Returns:
- Error codes:
NOT_IMPL: Instrument is already on.
- Return type:
Notes
The instrument can be switched on with any command, or even just a single character.
See also
- switch_signoff(enable: bool) GeoComResponse[None][source]¶
RPC 115,
COM_EnableSignOffRemoved in version GeoCOM-TPS1200.
Enables or disables the signoff message upon operation mode changes.
- Parameters:
- Return type:
Note
This setting is not persistent between sessions.
- switch_to_local() GeoComResponse[None][source]¶
RPC 1,
COM_LocalSwitches instrument to local mode, exiting the online mode.
- Return type:
Warning
Once the instrument is switched to local mode, all further RPCs will be ignored, until the online mode is manually activated again.