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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-07-04T12:14:14+02:00</updated>

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

		<entry>
		<author><name><![CDATA[uchar]]></name></author>
		<updated>2011-07-04T12:14:14+02:00</updated>

		<published>2011-07-04T12:14:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18875#p18875</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18875#p18875"/>
		<title type="html"><![CDATA[Re: working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18875#p18875"><![CDATA[
Dear Christian!<br /><br />You couldn't give an example filtrations of packets in functions usbFunctionWrite () and usbFunctionWriteOut ()?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3029">uchar</a> — Mon Jul 04, 2011 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2011-05-09T10:50:37+02:00</updated>

		<published>2011-05-09T10:50:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18412#p18412</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18412#p18412"/>
		<title type="html"><![CDATA[Re: working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18412#p18412"><![CDATA[
We have made it possible for the application code to filter packets. See the option USB_CFG_CHECK_DATA_TOGGLING in usbconfig.h for details. This is in all versions since the October 2008 release.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon May 09, 2011 10:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-05-09T07:57:16+02:00</updated>

		<published>2011-05-09T07:57:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18409#p18409</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18409#p18409"/>
		<title type="html"><![CDATA[Re: working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=18409#p18409"><![CDATA[
@christian<br /><br />have you solved the problem? <br />if yes, should I use latest version of vusb driver?<p>Statistics: Posted by Guest — Mon May 09, 2011 7:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-06-05T18:42:40+02:00</updated>

		<published>2008-06-05T18:42:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5499#p5499</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5499#p5499"/>
		<title type="html"><![CDATA[working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5499#p5499"><![CDATA[
Thanks for the code!<br /><br />And yes, a similar error can occur when sending data to the PC. This can only be corrected if we mark the transmit buffer as available only after an ACK is received.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Jun 05, 2008 6:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SimonQian]]></name></author>
		<updated>2008-06-04T18:58:40+02:00</updated>

		<published>2008-06-04T18:58:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5485#p5485</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5485#p5485"/>
		<title type="html"><![CDATA[working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5485#p5485"><![CDATA[
OK. My code is somewhat ugly.<br />But will the similar error occur when sending data to PC?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=621">SimonQian</a> — Wed Jun 04, 2008 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-06-03T20:21:00+02:00</updated>

		<published>2008-06-03T20:21:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5483#p5483</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5483#p5483"/>
		<title type="html"><![CDATA[working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5483#p5483"><![CDATA[
Thanks a lot for this capture! We are lucky and it contains the point of error!<br /><br />It seems it's a bug / transmission error on the host side. The LA capture clearly shows that we send an ACK and the host does not react to it. That's what data toggling is good for, after all.<br /><br />Here's the decoded capture. The first column is the time in microseconds, the second consists of the data bytes we decoded and the third is the trigger signal.<br /><br /><div class="codebox"><p>Code: </p><pre><code>   9.700 e1 1   &lt;--- OUT<br />  15.000 01 1<br />  20.300 c1 1<br />--------------<br />--------------<br />  37.000 c3 1   &lt;--- DATA0<br />  42.400 ef 1<br />  47.700 01 1<br />  53.100 00 1<br />  58.400 00 1<br />  63.700 00 1<br />  69.100 00 1<br />  74.400 00 1<br />  79.700 00 1<br />  85.100 e0 1<br />  90.400 e1 1<br />--------------<br />--------------<br /> 106.500 5a 1   &lt;--- NAK<br />--------------<br />--------------<br /> 124.500 e1 1   &lt;--- OUT<br /> 129.800 01 1<br /> 135.100 c1 1<br />--------------<br />--------------<br /> 151.800 c3 1   &lt;--- DATA0<br /> 157.200 ef 1<br /> 162.500 01 1<br /> 167.900 00 1<br /> 173.200 00 1<br /> 178.500 00 1<br /> 183.900 00 1<br /> 189.200 00 1<br /> 194.500 00 1<br /> 199.900 e0 1<br /> 205.200 e1 1<br />--------------<br />--------------<br /> 221.200 5a 1   &lt;--- NAK<br />--------------<br />--------------<br /> 239.300 e1 1   &lt;--- OUT<br /> 244.600 01 1<br /> 249.900 c1 1<br />--------------<br />--------------<br /> 266.600 c3 1   &lt;--- DATA0<br /> 272.000 ef 1<br /> 277.300 01 1<br /> 282.700 00 1<br /> 288.000 00 1<br /> 293.300 00 1<br /> 298.700 00 1<br /> 304.000 00 1<br /> 309.300 00 1<br /> 314.700 e0 1<br /> 320.000 e1 1<br />--------------<br />--------------<br /> 337.200 d2 1   &lt;--- ACK &#91;NOT HONORED BY HOST&#93;<br />--------------<br />--------------<br /> 357.900 e1 1   &lt;--- OUT<br /> 363.200 01 1<br /> 368.500 c1 1<br />--------------<br />--------------<br /> 385.300 c3 1   &lt;--- DATA0<br /> 390.600 ef 1<br /> 396.000 01 1<br /> 401.300 00 1<br /> 406.600 00 1<br /> 412.000 00 1<br /> 417.300 00 1<br /> 422.600 00 1<br /> 428.000 00 1<br /> 433.300 e0 1<br /> 438.600 e1 1<br />--------------<br />--------------<br /> 454.800 5a 1   &lt;--- NAK<br />--------------<br />--------------<br /> 472.900 e1 1   &lt;--- OUT<br /> 478.200 01 1<br /> 483.500 c1 1<br />--------------<br />--------------<br /> 500.300 c3 1   &lt;--- DATA0<br /> 505.600 ef 1<br /> 511.000 01 1<br /> 516.300 00 1<br /> 521.600 00 1<br /> 526.900 00 1<br /> 532.300 00 1<br /> 537.600 00 1<br /> 542.900 00 1<br /> 548.300 e0 1<br /> 553.600 e1 1<br />--------------<br />--------------<br /> 569.700 5a 1   &lt;--- NAK<br />--------------<br />--------------<br /> 587.700 e1 1   &lt;--- OUT<br /> 593.000 01 1<br /> 598.300 c1 1<br />--------------<br />--------------<br /> 615.100 c3 1   &lt;--- DATA0<br /> 620.400 ef 1<br /> 625.800 01 1<br /> 631.100 00 1<br /> 636.400 00 1<br /> 641.800 00 1<br /> 647.100 00 1<br /> 652.400 00 1<br /> 657.700 00 1<br /> 663.100 e0 1<br /> 668.400 e1 1<br />--------------<br />--------------<br /> 684.400 5a 1   &lt;--- NAK<br />--------------<br />--------------<br /> 702.500 e1 1   &lt;--- OUT<br /> 707.800 01 1<br /> 713.100 c1 1<br />--------------<br />--------------<br /> 729.900 c3 1   &lt;--- DATA0<br /> 735.200 ef 1<br /> 740.600 01 1<br /> 745.900 00 1<br /> 751.200 00 1<br /> 756.600 00 1<br /> 761.900 00 1<br /> 767.200 00 1<br /> 772.600 00 1<br /> 777.900 e0 1<br /> 783.200 e1 1<br />--------------<br />--------------<br /> 800.500 d2 1   &lt;--- ACK<br />--------------<br />--------------<br /> 818.800 e1 1   &lt;--- OUT<br /> 824.100 01 1<br /> 829.400 c1 1<br />--------------<br />--------------<br /> 846.200 4b 1   &lt;--- DATA1<br /> 851.500 00 1<br /> 856.900 00 1<br /> 862.200 00 1<br /> 867.500 00 1<br /> 872.900 00 1<br /> 878.200 00 1<br /> 883.500 00 1<br /> 888.900 00 1<br /> 894.200 3f 1<br /> 899.500 e9 1<br />--------------<br />--------------<br /> 915.700 5a 1   &lt;--- NAK<br />--------------<br />--------------<br /></code></pre></div><br /><br />So it's obvious that we must check for correct data toggling to be sufficiently USB compliant. Can you please send me a summary of your changes by e-mail? I'd like to add them to the next version of the driver or at least add hooks so that users can check for data toggling.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Jun 03, 2008 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SimonQian]]></name></author>
		<updated>2008-05-31T10:31:58+02:00</updated>

		<published>2008-05-31T10:31:58+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5471#p5471</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5471#p5471"/>
		<title type="html"><![CDATA[new data]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5471#p5471"><![CDATA[
<a href="http://www.simonqian.com/download/temp/USB_new.zla" class="postlink">http://www.simonqian.com/download/temp/USB_new.zla</a><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=621">SimonQian</a> — Sat May 31, 2008 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-05-29T23:11:47+02:00</updated>

		<published>2008-05-29T23:11:47+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5464#p5464</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5464#p5464"/>
		<title type="html"><![CDATA[working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5464#p5464"><![CDATA[
I'd like to have 99% data before the trigger and 1% after. The relevant things happen before the error is detected.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu May 29, 2008 11:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SimonQian]]></name></author>
		<updated>2008-05-29T20:20:34+02:00</updated>

		<published>2008-05-29T20:20:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5462#p5462</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5462#p5462"/>
		<title type="html"><![CDATA[working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5462#p5462"><![CDATA[
So you mean set the trigger position to where?<br />It's 10% by default, so there is 10% data before trigger and 90% after.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=621">SimonQian</a> — Thu May 29, 2008 8:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-05-26T21:52:36+02:00</updated>

		<published>2008-05-26T21:52:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5444#p5444</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5444#p5444"/>
		<title type="html"><![CDATA[working nicely on my laptop, but fail on my PC?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1360&amp;p=5444#p5444"><![CDATA[
Sorry for the delay, I was (and still am) busy with other projects.<br /><br />I finally had the time to look at the data you set up for download. There's one full packet visible before the trigger point. And I can see that your logic analyzer is capable of recording more than 1 millisecond worth of data at this resolution. That would be up to 10 packets.<br /><br />Can you please adjust the trigger so that you record everything leading up to the trigger, nothing past the trigger point? Since the trigger is raised when the error is detected, the problem must have been before it.<br /><br />Thanks in advance!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon May 26, 2008 9:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
