Skip to content

CANgaroo V0.7.2

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 14:37
· 19 commits to master since this release

CANgaroo 0.7.2

Changes since V0.7.1.

New

  • ElmueSoft CANable 2.5 (Slcan firmware). Detected automatically, even though it uses the same USB ID as the CANable 2: by its USB manufacturer string, or on Windows by its reply to the V (version) command.
    • Every command is confirmed by the adapter, so a refused frame or setting is reported instead of being shown as sent.
    • Listen-only mode, 800 kbit/s, and CAN FD data rates up to 5 Mbit/s.
    • Exact bit timing from the configured bitrate and sample point. The firmware's built-in presets all sample at 75 %; with them, CAN FD frames with bit rate switching (BRS) failed on a bus sampling at 87.5 %.

Improved

  • scripts/setup_can.sh configures every CAN interface present, not only can0 and can1. An interface that fails no longer stops the others; failures are listed at the end.

Fixed

  • SLCAN (CANable 1 / 2, WeAct)
    • CANable S7 is 750 kbit/s, not 800 kbit/s. Each board now offers only the rates its firmware actually runs.
    • Extended-ID CAN FD frames were sent with 11-bit IDs.
    • Remote frames were rejected by WeAct adapters.
    • Under bus load the adapter type could be misdetected when opening (up to 1 in 4 opens at full load).
    • Long version replies were cut off. Setup commands refused by the adapter are logged and make opening fail, instead of leaving a channel that looks open but isn't.
    • An unplugged adapter is detected.
    • Listen-only mode is no longer offered for CANable: the firmware ignores it, so frames were still acknowledged on the bus. Setups that still ask for it get a warning.
  • Candle (gs_usb)
    • A channel left running by another program is reconfigured when opened. With ElmueSoft Candlelight, it previously kept its old bitrate.
    • Device timestamps are now used on single-channel candleLight boards; before, the host clock was always used.
    • 800 kbit/s on 48 MHz boards used an invalid bit timing.
    • Unplugging the adapter no longer keeps a CPU core busy; the interface goes offline with a single error message.
  • uLC: updating a master frame's payload no longer resets its slot to 15 ms; the LDF timing is kept.
  • CANBlaster
    • At full bus load about half of the frames were lost.
    • The first frames after starting a measurement were lost.
    • Datagrams that do not come from the CANBlaster server are ignored instead of shown as frames.
    • The UDP port is released on close, so the interface can be opened again. No more busy-waiting while idle or during server discovery.
  • LindeAPI (lin_usb)
    • Selecting a schedule table that is not loaded keeps the running schedule, instead of stopping the master.
    • The overrun counter starts at zero for each measurement; it could show frames dropped in an earlier session.
    • Timestamps stay correct when the adapter's millisecond counter wraps, after about 49 days of uptime.
  • Windows build: Python scripting support compiles again in CI (pkgconf missing, pybind11 include path quoting).

Testing

The uLC, SLCAN, Candle, CANBlaster and LindeAPI drivers are now tested against simulated adapters. Each simulation is modelled on the adapter's firmware or server source, and was checked against real hardware where available (CANable 2.0 nano with three firmwares, CANILFD).