Test 2 serial port on the embedded device



  • Hello,

    I have an embedded device, I want to test serial ports of device.
    There are 4 com ports and 1 console. I will use only 2 com ports.
    I will make a connection COM1 to COM2 (rx1 to tx1 and rx2 to tx2), so when I write something on COM1, I will read on COM2.
    For this test, I want to write an application.
    May you help me please about this?
    have no much more expreiance about qt creator. I am using Ubuntu 14.04 now.
    Thank you very much.



  • Check out the serialport examples. Sounds like you might want to combine a reader and writer example into a single program. I think it was just a typo, but you want to connect the transmit/receive of one serial port to the receive/transmit of the other serial port (e.g., tx1 -> rx2).

    Since it sounds like you're just starting out, I wouldn't worry about working with the serial ports yet and first just get your build environment set up. Are you developing on your embedded device or on another system?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.