<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Reproducible SerialUSB problem revealed using Interactive Test sketch!</title>
		<link>http://forums.leaflabs.com/topic.php?id=152</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:17:12 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=152" rel="self" type="application/rss+xml" />

		<item>
			<title>poslathian on "Reproducible SerialUSB problem revealed using Interactive Test sketch!"</title>
			<link>http://forums.leaflabs.com/topic.php?id=152#post-1263</link>
			<pubDate>Tue, 14 Sep 2010 15:01:24 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">1263@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;temporarily, you can you use another serial term program instead of the java based one integrated into the IDE. For example, hyperterminal on windows.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leaflabsandy on "Reproducible SerialUSB problem revealed using Interactive Test sketch!"</title>
			<link>http://forums.leaflabs.com/topic.php?id=152#post-1122</link>
			<pubDate>Wed, 08 Sep 2010 20:12:00 +0000</pubDate>
			<dc:creator>leaflabsandy</dc:creator>
			<guid isPermaLink="false">1122@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Like you, on my Windows XP SP3 platform, I always have the task manager ready to stop multiple processes from draining my PC resources. If found that in some instances, when compiling libraries, with lots of errors, the libraries compile process would deplete my PC resources. Not to worry, a better IDE is coming our way and should cure this problem once and for all?&#60;/p&#62;
&#60;p&#62;NY Steve I take it you are a late Maple user. I use to have a Bible and a white rabbit's foot (it has to be left) near my Maple every time I hit the compile button. I threw them away at rev. 0.0.6.!&#60;br /&#62;
I always now keep the task manager on standby. Hopefully by stable rev. 0.1.0.&#60;br /&#62;
I won't need that also.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Reproducible SerialUSB problem revealed using Interactive Test sketch!"</title>
			<link>http://forums.leaflabs.com/topic.php?id=152#post-1119</link>
			<pubDate>Wed, 08 Sep 2010 19:52:41 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">1119@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Wednesday September 8, 2010&#60;/p&#62;
&#60;p&#62;Hello-&#60;/p&#62;
&#60;p&#62;As a precaution I now keep the Windows &#34;task manager&#34; open whenever I plan to use the Maple-IDE serial monitor.  This way I can easily end the javaw.exe process if something causes my system to grind to a halt.&#60;/p&#62;
&#60;p&#62;I have been too busy to look at the java code for the IDE (and I probably will not since you are moving to a Python version of the IDE).  However, I am not convinced the &#34;reproducible&#34; SerialUSB.print() problem I described above and the hogging of the cpu cycles by javaw.exe are the fault of java.&#60;/p&#62;
&#60;p&#62;Why?  Whenever I open the IDE Serial Monitor javaw.exe uses about 95% of the cpu cycles.  This is true even when the Serial Monitor is actively displaying data.&#60;/p&#62;
&#60;p&#62;The recent (two days ago) changes to InteractiveTest.pde still causes a problem with my system.  On my system when 'U' is selected the system becomes very slow (but the system can be recovered without a reboot if I end the task using the &#34;task manager&#34;).&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://github.com/leaflabs/maple-ide/commit/e59fdfb8f357649e576164efa7eae56053a05a0b&#34; rel=&#34;nofollow&#34;&#62;http://github.com/leaflabs/maple-ide/commit/e59fdfb8f357649e576164efa7eae56053a05a0b&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;With the new version of InteractiveTest.pde my system still becomes very slow unless I change the code to SerialUSB.println() in the 'U' case.&#60;/p&#62;
&#60;p&#62;Looking forward to testing InteractiveTest.pde using the Maple-IDE 0.0.7.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Reproducible SerialUSB problem revealed using Interactive Test sketch!"</title>
			<link>http://forums.leaflabs.com/topic.php?id=152#post-961</link>
			<pubDate>Thu, 02 Sep 2010 16:23:09 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">961@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Stephen, thanks for the detailed report! &#60;/p&#62;
&#60;p&#62;This seems to me, at first glance, an issue with the IDE java code rather than the SerialUSB module in libmaple. The serial port works via all sorts of interacting threads and classes in Java, i would not be surprised if some condition causes this pipeline to lock up and suck up your computer's resources for no good reason. Well dig in and try and fix it - of course there are improvements that can be made to SerialUSB to be made, most notably the addition of a TX buffer, which is coming! &#60;/p&#62;
&#60;p&#62;Feel free to take a look at the java code for the IDE just for fun, github.com/leaflabs you want the maple-ide repository, and the java source (about 90% arduino 0018) is in ./app/src/processing/app  in the toplevel of that repo is some readme and notes files giving the line by line changes in the Maple-ide over Arduino.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Reproducible SerialUSB problem revealed using Interactive Test sketch!"</title>
			<link>http://forums.leaflabs.com/topic.php?id=152#post-955</link>
			<pubDate>Thu, 02 Sep 2010 09:01:53 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">955@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;September 2, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I do not know what I did (or did not do), but today I was able to upload programs to the FLASH memory of my Maple Rev3 board (running IDE 0.0.6).&#60;/p&#62;
