Open wrightwells opened 3 months ago
+1 for this!!!!
didn't like it writting to the SD card constantly so I have changed the appendFile to addToBuffer . in the LogToSD.cpp it now has a buffer and flush routine with a configurable buffer size.
needs testing before a Pull Request
thats all now working but its wrapped up in the fork I created for the Zero Battery
Got a wiki ready too Write-CAN-to-SD-Card
Hello If I want to use this, do I have to copy and paste this into the Arduino IDE at USERSETTINGS.h and USERSETTINGS.cpp?and then flash the LyliGo again? Don't want to do anything wrong. I am new here and trying to understand. Thanks
It would be great if you could just plug in the Liliygo to the ODB port without the use of a laptop to capture the CAN Logs as it has an onboard SD card slot.
e.g. USER_SETTING.h
such as https://github.com/espressif/arduino-esp32/blob/master/libraries/SD/examples/SD_Test/SD_Test.ino
Pins for the Liliygo
you can tell my vested interest is capturing the CAN messages for the Zero motorbike rather than with a laptop in the footwell of a passenger seat. :)
So I did it, not elegant so will need a review but its working , no error handling on the size of the SD card
I've added it to this fork https://github.com/wrightwells/Battery-Emulator
---------------------------
from arduino-esp32-master copied SD libabry etc directory to Software->src->lib
in Software->src->devboard->utils created LogToSD.h LogToSD.cpp
USER_SETTINGS.h
Updated TEST_FAKE_BATTERY.cpp added
added to void setup_battery
updated receive_can_battery