Recieving more than 32Bytes data over CAN using UDS request

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Recieving more than 32Bytes data over CAN using UDS request

1,384 Views
Kallappa
Contributor III

Hi,

i am tring to recive the 4kb of file data via UDS service 36.
for this I am using the s32k148 board.
the current problem which i am facing is with data recive limit.
i am able to recive the 4kb of data via service 36 on board in 32 bytes chunks.
now i want to recive the data in the 128 Bytes chunk or more than that if posible.
i confirmed that i am sending the data to the CAN bus is in the form of 128b bytes chunks.
but board is not able to pick that much data.
so let me know if someware i need to do the configuration for reciving more data.

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.

0 Kudos
3 Replies

1,363 Views
Kallappa
Contributor III

Hello,

We are able to recieve the 4KB data as 128bytes consecutive frame for UDS service 36 by changing the UDS Network layer configuration parameter STmin from 0 to 25 as shown below,


/*uds netwrok layer cfg info */
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*/
50u, /*STmin*/
25u, /*N_As*/
25u, /*N_Ar*/
75u, /*N_Bs*/
50u, /*N_Br*/
0u, /*N_Cs*/
1500u, /*N_Cr*/
CanTpTxMsg, /*can tp tx*/
CanTpRxMsg, /*can tp rx*/
};

So now i want to recieve the 256bytes frame on hardware, so for this i tried by changing the 
STmin and N_Br values but hardware didn't recieved 256bytes frame
kindly let me if anything need to be changed with parameters

Thanks in advance 

Regards
Kallappa MB

 

0 Kudos

1,341 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Kallappa,

what kind of driver is that?

Regards,

Lukas

 

0 Kudos

1,323 Views
Kallappa
Contributor III

Hi Lukas,


Thanks for your responce
I am using the driver codes as follows for CAN, CANISO_TP and UDS services, Please find the attatched files 


Regards
Kallappa MB

0 Kudos