summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-20 13:50:06 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-20 13:50:06 +0000
commit5620d308897249ad24dc44a93e0ad776cff37da2 (patch)
treed50961a4b29a43c1196daa04a41495138e6d9a1a
parent90f8a0888fadb946f183e10eb6a4181afd37ce86 (diff)
Adding instructions to monitor CAN traffic.
Change-Id: I80668eaccb25d8df07025aed3563bfc9d94a1271 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--docs/3-Usage.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/docs/3-Usage.md b/docs/3-Usage.md
index bee088e..00dace0 100644
--- a/docs/3-Usage.md
+++ b/docs/3-Usage.md
@@ -157,7 +157,7 @@ NOTICE: vcan0 device opened and reading {binding low-can}
NOTICE: Initialized 1/1 can bus device(s) {binding low-can}
```
-Then connect to the binding using previously installed ***AFB Websocket CLI*** tool :
+On another terminal, connect to the binding using previously installed ***AFB Websocket CLI*** tool:
```bash
# afb-client-demo ws://localhost:1234/api?token=
@@ -232,3 +232,19 @@ ON-REPLY 2:low-can/unsubscribe: {"jtype":"afb-reply","request":{"status":"succes
low-can unsubscribe { "event" : "doors*" }
ON-REPLY 3:low-can/unsubscribe: {"jtype":"afb-reply","request":{"status":"success"}}
```
+
+### Using CAN utils to monitor CAN activity
+
+You can watch CAN traffic and send custom CAN messages using can-utils preinstalled on AGL target.
+
+To watch watch going on a CAN bus use:
+
+```bash
+# candump can0
+```
+
+Send a custom message:
+
+```bash
+# cansend can0 ID#DDDDAAAATTTTAAAA
+```