FrameID received wrong
Posted: Mon 20. May 2019, 15:25
Hello,
I am currently working with the PLIN api, in order to send and receive predefined messages through A PEAK. I have created an application that communicate with the peak. The peak is used as master and I have only one slave.
The communication works well, and I can send message and receive the response from my slave, and the datas contained the response are correct.
However, the frameID of the received message is wrong.
Here is my reception loop :
Have I missed something ?
Thank you for your help,
Best regards,
Elisabeth
I am currently working with the PLIN api, in order to send and receive predefined messages through A PEAK. I have created an application that communicate with the peak. The peak is used as master and I have only one slave.
The communication works well, and I can send message and receive the response from my slave, and the datas contained the response are correct.
However, the frameID of the received message is wrong.
Here is my reception loop :
Code: Select all
void linObject::readMessages()
{
TLINRcvMsg RcvMessage;
TLINError error = 1;
do{
error = LIN_Read(handlerClient, &RcvMessage);
if (RcvMessage.Type != mstStandard)
{
// qDebug() << "message type wrong, Type = " <<RcvMessage.Type;
continue;
}
if (error == 0)
{
qDebug() << "frame_id " << RcvMessage.FrameId;
LinProcessMsg(&RcvMessage);
}
}while (!(error & errRcvQueueEmpty));
}
Thank you for your help,
Best regards,
Elisabeth