add support for victron Orion TR and generic battery monitoring devices - #708
add support for victron Orion TR and generic battery monitoring devices#708benderl wants to merge 1 commit into
Conversation
|
Thanks for the contribution @benderl I have the following comments I suppose we could still introduce this method, at least for this combined decoder, and then change all the relevant Victron decoders to use that instead of the masking at some stage - if you feel like doing that the task ;) Each device class should only require and have one decoder to keep the size requirement overheads down. With the Battery Monitor and Smart Battery Sense also including the Smart Shunt devices. • I assume the same issue with possible missing device model version specific identifiers will also apply with the Orion TR, with additional device IDs required to be added to the decoder in the future. Let me know how you get on with the above. |
|
Thanks for your detailed review. I had the same idea in mind, as Victron uses the same beacon format for each device family. So in theory only one definition per family should be possible. Lets's see, if this is doable with my limited C++ knowledge and support from Copilot. I think this will take some time. |
Description:
This PR adds support for the following devices from Victron:
For the SmartBMV a new method
value_from_bit_stringwas introduced as the manufacturing data is not byte aligned.As I am not very familiar with C++, I got lots of help from Copilot. Hope this PR meets your requirements. At least I get meaningful values from my devices.
Checklist: