Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data_Type = "BCD" #15925

Open
pflugj opened this issue Sep 22, 2024 · 0 comments
Open

Data_Type = "BCD" #15925

pflugj opened this issue Sep 22, 2024 · 0 comments
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@pflugj
Copy link

pflugj commented Sep 22, 2024

Use Case

Hi.
A Modbus device delivers some Registers as data_type = BCD.
For example the "Date & Time" information via 3 Bytes (24bit) as BCD.

So far, I did not find a way to decode these registers :-(

Question is:
Is there a way to decode BCD coded registers?
or
could this become a new feature??

Thanks for your the brillliant "Telegraf"
Cheers
Jurgen

Expected behavior

Decode for example:
Read 3-bytes and assign 3-bits per digit
and
assign 2 digits to the 1st number ( e.g.: the day)
assign 2 digits to the 2nd number (e.g.: the month)
assign 2 digits to the 3rd number ( e.g. 2 digit year)
etc.

Actual behavior

??

Additional info

No response

@pflugj pflugj added the feature request Requests for new plugin and for new features to existing plugins label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

1 participant