RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
SD Card Logging issue
Author Message
Reply with quote
Post SD Card Logging issue 
I'm having issues with SD card logging. I have had the logging working in the past with RCP GPS channels and a custom LUA script to log RPM, Brake pressure and a few other items on my Evo X. I did not log anything for a few months and then switched over to the 2.11.0 firmware and then new 1.8.0 RCP app software. Now I'm having issues with the SD card log files. The log files are being created when I press the log button and the files are proportional in size compared to the length of time I let the logging continue. So the longer I leave the RCP in log mode the larger the files. The problem is the log files contain no data. I looked at the log files with a few different programs and finally with a hex editor found that there is no actual data, it is all binary zeros. What type of incorrect settings could cause this, or where should I begin looking to figure this out?

View user's profile Send private message
Reply with quote
Post  
Correction to the first post, I was actually running the most recent 1.9.0 RCP app not the 1.8.0. That wasn't related to the issue though. The problem was that I used this card for the RC, then lost my GoPro SD card and used this RC SD card for the GoPro until I found a new one. For whatever reason the GoPro files and/or format made it incompatible with the RCP when I switched back. Formatting the SD card solved my issue.

View user's profile Send private message
Reply with quote
Post  
Hi,

Glad you figured it out. Yes, formatting the SD card is a good first step for troubleshooting!


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
Does the format of SD card affect the logging ?
if yes i would like to know why is it so?

Thank You

View user's profile Send private message
Reply with quote
Post  
Yes, it affects the logging. A proper and clean format allows computers to write data correctly to storage drives, including SD cards.


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
The GoPro puts several directories in the root directory when it formats a card. That is probably confusing the issue.

View user's profile Send private message
Reply with quote
Post  
Actually, it doesn't matter if other folders and files are present. When RCP goes to create a log, it looks for the next available log file name it can create - RC_1, RC_2 and so on. It's very simple and deterministic, ignoring anything else that might be present on the SD.

A fresh format ensures the file allocation table is not corrupt, and that data shows up where it's expected when written.


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
what can be the maximum size of the log file on SD card ?

View user's profile Send private message
Reply with quote
Post  
What we use is the standard FAT32, which is limited to 2GB per file.


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post sd logging issues 
I am trying to get my sd logging working again. Sometime in the last 6 months i have lost the capability. I have a MK2 on my daily driver/track car. I have logging set to come on when gps speed > 5. I am on 2.12.0 firmware. I have formatted my sd card. My script looks like this:

function onTick()
if getGpsSpeed() > 5
startLogging()
else
stopLogging()
end
end

While going more than 5mph, the status screen for logging reports that "Status not logging"
but "Logging for" is counting up in seconds from when I exceed 5mph and resets to zero when I stop. I get no script loading errors. After a few test runs, I check the SD card but there are no files created...
It seems like my script is running but there is no data.
Any thoughts on what to try next?

View user's profile Send private message
Reply with quote
Post  
Hi, let's try eliminating the lua script as a variable.

Erase the lua script you have, and then write it back to the config.

Then try logging directly using the action button on the unit. What activity do you see? Do you see the logging LED flash, or the red error LED light up?

Also, you can try different SD cards as a test. It was a good idea to do a fresh format (FAT32) - so do that with any other card you test with as well.

Let us know what you find out!


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum