Page 4 of 4 FirstFirst ... 234
Results 46 to 49 of 49

Thread: what do you need measured

  1. #46
    Join Date
    15th February 2003 - 10:49
    Bike
    Tyre Shredder
    Location
    In my own mind
    Posts
    3,869
    Ahhhh what i am talking about is a usb flash drive. The code i am looking for is the one that is on the micro that when getting the info stores it in a nice "filing system" so when plugged into a comp it can easily be read and recognised.

  2. #47
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by aff-man
    Ahhhh what i am talking about is a usb flash drive. The code i am looking for is the one that is on the micro that when getting the info stores it in a nice "filing system" so when plugged into a comp it can easily be read and recognised.
    Aha, right. Like one of those key-ring drives, you mean.

    Do you have the USB host/master protocol stack implementation sorted, then? That's a pretty heavyweight thing to put on a PIC! In fact I don't know of *any* products that use software USB hosts. You'd really need an external USB host controller slaved off your micro.

    And after you've sorted *that* out you'll need a FAT16/32 implementation, which is your 'filing system'. The USB storage devices present a sector-level interface, similar to ATA hard disks and the like, which you need to plug in at the device-driver layer of your filesystem. You're talking a *lot* of code there, DEFINITELY more than you could do yourself as a project, so you'd need to find a GPL'd implementation that you could plug in, etc.

    I should really make the point that implementing a USB host to run devices that present the standard USB mass storage interface seems like far too much work for this project of yours. In fact you would do very well to avoid USB altogether, it's a minefield of design-by-committee protocols and nigh on impossible to get working well in an embedded system from scratch.

    I strongly suggest you do an SD/MMC card interface instead, that way you still have interoperability with desktop computers, etc, but it'll be an order of magnitude easier to implement. You'll still have to find your FAT16/32 source code though.
    kiwibiker is full of love, an disrespect.
    - mikey

  3. #48
    Join Date
    4th April 2004 - 15:05
    Bike
    97 CRM 250 AR
    Location
    Christchurch
    Posts
    1,662
    IIRC - didn't one of the OSS groups release an open source verison of FAT?

    I know MS's paitent over FAT is currently being reviewed and should hopefully be voided. Will make things like this a hell of a lot easier to impliment.

  4. #49
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Google for FreeDOS.

    Or you could rip the FAT management code out of the relevant modules in the Linux kernel.

    Keep in mind the requirements of the relevant open-source/free-as-in-speech licenses - redistribution, copyleft etc.
    kiwibiker is full of love, an disrespect.
    - mikey

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •