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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-03-09T21:50:56+02:00</updated>

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

		<entry>
		<author><name><![CDATA[schwa226]]></name></author>
		<updated>2010-03-09T21:50:56+02:00</updated>

		<published>2010-03-09T21:50:56+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3979&amp;p=13584#p13584</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3979&amp;p=13584#p13584"/>
		<title type="html"><![CDATA[Re: Device may init with USB 2.0 instead of 1.1?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3979&amp;p=13584#p13584"><![CDATA[
Here I have some log and the AVR source!<br /><br />I use the same functions like the HID-Data example.<br />On one USB Port it is working fine, on the other:<br /><blockquote class="uncited"><div>20:43:08 usbhidOpenDevice faild, 0<br />..<br />..<br />20:43:09 usbhidGetReport faild, 31<br />20:43:09 Polling faild, PollingFaildCounter: 1</div></blockquote><br /><br />31 is from GetLastError = Device not working.<br />GetReport is from the HID.dll: HidD_GetFeature<br /><br />Source + LOG:<br /><!-- m --><a class="postlink" href="http://www.megaupload.com/?d=MXSRTKA1">http://www.megaupload.com/?d=MXSRTKA1</a><!-- m --><br /><br />The Hex file is included, Atmega8, 12MHz.<br /><br />Please Help!!!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3520">schwa226</a> — Tue Mar 09, 2010 9:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[schwa226]]></name></author>
		<updated>2010-03-09T14:33:14+02:00</updated>

		<published>2010-03-09T14:33:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3979&amp;p=13577#p13577</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3979&amp;p=13577#p13577"/>
		<title type="html"><![CDATA[Device may init with USB 2.0 instead of 1.1?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3979&amp;p=13577#p13577"><![CDATA[
Hi,<br /><br />I were testing the HID-Data example.<br />Now my project is almost over.<br /><br />But I have a problem with the init of the AVR.<br /><br />If the comunication of the device looks like this:<br /><a href="http://www.postimage.org/image.php?v=aVaOCnA" class="postlink"><img src="http://s4.postimage.org/aOCnA.jpg" class="postimage" alt="Image" /></a><br /><br />The comunication, reading/writing eeprom, polling the device is working without any problems.<br /><br />When I connect the device on the same PC on another USB port it look like this:<br /><a href="http://www.postimage.org/image.php?v=PqmNGzr" class="postlink"><img src="http://s3.postimage.org/mNGzr.jpg" class="postimage" alt="Image" /></a><br /><br />It is still working, but sometimes the polling fails, reading of eeprom fails... impossible to handle the device.<br />The picture looks like a faster comunication between host and device, may USB 2.0?<br /><br />Who this can be happen? I have the pull up resistor on D- for Low speed 1.1 device.<br />Missconfiguration of the &quot;usbconfig.h&quot;?<br /><br />EDIT:<br />It looks like not higher Speed, but much more comunication between host &amp; device..<br /><br />Why?<br /><br />This is my descriptor now:<br /><blockquote class="uncited"><div>PROGMEM char usbHidReportDescriptor[60] = {    <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 />    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 />    0x85, 0x02,                    //   REPORT_ID (2) <br />    0x95, 0x01,                    //   REPORT_COUNT (1) <br />    0x09, 0x00,                    //   USAGE (Undefined) <br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x03,                    //   REPORT_ID (3) <br />    0x95, 0x06,                    //   REPORT_COUNT (6) <br />    0x09, 0x00,                    //   USAGE (Undefined) <br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x04,                    //   REPORT_ID (4) <br />    0x95, 0x01,                    //   REPORT_COUNT (1) <br />    0x09, 0x00,                    //   USAGE (Undefined) <br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)<br />    0x85, 0x05,                    //   REPORT_ID (5) <br />    0x95, 0x06,                    //   REPORT_COUNT (6) <br />    0x09, 0x00,                    //   USAGE (Undefined) <br />    0xb2, 0x02, 0x01,              //   FEATURE (Data,Var,Abs,Buf)  <br />    0xc0                           // END_COLLECTION <br />};</div></blockquote><br /><br />I'am polling report ID 1<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3520">schwa226</a> — Tue Mar 09, 2010 2:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
