Skip to content

Hardware detection #642

Description

@DigitalSmile

We need some type of code that handles of auto detection part. Three main purposes:

  1. Provide debugging information if something goes wrong.
  2. List all available periphery, that pi4j can consume.
  3. Get rid of "context" code and autoload corresponding providers depending on interfaces found.

There still should be a way to override this behaviour, but the main reason is to simply API interfaces for a regular user and provide log messages with hints.
I can see a three way steps in detection process:

  1. Scan live nodes of interfaces located at /dev/... and ioctl. Most of enabled interfaces will be detected.
  2. Scan device tree to find potential interfaces, but disabled for some reason.
  3. Fallback to ACPI search in sysfs for systems without device tree (e.g. x86 PC)

@eitch @FDelporte @stefanhaustein guys, what do you think?

Pinned by stefanhaustein

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requestffmFFM API Plugin

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions