Sending and receiving data over USB port

后端 未结 4 1444
旧时难觅i
旧时难觅i 2021-01-03 08:02

I\'d like to send/receive data over a USB port to a device (from my vista pc). Is there a free/cheap library out there that can do this, and how involved would this project

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 08:44

    Without knowing anything else about your situation, and assuming you are in control of the device's USB protocol and drivers, I would recommend using WinUSB.

    It is a lot better than libusb-win32 because it is a native part of Windows and it supports asynchronous communication. Also, libusb-win32 only supports the libusb-0.1 API, which is really old.

提交回复
热议问题