Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Test 2 serial port on the embedded device
Forum Updated to NodeBB v4.3 + New Features

Test 2 serial port on the embedded device

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 522 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    turqer
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved