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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-08-30T14:49:31+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2010-08-30T14:49:31+02:00</updated>

		<published>2010-08-30T14:49:31+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4042&amp;p=15724#p15724</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=15724#p15724"/>
		<title type="html"><![CDATA[Re: [ bug ] descriptor of size 255 limit?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=15724#p15724"><![CDATA[
Thanks for pointing this out! Yes, it IS a bug. Please report such bugs via <!-- m --><a class="postlink" href="http://www.obdev.at/vusb/feedback.html">http://www.obdev.at/vusb/feedback.html</a><!-- m -->, since we don't read the forums regularly.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Aug 30, 2010 2:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-04-19T23:58:15+02:00</updated>

		<published>2010-04-19T23:58:15+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4042&amp;p=14184#p14184</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=14184#p14184"/>
		<title type="html"><![CDATA[Re: descriptor of size 255 limit?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=14184#p14184"><![CDATA[
Ok I did a lot of tracing and found the break down in here<br /><br />static inline void usbProcessRx(uchar *data, uchar len)<br /><br />when it calls for usbDriverSetup it returns a 8 bit car value. <br /><br />notice the end..<br /><div class="codebox"><p>Code: </p><pre><code>    return len;<br />}<br /></code></pre></div><br />and the beginning<br /><br /><div class="codebox"><p>Code: </p><pre><code>static inline usbMsgLen_t usbDriverSetup(usbRequest_t *rq)<br />{<br />uchar   len  = 0, *dataPtr = usbTxBuf + 9;  /* there are 2 bytes free space at the end of the buffer */</code></pre></div><br /><br />So I set it to <br /><br /><div class="codebox"><p>Code: </p><pre><code>static inline usbMsgLen_t usbDriverSetup(usbRequest_t *rq)<br />{<br />usbMsgLen_t   len  = 0;<br />char *dataPtr = usbTxBuf + 9;  /* there are 2 bytes free space at the end of the buffer */</code></pre></div><br /><br />Am I wrong? -- either way its working now, so my guess  is this 'WAS' a bug.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Apr 19, 2010 11:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-04-14T22:02:25+02:00</updated>

		<published>2010-04-14T22:02:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4042&amp;p=14101#p14101</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=14101#p14101"/>
		<title type="html"><![CDATA[Re: descriptor application collection too big?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=14101#p14101"><![CDATA[
ok I think I get the problem but cant make it work. <br /><br />This is what I do normally.<br /><br />my_usbDescriptorConfiguration[25] = rt_usbHidReportDescriptorSize;<br /><br />and now I do this..<br /><br />my_usbDescriptorConfiguration[25] = rt_usbHidReportDescriptorSize - 0xff;<br />my_usbDescriptorConfiguration[26] =  0x01;<br /><br />I also set #define  USB_CFG_LONG_TRANSFERS 1  Figuring that would be needed as well. I verified the descriptor is good. Still not getting a enumeration. Anything else need to be changed to allow a desc &gt; ff ?<br /><br />when I watch the enumeration the transfer buffer length on the hid desc is 0x003c yet I told it 0x013c, I traced down to usbFunctionDescriptor, and it seems to be return a char, even though its set to return an int.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Wed Apr 14, 2010 10:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-03-25T18:01:18+02:00</updated>

		<published>2010-03-25T18:01:18+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4042&amp;p=13860#p13860</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=13860#p13860"/>
		<title type="html"><![CDATA[Re: descriptor application collection too big?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=13860#p13860"><![CDATA[
I got a reply on usb-if, can anyone answer this, or point me to where I might find the answers.<br /><br /><blockquote class="uncited"><div>What about the code that sequences the descriptor out of your firmware to the host? Does that have a byte-sized counter for keeping track of &quot;remaining bytes&quot;?</div></blockquote><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu Mar 25, 2010 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-04-20T04:19:20+02:00 </updated>

		<published>2010-03-24T05:17:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4042&amp;p=13829#p13829</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=13829#p13829"/>
		<title type="html"><![CDATA[[ bug ] descriptor of size 255 limit?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4042&amp;p=13829#p13829"><![CDATA[
I have a descriptor that needs a lot of info to make the physical layer work. Most examples show 10 pages of stuff. All of this info goes under the usage application collection. I get about 200 lines worth before I run in to trouble. Is this a limit of the atmega168 ( still have room on the chip ), the v-usb, or something I dont understand?<br /><br />I get my size with sizeof like this.<br /><div class="codebox"><p>Code: </p><pre><code>int getGenericUsbHidReportDescriptor_size(void)<br />{<br />   return sizeof(generic_usbHidReportDescriptor);<br />}<br /></code></pre></div><br />So I know that is not the issue. Commenting a few lines out allow the device to enumerate. un-commenting them will cause a failure. It does not matter what section I comment out. There must be a limitation somewhere ?<br /><br />Seems to be  wDescriptorLength  greater then  2 00FBh (251) bytes  where I get issues.guessing 255 ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Wed Mar 24, 2010 5:17 am</p><hr />
]]></content>
	</entry>
	</feed>
