BltTofApi Error codes

Aus BECOM Systems Support
Version vom 31. Oktober 2023, 09:03 Uhr von Peter (Diskussion | Beiträge) (1 Version importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

BTAgetVersion

This function can be called without a handle and gives information about the library.

BTA_StatusOutOfMemory -17
  • The given buildDateTime string is not long enough
  • The given supportedDeviceTypes array is not long enough
BTA_StatusRuntimeError -16
  • There was an error while copying the information into the given buffers.


BTAinitConfig

BTA_StatusInvalidParameter -1
  • The given config structure is not valid


BTAopen

BTA_StatusOutOfMemory -17
  • Not enough memory for the SDK instance
BTA_StatusRuntimeError -16
  • A thread could not be started
  • A mutex could not be initialized
BTA_StatusDeviceUnreachable -6
  • The connection attempt was not successful
  • The given serialNumer does not match any of the connected devices
BTA_StatusCommunicationError -24
  • The connection was established, but communication failed
BTA_StatusInvalidParameter -1
  • The given config struct pointer is not valid
  • The given handle pointer is not valid
  • The non-default calibration file could not be found or is not a valid calibration file
BTA_StatusNotSupported -21
  • The given frameMode is not supported by the device


BTAclose

BTA_StatusInvalidParameter -1
  • The given handle is invalid
BTA_StatusRuntimeError -16
  • A thread could not be stopped
  • A mutex could not be closed
  • A The resources are still under usage in another thread


BTAgetDeviceInfo

BTA_StatusInvalidParameter -1
  • The given handle is not valid
BTA_StatusOutOfMemory -17
  • The device info struct could not be allocated
BTA_StatusCommunicationError -24
  • There was an error when reading information from the camera


BTAsetKeepAliveMsgInterval

BTA_StatusInvalidParameter -1
  • The given handle is not valid
BTA_StatusIllegalOperation -2
  • BTAclose was called from a different thread
BTA_StatusInvalidProtocolVersion -14
  • The camera's protocol version is not supported


BTAsetControlCrcEnabled

BTA_StatusInvalidParameter -1
  • The given handle is not valid
BTA_StatusIllegalOperation -2
  • BTAclose was called from a different thread


BTAsetFrameMode

BTA_StatusInvalidParameter -1
  • The given handle is not valid
BTA_StatusIllegalOperation -2
  • BTAclose was called from a different thread
BTA_StatusNotSupported -21
  • The given frameMode is not supported by the device
BTA_StatusCommunicationError -24
  • An error occured while accessing registers on the devide


BTAsendReset

BTA_StatusInvalidParameter -1
  • The given handle is not valid
BTA_StatusIllegalOperation -2
  • BTAclose was called from a different thread
BTA_StatusNotConnected -12
  • The connection to the device has been lost
BTA_StatusDeviceUnreachable -6
  • Reading from or writing to the device resulted in an error
BTA_StatusProtocolViolation -4
  • Something went wrong internally, please contact Bluetechnix support
BTA_StatusInvalidAddress -10
  • The given register address is not valid
BTA_StatusIllegalOperation -2
  • Reading/writing the given register is not allowed
BTA_StatusInvalidProtocolVersion -14
  • The camera's protocol version is not supported


BTAgetFrame

BTA_StatusInvalidParameter -1
  • The given handle is not valid
BTA_StatusIllegalOperation -2
  • BTAclose was called from a different thread
BTA_StatusRuntimeError -16
  • Queueing is not configured properly
  • Device could not convert raw data
BTA_StatusNotSupported -21
  • The data received from the device can not be used (with current frameMode)
BTA_StatusTimeOut -5
  • No frame received from device within timeout
BTA_StatusOutOfMemory -17
  • Could not allocate memory for internal use
BTA_StatusCommunicationError -24
  • An error occured while accessing registers on the devide
  • P100Lib: A low level USB error occurred. Consider closing [BTAclose()] the device and reopening it.
BTA_StatusUnexpectedDataFormat -26
  • The device is not configured correctly for the currently set frame mode

BTAgetIntegrationTime

same as BTAreadRegister


BTAsetIntegrationTime

same as BTAwriteRegister

BTA_StatusInvalidParameter -1
  • The given integration time is not valid


BTAgetFrameRate

same as BTAreadRegister


BTAsetFrameRate

same as BTAwriteRegister

BTA_StatusInvalidParameter -1
  • The given frame rate time is not valid


BTAgetGlobalOffset

same as BTAreadRegister

BTA_StatusInvalidConfiguration -23
  • For the current device configuration (e.g. modulation frequency) the operation can not be performed


BTAsetGlobalOffset

same as BTAreadRegister same as BTAwriteRegister

BTA_StatusInvalidParameter -1
  • The given offset is not valid


BTAreadRegister

BTA_StatusInvalidParameter -1
  • The given handle is not valid
  • The given registerCount is not valid
BTA_StatusIllegalOperation -2
  • BTAclose was called from a different thread
BTA_StatusNotConnected -12
  • The connection to the device has been lost
BTA_StatusDeviceUnreachable - 6
  • Reading from or writing to the device resulted in an error
BTA_StatusProtocolViolation -4
  • Something went wrong internally, please contact Bluetechnix support
BTA_StatusInvalidAddress -10
  • The given register address is not valid
BTA_StatusIllegalOperation -2
  • Reading/writing the given register is not allowed
BTA_StatusOutOfMemory -17
  • Could not allocate memory
BTA_StatusInvalidProtocolVersion -14
  • The camera's protocol version is not supported


BTAwriteRegister

BTA_StatusInvalidParameter -1
  • The given handle is not valid
  • The given registerCount is not valid
  • The given register value is not valid
BTA_StatusIllegalOperation -2
  • BTAclose was called from a different thread
BTA_StatusNotConnected -12
  • The connection to the device has been lost
BTA_StatusDeviceUnreachable -6
  • Reading from or writing to the device resulted in an error
BTA_StatusProtocolViolation -4
  • Something went wrong internally, please contact Bluetechnix support
BTA_StatusInvalidAddress -10
  • The given register address is not valid
BTA_StatusIllegalOperation -2
  • Reading/writing the given register is not allowed
BTA_StatusInvalidProtocolVersion -14
  • The camera's protocol version is not supported


BTAflashUpdate

BTA_StatusInvalidParameter -1
  • The given handle is not valid
  • The given flash target is not valid
  • The given flash ID is not valid
BTA_StatusIllegalOperation -2
  • BTAclose was called from a different thread
BTA_StatusNotConnected -12
  • The connection to the device has been lost
BTA_StatusDeviceUnreachable -6
  • Reading from or writing to the device resulted in an error
BTA_StatusProtocolViolation -4
  • Something went wrong internally, please contact Bluetechnix support
BTA_StatusInvalidAddress -10
  • The given register address is not valid
BTA_StatusIllegalOperation -2
  • Reading/writing the given register is not allowed
BTA_StatusRuntimeError -16
  • The device did not respond as expected during the update process
BTA_StatusCommunicationError -24
  • There was an error during the file transmission
BTA_StatusOutOfMemory -17
  • Not enough memory for performing the update process
BTA_StatusFlashingFailed -22
  • Flash Update failed
BTA_StatusInvalidProtocolVersion -14
  • The camera's protocol version is not supported
BTA_StatusInvalidFile -25
  • The provided file is not suitable


BTAfirmwareUpdate

same as BTAflashUpdate

BTA_StatusInvalidParameter -1
  • The given handle is not valid
  • The given file name is not valid
BTA_StatusOutOfMemory -17
  • Not enough memory for reading in the firmware file
BTA_StatusRuntimeError -16
  • The file could not be (fully) read


BTAgetDistances

BTA_StatusInvalidParameter -1
  • The given frame or a given buffer is not valid
BTA_StatusInvalidDataFormat -15
  • The given frame does not contain distance data (you might need to change the FrameMode by using BTAsetFrameMode)

BTAgetAmplitudes

BTA_StatusInvalidParameter -1
  • The given frame or a given buffer is not valid
BTA_StatusInvalidDataFormat -15
  • The given frame does not contain amplitude data (you might need to change the FrameMode by using BTAsetFrameMode)

BTAgetFlags

BTA_StatusInvalidParameter -1
  • The given frame or a given buffer is not valid
BTA_StatusInvalidDataFormat -15
  • The given frame does not contain flag data (you might need to change the FrameMode by using BTAsetFrameMode)

BTAgetXYZcoordinates

BTA_StatusInvalidParameter -1
  • The given frame or a given buffer is not valid
BTA_StatusInvalidDataFormat -15
  • The given frame does not contain x/y/z data (you might need to change the FrameMode by using BTAsetFrameMode)

BTAfreeFrame

BTA_StatusInvalidParameter -1
  • The given frame is not valid


BTAfreeDeviceInfo

BTA_StatusInvalidParameter -1
  • The given deviceInfo is not valid


BTAwriteCurrentConfigToNvm

same as BTAwriteRegister and BTAreadRegister

BTA_StatusRuntimeError -16
  • The device reports, that the write process was not successful


BTArestoreDefaultConfig

same as BTAwriteRegister and BTAreadRegister

BTA_StatusRuntimeError -16
  • The device reports, that the restore process was not successful