Central Services¶
Description¶
Module: geocompy.geo.csv
Definitions for the GeoCOM Central services subsystem.
Types¶
GeoComCSV
Definitions¶
- class GeoComCSV(parent: GeoComType)[source]¶
Central services subsystem of the GeoCOM protocol.
This subsystem contains functions to maintain centralised data and configuration of the instruments.
- Parameters:
- parent: GeoComType¶
The parent protocol instance of this subsystem.
- abort_listing() GeoComResponse[None][source]¶
RPC 5074, (unknown, most likely
CSV_AbortList)Aborts current job listing setup.
- Return type:
See also
Note
This command was not found in the reference manuals, but discovered by accident while testing. Version or the corresponding GeoCOM function name is not known. Use with caution!
- check_power() GeoComResponse[tuple[int, PowerSource, PowerSource]][source]¶
RPC 5039,
CSV_CheckPowerAdded in version GeoCOM-TPS1100.
Gets the remaining capacity of the active power source.
- Returns:
- Params:
int: Remaining capacity [%].
PowerSource: Active power source.
PowerSource: Suggested power source.
- Return type:
- check_property(property: Property | str) GeoComResponse[bool][source]¶
RPC 5039,
CSV_CheckPropertyAdded in version GeoCOM-VivaTPS.
Checks if a specific license is available on the instrument.
- Parameters:
- Returns:
- Params:
bool: License is available.
- Return type:
- get_charging_status() GeoComResponse[bool][source]¶
RPC 5162,
CSV_GetChargingAdded in version GeoCOM-VivaTPS.
Gets the current state of the charger.
- Returns:
- Params:
bool: Charger is active.
- Return type:
- get_datetime() GeoComResponse[datetime][source]¶
RPC 5008,
CSV_GetDateTimeGets the current date and time set on the instrument.
- Returns:
- Params:
datetime: Current date and time.
- Return type:
See also
- get_datetime_new() GeoComResponse[datetime][source]¶
RPC 5051,
CSV_GetDateTime2Added in version GeoComp-TPS1200.
Gets the current date and time set on the instrument.
- Returns:
- Params:
datetime: Current date and time.
- Return type:
See also
- get_datetime_precise() GeoComResponse[datetime][source]¶
RPC 5117,
CSV_GetDateTimeCentiSecAdded in version GeoCOM-TPS1200.
Gets the current date and time set on the instrument in centiseconds resolution.
- Returns:
- Params:
datetime: Current date and time.
- Return type:
See also
- get_firmware_creation_date() GeoComResponse[str][source]¶
RPC 5038,
CSV_GetSWCreationDateAdded in version GeoComp-TPS1200.
Gets the creation date of the system software version running on the instrument.
- Returns:
- Params:
str: Creation date.
- Return type:
- get_firmware_version() GeoComResponse[tuple[int, int, int]][source]¶
RPC 5034,
CSV_GetSWVersionGets the system software version running on the instrument.
- Returns:
- Params:
int: Release number.
int: Version number.
int: Subversion number.
- Return type:
- get_instrument_configuration() GeoComResponse[tuple[DeviceClass, Capabilities]][source]¶
RPC 5035,
CSV_GetDeviceConfigGets class of the instrument, as well as information about the capatilities of the configuration.
- Returns:
- Params:
DeviceClass: Class of the instrument.
Capabilities: Configuration of the components.
- Error codes:
UNDEFINED: Precision class is undefined.
- Return type:
- get_instrument_name() GeoComResponse[str][source]¶
RPC 5004,
CSV_GetInstrumentNameGets the name of the instrument.
- Returns:
- Params:
str: Instrument name.
- Return type:
- get_internal_temperature() GeoComResponse[float][source]¶
RPC 5011,
CSV_GetIntTempGets internal temperature of the instrument, measured on the main board.
- Returns:
- Params:
float: Internal temperature [°C].
- Return type:
- get_laserplummet_intensity() GeoComResponse[int][source]¶
RPC 5041,
CSV_GetLaserlotIntensAdded in version GeoCOM-VivaTPS.
Gets the current intensity of the laser plummet.
- Returns:
- Params:
int: Current laser plummet intensity.
- Return type:
- get_laserplummet_status() GeoComResponse[bool][source]¶
RPC 5042,
CSV_GetLaserlotStatusAdded in version GeoCOM-VivaTPS.
Gets the current state of the laser plummet.
- Returns:
- Params:
bool: Laser plummet is active.
- Return type:
- get_maintenance_end() GeoComResponse[datetime][source]¶
RPC 5114,
CSV_GetMaintenanceEndGets the date when the software maintenance service ends.
- Returns:
- Params:
datetime: Software maintenance end date.
- Return type:
- get_preferred_powersource() GeoComResponse[PowerSource][source]¶
RPC 5164,
CSV_GetPreferredPowersourceAdded in version GeoCOM-VivaTPS.
Gets the current preferred power source.
- Returns:
- Params:
PowerSource: Preferred power source.
- Return type:
- get_reflectorless_class() GeoComResponse[Reflectorless][source]¶
RPC 5100,
CSV_GetReflectorlessClassAdded in version GeoCOM-TPS1200.
Gets the class of the reflectorless EDM module, if the instrument is equipped with one.
- Returns:
- Params:
Reflectorless: Class of the reflectorless EDM module.
- Return type:
- get_serial_number() GeoComResponse[int][source]¶
RPC 5003,
CSV_GetInstrumentNoGets the serial number of the instrument.
- Returns:
- Params:
int: Serial number.
- Return type:
- get_startup_message_status() GeoComResponse[bool][source]¶
RPC 5156,
CSV_GetStartupMessageModeAdded in version GeoCOM-VivaTPS.
Gets the current status of the startup message mode on the instrument.
- Returns:
- Params:
bool: Startup message is enabled.
- Return type:
- get_user_instrument_name() GeoComResponse[str][source]¶
RPC 5006,
CSV_GetUserInstrumentNameRemoved in version GeoCOM-TPS1100.
Gets the user defined name of the instrument.
- Returns:
- Params:
str: Instrument name.
- Return type:
- get_voltage() GeoComResponse[int][source]¶
RPC 5165,
CSV_GetVoltageAdded in version GeoCOM-VivaTPS.
Gets the instrument voltage.
- Returns:
- Params:
int: Instrument voltage [mV].
- Return type:
- get_voltage_battery() GeoComResponse[float][source]¶
RPC 5009,
CSV_GetVBatDeprecated since version GeoCOM-TPS1100: The command is still available, but should not be used with instruments that support the new check_power command.
Removed in version GeoCOM-TPS1200.
Gets the voltage of the power supply.
12,7 V < voltage full12,4 V < voltage < 12,7 V near full11,1 V < voltage < 12,4 V good10,5 V < voltage < 11,1 V emptyvoltage < 10,5 V powered off- Returns:
- Params:
float: Power source voltage [V].
- Return type:
- get_voltage_memory() GeoComResponse[float][source]¶
RPC 5010,
CSV_GetVMemRemoved in version GeoCOM-TPS1200.
Gets the voltage of the memory backup power supply.
Voltage above 3.1 V is OK.
- Returns:
- Params:
float: Power source voltage [V].
- Return type:
- list() GeoComResponse[tuple[str, str, int, int, str]][source]¶
RPC 5073,
CSV_ListAdded in version GeoCOM-TPS1200.
Gets the next job listing entry.
- Returns:
- Params:
str: Job name.
str: File name (-01: job, -02: code list).
int: Unknown.
int: Unknown.
str: Unknown.
- Return type:
See also
- set_datetime(time: datetime) GeoComResponse[None][source]¶
RPC 5007,
CSV_SetDateTimeSets the date and time on the instrument.
- Parameters:
- Return type:
See also
- set_datetime_new(time: datetime) GeoComResponse[None][source]¶
RPC 5050,
CSV_SetDateTime2Added in version GeoComp-VivaTPS.
Sets the date and time on the instrument.
- Parameters:
- Return type:
See also
- set_laserplummet_intensity(intensity: int) GeoComResponse[None][source]¶
RPC 5040,
CSV_SetLaserlotIntensAdded in version GeoCOM-VivaTPS.
Sets the intensity of the laser plummet.
- Parameters:
- Return type:
- set_preferred_powersource(source: PowerSource | str) GeoComResponse[None][source]¶
RPC 5163,
CSV_SetPreferredPowersourceAdded in version GeoCOM-VivaTPS.
Sets the preferred power source.
- Parameters:
- source: PowerSource | str¶
New preferred power source to set.
- set_user_instrument_name(name: str) GeoComResponse[None][source]¶
RPC 5005,
CSV_SetUserInstrumentNameRemoved in version GeoCOM-TPS1100.
- Parameters:
- Return type:
-
setup_listing(device: Device | str =
Device.INTERNAL) GeoComResponse[None][source]¶ RPC 5072,
CSV_SetupListAdded in version GeoCOM-TPS1200.
Prepares listing of the jobs in memory.
- Parameters:
- Returns:
- Error codes:
NOTOK: Setup already exists, previous setup was not aborted.
- Return type:
See also
- switch_charging(activate: bool) GeoComResponse[None][source]¶
RPC 5161,
CSV_SetChargingAdded in version GeoCOM-VivaTPS.
Sets the state of the charger.
- Parameters:
- Return type:
- switch_laserplummet(active: bool) GeoComResponse[None][source]¶
RPC 5043,
CSV_SwitchLaserlotAdded in version GeoCOM-VivaTPS.
Sets the state of the laser plummet.
- Parameters:
- Return type: