From 98fa6bf0cd70f8fa200e3a31b28c03a8c587bfea Mon Sep 17 00:00:00 2001 From: dsouzahansenfrancis Date: Tue, 27 Oct 2015 12:15:35 -0400 Subject: [PATCH] Added Message Pack to payload format --- README.md | 7 +++ gen/cpp/openxc.pb | Bin 3304 -> 3322 bytes gen/cpp/openxc.pb.c | 2 +- gen/cpp/openxc.pb.h | 5 +- gen/java/com/openxc/BinaryMessages.java | 95 ++++++++++++++++---------------- gen/python/openxc_pb2.py | 74 +++++++++++++------------ openxc.proto | 1 + 7 files changed, 100 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index 8700cdfe..27f40c81 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,13 @@ method (any protobuf library should support this). The binary format is best if you need to maximize the amount of data that can be sent from the VI, trading off flexibility for efficiency. +## Message Pack +MessagePack is an efficient binary serialization format. It lets you exchange data +among multiple languages like JSON. But it's faster and smaller. Small integers are +encoded into a single byte, and typical short strings require only one extra byte +in addition to the strings themselves +For protocol specification visit https://github.com/msgpack/msgpack/blob/master/spec.md + ## Trace File Format An OpenXC vehicle trace file is a plaintext file that contains JSON objects, diff --git a/gen/cpp/openxc.pb b/gen/cpp/openxc.pb index 28afa0b954de343a7412f633247d07a4600de986..ff526e11cf2ea3af2a7456b8f54a12f0deb4d5dd 100644 GIT binary patch delta 47 zcmaDM`Ad?C>-$C~7B;3H#>wn#!HgD@quJC2h4{I+eO-ft9o=069G$%dm^U}ErLh43 DF^CJ$ delta 28 kcmew*`9hM3>*+=&7B