hardbyte / hardbyte/python-can

Nice to have a "local loopback" bus state

Open
#1,206 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
1.6k
Forks
697
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem? Please describe.
It would be nice to be able to request local loopback mode (for adapters that support it) using a standard API rather than a side-channel based on adapter-specific knowledge.

Local loopback (when supported) is a useful testing tool.

### Describe the solution you'd like
Something along the lines of a LOCAL_LOOPBACK entry in the enum.

Ideally interfaces already reject states they don't support, but perhaps this would also require interfaces to learn to be more picky about state requests?

### Describe alternatives you've considered
Obviously the alternative is private methods on the interface, which seems to be the standard way of dealing with per-interface weirdness already.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.