Shop OBEX P1 Docs P2 Docs Learn Events
USB Drive interaction without Parallax #27937? — Parallax Forums

USB Drive interaction without Parallax #27937?

Techno KeithTechno Keith Posts: 12
edited 2008-07-04 18:19 in Propeller 1
Is it possible to communicate with a usb drive without any type of middle man?· Would a complex driver need to be written?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-07-04 17:09
    It's theoretically possible, but would have terrible performance, be extraordinarily large and complex. Someone has written a USB interface for slow HID devices, quite slow.

    The problem is that USB is quite complex with many layers. You can get chips that take over some of the lower level higher speed functionality (like the MAX3421E). Even with this, you'd still need a complex driver. For a USB Memory Stick, you'd also need a file system. There's a driver already written for the FAT16 file system for SD cards and it could be modified for use with a Memory Stick, but it can't handle FAT32 which is necessary for drives > 2GB. It also can't handle long file names or subdirectories.
  • Techno KeithTechno Keith Posts: 12
    edited 2008-07-04 18:05
    Thanks for your response Mike. I was somewhat expecting this answer. I think I'll stick with an SD card for my project.

    Any thoughts on skipping usb and directly interfacing with the memory from a usb drive?
  • Jimmy W.Jimmy W. Posts: 112
    edited 2008-07-04 18:08
    There wont be a single answer to this, some of the cheap usb drives I have taken apart used an SPI interface that with some work you may be able to interface, I recommend you either A. stick with SD or B. take apart said usb and look up the components inside
  • Mike GreenMike Green Posts: 23,101
    edited 2008-07-04 18:14
    "skipping usb"? You're on your own. I'm sure it's possible to do it, but it's not practical. Get a good dissecting microscope, a really fine soldering iron and a bunch of tiny tools.
  • Techno KeithTechno Keith Posts: 12
    edited 2008-07-04 18:19
    I'll stick with SD and maybe tinker with this in the future. Thanks guys.
Sign In or Register to comment.