Micro SD card and CSV file
James Long
Posts: 1,181
I'm asking this to see if it is even possible.....before jumping in to deep. I figure it is....but because I haven't tried it.....I want to ask.
Using the fsrw and friends.....would it be possible to write a ASCII file that is comma separated values?
Is there a way to calculate the write speed of such a file....before trying it. (approximate value)
Does anyone see a problem with this idea?
James L
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
James L
Partner/Designer
Lil Brother LLC (SMT Assembly Services)
Using the fsrw and friends.....would it be possible to write a ASCII file that is comma separated values?
Is there a way to calculate the write speed of such a file....before trying it. (approximate value)
Does anyone see a problem with this idea?
James L
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
James L
Partner/Designer
Lil Brother LLC (SMT Assembly Services)
Comments
No problem creating ASCII files with fsrw.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
Yes, I think it is possible to do ascii files and such. Looks into gettin the HydraSD card that Andre LaMothe has created. It looks like it contains a lot of information on writing SD card drivers and a FAT16 file/directory structure too.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
www.brilldea.com·- check out the uOLED-IOC, an I/O expansion for the uOLED-96-PROP
www.tdswieter.com
One little spark of imagination is all it takes for an idea to explode
Does Andre's book have support for formatting SD_Cards too, just wondering!
Thanks for the clarification on the fsrw. Formatting is usually done on the PC, I am not sure that is done by the Prop. I don't know what is all in the manual, except for the sample on his website and the title of contents.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
www.brilldea.com·- check out the uOLED-IOC, an I/O expansion for the uOLED-96-PROP
www.tdswieter.com
One little spark of imagination is all it takes for an idea to explode
The write speed varies widely depending on the SD card you're using and how much data you're writing at a time.
There was a posting some time ago with the results of some simple timing tests, but I don't have the link.
I had read that post, I just want to make sure using ASCII was not going to be a problem. I'm not sure how much more overhead ASCII is going to take. I'm not sure the method of writing at this point.......for I haven't studied the object that closely.
James
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
James L
Partner/Designer
Lil Brother LLC (SMT Assembly Services)
ASCII is just character strings and text is less dense than binary information (takes more bytes to contain the information hence net speed is lower). The difference in speed has nothing to do with where you're writing it. It takes two bytes to write a 16 bit signed integer in binary and 6 bytes to write the same thing as ASCII text whether it's going to an SD card or out a serial port to a PC.
You just provided what I needed.....I didn't know how much overhead ASCII would be.
so I will have to take the speed and divide by 6 and that will give me an approximate write speed. Appoximate, because i will be adding commas, and line feeds,
I think the item I'm working on will work fine at that speed, but I will have to check.
James L
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
James L
Partner/Designer
Lil Brother LLC (SMT Assembly Services)