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. QT to connect ft232 fifo mode
Forum Updated to NodeBB v4.3 + New Features

QT to connect ft232 fifo mode

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 3 Posters 938 Views 2 Watching
  • 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.
  • S Offline
    S Offline
    swansorter
    wrote on last edited by
    #1

    hai i am able to detect the ttyUSB0 usig

    USB=new QSerialPort("/dev/ttyUSB0");
    
    USB->open(QIODevice::ReadWrite);
    if (!USB->isOpen() )
    {
    
        // qDebug() <<"use sudo usermod -a -G dialout $USER";
        qDebug() <<"USB is NOT OPEN";
    
        //QCoreApplication::exit(0);
    }
    else
    {
        qDebug() <<"USB is OPEN";
    }
    

    but if i write value its not going to destinaton y?

    USB->write((const char *)sendbyte,7);
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What is sendbyte ?
      How do you determine it's not going to the target ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What is sendbyte ?
        How do you determine it's not going to the target ?

        S Offline
        S Offline
        swansorter
        wrote on last edited by swansorter
        #3

        @SGaist

        unsigned char sendbyte[7];
        sendbyte[0] = 0x43;
        sendbyte[1] = 0x41;
        sendbyte[2] = 0x50;
        sendbyte[3] = 0x54;
        sendbyte[4] = 0x55;
        sendbyte[5] = 0x52;
        sendbyte[6] = 0x45;
        

        In destination device we are giving acknowledge for command .its not coming.
        After opening the port its should generate clock which is not generating

        how to open a serial port in synchronus_fifo mode?

        1 Reply Last reply
        0
        • mrdebugM Offline
          mrdebugM Offline
          mrdebug
          wrote on last edited by
          #4

          baud rate, data length... Where are?
          setDataBits
          setBaudRate
          setStopBits
          setParity

          Need programmers to hire?
          www.labcsp.com
          www.denisgottardello.it
          GMT+1
          Skype: mrdebug

          S 1 Reply Last reply
          0
          • mrdebugM mrdebug

            baud rate, data length... Where are?
            setDataBits
            setBaudRate
            setStopBits
            setParity

            S Offline
            S Offline
            swansorter
            wrote on last edited by
            #5

            @mrdebug i am working on usb in fifo mode not usb to rs232 mode

            1 Reply Last reply
            0
            • mrdebugM Offline
              mrdebugM Offline
              mrdebug
              wrote on last edited by mrdebug
              #6

              Maybe you shouldn't use QSerialPort but something like this approach:
              https://ftdichip.com/wp-content/uploads/2020/08/TN_167_FIFO_Basics.pdf
              page 25

              Need programmers to hire?
              www.labcsp.com
              www.denisgottardello.it
              GMT+1
              Skype: mrdebug

              S 2 Replies Last reply
              0
              • mrdebugM mrdebug

                Maybe you shouldn't use QSerialPort but something like this approach:
                https://ftdichip.com/wp-content/uploads/2020/08/TN_167_FIFO_Basics.pdf
                page 25

                S Offline
                S Offline
                swansorter
                wrote on last edited by
                #7

                @mrdebug yes exactly

                1 Reply Last reply
                0
                • mrdebugM mrdebug

                  Maybe you shouldn't use QSerialPort but something like this approach:
                  https://ftdichip.com/wp-content/uploads/2020/08/TN_167_FIFO_Basics.pdf
                  page 25

                  S Offline
                  S Offline
                  swansorter
                  wrote on last edited by swansorter
                  #8

                  @mrdebug DO have any c++ library for that
                  i used same program

                  FT_HANDLE fthandle1;
                  FT_STATUS status;
                  status = FT_Open(0, &fthandle1);
                  if(status != FT_OK) 
                  {
                  printf("open devicestatus not ok %d\n", status);
                  return0;
                  }
                  

                  it showing failed to open.

                  1 Reply Last reply
                  0
                  • mrdebugM Offline
                    mrdebugM Offline
                    mrdebug
                    wrote on last edited by
                    #9

                    No but it is not so hard to write one. If you haven't got time to write it you can ask to someone to write it for you. Which operating system? If you need business help please send me an email.

                    Need programmers to hire?
                    www.labcsp.com
                    www.denisgottardello.it
                    GMT+1
                    Skype: mrdebug

                    S 1 Reply Last reply
                    0
                    • mrdebugM mrdebug

                      No but it is not so hard to write one. If you haven't got time to write it you can ask to someone to write it for you. Which operating system? If you need business help please send me an email.

                      S Offline
                      S Offline
                      swansorter
                      wrote on last edited by swansorter
                      #10

                      @mrdebug OS ubuntu16.04,
                      If you know how to do that please help me.

                      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