negartdn
Newbie level 1
Hi
I need a simple modification on a existing example from Windows Device Driver Kit WinDDK. The example is the one named usbsamp on KMDF, (USB Sample), to be modified in a way that it will act as a 'loopback'. That means whenever the usb device will be plugged in, the driver will read from the IN endpoint a 4Kbyte block and then write to the OUT endpoint the same 4Kbyte block. That has to happen natively from the .sys driver itself and not from the userspace application (as it is right now). Also that reading/writting has to happen on a timely basis through a timer with a period of 1ms. So for every 1ms tick, the driver will read a 4Kbyte block and then write it back immediately and that will happen within the kernel mode driver. The actual external usb device is not of particular importance and is not needed during development as it is not having any particular protocol, it can be easily simulated from the DSF.
I would appreciate it if you deliver me the changed example source code.
I need a simple modification on a existing example from Windows Device Driver Kit WinDDK. The example is the one named usbsamp on KMDF, (USB Sample), to be modified in a way that it will act as a 'loopback'. That means whenever the usb device will be plugged in, the driver will read from the IN endpoint a 4Kbyte block and then write to the OUT endpoint the same 4Kbyte block. That has to happen natively from the .sys driver itself and not from the userspace application (as it is right now). Also that reading/writting has to happen on a timely basis through a timer with a period of 1ms. So for every 1ms tick, the driver will read a 4Kbyte block and then write it back immediately and that will happen within the kernel mode driver. The actual external usb device is not of particular importance and is not needed during development as it is not having any particular protocol, it can be easily simulated from the DSF.
I would appreciate it if you deliver me the changed example source code.