<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QSerialport Problem]]></title><description><![CDATA[<p dir="auto">Hi guys:<br />
I am using serialport on my target board(TI AM335x series), everything looked fine, it could open comport, receive data... etc. But... i found if i read more data later, the serialport will give me a "QSerialPort::ReadError" information and then my program(GUI) on target board haven't received any data. Does anyone know why??</p>
<p dir="auto">BTW, if i reconnected the comport, it became to work, but same problem would exist again.</p>
]]></description><link>https://forum.qt.io/topic/45528/qserialport-problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 13:58:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/45528.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Sep 2014 02:59:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QSerialport Problem on Tue, 16 Sep 2014 07:59:44 GMT]]></title><description><![CDATA[<p dir="auto">bq. Which Target serial port does your PC connect to for #3.1?</p>
<p dir="auto">I do not really sure what you asked.., I open the port on the target named "ttyUSB1".</p>
<p dir="auto">bq. Which Target serial port does your PC connect to for #3.2?</p>
<p dir="auto">Use telnet only require ip address, in this test, i used 172.22.100.xx to connect the target board.</p>
<p dir="auto">bq. Which Target serial port does your Program open?</p>
<p dir="auto">"ttyO0"</p>
<p dir="auto">bq. How do you see the error messages for #5.1?<br />
How do you see the error messages for #5.2?<br />
How do you see the error messages for #5.3?</p>
<p dir="auto">Use the API QserialPort provide.<br />
@<br />
MySerialPort-&gt;errorString();<br />
@</p>
<p dir="auto">bq. At first, you said you ran the “Terminal” example, then you said you ran a matrix GUI. Do you run both programs at the same time?</p>
<p dir="auto">Matrix GUI start to run when the board boot up and I have wrote some code that make "Terminal" can be showed on the screen through matrix syntax.</p>
]]></description><link>https://forum.qt.io/post/243976</link><guid isPermaLink="true">https://forum.qt.io/post/243976</guid><dc:creator><![CDATA[Ivan1120]]></dc:creator><pubDate>Tue, 16 Sep 2014 07:59:44 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Tue, 16 Sep 2014 07:37:38 GMT]]></title><description><![CDATA[<p dir="auto">Ok, here is what I understand so far:</p>
<h1>Your Target has a Touchscreen.</h1>
<h1>Your PC is connected to your Target using serial ports.</h1>
<h1>You use your PC to control your Target in the following different ways:</h1>
<h2>You open minicom on your PC, and use minicom to connect to your Target.</h2>
<h2>You open telnet on your PC, and use telnet to connect to your Target.</h2>
<h1>You built the Qt Terminal Example Program to run on your Target.</h1>
<h1>You tried to launch your Program in the following different ways:</h1>
<h2>You type a command into minicom (see #3.1) to launch the Program. Using this method, your Program produces no errors.</h2>
<h2>You type a command into telnet (see #3.2) to launch the Program. Using this method, your Program produces "Resource temporarily unavailable" errors.</h2>
<h2>You tap an icon on the Touchscreen to launch the Program. Using this method, your Program produces "Resource temporarily unavailable" errors.</h2>
<p dir="auto">Is this correct? If so, please tell us:</p>
<ul>
<li>Which Target serial port does your PC connect to for #3.1?</li>
<li>Which Target serial port does your PC connect to for #3.2?</li>
<li>Which Target serial port does your Program open?</li>
<li>How do you see the error messages for #5.1?</li>
<li>How do you see the error messages for #5.2?</li>
<li>How do you see the error messages for #5.3?</li>
<li>At first, you said you ran the "Terminal" example, then you said you ran a matrix GUI. Do you run both programs at the same time?</li>
</ul>
<p dir="auto">[quote author="Ivan1120" date="1410743901"]If this was a bug ,why the official have not fixed it, I thought this is a big problem. [/quote]Note that I said you <em>might</em> be seeing this bug. It could be the same issue, or it could be something different. The bug I mentioned is rare. It doesn't affect most people.</p>
]]></description><link>https://forum.qt.io/post/243969</link><guid isPermaLink="true">https://forum.qt.io/post/243969</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Tue, 16 Sep 2014 07:37:38 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Mon, 15 Sep 2014 01:18:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I used minicom to run my Qt program but I also could run my Qt program from the touch screen, because it using matrix syntax that could show my program on the GUI. In my experiment, there were two different results if I used forementioned two methods to run my Qt program. For using minicom to run my Qt program, there are no error and warning on my Qt Program which would used QSerialPort, but for the others, whatever methods(telnet, touchscreen.. etc) I used to run my Qt program, it always would get the error message like "Resource temporarily unavailable". If this was a bug ,why the official have not fixed it, I thought this is a big problem.</p>
]]></description><link>https://forum.qt.io/post/243821</link><guid isPermaLink="true">https://forum.qt.io/post/243821</guid><dc:creator><![CDATA[Ivan1120]]></dc:creator><pubDate>Mon, 15 Sep 2014 01:18:21 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Sun, 14 Sep 2014 00:56:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">[quote author="Ivan1120" date="1409812270"]I don't understand the bug of blog u mentioned....[/quote]There is a bug in QSerialPort. Sometimes, when reading data, QSerialPort returns a "Resource temporarily unavailable" error, even if the resource is available.</p>
<p dir="auto">I still don't fully understand how you have set up your system: Did you use minicom to run your Qt program? Or did you use minicom to read data from your serial port?</p>
]]></description><link>https://forum.qt.io/post/243730</link><guid isPermaLink="true">https://forum.qt.io/post/243730</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Sun, 14 Sep 2014 00:56:08 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Thu, 04 Sep 2014 07:40:45 GMT]]></title><description><![CDATA[<p dir="auto">1.I'm using Qt 4.8.4, but i take the QSerialport project from Qt5.3.1. It could pass compilation and it also work well on my host computer.<br />
2."execute my program" means run it. for example if i want to run my program from "minicom", i should give a command like "./terminal" and if it's from touch screen, i just press the icon and my program will start to run, just like u play ur app on ur smartphone.<br />
3.yes</p>
]]></description><link>https://forum.qt.io/post/242479</link><guid isPermaLink="true">https://forum.qt.io/post/242479</guid><dc:creator><![CDATA[Ivan1120]]></dc:creator><pubDate>Thu, 04 Sep 2014 07:40:45 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Thu, 04 Sep 2014 07:22:21 GMT]]></title><description><![CDATA[<h1>What version of Qt are you using?</h1>
<h1>Can you describe what you mean by "execute my program"? How do you use a touchscreen and minicom to "execute" the program?</h1>
<h1>When you said "Terminal" example, do you mean "this one":<a href="http://qt-project.org/doc/qt-5/qtserialport-terminal-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/qtserialport-terminal-example.html</a>?</h1>
]]></description><link>https://forum.qt.io/post/242475</link><guid isPermaLink="true">https://forum.qt.io/post/242475</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Thu, 04 Sep 2014 07:22:21 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Thu, 04 Sep 2014 06:31:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi:<br />
u can refer to example named "Terminal". So.....if this is a bug, it means i can't execute my program from touchscreen and should be executed from minicom?? I don't understand the bug of blog u mentioned....</p>
]]></description><link>https://forum.qt.io/post/242462</link><guid isPermaLink="true">https://forum.qt.io/post/242462</guid><dc:creator><![CDATA[Ivan1120]]></dc:creator><pubDate>Thu, 04 Sep 2014 06:31:10 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Thu, 04 Sep 2014 04:22:57 GMT]]></title><description><![CDATA[<p dir="auto">What version of Qt are you using? Does this still happen with Qt 5.3.1?</p>
<p dir="auto">It might be related to "this bug":<a href="https://codereview.qt-project.org/#/c/85414/" target="_blank" rel="noopener noreferrer nofollow ugc">https://codereview.qt-project.org/#/c/85414/</a> which doesn't look like it has been fixed yet... :(</p>
<p dir="auto">But in case it's not a Qt bug, could you show us your serial port code?</p>
]]></description><link>https://forum.qt.io/post/242446</link><guid isPermaLink="true">https://forum.qt.io/post/242446</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Thu, 04 Sep 2014 04:22:57 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Thu, 04 Sep 2014 03:40:20 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I know that, they are the same. When I sent more data, my program would have a error message like "Resource temporarily unavailable", if i didn't execute my program through "minicom".</p>
]]></description><link>https://forum.qt.io/post/242441</link><guid isPermaLink="true">https://forum.qt.io/post/242441</guid><dc:creator><![CDATA[Ivan1120]]></dc:creator><pubDate>Thu, 04 Sep 2014 03:40:20 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Thu, 04 Sep 2014 01:51:52 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Ivan1120" date="1409794053"]The difference between minicom and my program are only in Baudrate which in minicom is 115200 and my program is 38400.[/quote]The sender and receiver must both be configured to use the same baud rate.</p>
<p dir="auto">There are other parameters too. Check that you are using the same parameters on both the sender and the receiver:</p>
<ul>
<li>Baud rate</li>
<li>Data bits</li>
<li>Stop bits</li>
<li>Parity</li>
<li>Flow control</li>
<li>Termination enabled?</li>
<li>Termination character (if enabled)</li>
</ul>
]]></description><link>https://forum.qt.io/post/242433</link><guid isPermaLink="true">https://forum.qt.io/post/242433</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Thu, 04 Sep 2014 01:51:52 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Thu, 04 Sep 2014 01:27:33 GMT]]></title><description><![CDATA[<p dir="auto">The difference between minicom and my program are only in Baudrate which in minicom is 115200 and my program is 38400. I didn't know whether device need a initialization, i just guess. Because if my program was executed from minicom and everything is OK. I guess minicom did something i missed, but i still couldn't find any clues.</p>
]]></description><link>https://forum.qt.io/post/242432</link><guid isPermaLink="true">https://forum.qt.io/post/242432</guid><dc:creator><![CDATA[Ivan1120]]></dc:creator><pubDate>Thu, 04 Sep 2014 01:27:33 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Wed, 03 Sep 2014 20:08:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Then you should first check the parameters used by minicom to setup the serial port. Are you using exactly the same with your program ?</p>
<p dir="auto">Does the device connected to the serial port need an initialization ?</p>
]]></description><link>https://forum.qt.io/post/242376</link><guid isPermaLink="true">https://forum.qt.io/post/242376</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 03 Sep 2014 20:08:24 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Wed, 03 Sep 2014 16:57:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
it was really not fast, this situation also happen on the example that Qt website provided. I found a thing is interesting. If i used "minicom" to execute program then everything is ok, but used other tool like "telnet", my program would failed , the fail means like above description. Does anyone know how to resolve this problem?? I think maybe "minicom" initialize the serial port so that my program later would work.</p>
]]></description><link>https://forum.qt.io/post/242329</link><guid isPermaLink="true">https://forum.qt.io/post/242329</guid><dc:creator><![CDATA[Ivan1120]]></dc:creator><pubDate>Wed, 03 Sep 2014 16:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialport Problem on Wed, 03 Sep 2014 10:38:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">The problem is not immediately obvious to me, but are you reading fast enough? If not, you will get a buffer overflow.</p>
]]></description><link>https://forum.qt.io/post/242293</link><guid isPermaLink="true">https://forum.qt.io/post/242293</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Wed, 03 Sep 2014 10:38:18 GMT</pubDate></item></channel></rss>