readme.rst: Add rationale behind the chosen configuration
authornorly <ny-git@enpas.org>
Mon, 18 Feb 2019 20:38:04 +0000 (21:38 +0100)
committernorly <ny-git@enpas.org>
Mon, 18 Feb 2019 20:38:40 +0000 (21:38 +0100)
Plus minor fixes.

readme.rst

index 2023d07ab98b0de75b679decd308f3102a48e307..d2aced218fb744c4dfd48895c2590bf73660b3fc 100644 (file)
@@ -241,8 +241,8 @@ For this to function, the controller must be configured for 11 bit CAN
 ID sending mode (using "``AT PB``", see code or datasheet).
 
 
-Once a frame has been sent and wait-for-reply mode is on (ATR1,
-configured on listen-only=off), or when the reply timeout expires and
+Once a frame has been sent and wait-for-reply mode is on (``ATR1``,
+configured on ``listen-only=off``), or when the reply timeout expires and
 the driver sets the controller into monitoring mode (``ATMA``), the ELM327
 will send one line for each received CAN frame, consisting of CAN ID,
 DLC, and data::
@@ -268,6 +268,31 @@ incomplete) data frame::
 
 
 
+Rationale behind the chosen configuration
+------------------------------------------
+
+``AT E1``
+  Echo on
+
+  We need this to be able to get a prompt reliably.
+
+``AT S1``
+  Spaces on
+
+  We need this to distinguish 11/29 bit CAN addresses received.
+
+  Note:
+  We can usually do this using the line length (odd/even),
+  but this fails if the line is not transmitted fully to
+  the host (BUFFER FULL).
+
+``AT D1``
+  DLC on
+
+  We need this to tell the "length" of RTR frames.
+
+
+
 To Do list for future development
 ----------------------------------