<?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: NewSoftSerial</title>
	<atom:link href="http://arduiniana.org/libraries/newsoftserial/feed/" rel="self" type="application/rss+xml" />
	<link>http://arduiniana.org</link>
	<description>Arduino wisdom and gems by Mikal Hart</description>
	<lastBuildDate>Thu, 02 Feb 2012 11:22:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jan Krueger</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-25464</link>
		<dc:creator>Jan Krueger</dc:creator>
		<pubDate>Thu, 02 Feb 2012 11:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-25464</guid>
		<description>hi out there,

i have an issue with the serial port of my ArduinoProMini (16MHz), which i hope might be no big deal for someone with more insight than me...

i am reading serial data from a Spektrum Satellite receiver (16bytes every 22msec), in 115200 baud. to have good accuracy, i used the hardware serial port for this (only RX).

to monitor the data, i use SoftwareSerial (output) via the FTDI (only TX), with 115200 baud, too - works very well!

NOW when i change the baud rate of the SoftwareSerial monitor to 38400 baud (which i will later need to control a Pololu-Servo-Interface-board), the data gets corrupted! that is, you can still recognise the pattern, but there are many damaged or missed bytes.

any idea, comment, help? thanks so much -

jan from berlin

ps. here comes the very simple script that doesn&#039;t work (or does work with MonitorSerial.begin (115200) instead of (38400))...

#include 
SoftwareSerial MonitorSerial(5, 6);  // serial monitor on Pin 6 (only RX)

// serial data from Satellite receiver is connected to RX1 on the
// ArduinoProMini, 5V, 16MHz, ATmega328; Arduino Software 1.0

int index = 1;
int val[17];
int burp = 0;
 
void setup() 
{
  MonitorSerial.begin(38400);   // to monitor on screen, or later forward 
  MonitorSerial.print(&quot;Test&quot;);  // processed values to Servo-Interface
  MonitorSerial.println();      // with max. baudrate 38400
  
  Serial.begin(115200);         // serial data rate of the Spektrum Satellite
}
 
