Enumerations¶
Accessibility¶
- class canlib.kvrlib.Accessibility(value)[source]¶
kvrAccessibility_xxx
Remote device accessability status.
- PRIVATE = 3¶
Private (invisible, password needed to connect).
- PROTECTED = 2¶
Protected (visible for all, password needed to connect).
- PUBLIC = 1¶
Public (visible for all, no password required to connect).
- UNKNOWN = 0¶
Unknown (e.g., no reply from device).
AddressType¶
- class canlib.kvrlib.AddressType(value)[source]¶
kvrAddressType_xxx
Type of device address.
Note
Ports are currently not used.
- IPV4 = 1¶
IP v.4 address.
- IPV4_PORT = 3¶
IP v.4 address with tcp-port.
- IPV6 = 2¶
IP v.6 address.
- MAC = 4¶
Ethernet MAC address.
- UNKNOWN = 0¶
Unknown (e.g., no reply from device).
AddressTypeFlag¶
Availability¶
BasicServiceSet¶
ConfigMode¶
DeviceUsage¶
- class canlib.kvrlib.DeviceUsage(value)[source]¶
kvrDeviceUsage_xxx
Remote device usage status.
- CONFIG = 4¶
Device is being configured via USB.
- FREE = 1¶
Not in use.
- REMOTE = 2¶
Connected to a PC (as a remote device).
- UNKNOWN = 0¶
Unknown (e.g., no reply from device).
- USB = 3¶
Connected via USB cable.
Error¶
- class canlib.kvrlib.Error(value)[source]¶
An enumeration.
- BLANK = -6¶
List was not set or no more results.
- BUFFER_TOO_SMALL = -15¶
The buffer provided was not large enough to contain the requested data.
- CHECKSUM = -3¶
Checksum problem.
- DUPLICATED_DEVICE = -13¶
There are duplicates in the device list.
- GENERIC = -2¶
Generic error.
- NOT_IMPLEMENTED = -9¶
Function is not yet implemented.
- NOT_INITIALIZED = -1¶
kvrlib has not been initialized.
- NO_ANSWER = -8¶
No answer arrived within given timeout.
- NO_DEVICE = -7¶
Remote device is unreachable.
- NO_SERVICE = -12¶
The helper service is not running.
- OK = 0¶
OK!
- OUT_OF_SPACE = -11¶
Out of space, eg. to many open handles, to small buffer.
- PARAMETER = -4¶
Error in supplied in parameters.
- PASSWORD = -5¶
Supplied password was wrong.
- PERMISSION_DENIED = -10¶
Permission denied.
- XML_VALIDATION = -14¶
XML-file validation failed.
NetworkState¶
- class canlib.kvrlib.NetworkState(value)[source]¶
kvrNetworkState_xxx
States for network connection.
- AUTHENTICATING = 8¶
EAPOL handshake ongoing.
- AUTHENTICATION_FAILED = 9¶
Authentication have failed.
- CONNECTED = 7¶
Network is reached.
- CONNECTING = 6¶
Waiting for connections (ad-hoc).
- CONNECTION_DELAY = 5¶
Delay during connection (ad-hoc).
- FAILED_MIC = 11¶
MIC verification (EAPOL-key) failed.
- INITIALIZING = 3¶
Started, waiting for initialization.
- INVALID = 1¶
Network hardware has been disabled.
- NOT_CONNECTED = 4¶
No connection (may auto-connect).
- ONLINE = 10¶
Authentication completed.
- STARTUP = 2¶
Configuring network hardware.
- UNKNOWN = 0¶
Bad state, should never be reported.
RegulatoryDomain¶
RemoteState¶
- class canlib.kvrlib.RemoteState(value)[source]¶
kvrRemoteState_xxx
State of connection to device.
- AVAILABLE = 1¶
Tries to ping known device.
- CLOSING = 10¶
Will stop communication.
- CONFIG_CHANGED = 13¶
Same as UNWILLING.
- CONNECTION_DOWN = 5¶
Will try and restore connection.
- CONNECTION_UP = 6¶
Device connected, heartbeat up.
- DISCOVERED = 2¶
Currently not used.
- INSTALLING = 15¶
Driver installation is in progress.
- REDISCOVER = 7¶
Trying to talk to device.
- REDISCOVER_PENDING = 9¶
Will do rediscover in a moment.
- REMOVE_ME = 11¶
Device removed, it will be stopped.
- STANDBY = 12¶
Known device, but unused.
- STARTED = 4¶
Currently not used.
- STARTING = 3¶
Initializes for new device.
- STOPPING = 14¶
Tries to stop device.
- UNWILLING = 8¶
Device turned down connection req.
- VOID = 0¶
Marked as not in list.
ServiceState¶
- class canlib.kvrlib.ServiceState(value)[source]¶
kvrServiceState_xxx
Current service state.
- AVAILABLE = 1¶
Device available
- CLOSING = 10¶
Closing device
- CONFIG_CHANGED = 13¶
Configuration has changed
- CONNECTION_DOWN = 5¶
Connection is currently down
- CONNECTION_UP = 6¶
Connection is corrently up. The device should be showing up in Kvaser Hardware and be ready to be used from CANlib.
- DISCOVERED = 2¶
Device discovered
- INSTALLING = 15¶
Device is currently being installed
- REDISCOVER = 7¶
We’ve lost the device - rediscover it
- REDISCOVER_PENDING = 9¶
Rediscover is pending
- REMOVE_ME = 11¶
Removing the device
- STANDBY = 12¶
Standby, the service is not taking any actions against this device
- STARTED = 4¶
Device is started
- STARTING = 3¶
Device is starting, other devices may inhibit this device from being started at the moment (e.g. by installing).
- STOPPING = 14¶
Stopping devic
- UNWILLING = 8¶
Unwilling, see sub state for reason
- VOID = 0¶
Void
StartInfo¶
- class canlib.kvrlib.StartInfo(value)[source]¶
kvrStartInfo_xxx
Current start information.
- ERR_CONFIGURING = 5¶
I’m being configured so won’t start
- ERR_ENCRYPTION_PWD = 7¶
Wrong encryption password.
- ERR_IN_USE = 2¶
Already connected to someone else
- ERR_NOTME = 4¶
This start is not for me
- ERR_PARAM = 6¶
Invalid parameters in QRV (non matching versions)
- ERR_PWD = 3¶
Wrong connection pwd
- NONE = 0¶
No information available
- START_OK = 1¶
Started OK