Lately I have been looking at Google’s format for interchanging data between multiple processes or Protocol Buffers. As you would expect for an inter-process data format Protocol Buffers are supported on different platforms and implementations are available for most popular programming languages. An interesting example of such a platform is the stm32l1 micro controller, which is supported by a third party protobuf implementation named nano pb.
One of the interesting feats of Google’s C++ protobuf implementation is that it supports deserializing arbitrary protobuf objects at run-time. As long as the proto definition is known at run time, the library is capable of parsing any message back into the individual fields from the proto definition. This is especially useful in situations where a program has to be able to handle proto definitions that are unknown at compile time. In this case the standard approach of using the proto compiler (protoc) to construct C++ class definitions, writing (de)serialization code and linking the resulting program with these definitions is obviously not possible.
This post addresses the lack of examples that demonstrate this ‘at run-time deserialization’ feature of Google’s C++ protobuf implementation. The example below was constructed by combining the protobuf unit tests with this example provided by cxwangyi. It has been tested with the v3.0.0-beta-3 from Google’s github repo. Use at your own discretion. The example should be self explanatory.
Continue reading “Google protobuf at run-time deserialization example in C++”
Ik hoop dat je reeds wist hoe diep mijn liefde voor jou loopt Lukas. Maar laat mij proberen om ze alsnog te verwoorden: Continue reading “Lofrede aan Lukas”
At IBCN – my research group – we rely on Click router for implementing and evaluating various Internet communication protocols. Click is a modular software router in C++ that was developed at the end of the last century by Eddie Kohler and others at MIT (the original research paper is available here). Apart from the IP routing functionality that ships with Click, we’ve added a CoAP implementation that has been widely tested at ETSI Plugtest interoperability events. We also have a working 6LoWPAN implementation that was tested in at last year’s summer IETF in Berlin. Lately, we’ve also added DTLS integration via CyaSSL. Continue reading “Cross compiling C projects with external dependencies: Click modular router and the Raspberry PI”
In the interest of computer science research (ahum) I have put online my bibliography with PDF downloads of my own papers (i.e. where I am the first author).
I would urge any researcher to do the same as there is little to gain by isolating your work behind a pay wall. Apart from pay walls, hosting your own bibliography also makes accepted but unpublished work accessible to others sooner!
This post marks the beginning of my blog where I plan to write on various topics related to my professional activities as well as my personal interests.
Professionally, I’m currently engaged in a PhD focused on the Internet of Things. I’m employed at the Mobile research group at the department of Information Technology (INTEC) at Ghent University under supervision of prof. Ingrid Moerman. My `academic career’ can be tracked via Google scholar and/or my university’s digital library profile page. As the Internet of Things is a rather broad domain, let me be more specific. Currently I’m focusing on the impact of standardization on the Internet of Things. I’ll write about the need for standardization in a separate post, as it would lead us to far for the purpose of this introductory post. In the future, you can also expect content about more generic topics related to computer science than just standardization though.
Apart from my academic ponderings, I also plan to write about some of my personal interests. Some of these are quite geeky, while others are more mundane. On the geek-side of the spectrum interests include communication networks/technology, Linux systems (and administration), web development and an occasional computer game. I’ll write about my home network setup in a later post, but for now I’ll say that I’m running a (non-native) dual stack and that this blog is hosted on a Raspberry PI with me at home. One consequence is that this blog is also reachable over IPv6 (try it)! More common interests include cycling (like most Belgians), (in-door) football, the classical piano, (fantasy) novels and hiking. I’ve included a list of my five latest bike rides on Strava on the right-hand side. As far as the piano goes, I’m currently enrolled in my second year at a local music school and am steadily improving (although I haven’t played for some time due to summer break).
Voilà, be sure to check back regularly for more content!