Enumerations

Device

class canlib.kvmlib.Device(value)[source]

kvmDEVICE_xxx

Device type, used to connect to a Memorator device.

MHYDRA = 0

Kvaser Memorator (2nd generation)

MHYDRA_EXT = 1

Kvaser Memorator (2nd generation) with extended data capabilities.

Error

class canlib.kvmlib.Error(value)[source]

An enumeration.

CONFIG_ERROR = -41

Configuration error.

CRC_ERROR = -21

CRC check failed.

DEVICE_COMM_ERROR = -37

Device communication error.

DISKFULL_DATA = -26

Disk full (data).

DISKFULL_DIR = -25

Disk full (directory).

DISK_ERROR = -24

General disk error.

EOF = -12

End of file found.

FAIL = -1

Generic error.

FATAL_ERROR = -31

Fatal error.

FILE_ERROR = -23

File I/O error.

FILE_NOT_FOUND = -33

File not found.

FILE_SYSTEM_CORRUPT = -28

File system corrupt.

FIRMWARE = -40

Firmware error.

ILLEGAL_REQUEST = -32

Illegal request.

LOGFILEOPEN = -8

Can’t find/open log file.

LOGFILEREAD = -14

Error while reading log file.

LOGFILEWRITE = -11

Error writing log file.

NOLOGMSG = -10

No log message found.

NOSTARTTIME = -9

Start time not found.

NOT_FORMATTED = -34

Disk not formatted.

NOT_IMPLEMENTED = -30

Not implemented.

NO_DISK = -13

No disk found.

OCCUPIED = -38

Device occupied.

OK = 0

OK!

PARAM = -3

Error in supplied parameters.

QUEUE_FULL = -20

Queue is full.

RESULT_TOO_BIG = -43

Result is too big for an out-parameter.

SECTOR_ERASED = -22

Sector unexpectadly erased.

SEQ_ERROR = -27

Unexpected sequence.

TIMEOUT = -36

Timeout.

UNSUPPORTED_VERSION = -29

Unsupported version.

USER_CANCEL = -39

User abort.

WRITE_PROT = -42

Disk is write protected.

WRONG_DISK_TYPE = -35

Wrong disk type.

FileType

class canlib.kvmlib.FileType(value)[source]

kvmFILE_xxx

KME file type, a binary file format representing log data.

KME24 = 0

Deprecated format, use KME40

KME25 = 1

Deprecated format, use KME40

KME40 = 2

Kvaser binary format (KME 4.0)

KME50 = 3

Kvaser binary format (KME 5.0)

KME60 = 4

Kvaser binary format (KME 6.0) (Experimental)

LoggerDataFormat

class canlib.kvmlib.LoggerDataFormat(value)[source]

kvmLDF_MAJOR_xxx

Logged data format (LDF) version.

MAJOR_CAN = 3

Used in Kvaser Memorator (2nd generation)

MAJOR_CAN64 = 5

Used in Kvaser Memorator (2nd generation) with extended data capabilities.

LogFileType

class canlib.kvmlib.enums.LogFileType(value)[source]

kvmLogFileType_xxx

New in version 1.11.

ALL = 1

A log file containing all frames.

ERR = 0

A log file containing only error frames with frames before and after.

SoftwareInfoItem

class canlib.kvmlib.enums.SoftwareInfoItem(value)[source]

kvm_SWINFO_xxx

Different types of version information that can be extracted using kvmDeviceGetSoftwareInfo(), used internally by Memorator.

CONFIG_VERSION_NEEDED = 5

Returns the version of the binary format the device requires (param.lif).

CPLD_VERSION = 6

Obsolete.

DRIVER = 2

Returns the used driver version information.

DRIVER_PRODUCT = 4

Obsolete. Returns the product version information.

FIRMWARE = 3

Returns the device firmware version information.

KVMLIB = 1

Returns the version of kvmlib.