User mode application to simulate USB device

Hi All,

Please forgive me if this posting is not in the correct forum. If it is not, please guide me to the correct forum.

We have the following scenario:

  1. A USB device which connects to a host machine running Win 7 OS. The USB device is registered as an “HID class” device.
  2. An application on the host machine which is listening to the USB device (referred to as App A) via HID APIs
  3. When a button is pressed on the device, we receive corresponding data in App A. We process the incoming data and take required actions.

We want to achieve the following:

  1. Connect the device to the host machine
  2. Run App A on the host machine to listen to the USB device
  3. Develop and run another application on the host having a button on it (App B). When the button is pressed in App B, it should push the same data to App A as if a button had been pressed on the device. Hence, the objective is to simulate button press on the hardware device using App B.

I am a newbie in windows devices and windows drivers, hence please forgive me if the post is not appropriate.

Please let me know in case of any queries. Any pointers/solutions in this direction are highly appreciated. Thanking everybody in advance.

Best Regards,
Veenit

I think there was Device Simulation Framework once in the WDK?

wrote in message news:xxxxx@ntdev…
> Hi All,
>
> Please forgive me if this posting is not in the correct forum. If it is not, please guide me to the correct forum.
>
> We have the following scenario:
>
> 1. A USB device which connects to a host machine running Win 7 OS. The USB device is registered as an “HID class” device.
> 2. An application on the host machine which is listening to the USB device (referred to as App A) via HID APIs
> 3. When a button is pressed on the device, we receive corresponding data in App A. We process the incoming data and take required actions.
>
> We want to achieve the following:
>
> 1. Connect the device to the host machine
> 2. Run App A on the host machine to listen to the USB device
> 3. Develop and run another application on the host having a button on it (App B). When the button is pressed in App B, it should push the same data to App A as if a button had been pressed on the device. Hence, the objective is to simulate button press on the hardware device using App B.
>
> I am a newbie in windows devices and windows drivers, hence please forgive me if the post is not appropriate.
>
> Please let me know in case of any queries. Any pointers/solutions in this direction are highly appreciated. Thanking everybody in advance.
>
> Best Regards,
> Veenit
>
>
>

Hi Maxim,

Windows Device simulation Framework is discontinued starting WDK 8.0. I am unable to find the replacement/equivalent for the same. Could you please guide me to the replacement/equivalent of WDK currently.

Your robust option is a umdf driver (a hid miniport), but that is not a general purpose app anymore. SendInput() May do what you want but I think app A needs to be in focus for it to work

Sent from Outlook Mailhttp: for Windows 10 phone

From: xxxxx@capgemini.commailto:xxxxx
Sent: Wednesday, February 3, 2016 1:33 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] User mode application to simulate USB device

Hi All,

Please forgive me if this posting is not in the correct forum. If it is not, please guide me to the correct forum.

We have the following scenario:

1. A USB device which connects to a host machine running Win 7 OS. The USB device is registered as an “HID class” device.
2. An application on the host machine which is listening to the USB device (referred to as App A) via HID APIs
3. When a button is pressed on the device, we receive corresponding data in App A. We process the incoming data and take required actions.

We want to achieve the following:

1. Connect the device to the host machine
2. Run App A on the host machine to listen to the USB device
3. Develop and run another application on the host having a button on it (App B). When the button is pressed in App B, it should push the same data to App A as if a button had been pressed on the device. Hence, the objective is to simulate button press on the hardware device using App B.

I am a newbie in windows devices and windows drivers, hence please forgive me if the post is not appropriate.

Please let me know in case of any queries. Any pointers/solutions in this direction are highly appreciated. Thanking everybody in advance.

Best Regards,
Veenit


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:></mailto:xxxxx></mailto:xxxxx></http:>