I had been using the great SdFat library and the example LowLatencyLogger. It is super powerful and efficient. However, sometime i did not truncate properly and my file cannot be save properly, so instead of getting a proper .bin file, I end up getting a temporary file (tmp_log.bin).
If my understanding is correct, this tmp_log.bin file still contain the info from my sensors. The sequence of LowLatencyLogger should be something like this:
- create tmp_log.bin file
- start logging data and store all the results in this tmp_log.bin file
- once reach the size of tmp_log.bin file or truncate the logging, this tmp_log.bin file will be deleted and a proper .bin file will be create.
So if this sequence is correct, which means part of my data is still in this temporary file. So how can I read or convert this tmp_log.bin file into readable file?