hid

SetupDiGetDeviceInterfaceDetail returns only "\" for the path of all USB HID objects

I can tell how many USB HID devices I have (7), but every time I try to get details on any device, the path returned for it is always "\", making it so that I can't access the device at all. I'm using code that is very similar in procedure to this code: HANDLE connectDeviceNumber(DWORD deviceIndex) { GUID hidGUID; HDEVINFO hard...

How to detect if a Bluetooth HID device was disconnected?

I'm using CreateFile to open an asynchronous file handle to a Bluetooth HID device on the system. The device will then start streaming data, and I use ReadFile to read data from the device. The problem is, that if the Bluetooth connection is dropped, ReadFile just keeps giving ERROR_IO_PENDING instead of reporting a failure. I cannot re...

How to use the USB/HID port with objective-c under a Mac environment?

Hi, I am having big trouble to communicate through USB, from a Mac to an external HID device. The hardware has been proven fine when running under the Windows XP platform, but I can't find a GOOD exemple of programming the HID with Cocoa / objective-C. Several exemples are available in the Apple center, but they are either poorly docume...

using DeviceIoControl with HiD.

I am trying to write to a HiD driver in C# (V studio 2008) and decided to use the DeviceIoContol function to access the device. I'm however stumped as to what to substitute for the second parameter of this function, trawling the net hasn't yielded anything useful or explanatory so any ideas would be appreciated. ...

Register phone as HID (mouse)

Hello, Given a Windows Mobile 6.1 smartphone with Bluetooth I want to register it as a mouse. Basically what I do now: Start the Bluetooth service on device with Guid {00001124-0000-1000-8000-00805f9b34fb} Connect from desktop PC to device. Result: Device is detected with all services including the HID one but there is no driver ...

How to simulate a low level keypress on os x?

Howdy, I am trying to generate keyboard keydown and keyup events programmatically. I am currently using CGPostKeyboardEvent to do this, but I am searching for a way to do this at a lower level. I have looked at DDHidLib but could not figure out a way to create a fake event. Can anyone help? update: Thanks to weichsel's advice I am...

HID input report queues on C8051F320

Hi, it seems that as soon as data is ready for the host (such as when I use WriteFile to send a command to the HID in which I tell the HID to give back some data such as the port value) and the in packet ready bit is set, the host reads it (as confirmed by another USB interrupt) before ReadFile ever is called. ReadFile is later used to p...

HID notifications

Hi, 1) I noticed Jan Axelson has some text in her book about notifications (HID is attached to or removed from the system and system informs the GUI). Does anyone have working VB6 code examples? I'm attempting to translate Axelson's VB.net code to VB6 code. I can't find RegisterDeviceNotification in user32.dll and what is the purpose of...

Communication within .net apps on same machine + HID

Hello all, im looking for some more ideas for an architectural solution to the following. Our eng team is putting together a function specific computer for us. It runs Xp Embedded. our eng team has also developed two controllers (hardware) that are specific to the purpose of the computer and these controllers shall be seen as HID on the...

Determining HID interface to be POS or Keyboard in C++

I've got some bar code scanner devices that can handle a variety of USB interfaces (COMM Emulation, HID Keyboard, HID POS, etc.) The problem is that, while I can tell if the device is in a HID mode, I need to be able to determine if it's HID Keyboard or HID POS. Is there a way to determine this using Win32 C++, preferably with the buil...

Consuming a USB HID device in Windows CE 6.0 using c#

I am working on an Embedded Windows CE project and am interested in accessing a USB HID device through one of its USB Host ports. All I really need to read are the raw HID spec packets. On a windows computer, I have a working program using hid.dll, but as far as I have researched, there is no equivalent on CE. I know there is the usbhid....

HID device info structure from GetRawInputData

Where can I get the structure for an HID device? For example: raw data from a device, using GetRawInputData: ( 0 137 117 0 146 130 24 128 0 ) ( 0 137 117 0 146 130 8 128 0 ) /\ at this I can see that || there is being a button released that means, at the 6-th char at 4-th bit By analyzing the...

programming an universal remote control

I have a remote control RM200 and I want to program it so I can detect key presses and send them to applications. Now, which API can I use in Windows? HID usb API? IRDA API? I'm confused. My remote is an IRDA remote but sometime I read that I can program this device with HID USB API???? ...

Using .NET classes to communicate with a USB HID

Are there any USB developers out there who use .NET? I know one way of communicating with USB HID device is creating wrappers to the Windows API's like CreateFile, WriteFile and ReadFile. But I am wondering does anyone know if you can use any of the .NET classes to do the same thing. I am certain that I will still have to use some of th...

Trouble reading Manufacturer String from HID Device using hid.dll API

I am writing a .NET application that can communicate with HID devices. I want to be able to retrieve and parse the Manufactures String from the device firmware. I know that in the hid.dll there is a method called HidD_GetManufacturerString. MSDN describes this method as follows: BOOLEAN HidD_GetManufacturerString( IN HANDLE Hid...

Correlating traditional Windows joystick axes with HID

I'm a bit confused on the description of joystick axes and I'm hoping that someone has a link or document which could help clear my confusion. I'm not a Windows guy, so trying to port some traditional Windows gameport code has me a bit confused. We all know about the common first three axes: X Y Z My understanding was that in the game...

How to get MAC address of bluetooth HID device?

Hello, how can I get the MAC address of a bluetooth device which connected as HID device? I have handle to the device Handle = CreateFile(didetail->DevicePath, 0, FILE_SHARE_READ|FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, NULL); but I can't find how to get the MAC address. C++; Windows ...

Adding or Removing HID programatically

Hello, I intend to remove a HID from my system programatically. The HID is connected via a bluetooth. Can you please help me on this. I plan to use C# but any thing else that is better shall also help. Thanks ...

Problems with blocking reads using libudev on Linux

We are using the following routine (on Linux, with libudev) to read data from a PIC microcontroller configured as a USB HID device. The data is sent only when a button connected to the PIC microcontroller is pressed or released. The routine is missing messages from the PIC controller, and I suspect that this is because the call to po...

USB HID protocol question

I'm implementing USB on a PIC 18F2550 using a generic HID interface. I've set up the HID profile configuation to have a single 64 byte message for both inputs and outputs. Now it's basically working. The device registers OK with windows. I can find it in my program on the PC and can send and receive data to it. The problem is this thoug...