<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Flashduino at FITC Toronto 09</title>
	<atom:link href="http://blog.thestem.ca/archives/110/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.thestem.ca/archives/110</link>
	<description>Brett Forsyth's professional work showcase, photos, and ramblings.</description>
	<lastBuildDate>Sat, 03 Apr 2010 00:45:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ed</title>
		<link>http://blog.thestem.ca/archives/110#comment-72549</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Mon, 21 Dec 2009 17:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thestem.ca/?p=110#comment-72549</guid>
		<description>Hello Brett. I came across a comment you made on a post located here http://www.iestyn.net/wp/2008/03/23/getting-flash-and-arduino-talking-and-problems-with-as3  were you said,

&quot;....What you are running into isn&#039;t a big deal to fix yourself....  If you are sending data to flash with the Serial.println() function you can test for the new line character as the end of message at which point you can process it...&quot;

I have a similar situation to the original post where data is being cut off. I need to test for either a new line or a return  Can you help me?  I do not want to use AS3glue and Firmata and up until now I have not had to.

The data from my Arduino is sent in the following format.

0:123

1:23

2:65

3:7890

t:4560

Occasionally it might have an extra entry like this:

0:123

1:23

2:65

3:7890

t:45654

0f: 45699

The first four entries are a counter for a particular sensor. The t is time in milliseconds. And the 0f (or 1f, 2f, 3f) tells me that an event is finished for a particular sensor.  Also the data is coming in a continual stream repeating it over and over with the 5 of 6 lines.

But I can&#039;t seem to figure out how to test for the line break and get the data. I can connect and get the length of the stream no problem. Can you help me with an example?  Feel free to email me direct and I can share the code I have so far.  

Any help would be much appreciated!</description>
		<content:encoded><![CDATA[<p>Hello Brett. I came across a comment you made on a post located here <a href="http://www.iestyn.net/wp/2008/03/23/getting-flash-and-arduino-talking-and-problems-with-as3" rel="nofollow">http://www.iestyn.net/wp/2008/03/23/getting-flash-and-arduino-talking-and-problems-with-as3</a>  were you said,</p>
<p>&#8220;&#8230;.What you are running into isn&#8217;t a big deal to fix yourself&#8230;.  If you are sending data to flash with the Serial.println() function you can test for the new line character as the end of message at which point you can process it&#8230;&#8221;</p>
<p>I have a similar situation to the original post where data is being cut off. I need to test for either a new line or a return  Can you help me?  I do not want to use AS3glue and Firmata and up until now I have not had to.</p>
<p>The data from my Arduino is sent in the following format.</p>
<p>0:123</p>
<p>1:23</p>
<p>2:65</p>
<p>3:7890</p>
<p>t:4560</p>
<p>Occasionally it might have an extra entry like this:</p>
<p>0:123</p>
<p>1:23</p>
<p>2:65</p>
<p>3:7890</p>
<p>t:45654</p>
<p>0f: 45699</p>
<p>The first four entries are a counter for a particular sensor. The t is time in milliseconds. And the 0f (or 1f, 2f, 3f) tells me that an event is finished for a particular sensor.  Also the data is coming in a continual stream repeating it over and over with the 5 of 6 lines.</p>
<p>But I can&#8217;t seem to figure out how to test for the line break and get the data. I can connect and get the length of the stream no problem. Can you help me with an example?  Feel free to email me direct and I can share the code I have so far.  </p>
<p>Any help would be much appreciated!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
