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

Todo: dynamic entires for register ranges ect... #28

Open
HotNoob opened this issue Apr 7, 2024 · 0 comments
Open

Todo: dynamic entires for register ranges ect... #28

HotNoob opened this issue Apr 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@HotNoob
Copy link
Owner

HotNoob commented Apr 7, 2024

this is especially needed for pylon rs485 protocol. some other protocols could benefit as well.

step 1. post pone loading config for unloadable dynamic registers ( and commands )
step 2. do a full scan and loop until completed, or more complicated, identify required "variables" and load.
step 3. apply skipped entries to memory / register list.

down side is, this initially doesnt allow for further dynamic loading. ie if a value changes... could be added later i guess.

the pending csv rows can be stored in a variable / memory, and edited on the fly as variables arrive.

for a format, can maybe do {{variable_name}}
or, [[variable_name]] to avoid json conflicts.

example usage:

document_name = cell_count

documented_name = battery_1_cell_[0-[cell_count]]
register = x4642.[(0-[cell_count])+1]

shit... going to need to implement a basic math implementation as well... ranges will have to be done exclusively with ~ when within [] which will trigger "maths"

@HotNoob HotNoob added the enhancement New feature or request label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant