RE: Recommendations for programming HID in FreeBSD 9

2012-06-03 Thread Engineering
if (id != 0) copyin(ugd-ugd_data,id, 1); error = uhid_set_report(sc, ugd-ugd_report_type, id, NULL, ugd-ugd_data, imin(ugd-ugd_maxlen, size)); Hans is right. That code should do the trick. Last year I've fixed uhid driver

RE: Recommendations for programming HID in FreeBSD 9

2012-06-01 Thread Engineering
: 'usb_ctl_report' was not declared in this scope usbhid.cpp:174: error: 'USB_SET_REPORT' was not declared in this scope usbhid.cpp:331: error: 'USB_GET_REPORT_DESC' was not declared in this Or is uhid being obsoleted? Thanks Sam On Thursday 31 May 2012 18:30:56 Engineering wrote: Hi all, I

RE: Recommendations for programming HID in FreeBSD 9

2012-06-01 Thread Engineering
From: Hans Petter Selasky [mailto:hsela...@c2i.net] uhid is not going to get obsoleted, though using libraries from user-space is sometimes more convenient. Thanks HPS (and Xiaofan) I definitely agree with that, but I've got legacy code... Last question - I've updated my code to convert the

RE: Recommendations for programming HID in FreeBSD 9

2012-06-01 Thread Engineering
-Original Message- From: Hans Petter Selasky [mailto:hsela...@c2i.net] I think mav @ did some work in that area? Are you sure you cannot use: ... if (id != 0) copyin(ugd-ugd_data, id, 1); error = uhid_set_report(sc, ugd-ugd_report_type,

Recommendations for programming HID in FreeBSD 9

2012-05-31 Thread Engineering
Hi all, I hope this is the right place to ask this I am in process of migrating an embedded system from BSD 7.0 to 9.0, as we need upgraded video card drivers which will not compile on the old system. To confuse matters a bit, I believe it was 7.0 with some of HPS updated USB stack worked in.

ugen write hangs on BSD 7.2

2010-05-26 Thread Engineering
Hello all I am having trouble communicating with a custom HID device using FreeBSD 7.2. I was trying to use uhid, but it looks like it doesn't do interrupt out transfers. Open and read work fine, but write() errors with EIO The device is a simple PIC based IO board. When sent 64 bytes, it

RE: uhid write EIO

2010-05-22 Thread Engineering
Hi - quick correction - I had it working under 7.0, not 6.2, but I think I had a beta version of HPS' updated USB stack in there. Sam -Original Message- From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-...@freebsd.org] On Behalf Of Engineering Sent: Saturday, May 22, 2010 11:54

Isochronous transfer missing frames on USB4?

2009-04-29 Thread Engineering
Hello all. I am having an odd problem getting a UVC webcam to work on FreeBSD Little background: This is for an arcade game - needs to be able to run for weeks unattended at a bar Running of Intel D945PLNM board, nVidia 9500GT series video card. Storage is compact flash, with a CF-IDE adapter

RE: USB Video Class support

2009-04-01 Thread Engineering
I have a driver based off ugen. Hans Petter helped me get started on it - it should be using his new stack It was built for a custom embedded application, so the functionality is limited to just what I needed to get it going. It works with 7 out of the 10 different Chinese cameras I have laying

Webcam ugen iso transfer problems

2008-05-11 Thread Engineering
Hello I am having much trouble trying to read isochronous data from a UVC webcam. I understand that a full driver is being worked on right now, but I'd love to be able to get my 'mini-driver' which only does one frame rate working in the meantime. I have updated the USB stack with Hans Petter

Intro and question about High speed Isochronous

2008-05-01 Thread Engineering
Hi all, this is Sam Zehr. I am an embedded systems programmer working on porting an app to FreeBSD. I'm afraid I'm no expert in BSD, or any *nix stuff, but I'm plugging along. My project requires high-speed isochronous transfer. At first, I thought, no problem. I got it working