commit db3535f2ebf8fc42592bc14f5d88ffbc8545acbc
parent 78232454aa24e855097d10e4b781fb4d69071b68
Author: Daniel Barlow <dan@telent.net>
Date: Sat, 22 Nov 2025 00:38:17 +0000
tidy more
Diffstat:
| M | notes.md | | | 65 | +++++++++++++++++++++++++++-------------------------------------- |
1 file changed, 27 insertions(+), 38 deletions(-)
diff --git a/notes.md b/notes.md
@@ -101,6 +101,29 @@ https://www.m0agx.eu/reading-obd2-data-without-elm327-part-2-k-line.html
# Data available
+## CBR125R
+
+there is data in tables 0 0x11 0x20 0x61 0x70 0xd0 0xd1
+
+- 0x0 has values [1, 0, c6, 1, 2, 1, 0 ..... ]
+- 0x11 has values [0 0 6 0 ff a ff a f1 a8 ff ff 7f 0 0 0 80 93 5a 37 8f]
+ and matches the 0x11 table for cb600f pc41 in
+https://gonzos.net/projects/wp-content/uploads/2015/09/Honda-data-tables.pdf
+
+[ we've only tested battery voltage but the others are not obviously wrong)
+
+- 0x20 has values [ff, 80, 0, 0, 0, 0 .....]
+- 0x61 is [0 0 1a 0 9c 3e a3 3c 93 64 ff ff 3f 0 0 0 80 0 c2 4b 7d]
+and is _not_ a copy of 0x11 as it was in the cb600f
+- 0x70 has values [bc, 80, 0 .....]
+- 0xd0 [87, 12*0, ff, 6*0]
+- 0xd1 [2, 0, 0, 0, 4, 1, 0 ...]
+
+0x20 and 0x70 look similar but not the same
+
+
+## exporting
+
What BLE shall we publish?
From https://gonzos.net/projects/wp-content/uploads/2015/09/Honda-data-tables.pdf
@@ -133,28 +156,6 @@ later without having to change clients
... etc
-## CBR125R
-
-there is data in tables 0 0x11 0x20 0x61 0x70 0xd0 0xd1
-
-- 0x0 has values [1, 0, c6, 1, 2, 1, 0 ..... ]
-- 0x11 has values [0 0 6 0 ff a ff a f1 a8 ff ff 7f 0 0 0 80 93 5a 37 8f]
- and matches the 0x11 table for cb600f pc41 in
-https://gonzos.net/projects/wp-content/uploads/2015/09/Honda-data-tables.pdf
-
-[ we've only tested battery voltage but the others are not obviously wrong)
-
-- 0x20 has values [ff, 80, 0, 0, 0, 0 .....]
-- 0x61 is [0 0 1a 0 9c 3e a3 3c 93 64 ff ff 3f 0 0 0 80 0 c2 4b 7d]
-and is _not_ a copy of 0x11 as it was in the cb600f
-- 0x70 has values [bc, 80, 0 .....]
-- 0xd0 [87, 12*0, ff, 6*0]
-- 0xd1 [2, 0, 0, 0, 4, 1, 0 ...]
-
-0x20 and 0x70 look similar but not the same
-
-
-
We could independently source bank angle and acceleration/deceleration
if we use a board with an IMU, so consider adding them to the profile
@@ -182,13 +183,10 @@ some characteristics that exist:
- id: org.bluetooth.characteristic.boolean
0 = false, 1 = true
-is there any characteristic here that
-
-
specs of each characteristic are at
https://bitbucket.org/bluetooth-SIG/public/src/main/gss/
-A common practice is to choose a base UUID for the custom service and then increment the 3rd and 4th Most Significant Bytes (MSB) within the UUID of each included characteristic
+> A common practice is to choose a base UUID for the custom service and then increment the 3rd and 4th Most Significant Bytes (MSB) within the UUID of each included characteristic
@@ -196,15 +194,6 @@ A common practice is to choose a base UUID for the custom service and then incre
So far there is none. This is my first Rust program
-there is a loop
-in the loop
- poll the uart for some data tables, (re-)opening it if needed
- parse the tables into values
- update the ecu\_state with what we find
- wibble.publish(ecu\_state)
-
-so we need an instance of a struct to keep all the BLE stuffs
-together, and for it to have a publish() method
-
-and an instance of a struct to keep all the uart stuff
-together, and for it to have a publish() method
+We would like to make a stream that gets a value from the ecu each
+time it is called, and writes that value to the appropriate ble
+characteristic