Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Does the baud rate of ftdi for android support 921600?
Forum Updated to NodeBB v4.3 + New Features

Does the baud rate of ftdi for android support 921600?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 298 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 Extensions
      • Unsolved