send something TO a hid device

Stefan `Sec` Zehl sec at 42.org
Mon May 14 23:39:47 UTC 2007


On Mon, May 14, 2007 at 10:41 -0700, Maksim Yevmenkin wrote:
> how about posting descriptor here in hex form, i.e. the same form you
> put it into bthidd.conf?

Oh, if you don't like the parsed output in my last mail, here is the
binary descriptor:

hid_descriptor		{
	0x05 0x01 0x09 0x06 0xa1 0x01 0x05 0x07 
	0x85 0x01 0x19 0xe0 0x29 0xe7 0x15 0x00 
	0x25 0x01 0x75 0x01 0x95 0x08 0x81 0x02 
	0x95 0x01 0x75 0x08 0x81 0x01 0x95 0x05 
	0x75 0x01 0x05 0x08 0x19 0x01 0x29 0x05 
	0x91 0x02 0x95 0x01 0x75 0x03 0x91 0x01 
	0x95 0x06 0x75 0x08 0x15 0x00 0x26 0xa4 
	0x00 0x05 0x07 0x19 0x00 0x29 0xa4 0x81 
	0x00 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 
	0x85 0x03 0x75 0x10 0x95 0x02 0x15 0x01 
	0x26 0x8c 0x02 0x19 0x01 0x2a 0x8c 0x02 
	0x81 0x60 0xc0 0x06 0x00 0xff 0x09 0x01 
	0xa1 0x01 0x85 0x10 0x75 0x08 0x95 0x06 
	0x15 0x00 0x26 0xff 0x00 0x09 0x01 0x81 
	0x00 0x09 0x01 0x91 0x00 0xc0 0x06 0x00 
	0xff 0x09 0x02 0xa1 0x01 0x85 0x11 0x75 
	0x08 0x95 0x13 0x15 0x00 0x26 0xff 0x00 
	0x09 0x02 0x81 0x00 0x09 0x02 0x91 0x00 
	0xc0 0x05 0x06 0x09 0x27 0xa1 0x01 0x85 
	0xff 0x95 0x01 0x75 0x02 0x09 0x24 0x09 
	0x26 0x81 0x02 0x75 0x06 0x81 0x01 0xc0 
};

> again, you do not really need a device. socket will do just fine.
> local client(s) can connect to the bthidd and identify which hid
> device it (they) will be taking to, i.e. tell hid device's bd_addr.
> then client(s) simply sends hid reports to the bthidd via socket and
> it will relay them the hid device via bluetooth.

Ok, sorry. I think I misunderstood part of your mail. I'm planning on
using a socket, and selecting via the bd_addr. My first attempt will
probably do a binary pass-through to the HID until I figure out how to
use libusbhid to use the Output definitions of the descriptor.

CU,
    Sec
-- 
Consider the need for having to type "www.domain.name" a little IQ test
that you have to take before you can access my web site.'     -- Wietse


More information about the freebsd-bluetooth mailing list