阅读:1510回复:2
请教68013 驱动的缓存问题
我的应用程序从usb设备读取数据,当系统忙的时候,应用程序来不及读取数据,设备因为有数据积压就停机了。请问怎样改驱动,让驱动有缓存,可以在系统忙的时候自动把设备的数据读到缓存,等系统有空闲的时候,应用程序再把数据从驱动的缓存读走?
|
|
沙发#
发布于:2005-05-19 09:33
我的供应商问了cypress这个问题,下面是回答。看来指望cypress是不行了。要自己改驱动。可是改驱动太痛苦了。动不动就蓝屏。
Q: My customer want to know does it possible to buffer the date which form usb end-point insid the Ez-usb.sys. how can he to do that. thanks, I would recommend tha the customer refer to the source code of the driver provided along with the control panel host application included with the devlopement kit. Please note that our support for host end application is quiet limited and hence we provide the source of the driver an d the control panel host applications \'as is\' and the user may use and modify it as they see fit. Also please refer him to the \"EZ-USB General Purpose Driver Spec.pdf\" document included with the tool in teh \"C:\\Cypress\\USB\\Doc\\EZ-USB General\" directory. The ezusb.sys driver is very basic. The intended purpose was to allow users to communicate with the development board and evaluate our EZ-USB FX2 silicon. The driver provided \'as is\' is not ready for using for the final production. It is not WHQL compliant, it does not support power management and does not support asynchronous transfers. The support for streaming or for that mater high bandwidth isochronous transfer was not taken into consideration while developing this. Hence we provide the source code, so that users may be able to modify it as per their need, implement the power management scheme to meet the WHQL certification. We have not updated the driver for quiet a while and have no plans to do so. It has not been tested thoroughly on any of the OS\'s beyond win 98 ( on which it was initially developed). Without the power management scheme implemented in the driver, the device is bound to run into suspend/wakeup/resume issues as you are seeing. The new driver that is included with our new USB Developers uStudio development tool is a much more improved driver. This new general purpose driver that is included with our new developemnt tool is WHQL compliant under Windows 2K and XP, and includes support for PnP, remote wake-up, customizable GUID and power management level S4. The driver can be used with general purpose applications that use control, interrupt, bulk, or isochronous transfers, and comes complete with documentation, C++ APIs, and code examples. The queued transfer example in particular has been demonstrated to move bulk and isochronous data at up to 30-24MBytes/sec |
|
板凳#
发布于:2005-05-19 00:45
我的也出现了这样的问题。郁闷那
|
|