A simple Arduino IoT example with Protobuf

BartExamples

Following this tutorial, you will learn how an IoT system works from the device through the server to the front end. It is a highly simplified example, so it is easy to understand. It uses google protobuf to serial data between the different stages. Using protobuf for IoT and servers is incredibly popular. The package we use for the server … Read More

A simple BLE example with Embedded Proto

BartExamples

Bluetooth Low Energy (BLE) is a popular network technology, especially for embedded and mobile devices. This example shows how you could use Embedded Proto to set up data structures to communicate between devices using BLE in a structured way. In this example, embedded proto is used to make messages for turning on a lead on the microcontroller and retrieving a … Read More

A simple UART example with Embedded Proto

BartExamples

Connecting a microcontroller with a PC is straightforward when using google protocol buffers. This example shows you how you could communicate over UART in a structured manner. Embedded Proto generates the embedded code while regular protoc code is used for the python desktop script. Commands are sent from the PC to the microcontroller. The chip will reply with a message … Read More

SD card logging example with Embedded Proto

BartExamples

This example shows you how to easily log data to a SD card with Embedded Proto. The advantage of using protobuf for logging data is that protobuf makes it easy to add new fields with new code revisions. This while it remains backwards compatible. Allowing you to read back old logs with new software. This is especially handing when still … Read More

Communincating Sensor data with Embedded Proto

BartExamples

This example shows how you could communicate over UART in a structured manner using protobuf on a FRDM-KE02Z development board. Embedded Proto is used to generate the embedded code while regular protoc code is used for the python desktop script. Commands are sent from the PC to the MCU. The MCU will in turn reply with a message to send … Read More

An Mbed OS ethernet example with Embedded Proto

BartExamples

This example shows how you could communicate over ethernet using TCP sockets in a structured manner to a development board. We are using Mbed OS, the RTOS operating system on the NUCLEO-F767ZI development board. To serialize data the we use Embedded Proto for generating the embedded code. As a demo server we use a Python script running on a desktop … Read More

Store data on NFC tags with Protobuf

BartExamples

This example shows how you could use protobuf to store structured data on NFC tags. Embedded Proto is used to make messages and store a name and clearance in an NFC tag, simulating access tags is a simple way. You can extend on this example for your own application easily. In the following we will take you through the setup … Read More

How to set up a project with Embedded Proto using Makefiles

BartExamples, Project Setup

Work smart and have code generated for you by your makefile! This example will demonstrate how to set up a project with Embedded Proto using Makefiles. All the *.proto files will automatically be detected; each source file code will be generated and built. The following topics will be addressed:1. Setup the project2. Initiating Embedded Proto3. Including all source files4. Automatically … Read More

How to set up a project with Embedded Proto using STM32CubeIDE

BartExamples, Project Setup

In this example we will demonstrate how to set up a project with Embedded Proto using STM32CubeIDE.The example below makes use of the NUCLEO-F466RE board, made by ST Microelectronics. The steps required to set up a project are:1. Start a new project in the IDE2. Initiate Embedded Proto3. Automatically convert *.proto files.4. Build the project In this example we assume … Read More