Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2010 11:53:38 -0500
From:      "Engineering" <ee@athyriogames.com>
To:        <freebsd-usb@FreeBSD.org>
Subject:   uhid write EIO
Message-ID:  <00fe01caf9cf$55127560$ff376020$@com>
In-Reply-To: <201005181540.o4IFe3m9016461@freefall.freebsd.org>
References:  <201005181540.o4IFe3m9016461@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello all

I am having trouble communicating with a custom HID device using FreeBSD
7.2.

Open and read work fine, but write() errors with EIO

My code works well with another HID that uses read and feature reports.

Oddly enough, my Windows version using ReadFile and WriteFile works
perfectly.

The device is a simple PIC based IO board. Windows WriteFile uses the
interrupt OUT endpoint - does uhid not do the same? 

I have also tried changing the descriptor so the device shows up as a ugen.
In previous (6.2 and 7.0) versions of BSD, I was able to open, read, and
write to communicate with the device, but write is failing as a ugen too.

I can provide more information, but I thought I'd check if this is
appropriate for this list, and if anyone has an idea before I post.

Thanks
Sam





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00fe01caf9cf$55127560$ff376020$>