I accidentally posted in the wrong thread. I've moved it to a separate thread.
question:
Hi! Currently, isDataValid() stays true indefinitely after the first successful packet is received. If the BMS is powered off or the UART cable is disconnected, the library keeps the last known values in memory, and isDataValid() remains true. This makes it difficult to detect a physical connection loss.
answer:
Hi there, thank you for the update. I agree with your assessment that a disconnect is currently not captured. If you would like to submit a PR to fix this, I will take a look and update accordingly.
question: Yes, if possible, please make the appropriate changes; this is a very useful parameter. And so that the battery data is not reset, but the most recent one is saved.
Also, perhaps there's a way to filter out any junk that appears in the UART, even when the BMS is disabled.
I accidentally posted in the wrong thread. I've moved it to a separate thread.
question:
Hi! Currently, isDataValid() stays true indefinitely after the first successful packet is received. If the BMS is powered off or the UART cable is disconnected, the library keeps the last known values in memory, and isDataValid() remains true. This makes it difficult to detect a physical connection loss.
answer:
Hi there, thank you for the update. I agree with your assessment that a disconnect is currently not captured. If you would like to submit a PR to fix this, I will take a look and update accordingly.
question: Yes, if possible, please make the appropriate changes; this is a very useful parameter. And so that the battery data is not reset, but the most recent one is saved.
Also, perhaps there's a way to filter out any junk that appears in the UART, even when the BMS is disabled.