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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2013-06-24T19:07:24+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2013-06-24T19:07:24+02:00</updated>

		<published>2013-06-24T19:07:24+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8493&amp;p=25485#p25485</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8493&amp;p=25485#p25485"/>
		<title type="html"><![CDATA[Re: poll timing]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8493&amp;p=25485#p25485"><![CDATA[
Ok just saw something in my code I didnt see the first go. I'm set to 10 in config but I my descriptor I have this<br /><br />    USBDESCR_ENDPOINT,  /* descriptor type = endpoint */<br />    //0x81,       /* IN endpoint number 1 */<br />0x81,       // bulk IN endpoint number 1 <br />    0x03,       /* attrib: Interrupt endpoint */<br />    8, 0,       /* maximum packet size */ <br />    0x04, /* in ms */<br /><br />So I did some testing.  Seem changing does the following.<br /><br />0:ms = 64 ms<br />1-16 ms = 16 ms<br />&gt; 16 ms = that which is entered. <br /><br />Not sure on the 0 thing? Though it seems I get 16ms no matter what I set unless I set greater than that. So I take that as, Windows will take 8 ms per packet send. Since I can only send 8 ( actually its 10 ) at a time I must send two times. There is no way to do it faster? Guessing using another end point would give he same results?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Jun 24, 2013 7:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2013-06-16T01:10:38+02:00</updated>

		<published>2013-06-16T01:10:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8493&amp;p=25449#p25449</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8493&amp;p=25449#p25449"/>
		<title type="html"><![CDATA[poll timing]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8493&amp;p=25449#p25449"><![CDATA[
Trying to tweak poll timing a bit here. I'm set to 10ms in config<br /><br />So I normally do this<br />while (!usbInterruptIsReady()){usbPoll(); } usbSetInterrupt((void *)&amp;reportBuffer + 0, <img class="smilies" src="./../../../images/smilies/icon_cool.gif" alt="8)" title="Cool" />;<br />while (!usbInterruptIsReady()){usbPoll(); }usbSetInterrupt((void *)&amp;reportBuffer + 8, 5); <br /><br />If I do it one like <br />while (!usbInterruptIsReady()) { usbPoll();}<br />usbSetInterrupt((void *)&amp;reportBuffer + 0, 8 );//send the data<br /><br />I get 8 ms, doing it like above I get 16ms. Ok makes sense twice right. I need to run two sets as I have 13 packets to send. So is there a better way? I tried this but it does not send all 13. <br />while (!usbInterruptIsReady()) { usbPoll();}<br />usbSetInterrupt((void *)&amp;reportBuffer + 0, 8 );//send the data<br />usbSetInterrupt((void *)&amp;reportBuffer + 0, 5 );//send the data<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Sun Jun 16, 2013 1:10 am</p><hr />
]]></content>
	</entry>
	</feed>
