Qt serial port baud rate

broken image
broken image

QObject::connect(&serial, SIGNAL(readyRead()), this,SLOT(fillDataBuffer())) I'll leave some code below:Ĭonst QSerialPort::BaudRate BAUDRATE = QSerialPort::Baud9600 Ĭonst QSerialPort::DataBits DATABITS = QSerialPort::Data8 Ĭonst QSerialPort::Parity PARITY = QSerialPort::NoParity Ĭonst QSerialPort::StopBits STOPBITS = QSerialPort::OneStop Ĭonst QSerialPort::FlowControl FLOWCONTROL = QSerialPort::NoFlowControl Can you guys help me to fix this? I would like to use 115200 baud rate, because I need a good trasmision speed at this project(Real time linear CCD). If, instead, I set the baud rate to 115200, I get only 20 values. If I set the serial baud rate to 9600, I get 220 values. Everything is working except that the arduino should send 800 values and the app receives less values than that.

broken image

After sending an specific signal to arduino, it starts to send to Qt app the data saved in the vector. My arduino reads values from the adc port and send them via serial port(values from 0 to 255). My Qt app does not recieve all the data sent by arduino - arduino I'll go right to the point.