阅读:1483回复:9
大家一起来看看这个问题
现已有一个usb设备的自带驱动(.sys),安装完成后,可不可以在vc的环境下,通过一些函数的调用来实现直接对设备确定端点的数据读写呢?
如果可以,需要有哪些工具? 如果能提供一个大致的步骤那就更是感激涕泞了。 |
|
沙发#
发布于:2004-07-17 22:22
具体点该怎么操作呢?
能不能指点一下? |
|
板凳#
发布于:2004-07-17 22:17
去开发包里找,有驱动源码,控制面板源码,还有应用程序与驱动通信说明! ;)
|
|
|
地板#
发布于:2004-07-17 11:53
我只有那个板子自带的一个sys文件和相应的inf文件,其中sys文件已经上传了。见楼上的附件。那个jpg是我自己用一个第三方软件扫描总线得到的设备描述,不看也罢。你所说的驱动的源码我没有啊。只通过sys 文件应该就可以看到设备名称了吧?
|
|
地下室#
发布于:2004-07-17 10:18
I am using an english version Win2K, I can't save your picture with chinese charactors.
Since you use a cypress usb driver, do you find the driver's source code? If you have source code, it is easy to know how to open a device and access a pipe. |
|
5楼#
发布于:2004-07-16 17:21
附图
|
|
6楼#
发布于:2004-07-16 17:19
再把板子的usb驱动贴一下,
我死活也找不到设备名, 就是在createfile(?)里要填的?, 大家也来看看。 |
|
|
7楼#
发布于:2004-07-16 17:05
有谁有有关arm相关的资料啊
|
|
8楼#
发布于:2004-07-16 16:43
用DeviceIOControl()对pipe读写时,pipe的编号是个问题, 我用的是ad dsp21161的板子,usb 控制芯片是cypress 的cy7c64613,
驱动它自己带的。应该是ezusb吧。 设备有3个interface,具体见附件。 pipe编号怎么看呢? [编辑 - 7/16/04 by ttjjcc] |
|
9楼#
发布于:2004-07-16 10:05
Your email address is blocked by hotmail system. Here is my reply.
1. Device enumeration is done when a USB device is plugged into usb port. After windows OS detects a USB device (that's enumeration process), a driver is loaded according to the device's VID/PID. After driver is loaded correctly, you can call CreateFile() to "open device". 2. How you read/write a pipe depends on the driver's implementation. After you opened a device, you got a handle of the device. With the handle, you can call DeviceIOControl() to let driver read/write a pipe. Please refer to DeviceIOControl codes that the driver provides. So, unless you develop driver youselves, you must utilize a driver to access a pipe directly. What USB driver are you using? [编辑 - 7/16/04 by windrv] |
|