# Miscellaneous

## addressFromString()

`canlib.kvrlib.``addressFromString`(type, address)

## configActiveProfileSet()

`canlib.kvrlib.``configActiveProfileSet`(channel, profile_number)

## configActiveProfileGet()

`canlib.kvrlib.``configActiveProfileGet`(channel)

## configNoProfilesGet()

`canlib.kvrlib.``configNoProfilesGet`(channel)

## deviceGetServiceStatus()

`canlib.kvrlib.``deviceGetServiceStatus`(device_info)

## deviceGetServiceStatusText()

`canlib.kvrlib.``deviceGetServiceStatusText`(device_info)

## dllversion()

`canlib.kvrlib.``dllversion`()

  Get the kvrlib version number as a `str`

## generate_wep_keys()

`canlib.kvrlib.``generate_wep_keys`(pass_phrase)

  Generates four 64-bit and one 128-bit WEP keys

  Parameters: | pass_phrase (`str`) – The pass phrase to use to generate the keys.

  Returns a `(key64, key128)` (`WEPKeys`) namedtuple, where `key64` is a list of four `bytes` object with the four 64-bit WEP keys, and where ``key128` is a `bytes` object with the single 128-bit WEP key.

## generate_wpa_keys()

`canlib.kvrlib.``generate_wpa_keys`(pass_phrase, ssid)

  Generate a WPA key from a pass phrase and ssid

  Parameters: | pass_phrase (`str`) – The pass phrase to use to generate the key. ssid (`str`) – The SSID to use to generate the key.
  Returns: | `bytes` – The generated WPA key.

## hostname()

`canlib.kvrlib.``hostname`(ean, serial)

  Generate a hostname from ean and serial number

  Parameters: | ean `EAN` – European Article Number serial `int` – Serial number

## initializeLibrary()

`canlib.kvrlib.``initializeLibrary`()

## kvrDiscovery

class `canlib.kvrlib.``kvrDiscovery`(kvrlib=None)
  `clearDevicesAtExit`(onoff)
  `close`()
  classmethod `getDefaultAddresses`(addressTypeFlag=<AddressTypeFlag.BROADCAST: 1>, listSize=20)
  `getResults`()
  `setAddresses`(addressList)
  `setEncryptionKey`(device_info, key)
  `setPassword`(device_info, password)
  `setScanTime`(delay_ms, timeout_ms)
  `start`(delay_ms=None, timeout_ms=None)
  `storeDevices`(deviceInfos)

## kvrConfig

class `canlib.kvrlib.``kvrConfig`(kvrlib=None, channel=0, mode=0, password='', profile_no=0)
  `MODE_ERASE` = 2
  `MODE_R` = 0
  `MODE_RW` = 1
  `XML_BUFFER_SIZE` = 2046
  `clear`()
  `close`()
  `getXml`()
  `openEx`(channel=None, mode=None, password=None, profile_no=None)
  `setXml`()

## stringFromAddress()

`canlib.kvrlib.``stringFromAddress`(address)

## unload()

`canlib.kvrlib.``unload`()

## verify_xml()

`canlib.kvrlib.``verify_xml`(xml_string)

  Verify that the xml string complies with both the DTD and internal restrictions

## WEPKeys

class `canlib.kvrlib.``WEPKeys`(key64, key128)
  `key128`

    Alias for field number 1

  `key64`

    Alias for field number 0