这里纯粹是为资源打广告,接口开发里面最难的怕就是usb和 pci两种了。
尤其是驱动开发。
libusb免驱设计 为什么好,我就不说了。
折腾了两天,出了点结果。
资源链接:
http://download.csdn.net/detail/playerthinker/9396622
资源有两个例程,一个是块传输了,一个是同步传输了,块传输比较容易,同步传输有点参考价值。
说下libusb开发过程中的坑吧:
1.不能用虚拟机之类的进行开发,要在电脑上,或开发板上直接用linux开发。其他 基础知识就不讲了。
2.老式点的电脑主板可能也不行,会出现libusb_error_io错误。
3.如果下位机不是自己开发的,可以先用bushound抓包,有时同步传输需要用控制传输传送些设置命令。
参考同步传输应该很容易把 中断传输代码也写出来吧。
有空的时候乐于为大家解决开发过程中遇到的问题。
qq:1263174944,如果有验证码,可以给我发邮件,就是这个qq邮箱。