Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Does the baud rate of ftdi for android support 921600?
Qt 6.12 LTS is out! See what's new in the release blog

Does the baud rate of ftdi for android support 921600?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 644 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.
  • houyaweiH Offline
    houyaweiH Offline
    houyawei
    wrote on last edited by
    #1

    Does the baud rate of ftdi for android support 921600?

    I changed the baud rate to 921600, and the content I often read is empty.
    It is normal to use 921600 to read the ftdi device on Linux.

    Tested with this:https://github.com/HelloZB/QtAndroidFTDI

    1 Reply Last reply
    0
    • houyaweiH Offline
      houyaweiH Offline
      houyawei
      wrote on last edited by
      #2

      It is supported, just modify the size of the buffer area
      //QtFtdev.java

        String readData()
          {
              int readcount = ftDev.getQueueStatus();
              byte[] usbdata = new byte[readcount];
      
              if (ftDev.isOpen() == false){
                  lastReadLen = -1;
                  return new StringBuilder(0).toString();
              }
      
      
              if (readcount > 0){
      //            if(readcount > USB_DATA_BUFFER){
      //                readcount = USB_DATA_BUFFER;
      //            }
                  ftDev.read(usbdata, readcount);
              }
              lastReadLen = readcount;
      
              return byteArrayToHex(usbdata);
          }
      
      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
      • Unsolved