docs: update SD_logging

This commit is contained in:
Administrator 2022-03-20 22:48:21 +00:00 committed by Josh Stewart
parent a42503e171
commit b6d05b1118
1 changed files with 27 additions and 2 deletions

View File

@ -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 |