Skip to content

Basic Operations on Data #2169

@egekorkan

Description

@egekorkan

In some devices (mostly Modbus), there is this nice trick where the value needs some basic math operations.

  • The value on the wire is 241 but it actually represents 24.1, so it should be multiplied by 0.1. This is to save the need to handle digits. This is typically called slope or scale.
  • The value on the wire is 5 but it actually represents -5, so it should be substracted by 10. This is to save the need to handle negative numbers. This is typically called offset

If there are other protocols that have this behavior, we can think of standardizing it in the data schema level. Otherwise, these can be form terms in modbus binding

Metadata

Metadata

Assignees

No one assigned

    Labels

    data mappingworkitem: discussions on data mapping concepts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions