RPC w/ nanoPb

974 views
Skip to first unread message

Spencer Barrett

unread,
Sep 4, 2018, 1:00:46 PM9/4/18
to nanopb
I am completing a RPC wrapper on top of nanoPb.  I looked and did not see anyone doing this?  Has this not been done yet?

From the .protoc file I am auto-generating the "C" code that creates:
 1) function to unpack a message header and get msg ID
 2) dispatch function that calls the that message's pb-decoder function
 3) Decoder that extracts arguments and calls the RPC stub function
 4) RPC stub function return results are packed via nano-pb into a reply message wrapped with a reply header

The host code to talk to the target leverages the GRPC framework to serialize/serialize messages. Just have to add header to message and send it out BLE/RS-232 port & then uses GRPC classes to decode msg.


Petteri Aimonen

unread,
Sep 4, 2018, 1:43:20 PM9/4/18
to nan...@googlegroups.com
Hi,

> I am completing a RPC wrapper on top of nanoPb. I looked and did not see
> anyone doing this? Has this not been done yet?

It's a quite common thing to do RPC with protobufs, but so far there
isn't a reusable RPC library on top of nanopb.

There is some action here:
https://github.com/nanopb/nanopb/pull/248

--
Petteri

Spencer Barrett

unread,
Sep 4, 2018, 2:54:26 PM9/4/18
to nanopb
That is from 18 months ago... so looks like project has been idle since then?

  -Spencer

Petteri Aimonen

unread,
Sep 5, 2018, 1:41:12 AM9/5/18
to nan...@googlegroups.com
Hi,

> That is from 18 months ago... so looks like project has been idle since
> then?

Well, the latest comments there are just from week ago. But yeah, people
have lot of stuff competing for their time.

--
Petteri
Reply all
Reply to author
Forward
0 new messages