Canlib

Latest version: v1.27.606

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.21.463

This version was released by [www.kvaser.com](http://www.kvaser.com/) on 29-MAY-2022

Notable fixes and enhancements:

* General:

- Added CAN FD versions of examples:

- `pinger_example` (`pinger_fd_example`), and
- `dbmonitor_example` (`dbmonitor_fd_example`).

* `.canlib`:

- Added exceptions `.canlib.CanTimeout` and `.canlib.CanOverflowError`.

- Added new bitrate constant `~.canlib.BitrateFD.BITRATE_2M_60P`.

- Added support for `.canlib.MessageFlag.LOCAL_TXACK`. This requires CANlib
SDK v5.39 or newer.

- Checking for `.canlib.MessageFlag.OVERRUN` using ``in`` will now return
``True`` if either `~.canlib.MessageFlag.SW_OVERRUN` or
`~.canlib.MessageFlag.HW_OVERRUN` is set.

* `.kvadblib`:

- Added read only property `.kvadblib.Message.canflags` which returns
relevant ``VFrameFormat`` attributes converted into `.canlib.MessageFlag`
(e.g. the J1939 ``VFrameFormat`` attribute does not have a corresponding
flag and is excluded).

- `.kvadblib.Message.asframe()` now include CAN FD flags on the returned
`~canlib.Frame`. Note that this requires CANlib SDK v5.39 or newer.

1.20.360

This version was released by [www.kvaser.com](http://www.kvaser.com/) on 15-FEB-2022

Notable fixes and enhancements:

* General:

- Python 3.10 is now officially supported.

- Fixed `canlib.connected_devices()` to ignore removed devices, instead of
raising an exception.

- Added `.canlib.exceptions.CanGeneralError` to documentation, noting that
this should *not* be caught explicitly.

- Extracted tutorial sample code into standalone files, updated bus
parameters in CAN FD code to work with U100.

* `.canlib`:

- Removed internal attribute `Channel.flags`, use
`.canlib.ChannelData.channel_flags` instead.

- Corrected return value of `~canlib.canlib.Channel.is_can_fd` when channel
was opened explicitly using `~canlib.canlib.Open.NO_INIT_ACCESS`. Now
also always returns a `bool`.

- Added `.ChannelData.bus_param_limits` (wraps canCHANNELDATA_BUS_PARAM_LIMITS)

- Added t Programming chapter to documentation.

- Corrected name of bitrate constant inside table in "Set CAN Bitrate" chapter.

* `.linlib`:

- Deprecated `~.linlib.Channel.getCanHandle`, use `~.linlib.Channel.get_can_channel`
instead.

* `.kvlclib`:

- `.kvlclib.WriterFormat.getPropertyDefault` and
`.kvlclib.ReaderFormat.getPropertyDefault` now returns `None` if property do
not support get/set, as e.g. `~.kvlclib.Property.SIGNAL_BASED`.
- Added support for experimental format KME60
- Clarified usage of `.kvlclib.Converter.addDatabaseFile()`.

* `.kvadblib`:

- Added support for Attribute Definition of type HEX,
`.kvadblib.AttributeType.HEX`.
- Comment and Unit on a signal now converts cp1252 coding to utf-8.
- Added support for experimental format KME60

1.19.205

This version was released by www.kvaser.com on 13-SEP-2021.

Notable fixes and enhancements:

* General:

- Updated docstrings, mainly of lower level classes.
- Modernized code, mainly conversions to f-strings.

* `canlib.dllLoader`:

- Setting the environment variable `READTHEDOCS` == `True` inhibits loading
of shared libraries. Used e.g. when building documentation on ReadTheDocs.

* `canlib.kvamemolibxml`:

- The functions `xmlGetLastError`, `xmlGetValidationWarning` and
`xmlGetValidationError` now returns enum classes when possible.

* `canlib.kvrlib`:

- Minor readability updates for `kvrDeviceInfo.__str__`

1.18.846

This version was released by www.kvaser.com on 25-MAY-2021.

Notable fixes and enhancements:

* `canlib.canlib`:

- Added LEDs 4 through 11 to `canlib.canlib.LEDAction` (needs CANlib v5.19+).

* `canlib.kvadblib`:

- Default value of `EnumAttribute` is now returned as `int`
- Added wrapper for kvaDbGetMsgByPGNEx

* `canlib.kvlclib`:

- Added wrapper for kvlcFeedLogEvent

* Added `canlib.j1939` module for some j1939 helpers.

1.17.748

This version was originally released on www.kvaser.com 16-FEB-2021

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.