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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-10-25T14:25:50+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Talib]]></name></author>
		<updated>2010-10-25T14:25:27+02:00</updated>

		<published>2010-10-25T14:25:27+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16369#p16369</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16369#p16369"/>
		<title type="html"><![CDATA[Re: WIKI Clarification ... default descriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16369#p16369"><![CDATA[
Ok, from what I can determine, is that I can't make a HID device without a Report. So what I am trying to do now is as described in the wiki:<br /><br /><blockquote class="uncited"><div>Vendor type requests sent to custom HID class device<br /><br />The advantages of a custom class and a HID device can be (kind of) combined. Libusb can access endpoint 0 of all devices, even those which already have a driver attached to them such as HID devices.<br /><br />You can therefore create an HID class device with a simple report structure which is never used. This prevents the &quot;New Device&quot; dialog on Windows. Then access it with libusb or libusb-win32 as if it were a custom class device.<br /><br />Advantages:<br /><br />Complexity of HID can be avoided.<br />Same API can be used on Unix and Windows.<br />Prevents the &quot;New Device&quot; dialog on Windows.<br />Disadvantages:<br /><br />On Windows, you still must ship libusb-win32 with your code. However, it's sufficient to have it in the same directory as your application.</div></blockquote><br /><br />I found this document:<a href="http://www.devasys.com/PD11x/JHWP.pdf" class="postlink">http://www.devasys.com/PD11x/JHWP.pdf</a><br /><br />In there there is an example,Example 2  Buttons and Lights, with the report that I have tried to modify to:<br /><br /><div class="codebox"><p>Code: </p><pre><code>const byte ReportDescriptor&#91;&#93; = {<br />6, 0, 255, // Usage_Page (Vendor Defined)<br />9, 1, // Usage (I/O Device)<br />0x19, 1, // Usage_Minimum (LED 1)<br />0x29, 1, // Usage_Maximum (LED 1)<br />0x91, 2, // Output (Data,Var,Abs) = LEDs (5 bits)<br />0xC0 // End_Collection<br />};</code></pre></div><br /><br />It is not working, any help would be appreciated.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4488">Talib</a> — Mon Oct 25, 2010 2:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Talib]]></name></author>
		<updated>2010-10-25T13:09:22+02:00</updated>

		<published>2010-10-25T13:09:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16368#p16368</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16368#p16368"/>
		<title type="html"><![CDATA[Re: WIKI Clarification ... default descriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16368#p16368"><![CDATA[
Basically, what i am also asking, what is the settings to make the simplest HID device (as not to require drivers)?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4488">Talib</a> — Mon Oct 25, 2010 1:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Talib]]></name></author>
		<updated>2010-10-25T14:25:50+02:00 </updated>

		<published>2010-10-25T11:03:11+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16367#p16367</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16367#p16367"/>
		<title type="html"><![CDATA[Simplest HID Report?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4962&amp;p=16367#p16367"><![CDATA[
Referring to the following page:<br /><br /><a href="http://vusb.wikidot.com/examples" class="postlink">http://vusb.wikidot.com/examples</a><br /><br />especially the following lines:<br /><br /><blockquote class="uncited"><div>Descriptors can be provided in one of four ways:<br /><br />1 You can decide to use V-USB's default descriptor (with eventually resides in flash memory).<br />2 In flash memory.<br />3 In RAM.<br />4 By means of a function which returns the descriptor.</div></blockquote><br /><br />I would like to know how to use the first option. Basically I modified the HID-Mouse for my test application. I will basically just be sending data from the Host to the device via Control endpoint 0 as per first example on: <a href="http://vusb.wikidot.com/driver-api" class="postlink">http://vusb.wikidot.com/driver-api</a> The problem I am having is that when I comment out the following in the HID-Mouse example:<br /><br />PROGRAM char usbHidReportDescriptor[52] ....... etc<br /><br />it does not want to compile. I thus want to use the default descriptor instead of that one. How do I do it or am I missing the bus completely. All this is new to me and all the USB settings is a bit overwhelming.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4488">Talib</a> — Mon Oct 25, 2010 11:03 am</p><hr />
]]></content>
	</entry>
	</feed>
