Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Jul 2004 04:38 PM by  Andreas
hot swap compact flash card
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Andreas
New Member
New Member
Posts:


--
23 Jun 2004 06:51 PM
    I am doing an application for a headless device where I need to handle hot swapping of CF cards. I got as far as checking the CD1/CD2 pins in the CF socket to determine if a card is inserted or not, but how can I get Windows CE to figure out a new card is inserted and reload the FAT? As it is now, CE thinks the old card is still there and file access fails as a result.

    Any help much appreciated,

    Andreas
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    30 Jun 2004 11:32 AM
    Andreas,

    So it sounds like what you want to do is write an application that performs the following actions:

    1) Poll the CD1/CD2 pins at some interval to determine when a CF card has been inserted or removed.

    2) Based on the presence (or lack thereof) of a CF card, you want the CE filesystem to mount or unmount the CF card as a block device.

    It sounds like your well on your way to handling step 1. As far as step two goes, I don't have any direct experience with it. However, the Windows CE help file has a section on the Storage Manager. In the "Storage Manager Reference" several functions (APIs) are listed including; DismountPartition, MountPartition, DismountStore, OpenStore, etc. So, I guess I would poke around there and see if some of those functions will suite your needs.

    You can also try the Windows CE newsgroups. I typically head to the DejaNews versions here:

    http://groups.google.com/...indowsce.platbuilder

    Best regards,

    --mikee
    pmains@aquameasure.com
    New Member
    New Member
    Posts:


    --
    22 Jul 2004 05:44 PM
    Andreas --

    Have you had any luck with that hotswapping thing? It sounds a bit complicated, and I know it's a bit out of my realm. I was curious if you'd any success finding or developing a program that would allow you to use a compact flash more like a typical floppy disk. This business of needing to reboot every time you put something new on the card is for the birds.

    Well, good luck.

    Pete
    Andreas
    New Member
    New Member
    Posts:


    --
    27 Jul 2004 04:38 PM
    Hi Pete,

    I found some hints in the discussion forums Mike mentions but had a hard time opening a handle to the file system and as a result couldn't reload the file system.

    I have to save this for a rainy day (fat chance in CA this time of the year) as more urgent issues came up but I do need the hot swap feature as well. I'll post the procedures when I get something working.

    until then,

    Andreas
    You are not authorized to post a reply.