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?
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-.
, DIY USB, , USB-.
USB, , , , .
, USB- F:, , F:\lights.txt, , , .
, - , . .
, USB, , , , . , , RS-232.
. - Mass Storage.
USB- Linux SCSI, , , .. - "", .
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
Source: https://habr.com/ru/post/1702149/More articles:Smoothing relational data for summary / export - sqlInterface programming - use them for security class? - c #C ++ RAII Replication in C # - c #How to force image caching with meta-update? - htmlGeneral Enforcement - genericsBest way to create a “runner” script in Python? - pythonWhat combination of GTK widget is used for a scrollable column of widgets? - pythonC # equivalent to getClassLoader (). GetResourceAsStream (...) - c #Почему этот jQuery работает по-разному после того, как я перехожу на другую страницу, затем нажмите кнопку "Назад"? - jqueryКак расширить элемент управления в WPF, чтобы освободить место для сообщений об ошибках в ErrorTemplate? - wpfAll Articles