From b6d05b1118c53519754487d7b62e38d70b47db17 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 20 Mar 2022 22:48:21 +0000 Subject: [PATCH] docs: update SD_logging --- SD_logging.md | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/SD_logging.md b/SD_logging.md index 300161c..6c60eab 100644 --- a/SD_logging.md +++ b/SD_logging.md @@ -2,19 +2,44 @@ title: SD Card logging description: published: true -date: 2021-10-12T05:18:25.120Z +date: 2022-03-20T22:48:10.068Z tags: sd, logging, dropbear editor: markdown dateCreated: 2021-10-12T05:18:25.120Z --- # SD Card logging -Logging of data to an SD card is currently under development and supports Teensy based systems only. +SD logging was introduced first in firmware version `202201` and officially supports Teensy based units only (Eg Dropbear). Support for additional logging options is intended to be added in future firmware releases. + +Whilst not required, logging can be combined with a Real Time Clock (RTC) ## Requirements * Teensy based Speeduino ECU (Eg Dropbear) + * Note: There is some experimental support for SD logging on stm32 based boards however this is not officially supported. * 4gb minimum SD card. 250mb must be free on this to begin a logging session * SD card must be formatted with the ExFAT filesystem. Speeduino uses certain features of ExFAT that are not available on FAT16/32 +## How to use +### Setup SD Card / Logging options + +![sd-options.png](/img/sd_card/sd-options.png) + +#### Real Time Clock (RTC) +![sd-rtc.png](/img/sd_card/sd-rtc.png) + +### Reading log files +![sd-browse.png](/img/sd_card/sd-browse.png) +## File sizes +The size of the log file will depend on the duration and the logging speed that is selected. The table below gives an approximation of the filesize that can be expected for various scenarios + +> Note that logs are split into 10MB files. Once the log file reaches 10MB, a new file will be created and the logging continued. Except for the overall SD card size, there is no limit to the number (and hence duration) of the SD logs +{.is-info} + +| | **1 min** | **10 min** | **30 Min** | +|----------|-----------|------------|------------| +| **1Hz** | 12.3KB | 123KB | 1.23MB | +| **4Hz** | 51KB | 510KB | 1.52MB | +| **10Hz** | 127KB | 1.27MB | 3.8MB | +| **30Hz** | 380KB | 3.7MB | 11.1MB | \ No newline at end of file