IDB#
- class stixcore.idb.idb.IDB(filename)[source]#
Bases:
objectClass provides reading functionality to a IDB (definition of TM/TC packet structures).
Attributes Summary
Get the Version of the IDB.
Methods Summary
close()Close the IDB connection.
generate_calibration_name(prefix, id[, suffix])get list of all SPIDs and short description
get_calibration_curve(param)calibration curve defined in CAP database
get_calibration_polynomial(mcf_ident)gets calibration polynomial information for a given MCF_IDENT
Get the path to the connected IDB file.
get the version string of the IDB
get_packet_pi1_val_position(service_type, ...)Get offset and width for optional PI1_VAL for the packet defined by service type and subtype.
get_packet_type_info(packet_type, packet_subtype)Identify packet type using service, service subtype and information in IDB table PID.
Get scos long description.
get_params_for_calibration(service_type, ...)get_requestid_structure(service_type, ...)Create a dynamic parse tree for the specified TM packet.
get_s2k_parameter_types(ptc, pfc)gets parameter type
get_scos_description(name)get scos long description
get_spid_info(spid)Get SPID description.
get_static_structure(service_type, ...)Create a static parse struct for the specified TM packet.
get_telecommand_info(service_type, ...[, ...])get TC description for a header
Get the structure of a telecommand by its name.
Get telemetry data information.
get_variable_structure(service_type, ...[, ...])Create a dynamic parse tree for the specified TM packet.
Is the reader connected to the IDB.
Determines if the TM structure is of variable length
tcparam_interpret(ref, raw)interpret telecommand parameter by using the table PAS
textual_interpret(pcf_curtx, raw_value)gets a name for a TXP_NUMBR from TXP for given raw_value
Attributes Documentation
Methods Documentation
- get_calibration_curve(param)[source]#
calibration curve defined in CAP database
- Parameters:
param (
IDBCalibrationParameter)- Returns:
IDBCalibrationCurve– calibration curve
- get_calibration_polynomial(mcf_ident)[source]#
gets calibration polynomial information for a given MCF_IDENT
- Parameters:
mcf_ident (
str) – TXP_NUMBR like ‘CIX00036TM’- Returns:
(MCF_POL1, MCF_POL2, MCF_POL3, MCF_POL4, MCF_POL5)
- get_idb_filename()[source]#
Get the path to the connected IDB file.
- Returns:
os.path– the path to the IDB file
- get_idb_version()[source]#
get the version string of the IDB
- Returns:
str– version label like “1.1.3”
- get_packet_pi1_val_position(service_type, service_subtype)[source]#
Get offset and width for optional PI1_VAL for the packet defined by service type and subtype.
- Parameters:
- Returns:
IDBPi1ValPositionor None
- get_packet_type_info(packet_type, packet_subtype, pi1_val=None)[source]#
Identify packet type using service, service subtype and information in IDB table PID.
- Parameters:
- Returns:
IDBPacketTypeInfoorNoneif not found
- get_parameter_description(name)[source]#
Get scos long description.
- Parameters:
name (
str)- Returns:
´str´ – a long description
- get_params_for_calibration(service_type, service_subtype, sp1_val=None, pcf_name=None, pcf_curtx=None)[source]#
- get_requestid_structure(service_type, service_subtype, sp1_val)[source]#
Create a dynamic parse tree for the specified TM packet.
- get_scos_description(name)[source]#
get scos long description
- Parameters:
name (´str´) – the scos_name like ‘NIX00354’
- Returns:
´str´ – the long description
- get_static_structure(service_type, service_subtype, sp1_val)[source]#
Create a static parse struct for the specified TM packet.
- get_telecommand_info(service_type, service_subtype, subtype=None)[source]#
get TC description for a header
- get_telecommand_structure(name)[source]#
Get the structure of a telecommand by its name. The structure will be used to decode the TC packet.
- Parameters:
name (
str) – a structure name like ‘ZIX06009’- Returns:
tm structure
- get_telemetry_description(spid)[source]#
Get telemetry data information.
- Parameters:
spid (
int)- Returns:
(SW_DESCR, tpcf_name)
- get_variable_structure(service_type, service_subtype, sp1_val=None)[source]#
Create a dynamic parse tree for the specified TM packet.
- is_variable_length_telecommand(name)[source]#
Determines if the TM structure is of variable length
- Parameters:
name (
str) – a structure name like ‘ZIX06009’- Returns:
True|False