iMX8QM android auto : How to get Vehicle Sensor value in Android app

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

iMX8QM android auto : How to get Vehicle Sensor value in Android app

Jump to solution
525 Views
ts_ki
Contributor II

hello,

I'm trying to add and communicate new Car properties like sensors with RPMSG between Android app (A72) and M4 core
using Rear view camera sample source in iMX8Qm Anroid Auto.
 

I figured out how to send data from the M4 core to the A72 core through RPMSG,

(android_build\vendor\nxp\mcu-sdk-auto\SDK_MEK-MIMX8QM\boards\mekmimx8qm\demo_apps\rear_view_camera)

but I haven't yet found how to receive and process new data sent by the M4 core

at the Android App level. 

I found that the already existing VEHICLE_GEAR was used in the cluster app, but the deeper part of getting data using the kernel driver was not found yet.

android_build\vendor\nxp-opensource\kernel_imx\drivers\mxc\vehicle 

vehicle_dummy_hw.c, vehicle_rpmsg_m4.c, vehicle_core.c

It seems that the above source is used at the Linux device driver level.
I want to know the source code to access the driver from to communicate in the Android app
for adding new Car proerty value like sensors.

I guess somewhere in android_build\packages\services\Car

or is invisible because of moduled?

Can you tell me where the source code is?

 

0 Kudos
Reply
1 Solution
491 Views
ts_ki
Contributor II

I found the source code thanks!

View solution in original post

0 Kudos
Reply
1 Reply
492 Views
ts_ki
Contributor II

I found the source code thanks!

0 Kudos
Reply