This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: remote service

Part Number: TDA4VM

How does remote service receive requests from A72 on C66?  

在A72上使用appRemoteServiceRun函数,在C66的node上面怎么接收相应的核间通信请求呢?

  • 请看下面e2e工程师的回复:

    Your question is very broad. I am not sure what layer and which side you wanted to understand.

    The base IPC mechanism on K3 devices are all through the ti-rpmsg-char library in userspace, which is the interface for the rpmsg-char driver. A C66 would publish an end-point to A72 to create a rpmsg bus device at Linux kernel level. This is done in the appRemoteServiceInit() call using the PDK IPC API RPMessage_create() and RPMessage_announce().

    The published rpmsg device on the A72-side will probe the rpmsg-char driver and creates a /dev/rpmsg_ctrlX character device. A userspace application will open a file description (fd) to this character device, and uses the fd to read and write to the remote end-point. appRemoteServiceRun sends a message to an fd corresponding to your remoteproc. These fd is created during the appRemoteServiceInit() call.

  • 我能明白工程师说的意思,但是我想通过核间通信实现类似于中断的功能,即A72通过remote service向C66发布一条指令,在C66上应该如何捕获到这个指令呢?

  • 请问A72通过remote service向C66发布一条什么指令呢?

  • 我也没想特别明白,比如发一个变量?但是appRemoteServiceRun()这个API中好像也没有找到相应发送的api。
    仔细看了一下工程师的回复,是不是想法不太对,应该看一下IPC相关的内容呢?比如在A72上用Rpmsg_send()向C66发送一个变量,C66通过Rpmsg_recv()来接收并判断这个变量,来达到类似于中断控制的功能呢?
    非常感谢帮忙提问与解答!

  • 请问您是想了解用appRemoteServiceRun函数是否能达到类似Rpmsg_send(),Rpmsg_send()传递变量的功能?

  • 是的!核间通信都有哪些方式可以实现?多谢多谢!!!

  • 我把您的问题发到e2e上,请关注下面帖子的回复。
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1032141/tda4vm-how-does-remote-service-receive-requests-from-a72-on-c66

    Yes, it should be possible.

    Please see the details on IPC example in Vision Apps that using the VisionApps level API on both A72 and remoteprocs. 

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/07_03_00_07/exports/docs/vision_apps/docs/user_guide/group_apps_utilities_app_ipc.html





  • 好的,多谢多谢!!!

  • 不客气~