Data Logging Help
Having trouble writing to my SD Card. It seems to cut off my writes after a specific amount of bytes, also cutting off my Serial output to PST. However, when the SD writing stops, the PST displays the full sentence.
I am using the SD2.0_FATEngine.spin object with a parallax SD kit to handle my SD card.
Example, you can see where the SD stops writing and just the raw serial displays the full line.
$GPRMC,031708.000,A,4722.6809,N,12240.8794,W,00,,,A*74
$GPRMC,031709.000,A,4722.6808,N,12240.8794,W,0.,,,A*75
$GPRMC,031710.000,A,4722.6809,N,12240.8794,W210,,,A*73
$GPRMC,031711.000,A,4722.6810,N,12240.8793,W,0.41,142.83,101210,,,A*7F
$GPRMC,031712.000,A,4722.6811,N,12240.8793,W,0.54,142.83,101210,,,A*79
$GPRMC,031713.000,A,4722.6812,N,12240.8792,W,0.58,25.73,101210,,,A*49
Here is my test code, I close the file after 20 lines so that it doesnt get corrupted when I remove the card:
repeat
y := GPS.rx
FAT.writebyte(y)
pst.char(y)
if y == $0D
z++
if z == 20
FAT.closefile
Is there another method I need to try, or am I just plain doing it wrong?
I am using the SD2.0_FATEngine.spin object with a parallax SD kit to handle my SD card.
Example, you can see where the SD stops writing and just the raw serial displays the full line.
$GPRMC,031708.000,A,4722.6809,N,12240.8794,W,00,,,A*74
$GPRMC,031709.000,A,4722.6808,N,12240.8794,W,0.,,,A*75
$GPRMC,031710.000,A,4722.6809,N,12240.8794,W210,,,A*73
$GPRMC,031711.000,A,4722.6810,N,12240.8793,W,0.41,142.83,101210,,,A*7F
$GPRMC,031712.000,A,4722.6811,N,12240.8793,W,0.54,142.83,101210,,,A*79
$GPRMC,031713.000,A,4722.6812,N,12240.8792,W,0.58,25.73,101210,,,A*49
Here is my test code, I close the file after 20 lines so that it doesnt get corrupted when I remove the card:
repeat
y := GPS.rx
FAT.writebyte(y)
pst.char(y)
if y == $0D
z++
if z == 20
FAT.closefile
Is there another method I need to try, or am I just plain doing it wrong?