Hello everybody,
I'm working with flatbuffers and really small payloads
and I am having some issues.<My problem is that I'm using flatbuffers for serialization/deserialization of standard can messages (8 bytes payload) and with the python implementation i have something that looks like an offset:
Timestamp: 0.000000 ID: 0341 S DLC: 12 06 00 00 00 00 00 11 00 27 00 12 00
DLC is the can's message payload size (can't be greater than 8), after that you can see the actual payload that starts with 06hex.
Timestamp: 0.000000 ID: 0101 S DLC: 8 05 00 00 00 00 50 00 00
Timestamp: 0.000000 ID: 0321 S DLC: 8 04 00 00 00 61 00 18 00
Same with those 2 more messages.
I can provide more details if needed, for now my question is simple: does flatbuffers add ANY payload overhead if using something like that for schema.fbs?:
struct HV_VOLTAGE {
pack_voltage: uint16;
bus_voltage: uint16;
max_cell_voltage: uint16;
min_cell_voltage: uint16;
}