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.
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
Thank you Bio_ticfsl.
Regards,
VinothS.
Hi vinothkumars,
Any update on this?
I am looking for the same insight on CAN communication.
Regards,
Ramesh
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,
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
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,
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
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
Hi Ramesh,
By default CAN connection using rpmsg bus (through M4 Core) to communicate with Application processor
Regards,
VInoth S,
Hi Vinothkumar,
I'm currently using AAOS version 13.1.0_1.1.0 on my i.MX 8QuadMax MEK and I'm interested in using M4 to read from CAN and then communicate to the application processor.
I found this thread and from what I could read this is the default flow. Is that right? If yes, could you share some references to that?
Thank you for your support.
Regards.
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
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,
Hi vinothkumars,
Thank you.
Do you have any idea on steps to build just KitchenSinkApplication if we make any modifications?
Regards,
Ramesh
Hi,
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
Same step only,
Navigate this path source/hardware/interfaces/automotive/vehicle/2.0/default/tests
and build by using mm command
Regards,
Vinoth S,
If anyone know the JNI and HAL layer location in Android 9 ?
Regards,
VinothS.
What is types.hal ? Is it possible to add new parameters in this files ?
Regards,
VinothS.