Adding Car services in Android 9

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Car services in Android 9

1,250 Views
vinothkumars
Senior Contributor III

Dear NXP,

 

I am working on i.MX 6Quad SABRE-SD with Android 9. I am working on Vehicle data in BSP Side.

Please give me a guide how Vehicle data pass it Application and Application from CAN Stack for Android 9. If it possible please provide the proper document and your notes also always welcome.

And please let me know the important files and functions to add the new parameters.

Thanks & Regards,

VinothS.

Regards,
Vinothkumar Sekar
Labels (2)
17 Replies

662 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello

You can download the proper documentation about Android 9 on:

i.MX 6Quad SABRE Development Board | NXP 

Also Hope this link can helps:

https://community.nxp.com/message/1213601 

Regards

662 Views
vinothkumars
Senior Contributor III

Thank you Bio_ticfsl. 

Regards, 

VinothS.

Regards,
Vinothkumar Sekar
0 Kudos

662 Views
krishnan_ramesh
Contributor III

Hi vinothkumars‌,

Any update on this?

I am looking for the same insight on CAN communication.

Regards,
Ramesh

0 Kudos

662 Views
vinothkumars
Senior Contributor III

Hi Ramesh,

Now I am working on IMX8QM with Android Automotive and I added the Vehicle Data successfully.

The Communication like that,

Core-M4  -> FlexCAN -> Android -> VHAL -> CAR Service -> Application

Vinoth S,

Regards,
Vinothkumar Sekar

662 Views
krishnan_ramesh
Contributor III

Hi vinothkumars‌,

Core-M4  -> FlexCAN -> Android -> VHAL -> CAR Service -> Application

I am working on IMX8QXP, Can u share more insight on the path to each module in the android build? 

Like documents on communication between vehicle HAL and CAN also how the same data is passed up to the application layer?

If it supports where exactly are these implementations?

Regards,

Ramesh

0 Kudos

662 Views
vinothkumars
Senior Contributor III

Source Path,

Core M4 - source/vendor/nxp/mcu-sdk-auto (I ported FlexCAN driver in this SDK)

Android -> Kernel -> source/vendor/nxp-opensource/kernel_imx/drivers/net/can

VHAL -> source/hardware/interfaces/automotive/vehicle/2.0

Emulator -> source/vendor/nxp-opensource/imx/vehicle/impl/vhal_v2_0

CAR Service -> source/packages/services/Car/service

Kitchensink Application ->  source/packages/services/Car/tests/EmbeddedKitchenSinkApp

Note:

   You needs to port flexcan driver in M4 Core  

Thanks & Regards,

Vinoth S,

Regards,
Vinothkumar Sekar

662 Views
krishnan_ramesh
Contributor III

Hi vinothkumar s,

Thank you so much.

You mentioned porting can in M4. Did u port this source/vendor/nxp-opensource/kernel_imx/drivers/net/can or source/vendor/nxp/mcu-sdk-auto/<sdk>/devices/MIMX8QX/drivers/fsl_flexcan.c?

Did u find any example for these especially on CAN send/receive and also the communication between the can and android already exists?

I would also like to know how this path in detail M4->flexcan-> Android->vehicle HAL.

How is the communication happening between can in m4 core with android and VHAL?

Have you tried any of these examples driver_examples/flexcan  in M4 sdk.

I need to collect can messages and send them over to VHAL and up to the application.

Regards,

Ramesh

0 Kudos

662 Views
krishnan_ramesh
Contributor III

Hivinothkumar s,

 

Thank you for sharing it.

Have u tried to build communication by keeping CAN in cortex A and not moving it to M4?

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

 

Regards,

Ramesh

0 Kudos

662 Views
vinothkumars
Senior Contributor III

Hi Ramesh,

By default CAN connection using rpmsg bus (through M4 Core) to communicate with Application processor

Regards,

VInoth S,

Regards,
Vinothkumar Sekar
0 Kudos

662 Views
krishnan_ramesh
Contributor III

Hi vinothkumars,

Thank you for clearing the doubt.

Could you share steps to run 

Kitchensink Application ->  source/packages/services/Car/tests/EmbeddedKitchenSinkApp which u mentioned above?

Regards,
Ramesh

0 Kudos

662 Views
vinothkumars
Senior Contributor III

Hi,

We have kitchensink Application and this is the command used for launch the kitchensink application,

 

Path: packages/services/Car/tests/EmbeddedKitchenSinkApp

 

commands,

   am start -n com.google.android.car.kitchensink/com.google.android.car.kitchensink.KitchenSinkActivity

Regards,

Vinoth S,

Regards,
Vinothkumar Sekar
0 Kudos

662 Views
krishnan_ramesh
Contributor III

Hi vinothkumars‌,

Thank you.
Do you have any idea on steps to build just KitchenSinkApplication if we make any modifications?

Regards,

Ramesh

0 Kudos

662 Views
vinothkumars
Senior Contributor III

Hi,

Navigate to that application and give mm command
Regards,
Vinoth S,
Regards,
Vinothkumar Sekar
0 Kudos

662 Views
krishnan_ramesh
Contributor III

Hi vinoth‌,

Thank you.

Any idea on these tests <sources>/hardware/interfaces/vehicle/2.0/default/tests?

how do u build and test these?

Regards,

Ramesh

0 Kudos

662 Views
vinothkumars
Senior Contributor III

Same step only,

Navigate this path source/hardware/interfaces/automotive/vehicle/2.0/default/tests

and build by using mm command

Regards,

Vinoth S,

Regards,
Vinothkumar Sekar
0 Kudos

662 Views
vinothkumars
Senior Contributor III

If anyone know the JNI and HAL layer location in Android 9 ?

Regards,

VinothS.

Regards,
Vinothkumar Sekar
0 Kudos

662 Views
vinothkumars
Senior Contributor III

What is types.hal ?   Is it possible to add new parameters in this files ?

Regards,

VinothS.

Regards,
Vinothkumar Sekar
0 Kudos