From 62eb024d989037ae7f2ba86de8b68c826cb61ec9 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Sun, 12 Mar 2017 19:24:54 +0100 Subject: Adding diagnostic_messages from diagnostic.json file from openxc example. The json is now a mixed example between CAN messages and diagnostic messages. Change-Id: I94ed5ac7d48e1fb1bb42b3df00d953d45ee0fc7d Signed-off-by: Romain Forlot --- openxc_example/signals.json | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'openxc_example') diff --git a/openxc_example/signals.json b/openxc_example/signals.json index a305b959..8d9a2d24 100644 --- a/openxc_example/signals.json +++ b/openxc_example/signals.json @@ -66,5 +66,30 @@ }, "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" + } + ] } -- cgit 1.2.3-korg