Data logging into 27937 using SPI, from parallax Quick Start board
Hello everyone, i am new to spin programming language. Trying to write data into memory stick datalogger 27937 using SPI protocol. Not sure whether my code is absolutely wrong or if there is just something i am not aware off. The problem is that i can't get the Quick start board to communicate with the 27937. It keeps throwing message that "USB card not present ". Tried to use echo function but that doesn't work as well. I have attached my program to this message, if anyone have any ideas of how i can solve this problem, please share with me. Thanks in advance
Mindaugas
Mindaugas
Comments
I know some people like using these dataloggers but I've had lots of trouble with the ones I've used. I've had a very hard time finding thumb drives which work well with these dataloggers.
IMO, it's much much easier to use SD cards with the Propeller.
What thumb drive are you using? Are you sure it's compatible with the datalogger?
Are you interested in trying the datalogger in UART mode?
Thanks for replay.
USB stick could be a problem as after initializing the red light should stay on the memory stick datalogger, but it doesn't.
I would like to try UART just to see if that will work better. Any idea where i could start?
Would like to be able to save some text in ASCII format if that's possible using UART.
Mindaugas
http://obex.parallax.com/search/27937
Yes, from the link you sent i am using DataloggerSpi program, as well i am using Parallax serial terminal program. What i am trying to do, is to create a simple enough program which would create a .txt file in the usb stick, then write some data in it using SPI protocol. The problem is, in the programs available i never get further then up to the point where it checks if the disk is present. Duane suggested that this might be due to the USB stick, so i am going to try to buy one of the types which are specified in the 27937 datasheet to see it that help any how.
Perhaps you know any better codes available for testing datalogger in SPI mode?? Then those available in the link you shared?
Thank you
Mindaugas,
Jumper in SPI Mode
and
I'm sure you checked these.
I bought the Data Logger a couple of months ago, but I have not have time to hook it up yet.
For all USB done the check using that command window, all without any faults or errors, i read in some forum that FAT 32 wasn't working then he changed to FAT 16 and it worked. USB i have used had FAT and FAT 32 type file system. I wonder should i try to get one of those FAT 16. Even though datasheet specifies that it should work with FAT 12, 16, 32 type USB discs.
Thanks for any other ideas.
By the way have changed the pin numbers as suggested just to be on the safe side, doesn't really made any affect.
Mindaugas
Thanks to everyone who shared their thoughts.