# How can I parse and process Protobuf data?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-parse-and-process-protobuf-data/96343>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [September 24, 2024, 7:11am UTC](https://forum.inductiveautomation.com/t/how-can-i-parse-and-process-protobuf-data/96343 "2024-09-24T07:11:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![471421143](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/471421143/32/38211_2.png) [@471421143](https://forum.inductiveautomation.com/u/471421143)\
**Post date:** [September 24, 2024, 7:11am UTC](https://forum.inductiveautomation.com/t/how-can-i-parse-and-process-protobuf-data/96343/1 "2024-09-24T07:11:29Z")

</div>

![1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/a/3aba0de20ece574e2e7749cb6ab8ba73c02b7375.png)  
 ![2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/96335135859b5f8beae07e4adbd162b62fba028b.jpeg)  
 ![3](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4fa425ee5b14af36afe47a2f1d2c5a637c1a2cc5.png)

Hello,  
I am facing a problem and I need some help. A wireless vibration sensor sends Protobuf-encoded data to an Ignition Tag via MQTT, but the data is garbled because it is not in JSON format. How can I handle this? Is there anyone who has experience with this and can guide me? Thank you!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 24, 2024, 1:39pm UTC](https://forum.inductiveautomation.com/t/how-can-i-parse-and-process-protobuf-data/96343/2 "2024-09-24T13:39:26Z")

</div>

This doesn't appear to be Sparkplug.

I think at a minimum you would need the definition (`.proto` file) for these protobuf encodings. Even with that I'm not sure you'll be able to decode them because usually you generate code ahead of time from the definitions and then use _that_ to decode the payloads.

---

<div class="post-metadata">

**Author:** ![471421143](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/471421143/32/38211_2.png) [@471421143](https://forum.inductiveautomation.com/u/471421143)\
**Post date:** [September 27, 2024, 10:25am UTC](https://forum.inductiveautomation.com/t/how-can-i-parse-and-process-protobuf-data/96343/3 "2024-09-27T10:25:56Z")

</div>

谢谢您的快速回复 - 我会看看你建议的选项。

---

<div class="post-metadata">

**Author:** ![tamerplc](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamerplc](https://forum.inductiveautomation.com/u/tamerplc)\
**Post date:** [January 19, 2025, 1:03pm UTC](https://forum.inductiveautomation.com/t/how-can-i-parse-and-process-protobuf-data/96343/6 "2025-01-19T13:03:16Z")

</div>

Here guidance

> [@Protobuf data encoding](https://forum.inductiveautomation.com/t/protobuf-data-encoding/97572/7):
>
> it's working after getting some guidance from Ignition support team grinning Define the Protobuf schema that describes the structure of the data you want to serialize/deserialize. This schema file (.proto) defines the types and structure of the messages. Generate Java code from the Protobuf schema using a Protobuf compiler (protoc) to generate Java classes from the .proto schema file. The protoc compiler reads the .proto file and outputs Java source files corresponding to the schema. …
