Shop OBEX P1 Docs P2 Docs Learn Events
sd card for data storage for prop usb for computer to write? — Parallax Forums

sd card for data storage for prop usb for computer to write?

mctriviamctrivia Posts: 3,772
edited 2009-02-09 15:21 in Propeller 1
What would be needed to let the computer see my sd card hooked up to my prop as a hard drive so files could be copied to it without removing it from the device? but the prop can read the files still. they don't need to read and write at the same time.

Comments

  • BradCBradC Posts: 2,601
    edited 2009-02-09 13:14
    mctrivia said...
    What would be needed to let the computer see my sd card hooked up to my prop as a hard drive so files could be copied to it without removing it from the device? but the prop can read the files still. they don't need to read and write at the same time.

    You'd need a USB stack designed to work as a mass storage device. Now the USB stack written for the propeller works LOW_SPEED only, and low speed prohibits the use of BULK endpoints (which you need to do usb-storage). Both Windows and OSX ignore the rules and allow bulk endpoints on LOW_SPEED devices. Linux requires a kernel patch or two but can be made to work.
    You'd be limited to about 8k/s maximum throughput, which would not be fun, but it could be done if you were determined to do it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-02-09 14:53
    Rayman wrote a version of YMODEM for the Propeller that can transfer files from a PC to a Propeller SD card over the download serial port:
    http://forums.parallax.com/showthread.php?p=718391
  • mctriviamctrivia Posts: 3,772
    edited 2009-02-09 15:21
    i was actually wondering if there was away to do it in hardware bypassing the prop. The prop would never be writing to the card so it could either some how monitor usage or just not use the card when pluged in.
Sign In or Register to comment.