USB flash drive

I recently read about the Arduino Hello World app , and I thought to myself: “I wonder if I can do this with the hardware that I have right now.”

Since I don't have an Arduino, I grabbed the flash drive with the USB drive I was lying on and started looking for information about it. I did not find much useful information in this area, so now I ask: is it possible for me to access the equipment of a USB drive (for example, an LED) and interact with it through some programming environment (I thought that C # should probably have a way to do this)?

Also related to this question - does anyone know which commands use USB drives? For example, SCSI storage devices have a standardized instruction set; ATA devices have a similar protocol. How are such simple read / write commands issued to a USB storage device?

+3
source share
5 answers

Although the USB protocol is fairly general, peripheral devices are really specific and require some kind of device driver on the host to function properly.

USB- , USB . , .

, " ":) , USB-, (, ), , .

Windows, , , USB-, . , " " USB-.

+5

, DIY USB, , USB-.

USB, , , , .

, USB- F:, , F:\lights.txt, , , .

, - , . .

, USB, , , , . , , RS-232.

+3

. - Mass Storage.

+1

USB- Linux SCSI, , , .. - "", .

+1

You can control USB as an RS232 port, hope this MSDN link helps you more http://www.microsoft.com/downloads/details.aspx?FamilyID=075318ca-e4f1-4846-912c-b4ed37a1578b&DisplayLang=en

0
source

Source: https://habr.com/ru/post/1702149/


All Articles