X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=README.mkd;h=dd63ab8d844786da14ee20aae4f2fd993b7f2e19;hb=c670ab64a078ed882fbf3647334f370bae1e8cf3;hp=5e962f04c95781348f859b2dbcb35ddbe7a1d77d;hpb=122d57e1c70b309542c1b5beb9e62d61726ccc02;p=apps%2Flow-level-can-service.git diff --git a/README.mkd b/README.mkd index 5e962f0..dd63ab8 100644 --- a/README.mkd +++ b/README.mkd @@ -9,17 +9,6 @@ This library doesn't assume anything about the source of your diagnostic message requests or underlying interface to the CAN bus. It uses dependency injection to give you complete control. -## OBD-II Basics - -TODO diagram out a request, response and error response - -* store the request arb id, mode, pid, and payload locally -* send a can message -* get all new can messages passed to it -* Check the incoming can message to see if it matches one of the standard ECU - response IDs, or our arb ID + 0x8 -* if it matches, parse the diagnostic response and call the callback - ## Usage First, create some shim functions to let this library use your lower level @@ -167,6 +156,18 @@ You can also see the test coverage if you have `lcov` installed and the $ BROWSER=google-chrome-stable make coverage +## OBD-II Basics + +TODO diagram out a request, response and error response + +* store the request arb id, mode, pid, and payload locally +* send a can message +* get all new can messages passed to it +* Check the incoming can message to see if it matches one of the standard ECU + response IDs, or our arb ID + 0x8 +* if it matches, parse the diagnostic response and call the callback + + ## Future Notes you're going to request a few PIDs over and over again at some frequency