Pages: [1]   Go Down
Author Topic: Data Logger stops recording  (Read 311 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My current project (uno R3 + Ethernet shield + SD, IDE v1.0.1) Which is supposed to record analog data every 10 mins as a CSV file. The set up also functions as a web server so that I can pull the data off. The SD card just stops recording from time to time. I have consiously not used strings because of the known memory bug in the library and use char arrays instead.

Dispite avoiding strings I'm wondering if the problem is a string memory issue. Delving into the hierarchy of the libaries I find that by including SD.h this then then calls for SDfat.h, no supprise but this in turn calls for Print.h.

Now comes the rub, Print.h calls for Wstring.h which calls for string.h TWICE!

So although I've deliberatly avoided strings the buggy libary is called eventually.

I don't see how I can avoid this as I have to use 'dataFile.print("...);' and 'client.print("...);' to send info to the SD card and ethernet.

Would it be valid to use 'dataFile.write' and 'client.write' instead? and does anybody know if this avoids the use of string.h
Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 70
Posts: 3741
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

string.h is used for C string functions, not the bug inflicted String objects you're trying to avoid. Your issue lies elsewhere, so you might consider posting your code for more help.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The whole code is too long to post the .ino is 29Kbyte. Is there another way to open it up for peer review?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I cannot help with the code issues, but you might be able to share the code as a text file via Google Drive or the like.
Logged

Pages: [1]   Go Up
Jump to: