Decode protobuf without proto files

3,100 views
Skip to first unread message

JENG IoT

unread,
May 13, 2022, 4:19:18 AM5/13/22
to Protocol Buffers

Hello,

I would like to decode protobuf data (IoT devices) and running into some decoding challenges. Can not use the Proto files due to environmental constraints (cloud / run-time)

1> Example of the protobuf data: 0a06282c0241057a10011805220d080510bea3f493062a03010c1628f1a6f493063002382b4001481482010f383634333233303532343736343839

2> Decoding online (e.g. via https://protobuf-decoder.netlify.app/works fine

3> Decoding via protoc.exe is not working

  • protoc.exe --decode_raw < measurement01_bin.txt (have tried HEX or BIN as input)
  • Result: Failed to parse input.
  • Question: What am I not doing correct?

4> Further I would like to add protobuf decoder in a cloud solution (in-memory) and ideally not be dependent on protoc (in my environment it is almost impossible to run an exe). So I am looking for a stand-alone parser / raw decoder in run-time and not using proto files.

  • Question: Do you have idea for me on how I could set this up?

Thanks a lot

Deanna Garcia

unread,
Aug 1, 2022, 5:22:17 PM8/1/22
to Protocol Buffers
Hello, sorry it took a while to get to this. If you're still having this problem I recommend you file an issue in the GitHub repository so we can gather more details and reproduce there.
Reply all
Reply to author
Forward
0 new messages