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

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

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

跳至解决方案
1,059 次查看
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 项奖励
回复
1 解答
1,025 次查看
ts_ki
Contributor II

I found the source code thanks!

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,026 次查看
ts_ki
Contributor II

I found the source code thanks!

0 项奖励
回复