Receiving data from a USB device in C or C++

后端 未结 5 507
夕颜
夕颜 2021-02-01 09:05

I need a list of all plugged in USB devices and have the user select one to let the console application receive any data the USB device sends.

I can then start playing a

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 09:47

    The advice you're getting here is on the mark; USB is not easy, believe me... I'm working on a USB project but from the back-end. Seems to me that you need to be looking at the back-end too, that's where you really don't have to deal with libraries and all that, but you won't be able to get around the reading whatever you do.

    Don't get discouraged yet, but you do need to wet you feet before you jump in and drown. USB2.0 and USB3.0 are quite dry, but I found OSDev Wiki and usbmadesimple to be useful stepping stones.

    If you still need to be in the PC, then you should consider trying to get a hold of some open source usb code for maybe a USB sniffer if you can find it.

提交回复
热议问题