Recieving more than 32Bytes data over CAN using UDS request

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Recieving more than 32Bytes data over CAN using UDS request

4,628 次查看
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 项奖励
回复
3 回复数

4,607 次查看
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 项奖励
回复

4,585 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Kallappa,

what kind of driver is that?

Regards,

Lukas

 

0 项奖励
回复

4,566 次查看
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 项奖励
回复