hid

.NET API for HID (USB)?

Is there an API in .NET (C#) for using USB HID (Human Interface) devices? ...

MacOS Virtual Input Devices

How can I create a virtual HID device in code? I'm trying to avoid writing a kernel extension to accomplish this, but it seems to be the only way. I need to be able to create virtual HID devices of all types, and have an app running in the background feed them events. Is there a way to do this in user-space, or must I venture into kernel...

Linux RFID reader HID Device not matching driver

Hello, I got a RFID reader (GigaTek PCR330A-00) that is meant to be recognized under linux/windows as a (Human Interface Device) keyboard/USB. I hate to say this but it is working as a charm under Win7 but not "really" under Linux. Under Debian-like distros (x/k/Ubuntu, Debian,..), or Gentoo, or... I just can't have the device working...

Writing USB HID device driver with streaming interface for Windows Mobile 6

Hi, see if there's anyone that could give me some useful pointers in this matter. Problem: We have a handheld device running windows mobile 6 that need to communicate with a custom device identifying itself as a USB HID device. We need to exchange information between the device and the handheld in both directions. there's currently a w...

Logictech USB HID controller message

I have a Logitech game controller(http://www.amazon.com/Logitech-Dual-Action-Game-Pad/dp/B0000ALFCI). I'm using c# and Microsoft's HID driver to track what buttons are being pressed. Each button press sends a Byte Array that has 8 values. The problems is that I don't know what those 8 value represent. Here is an example: 0, 128, 126, 12...

Roll My Own Windows Joystick HID Driver?

I have a USB Joystick, and I want to write my own HID driver for it. Notably I want to inject delay between when the joystick input is received by Windows and when my application is notified of that input event. I would also like to change the identity of the joystick percieved by my application. I have never written a driver, let alone ...

What HID device information is returned in LParam when a device is reported by the system?

I have been searching for information on this for about 30mins now and got nothing so far. Does anyone know what HID information is buried within LParam that's returned when the system (in this case windows) reports a system device change? (either removal or arrival) ...

activate program while screen is locked

I have an application that sends predetermined messages when you tap a configurable hotkey or when you press a usb enabled HID. How can make program work with a locked screen without entering the password and logging back in? Basically, I need the program to execute the message through pressing the hotkey or clicking the usb device whil...

[BT][HID] How is a Bluetooth HID connection handled in Ubuntu or android

Hi I am working on a project that uses the Bluetooth HID profile. I understand that the BlueZ stack in android has the HID support but its not extended to app layer by Android Framework. My main concern is to understand the driver level flow for a Bluetooth HID device. I would like to add a new HID device driver that can handle the ke...

WDK (Windows Driver Kit) and VC++ headers problem

Hi, I'm trying to read from an USB HID device, I know how to do it in C# using DLLImport hid.dll, but I want to do it from C++, this way I don't have to declare all the structures, etc, and just include the headers files. So I downloaded the WDK and then when including the headers files and linking the libraries I'm getting a lot of er...

Reading and writing to USB (HID) interrupt endpoints on Mac

I am attempting to communicate with a rather specific USB device and developing both Windows and Mac code to do so. The device is a USB device with a HID interface (class 3) with two endpoints, an interrupt input and an interrupt output. The nature of the device is such that data is sent out from the device on the input endpoint only...

How do I detect when a device attached to the system is ready for use?

Hi all I'm sorry if this is similar to an earlier question but this is something I just noticed. I can detect when my device is attached to the system (via usb) and trap the message correctly however if I unplug and plug the device back, attempting to access the device via the CreateFile() function always returns an error: ERROR_GEN_FAI...

USB HID Report Descriptor for Mouse Horizontal Scroll and Back Button

Hi, I'm building a USB mouse using a microcontroller, I have built one with vertical scrolling before using USAGE (Wheel) but I am not sure how to replicate the horizontal scrolling and back button features that a lot of good mice has. Does anybody here have experience with USB HID report descriptors who can help me? Can anybody who hav...

How do I tell OS X to ignore the input from one of two connected USB mice?

I have two USB mice connected to my Mac, one of which I'm using as a scanner. I need access to the Generic X and Y data but I don't want that data to move the cursor. How, under either carbon or cocoa environments, do I tell the system to ignore the mouse as a pointing device? Edit: after some digging I've found that I can turn off mou...

How do I read input from a USB HID device?

I'm making an application to run in the background on a salespoint to read input from a usb scanner. How can I get the input of the scanner from C#? And can I differentiate between the scanner and a usb keyboard? (Scanner is a HID device) ...

Can android Emulate a HID device?

I was attempting to design an app that would allow me to have android emulate a hardware device. I.E. a generic keyboard, a generic mouse. I could essentially plug in my android (HTC) to a computer, and program it to use a software keyboard as the computers hardware keyboard. I don't have any direction on how to accomplish this. I on...

USB traffic analyzer can get HID usage information, how come I can't get ReadFile to do the same?

I'm trying to use the Windows Driver Kit HID functions to get the state of a Saitek X52 joystick on x86 Windows 7. I can get ReadFile to return some of the button presses, but not all. When I use a USB traffic analyzer (specifically USB Monitor), I can see all of the button presses. Additionally, when I hook the joystick up to a Windo...

What is the easiest way to get track data off a simple USB HID magnetic card reader?

I need to get Track 1 and Track 2 data off magnetic cards and send them over the network to a waiting server. What is an easy way to get the track data from a USB HID magnetic card reader? In case it helps, I have a MAGTEK Mini Swipe Magnetic Strip Reader (part no. 21040140) I'm OS agnostic -- a solution for Windows, Mac or Linux would...

Android Bluetooth : read service records

Hello All, I am working on developing a HID Bluetooth Driver, that would allow an user to connect a bluetooth keyboard or mouse. So far I was able to achieve this using JNI, and a C BlueZ interface, but there were compatibility problems: the software only worked on a few devices. As Bluetooth support was introduced from Android 2.0, I ...