Adding diagnostic_messages from diagnostic.json file
authorRomain Forlot <romain.forlot@iot.bzh>
Sun, 12 Mar 2017 18:24:54 +0000 (19:24 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 16 Mar 2017 16:10:41 +0000 (17:10 +0100)
from openxc example. The json is now a mixed example
between CAN messages and diagnostic messages.

Change-Id: I94ed5ac7d48e1fb1bb42b3df00d953d45ee0fc7d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
openxc_example/signals.json

index a305b95..8d9a2d2 100644 (file)
             },
             "handlers": ["handleSteeringWheelMessage"]
         }
-    }
+    },
+    "diagnostic_messages": [
+        {
+            "bus": "hs",
+            "id": 2015,
+            "mode": 1,
+            "pid": 12,
+            "frequency": 1,
+            "decoder": "handleObd2Pid"
+        },
+        {
+            "bus": "hs",
+            "id": 2016,
+            "mode": 2,
+            "pid": 12,
+            "frequency": 1
+        },
+        {
+            "bus": "hs",
+            "id": 2016,
+            "mode": 22,
+            "pid": 6,
+            "frequency": 1,
+            "decoder": "handleMyDiagRequest"
+        }
+    ]
 }