<?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: Serial Communications: A C++ Developer&#8217;s Guide, 2nd Edition</title>
	<atom:link href="http://marknelson.us/about/serial2/feed/" rel="self" type="application/rss+xml" />
	<link>http://marknelson.us</link>
	<description>Programming, mostly.</description>
	<lastBuildDate>Sun, 20 May 2012 20:52:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Crystal</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-371743</link>
		<dc:creator>Crystal</dc:creator>
		<pubDate>Tue, 16 Aug 2011 02:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-371743</guid>
		<description>Hi Mark,

But I did see the error code -194 being returned. Does that means that my program has encountered the RS232_NEXT_FREE_ERROR?</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>But I did see the error code -194 being returned. Does that means that my program has encountered the RS232_NEXT_FREE_ERROR?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nelson</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-371664</link>
		<dc:creator>Mark Nelson</dc:creator>
		<pubDate>Mon, 15 Aug 2011 11:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-371664</guid>
		<description>@Crystal:

I believe RS232_NEXT_FREE_ERROR is the next error code available to the RS232 class. It should be unused, and I don&#039;t think you will ever see it returned.

- Mark</description>
		<content:encoded><![CDATA[<p>@Crystal:</p>
<p>I believe RS232_NEXT_FREE_ERROR is the next error code available to the RS232 class. It should be unused, and I don&#8217;t think you will ever see it returned.</p>
<p>- Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crystal</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-371655</link>
		<dc:creator>Crystal</dc:creator>
		<pubDate>Mon, 15 Aug 2011 09:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-371655</guid>
		<description>Hi Mark,

Do you know what is RS232_NEXT_FREE_ERROR? Does it just mean that it is not a known error in the predefined enumeration? Is there any advice that you can give to help on the problems that I am facing?

Thanks.

Crystal</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>Do you know what is RS232_NEXT_FREE_ERROR? Does it just mean that it is not a known error in the predefined enumeration? Is there any advice that you can give to help on the problems that I am facing?</p>
<p>Thanks.</p>
<p>Crystal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crystal</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-370138</link>
		<dc:creator>Crystal</dc:creator>
		<pubDate>Mon, 01 Aug 2011 09:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-370138</guid>
		<description>Hi Mark,

I tried my serial communication program on the actual hardware where the receiving serial port only has 3 pins(GND, RX and TX). It is on a self customzied PCB board. Initially, the receiver was able to receive the serial message. After 30 mins, my program had an error when sending. The error code is -194 (RS232_NEXT_FREE_ERROR). May I know what this error mean? What do you suggest I do?

Thanks.

Crystal</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>I tried my serial communication program on the actual hardware where the receiving serial port only has 3 pins(GND, RX and TX). It is on a self customzied PCB board. Initially, the receiver was able to receive the serial message. After 30 mins, my program had an error when sending. The error code is -194 (RS232_NEXT_FREE_ERROR). May I know what this error mean? What do you suggest I do?</p>
<p>Thanks.</p>
<p>Crystal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nelson</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-369508</link>
		<dc:creator>Mark Nelson</dc:creator>
		<pubDate>Tue, 26 Jul 2011 11:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-369508</guid>
		<description>@Crystal:

Sounds like you have a flaky hardware setup. Maybe you should try using a cable to connects the appropriate control lines.

- Mark</description>
		<content:encoded><![CDATA[<p>@Crystal:</p>
<p>Sounds like you have a flaky hardware setup. Maybe you should try using a cable to connects the appropriate control lines.</p>
<p>- Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crystal</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-369477</link>
		<dc:creator>Crystal</dc:creator>
		<pubDate>Tue, 26 Jul 2011 06:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-369477</guid>
		<description>Hi Mark,

Thanks for your reply. I tried setting dtr, xon_xoff, rts_cts and dtr_dsr to DISABLE. The receiving PC was initially able to receive the serial message. After 20 mins plus, the receiving PC was not able to receive the serial message and I got a -198 (RS232_PORT_NOT_FOUND) error code printout on my command prompt. What do you think cause the failure to send the message? If dtr is set to UNCHANGED, the receiving machine is still able to receive the message 2hrs later.

void SerialConnection::initRS232(const string &amp;port,
long baud_rate ,
char parity ,
int word_length ,
int stop_bits ,
int dtr ,
int rts ,
int xon_xoff ,
int rts_cts ,
int dtr_dsr )

Thanks
Crystal</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>Thanks for your reply. I tried setting dtr, xon_xoff, rts_cts and dtr_dsr to DISABLE. The receiving PC was initially able to receive the serial message. After 20 mins plus, the receiving PC was not able to receive the serial message and I got a -198 (RS232_PORT_NOT_FOUND) error code printout on my command prompt. What do you think cause the failure to send the message? If dtr is set to UNCHANGED, the receiving machine is still able to receive the message 2hrs later.</p>
<p>void SerialConnection::initRS232(const string &amp;port,<br />
long baud_rate ,<br />
char parity ,<br />
int word_length ,<br />
int stop_bits ,<br />
int dtr ,<br />
int rts ,<br />
int xon_xoff ,<br />
int rts_cts ,<br />
int dtr_dsr )</p>
<p>Thanks<br />
Crystal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nelson</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-369091</link>
		<dc:creator>Mark Nelson</dc:creator>
		<pubDate>Fri, 22 Jul 2011 14:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-369091</guid>
		<description>@Crystal:

If you haven&#039;t connected the DTR and RTS lines, it doesn&#039;t matter what you set them to.

But you definitely want to make sure you don&#039;t turn on DTR/DSR or RTS/CTS handshaking - both of those settings must be turned off.

XON/XOFF depends on the interface you have with the other end.

The difference between UNCHANGED and DISABLED is that if you set a line to UNCHANGED, the driver doesn&#039;t attempt to modify whatever the current setting is.

- Mark</description>
		<content:encoded><![CDATA[<p>@Crystal:</p>
<p>If you haven&#8217;t connected the DTR and RTS lines, it doesn&#8217;t matter what you set them to.</p>
<p>But you definitely want to make sure you don&#8217;t turn on DTR/DSR or RTS/CTS handshaking &#8211; both of those settings must be turned off.</p>
<p>XON/XOFF depends on the interface you have with the other end.</p>
<p>The difference between UNCHANGED and DISABLED is that if you set a line to UNCHANGED, the driver doesn&#8217;t attempt to modify whatever the current setting is.</p>
<p>- Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crystal</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-369061</link>
		<dc:creator>Crystal</dc:creator>
		<pubDate>Fri, 22 Jul 2011 08:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-369061</guid>
		<description>Hi,

If only the RXD, TXD and GND pins of the serial ports are connected, what values should I set for the dtr, rts, xon_xoff, rts_cts and dtr_dsr parameters in the initRS232 function below? What are the differences between using UNCHANGED (-1) and DISABLE (0)?

void SerialConnection::initRS232(const string &amp;port,
                      long baud_rate   ,
                      char parity      ,
                      int word_length  ,
                      int stop_bits    ,
                      int dtr          ,
                      int rts          ,
                      int xon_xoff     ,
                      int rts_cts      ,
                      int dtr_dsr      )

Thanks 
Crystal</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>If only the RXD, TXD and GND pins of the serial ports are connected, what values should I set for the dtr, rts, xon_xoff, rts_cts and dtr_dsr parameters in the initRS232 function below? What are the differences between using UNCHANGED (-1) and DISABLE (0)?</p>
<p>void SerialConnection::initRS232(const string &amp;port,<br />
                      long baud_rate   ,<br />
                      char parity      ,<br />
                      int word_length  ,<br />
                      int stop_bits    ,<br />
                      int dtr          ,<br />
                      int rts          ,<br />
                      int xon_xoff     ,<br />
                      int rts_cts      ,<br />
                      int dtr_dsr      )</p>
<p>Thanks<br />
Crystal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: albay</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-334955</link>
		<dc:creator>albay</dc:creator>
		<pubDate>Mon, 25 Oct 2010 18:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-334955</guid>
		<description>Hello everyone,

I developed a serial port programming language specially designed to simplify the development of RS232 based applications and it is freely available on sourceforge.

Would you please take a look and let me know your thoughts ?

You can download the application from https://sourceforge.net/projects/anyserialport and get more information from the project website ( http://www.anyserialport.com )

Thank you

Orhan</description>
		<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>I developed a serial port programming language specially designed to simplify the development of RS232 based applications and it is freely available on sourceforge.</p>
<p>Would you please take a look and let me know your thoughts ?</p>
<p>You can download the application from <a href="https://sourceforge.net/projects/anyserialport" rel="nofollow">https://sourceforge.net/projects/anyserialport</a> and get more information from the project website ( <a href="http://www.anyserialport.com" rel="nofollow">http://www.anyserialport.com</a> )</p>
<p>Thank you</p>
<p>Orhan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nelson</title>
		<link>http://marknelson.us/about/serial2/comment-page-1/#comment-328613</link>
		<dc:creator>Mark Nelson</dc:creator>
		<pubDate>Thu, 08 Jul 2010 14:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/about/serial2/#comment-328613</guid>
		<description>@Lost:

The sample program is in the CHAP12 folder of the source CD. Have you checked there?

- Mark</description>
		<content:encoded><![CDATA[<p>@Lost:</p>
<p>The sample program is in the CHAP12 folder of the source CD. Have you checked there?</p>
<p>- Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>

