Does anyone know how to access serial port in qt-2.2.0? I want to write an application that has a touch screen button and on activating it my program should start reading serial port data and display it on the application window?sound good? please help.or any hint thank you david
QT-Serial port
Hi Guys, I have the same problem, is there a library to include? I read about Qextserialport? Is this the library which we should use? Serial Port in Linux is generally a file, and I think you could treat it in your code like a file? What about interrupt driven serial port reading in QT2.2? Is it implemented in these classes? Reading the serial port with a time out is very inefficient and not secure, therefore I am interested in interrupt driven solutions. I canīt believe that all the FriendlyArm owner/developers are using QT-Serial-Port with a reading time-out instead of Interrupt driven solutions. Anybody knows more about this stuff? Have a nice Sunday
Programming the serial port of Mini2440 is not different from programming for PC with Linux. The board has 3 serial ports /dev/ttySAC0 .. 3 and accepts up to 4 usb-to-serial adapters. They appear like /dev/ttyUSB0 .. 3. Of course you shoud have an USB hub to plug more than one adapter. Reading and writing data is like reading and writing to file. Open device /dev/ttyUSB0 (for example) and use read and write functions. Setting up the modes is a bit tricky. Use termios structure for it. Check this http://opengroup.org/onlinepubs/007908775/xsh/termios.h.html http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html http://tldp.org/HOWTO/Serial-Programming-HOWTO/
http://rapidshare.com/files/409529027/stivlib_serial_gpio_demo_25JUL2010... This is a demo application with sources. It can send/recieve serial data and also it controls GPIO pins. Files in the project are explained briefly here http://farm2440.blogspot.com/
Here is a Qt serial library, works on Win, WinCE, Linux (i386 and ARM), Mac... http://gitorious.org/inbiza-labs/qserialport Also, it is based on QIODevice for a native feel, with it you can, if you like, direct serial communication onto TCPIP with little no no effort. We have tested it on the mini2440 with Angstrom linux. It is LGPL also... enjoy.
http://rapidshare.com/files/409529027/stivlib_serial_gpio_demo_25JUL2010... it showing some error in MainWindow.ui file. It shows the error "An error has occured while reading the UI file at line 6,column 14: Unexpected element name".
i would like to use the inbiza-labs/qserialport library, using openembedded and the angstrom distribution. do i clone into a seperate repository and include the path to these files in my bitbake recipe OR do i add these files to my existing oe repository. thanks in advance