@Namespace(value="dai") @NoOffset @Properties(inherit=depthai.class) public class DeviceBase extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
DeviceBase.Config
Device specific configuration
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_SYSTEM_INFORMATION_LOGGING_RATE_HZ |
static int |
DEFAULT_TIMESYNC_NUM_SAMPLES |
static boolean |
DEFAULT_TIMESYNC_RANDOM |
Constructor and Description |
---|
DeviceBase()
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(ByteBuffer nameOrDeviceId) |
DeviceBase(ByteBuffer nameOrDeviceId,
depthai.UsbSpeed maxUsbSpeed) |
DeviceBase(ByteBuffer nameOrDeviceId,
int maxUsbSpeed) |
DeviceBase(BytePointer nameOrDeviceId)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(BytePointer nameOrDeviceId,
depthai.UsbSpeed maxUsbSpeed)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(BytePointer nameOrDeviceId,
int maxUsbSpeed) |
DeviceBase(DeviceBase.Config config)
Connects to any available device with custom config.
|
DeviceBase(DeviceBase.Config config,
depthai.UsbSpeed maxUsbSpeed)
Connects to device specified by devInfo.
|
DeviceBase(DeviceBase.Config config,
DeviceInfo devInfo)
Connects to device 'devInfo' with custom config.
|
DeviceBase(DeviceBase.Config config,
DeviceInfo devInfo,
depthai.UsbSpeed maxUsbSpeed)
Connects to device specified by devInfo.
|
DeviceBase(DeviceBase.Config config,
DeviceInfo devInfo,
int maxUsbSpeed) |
DeviceBase(DeviceBase.Config config,
DeviceInfo devInfo,
Path pathToCmd) |
DeviceBase(DeviceBase.Config config,
DeviceInfo devInfo,
Path pathToCmd,
boolean dumpOnly)
Connects to device specified by devInfo.
|
DeviceBase(DeviceBase.Config config,
int maxUsbSpeed) |
DeviceBase(DeviceBase.Config config,
Path pathToCmd)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(DeviceInfo devInfo)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(DeviceInfo devInfo,
depthai.UsbSpeed maxUsbSpeed)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(DeviceInfo devInfo,
int maxUsbSpeed) |
DeviceBase(int version)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(int version,
depthai.UsbSpeed maxUsbSpeed)
Connects to device specified by devInfo.
|
DeviceBase(int version,
DeviceInfo devInfo)
Connects to device specified by devInfo.
|
DeviceBase(int version,
DeviceInfo devInfo,
depthai.UsbSpeed maxUsbSpeed)
Connects to device specified by devInfo.
|
DeviceBase(int version,
DeviceInfo devInfo,
int maxUsbSpeed) |
DeviceBase(int version,
DeviceInfo devInfo,
Path pathToCmd)
Connects to device specified by devInfo.
|
DeviceBase(int version,
int maxUsbSpeed) |
DeviceBase(int version,
Path pathToCmd)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(Pipeline pipeline)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(Pipeline pipeline,
depthai.UsbSpeed maxUsbSpeed)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(Pipeline pipeline,
DeviceInfo devInfo)
Connects to device specified by devInfo.
|
DeviceBase(Pipeline pipeline,
DeviceInfo devInfo,
depthai.UsbSpeed maxUsbSpeed)
Connects to device specified by devInfo.
|
DeviceBase(Pipeline pipeline,
DeviceInfo devInfo,
int maxUsbSpeed) |
DeviceBase(Pipeline pipeline,
DeviceInfo devInfo,
Path pathToCmd)
Connects to device specified by devInfo.
|
DeviceBase(Pipeline pipeline,
int maxUsbSpeed) |
DeviceBase(Pipeline pipeline,
Path pathToCmd)
Connects to any available device with a DEFAULT_SEARCH_TIME timeout.
|
DeviceBase(Pointer p)
Pointer cast constructor.
|
DeviceBase(String nameOrDeviceId) |
DeviceBase(String nameOrDeviceId,
depthai.UsbSpeed maxUsbSpeed) |
DeviceBase(String nameOrDeviceId,
int maxUsbSpeed) |
Modifier and Type | Method and Description |
---|---|
void |
_close()
Explicitly closes connection to device.
|
int |
addLogCallback(depthai.LogCallback callback)
Add a callback for device logging.
|
static Pointer |
DEFAULT_SEARCH_TIME()
Default search time for constructors which discover devices
|
static float |
DEFAULT_SYSTEM_INFORMATION_LOGGING_RATE_HZ()
Default rate at which system information is logged
|
static int |
DEFAULT_TIMESYNC_NUM_SAMPLES()
Default Timesync number of samples per sync
|
static Pointer |
DEFAULT_TIMESYNC_PERIOD()
Default Timesync period
|
static boolean |
DEFAULT_TIMESYNC_RANDOM()
Default Timesync packet interval randomness
|
static depthai.UsbSpeed |
DEFAULT_USB_SPEED()
Default UsbSpeed for device connection
|
void |
factoryResetCalibration()
Factory reset EEPROM data if factory backup is available.
|
boolean |
flashCalibration(CalibrationHandler calibrationDataHandler)
Stores the Calibration and Device information to the Device EEPROM
|
void |
flashCalibration2(CalibrationHandler calibrationDataHandler)
Stores the Calibration and Device information to the Device EEPROM
|
void |
flashEepromClear()
Destructive action, deletes User area EEPROM contents
Requires PROTECTED permissions
|
void |
flashFactoryCalibration(CalibrationHandler calibrationHandler)
Stores the Calibration and Device information to the Device EEPROM in Factory area
To perform this action, correct env variable must be set
|
void |
flashFactoryEepromClear()
Destructive action, deletes Factory area EEPROM contents
Requires FACTORY PROTECTED permissions
|
static DeviceInfo |
getAllAvailableDevices()
Returns all available devices
|
static DeviceInfo |
getAllConnectedDevices()
Returns information of all connected devices.
|
static Pointer |
getAnyAvailableDevice()
Gets any available device
|
static Pointer |
getAnyAvailableDevice(Pointer timeout)
Waits for any available device with a timeout
|
static Pointer |
getAnyAvailableDevice(Pointer timeout,
depthai.Callback cb)
Waits for any available device with a timeout
|
VersionOptional |
getBootloaderVersion()
Gets Bootloader version if it was booted through Bootloader
|
CameraBoardSocketStringMap |
getCameraSensorNames()
Get sensor names for cameras that are connected to the device
|
ChipTemperature |
getChipTemperature()
Retrieves current chip temperature as measured by device
|
MemoryInfo |
getCmxMemoryUsage()
Retrieves current CMX memory information from device
|
CameraFeatures |
getConnectedCameraFeatures()
Get cameras that are connected to the device with their features/properties
|
IntPointer |
getConnectedCameras()
Get cameras that are connected to the device
|
BytePointer |
getConnectedIMU()
Get connected IMU type
|
XLinkConnection |
getConnection()
Returns underlying XLinkConnection
|
IntPointer |
getConnectionInterfaces()
Get connection interfaces for device
|
CrashDump |
getCrashDump() |
CrashDump |
getCrashDump(boolean clearCrashDump)
Retrieves crash dump for debugging.
|
MemoryInfo |
getDdrMemoryUsage()
Retrieves current DDR memory information from device
|
static Pointer |
getDefaultSearchTime()
\brief Get the Default Search Time for finding devices
|
static Pointer |
getDeviceByMxId(ByteBuffer mxId) |
static Pointer |
getDeviceByMxId(BytePointer mxId)
Finds a device by MX ID.
|
static Pointer |
getDeviceByMxId(String mxId) |
DeviceInfo |
getDeviceInfo()
Get the Device Info object o the device which is currently running
|
BytePointer |
getDeviceName()
Get device name if available
|
static BytePointer |
getEmbeddedDeviceBinary(boolean usb2Mode) |
static BytePointer |
getEmbeddedDeviceBinary(boolean usb2Mode,
int version)
Gets device firmware binary for a specific OpenVINO version
|
static BytePointer |
getEmbeddedDeviceBinary(DeviceBase.Config config)
Gets device firmware binary for a specific configuration
|
Version |
getEmbeddedIMUFirmwareVersion()
Get embedded IMU firmware version to which IMU can be upgraded
|
static Pointer |
getFirstAvailableDevice() |
static Pointer |
getFirstAvailableDevice(boolean skipInvalidDevice)
Gets first available device.
|
static ProfilingData |
getGlobalProfilingData()
Get current global accumulated profiling data
|
BoolFloatTuple |
getIMUFirmwareUpdateStatus()
Get IMU firmware update status
|
Version |
getIMUFirmwareVersion()
Get connected IMU firmware version
|
StringIntIntTuple |
getIrDrivers()
Retrieves detected IR laser/LED drivers.
|
CpuUsage |
getLeonCssCpuUsage()
Retrieves average CSS Leon CPU usage
|
MemoryInfo |
getLeonCssHeapUsage()
Retrieves current CSS Leon CPU heap information from device
|
CpuUsage |
getLeonMssCpuUsage()
Retrieves average MSS Leon CPU usage
|
MemoryInfo |
getLeonMssHeapUsage()
Retrieves current MSS Leon CPU heap information from device
|
depthai.LogLevel |
getLogLevel()
Gets current logging severity level of the device.
|
depthai.LogLevel |
getLogOutputLevel()
Gets logging level which decides printing level to standard output.
|
BytePointer |
getMxId()
Get MxId of device
|
BytePointer |
getProductName()
Get product name if available
|
ProfilingData |
getProfilingData()
Get current accumulated profiling data
|
float |
getSystemInformationLoggingRate()
Gets current rate of system information logging ("info" severity) in Hz.
|
depthai.UsbSpeed |
getUsbSpeed()
Retrieves USB connection speed
|
int |
getXLinkChunkSize()
Gets current XLink chunk size.
|
boolean |
hasCrashDump()
Retrieves whether the is crash dump stored on device or not.
|
boolean |
isClosed()
Is the device already closed (or disconnected)
\warning This function is thread-unsafe and may return outdated incorrect values.
|
boolean |
isEepromAvailable()
Check if EEPROM is available
|
boolean |
isPipelineRunning()
Checks if devices pipeline is already running
|
CalibrationHandler |
readCalibration()
Fetches the EEPROM data from the device and loads it into CalibrationHandler object
If no calibration is flashed, it returns default
|
CalibrationHandler |
readCalibration2()
Fetches the EEPROM data from the device and loads it into CalibrationHandler object
|
CalibrationHandler |
readCalibrationOrDefault()
Fetches the EEPROM data from the device and loads it into CalibrationHandler object
If no calibration is flashed, it returns default
|
BytePointer |
readCalibrationRaw()
Fetches the raw EEPROM data from User area
|
CalibrationHandler |
readFactoryCalibration()
Fetches the EEPROM data from Factory area and loads it into CalibrationHandler object
|
CalibrationHandler |
readFactoryCalibrationOrDefault()
Fetches the EEPROM data from Factory area and loads it into CalibrationHandler object
If no calibration is flashed, it returns default
|
BytePointer |
readFactoryCalibrationRaw()
Fetches the raw EEPROM data from Factory area
|
boolean |
removeLogCallback(int callbackId)
Removes a callback
|
boolean |
setIrFloodLightBrightness(float mA)
Deprecated.
|
boolean |
setIrFloodLightBrightness(float mA,
int mask)
Deprecated.
|
boolean |
setIrFloodLightIntensity(float intensity) |
boolean |
setIrFloodLightIntensity(float intensity,
int mask)
Sets the intensity of the IR Flood Light.
|
boolean |
setIrLaserDotProjectorBrightness(float mA)
Deprecated.
|
boolean |
setIrLaserDotProjectorBrightness(float mA,
int mask)
Deprecated.
|
boolean |
setIrLaserDotProjectorIntensity(float intensity) |
boolean |
setIrLaserDotProjectorIntensity(float intensity,
int mask)
Sets the intensity of the IR Laser Dot Projector.
|
void |
setLogLevel(depthai.LogLevel level)
Sets the devices logging severity level.
|
void |
setLogLevel(int level) |
void |
setLogOutputLevel(depthai.LogLevel level)
Sets logging level which decides printing level to standard output.
|
void |
setLogOutputLevel(int level) |
void |
setSystemInformationLoggingRate(float rateHz)
Sets rate of system information logging ("info" severity).
|
void |
setTimesync(boolean enable)
Enables or disables Timesync service on device.
|
void |
setTimesync(Pointer period,
int numSamples,
boolean random)
Configures Timesync service on device.
|
void |
setXLinkChunkSize(int sizeBytes)
Sets the chunk size for splitting device-sent XLink packets.
|
boolean |
startIMUFirmwareUpdate() |
boolean |
startIMUFirmwareUpdate(boolean forceUpdate)
Starts IMU firmware update asynchronously only if IMU node is not running.
|
boolean |
startPipeline()
Deprecated.
|
boolean |
startPipeline(Pipeline pipeline)
Starts the execution of a given pipeline
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public static final float DEFAULT_SYSTEM_INFORMATION_LOGGING_RATE_HZ
public static final int DEFAULT_TIMESYNC_NUM_SAMPLES
public static final boolean DEFAULT_TIMESYNC_RANDOM
public DeviceBase(Pointer p)
Pointer(Pointer)
.public DeviceBase(@Const @ByRef Pipeline pipeline)
pipeline
- Pipeline to be executed on the devicepublic DeviceBase(@Const @ByRef Pipeline pipeline, depthai.UsbSpeed maxUsbSpeed)
pipeline
- Pipeline to be executed on the devicemaxUsbSpeed
- Maximum allowed USB speedpublic DeviceBase(@Const @ByRef Pipeline pipeline, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@Const @ByRef Pipeline pipeline, @Const @ByRef Path pathToCmd)
pipeline
- Pipeline to be executed on the devicepathToCmd
- Path to custom device firmwarepublic DeviceBase(@Const @ByRef Pipeline pipeline, @Const @ByRef DeviceInfo devInfo)
pipeline
- Pipeline to be executed on the devicedevInfo
- DeviceInfo which specifies which device to connect topublic DeviceBase(@Const @ByRef Pipeline pipeline, @Const @ByRef DeviceInfo devInfo, depthai.UsbSpeed maxUsbSpeed)
pipeline
- Pipeline to be executed on the devicedevInfo
- DeviceInfo which specifies which device to connect tomaxUsbSpeed
- Maximum allowed USB speedpublic DeviceBase(@Const @ByRef Pipeline pipeline, @Const @ByRef DeviceInfo devInfo, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@Const @ByRef Pipeline pipeline, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd)
pipeline
- Pipeline to be executed on the devicedevInfo
- DeviceInfo which specifies which device to connect topathToCmd
- Path to custom device firmwarepublic DeviceBase()
public DeviceBase(@Cast(value="dai::OpenVINO::Version") int version)
version
- OpenVINO version which the device will be booted with.public DeviceBase(@Cast(value="dai::OpenVINO::Version") int version, depthai.UsbSpeed maxUsbSpeed)
version
- OpenVINO version which the device will be booted withmaxUsbSpeed
- Maximum allowed USB speedpublic DeviceBase(@Cast(value="dai::OpenVINO::Version") int version, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@Cast(value="dai::OpenVINO::Version") int version, @Const @ByRef Path pathToCmd)
version
- OpenVINO version which the device will be booted withpathToCmd
- Path to custom device firmwarepublic DeviceBase(@Cast(value="dai::OpenVINO::Version") int version, @Const @ByRef DeviceInfo devInfo)
version
- OpenVINO version which the device will be booted withdevInfo
- DeviceInfo which specifies which device to connect topublic DeviceBase(@Cast(value="dai::OpenVINO::Version") int version, @Const @ByRef DeviceInfo devInfo, depthai.UsbSpeed maxUsbSpeed)
version
- OpenVINO version which the device will be booted withdevInfo
- DeviceInfo which specifies which device to connect tomaxUsbSpeed
- Maximum allowed USB speedpublic DeviceBase(@Cast(value="dai::OpenVINO::Version") int version, @Const @ByRef DeviceInfo devInfo, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@Cast(value="dai::OpenVINO::Version") int version, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd)
version
- OpenVINO version which the device will be booted withdevInfo
- DeviceInfo which specifies which device to connect topathToCmd
- Path to custom device firmwarepublic DeviceBase(@ByVal DeviceBase.Config config)
config
- Device custom configuration to boot withpublic DeviceBase(@ByVal DeviceBase.Config config, @Const @ByRef DeviceInfo devInfo)
config
- Device custom configuration to boot withdevInfo
- DeviceInfo which specifies which device to connect topublic DeviceBase(@Const @ByRef DeviceInfo devInfo)
devInfo
- DeviceInfo which specifies which device to connect topublic DeviceBase(@Const @ByRef DeviceInfo devInfo, depthai.UsbSpeed maxUsbSpeed)
devInfo
- DeviceInfo which specifies which device to connect tomaxUsbSpeed
- Maximum allowed USB speedpublic DeviceBase(@Const @ByRef DeviceInfo devInfo, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@StdString BytePointer nameOrDeviceId)
nameOrDeviceId
- Creates DeviceInfo with nameOrDeviceId to connect topublic DeviceBase(@StdString ByteBuffer nameOrDeviceId)
public DeviceBase(@StdString String nameOrDeviceId)
public DeviceBase(@StdString BytePointer nameOrDeviceId, depthai.UsbSpeed maxUsbSpeed)
nameOrDeviceId
- Creates DeviceInfo with nameOrDeviceId to connect tomaxUsbSpeed
- Maximum allowed USB speedpublic DeviceBase(@StdString ByteBuffer nameOrDeviceId, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@StdString String nameOrDeviceId, depthai.UsbSpeed maxUsbSpeed)
public DeviceBase(@StdString BytePointer nameOrDeviceId, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@StdString ByteBuffer nameOrDeviceId, depthai.UsbSpeed maxUsbSpeed)
public DeviceBase(@StdString String nameOrDeviceId, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@ByVal DeviceBase.Config config, depthai.UsbSpeed maxUsbSpeed)
config
- Config with which the device will be booted withmaxUsbSpeed
- Maximum allowed USB speedpublic DeviceBase(@ByVal DeviceBase.Config config, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@ByVal DeviceBase.Config config, @Const @ByRef Path pathToCmd)
config
- Config with which the device will be booted withpathToCmd
- Path to custom device firmwarepublic DeviceBase(@ByVal DeviceBase.Config config, @Const @ByRef DeviceInfo devInfo, depthai.UsbSpeed maxUsbSpeed)
config
- Config with which the device will be booted withdevInfo
- DeviceInfo which specifies which device to connect tomaxUsbSpeed
- Maximum allowed USB speedpublic DeviceBase(@ByVal DeviceBase.Config config, @Const @ByRef DeviceInfo devInfo, @Cast(value="dai::UsbSpeed") int maxUsbSpeed)
public DeviceBase(@ByVal DeviceBase.Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd, @Cast(value="bool") boolean dumpOnly)
config
- Config with which the device will be booted withdevInfo
- DeviceInfo which specifies which device to connect topathToCmd
- Path to custom device firmwaredumpOnly
- If true only the minimal connection is established to retrieve the crash dumppublic DeviceBase(@ByVal DeviceBase.Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd)
@MemberGetter @ByRef @Cast(value="const std::chrono::seconds*") public static Pointer DEFAULT_SEARCH_TIME()
@MemberGetter public static float DEFAULT_SYSTEM_INFORMATION_LOGGING_RATE_HZ()
@MemberGetter public static depthai.UsbSpeed DEFAULT_USB_SPEED()
@MemberGetter @ByRef @Cast(value="const std::chrono::milliseconds*") public static Pointer DEFAULT_TIMESYNC_PERIOD()
@MemberGetter public static int DEFAULT_TIMESYNC_NUM_SAMPLES()
@MemberGetter @Cast(value="const bool") public static boolean DEFAULT_TIMESYNC_RANDOM()
@ByVal @Cast(value="std::chrono::milliseconds*") public static Pointer getDefaultSearchTime()
@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getAnyAvailableDevice(@ByVal @Cast(value="std::chrono::milliseconds*") Pointer timeout)
timeout
- duration of time to wait for the any device@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getAnyAvailableDevice()
@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getAnyAvailableDevice(@ByVal @Cast(value="std::chrono::milliseconds*") Pointer timeout, depthai.Callback cb)
timeout
- duration of time to wait for the any devicecb
- callback function called between pooling intervals@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getFirstAvailableDevice(@Cast(value="bool") boolean skipInvalidDevice)
@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getFirstAvailableDevice()
@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getDeviceByMxId(@StdString BytePointer mxId)
mxId
- MyraidX ID which uniquely specifies a device@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getDeviceByMxId(@StdString ByteBuffer mxId)
@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getDeviceByMxId(@StdString String mxId)
@StdVector public static DeviceInfo getAllAvailableDevices()
@StdVector public static DeviceInfo getAllConnectedDevices()
@Cast(value="std::uint8_t*") @StdVector public static BytePointer getEmbeddedDeviceBinary(@Cast(value="bool") boolean usb2Mode, @Cast(value="dai::OpenVINO::Version") int version)
usb2Mode
- USB2 mode firmwareversion
- Version of OpenVINO which firmware will support@Cast(value="std::uint8_t*") @StdVector public static BytePointer getEmbeddedDeviceBinary(@Cast(value="bool") boolean usb2Mode)
@Cast(value="std::uint8_t*") @StdVector public static BytePointer getEmbeddedDeviceBinary(@ByVal DeviceBase.Config config)
config
- FW with applied configuration@ByVal public static ProfilingData getGlobalProfilingData()
@ByVal public VersionOptional getBootloaderVersion()
@Cast(value="bool") public boolean isPipelineRunning()
@Cast(value="bool") @Deprecated public boolean startPipeline()
@Cast(value="bool") public boolean startPipeline(@Const @ByRef Pipeline pipeline)
pipeline
- OpenVINO version of the pipeline must match the one which the device was booted with.public void setLogLevel(depthai.LogLevel level)
level
- Logging severitypublic depthai.LogLevel getLogLevel()
public void setXLinkChunkSize(int sizeBytes)
sizeBytes
- XLink chunk size in bytespublic int getXLinkChunkSize()
@ByVal public DeviceInfo getDeviceInfo()
@StdString public BytePointer getDeviceName()
@StdString public BytePointer getProductName()
@StdString public BytePointer getMxId()
public void setLogOutputLevel(depthai.LogLevel level)
level
- Standard output printing severitypublic depthai.LogLevel getLogOutputLevel()
@Cast(value="bool") @Deprecated public boolean setIrLaserDotProjectorBrightness(float mA, int mask)
left
camera STROBE, aligned to start of exposure.
The emitter is turned off by defaultmA
- Current in mA that will determine brightness, 0 or negative to turn offmask
- Optional mask to modify only Left (0x1) or Right (0x2) sides on OAK-D-Pro-W-DEV@Cast(value="bool") @Deprecated public boolean setIrLaserDotProjectorBrightness(float mA)
@Cast(value="bool") @Deprecated public boolean setIrFloodLightBrightness(float mA, int mask)
left
camera STROBE, aligned to start of exposure.
If the dot projector is also enabled, its lower duty cycle limits take precedence.
The emitter is turned off by defaultmA
- Current in mA that will determine brightness, 0 or negative to turn offmask
- Optional mask to modify only Left (0x1) or Right (0x2) sides on OAK-D-Pro-W-DEV@Cast(value="bool") @Deprecated public boolean setIrFloodLightBrightness(float mA)
@Cast(value="bool") public boolean setIrLaserDotProjectorIntensity(float intensity, int mask)
left
camera STROBE, aligned to start of exposure.
The emitter is turned off by defaultintensity
- Intensity on range 0 to 1, that will determine brightness. 0 or negative to turn offmask
- Optional mask to modify only Left (0x1) or Right (0x2) sides on OAK-D-Pro-W-DEV@Cast(value="bool") public boolean setIrLaserDotProjectorIntensity(float intensity)
@Cast(value="bool") public boolean setIrFloodLightIntensity(float intensity, int mask)
left
camera STROBE, aligned to start of exposure.
The emitter is turned off by defaultintensity
- Intensity on range 0 to 1, that will determine brightness, 0 or negative to turn offmask
- Optional mask to modify only Left (0x1) or Right (0x2) sides on OAK-D-Pro-W-DEV@Cast(value="bool") public boolean setIrFloodLightIntensity(float intensity)
@StdVector public StringIntIntTuple getIrDrivers()
[{"LM3644", 2, 0x63}]
@ByVal public CrashDump getCrashDump(@Cast(value="bool") boolean clearCrashDump)
@Cast(value="bool") public boolean hasCrashDump()
@ByVal public ProfilingData getProfilingData()
public int addLogCallback(depthai.LogCallback callback)
callback
- Callback to call whenever a log message arrives@Cast(value="bool") public boolean removeLogCallback(int callbackId)
callbackId
- Id of callback to be removedpublic void setSystemInformationLoggingRate(float rateHz)
rateHz
- Logging rate in Hzpublic float getSystemInformationLoggingRate()
@StdVector @Cast(value="dai::CameraBoardSocket*") public IntPointer getConnectedCameras()
@StdVector @Cast(value="dai::ConnectionInterface*") public IntPointer getConnectionInterfaces()
@StdVector public CameraFeatures getConnectedCameraFeatures()
@ByVal public CameraBoardSocketStringMap getCameraSensorNames()
@StdString public BytePointer getConnectedIMU()
@ByVal public Version getIMUFirmwareVersion()
@ByVal public Version getEmbeddedIMUFirmwareVersion()
@Cast(value="bool") public boolean startIMUFirmwareUpdate(@Cast(value="bool") boolean forceUpdate)
forceUpdate
- Force firmware update or not. Will perform FW update regardless of current version and embedded firmware version.@ByVal public BoolFloatTuple getIMUFirmwareUpdateStatus()
@ByVal public MemoryInfo getDdrMemoryUsage()
@ByVal public MemoryInfo getCmxMemoryUsage()
@ByVal public MemoryInfo getLeonCssHeapUsage()
@ByVal public MemoryInfo getLeonMssHeapUsage()
@ByVal public ChipTemperature getChipTemperature()
@ByVal public CpuUsage getLeonCssCpuUsage()
@ByVal public CpuUsage getLeonMssCpuUsage()
@Cast(value="bool") public boolean isEepromAvailable()
@Cast(value="bool") public boolean flashCalibration(@ByVal CalibrationHandler calibrationDataHandler)
calibrationObj
- CalibrationHandler object which is loaded with calibration information.public void flashCalibration2(@ByVal CalibrationHandler calibrationDataHandler)
calibrationObj
- CalibrationHandler object which is loaded with calibration information.std::runtime_exception
- if failed to flash the calibration@ByVal public CalibrationHandler readCalibration()
@ByVal public CalibrationHandler readCalibration2()
std::runtime_exception
- if no calibration is flashed@ByVal public CalibrationHandler readCalibrationOrDefault()
public void factoryResetCalibration()
std::runtime_exception
- If factory reset was unsuccessfulpublic void flashFactoryCalibration(@ByVal CalibrationHandler calibrationHandler)
std::runtime_exception
- if failed to flash the calibrationpublic void flashEepromClear()
std::runtime_exception
- if failed to flash the calibrationpublic void flashFactoryEepromClear()
std::runtime_exception
- if failed to flash the calibration@ByVal public CalibrationHandler readFactoryCalibration()
std::runtime_exception
- if no calibration is flashed@ByVal public CalibrationHandler readFactoryCalibrationOrDefault()
@Cast(value="std::uint8_t*") @StdVector public BytePointer readCalibrationRaw()
std::runtime_exception
- if any error occurred@Cast(value="std::uint8_t*") @StdVector public BytePointer readFactoryCalibrationRaw()
std::runtime_exception
- if any error occurredpublic depthai.UsbSpeed getUsbSpeed()
public void setTimesync(@ByVal @Cast(value="std::chrono::milliseconds*") Pointer period, int numSamples, @Cast(value="bool") boolean random)
period
- Interval between timesync runsnumSamples
- Number of timesync samples per run which are used to compute a better value. Set to zero to disable timesyncrandom
- If true partial timesync requests will be performed at random intervals, otherwise at fixed intervalspublic void setTimesync(@Cast(value="bool") boolean enable)
enable
- Enables or disables consistent timesyncing@Name(value="close") public void _close()
@Cast(value="bool") public boolean isClosed()
@SharedPtr public XLinkConnection getConnection()
Copyright © 2024. All rights reserved.