Hello Keil,
I have a very strange request from client. I would be very thankfull you or anyone could help me out.
The scenario is: I have a server with some media file assigned to unique id's and the server is conected to a series of USB flash drives port (20). Now, a user comes down & plugin his/her USB drive. Every USB drive has an .txt file, the .txt file names are nothing but the unique id's which are already stored on server.
Once the user plugin he's/her USB drive, the server should be able to read the .txt file name(unique id) and get all the media files from the server and copy it to USB flash drive. Once its done we shouls close the port.
Just to let you guys know, no monitor will be there and once we copy the files to USB it should intimate the User.
I know it sounds strange. Again any help / direction would be truly appreciated.
Thanks Sagar
"Hello Keil"
Note that the forum is not the way to contact Keil; it is for discussions between users about Keil products.
Your "project" sounds like it is entirely PC-based and, therefore, has nothing to do with Keil products?
I am sorry for that. It was just that I was seeking some help from anywhere possible.
Any direction would be truly helpful.
What help, exactly, do you actually require?
You seem to have a pretty good description of the requirement - where are you stuck?
"Just to let you guys know, no monitor will be there and once we copy the files to USB it should intimate the User."
Just make sure that you don't intimidate your customers.
Thank you very much for your response.
To be fair enough I havent started anything. It was just I got the request few hours back from client and just could'nt say no because looking / experienceing the present global crisis.
I would need a direction to start and I am pretty sure I could achive it. The biggest challenge would be detecting the USB by itself and reading the file name, then sending out the file name & copying the relative content to USB.
Looking forward for you response
Thanks, Sagar
(Just curious and chatting)
What do you mean by "the present global crisis"?
Some people/officials say the Global financial crisis of 2008-2009 has/had ended.
Step 1. Constantly enumerate all drives in the system.
Step 2. Look at contents of new drives.
Step 3. Copy data to new drives having matching data in text file.
Step 4. Decide how you will inform the user that the copy is done - possibly beeping.
An issue here - if you allow multiple concurrently connected USB drives, you will have a bit of a problem informing exactly which drive you are done with. People will have to keep an eye on the activation LED for the drive. But if you don't find a matching file, then you will not have anything to copy. The user will not see any activation light, and may assume that the copy is done, when in reality it failed.
Maybe it is possible to cut/not cut the power to the drive to signal the difference between a drive you have copied all data to and a drive you can't recognize. But that requires a USB drive that has a light of one color when powered, and another color when being accessed.