Recent Posts

Pages: [1] 2 3 ... 10
1
USB / Re: help with a simple report design change
« Last post by ulao on Today at 10:09:05 pm »
Never mind, moron error.  I was not flashing the right hex file.
2
USB / Re: help with a simple report design change
« Last post by ulao on Today at 09:58:52 pm »
 I also tried to set the descriptor  64 and request 64 so they match but still my get report request is not showing up. 

0xa1, 0x01,                    // COLLECTION (Application)
        0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
        0x26, 0xff,                    //   LOGICAL_MAXIMUM (255)
        0x75, 0x08,                    //   REPORT_SIZE (8)
   
        0x85, 0x11,                    //   REPORT_ID (17)
        0x96, 0x40                      //   REPORT_COUNT (512)
        0x09, 0x00,                    //   USAGE (Undefined)
        0xb2, 0x02, 0x00,              //   FEATURE (Data,Var,Abs,Buf)
   
        0x85, 0x12,                    //   REPORT_ID (18)
        0x96, 0x40                    //   REPORT_COUNT (512)
        0x09, 0x00,                    //   USAGE (Undefined)
        0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)
    0xc0,                           // END_COLLECTION

 device.GetFeatureReport(inputReportBuffer, 200); //shows up when sniffing

 device.GetFeatureReport(inputReportBuffer, 100);//does not show up.

and of course I tried
device.GetFeatureReport(inputReportBuffer, 64); //but anything less then 128 fails.

Though if I change the ReportID to 3 (one of my other reports) any size will work.  It gets more data then I needed, and junk data at that but at least it works. I''m so confused why this report in particulate will not allow me to send less then 128. I understand what you mean, per documentation they must match. Though even if I match it still never shows up. It's like the report does not exist.
3
USB / Re: help with a simple report design change
« Last post by Jan Axelson on Today at 09:54:29 pm »
If the report size is 512 bytes, you can't request < 512 bytes.
4
USB / Re: help with a simple report design change
« Last post by ulao on Today at 08:04:02 pm »
Ok ignore that I was not seeing the real picture. I didnt know a get descriptor was being issue before get report. So I though it was sending the wrong controller type. What really is going on is, using the 17(get) report or 18(set) report < 128 is not showing up. Any thing > 128 is.

example
0xa1, 0x01,                    // COLLECTION (Application)
        0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
        0x26, 0xff,                    //   LOGICAL_MAXIMUM (255)
        0x75, 0x08,                    //   REPORT_SIZE (8)
   
        0x85, 0x11,                    //   REPORT_ID (17)
         0x96, 0x02, 0x00,               //   REPORT_COUNT (512)
        0x09, 0x00,                    //   USAGE (Undefined)
        0xb2, 0x02, 0x00,              //   FEATURE (Data,Var,Abs,Buf)
   
        0x85, 0x12,                    //   REPORT_ID (18)
        0x96, 0x02, 0x00,              //   REPORT_COUNT (512)
        0x09, 0x00,                    //   USAGE (Undefined)
        0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)
    0xc0,                           // END_COLLECTION

 device.GetFeatureReport(inputReportBuffer, 200); //shows up when sniffing

 device.GetFeatureReport(inputReportBuffer, 100);//does not show up.

Why, I can not figure that out? I want my report 17 to be 512 and request the size I need. I also tried to set it to 64 and request 64 but still my get report request is not showing up. It almost has to be the hid library but I find that extremely hard to believe.
5
USB / Re: help with a simple report design change
« Last post by ulao on Today at 01:06:42 pm »
Sorry, I was sniffing the USB and this report should be a get report but I'm seeing get descriptor instead? Somehow this descriptor change has corrupt things. Previous advice about uninstalling already applied.
6
USB / Re: help with a simple report design change
« Last post by Jan Axelson on Today at 08:56:49 am »
I don't know what you mean by this:

on my report 17 I get "get descriptor" instead of "get report" ?
7
USB / Re: help with a simple report design change
« Last post by ulao on August 16, 2017, 08:15:07 pm »
So I did this but on my report 17 I get "get descriptor" instead of "get report" ?

     //long
    0xa1, 0x01,                    // COLLECTION (Application)
        0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
        0x26, 0xff,                    //   LOGICAL_MAXIMUM (255)
        0x75, 0x08,                    //   REPORT_SIZE (8)
   
        0x85, 0x13,                    //   REPORT_ID (19)
        0x96, 0x02, 0x01,              //   REPORT_COUNT (512)
        0x09, 0x00,                    //   USAGE (Undefined)
        0xb2, 0x02, 0x00,              //   FEATURE (Data,Var,Abs,Buf)
   
        0x85, 0x14,                    //   REPORT_ID (20)
        0x96, 0x02, 0x00,              //   REPORT_COUNT (512)
        0x09, 0x00,                    //   USAGE (Undefined)
        0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)
    0xc0,                           // END_COLLECTION
   
    //short
    0xa1, 0x01,                    // COLLECTION (Application)
        0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
        0x26, 0xff,                    //   LOGICAL_MAXIMUM (255)
        0x75, 0x08,                    //   REPORT_SIZE (8)
   
        0x85, 0x11,                    //   REPORT_ID (17)
        0x95, 0x40,                    //   REPORT_COUNT (64)
        0x09, 0x00,                    //   USAGE (Undefined)
        0xb2, 0x02, 0x00,              //   FEATURE (Data,Var,Abs,Buf)
   
        0x85, 0x12,                    //   REPORT_ID (18)
        0x95, 0x40,                   //   REPORT_COUNT (64)
        0x09, 0x00,                    //   USAGE (Undefined)
        0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)
    0xc0,                           // END_COLLECTION


I can't imagine what I did wrong there.  Maybe my error is else where.

this is my code
device.GetFeatureReport(inputReportBuffer, 64); //64
8
USB / Re: help with request types
« Last post by ulao on August 16, 2017, 08:13:55 pm »
"feature" indeed. Well put.
9
USB / Re: help with request types
« Last post by Jan Axelson on August 16, 2017, 08:57:39 am »
Yes, it's an annoying "feature" of Windows that has caused much grief for developers.
10
USB / Re: help with a simple report design change
« Last post by Jan Axelson on August 16, 2017, 08:54:31 am »
Report count does not include report ID or other info, just the number of bytes of report data, assuming report size = 8..

If report size = 512 (200h), the first item should be 96.

26h for logical max = 512 (200h) is correct.

See 6.2.2.7 in the HID spec.
Pages: [1] 2 3 ... 10