Hello NXP Support,
I am able to recieve the UDS request frame[Service 36 with data length of 130= 128data bytes+SID+SNo] on S32K148 board over CAN bus with the following CAN-TP network layer configuration parameters
const tUdsNetLayerCfg g_stUdsNetLayerCfgInfo =
{
1u, /*called can tp period*/
RX_FUN_ID, /*can tp rx function ID*/
RX_PHY_ID, /*can tp rx phy ID*/
TX_DIAG_ID, /*can tp tx ID*/
0u, /*BS = block size*/
25u, /*STmin*/
25u, /*N_As*/
25u, /*N_Ar*/
75u, /*N_Bs*/
0u, /*N_Br*/
0u, /*N_Cs*/
1500u, /*N_Cr*/
CanTpTxMsg, /*can tp tx*/
CanTpRxMsg, /*can tp rx*/
};
but when i want to recieve UDS request[Service 36 ] of 256byte or more than that, it is leading to consective frame timeout so i can't recieve the whole 256bytes data at reciever node. i have tried with changing the values of N_cr, STmin and N_Br but it didn't get the expected data at reciever due to consective frame timeout
So kindly let me what is the cuase here or if something is missing in the parameter configuration.
and the source code for CAN_TP and UDS and CAN is attatched here
Setup :
RiPi is sending the data on CAN bus in chunks of 128 bytes via UDS 36 Service.
Rpi and NXP is connected via CAN BUS.
Thanks in advance
Regards,
Kallappa MB