Communication between Vehicle HAL and CAN

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

Communication between Vehicle HAL and CAN

3,748 Views
shriyanayak1992
Contributor II

Hi Nxp developers,

I have tested CAN on IMX8 using canutils using this reference link on Android 10.

Simple CAN (FD) test on i.MX8QXP's MEK board | NXP Community .

I am working on IMX8QXP-MEK to build communication between Vehicle HAL and CAN now.

I went through vehicle Hal, It says vehicle HAL is connected to an emulator instead of a real vehicle network. I don't see any implementations wrt to communication with CAN.

Is there a way Vehicle HAL can receive CAN commands and send it up to the application layer?

Is this possible,Android(kernel net can driver)->VHAL->car service->application?

I want this in cortex A35. I don't want to move CAN to M4.

 

Regards,

Sriraksha

0 Kudos
Reply
3 Replies

3,582 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The FlexCAN on the i.MX 8QuadMax/8QuadXPlus supports CAN FD protocol. Details you can refer to Simple CAN (FD) test on i.MX8QXP's MEK board and the section 4.5 FlexCAN in the following document.

Regards

0 Kudos
Reply

3,582 Views
shriyanayak1992
Contributor II

Hi Bio_TICFSL‌,

Thank you for your reply. I have already verified Flex Can.

I am looking at something else now.

I was thinking as canutils talk to can driver and dump messages cant I do the same dumping & sending it to Vehicle HAL up to the android application?

I basically want to receive CAN frames in VHAL.

Also, any idea on running this vehicle emulator tools present here 

<sources>/packages/services/Car/tools/emulator or

<sources>/hardware/interfaces/automotive/vehicle/2.0/default/tests?

Regards,
Sriraksha

0 Kudos
Reply

3,472 Views
ConjureChris
Contributor I

Hi @shriyanayak1992 - I'm just about to start a similar project where I need to send up CAN Frames through the VHAL into Android.

What method did you decide upon to do this - are you using FlexCAN?

We will be using an i.MX8QuadMax MEK board (with baseboard for the CAN headers)

0 Kudos
Reply