holeyg Posted May 30, 2014 Posted May 30, 2014 Dear All, This is my first post so please forgive me if this is not the appropriate forum to post it. I would like you to go through this post atleast once though its core mass storage implementation for Embedded Product. I am trying to implement a Microcontroller based USB Mass StorageI got success with its implementation with 2 GB SDCARD. For further development, I am facing following difficulties:-1. I want to give SD Card which is storage media for my USB MSC a default name like : "MyStorage" (As it is detecting as "Removable Disk")-> I am not able to see the custom name even after renaming itwhile ejecting my device, under Windows7 It appears like:"Eject My USB Dongle"--"Removable Disk" (This is SD Card)2. Even if I will try renaming the SD Card in windows..It wont detect the Card as with the changed name. (This is the case tested on Different PCs)3. Any .inf file needs to generated for SD Card to be detected as "MyStorage" and Not as "Removable Disk" ?4. How OS Process the Rename Request for SD Card and Where this name is Stored? Any USB Descriptor is updated in this process?5. (Out of Curiosity) How standard MSD like Pendrives/Card Readers are detected with their manufacturers name like Sandisk Pen Drive is listed as "Sandisk" under Removable Storage Category in Window. Thanking you all in anticipation...Please revert ASAP.Regards,Gaurav P. Holey
jaclaz Posted May 30, 2014 Posted May 30, 2014 It is not clear (to me) what you are after. A USB stick (pendrive) is something completely different from a SD card.A USB stick has inside it a "bridge" between USB and the Flash memory, a controller.This controller is what has the (USB) PID and VID and the Name (like Sandisk Pen Drive). A USB stick is comparable to a SD card reader (which has the controller, and has the Vid/Pid and "Name") + a SD card inside it (which is more like a good ol'floppy, or a CD/DVD, only some "media"). What do you mean by "renaming the SD card" in Windows?Changing the Volume's Label? jaclaz
holeyg Posted May 30, 2014 Author Posted May 30, 2014 Dear Sir, The exact scenario is like this:- Hardware Wise: Microcontroller with USB stack communicating to SD Card (through SPI interface) => Event : when it is connected to PC , it (Device) acts as MSD.. I am able to Read/Write files from this Mass Storage Device (MSD). This USB Device as whole is listed as New MSD with name "My USB Dongle" when it is enumerated Concern: The label of SD Card is "Removable Disk" under "Removable Storage" Category in Windows Intended: I want this label of SD Card as "My Storage" under "Removable Storage" Category in Windows when device is enumerated. OR If above thing is not possible ...Atleast if I Renaming the Volume's Label.. It should be detected with this Volume Label in every PC wherever I connect this USB MSD. Please revert...I will try to Post Screen shot if possible. Thanking you in anticipation. Regards,Gaurav P. Holey
jaclaz Posted May 30, 2014 Posted May 30, 2014 Which EXACT make/model is the "microcontroller"? If you format the SD card (i.e. you create a single volume in it) with a recognized filesystem (such as FAT16/32/NTFS etc.) that Windows recognizes, the volume will get a drive letter and if you assign to it a volume label, in Explorer you will see it with the drive letter and the Label, the drive letter may change when you connect it to another system (as drive letters are automatically assigned by windows) whilst the Label will obviously remain the same.But the Volume Label is on a much higher level than device ID (PID/VID) and Device name, these are stored in the "microcontroller", together with it's "on device" firmware. jaclaz
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now