Power Detector

class tlkcore.tmydev.DevPD.PD(*parent)
getVoltageValue(freq)

Get measured voltage (mV) from the power detector

Parameters:

freq (float) – Frequency with unit: GHz

Returns:

RetData
  • float: Voltage value with unit: mV

Return type:

RetType

getPowerValue(freq)

Get measured power(dBm) from the power detector

Parameters:

freq (float) – frequency with unit: GHz

Returns:

RetData
  • float: Power value with unit: dBm

Return type:

RetType

Examples

>>> sn = "PD-24070101"
>>> value = service.getPowerValue(sn, 28).RetData
>>> print(value)
-17.4
setCaliConfig(config: dict)

Set PD calibration config for specific frequency config with dict format

Parameters:

config (dict[str, dict[str, float]]) –

str (key named “xxGHz”), and value still
dict:
  • lowPower (str): Minimum power value with unit: dBm

  • lowVolt (str): Minimum voltage value with unit: mV

  • highPower (str): MAX power value with unit: dBm

  • highVolt (str): MAX voltage value with unit: mV

Return type:

RetType

Examples

sn = "PD-24070101"
cal_config = {
    "20GHz": {
        "lowPower": -36,
        "lowVolt": 40.46,
        "highPower": -5,
        "highVolt": 936.36
    },
    "30GHz": {
        "lowPower": -36,
        "lowVolt": 83.81,
        "highPower": -5,
        "highVolt": 979.71
    }
}
service.setCaliConfig(sn, cal_config)
getDFUSupport()

Check if the device supports Device Firmware Upgrade (DFU).

Returns:

RetData
  • bool: True if DFU is supported, False otherwise.

Return type:

RetType

getDevTypeName()

Retrieve current name of device

Returns:

Name of device

Examples

>>> service.getDevTypeName(sn)
'RIS'
queryFWVer()

Query FW version of the device.

Returns:

RetData
  • str: FW version.

Return type:

RetType

Examples

>>> fw_version = service.queryFWVer(sn).RetData
>>> print(f"FW Version: {fw_version}")
v1.0.0
queryHWVer()

Query the hardware version of the device.

Returns:

RetData
  • str: The hardware version as a string.

Return type:

RetType

Examples

  • Query the hardware version of the device
    >>> hw_version = service.queryHWVer(sn).RetData
    >>> print(f"Hardware Version: {hw_version}")
    
querySN()

Query the serial number of the device.

Returns:

RetData
  • str: The serial number of the device.

Return type:

RetType

reboot()

Reboot of the device.

Returns:

An object containing the result of the reboot process.
  • OK: If the reboot process completes successfully.

Return type:

RetType