apps/low-level-can-service.git
10 years agoQuiet some misleading log messages.
Christopher Peplin [Wed, 19 Feb 2014 17:54:03 +0000 (12:54 -0500)]
Quiet some misleading log messages.

10 years agoLeave payload parsing to applications using this library.
Christopher Peplin [Wed, 19 Feb 2014 17:29:35 +0000 (12:29 -0500)]
Leave payload parsing to applications using this library.

10 years agoShorten the negative response code log message.
Christopher Peplin [Tue, 18 Feb 2014 22:29:08 +0000 (17:29 -0500)]
Shorten the negative response code log message.

10 years agoOnly include PID in log output if request has one.
Christopher Peplin [Sat, 15 Feb 2014 03:43:05 +0000 (22:43 -0500)]
Only include PID in log output if request has one.

10 years agoShow negative response codes in log output.
Christopher Peplin [Sat, 15 Feb 2014 03:41:21 +0000 (22:41 -0500)]
Show negative response codes in log output.

10 years agoAdd helper functions to render requests and responses as strings.
Christopher Peplin [Sat, 15 Feb 2014 03:15:31 +0000 (22:15 -0500)]
Add helper functions to render requests and responses as strings.

10 years agoClean up log output if a diag request has no payload.
Christopher Peplin [Sat, 15 Feb 2014 00:02:16 +0000 (19:02 -0500)]
Clean up log output if a diag request has no payload.

10 years agoClarify when we are using int vs float and move decoders up a level.
Christopher Peplin [Fri, 14 Feb 2014 23:35:24 +0000 (18:35 -0500)]
Clarify when we are using int vs float and move decoders up a level.

Fixed #4 - the Decoder function type signature actually belonged one
level higher, in the application, since there's no capability of
actually using it in this library at the moment.

10 years agoAdd an option to pad outgoing CAN frames to 8 bytes (on by default).
Christopher Peplin [Fri, 14 Feb 2014 23:06:40 +0000 (18:06 -0500)]
Add an option to pad outgoing CAN frames to 8 bytes (on by default).

Fixed #3.

10 years agoDisplay mode in more recognizable hex format in log messages.
Christopher Peplin [Fri, 14 Feb 2014 15:44:03 +0000 (10:44 -0500)]
Display mode in more recognizable hex format in log messages.

10 years agoAdd calculations for many OBD-II PID values.
Christopher Peplin [Sat, 25 Jan 2014 03:10:51 +0000 (22:10 -0500)]
Add calculations for many OBD-II PID values.

10 years agoAutomatically set pid length for outgoing requests if not specified.
Christopher Peplin [Sat, 25 Jan 2014 02:21:26 +0000 (21:21 -0500)]
Automatically set pid length for outgoing requests if not specified.

10 years agoRemove a few resolved TODOs.
Christopher Peplin [Sat, 25 Jan 2014 01:50:39 +0000 (20:50 -0500)]
Remove a few resolved TODOs.

10 years agoWrap lines at 80 characters.
Christopher Peplin [Sat, 25 Jan 2014 01:45:42 +0000 (20:45 -0500)]
Wrap lines at 80 characters.

10 years agoDon't try and rx broadcast response on all handles after one completes.
Christopher Peplin [Tue, 21 Jan 2014 02:41:25 +0000 (21:41 -0500)]
Don't try and rx broadcast response on all handles after one completes.

10 years agoAdd a function to parse the entire payload as a float.
Christopher Peplin [Mon, 20 Jan 2014 21:19:01 +0000 (16:19 -0500)]
Add a function to parse the entire payload as a float.

10 years agoRename from simply obd2 to more general UDS (unified diagnostics).
Christopher Peplin [Mon, 20 Jan 2014 20:22:27 +0000 (15:22 -0500)]
Rename from simply obd2 to more general UDS (unified diagnostics).

Fixed #1.

10 years agoMark whether a PID is present in response.
Christopher Peplin [Fri, 17 Jan 2014 20:56:34 +0000 (15:56 -0500)]
Mark whether a PID is present in response.

10 years agoPreserve compatibility with C89 mode.
Christopher Peplin [Wed, 15 Jan 2014 21:58:11 +0000 (16:58 -0500)]
Preserve compatibility with C89 mode.

