summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-04-04 00:17:23 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-04-11 12:41:43 +0200
commit09ca1df3717438701d0abda96acb0bbcb6dc7666 (patch)
treeea91309346cfba18733db0969a4f2a0354f7f767 /examples
parent3aa89d6f3d38ce0513d8698f2ae7b23f8c6edfb9 (diff)
Adding K2L CAN signals to toyota examples.
Change-Id: I147c439217dcc1f0709bd55f670ff1893cc77262 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'examples')
-rw-r--r--examples/toyota/signals.json63
1 files changed, 61 insertions, 2 deletions
diff --git a/examples/toyota/signals.json b/examples/toyota/signals.json
index f604224..e6260c1 100644
--- a/examples/toyota/signals.json
+++ b/examples/toyota/signals.json
@@ -44,9 +44,68 @@
"offset": 0,
"decoder": "decoder_t::booleanDecoder"}
}
- }
+ },
+ "0x3D9": {
+ "bus": "can0",
+ "signals": {
+ "PT_FuelLevelPct": {
+ "generic_name": "fuel.level",
+ "bit_position": 8,
+ "bit_size": 8,
+ "factor": 0.392157,
+ "offset": 0
+ },
+ "PT_EngineSpeed": {
+ "generic_name": "engine.speed",
+ "bit_position": 16,
+ "bit_size": 16,
+ "factor": 0.25,
+ "offset": 0
+ },
+ "PT_FuelLevelLow": {
+ "generic_name": "fuel.level.low",
+ "bit_position": 55,
+ "bit_size": 1,
+ "factor": 1,
+ "offset": 0,
+ "decoder": "decoder_t::booleanDecoder"
+ }
+ }
},
- "diagnostic_messages": [
+ "0x4D1": {
+ "bus": "can0",
+ "signals": {
+ "PT_EngineOilTempHigh": {
+ "generic_name": "engine.oil.temp.high",
+ "bit_position": 7,
+ "bit_size": 1,
+ "factor": 1,
+ "offset": 0,
+ "decoder": "decoder_t::booleanDecoder"
+ },
+ "PT_EngineOilTemp": {
+ "generic_name": "engine.oil.temp",
+ "bit_position": 16,
+ "bit_size": 8,
+ "factor": 1,
+ "offset": 0
+ }
+ }
+ },
+ "0x3E9": {
+ "bus": "can0",
+ "signals": {
+ "PT_VehicleAvgSpeed": {
+ "generic_name": "vehicle.average.speed",
+ "bit_position": 0,
+ "bit_size": 15,
+ "factor": 0.015625,
+ "offset": 0
+ }
+ }
+ }
+ },
+"diagnostic_messages": [
{
"bus": "can0",
"pid": 4,