Hi Experts,
I use osrusbfx2 sample of KMDF1.0 to link my usb device.
Step1 through step3 succeed.But Step4 and later fail.I compare
source code,and find perhaps IoRead and IoWrite fail.
Could you tell me how to modify source code to fit my usb
device?Thanks a lot in advance.
ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡
when you say that step4 fails, what do you mean? does the driver not load successfully? does it load successfully, but i/o fails? does your usb device have the same endpoing configuration as the osrusbfx2 device? step4 uses hardcoded indecies for retrieving the endpoints, if your device has a different order for the bulk endpoints, then this may be the problem
d
Hi Experts,
My usb device out endpoint index is 0,in endpoint index is 1.
Yesterday when I load step4 driver,windows XP become Black screen
and restart.Today I modify step4.c,BULK_OUT_ENDPOINT_INDEX 0,
BULK_IN_ENDPOINT_INDEX 1,but same thing happens.
Could you advice?
ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡
You have to debug this on your own since this your hw and not the OSR device
d
Yu Zhou wrote:
Hi Experts,
My usb device out endpoint index is 0,in endpoint index is 1.
No, it’s not. Your control endpoint is index 0. Your bulk endpoints are
1 and 2. EVERY interface has a control endpoint as endpoint 0. It is
required by the spec.
Yesterday when I load step4 driver,windows XP become Black screen
and restart.Today I modify step4.c,BULK_OUT_ENDPOINT_INDEX 0,
BULK_IN_ENDPOINT_INDEX 1,but same thing happens.
Could you advice?
Change them to 1 and 2 and try it again. However, even this should not
have caused a blue screen. You are going to have to capture this in
windbg and debug it.
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.