This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB: mounting file systems

Hello,
If I mount a USB device on a windows machine, can the device in any reliable way create files so that they appear on the windows explorer? I know the device is mounted on Windows so that Windows should be the one to determine the contents. But is it possible or is this a clear violation of the rules? what happens if the device creates a file, resets itself (assuming it can do that by control over the data lines) to force reenumeration? will Windows see the new file?

Parents
  • Tsuneo,

    I am sorry to bother you again but I am having some trouble here...when I try to do this

    case SCSI_MEDIA_REMOVAL:
      if ( (BulkBuf[4] & 3) == 0)
      {
            CSW.bStatus = CSW_CMD_PASSED;
            MSC_SetCSW();
      }
      else if ( (BulkBuf[4] & 3) == 1)
      {
            goto fail;
      }
    

    I cannot write to the device anymore. I guess I'm doing something wrong in passing the command, because failing it is the default behavior and it works. The RMB bit is set to 1. What am I doing wrong here?

Reply
  • Tsuneo,

    I am sorry to bother you again but I am having some trouble here...when I try to do this

    case SCSI_MEDIA_REMOVAL:
      if ( (BulkBuf[4] & 3) == 0)
      {
            CSW.bStatus = CSW_CMD_PASSED;
            MSC_SetCSW();
      }
      else if ( (BulkBuf[4] & 3) == 1)
      {
            goto fail;
      }
    

    I cannot write to the device anymore. I guess I'm doing something wrong in passing the command, because failing it is the default behavior and it works. The RMB bit is set to 1. What am I doing wrong here?

Children
No data