Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2005 03:21:28 -0800
From:      "Loren M. Lang" <lorenl@alzatex.com>
To:        freebsd-usb@freebsd.org
Subject:   uhid device file format
Message-ID:  <20050314112128.GB15137@alzatex.com>

next in thread | raw e-mail | index | archive | help

--QKdGvSO+nmPlgiQ/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I'm curious where the format of data coming in on uhid is.  Are there
any good documents on this other than the source code.  Looking at
freebsd.org, I don't see many technical documents describing the usb
subsystem.  It looks like the first byte is the report id from the hid
descriptor, and following that are the bytes from the report.  My usb
keyboard/mouse combo provides three different reports on uhid0 according
to the hid descriptor it provides. One report is a byte long, the other
two are 4 bytes long, but each line I read is 10 bytes long.  What are
the other 5 bytes for?

I'm been able to successfully decode the first five bytes and now I can
read all the multimedia keys and mouse events so I'm wondering what is
left.

--=20
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA  C415 6D35 E847 0118 A3D2
=20

--QKdGvSO+nmPlgiQ/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFCNXO4bTXoRwEYo9IRAnJvAJ9yGhisSjorP69lcm8NuegbaLQnFgCdHNG5
fRPdOklin5lWo81m9Og/Qzw=
=suTb
-----END PGP SIGNATURE-----

--QKdGvSO+nmPlgiQ/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050314112128.GB15137>