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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-09-23T03:38:09+02:00</updated>

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

		<entry>
		<author><name><![CDATA[mrzephy]]></name></author>
		<updated>2011-09-23T03:38:09+02:00</updated>

		<published>2011-09-23T03:38:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6041&amp;p=19681#p19681</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6041&amp;p=19681#p19681"/>
		<title type="html"><![CDATA[Merge 2 working report descriptors?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6041&amp;p=19681#p19681"><![CDATA[
I'm making a device with a LED matrix and a volume control potentiometer. For the volume i used USAGE volume up and volume down, because I couldn't figure out how to increase volume with the Volume USAGE (everything i tried always decreased the volume). If anyone knows how to do this with only the VOLUME usage, it will help too. But to my problem:<br /><br />I have 2 working report descriptors, if I use only 1 of them, they work. But when I tried to combine them (just join them and update the USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH appropriately), Windows will say the device cannot start (error 10). I've seen this error come up whenever Windows won't accept the report descriptor for some reason. I am using the free VID and PID for generic HID devices (0x16c0 and 0x05df).<br /><br />The descriptor for volume (working):<br /><div class="codebox"><p>Code: </p><pre><code>    0x05, 0x0c,                    // USAGE_PAGE (Consumer Devices)<br />    0x09, 0x01,                    // USAGE (Consumer Control)<br />    0xa1, 0x01,                    // COLLECTION (Application)<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)<br />    0x25, 0x01,                    //   LOGICAL_MAXIMUM (1)<br />    0x09, 0xe9,                    //   USAGE (Volume Up)<br />    0x09, 0xea,                    //   USAGE (Volume Down)<br />    0x75, 0x01,                    //   REPORT_SIZE (1)<br />    0x95, 0x02,                    //   REPORT_COUNT (2)<br />    0x81, 0x06,                    //   INPUT (Data,Var,Rel)<br />    0x09, 0xe2,                    //   USAGE (Mute)<br />    0x95, 0x01,                    //   REPORT_COUNT (1)<br />    0x81, 0x06,                    //   INPUT (Data,Var,Rel)<br />    0x95, 0x05,                    //   REPORT_COUNT (5)<br />    0x81, 0x07,                    //   INPUT (Cnst,Var,Rel)<br />    0xc0,                          // END_COLLECTION</code></pre></div><br /><br />The descriptor for display (working):<br /><div class="codebox"><p>Code: </p><pre><code>    0x05, 0x14,                    // USAGE_PAGE (Alphnumeric Display)<br />    0x09, 0x01,                    // USAGE (Alphanumeric Display)<br />    0xa1, 0x02,                    // COLLECTION (Logical)<br />    0x09, 0x2c,                    //   USAGE (Display Data)<br />    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)<br />    0x25, 0x01,                    //   LOGICAL_MAXIMUM (1)<br />    0x75, 0x01,                    //   REPORT_SIZE (1)<br />    0x95, 0x80,                    //   REPORT_COUNT (128)<br />    0x91, 0x02,                    //   OUTPUT (Data,Var,Abs)<br />    0xc0,                          // END_COLLECTION</code></pre></div><br /><br />So my problem is joining these 2 working descriptors so I can use both features at the same time. Any help is appreciated!<br /><br />Thanks,<br />Jan<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5782">mrzephy</a> — Fri Sep 23, 2011 3:38 am</p><hr />
]]></content>
	</entry>
	</feed>
