Page 1 of 1

[Newbie] One+ empty CSV files

Posted: Fri Jun 01, 2018 8:27 am
by dsjstc
I've followed the quickstart guide (flashed V5 firmware into a virgin One+ unit with GPS), and plugged the device into the known-good OBD2 port on my 2010 Prius. I get activity on the console, but the CSV files on the SD card are all empty, or at most have a "#Freematics" header.

I can't find a troubleshooting guide, and none of the forum posts I've browsed seem to have this type of problem. Is there a troubleshooting recipe somewhere?

Thanks!

Re: [Newbie] One+ empty CSV files

Posted: Sun Jun 03, 2018 10:34 pm
by stanley
Please check your serial output for any clue.

Re: [Newbie] One+ empty CSV files

Posted: Wed Jun 06, 2018 5:08 am
by dsjstc
Third flash is the charm, I guess.

Is there a way to send debug logs to the SD card? I can't find anything on the forum, and my search terms around it get rejected as "too common".

Re: [Newbie] One+ empty CSV files

Posted: Tue Jul 10, 2018 10:32 pm
by nick
Hello, I think there's a bug with the datalogger program - I had the same problem where no data was actually being saved to SD but it was fine saving to SPIFFS.

The problem is the file was never being closed and therefore never actually being saved, this is within the datalogger.h file

I've fixed it for myself and would it attach the file here but I'm unable to do so. I fixed it by changing the write function within the SDLogger class to below. You also have to make "char path[24] = "/DATA";" a global variable. Might be a bit of shody fix but it works for me

void write(const char* buf, byte len)
{
// open();//ADDED THIS TOOOOOOOOOOOOOOOOO
m_file = SD.open(path, SD_FILE_READ | SD_FILE_WRITE);
if (m_next) m_next->write(buf, len);
m_file.write((uint8_t*)buf, len);
m_file.write('\n');
m_file.close();
}

Re: [Newbie] One+ empty CSV files

Posted: Sat Sep 15, 2018 4:33 am
by dsjstc
Thanks for this -- I didn't get a notification, for some reason, and just happened to notice it now.

It looks like this has been handled in Stanley's Aug 4 commit. I'll give it a whirl and try to remember to report back if it works.

Re: [Newbie] One+ empty CSV files

Posted: Sun Sep 16, 2018 12:39 am
by stanley
It was a typo and has been fixed.