void loop()
{  
  if (Serial.available() &gt; 0)     
   {
    val[index]= Serial.read();
    if (val [index] == 0x01 &amp;&amp; val [index-1] &gt;=0)   
    {
      for (index =0; index &lt;17; index++)
        {
        MonitorSerial.print(val[index]);
        MonitorSerial.print(&quot;\t&quot;);
        }
      MonitorSerial.print(burp);
      MonitorSerial.println();
      index=0;
      burp++;
    }
    index++;
   }
}</description>
		<content:encoded><![CDATA[<p>hi out there,</p>
<p>i have an issue with the serial port of my ArduinoProMini (16MHz), which i hope might be no big deal for someone with more insight than me&#8230;</p>
<p>i am reading serial data from a Spektrum Satellite receiver (16bytes every 22msec), in 115200 baud. to have good accuracy, i used the hardware serial port for this (only RX).</p>
<p>to monitor the data, i use SoftwareSerial (output) via the FTDI (only TX), with 115200 baud, too &#8211; works very well!</p>
<p>NOW when i change the baud rate of the SoftwareSerial monitor to 38400 baud (which i will later need to control a Pololu-Servo-Interface-board), the data gets corrupted! that is, you can still recognise the pattern, but there are many damaged or missed bytes.</p>
<p>any idea, comment, help? thanks so much -</p>
<p>jan from berlin</p>
<p>ps. here comes the very simple script that doesn&#8217;t work (or does work with MonitorSerial.begin (115200) instead of (38400))&#8230;</p>
<p>#include<br />
SoftwareSerial MonitorSerial(5, 6);  // serial monitor on Pin 6 (only RX)</p>
<p>// serial data from Satellite receiver is connected to RX1 on the<br />
// ArduinoProMini, 5V, 16MHz, ATmega328; Arduino Software 1.0</p>
<p>int index = 1;<br />
int val[17];<br />
int burp = 0;</p>
<p>void setup()<br />
{<br />
  MonitorSerial.begin(38400);   // to monitor on screen, or later forward<br />
  MonitorSerial.print(&#8220;Test&#8221;);  // processed values to Servo-Interface<br />
  MonitorSerial.println();      // with max. baudrate 38400</p>
<p>  Serial.begin(115200);         // serial data rate of the Spektrum Satellite<br />
}</p>
<p>void loop()<br />
{<br />
  if (Serial.available() &gt; 0)<br />
   {<br />
    val[index]= Serial.read();<br />
    if (val [index] == 0&#215;01 &amp;&amp; val [index-1] &gt;=0)<br />
    {<br />
      for (index =0; index &lt;17; index++)<br />
        {<br />
        MonitorSerial.print(val[index]);<br />
        MonitorSerial.print(&quot;\t&quot;);<br />
        }<br />
      MonitorSerial.print(burp);<br />
      MonitorSerial.println();<br />
      index=0;<br />
      burp++;<br />
    }<br />
    index++;<br />
   }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikal</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-25186</link>
		<dc:creator>Mikal</dc:creator>
		<pubDate>Sun, 29 Jan 2012 06:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-25186</guid>
		<description>@Jim,

I would expect that to work with the &quot;true&quot; parameter for inverted logic.  Hmm..</description>
		<content:encoded><![CDATA[<p>@Jim,</p>
<p>I would expect that to work with the &#8220;true&#8221; parameter for inverted logic.  Hmm..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikal</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-25177</link>
		<dc:creator>Mikal</dc:creator>
		<pubDate>Sun, 29 Jan 2012 05:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-25177</guid>
		<description>@Roy/@Amok,

With Arduino 1.0 you no longer use the external NewSoftSerial library. It has been renamed “SoftwareSerial” (replacing the old SoftwareSerial) and place in the core.</description>
		<content:encoded><![CDATA[<p>@Roy/@Amok,</p>
<p>With Arduino 1.0 you no longer use the external NewSoftSerial library. It has been renamed “SoftwareSerial” (replacing the old SoftwareSerial) and place in the core.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikal</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-25173</link>
		<dc:creator>Mikal</dc:creator>
		<pubDate>Sun, 29 Jan 2012 05:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-25173</guid>
		<description>@Tyler, if you&#039;re using 1.0 you should use SoftwareSerial, which is really just NewSoftSerial renamed and inserted into the core.</description>
		<content:encoded><![CDATA[<p>@Tyler, if you&#8217;re using 1.0 you should use SoftwareSerial, which is really just NewSoftSerial renamed and inserted into the core.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikal</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-25130</link>
		<dc:creator>Mikal</dc:creator>
		<pubDate>Sat, 28 Jan 2012 17:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-25130</guid>
		<description>@Justin, yes, unfortunately it does require some careful thought to get it just right.</description>
		<content:encoded><![CDATA[<p>@Justin, yes, unfortunately it does require some careful thought to get it just right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: [Arduino] Lecteur RFID à écran lcd, avec stockage du tag &#8220;valide&#8221; en EEPROM externe I2C &#171; Skyduino &#8211; Le DIY à la française</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-24827</link>
		<dc:creator>[Arduino] Lecteur RFID à écran lcd, avec stockage du tag &#8220;valide&#8221; en EEPROM externe I2C &#171; Skyduino &#8211; Le DIY à la française</dc:creator>
		<pubDate>Tue, 24 Jan 2012 08:46:01 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-24827</guid>
		<description>[...] Dans ce projet vous pouvez remarquer que je suis obligé d&#8217;utiliser deux port série, un à 9600 bauds pour l&#8217;écran lcd, et un autre à 2400 bauds pour le lectuer RFID. Normalement il me faudrait une mega (qui possède 3 port série) pour faire ce projet en hardware, mais il existe aussi des librairies Serial software ! C&#8217;est pourquoi je vais utiliser la librairie NewSoftSerial disponible ici : http://arduiniana.org/libraries/newsoftserial/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Dans ce projet vous pouvez remarquer que je suis obligé d&#8217;utiliser deux port série, un à 9600 bauds pour l&#8217;écran lcd, et un autre à 2400 bauds pour le lectuer RFID. Normalement il me faudrait une mega (qui possède 3 port série) pour faire ce projet en hardware, mais il existe aussi des librairies Serial software ! C&#8217;est pourquoi je vais utiliser la librairie NewSoftSerial disponible ici : <a href="http://arduiniana.org/libraries/newsoftserial/" rel="nofollow">http://arduiniana.org/libraries/newsoftserial/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-23722</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 02 Jan 2012 19:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-23722</guid>
		<description>Hello Mikal.
I have two serial displays that I have been using with a Basic Stamp project. I am now converting the entire project over to an Arduino UNO. I am using   NewSoftSerial software so I can have two serial ports. However I can not get either display to work. After much diagnosis I have learned that the way the Basic Stamp was talking to them was a serial command of 9600baud 8bit no parity inverted. I had no idea that I was using an inverted command until I dug into the old stamp code. So I added the &quot;,true&quot; statement to the  NewSoftSerial but no help. Is it posible there is more I need to do? 

Thanks</description>
		<content:encoded><![CDATA[<p>Hello Mikal.<br />
I have two serial displays that I have been using with a Basic Stamp project. I am now converting the entire project over to an Arduino UNO. I am using   NewSoftSerial software so I can have two serial ports. However I can not get either display to work. After much diagnosis I have learned that the way the Basic Stamp was talking to them was a serial command of 9600baud 8bit no parity inverted. I had no idea that I was using an inverted command until I dug into the old stamp code. So I added the &#8220;,true&#8221; statement to the  NewSoftSerial but no help. Is it posible there is more I need to do? </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Telemetry Using Xbee Modules &#124; Anacortes RC Sailors</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-23485</link>
		<dc:creator>Telemetry Using Xbee Modules &#124; Anacortes RC Sailors</dc:creator>
		<pubDate>Mon, 26 Dec 2011 01:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-23485</guid>
		<description>[...] arduino remotely can be found here.  For communication over XBee the Arduino appears to need the NewSoftSerial library.               [...]</description>
		<content:encoded><![CDATA[<p>[...] arduino remotely can be found here.  For communication over XBee the Arduino appears to need the NewSoftSerial library.               [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NewSoftSerial, Attachinterupt() and Pins 2,3 &#124; Anacortes RC Sailors</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-23484</link>
		<dc:creator>NewSoftSerial, Attachinterupt() and Pins 2,3 &#124; Anacortes RC Sailors</dc:creator>
		<pubDate>Mon, 26 Dec 2011 01:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-23484</guid>
		<description>[...] for attacheinterupt() are 2 and 3. The GPS shield uses digital 2 and 3 for GPS communication using NewSoftSerial. So I tried moving the GPS to other pins, 8 and 9 worked. Now pins 2 and 3 are free for my [...]</description>
		<content:encoded><![CDATA[<p>[...] for attacheinterupt() are 2 and 3. The GPS shield uses digital 2 and 3 for GPS communication using NewSoftSerial. So I tried moving the GPS to other pins, 8 and 9 worked. Now pins 2 and 3 are free for my [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Telemetry Using Xbee Modules &#124; Anacortes RC Sailors</title>
		<link>http://arduiniana.org/libraries/newsoftserial/comment-page-6/#comment-23482</link>
		<dc:creator>Telemetry Using Xbee Modules &#124; Anacortes RC Sailors</dc:creator>
		<pubDate>Mon, 26 Dec 2011 01:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://sundial.org/arduino/?page_id=61#comment-23482</guid>
		<description>[...] arduino remotely can be found here.  For communication over XBee the Arduino appears to need the NewSoftSerial library.     LD_AddCustomAttr(&quot;AdOpt&quot;, &quot;1&quot;); LD_AddCustomAttr(&quot;Origin&quot;, &quot;other&quot;); [...]</description>
		<content:encoded><![CDATA[<p>[...] arduino remotely can be found here.  For communication over XBee the Arduino appears to need the NewSoftSerial library.     LD_AddCustomAttr(&quot;AdOpt&quot;, &quot;1&quot;); LD_AddCustomAttr(&quot;Origin&quot;, &quot;other&quot;); [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

