-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
single cell values in logfile / debugfile #48
Comments
Hi @dakoal For the battery that you are using, it's driver file will have a refresh_data(self) function. Create your own log function that you can call at the end of this function.
|
Ok, I will try. It's a daly BMS. I will see if I can handle this in memory without file operation. |
I hope you have the Sinowealth Daly version. It has the data for each cell. The normal Daly we only use the min/max cell data that the BMS publish. |
If its a Daly with Sinowealth chip then it should already print the cell voltages to the log. |
This one: /data/log/dbus-serialbattery.ttyUSB0/current ? |
That is the correct log file for the USB0. You can chech which USB port your battery use in Remote Console uder your battery -> Device -> Connection |
I think it's not. No single cell values there. But with a selfmade script I can check them. |
Here is an example from my log: root@beaglebone:~# tail -f /data/log/dbus-serialbattery.ttyUSB0/current If the info stuff is not in there you might not have a Sinowealth BMS? What is in your log? |
@dakoal the latest beta has cell logging as an option. You need to edit the utuls.py line 10 and change the loggin level from WARNING to INFO to activate it. PS @SanderV4n if you want to keep the same level of logging for your Sinowealth you need to do the same. |
@Louisvdw I was looking at your changes, they look good! The logging was mostly for development, so its fine to have it at a lower level. |
HI.
I am always logging BMS data of the different BMS's I am using.
The single cell voltages are also logged, so I can see in a graph over time if one cell is faster dropping/rising.
Is there a way to get the (even the raw hex values) out of your wonderful piece of code into a /var/log/serial-starter/debug.txt ?
Thank you for your work.
The text was updated successfully, but these errors were encountered: