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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2014-02-06T00:13:44+02:00</updated>

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

		<entry>
		<author><name><![CDATA[martinay]]></name></author>
		<updated>2014-02-06T00:13:44+02:00</updated>

		<published>2014-02-06T00:13:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26560#p26560</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26560#p26560"/>
		<title type="html"><![CDATA[Re: V-USB CDC-ACM stuck with usbInterruptIsReady() = 0]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26560#p26560"><![CDATA[
Hi, <br /><br />I've found this thread ...  <img class="smilies" src="./../../../images/smilies/icon_sad.gif" alt=":(" title="Sad" /> <br /><br /><!-- l --><a class="postlink-local" href="http://forums.obdev.at/viewtopic.php?f=8&amp;t=1030">viewtopic.php?f=8&amp;t=1030</a><!-- l --><br /><br />Is this still true that we have to recompile Linux kernel driver to make CDC-ACM working fine even after more than 5 years ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20187">martinay</a> — Thu Feb 06, 2014 12:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[martinay]]></name></author>
		<updated>2014-02-05T18:44:57+02:00</updated>

		<published>2014-02-05T18:44:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26558#p26558</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26558#p26558"/>
		<title type="html"><![CDATA[Re: V-USB CDC-ACM stuck with usbInterruptIsReady() = 0]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26558#p26558"><![CDATA[
Hi blargg,<br />Glad to see your feedback that it is suppose to work. I presume you didn't have to do any changes to the original package ?<br />Unfortunately, it still doesn't work for me. <img class="smilies" src="./../../../images/smilies/icon_sad.gif" alt=":-(" title="Sad" /> (I'm running 12.04 too, so it should not be a driver issue.) <br />I've ran your test script, AVR is receiving string properly but capture is still empty. <img class="smilies" src="./../../../images/smilies/icon_sad.gif" alt=":-(" title="Sad" /><br />I've even try changing the crystal from 16MHz to 12MHz to make sure the problem wasn't related to clock accuracy.<br />Then, I've done some debugging with &quot;usbmon&quot; and &quot;wireshark&quot; : I can see 16x &quot;UBR_INTERRUPT in&quot; been send when I'm launching gtkterm and been replied 16 times by the AVR with &quot;URB status: Broken pipe (-EPIPE) (-32)&quot;. (running the test script is also doing the same returns, although not in the same packet order)<br />I've added a USB_RX_USER_HOOK to figure out that interrupts are calling usbProcessRx only for SETUP and DATA packets. <br />I've tried to dig into assembly code, but I'm a bit lot : I can't figure out where the -EPIPE error comes from and why, I didn't found a place where a reply packet have such status.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20187">martinay</a> — Wed Feb 05, 2014 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blargg]]></name></author>
		<updated>2014-02-03T21:38:51+02:00</updated>

		<published>2014-02-03T21:38:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26550#p26550</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26550#p26550"/>
		<title type="html"><![CDATA[Re: V-USB CDC-ACM stuck with usbInterruptIsReady() = 0]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26550#p26550"><![CDATA[
I used that version successfully on an atmega8 at 12MHz (reprogrammed a USBasp). I notice that I switched to the most current usbdrv, not sure if that was necessary.<br /><br />I'm on Ubuntu 12.04 and I used something like this to test, with the device's TX and RX connected together for a loopback test:<br /><div class="codebox"><p>Code: </p><pre><code># Configure serial<br />stty -F /dev/ttyACM0 sane<br />stty -F /dev/ttyACM0 raw 57600 cs8 -crtscts -cstopb -parenb -echo<br /><br /># Capture output in background then send test message<br />cat &lt;/dev/ttyACM0 &gt;capture &amp;<br />echo &quot;test&quot; &gt;/dev/ttyACM0<br /><br /># Stop capture and examine result<br />kill $!<br />cat capture<br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20076">blargg</a> — Mon Feb 03, 2014 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[martinay]]></name></author>
		<updated>2014-02-03T17:42:25+02:00</updated>

		<published>2014-02-03T17:42:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26544#p26544</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26544#p26544"/>
		<title type="html"><![CDATA[V-USB CDC-ACM stuck with usbInterruptIsReady() = 0]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8838&amp;p=26544#p26544"><![CDATA[
Hi,<br /><br />I'm trying to implement a CDC-ACM (CDC-232) using V-USB on a small atmega328p board. I've wrote my code inspired by cdc232.2011-06-24 archive from <!-- m --><a class="postlink" href="http://www.recursion.jp/avrcdc/">http://www.recursion.jp/avrcdc/</a><!-- m -->.<br />It works fine in one direction but not in the other ! <img class="smilies" src="./../../../images/smilies/icon_sad.gif" alt=":-(" title="Sad" /><br />From gtkterm, I can send characters to the atmega328, and it is receiving it properly in the usbFunctionWriteOut() function.<br />The reverse direction is not working : as soon that one character is send to PC thru usbSetInterrupt() call in the uartPoll() function, the usbInterruptIsReady() funtion returns 0 forever blocking any further transmission to usbSetInterrupt().<br />To make sure it is not my own code that had something wrong, I've compiled the original cdc232.2011-06-24 archive, only changing the target CPU and the F_CPU, and I figured out it is behaving exactly the same way. <img class="smilies" src="./../../../images/smilies/icon_sad.gif" alt=":-(" title="Sad" /><br />Notice that the receive pipe still working fine while the transmit is blocked.<br /><br />Any idea ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20187">martinay</a> — Mon Feb 03, 2014 5:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
