php - How to know a USB device's supporting function? -


i want figure out how usb device works. lets have scanner. when start scanning there must command being given windows device in order start scanning , transfer data. want know how work ? , there way can list of usb device's supporting commands ? can execute these commands , take data directly php ?

usb complicated subject, not possible teach need know in single stackoverflow answer. there lots of things learn such control transfers, descriptors, interfaces, , endpoints. can learn them reading official usb 2.0 specification, or summary of it. once know stuff, can @ device descriptors using utility lsusb, , might tell lot commands device supports. if device implements standard class defined in usb specification, can read document find list of commands. if not, contact manufacturer documentation, or might need usb protocol analyzer , reverse engineering.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -