Skip to content

Inconsistencies between interfaces #77

@hardbyte

Description

@hardbyte

Originally reported by: Christian Sandberg (Bitbucket: sandberg, GitHub: sandberg)


Found some inconsistencies between implementations.

  1. send() should raise can.CanError on failed transmissions according to documentation.
  • a) PCAN logs a warning and returns False
  • b) socketcan_native logs a warning
  • c)socketcan_ctypes ?
  • d) usb2can logs a warning
  1. serial does not implement send() and recv()
  2. socketcan_native does not implement shutdown(), implements __del__ instead.
  3. usb2can uses argument baud specified in kbit/s while others use bitrate and bits/s.
  4. On Kvaser recv() when timeout is None, the call should block indefinitely until a message is received. Now it returns immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions