C# Apliccation for USBFS HID UPS

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LuDi_2288466
Level 2
Level 2
10 replies posted 5 replies posted 5 questions asked

Hi,

a few days ago I posted the following discussion  USBFS HID UPS

Now i want developing an Application in C# to sniffer the report buffer from usb.

How i can do this?

I use FreeSoC2 Development Board, SparkFun’s take on the PSoC5LP ARM Cortex with two processors onboard: a CY8C5868LTI-LP039 and a CY8C5888AXI-LP096. I want configure USB Full-Speed (USBFS) component as HID Uninterruptable Power Supply Interface (UPS).

Thanks in advance for any replies.

Lucia

1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Hello,

Cypress HID Classes are no longer supported on Windows 10. CYUSB3.sys previously had support for HID Classes but now it is obsoleted. Please use the Windows HID libraries to develop your applications.

Thanks,

Ankita

View solution in original post

0 Likes
6 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Hello,

Cypress HID Classes are no longer supported on Windows 10. CYUSB3.sys previously had support for HID Classes but now it is obsoleted. Please use the Windows HID libraries to develop your applications.

Thanks,

Ankita

0 Likes

Hello,

Thanks for your reply.

Can you suggest me which Windows HID libraries to use to develop my apllication?

Thanks,

Lucia

0 Likes
KyTr_1955226
Level 6
Level 6
250 sign-ins 10 likes given 50 solutions authored

If you want to use C# (WinUSB is C++ it looks like), I've found HIDSharp to work OK in interacting with a HID device.

Be aware though, Windows has some gotchas in terms of what kind of HID device you can open the HID data stream from.  In my case, I couldn't capture input from a HID Keyboard device because Windows essentially locks down the keyboard input for itself as a "security feature".

0 Likes

Hello,

Thanks for your reply.

Do you know how i can open the data stream from HID device in Windows?

Thanks,

Lucia

0 Likes

Hello,

I think these links will be helpful in understanding how to open the data stream from HID device in Windows :

HIDSharp: USB HID Communications in .NET

NuGet Gallery | HidSharp 2.1.0

A USB HID Component for C# - CodeProject

Thanks,

Ankita

0 Likes