llcecan question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

llcecan question

61件の閲覧回数
ZHANGBOWEN
Contributor I

hi nxp team:

Test hardware: s32g274
Software version: bsp38

can setting: ip link set llcecan(0~3) type can \
bitrate 500000 \
sample-point 0.8 \
dbitrate 2000000 \
dsample-point 0.7 \
fd on
test case:
1: Vector v1640 can1 can be connected to can0~can3 of s32g, and can2 can be connected to llce_can0~llce_can3 of s32g
2: vector1640 sends can data, and s32g receives can data.
3: Check whether the sent and received data frames are consistent.
Test results:
1: Data frames are lost in llce_can0~llce_can3, but not in can0~can3.
The reference image is as follows
Figure 1: We can see that v1640 can1 sent a total of 1,823,705 frames, and in Figure 2, s32g274 can0~can3 received 1,823,705 frames without any frame loss.
We can observe that the total number of frames sent by v1640 can2 is 1,845,947, while the corresponding number of frames received by s32g274 llce_can0~llce_can3 is approximately 1,845,887. There is a loss of 60 frames.

When the CPU load is relatively high, the frame loss situation worsens. Is it possible to increase LLCE_CAN_MAX_RX_MB to reduce the cpu load. as the same time, How to solve the frame loss problem? Are there any optimization items?

ZHANGBOWEN_0-1780368083252.pngZHANGBOWEN_1-1780368090168.png

 

タグ(1)
0 件の賞賛
返信
2 返答(返信)

43件の閲覧回数
chenyin_h
NXP Employee
NXP Employee

Hello, @ZHANGBOWEN 

Thanks for your post.

From the description shared, seems the frames lost when system load is high.

I suggest trying to change the value of LLCE_CAN_MAX_RX_MB in

drivers/net/can/llce/llce_can_common.c,  with new value such as 32 or 64, then rebuild the kernel to have another test, to check if there are still issues existed in your test.

 

BR

Chenyin

0 件の賞賛
返信

2件の閲覧回数
ZHANGBOWEN
Contributor I

Hi,

Thanks for your reply.

After I modified LLCE_CAN_MAX_RX_MB to 64 and 128, the CPU load did not decrease or the decrease was not noticeable, making it difficult to observe. And the frame loss phenomenon of llcecan still exists

0 件の賞賛
返信