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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-04-22T16:26:32+02:00</updated>

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

		<entry>
		<author><name><![CDATA[psc]]></name></author>
		<updated>2009-04-22T16:26:32+02:00</updated>

		<published>2009-04-22T16:26:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2677&amp;p=9024#p9024</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2677&amp;p=9024#p9024"/>
		<title type="html"><![CDATA[Re: Vendor type requests sent to custom HID class template]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2677&amp;p=9024#p9024"><![CDATA[
Thank you Christian.<br /><br />Using a HID Descriptor with a custom class prevents the &quot;New Device&quot; dialog on Windows. However to access it as a custom class device, you need to install the driver. Here's how to do it with InnoSetup, taken from libusb-win32-device-bin-0.1.12.1/examples/driver_installer_template.iss:<br /><br /><div class="codebox"><p>Code: </p><pre><code>; - copy libusb's driver (libusb0.sys, libusb0.dll)<br />; - create an .inf and .cab file using libusb's 'inf-wiward.exe'<br />...<br />Source: &quot;*.dll&quot;; DestDir: &quot;{win}\system32&quot;; FLags: replacesameversion restartreplace uninsneveruninstall<br />Filename: &quot;rundll32&quot;; Parameters: &quot;libusb0.dll,usb_install_driver_np_rundll {app}\driver\&lt;your_inf_file.inf&gt;&quot;; StatusMsg: &quot;Installing driver (this may take a few seconds) ...&quot;<br /><br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1494">psc</a> — Wed Apr 22, 2009 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2009-04-22T11:56:29+02:00</updated>

		<published>2009-04-22T11:56:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2677&amp;p=9018#p9018</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2677&amp;p=9018#p9018"/>
		<title type="html"><![CDATA[Re: Vendor type requests sent to custom HID class template]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2677&amp;p=9018#p9018"><![CDATA[
There are two versions of libusb-win32. The filter version, which must be installed in any case, and the dll version which must be associated with your device by means of a .inf file. So I'm afraid you need some kind of installation in any case, contrary to the claim on the wiki.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed Apr 22, 2009 11:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[psc]]></name></author>
		<updated>2009-04-20T23:43:13+02:00</updated>

		<published>2009-04-20T23:43:13+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2677&amp;p=8991#p8991</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2677&amp;p=8991#p8991"/>
		<title type="html"><![CDATA[Vendor type requests sent to custom HID class template]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2677&amp;p=8991#p8991"><![CDATA[
hi everyone,<br /><br />after reading:<br /><!-- m --><a class="postlink" href="http://vusb.wikidot.com/usb-device-classes">http://vusb.wikidot.com/usb-device-classes</a><!-- m --><br /><br />i came to the conclusion that my project would benefit from using the following USB Device Class:<br />Vendor type requests sent to custom HID class device<br /><br />i am looking for a template / project that use this method!<br /><br />here's what i have discovered so far:<br /><br /><strong class="text-strong">usbconfig.h</strong><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_HAVE_INTRIN_ENDPOINT    1<br />#define USB_CFG_HAVE_INTRIN_ENDPOINT3   0<br />#define USB_CFG_EP3_NUMBER              3<br /><br />#define USB_CFG_DEVICE_CLASS        0<br />#define USB_CFG_DEVICE_SUBCLASS     0<br /><br />#define USB_CFG_INTERFACE_CLASS     0x03<br />#define USB_CFG_INTERFACE_SUBCLASS  0<br />#define USB_CFG_INTERFACE_PROTOCOL  0<br /><br />#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    33<br /></code></pre></div><br /><br /><strong class="text-strong">usbHidReportDescriptor</strong><br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbHidReportDescriptor&#91;33&#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 /><br />    0x85, 0x01,                    //   REPORT_ID (1)<br />    0x95, 0x06,                    //   REPORT_COUNT (6)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br /><br />    0x85, 0x02,                    //   REPORT_ID (2)<br />    0x95, 0x83,                    //   REPORT_COUNT (131)<br />    0x09, 0x00,                    //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0xc0                           // END_COLLECTION<br />};<br /></code></pre></div><br /><br />it's working perfectly on Linux &amp; Mac, but on Windows i still need to install libusb-win32. The device is not found if i don't install it. However, on V-USB wiki there's this line: <blockquote class="uncited"><div>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 am not sure what files or folders and where i need to copy them?<br /><br />thank you very much,<br />patrick<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1494">psc</a> — Mon Apr 20, 2009 11:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
