Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34212

Custom baud rate support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • 4.8.x, 5.4.0
    • 4.8.x
    • Serial Port
    • None
    • Qt 4.8.4, serial port stable from wiki, ubuntu 12.04.

      After opening the port, when trying to set custom baud rate (125000 in my case) the setBaudRate() returns true and no errors are reported, but when I transmit the frequency it is 115200 bps (tested with an oscilloscope). The baudRate() return a frequency of 125000 even after a write...

      I debugged the library internals (setBaudRate() of class QSerialPortPrivate in file qserialport_unix.cpp) and I see that the variables inputBaudRate and outputBaudRate of the class QSerialPortPrivateData are always set to 115200. The value of baud_base of the object currentSerialInfo is always set to 115200.

      I suppose that this issue depends on a physical limit of my hardware, but I don't know the frequency of the oscillator attached to my board, and this issue came also on my ubuntu desktop...

      I think that if there will be a limit in the hardware the software can never overcome it, but I expect that the library returns me an error when I try to set an unsupported baud rate.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kuzulis Denis Shienkov
            scordibella Stefano Cordibella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes