dalathegreat / Battery-Emulator

This software enables EV battery packs to be used for stationary storage in combination with solar inverters.
GNU General Public License v3.0
1.09k stars 151 forks source link

Feature: Simplify CAN logging #607

Closed dalathegreat closed 1 week ago

dalathegreat commented 2 weeks ago

What

This PR simplifies CAN & CAN-FD logging

Why

To make it easier for users to collect log files. Previosuly you had to enable TEST_FAKE_BATTERY to get incoming CAN messages printed to USB. There was no way to log TX messages! CAN-FD also required a separate toggle, DEBUG_CANFD_DATA to get a log output. Very cumbersome!

How

The new method to log is now to enable DEBUG_CAN_DATA in the USER_SETTING.h

This will work on both CAN, and CAN-FD. Explained more in detail here