Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Clarify that 'newline' in trace file may or may not have \r.
[apps/agl-service-can-low-level.git]
/
README.md
diff --git
a/README.md
b/README.md
index
0ad8942
..
f26c5d1
100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-34,8
+34,7
@@
discrete pieces of information in the measurement.
## Raw CAN Message format
## Raw CAN Message format
-An OpenXC vehicle interface may also output raw CAN messages. Each CAN message
-is sent as a JSON object, separated by newlines. The format of each object is:
+The format for a raw CAN message:
{"bus": 1, "id": 1234, "value": "0x12345678"}
{"bus": 1, "id": 1234, "value": "0x12345678"}
@@
-217,7
+216,8
@@
MAC address of an included Bluetooth module) into into the outgoing data stream.
## Trace File Format
An OpenXC vehicle trace file is a plaintext file that contains JSON objects,
## Trace File Format
An OpenXC vehicle trace file is a plaintext file that contains JSON objects,
-separated by newlines.
+separated by newlines (which may be either `\r\n` or `\n`, depending on the
+platform the trace file was recorded).
The first line may be a metadata object, although this is optional:
The first line may be a metadata object, although this is optional: