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

Modbus Data_Type = "BCD" #15925

Open
pflugj opened this issue Sep 22, 2024 · 1 comment
Open

Modbus Data_Type = "BCD" #15925

pflugj opened this issue Sep 22, 2024 · 1 comment
Labels
area/modbus feature request Requests for new plugin and for new features to existing plugins help wanted Request for community participation, code, contribution size/s 1 day effort, great beginniner issue

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
@pflugj pflugj changed the title Data_Type = "BCD" Modbus Data_Type = "BCD" Sep 22, 2024
@srebhan
Copy link
Member

srebhan commented Oct 8, 2024

This datatype does not exist yet, someone needs to implement it. PRs appreciated!

@srebhan srebhan added help wanted Request for community participation, code, contribution size/s 1 day effort, great beginniner issue area/modbus labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/modbus feature request Requests for new plugin and for new features to existing plugins help wanted Request for community participation, code, contribution size/s 1 day effort, great beginniner issue
Projects
None yet
Development

No branches or pull requests

2 participants