<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/6332" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-01-26T03:11:58+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/6332</id>

		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2012-01-26T03:11:58+02:00</updated>

		<published>2012-01-26T03:11:58+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20780#p20780</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20780#p20780"/>
		<title type="html"><![CDATA[Re: Problem when changing usbHidReportDescriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20780#p20780"><![CDATA[
The lenght of the report descriptor changed. Maybe forgot to change the RD lenght in the configuration descriptor ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Thu Jan 26, 2012 3:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Daid]]></name></author>
		<updated>2012-01-13T17:53:47+02:00</updated>

		<published>2012-01-13T17:53:47+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20664#p20664</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20664#p20664"/>
		<title type="html"><![CDATA[Re: Problem when changing usbHidReportDescriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20664#p20664"><![CDATA[
Well, USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH should not be larger then 255 I can say you that with a quick glance at the code. But I don't think you have crossed that limit. Other then that I don't know...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5154">Daid</a> — Fri Jan 13, 2012 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2012-01-07T01:27:33+02:00</updated>

		<published>2012-01-07T01:27:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20614#p20614</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20614#p20614"/>
		<title type="html"><![CDATA[Re: Problem when changing usbHidReportDescriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20614#p20614"><![CDATA[
I did some more testing: meanwhile it seems to me that either the number of reports (report IDs) or the length of the desriptor is limited. When I remove one report I can set USE_IRSND_CAPABILITY to 1, so the last sentence in my last post it not true.<br /><br />Can anyone imagine or confirm such a limitation?<p>Statistics: Posted by Guest — Sat Jan 07, 2012 1:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2012-01-06T01:58:37+02:00</updated>

		<published>2012-01-06T01:58:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20604#p20604</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20604#p20604"/>
		<title type="html"><![CDATA[Problem when changing usbHidReportDescriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6332&amp;p=20604#p20604"><![CDATA[
Hello,<br /><br />i have a usbHidReportDescriptor that looks like the following and works, that means the device is recognized and initialized by WinXP.<br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbHidReportDescriptor&#91;USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH&#93; = {<br />    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)<br />    0x0b, 0x01, 0x00, 0x00, 0xff,  // USAGE (Vendor Defined Page 1:Vendor Usage 1)<br />    0xa1, 0x01,                    // COLLECTION (Application)<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)<br />    0x26, 0xff, 0x00,              //   LOGICAL_MAXIMUM (255)<br />    0x75, 0x08,                    //   REPORT_SIZE (8)<br />    0x85, 0x01,                    //   REPORT_ID<br />    0x95, 0x06,                    //   REPORT_COUNT (6)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0x82, 0x00, 0x01,              //   INPUT (Data,Ary,Abs,Buf)<br />    0x85, 0x02,                    //   REPORT_ID<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x03,                    //   REPORT_ID<br />    0x95, 0x06,                    //   REPORT_COUNT (6)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x04,                    //   REPORT_ID<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x05,                    //   REPORT_ID<br />    0x95, 0x06,                    //   REPORT_COUNT (6)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x06,                    //   REPORT_ID<br />    0x95, 0x02,                    //   REPORT_COUNT (2)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x07,                    //   REPORT_ID<br />    0x95, 0x0A,                    //   REPORT_COUNT (10)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x08,                    //   REPORT_ID<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />#if USE_BOOTLOADER<br />    0x85, 0x09,                    //   REPORT_ID<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />#endif<br />    0x85, 0x32,                    //   REPORT_ID<br />    0x95, 0x0B,                    //   REPORT_COUNT (11)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x33,                    //   REPORT_ID<br />    0x95, 0x06,                    //   REPORT_COUNT (6)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x34,                    //   REPORT_ID<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x35,                    //   REPORT_ID<br />    0x95, 0x06,                    //   REPORT_COUNT (6)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x36,                    //   REPORT_ID<br />    0x95, 0x04,                    //   REPORT_COUNT (4)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />#if USE_IRSND_CAPABILITY<br />    0x85, 0x37,                    //   REPORT_ID<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />#endif<br />    0xc0                           // END_COLLECTION<br />};</code></pre></div><br />This works well as long as USE_IRSND_CAPABILITY is set to 0. As soon as it's set to 1 (regardless of the setting of USE_BOOTLOADER) it doesn't work any more. In the device manager I can see a yellow exclamation mark and when I click onto the device it tells me something about a code-10 error.<br /><br />lss-output with USE_IRSND_CAPABILITY = 0 -&gt; working<br /><div class="codebox"><p>Code: </p><pre><code>00000149 &lt;usbDescriptorHidReport&gt;:<br />     149:   05 01 0b 01 00 00 ff a1 01 15 00 26 ff 00 75 08     ...........&amp;..u.<br />     159:   85 01 95 06 09 00 82 00 01 85 02 95 01 09 00 b2     ................<br />     169:   02 01 85 03 95 06 09 00 b2 02 01 85 04 95 01 09     ................<br />     179:   00 b2 02 01 85 05 95 06 09 00 b2 02 01 85 06 95     ................<br />     189:   02 09 00 b2 02 01 85 07 95 0a 09 00 b2 02 01 85     ................<br />     199:   08 95 01 09 00 b2 02 01 85 09 95 01 09 00 b2 02     ................<br />     1a9:   01 85 32 95 0b 09 00 b2 02 01 85 33 95 06 09 00     ..2........3....<br />     1b9:   b2 02 01 85 34 95 01 09 00 b2 02 01 85 35 95 06     ....4........5..<br />     1c9:   09 00 b2 02 01 85 36 95 04 09 00 b2 02 01 c0 00     ......6.........<br />   ...<br /></code></pre></div><br />lss-output with USE_IRSND_CAPABILITY = 1 -&gt; not working<br /><div class="codebox"><p>Code: </p><pre><code>00000149 &lt;usbDescriptorHidReport&gt;:<br />     149:   05 01 0b 01 00 00 ff a1 01 15 00 26 ff 00 75 08     ...........&amp;..u.<br />     159:   85 01 95 06 09 00 82 00 01 85 02 95 01 09 00 b2     ................<br />     169:   02 01 85 03 95 06 09 00 b2 02 01 85 04 95 01 09     ................<br />     179:   00 b2 02 01 85 05 95 06 09 00 b2 02 01 85 06 95     ................<br />     189:   02 09 00 b2 02 01 85 07 95 0a 09 00 b2 02 01 85     ................<br />     199:   08 95 01 09 00 b2 02 01 85 09 95 01 09 00 b2 02     ................<br />     1a9:   01 85 32 95 0b 09 00 b2 02 01 85 33 95 06 09 00     ..2........3....<br />     1b9:   b2 02 01 85 34 95 01 09 00 b2 02 01 85 35 95 06     ....4........5..<br />     1c9:   09 00 b2 02 01 85 36 95 04 09 00 b2 02 01 85 37     ......6........7<br />     1d9:   95 01 09 00 b2 02 01 c0 00                          .........<br /></code></pre></div><br />Does anyone have an idea what could cause this problem or have any experience with it?<br /><br />Strangely the problem also appears when I remove a report ID (e.g. ID 0x32).<p>Statistics: Posted by Guest — Fri Jan 06, 2012 1:58 am</p><hr />
]]></content>
	</entry>
	</feed>