10 years agoAccept functional broadcast responses to a range of arb IDs.
Christopher Peplin [Wed, 15 Jan 2014 21:49:22 +0000 (16:49 -0500)]
Accept functional broadcast responses to a range of arb IDs.

10 years agoDon't log incorrect negative response mode, just cap it at 0.
Christopher Peplin [Wed, 8 Jan 2014 22:27:54 +0000 (17:27 -0500)]
Don't log incorrect negative response mode, just cap it at 0.

10 years agoReject a response that should have had PID but did not.
Christopher Peplin [Wed, 8 Jan 2014 22:19:05 +0000 (17:19 -0500)]
Reject a response that should have had PID but did not.

10 years agoAdd a function prototype for payloder decoders.
Christopher Peplin [Wed, 8 Jan 2014 17:05:54 +0000 (12:05 -0500)]
Add a function prototype for payloder decoders.

10 years agoAdd a placeholder function for decoding OBD-II PIDs.
Christopher Peplin [Tue, 7 Jan 2014 22:34:33 +0000 (17:34 -0500)]
Add a placeholder function for decoding OBD-II PIDs.

10 years agoPrep request handler to receive again if we got wrong mode or PID.
Christopher Peplin [Tue, 7 Jan 2014 22:22:58 +0000 (17:22 -0500)]
Prep request handler to receive again if we got wrong mode or PID.

10 years agoDon't complete requests if mode or PID didn't match.
Christopher Peplin [Tue, 7 Jan 2014 22:12:05 +0000 (17:12 -0500)]
Don't complete requests if mode or PID didn't match.

10 years agoAdd a constant for the functional broadcast address 0x7df.
Christopher Peplin [Tue, 7 Jan 2014 21:54:54 +0000 (16:54 -0500)]
Add a constant for the functional broadcast address 0x7df.

10 years agoFix warnings, now that they're enabled!
Christopher Peplin [Tue, 7 Jan 2014 05:05:11 +0000 (00:05 -0500)]
Fix warnings, now that they're enabled!

10 years agoDon't walk off the end of the payload array.
Christopher Peplin [Tue, 7 Jan 2014 05:02:55 +0000 (00:02 -0500)]
Don't walk off the end of the payload array.

10 years agoDon't supress warnings when compiling, argh!
Christopher Peplin [Tue, 7 Jan 2014 05:02:44 +0000 (00:02 -0500)]
Don't supress warnings when compiling, argh!

10 years agoGrab PID from response without dereffing a type punned pointer.
Christopher Peplin [Tue, 7 Jan 2014 04:48:50 +0000 (23:48 -0500)]
Grab PID from response without dereffing a type punned pointer.

10 years agoMark request handle and response completed even if an error ocurred.
Christopher Peplin [Mon, 6 Jan 2014 23:22:06 +0000 (18:22 -0500)]
Mark request handle and response completed even if an error ocurred.

Add extra logging and a few notes.

10 years agoMake sure not to use a negative payload length.
Christopher Peplin [Mon, 6 Jan 2014 23:21:49 +0000 (18:21 -0500)]
Make sure not to use a negative payload length.

10 years agoInitialize outgoing payload to 0.
Christopher Peplin [Mon, 6 Jan 2014 20:40:57 +0000 (15:40 -0500)]
Initialize outgoing payload to 0.

10 years agoUse new set_bitfield function to handle swapping endianness.
Christopher Peplin [Mon, 6 Jan 2014 19:54:15 +0000 (14:54 -0500)]
Use new set_bitfield function to handle swapping endianness.

10 years agoAdd a TODO about flipping byte order.
Christopher Peplin [Sun, 5 Jan 2014 23:56:37 +0000 (18:56 -0500)]
Add a TODO about flipping byte order.

10 years agoLog when sending a new diagnositc request.
Christopher Peplin [Sun, 5 Jan 2014 23:56:31 +0000 (18:56 -0500)]
Log when sending a new diagnositc request.

10 years agoUpdate API in README to match actual code.
Christopher Peplin [Sun, 5 Jan 2014 23:56:20 +0000 (18:56 -0500)]
Update API in README to match actual code.

10 years agoAdd imports and return values to allow compiling with projects.
Christopher Peplin [Sun, 5 Jan 2014 20:44:16 +0000 (15:44 -0500)]
Add imports and return values to allow compiling with projects.

10 years agoAdd dependencies to README.
Christopher Peplin [Sat, 4 Jan 2014 03:34:41 +0000 (22:34 -0500)]
Add dependencies to README.

