How to interpret a CAN message from the bus using CAN communication document..

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

How to interpret a CAN message from the bus using CAN communication document..

跳至解决方案
1,995 次查看
akhilranga
Contributor IV

Hello there,

i am trying to interface a CAN node (BMS) to the bus and using a other node (VCU) to process the data to actuate few LEDS based on the message. This is the target statement. 

I know how a CAN communicates in theory.  But in i need help in understanding the following message frame from the BMS CAN node

CAN message.JPG

And also please suggest how can i access this data using a s32k144 with S32DS IDE. 

Thank You.

I know this question is very vague. please ask me if anynoe require more detail explaination to understadn the question and help me. 

0 项奖励
回复
1 解答
1,981 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@akhilranga

       when you receive a frame with ID 0x03ABDCEF,the data length = 1,and data value = 0x0E,then you need to send a frame with ID 0x03ABDCEF,the data length = 8,and you need to fill data area  according to the data format.

Senlent_0-1666057877234.png

       I suggest you use CAN-Tool,for example:P-CAN or CANoe to test the frames send and received by each node first, and then combine them to test their functions.

 

for CAN FD setting, you can refer to the demo: flexcan_encrypted_s32k144,

flexcan_data_info_t dataInfo =
{
.data_length = 8U,
.msg_id_type = FLEXCAN_MSG_ID_EXT,
.enable_brs = true,
.fd_enable = true,
.fd_padding = 0U,
.is_remote = 0U
};

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,982 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@akhilranga

       when you receive a frame with ID 0x03ABDCEF,the data length = 1,and data value = 0x0E,then you need to send a frame with ID 0x03ABDCEF,the data length = 8,and you need to fill data area  according to the data format.

Senlent_0-1666057877234.png

       I suggest you use CAN-Tool,for example:P-CAN or CANoe to test the frames send and received by each node first, and then combine them to test their functions.

 

for CAN FD setting, you can refer to the demo: flexcan_encrypted_s32k144,

flexcan_data_info_t dataInfo =
{
.data_length = 8U,
.msg_id_type = FLEXCAN_MSG_ID_EXT,
.enable_brs = true,
.fd_enable = true,
.fd_padding = 0U,
.is_remote = 0U
};

 

0 项奖励
回复