Hello everyone,

I'm now here, thank you for your forum,

I have a problem in receiving data via serial port (Raspberry pi)..
I use the QextSerialPort,
I'm sure that data sent by the other device is correct, i have in the oscilloscope the uart trames
but when i send this data, i receive a strange data
this is my code :


in this fuction , i call the slot function :

if(msgBoxConfirmerReception->exec() == QMessageBox::Yes){

portReception->setBaudRate(BAUD115200);
portReception->setFlowControl(FLOW_OFF);
portReception->setParity(PAR_NONE);
portReception->setDataBits(DATA_8);
portReception->setStopBits(STOP_1);

if(portReception->open(QIODevice::ReadOnly)==true){

connect(portReception, SIGNAL(readyRead()), this, SLOT(receiveTrames()));
qDebug()<<"listenning for data on";

}

else{
QMessageBox::critical(this,"ERREUR","le port UART n'est pas connecté");
qDebug()<<"device failed to open:"<<portReception->errorString();
portReception->close();
exit(1);

}




}

----------------------------------------------------

void AffichageTrames::receiveTrames()

{

StopAff->setEnabled(true);
QByteArray bytes;
int a = portReception->bytesAvailable();
bytes.resize(a);
qDebug() << "nb data availble = " <<a;
portReception->read(bytes.data(), bytes.size());
qDebug() << QString(bytes.toHex())<<"\n";

}

for exemple if i send a value = 1
I receive : fe (Hexadecimal)