Nice python script, but you need to change "true" to "True" in the above example.
I would use asyncio rather than a thread. I use it here for mqtt if you want an example. In that example, there are no messages received on CAN, so CAN doesn't need it, but it's used in receiving mqtt messages.
As for logging, I would just use the standard python logger. This is an example of logging to a file.
Has anyone found a similar charger that goes up to 60V? I'm currently running 17S, and I have a couple of R4850G2s that can almost reach enough voltage, but not quite. They can go over 58V is you want to push them, but I charge at around 59V.
Also, has anyone had CAN communications go out on the R4850G2? The other day one of them stopped talking over CAN, and I noticed that the green LED on the control board doesn't flash anymore, so I'm assuming the CAN bus went out. I haven't checked it under load, but otherwise it seems to power up properly, the fan changes speed, etc, so it seems like it's mostly working.
I would use asyncio rather than a thread. I use it here for mqtt if you want an example. In that example, there are no messages received on CAN, so CAN doesn't need it, but it's used in receiving mqtt messages.
As for logging, I would just use the standard python logger. This is an example of logging to a file.
Has anyone found a similar charger that goes up to 60V? I'm currently running 17S, and I have a couple of R4850G2s that can almost reach enough voltage, but not quite. They can go over 58V is you want to push them, but I charge at around 59V.
Also, has anyone had CAN communications go out on the R4850G2? The other day one of them stopped talking over CAN, and I noticed that the green LED on the control board doesn't flash anymore, so I'm assuming the CAN bus went out. I haven't checked it under load, but otherwise it seems to power up properly, the fan changes speed, etc, so it seems like it's mostly working.