<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Java Serial Port (RxTx) Trail</title>
	<atom:link href="http://embeddedfreak.wordpress.com/java-serial-port-trail/feed/" rel="self" type="application/rss+xml" />
	<link>http://embeddedfreak.wordpress.com</link>
	<description>Daily embedded life tips and trick</description>
	<lastBuildDate>Sat, 14 Jul 2012 01:11:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: arduino 1.0 Fedora 16 java 類比讀取 &#124; Y12 Studio</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-1489</link>
		<dc:creator><![CDATA[arduino 1.0 Fedora 16 java 類比讀取 &#124; Y12 Studio]]></dc:creator>
		<pubDate>Wed, 15 Feb 2012 02:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-1489</guid>
		<description><![CDATA[[...] Java Serial Port (RxTx) Trail Embedded Freaks.. avrdude: Yikes! Invalid device signature. Arduino playground &#8211; Fedora RPM Fedora 16 rxtx 2.2 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Java Serial Port (RxTx) Trail Embedded Freaks.. avrdude: Yikes! Invalid device signature. Arduino playground &#8211; Fedora RPM Fedora 16 rxtx 2.2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhijit Aitwade</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-517</link>
		<dc:creator><![CDATA[Abhijit Aitwade]]></dc:creator>
		<pubDate>Fri, 19 Aug 2011 07:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-517</guid>
		<description><![CDATA[Hi

very nice RXTX code examples.]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>very nice RXTX code examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Java Serial Port (RxTx) Trail &#171; Yosua Onesimus Bookmarks</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-494</link>
		<dc:creator><![CDATA[Java Serial Port (RxTx) Trail &#171; Yosua Onesimus Bookmarks]]></dc:creator>
		<pubDate>Mon, 23 May 2011 14:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-494</guid>
		<description><![CDATA[[...] Java Serial Port (RxTx) Trail [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Java Serial Port (RxTx) Trail [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent Pascuzzi</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-489</link>
		<dc:creator><![CDATA[Vincent Pascuzzi]]></dc:creator>
		<pubDate>Tue, 10 May 2011 13:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-489</guid>
		<description><![CDATA[Hello Vlad, Adrien.

I have, since September of last year, discontinued the implementation of RxTx for use with Android, and instead have switched to Bluetooth as it is natively supported and appears to work well for my needs.

However, I do very much appreciate the follow-up replies and may be able to get around to try RxTx again in the future.

@adrien: Sorry, I have not been able to test the project from Vlad.  Hopefully I will get around to it soon.


All the best,

Vince.]]></description>
		<content:encoded><![CDATA[<p>Hello Vlad, Adrien.</p>
<p>I have, since September of last year, discontinued the implementation of RxTx for use with Android, and instead have switched to Bluetooth as it is natively supported and appears to work well for my needs.</p>
<p>However, I do very much appreciate the follow-up replies and may be able to get around to try RxTx again in the future.</p>
<p>@adrien: Sorry, I have not been able to test the project from Vlad.  Hopefully I will get around to it soon.</p>
<p>All the best,</p>
<p>Vince.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adrien</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-486</link>
		<dc:creator><![CDATA[adrien]]></dc:creator>
		<pubDate>Mon, 02 May 2011 10:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-486</guid>
		<description><![CDATA[Hi

Vincent Pascuzzi, did you find something for RxTx on ARM android? I am in the same situation, and the port of vladistan works but it hangs after a few sconds (out of memory i guess).]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Vincent Pascuzzi, did you find something for RxTx on ARM android? I am in the same situation, and the port of vladistan works but it hangs after a few sconds (out of memory i guess).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad Korolev</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-454</link>
		<dc:creator><![CDATA[Vlad Korolev]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 08:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-454</guid>
		<description><![CDATA[Vince,

   Take a look here http://v-lad.org/projects/gnu.io.android/,  I have ported the rxtx library to the Android device.  It works for me on the Motorolla Droid haven&#039;t tried any other devices.   The link above contains prebuilt native library and a link to the github repository that contains the source.]]></description>
		<content:encoded><![CDATA[<p>Vince,</p>
<p>   Take a look here <a href="http://v-lad.org/projects/gnu.io.android/" rel="nofollow">http://v-lad.org/projects/gnu.io.android/</a>,  I have ported the rxtx library to the Android device.  It works for me on the Motorolla Droid haven&#8217;t tried any other devices.   The link above contains prebuilt native library and a link to the github repository that contains the source.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muzammil</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-453</link>
		<dc:creator><![CDATA[Muzammil]]></dc:creator>
		<pubDate>Wed, 30 Mar 2011 23:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-453</guid>
		<description><![CDATA[Hi,

I have 2 serial ports on my computer and I am using RXTX to read and write to them *seperately*. My code snippet is as follows


                if ( (commPort1 instanceof SerialPort) &amp;&amp; (commPort2 instanceof SerialPort) )
                {
                    SerialPort serialPort1 = (SerialPort) commPort2;
                    serialPort1.setSerialPortParams(115200,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);

                    SerialPort serialPort2 = (SerialPort) commPort2;
                    serialPort2.setSerialPortParams(115200,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);

                    InputStream in_p1 = serialPort1.getInputStream();
                    OutputStream out_p1 = serialPort1.getOutputStream();

                    InputStream in_p2 = serialPort2.getInputStream();
                    OutputStream out_p2 = serialPort2.getOutputStream();

                    (new Thread(new SerialReader(&quot;MOTE-1&quot;, in_p1))).start();
                    System.out.println(&quot;Started serial reader 1&quot;);
                    (new Thread(new SerialWriter(&quot;MOTE-1&quot;, out_p1, write_to_mote))).start();
                    System.out.println(&quot;Started serial writer 1&quot;);

                    (new Thread(new SerialReader(&quot;MOTE-2&quot;,in_p2))).start();
                    System.out.println(&quot;Started serial reader 2&quot;);
                    (new Thread(new SerialWriter(&quot;MOTE-2&quot;, out_p2, write_to_mote2))).start();
                    System.out.println(&quot;Started serial writer 2&quot;);

                    System.out.println(&quot;Successfully connected to Cricket mote on ports &quot;+ port1Name +&quot; and &quot;+ port2Name);
                }

The SerialReader and SerialWriter are Runnable classes as defined in the example on the RXTX wiki.

The problem is that there seems to be an intermingling of the data read and written to the two ports. For example, a test byte-stream coming on port 1, will have some of the characters on the SerialReader of port 2 as well. Similarly, when I use the SerialWriter tp write some bytes to Port 1, I find that some (if not all of them) are being written on the SerialWriter of Port 2.

I guess it has to do with the thread-safe aspect of RXTX and I understand that it is not thread-safe.

Is there a possible solution for this ?

M]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have 2 serial ports on my computer and I am using RXTX to read and write to them *seperately*. My code snippet is as follows</p>
<p>                if ( (commPort1 instanceof SerialPort) &amp;&amp; (commPort2 instanceof SerialPort) )<br />
                {<br />
                    SerialPort serialPort1 = (SerialPort) commPort2;<br />
                    serialPort1.setSerialPortParams(115200,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);</p>
<p>                    SerialPort serialPort2 = (SerialPort) commPort2;<br />
                    serialPort2.setSerialPortParams(115200,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);</p>
<p>                    InputStream in_p1 = serialPort1.getInputStream();<br />
                    OutputStream out_p1 = serialPort1.getOutputStream();</p>
<p>                    InputStream in_p2 = serialPort2.getInputStream();<br />
                    OutputStream out_p2 = serialPort2.getOutputStream();</p>
<p>                    (new Thread(new SerialReader(&#8220;MOTE-1&#8243;, in_p1))).start();<br />
                    System.out.println(&#8220;Started serial reader 1&#8243;);<br />
                    (new Thread(new SerialWriter(&#8220;MOTE-1&#8243;, out_p1, write_to_mote))).start();<br />
                    System.out.println(&#8220;Started serial writer 1&#8243;);</p>
<p>                    (new Thread(new SerialReader(&#8220;MOTE-2&#8243;,in_p2))).start();<br />
                    System.out.println(&#8220;Started serial reader 2&#8243;);<br />
                    (new Thread(new SerialWriter(&#8220;MOTE-2&#8243;, out_p2, write_to_mote2))).start();<br />
                    System.out.println(&#8220;Started serial writer 2&#8243;);</p>
<p>                    System.out.println(&#8220;Successfully connected to Cricket mote on ports &#8220;+ port1Name +&#8221; and &#8220;+ port2Name);<br />
                }</p>
<p>The SerialReader and SerialWriter are Runnable classes as defined in the example on the RXTX wiki.</p>
<p>The problem is that there seems to be an intermingling of the data read and written to the two ports. For example, a test byte-stream coming on port 1, will have some of the characters on the SerialReader of port 2 as well. Similarly, when I use the SerialWriter tp write some bytes to Port 1, I find that some (if not all of them) are being written on the SerialWriter of Port 2.</p>
<p>I guess it has to do with the thread-safe aspect of RXTX and I understand that it is not thread-safe.</p>
<p>Is there a possible solution for this ?</p>
<p>M</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent Pascuzzi</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-318</link>
		<dc:creator><![CDATA[Vincent Pascuzzi]]></dc:creator>
		<pubDate>Fri, 03 Sep 2010 15:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-318</guid>
		<description><![CDATA[&quot;Notify me of follow-up comments via email&quot;...

Sorry, forgot to check that box!


Vince]]></description>
		<content:encoded><![CDATA[<p>&#8220;Notify me of follow-up comments via email&#8221;&#8230;</p>
<p>Sorry, forgot to check that box!</p>
<p>Vince</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent Pascuzzi</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-317</link>
		<dc:creator><![CDATA[Vincent Pascuzzi]]></dc:creator>
		<pubDate>Fri, 03 Sep 2010 15:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-317</guid>
		<description><![CDATA[Hello,

I have some questions for you regarding the porting of RxTx to ARM for use on an Android device.

I have downloaded the source, rxtx-2.1-7r2, but am unsure as to where to begin.  I have only tried using the prebuilt Android toolchain, as well as Codesourcery&#039;s arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu, but have had no luck.

I receive the error that &quot;C compiler is unable to create executables&quot;, and Google&#039;ing this has not been of any help.

Please, if you have any ideas as to how or where I should start, kindly advise.


Sincerely, all the best,

Vince.]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I have some questions for you regarding the porting of RxTx to ARM for use on an Android device.</p>
<p>I have downloaded the source, rxtx-2.1-7r2, but am unsure as to where to begin.  I have only tried using the prebuilt Android toolchain, as well as Codesourcery&#8217;s arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu, but have had no luck.</p>
<p>I receive the error that &#8220;C compiler is unable to create executables&#8221;, and Google&#8217;ing this has not been of any help.</p>
<p>Please, if you have any ideas as to how or where I should start, kindly advise.</p>
<p>Sincerely, all the best,</p>
<p>Vince.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre den Hamer</title>
		<link>http://embeddedfreak.wordpress.com/java-serial-port-trail/#comment-301</link>
		<dc:creator><![CDATA[Andre den Hamer]]></dc:creator>
		<pubDate>Thu, 12 Aug 2010 15:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://embeddedfreak.wordpress.com/?page_id=346#comment-301</guid>
		<description><![CDATA[Daniel,

I am not an experienced Java developer, but managed to create a webservice reading weight information (after writing a command to the output stream) from a serial port using RXTX on Windows XP OS. Now I have an issue when the serial port is disconnected from the weighbridge, writing the output stream causes the process to hang. It seems the IOException is not thrown or a different exception handling is needed? Do you have any comment on this?]]></description>
		<content:encoded><![CDATA[<p>Daniel,</p>
<p>I am not an experienced Java developer, but managed to create a webservice reading weight information (after writing a command to the output stream) from a serial port using RXTX on Windows XP OS. Now I have an issue when the serial port is disconnected from the weighbridge, writing the output stream causes the process to hang. It seems the IOException is not thrown or a different exception handling is needed? Do you have any comment on this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
