Shop OBEX P1 Docs P2 Docs Learn Events
vinculum II pendrive interfacing — Parallax Forums

vinculum II pendrive interfacing

zaftblitzzaftblitz Posts: 3
edited 2011-12-12 07:59 in General Discussion
i want to ask about the viculum II. want i want to do is to read some file in the usb pendrive. but what i want to do is, i want it to saperate into some folder. i manage to read/write file without the folder but when the file is in the folder and i want to write the file into the folder, it cannot be done. i had already go though the other forum, example, etc, but still cannot solve for this vinculum.

for example, i want to read 001.txt on 001 folder (F:\00\001\001.txt)
but when i tried it , cannot give the output that i want. i'm using fopen, fread,fwrite on the stdio library. so how i want to read/write the 001.txt file?

*sorry for the broken english

Comments

  • Dantes LegacyDantes Legacy Posts: 16
    edited 2011-12-12 07:59
    Can I ask you to clarify some things please? Firstly: Are you trying to program a Vinculum 2 micro controller? Or are you using the VDrive2 USB device to interface with a Propeller micro controller?

    If you are using the VDrive 2, I have had some experience with that. I have found the 'DataloggerSPI' object from the Object Exchange found at http://obex.parallax.com/objects/237/ very useful. For this to work, you will need to set the VDrive 2 to SPI mode. The object can show you how to move from one directory to another. I have used this and found it very successful. The only problems I have with the VDrive 2 is the amount of current it consumes. Programming it was a breeze!
Sign In or Register to comment.