nxp-mcuxpresso / rpmsg-lite

RPMsg implementation for small MCUs
BSD 3-Clause "New" or "Revised" License
235 stars 74 forks source link

Is it possible one core used as server and client at same time? #18

Closed swordligit closed 3 years ago

swordligit commented 3 years ago

I have two cores(call them A and B), using rpmsg-lite to communicate between them, core A has some peripheral(like UART) and core B mainly as DSP. When playing audio, IMO, core A used as client, and core B severed as server, but when printing trace, the role is changed, A as Server and B as client? So the A(or B) used as server and client at same time, is it possible? please give some advice. Thanks a lot.

Hadatko commented 3 years ago

Hi @swordligit , eRPC is using rpmsg-lite also for bidirectional communication.

swordligit commented 3 years ago

Thank you @Hadatko , will check the eRPC and run the examples.

Hadatko commented 3 years ago

What i wanted to say is that you can use it bidirectionaly. You are welcome. I don't see any example mentioned here. But if you would like to get rid of eRPC layer you can download simple rpmsg demo from NXP webpage directly https://mcuxpresso.nxp.com/en/welcome You can choose board based on rpmsg-lite port file. Based on port files you know supported boards.

MichalPrincNXP commented 3 years ago

Thanks, @Hadatko , and the link to the erpc project on Github is here: https://github.com/EmbeddedRPC/erpc

swordligit commented 3 years ago

Thanks @Hadatko @MichalPrincNXP, I know the RPMSG support bidirection, and I will not pass through the eRPC, my requirement is one core support client and server at same time.

swordligit commented 3 years ago

Oh, found an issue in eRPC site, https://github.com/EmbeddedRPC/erpc/issues/80 It is still open, but anyway will try to dig it.