Hi,
I am using Qt 4.8.1 in Ubuntu 12.04 with Qwt libraries installed. I also have the qextserialport libraries installed. I have modified the uartassistant example from code.google.com/p/qextserialport/‎ according to my needs. I am able to display (in a plainTextEdit) my embedded device SBC6845 terminal (I can access everything of it) inside the uartassistant through /dev/ttyS0 port from my host PC.
Now I had added a qwtPlot item to a tab widget in uartassisstant, with which I can plot data from .txt files placed in my host PC. But I need to access or use the same data coming to the plainTextEdit and use them in qwtPlot. So far, I have a few ideas:
1. Read from the /dev/ttyS0 directly and plot them in qwtPlot. Now the problem is actually implementing it, I have run out of options. How do I do it?
(One of the problems holding me is that ttyS0 has many other unnecessary data along with my required data. Is there some exclusive way of selecting only int data and plotting on qwtPlot? I have tried implementing other links i came by googling but most of them are too erroneous to proceed further.
2. Save whatever comes through /dev/ttyS0 in a txt file and then read my required data from it. But this isn't the realtime, so I am not so keen on proceeding with this approach.
So in short :
Is there any way to implement qwt and qextserialport in some way to get the desired output in real time?
I just need a push in the right direction, so I welcome any advice, links to more tutorials, docs or few lines of code explaining, if I am missing some point.
Thanks.
Bookmarks