Author Topic: Beagleboard HID firmware for Win7 Host  (Read 36312 times)

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Beagleboard HID firmware for Win7 Host
« Reply #15 on: August 11, 2013, 08:58:55 pm »
Your descriptor contains no report ID for the Feature report. Thus the report ID for the MAX_COUNT Feature report = 0.

Tsuneo

  • Frequent Contributor
  • ****
  • Posts: 145
Re: Beagleboard HID firmware for Win7 Host
« Reply #16 on: August 12, 2013, 01:38:19 am »
Quote
len_white:
I've copied my report descriptor (from hid.c) .. Could you see if it looks ok?

Your report descriptor is slightly modified one from the "Sample Report Descriptor (Parallel/Hybrid Mode)" on the MS document, DigitizerDrvs_touch.docx ( http://msdn.microsoft.com/en-us/windows/hardware/gg487437.aspx )
- Touch Valid Usage (bit) is deleted
- X,Y range is reduced from 0x7FFF to 0x0FFF

1) Missing USAGE_PAGE (Digitizers)
USAGE_PAGE (Digitizers) is required at the second touch collection, because the Usage Page is altered by the USAGE_PAGE (Generic DeskTop) of the first collection.
Code: [Select]
    0xA1, 0x02,           //     COLLECTION (Logical)   - second touch
    0x05, 0x0D,           //       USAGE_PAGE (Digitizers)    // <--------
    0x09, 0x42,           //       USAGE (Tip Switch)           

2) The size of the input report is 14 bytes
Code: [Select]
Byte offset
  0         Report ID (1)
            First touch
  1           Tip Switch / In Range / 6bits padding
  2           Contact Identifier
  3, 4        X
  5, 6        Y
            Second touch
  7           Tip Switch / In Range / 6bits padding
  8           Contact Identifier
  9, 10       X
  11, 12      Y

  13        Actual count

3) Feature report
The report ID of the feature report is 1, which is defined at the top of your report descriptor ( REPORT_ID (Touch) )
The size of Feature report is 2 bytes.
Code: [Select]
Byte offset
  0         Report ID (1)
  1         Maximum Count

Tsuneo

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Beagleboard HID firmware for Win7 Host
« Reply #17 on: August 12, 2013, 11:29:51 am »
Yes, I missed the report ID near the top.

pal

  • Member
  • ***
  • Posts: 1
Re: Beagleboard HID firmware for Win7 Host
« Reply #18 on: September 19, 2013, 03:06:04 am »
Len,

I am implementing 10-touch using Linux HID gadget drivers and works perfectly on Windows 8.
Let me know if the below works for you ...

1.Revert all changes you have made to g_hid.c
2.Add a printk message in the "case" where an empty feature report is sent. This is to confirm you are receiving the "GET_REPORT" request from host.
3.For the HID descriptor posted by you, length=2; req->buf[0] = 0x01; req->buf[1] = 0x02;

With the above you should have your gadget detected as 2-touch device.
req->buf[1] is the one containing max contact count which you may modify based on your device's actual touch capabilities.

Let me know how it goes . Good luck !

Calvin

  • Member
  • ***
  • Posts: 1
Re: Beagleboard HID firmware for Win7 Host
« Reply #19 on: September 23, 2013, 10:31:35 pm »
Hi Len,

Did you solved the problem of multi-touch USB HID gadget?
Would you mind to share your experience since I also got stuck in the multi-touch USB HID gadget?

len_white

  • Member
  • ***
  • Posts: 9
Re: Beagleboard HID firmware for Win7 Host
« Reply #20 on: April 04, 2014, 09:30:59 pm »
It's been a while....but I'm still not done.
My beagleboard crashed (or more likely the SD card) then my Windows 7 USB drivers got corrupted.
And I'm trying to fit this all in with a full-time plus job and my confidence that I'll ever figure it out is dwindling rapidly.
I'm back to seeing if I can make this work and I have to admit that I just don't have enough experience to understand what's going wrong.
So....
Anyone of you, who has some confidence in making Beagleboard's act like HID devices, interested in making a little money on the side?
I am ready to pay someone to help me through this, provide me with the relevant files, or even take on the hardware and get it done.
Please message me (I assume that's possible) if you are at all interested and I'd love to talk to you further.
Thanks.
-Len

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Beagleboard HID firmware for Win7 Host
« Reply #21 on: April 05, 2014, 06:11:34 pm »
If you don't get a response here, try the BeagleBoard email group.