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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-12-08T23:31:17+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-12-08T23:31:17+02:00</updated>

		<published>2007-12-08T23:31:17+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1027&amp;p=3421#p3421</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1027&amp;p=3421#p3421"/>
		<title type="html"><![CDATA[HID-Keyboard and Feature Reports]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1027&amp;p=3421#p3421"><![CDATA[
Hello,<br /><br />is it possible to register the USB-Device as a standard keyboard and simultaneously communicate with the device via Feature Reports?<br /><br />I tried the following report Descriptor:<br /><div class="codebox"><p>Code: </p><pre><code>0x06, 0x00, 0xff,              // USAGE_PAGE &#40;Generic Desktop&#41;<br />    0x09, 0x01,                    // USAGE &#40;Vendor Usage 1&#41;<br />    0xa1, 0x01,                    // COLLECTION &#40;Application&#41;<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM &#40;0&#41;<br />    0x26, 0xff, 0x00,              //   LOGICAL_MAXIMUM &#40;255&#41;<br />    0x75, 0x08,                    //   REPORT_SIZE &#40;8&#41;<br /><br />    0x85, 0x01,                    //   REPORT_ID &#40;1&#41;<br />    0x95, 0x06,                    //   REPORT_COUNT &#40;6&#41;<br />    0x09, 0x00,                    //   USAGE &#40;Undefined&#41;<br />    0xb2, 0x02, 0x01,              //   FEATURE &#40;Data,Var,Abs,Buf&#41;<br /><br />    0x85, 0x02,                    //   REPORT_ID &#40;2&#41;<br />    0x95, 0x08,                    //   REPORT_COUNT &#40;2&#41;<br />    0x09, 0x00,                    //   USAGE &#40;Undefined&#41;<br />    0xb2, 0x02, 0x01,              //   FEATURE &#40;Data,Var,Abs,Buf&#41;<br /><br />    0xc0  ,                         // END_COLLECTION<br />   <br />   0x05, 0x01,                    // USAGE_PAGE &#40;Generic Desktop&#41;<br />    0x09, 0x06,                    // USAGE &#40;Keyboard&#41;<br />    0xa1, 0x01,                    // COLLECTION &#40;Application&#41;<br />    0x05, 0x07,                    //   USAGE_PAGE &#40;Keyboard&#41;<br />    0x19, 0xe0,                    //   USAGE_MINIMUM &#40;Keyboard LeftControl&#41;<br />    0x29, 0xe7,                    //   USAGE_MAXIMUM &#40;Keyboard Right GUI&#41;<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM &#40;0&#41;<br />    0x25, 0x01,                    //   LOGICAL_MAXIMUM &#40;1&#41;<br />   //0x85, 0x03,                    //   REPORT_ID &#40;3&#41;<br />    0x75, 0x01,                    //   REPORT_SIZE &#40;1&#41;<br />    0x95, 0x08,                    //   REPORT_COUNT &#40;8&#41;<br />    0x81, 0x02,                    //   INPUT &#40;Data,Var,Abs&#41;<br />    0x95, 0x01,                    //   REPORT_COUNT &#40;1&#41;<br />    0x75, 0x08,                    //   REPORT_SIZE &#40;8&#41;<br />    0x25, 0x65,                    //   LOGICAL_MAXIMUM &#40;101&#41;<br />    0x19, 0x00,                    //   USAGE_MINIMUM &#40;Reserved &#40;no event indicated&#41;&#41;<br />    0x29, 0x65,                    //   USAGE_MAXIMUM &#40;Keyboard Application&#41;<br />    0x81, 0x00,                    //   INPUT &#40;Data,Ary,Abs&#41;<br />    0xc0,                           // END_COLLECTION */<br />   <br /><br />&#125;;<br /></code></pre></div><br />In this case I can accsess the feature reports, but windows doesn't recognize the keyboard as keyboard. <br /><br />Has somebody a working descriptor? Or an idea how this can work?<br /><br />Thanks<br />Stefan<p>Statistics: Posted by Guest — Sat Dec 08, 2007 11:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
