OpenLog Setup Trouble—show off your knowledge here!

Hi guys (and gals)!

I recently received an OpenLog uSD datalogger from Sparkfun (http://www.sparkfun.com/products/9530).

I'm having a bit of trouble getting this thing fired up despite its supposed plug'n play configuration. I've done quite a bit of searching and haven't seen a solution.

Help me troubleshoot, Obi Wan Kenobi; you're my only hope!

Using an Arduino UNO. I also have an FTDI board available.

Here are my symptoms:

  • I initially uploaded the test sketch (https://github.com/sparkfun/OpenLog/blob/master/OpenLog_Test_Sketch/OpenLog_Test_Sketch.ino) with the OpenLog wired up. This was probably a mistake, but Sparkfun tells me the worst that would probably happen is the baud rate gets messed up. The LEDs flashed a few times when it was connected this way, but it wasn't functional.
  • The board was/is connected to the Arduino as explained in the Test Sketch comments
  • Currently, I don't get any response from OpenLog. Nothing causes the LEDs to flash.
  • I checked the uSD card and the OpenLog didn't write a CONFIG.TXT file on it—the card was empty—so, I believe it didn't recognize the card at first
  • Nothing happened when I tried the Safety Reset procedure found here: https://github.com/sparkfun/OpenLog/wiki/Config-File
  • I figured the next logical step may be to refresh the firmware on it. The problem here is I can't correctly compile the sketch provided here: https://github.com/sparkfun/OpenLog/wiki/Flashing-Firmware
  • I believe it's because I don't have the libraries saved correctly—I'm working on figuring this out and will provide update, but I'm doubtful this will do anything b/c I'm not seeing any response activity from the OpenLog as it is.

Any advice on troubleshooting?

Let me know if I missed any info you need. Be easy on me; I'm new to Arduino. ;)

Thanks in advance.

CJ

Update:

When trying to compile the latest firmware, OpenLog_v3.ino (https://github.com/sparkfun/OpenLog/tree/master/OpenLog_v3), I get the following errors. Can someone help me decipher what this means?

OpenLog_v3:130: error: expected constructor, destructor, or type conversion before ‘<’ token
OpenLog_v3.cpp: In function ‘void error(const char*)’:
OpenLog_v3:248: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void setup()’:
OpenLog_v3:285: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:286: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:287: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:288: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:289: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:290: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:291: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:292: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void newlog()’:
OpenLog_v3:364: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:377: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void seqlog()’:
OpenLog_v3:418: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘uint8_t append_file(char*)’:
OpenLog_v3:447: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void read_config_file()’:
OpenLog_v3:861: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:862: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:863: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:864: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:865: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:866: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:867: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void record_config_file()’:
OpenLog_v3:954: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:965: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:1003: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void command_shell()’:
OpenLog_v3:1033: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:1036: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:1038: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:1657: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘uint8_t read_line(char*, uint8_t)’:
OpenLog_v3:1668: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:1669: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘uint8_t gotoDir(char*)’:
OpenLog_v3:1769: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3:1778: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void print_menu()’:
OpenLog_v3:1795: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void baud_menu()’:
OpenLog_v3:1830: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void system_menu()’:
OpenLog_v3:1951: error: ‘NewSerial’ was not declared in this scope
OpenLog_v3.cpp: In function ‘void removeErrorCallback(const char*)’:
OpenLog_v3:2191: error: ‘NewSerial’ was not declared in this scope

I downloaded:

sparkfun-OpenLog-7b908d8.zip

from the link above.

Renamed the resulting folder (after unzipping) to OpenLog, copied it to the libraries folder, and restarted the IDE.

I opened OpenLog_Test_Sketch from the Examples in the library and it compiled without errors (IDE 1.0.1).

[quote author=Nick Gammon link=topic=113211.msg851444#msg851444 date=1341620024] I downloaded:

sparkfun-OpenLog-7b908d8.zip

from the link above.

Renamed the resulting folder (after unzipping) to OpenLog, copied it to the libraries folder, and restarted the IDE.

I opened OpenLog_Test_Sketch from the Examples in the library and it compiled without errors (IDE 1.0.1). [/quote]

I can compile the Test Sketch with no problem. What happens when you try to compile the OpenLog_v3? This is the firmware that I'll need to upload to the board and it is returning all the errors.

My experience is lacking when it comes to debugging—any insight is appreciated!

Download and install as a library SerialPortBeta20120106.zip from here:

http://code.google.com/p/beta-lib/downloads/list

Copy the folder SerialPort into the libraries folder. Restart the IDE. Then it should compile without errors.

Got it working! Nick, you’re the man and I bow in your presence.

I have hit another small problem with the test sketch that is provided here: https://github.com/sparkfun/OpenLog/blob/master/OpenLog_Test_Sketch/OpenLog_Test_Sketch.ino

It’s returning some jargon for some reason. Haven’t had time to really research this yet and unfortunately don’t have time to work on my project today, but if anyone can point me in the right direction off the top of their head the advice would be greatly appreciated.

By no means am I asking for someone to do the research for me.

Here’s a bit of what’s being logged from the test sketch:

ŒÒ)}ÚÜ<?0 ?¥AûHô$ ;4x?ÛõCû??‚g»ip?=?x»ixá?XhàkxNo8KåH?Œh~8«êõXh>>Z“8XiÇÀi$ekÉâ$ 8h,?M?¨9!z&?
mjRì=ÚK“?A??bé<H}ÚSô‚O»ix?=?h»kx?ì=åêbƒ8zöX@ôŒh~8«Iüái38hIüèiÉ9!züy«<?0 $8!i÷?A êza)}ÚÜ<? ?¥AûH}Rò<A<H}Ú”bbO»ix?Íñx ?ÕT<“üXhàÎxN/_)ài?Œh~9«Iüái38hIûèiÉ9!zü>Z?R?E‚!i÷?Aê?Rì}ÚC? æ€M?úH}Úˆ<D<H)ÚÎÎx?±A<“üHh»kxN?ó=åê??hz9GíôXh>y«Hüái28!i eiÉ9$ $KÉô
R6? i??A?àâ0 ?4Aû»ô% ìix?ÛõCû??‚g»)p?=?8»ixá?ŒhàkxNo8Kåê?Œh~8«íõXh>>Zeüèi"9 i$ekÉâ4 8h,?
?®9z&?

Looks like the wrong baud rate to me.

That was it. Thanks!

On to cool stuff now—I'll try to keep the novice questions to a minimum.