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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-03-11T16:37:31+02:00</updated>

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

		<entry>
		<author><name><![CDATA[stiff]]></name></author>
		<updated>2010-03-11T16:37:31+02:00</updated>

		<published>2010-03-11T16:37:31+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3991&amp;p=13615#p13615</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3991&amp;p=13615#p13615"/>
		<title type="html"><![CDATA[Combining mouse with hid data reports]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3991&amp;p=13615#p13615"><![CDATA[
It is possible to combine sample HID mouse with hid data requests?<br />I need to change data in eeprom in my &quot;mouse&quot; by &quot;hid data requests&quot;.<br /><br />In vusb-20090822\examples\hid-data\firmware\main.c I change<br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbHidReportDescriptor&#91;22&#93; = {    <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 />    0x95, 0x80,                    //   REPORT_COUNT (128)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0xc0                           // END_COLLECTION<br />};</code></pre></div><br />to<br /><br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbHidReportDescriptor&#91;52&#93; = { <br />   0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)<br />    0x09, 0x02,                    // USAGE (Mouse)<br />    0xa1, 0x01,                    // COLLECTION (Application)<br />//    0x85, 0x02,      //MouseID,                 //   REPORT_ID (77)<br />    0x09, 0x01,                    //   USAGE (Pointer)<br />    0xA1, 0x00,                    //   COLLECTION (Physical)<br />    0x05, 0x09,                    //     USAGE_PAGE (Button)<br />    0x19, 0x01,                    //     USAGE_MINIMUM<br />    0x29, 0x03,                    //     USAGE_MAXIMUM<br />    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)<br />    0x25, 0x01,                    //     LOGICAL_MAXIMUM (1)<br />    0x95, 0x03,                    //     REPORT_COUNT (3)<br />    0x75, 0x01,                    //     REPORT_SIZE (1)<br />    0x81, 0x02,                    //     INPUT (Data,Var,Abs)<br />    0x95, 0x01,                    //     REPORT_COUNT (1)<br />    0x75, 0x05,                    //     REPORT_SIZE (5)<br />    0x81, 0x03,                    //     INPUT (Const,Var,Abs)<br />    0x05, 0x01,                    //     USAGE_PAGE (Generic Desktop)<br />    0x09, 0x30,                    //     USAGE (X)<br />    0x09, 0x31,                    //     USAGE (Y)<br />    0x09, 0x38,                    //     USAGE (Wheel)<br />    0x15, 0x81,                    //     LOGICAL_MINIMUM (-127)<br />    0x25, 0x7F,                    //     LOGICAL_MAXIMUM (127)<br />    0x75, 0x08,                    //     REPORT_SIZE (8)<br />    0x95, 0x03,                    //     REPORT_COUNT (3)<br />    0x81, 0x06,                    //     INPUT (Data,Var,Rel)<br />    0xC0,                          //   END_COLLECTION<br />    0xC0,                          // END COLLECTION<br />};</code></pre></div><br /><br />Mouse successfully found in system:<br /><div class="codebox"><p>Code: </p><pre><code>Bus Type:        USB<br />Device Type:     Human Interface Device<br />Power Drawn:     20 milliamps @ 5.0 volts<br />Endpoint 0:      Type=CTL  Class=03 SubClass=00 Protocol=00 MaxPacket=8<br />Endpoint 1 IN:   Type=INT  Class=03 SubClass=00 Protocol=00 MaxPacket=8<br />Hardware ID:     USB\Vid_16c0&amp;Pid_05df&amp;Rev_0100<br /></code></pre></div><br />and<br /><div class="codebox"><p>Code: </p><pre><code>Device Type:     Mouse<br />Hardware ID:     HID\Vid_16c0&amp;Pid_05df&amp;Rev_0100<br /></code></pre></div><br /><br />But<br /><div class="codebox"><p>Code: </p><pre><code>hidtool.exe read<br />error finding DataStore: The specified device was not found</code></pre></div><br /><br />what I do wrong?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3639">stiff</a> — Thu Mar 11, 2010 4:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
