Skip to content

Unclear handling of CAN message size in virtual CAN networks #286

@JannisRln

Description

@JannisRln

Title
Unclear handling of CAN message size in virtual CAN networks

Description
While integrating virtual CAN networks using SIL Kit, it is unclear how CAN message size constraints are handled by the framework. The current API documentation does not clearly specify whether message size validation, truncation, or error handling is performed internally, or whether this responsibility is delegated entirely to the user.

This ambiguity makes it difficult to design robust applications that rely on virtual CAN communication and to ensure consistency with real CAN/CAN FD behavior.

Questions / Points needing clarification

  1. What is the maximum supported payload size for CAN and CAN FD messages in virtual CAN networks?
  2. Does SIL Kit validate message size against CAN/CAN FD limits when transmitting?
  3. If an oversized message is sent: - Is it rejected with an error? - Silently truncated? - Passed through unchanged?
  4. Where in the API or documentation is this behavior formally defined?

Expected outcome

  • Clear documentation describing how message size is handled for virtual CAN networks.
  • Explicit guarantees about validation, error handling, and consistency with CAN/CAN FD specifications.
  • (Optional) Example code or API references demonstrating correct usage of large messages.

Environment

SIL Kit version: 5.0.3
OS: Windows 64bit
Language bindings: C API and C++ API used in python with pybind11 (https://github.com/JannisRln/SilKit_py)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions