<?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/10469" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2016-06-13T01:52:37+02:00</updated>

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

		<entry>
		<author><name><![CDATA[bakkoiq]]></name></author>
		<updated>2016-06-13T01:52:37+02:00</updated>

		<published>2016-06-13T01:52:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10469&amp;p=31253#p31253</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10469&amp;p=31253#p31253"/>
		<title type="html"><![CDATA[composite hid keyboard/vendor device]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10469&amp;p=31253#p31253"><![CDATA[
Hi <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /> <br />I'm currenlty working on composite hid device made of keyboard and custom vendor device (to receive data).<br />My keyboard part of this device is working perfectly, but when i add vendor part to descriptor (and change size of descriptor) it stops working (writing after pushing its buttons). That happens even before adding more complicated part of code, just after changing descriptor. I've tried changing vid/pid.<br />please help <img class="smilies" src="./../../../images/smilies/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /> <br />that's my descriptor<br /><div class="codebox"><p>Code: </p><pre><code>const PROGMEM char usbHidReportDescriptor&#91;USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH&#93; = {<br />    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)<br />    0x09, 0x06,                    // USAGE (Keyboard)<br />    0xa1, 0x01,                    // COLLECTION (Application)<br />       0x85, 0x01,                    //   REPORT_ID (1)<br />    0x75, 0x01,                    //   REPORT_SIZE (1)<br />    0x95, 0x08,                    //   REPORT_COUNT (8)<br />    0x05, 0x07,                    //   USAGE_PAGE (Keyboard)(Key Codes)<br />    0x19, 0xe0,                    //   USAGE_MINIMUM (Keyboard LeftControl)(224)<br />    0x29, 0xe7,                    //   USAGE_MAXIMUM (Keyboard Right GUI)(231)<br />    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)<br />    0x25, 0x01,                    //   LOGICAL_MAXIMUM (1)<br />    0x81, 0x02,                    //   INPUT (Data,Var,Abs) ; Modifier byte<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x75, 0x08,                    //   REPORT_SIZE (8)<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)<br />    0x25, 0x65,                    //   LOGICAL_MAXIMUM (101)<br />    0x05, 0x07,                    //   USAGE_PAGE (Keyboard)(Key Codes)<br />    0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated))(0)<br />    0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application)(101)<br />    0x81, 0x00,                    //   INPUT (Data,Ary,Abs)<br />    0xc0  ,// END_COLLECTION<br />    // adding part below keeps device from working<br />       0x06, 0x00, 0xff,              // USAGE_PAGE (Generic Desktop)<br />    0x09, 0x01,                    // USAGE (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 (1)<br />    0x95, 0x02,                    //   REPORT_COUNT (2)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />   0x15, 0x00,                    //   LOGICAL_MINIMUM (0)<br />    0x26, 0xff, 0x00,              //   LOGICAL_MAXIMUM (255)<br />    0x75, 0x08,                    //   REPORT_SIZE (8)<br />    0x85, 0x01,                    //   REPORT_ID (1)<br />    0x95, 0x02,                    //   REPORT_COUNT (2)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />   0xc0                           // END_COLLECTION<br /><br />};<br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=22066">bakkoiq</a> — Mon Jun 13, 2016 1:52 am</p><hr />
]]></content>
	</entry>
	</feed>
