Bad USB port explanation?

2009-04-30 Thread Engineering
Hi all. Hans Petter has been very generous with his time helping me with this, but I'm now seeing some strange behavior, which maybe someone has seen something similar or has an opinion Still having problems running USB webcam on FreeBSD. Running of Intel D945PLNM board, nVidia 9500GT series vid

uhid write EIO

2010-05-22 Thread Engineering
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. Th

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

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 resp

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

RE: Intro and question about High speed Isochronous

2008-05-01 Thread Engineering
> -Original Message- > From: [EMAIL PROTECTED] > > I started using ugen and got most of the code ported. Then I > > found out ehci does not support isochronous! > > How did you try to use this? It fails with EIO when I open ugen0.1 - which is the isochronous endpoint. If I go through a

RE: Intro and question about High speed Isochronous

2008-05-01 Thread Engineering
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Hans Petter Selasky > Sent: Thursday, May 01, 2008 4:58 PM > > > I started using ugen and got most of the code ported. Then I > > > found out ehci does not support isochronous! > > Hi, > > You will need

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 Sel

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 a

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 Webc

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. The

RE: Recommendations for programming HID in FreeBSD 9

2012-06-01 Thread Engineering
27;usb_ctl_report_desc' does not name a type > usbhid.cpp:157: error: '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 declare

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_rep

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