Qwiic OpenLog - Flaky behavior with example script 2

Have questions about a SparkFun product or board? This is the place to be.

Moderator: phalanx

Post Reply
RipVW
Posts: 6
Joined: Wed Jan 16, 2019 6:02 pm

Qwiic OpenLog - Flaky behavior with example script 2

Post by RipVW » Wed Jan 16, 2019 10:53 pm

Hi - Am using Windows 10 and a 3.3V Pro Micro Arduino to work with the Qwiic OpenLog (with a 32GB card) and getting flaky results with the example scripts. Have been reliably communicating with a 3.3V I2C accelerometer so I think the Pro Micro is healthy.

Example 2: Formated (using quick format) card then ran the script. Card had config.txt (with some contents) but no other files. Put card back in logger, reapplied power, and ran the script again. Card had config.txt, appendMe.txt and LOG00007.txt.

Why didn't the log file and appendMe.txt show up after the first time running the script?

Here's what was in appendMe.txt after the second time the script was run:

"
This is recorded to appendMe.txt
If this file doesn't exist it is created and
anything sent to OpenLog will be recorded to this file

Note: We can use the F("") in sketches to move big print statements into program memory to save RAM
This is recorded to appendMe.txt
If Run OpenLog Append File Test
This is recorded to the default log file
This is recorded to appendMe.txt
If this file doesn't exist it is created and
anything sent to OpenLog will be recorded to this file

Note: We can use the F("") in sketches to move big print statements into program memory to save RAM
"

At first this just looked like two sets of messages written by the script, but then I noticed the line reading "If Run OpenLog Append File Test". It appears that "Run OpenLog Append File Test" was directed to the serial monitor or log file but showed up in appendMe.txt. Have no clue where the "If" came from.

The log file that showed up after the second running of the script only contained one set of messages.

RipVW
Posts: 6
Joined: Wed Jan 16, 2019 6:02 pm

Re: Qwiic OpenLog - Flaky behavior with example script 2

Post by RipVW » Thu Jan 17, 2019 12:10 am

Did a long format on the SD card and ran the script ONCE. There was a config.txt and appendMe.txt, but no log file.

Here are the contents of there appendMe.txt:

"
This is recorded to appendMe.txt
If this file doesn't exist it is created andRun OpenLog Append File Test
This is recorded to the default log file
This is recorded to appendMe.txt
If this file doesn't exist it is created and
anything sent to OpenLog will be recorded to this file

Note: We can use the F("") in sketches to move big print statements into program memory to save RAM
"

Post Reply