Shop OBEX P1 Docs P2 Docs Learn Events
Harddrive? — Parallax Forums

Harddrive?

jmspaggijmspaggi Posts: 629
edited 2010-07-28 16:48 in Propeller 1
Hi all,

Is there an option to plug an harddrive to a propeller?

If I take an usb dataloguer, that will work with memory sticks, but what if I put a USB2 harddrive?

My goal is to do an MP3 player for my car, but I don't want to have to change the USB key each time we change the driver.

An idea how I can add 20GO to my propeller?

Thanks,

JM

Comments

  • LeonLeon Posts: 7,620
    edited 2010-07-28 00:07
    Why not use an SD card?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Leon Heller
    Amateur radio callsign: G1HSM
  • jmspaggijmspaggi Posts: 629
    edited 2010-07-28 00:10
    Is there some 20 Gb SD cards? I don't really about the format as long as I can have about 20 Gb. Or is the best option to have like 5 SD readers with a 4GB SD in each?

    JM

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Linux? There is worst, but it's more expensive.
  • jazzedjazzed Posts: 11,803
    edited 2010-07-28 00:27
    JM, Looks like SDCARD size is up to 32GB now. The most recent Propeller FSRW and Key packages should support this.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Propeller Pages: Propeller JVM
  • jmspaggijmspaggi Posts: 629
    edited 2010-07-28 00:35
    Wow!!!

    Look like my techno-index-brain stopped few years ago [noparse];)[/noparse] I never figured to now have so big cards!

    So that's definitely what I need!

    Thanks guys! I will update my shopping cart [noparse];)[/noparse]

    JM

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Linux? There is worst, but it's more expensive.
  • jmspaggijmspaggi Posts: 629
    edited 2010-07-28 01:28
    BTW, are the SD card adapters able to read long names in FAT32 mode?

    http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/sd/List/0/SortField/4/ProductID/597/Default.aspx

    Thanks,

    JM

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Linux? There is worst, but it's more expensive.
  • KyeKye Posts: 2,200
    edited 2010-07-28 01:35
    No, that's licensed by microsoft. The author of such a driver could get in trouble if they added that feature to their file systems.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • jmspaggijmspaggi Posts: 629
    edited 2010-07-28 01:42
    Does it mean I will not see any long file name?

    When I'm on linux, I can browse FAT32 FS and see all longfile names, and I don't think they have a license from MS, no?

    Maybe I mixe FAT32 and long file name?

    JM

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Linux? There is worst, but it's more expensive.
  • Mike GreenMike Green Posts: 23,101
    edited 2010-07-28 01:54
    You won't see any long file names on the Propeller. FAT32 is separate from the long file names. FAT32 allows larger SD cards and the latest I/O drivers do support that. Some of them (like Kye's) also support subdirectories.
  • jmspaggijmspaggi Posts: 629
    edited 2010-07-28 02:04
    Ok. So if I understand that correctly, I can have all my files on the SD card, on a FAT32 partition, with multiple directories, with long file name when I look at the card under windows, but on the prop side, I will see only short file names (like filena~1.mp3). Correct?

    Also will the driver be able to handle 32GB SD Card file system?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Linux? There is worst, but it's more expensive.
  • KyeKye Posts: 2,200
    edited 2010-07-28 02:34
    Yes, you are correct.

    As one of the authors of a file system I do not support long file names because I respect Microsoft's patent on long file names. I don't feel like stealing their work or possibly getting caught while not getting paid for my work.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • jmspaggijmspaggi Posts: 629
    edited 2010-07-28 02:42
    Hi Nyamekye,

    I understand and I'm fine with that. Do you know if there is any ext2/ext3 driver for the SD card reader? That might allow me to have the long file names, and don't steal anyone.

    Else, I will have to build an index with short file names and ID3 informations.

    Do you know if I will be able to access the entire 32GB? Or will I have the some limitation because of the FS format and have access only to the 2 first GBs?

    BTW, thanks for the driver! I have not yet use it, but I'm sure it will be very usefull.

    Thanks,

    JM

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Linux? There is worst, but it's more expensive.
  • blittledblittled Posts: 681
    edited 2010-07-28 16:20
    If long names are a requirement to reading files there is a indirect and not so elegant way of doing it by using another processor that is licensed to handle long names. You then would have to set up a communication protocal and interface between the propeller and the processor of choice. I know of 2 that can do it. Microchip has a fat32 library that works on PIC18 or higher chips. Also Tinyclr.Com has the FEZ Mini and Domino that can read Fat32. In fact the Domino has a mini SD card·interface reading/writing with the proprietary SD bus rather than SPI. You can interface to both the PIC and FEZ via SPI or serial.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Will work for Propeller parts!
  • jmspaggijmspaggi Posts: 629
    edited 2010-07-28 16:48
    Hi Blittled,

    I found a 3rd solution for my project [noparse];)[/noparse]

    To improve performances, I will have to create a catalogue with all the OGG files comments (Titles, etc.). So on each directory, I will have to generate a file with all the details inside, instead of opening files 1 by 1 to read the information.

    Since I will push the files into the SD from my computer, I will simply implement the catalogue creation on it. And there, I have access to the long file name.

    So the catalogue entry will contain the short file name, the long one, and all the OGGs or ID3 information.

    That way, I will be able to display long file name on the system without breaking any patent.

    JM

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Linux? There is worst, but it's more expensive.
Sign In or Register to comment.