QT to connect ft232 fifo mode
-
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); -
Hi,
What is sendbyte ?
How do you determine it's not going to the target ? -
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 generatinghow to open a serial port in synchronus_fifo mode?
-
@mrdebug i am working on usb in fifo mode not usb to rs232 mode
-
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 -
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@mrdebug yes exactly
-
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@mrdebug DO have any c++ library for that
i used same programFT_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.
-
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.
@mrdebug OS ubuntu16.04,
If you know how to do that please help me.