&#60;p&#62;I was able to upload the the sketch from: examples\Maple\InteractiveTest&#60;/p&#62;
&#60;p&#62;This sketch cannot be uploaded to SRAM, because it is too large.  It requires 24240 bytes (on my Windows XP system).&#60;/p&#62;
&#60;p&#62;I tested the sketch using the Maple-IDE Serial Monitor, the Microsoft HyperTerminal (Version 5.1), and another terminal monitoring program.&#60;/p&#62;
&#60;p&#62;Using the Maple-IDE Serial Monitor, the sketch responds well to lowercase 'u' commands (responding with &#34;Hello World&#34;).  However, the sketch does not respond well to uppercase 'U' commands.  A large number of characters appear, but the system stops responding.  If the Windows Task Manager is open it shows that javaw.exe is using 95% of the CPU cycles.&#60;/p&#62;
&#60;p&#62;Then I rebooted my system (to &#34;clear out&#34; any residual problems), uploaded the Interactive Test sketch again, and tested the sketch output using Microsoft HyperTerminal.  I was very surprised when the Interactive Test passed the 'U' command.  The SerialUSB.print() function succeeds at printing the &#34;DUMMY_DAT&#34; string many times without any problems.&#60;/p&#62;
&#60;p&#62;Finally, I tested the Interactive Test sketch twice using another terminal program.  On the first attempt the output from the Maple stopped after 50 prints of the complete &#34;DUMMY_DAT&#34; string.  I forgot what I did next, but it is possible I rebooted my system and uploaded the sketch again.  On the second attempt the output from the Maple stopped after 54 complete prints of the &#34;DUMMY_DAT&#34; string.  I do not know if it significant that complete &#34;DUMMY_DAT&#34; strings printed (ie, SerialUSB.printing did not stop in the middle of the string).&#60;/p&#62;
&#60;p&#62;I did not change the length of the DUMMY_DAT variable.  If it is shortened or lengthened I do not know if the number of complete DUMMY_DAT strings printed is increased or decreased, respectively.&#60;/p&#62;
&#60;p&#62;I should have tested the sketch using a Mac OS terminal program, but I was lazy.&#60;/p&#62;
&#60;p&#62;Running the Interactive Test sketch reproducibly causes the system &#34;lock&#34; (95% system CPU in use) using the Maple-IDE 0.0.6 on my Windows XP Professional SP3 system (Pentium III 32-bit).&#60;/p&#62;
&#60;p&#62;Then I found a way to make the Interactive Test sketch succeed with the Maple-IDE Serial Monitor.&#60;/p&#62;
&#60;p&#62;The original unmodified code is:&#60;/p&#62;
&#60;p&#62;&#38;lt;start of code&#38;gt;&#60;br /&#62;
case 85:  // 'U'&#60;br /&#62;
     COMM.println(&#34;Dumping data to USB. Press enter.&#34;);&#60;/p&#62;
&#60;p&#62;     while(!COMM.available()) {&#60;br /&#62;
           SerialUSB.print(DUMMY_DAT);&#60;br /&#62;
           }&#60;/p&#62;
&#60;p&#62;     break;&#60;br /&#62;
&#38;lt;end of code&#38;gt;&#60;/p&#62;
&#60;p&#62;If the &#34;SerialUSB.print(DUMMY_DAT);&#34; is changed to &#34;SerialUSB.println(DUMMY_DAT);&#34; the code works on my Windows XP Pro SP3 system (Pentium III 32-bit).&#60;/p&#62;
&#60;p&#62;I have not looked at the source-code for SerialUSB.print() and SerialUSB.println().  Does this observation help trouble-shoot the SerialUSB problems which have been reported by several users?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC&#60;/p&#62;
&#60;p&#62;Here is a description of my system:&#60;/p&#62;
&#60;p&#62;Maple board: Rev 3 (summer 2010)&#60;br /&#62;
Maple IDE: 0.6.0&#60;/p&#62;
&#60;p&#62;Processor: Pentium III (1 GHz)&#60;br /&#62;
USB ports: 1.1&#60;/p&#62;
&#60;p&#62;OS: Windows XP Professional (32-bit)&#60;br /&#62;
SP: Service Pack 3&#60;/p&#62;
&#60;p&#62;Java type: JDK and JRE&#60;br /&#62;
Java version: 1.6.0_20 (as reported by the Control Panel)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
