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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-04-06T23:37:29+02:00</updated>

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

		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2010-04-06T23:37:29+02:00</updated>

		<published>2010-04-06T23:37:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4096&amp;p=14011#p14011</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4096&amp;p=14011#p14011"/>
		<title type="html"><![CDATA[Re: &quot;Device Cannot Start (Code 10)&quot; error on non-standart HIDs]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4096&amp;p=14011#p14011"><![CDATA[
Have you tried it using the hid-data example as a base?<br />Maybe this would be a good starting point: <a href="http://yveslebrac.blogspot.com/2008/10/cheapest-dual-trace-scope-in-galaxy.html" class="postlink">http://yveslebrac.blogspot.com/2008/10/cheapest-dual-trace-scope-in-galaxy.html</a><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Tue Apr 06, 2010 11:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lamer5]]></name></author>
		<updated>2010-04-05T20:50:10+02:00</updated>

		<published>2010-04-05T20:50:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4096&amp;p=13988#p13988</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4096&amp;p=13988#p13988"/>
		<title type="html"><![CDATA[&quot;Device Cannot Start (Code 10)&quot; error on non-standart HIDs]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4096&amp;p=13988#p13988"><![CDATA[
I am making a data-logger which has (only) to send a two-byte number to the host every second or so. When I do a simple solution with joystick-class device, with descriptor like this:<br /><br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbHidReportDescriptor&#91;USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH&#93; = { //USB report descriptor<br />0x05, 0x01,        // USAGE_PAGE (Generic Desktop)<br />0x09, 0x04,        // USAGE (Joystick)<br />0xa1, 0x01,        // COLLECTION (Application)<br />0x09, 0x36,        // USAGE (pot0)<br />0x15, 0x00,        // LOGICAL_MINIMUM (0)<br />0x26, 0x00, 0x04,  // LOGICAL_MAXIMUM (1024)<br />0x75, 0x10,        // REPORT_SIZE (16)<br />0x95, 0x01,        // REPORT_COUNT (1)<br />0x81, 0x02,        // INPUT (Data,Var,Abs)<br />0xc0                 // END_COLLECTION<br />};</code></pre></div><br /><br />the device is correctly recognised by Windows as a one-slider &quot;joystick&quot;.<br /><br />It is not quite good for precise laboratory devices to show themselves as joysticks, and it has nothing to do with them. I do not need to control games with it, but I need to plot the data in user-mode application. So I try to make a non-standart HID device, with this descriptor:<br /><br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbHidReportDescriptor&#91;USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH&#93; = { //USB report descriptor<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, 0x00, 0x04,  // LOGICAL_MAXIMUM (1024)<br />0x75, 0x10,        // REPORT_SIZE (16)<br />0x95, 0x01,        // REPORT_COUNT (1)<br />0x81, 0x02,        // INPUT (Data,Var,Abs)<br />0xc0                 // END_COLLECTION<br />};</code></pre></div><br /><br />The device is found by Windows and driver installation begins. As the USB Device Monitor software says, the device is found, the descriptor is parsed correctly, but immediately after parsing Windows unloads the driver. In Device Manager, the device is displayed with a '!' sign, meaning an error. The error code displayed in Properties is &quot;Device Cannot Start (Code 10)&quot;.<br /><br />I tried other Custom HID class devices from the supplied samples, and all they share this error. I tried some workarounds suggested elsewhere, such as changing VID/PID. changing device version and even removing all USB controller drivers and reinstalling them. Unfortunately, nothing worked.<br /><br />Any suggestions?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3737">lamer5</a> — Mon Apr 05, 2010 8:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
