calimero-project / calimero-core

Core library for KNX network access and management
Other
130 stars 64 forks source link

Datapoint type discovery #102

Closed Gondolav closed 2 years ago

Gondolav commented 2 years ago

Hi, is it possible to discover, for each device and each channel in it, its inputs' and outputs' datapoint types with Calimero?

Thank you!

bmalinowsky commented 2 years ago

In general not, that's not how KNX works. You'd need the ETS configuration. That's why Calimero uses the DatapointModel type. What you can do is determine a set of possible DPTs by the bitsize of received runtime data during group communication. For other device categories like LTE, the DPT is known by the interface object type and PID.