fantuz / arduino-filelogger Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/arduino-filelogger
Automatically exported from code.google.com/p/arduino-filelogger
I would like to have a dump function that dumps all the contents of the
file to the Serial port. Also, if there is a function that read the
contents of the file without clearing the contents.
Thanks
Original issue reported on code.google.com by [email protected]
on 3 May 2009 at 6:41
What steps will reproduce the problem?
1. Use Seeed Studio Stalker board
http://www.seeedstudio.com/depot/seeeduino-stalker-atmega-328-p-600.html
With ATmega328P and microSD card holder.
2. Use SanDisk µSD 2GB card
3. Use FileLogger library April 2009 and try to append data to an existing
top-level file that is 1 byte long.
All I ever get is initialisation failure when calling FileLogger::append().
The CPU runs on 3.3V, the card is within a few cm of the CPU, so I don't see a
problem with long cables or some such.
It's a common card too, can't get anything smaller than that.
As far as I can tell, the card is formatted with FAT16. I used mkdosfs -n msdos
-v -F 16 /dev/sde1
Tested with the FileLoggerDemo.
No good. :(
Works fine with SdFat, so I doubt it's a hardware problem.
Original issue reported on code.google.com by [email protected]
on 9 Oct 2010 at 8:44
MMC library has built in support for the SPI dialog, so both SPI and MMC
layers are mixed. I'd like to remove the SPI part of MMC and couple MMC to
the Arduino Spi library, so we can have both layers clearly defined.
Original issue reported on code.google.com by [email protected]
on 1 May 2009 at 9:50
#include "FileLogger.h"
void setup(void)
{
byte buffer[] = "Hello World!";
FileLogger::append("data.txt", buffer, 12);
}
void loop(void) {}
Trying to run this piece of code, Cant see any appended data in data.txt file.
which is not empty? what could be the issue?
Original issue reported on code.google.com by [email protected]
on 23 Jul 2012 at 5:06
The function "locateFileStart" is writing beyond the end of the array
"cookedName". In both "for loops" the test should be "i < 11" instead of
"i < 12".
See below:
char cookedName[11];
for(int i = 0; i < 12; ++i) {
cookedName[i] = 0x20;
}
for (int i = 0, j = 0; i < 12 && filename[i]; ++i) {
if (filename[i] != '.') {
cookedName[j] = filename[i] >= 96 ? filename[i] - 32 : filename[i];
++j;
} else {
j = 8;
}
}
Original issue reported on code.google.com by [email protected]
on 20 Jul 2009 at 4:23
Here are my questions:
1. Which filesystem is your lib supporting?
2. There are examples how to use this lib with the append mode. Is it
possible to use read - and write mode and seek the position?
3. Is it possible to create/remove files and folders and reading objects of
the current working path?
thanks
Original issue reported on code.google.com by [email protected]
on 19 Aug 2009 at 7:38
The "append" function will fail if the file "data.log" is empty (zero bytes
length).
There's a work around by now, just write one single character to it, that's
it. Of course, if you put a line of characters (like a comment) it will
work too.
The pseudo-code to fix this bug is included in the nanofat.cpp, as soon as
I have some spare time I'll fix it.
Original issue reported on code.google.com by [email protected]
on 19 Apr 2009 at 10:41
Line 51 in mmc.h
Line 25 in Spi.h
Line 24 in FileLogger.h
change
#include <WProgram.h>
to
#include <Arduino.h>
It is very important to remember this! note that if you are using Arduino 1.0
IDE, change "WProgram.h" to "Arduino.h"
Original issue reported on code.google.com by [email protected]
on 21 May 2012 at 9:00
Hello, in arduino Mega the pins for SPI are different.
This is what I did to spi.h to address the change:
#if defined(__AVR_ATmega1280__)
// arduino mega
#define SS_PIN 53
#define MOSI_PIN 51
#define MISO_PIN 50
#define SCK_PIN 52
#else
#define SCK_PIN 13
#define MISO_PIN 12
#define MOSI_PIN 11
#define SS_PIN 10
#endif
I'm in windows now, so I can't make a diff path right now. I send you my
own spi.h.
Thank you very much.
Ivan Lalaguna
Inycom
Original issue reported on code.google.com by [email protected]
on 9 Jun 2009 at 9:39
Attachments:
Writting to the file may fail when crossing the cluster boundary (16Kb, as
each cluster is composed of 32 sectors, 512 bytes per sector), so some data
may be lost.
Will be fixed ASAP, in the meantime don't trust this library to save
important data.
Original issue reported on code.google.com by [email protected]
on 18 Apr 2009 at 9:31
Hello,
I'm using filelogger.V0.6 and the sd card shield produced by seedstudio
(http://www.seeedstudio.com/depot/sd-card-shield-for-arduino-v21-p-492.html) on
a linux machine and Arduino Duemilanove board.
When trying to compile the filelogger example it gives me the list of
errors listed below. They all refer to ._Spi.cpp:1
Any ideas on how to solve this???
Many thanks!
ERRORS:
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\5’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\26’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\7’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\2’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\2’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\16’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\260’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\2’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\16’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\342’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\36’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\232’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\311’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\377’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\16’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\342’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\230’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\230’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\25’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1:158: error: invalid
suffix "b8be6a2" on integer constant
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\36’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\36’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\34’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\36’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\377’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\377’ in
program
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: ‘Mac’ does not
name a type
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: expected
constructor, destructor, or type conversion before ‘.’ token
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: expected
unqualified-id before numeric constant
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: expected
constructor, destructor, or type conversion before ‘;’ token
/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: expected
unqualified-id before ‘|’ token
Original issue reported on code.google.com by [email protected]
on 8 Mar 2010 at 1:06
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.