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. Problems with using the serialport in qt and c ++

Problems with using the serialport in qt and c ++

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 145 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.
  • A Offline
    A Offline
    AlsetPC
    wrote on 26 Jun 2021, 19:32 last edited by
    #1

    I want to use the serial connection with an arduino between 2 different windows of my program, but when I start the serialport in a window and it executes, it changes the window and stops working, showing me "it is not connected".

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Jun 2021, 22:07 last edited by
      #2

      Hi and welcome to devnet,

      Please show the code you are using.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 26 Jun 2021, 22:08 last edited by
        #3

        Hi
        make sure you dont have the serial port already open by arduino IDE.

        Also you need 2 comports where each app opens a different comport. they cannot open the same.

        You need to connect the 2 comports with a serial wire.

        You can also use software to allow such connection.
        http://com0com.sourceforge.net/

        1 Reply Last reply
        1

        1/3

        26 Jun 2021, 19:32

        • Login

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