10 years agoMove notes lower down in README.
Christopher Peplin [Sat, 4 Jan 2014 03:31:32 +0000 (22:31 -0500)]
Move notes lower down in README.

10 years agoDocument all remaining methods and data structures.
Christopher Peplin [Sat, 4 Jan 2014 02:33:45 +0000 (21:33 -0500)]
Document all remaining methods and data structures.

10 years agoRemove a resolved TODO.
Christopher Peplin [Fri, 3 Jan 2014 21:55:01 +0000 (16:55 -0500)]
Remove a resolved TODO.

10 years agoSplit up header file for clarity.
Christopher Peplin [Fri, 3 Jan 2014 21:53:25 +0000 (16:53 -0500)]
Split up header file for clarity.

10 years agoGreatly expand API example in README.
Christopher Peplin [Fri, 3 Jan 2014 21:38:04 +0000 (16:38 -0500)]
Greatly expand API example in README.

10 years agoClean up the primary diag request handler.
Christopher Peplin [Fri, 3 Jan 2014 20:25:16 +0000 (15:25 -0500)]
Clean up the primary diag request handler.

10 years agoTest receiving a negative response.
Christopher Peplin [Fri, 3 Jan 2014 20:09:10 +0000 (15:09 -0500)]
Test receiving a negative response.

10 years agoTest receiving a CAN frame to an already completed message.
Christopher Peplin [Fri, 3 Jan 2014 19:54:02 +0000 (14:54 -0500)]
Test receiving a CAN frame to an already completed message.

10 years agoRemove a resolved TODO.
Christopher Peplin [Fri, 3 Jan 2014 19:52:17 +0000 (14:52 -0500)]
Remove a resolved TODO.

10 years agoTest sending payload with diagnostic request.
Christopher Peplin [Fri, 3 Jan 2014 19:51:42 +0000 (14:51 -0500)]
Test sending payload with diagnostic request.

10 years agoUpdate bitfield library version.
Christopher Peplin [Fri, 3 Jan 2014 19:44:58 +0000 (14:44 -0500)]
Update bitfield library version.

10 years agoCompile with test coverage calculation.
Christopher Peplin [Fri, 3 Jan 2014 19:44:32 +0000 (14:44 -0500)]
Compile with test coverage calculation.

10 years agoUpdate version of isotp-c library.
Christopher Peplin [Fri, 3 Jan 2014 19:40:46 +0000 (14:40 -0500)]
Update version of isotp-c library.

10 years agoTest basic diag request and response!
Christopher Peplin [Thu, 2 Jan 2014 22:15:24 +0000 (17:15 -0500)]
Test basic diag request and response!

10 years agoDraft implemenation of receiving and parsing single fram diag messages.
Christopher Peplin [Thu, 2 Jan 2014 20:28:06 +0000 (15:28 -0500)]
Draft implemenation of receiving and parsing single fram diag messages.

10 years agoMatch isotp receive_can_frame style, depend less on callbacks.
Christopher Peplin [Thu, 2 Jan 2014 17:00:52 +0000 (12:00 -0500)]
Match isotp receive_can_frame style, depend less on callbacks.

10 years agoDraft reworking of API.
Christopher Peplin [Tue, 31 Dec 2013 17:59:20 +0000 (12:59 -0500)]
Draft reworking of API.

10 years agoSpray a bunch of notes and code into the implementation file.
Christopher Peplin [Tue, 31 Dec 2013 02:06:57 +0000 (21:06 -0500)]
Spray a bunch of notes and code into the implementation file.

10 years agoAdd more failing tests before beginning implementation.
Christopher Peplin [Tue, 31 Dec 2013 01:49:23 +0000 (20:49 -0500)]
Add more failing tests before beginning implementation.

10 years agoAdd a failing test for a simple diag request/response.
Christopher Peplin [Tue, 31 Dec 2013 01:40:50 +0000 (20:40 -0500)]
Add a failing test for a simple diag request/response.

10 years agoAdd skeleton of the API and data structures.
Christopher Peplin [Mon, 30 Dec 2013 23:30:37 +0000 (18:30 -0500)]
Add skeleton of the API and data structures.

10 years agoInitial commit.
Christopher Peplin [Mon, 30 Dec 2013 20:25:32 +0000 (15:25 -0500)]
Initial commit.