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. Trying to get serial communication working under linux.
Forum Updated to NodeBB v4.3 + New Features

Trying to get serial communication working under linux.

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 715 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.
  • B Offline
    B Offline
    Brian_l
    wrote on last edited by Brian_l
    #1

    Trying to get serial communication working under linux. It's working under win xpsp3, 7, 8, 10, and under emulation in linux. I really want to get it to work natively under linux.
    the baud rate is custom, at 8192. It's ODB1 serial comms.
    It just always hangs with the error. "Baud rate of serial port /dev/ttyUSB0 is set to 8193 instead of 8192 :divisor 2929.687500 unsupported"

    If I set the baud rate to 8193, which is within tolerance i get:
    Baud rate of serial port /dev/ttyUSB0 is set to 8193 instead of 8193:divisor 2929.329834 unsupported

    Using qt5.5

    How do I go about getting this to work. The hardware communicates perfectly in windows, and in linux under emulation. Is there some way to do this or am I out of luck?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by
      #2

      Please do not duplicate own posts. Same was https://forum.qt.io/topic/59975/strange-behavior-qtserialport-on-linux-with-custom-baud-rate

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Brian_l
        wrote on last edited by
        #3

        that was as helpful as the reply to the first post. I don't guess that there's even a point to ask on here if this is the type of responses I get. I guess that qt isn't as portable as I thought it was

        1 Reply Last reply
        0

        • Login

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