blob: 6d2a8d12e822cd6225023e82434450698672ae3a [file] [log] [blame]
Austin Schuh0de30f32020-12-06 12:44:28 -08001namespace aos.message_bridge;
2
3table RemoteMessage {
4 // Index into the channel datastructure in the log file header. This
5 // provides the data type.
6 channel_index:uint (id: 0);
7 // Time this message was sent on the monotonic clock in nanoseconds on this
8 // node.
9 monotonic_sent_time:long (id: 1);
10 // Time this message was sent on the realtime clock in nanoseconds on this
11 // node.
12 realtime_sent_time:long (id: 2);
13 // Index into the ipc queue of this message. This should start with 0 and
14 // always monotonically increment if no messages were ever lost. It will
15 // wrap at a multiple of the queue size.
16 queue_index:uint (id: 3);
17
18 // The nested flatbuffer.
19 data:[ubyte] (id: 4);
20
21 // Time this message was sent on the monotonic clock of the remote node in
22 // nanoseconds.
23 monotonic_remote_time:int64 = -9223372036854775808 (id: 5);
24 // Time this message was sent on the realtime clock of the remote node in
25 // nanoseconds.
26 realtime_remote_time:int64 = -9223372036854775808 (id: 6);
27 // Queue index of this message on the remote node.
28 remote_queue_index:uint32 = 4294967295 (id: 7);
Austin Schuh20ac95d2020-12-05 17:24:19 -080029
Austin Schuhcdd90272021-03-15 12:46:16 -070030 // Old UUID with a string UUID.
31 old_boot_uuid:string (id: 8);
32
Austin Schuh20ac95d2020-12-05 17:24:19 -080033 // UUID for this boot.
Austin Schuhcdd90272021-03-15 12:46:16 -070034 boot_uuid:[uint8] (id: 9);
Austin Schuh0de30f32020-12-06 12:44:28 -080035}
36
37root_type RemoteMessage;