trigger the execution via USB

I am using MCB2300 kit with LPC2378 processor. I had a look at the example provided in C:Keil\ARM\Boards\Keil\MCB2300\RL\USB_FlashFS . Here SD Card as storage media for USB memory. I am doing some processing on the files present on SD card via USB interface. Now I need to trigger the file processing the moment a file with a specific name is created on SD card instead of me typing the command on the serial window along with the file name for doing processing. Please let me know how to trigger this?

Parents
  • > Now I need to trigger the file processing the moment a file with a specific name is created on SD card

    MSC (Mass-Storage Class) device can't tell the exact timing when the host finishes to write a file on the media. File write on host is split into sector read/write of FAT, directory and file content sectors on the device. Just the OS on the host knows the order of these sector read/write, device doesn't.

    In most case, MSC is a bad idea for the communication which requires exact timing or transfer speed. For these applications, CDC (virtual COM port) or bulk transfer on generic class are better.

    Tsuneo

Reply
  • > Now I need to trigger the file processing the moment a file with a specific name is created on SD card

    MSC (Mass-Storage Class) device can't tell the exact timing when the host finishes to write a file on the media. File write on host is split into sector read/write of FAT, directory and file content sectors on the device. Just the OS on the host knows the order of these sector read/write, device doesn't.

    In most case, MSC is a bad idea for the communication which requires exact timing or transfer speed. For these applications, CDC (virtual COM port) or bulk transfer on generic class are better.

    Tsuneo

Children
More questions in this forum