Re: [protobuf] Running Google Protocol Buffers on a RTOS

1,457 views
Skip to first unread message

Michael Haberler

unread,
Apr 5, 2013, 4:54:00 PM4/5/13
to Raghavendra Hegde, prot...@googlegroups.com

Am 04.04.2013 um 07:34 schrieb Raghavendra Hegde:

> Hi,
>
> I would like to build Google protocol buffer on FreeRTOS.
>
> Please let me know, is there any way to build GPB on RTOS.

I would suggest nanopb - http://koti.kapsi.fi/jpa/nanopb/

It has minimal platform requirements and even works in-kernel if that's whats needed

- Michael

>
> Regards,
> Raghavendra Hegde.
>
> --
> You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
> To post to this group, send email to prot...@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Raghavendra Hegde

unread,
Apr 8, 2013, 1:05:13 AM4/8/13
to prot...@googlegroups.com
Hi,
 
It would be great, if you can provide the compilation procedure for FreeRTOS
 
-Raghu

On Friday, 5 April 2013 14:45:33 UTC+5:30, Michael Haberler wrote:
Hi,

I would suggest looking into nanopb: http://code.google.com/p/nanopb/

It has minimal platform dependencies and actually runs fine within the Linux kernel if needed

- Michael


Am Donnerstag, 4. April 2013 07:34:32 UTC+2 schrieb Raghavendra Hegde:
Hi,
 
I would like to build Google protocol buffer on FreeRTOS.
 
Please let me know, is there any way to build GPB on RTOS.
 
Regards,
Raghavendra Hegde.

Michael Haberler

unread,
Apr 8, 2013, 1:18:22 AM4/8/13
to prot...@googlegroups.com

Am 08.04.2013 um 07:05 schrieb Raghavendra Hegde:

> Hi,
>
> It would be great, if you can provide the compilation procedure for FreeRTOS

no I cant, because I dont have any FreeRTOS applications running here, but I dont see why nanopb would need anything more than a C compiler and maybe some of the documented options

just pull nanopb, build it on linux, work through the examples and testcases and adapt one of those for FreeRTOS

the code and documentation are very thorough, and the author - Petteri - is very responsive, so you wont have many problems I guess

- Michael

>
> -Raghu
>
> On Friday, 5 April 2013 14:45:33 UTC+5:30, Michael Haberler wrote:
> Hi,
>
> I would suggest looking into nanopb: http://code.google.com/p/nanopb/
>
> It has minimal platform dependencies and actually runs fine within the Linux kernel if needed
>
> - Michael
>
> Am Donnerstag, 4. April 2013 07:34:32 UTC+2 schrieb Raghavendra Hegde:
> Hi,
>
> I would like to build Google protocol buffer on FreeRTOS.
>
> Please let me know, is there any way to build GPB on RTOS.
>
> Regards,
> Raghavendra Hegde.
>

Raghavendra Hegde

unread,
Apr 8, 2013, 2:33:57 AM4/8/13
to prot...@googlegroups.com
Hi,
 
Thanks for the quick response.
 
I have one question, to build nanopb protobuf-compiler, python-protobuf and libprotobuf-dev. These utilities are not there in FreeRTOS environment.
 
Could please provide info on this?
 
-Raghu

Raghavendra Hegde

unread,
Apr 8, 2013, 2:37:17 AM4/8/13
to prot...@googlegroups.com
Hi,
 
Thanks for the quick response.
 
I have one question, to build nanopb protobuf-compiler, python-protobuf and libprotobuf-dev required. These utilities are not there in FreeRTOS environment.
 
Could please provide info on this?
 
-Raghu

Michael Haberler

unread,
Apr 8, 2013, 2:55:57 AM4/8/13
to Raghavendra Hegde, prot...@googlegroups.com

Am 08.04.2013 um 08:37 schrieb Raghavendra Hegde:

> Hi,
>
> Thanks for the quick response.
>
> I have one question, to build nanopb protobuf-compiler, python-protobuf and libprotobuf-dev required. These utilities are not there in FreeRTOS environment.
>
> Could please provide info on this?

no, but the nan...@groups.google.com group can, I dont think you will find much help on the issue here

what you probably want is to install those tools on a linux host, generate the files there and compile for the target just like the rest of FreeRTOS

I was not aware the 'FreeRTOS environment' is self-hosted so I dont think it is a question of installing these tools on FreeRTOS

the only thing needed on the _target_ are the pb_encode.c and pb_decode.c files, but none of the tools

but then this is a bit off-topic here

- Michael

Raghavendra Hegde

unread,
Apr 8, 2013, 6:12:50 AM4/8/13
to prot...@googlegroups.com, Raghavendra Hegde, nan...@groups.google.com
Hi,
  
Is it possible to port nanopb on Microcontroller with single threaded application
If yes, please let me know the procedure port on Microcontroller
-Raghu
> To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages