summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-10-05Reduce max response payload size. (#7)Zac Nelson1-1/+1
* reduce max payload size. see OpenXC vi-firmware issue #375 https://github.com/openxc/vi-firmware/issues/375. * update isotp dependency with reduce isotp message size.
2016-09-14Multi frame (#6)Zac Nelson2-7/+14
* increase payload size just for diag responses to support multi-frame responses. limited to 255 bytes for now. * not all diag requests with modes greater than 0xa have a 2 byte pid. need to check was pid_length should be based on the size of the pid. * remove line that does nothing. * add multi_frame field to DiagnosticResponse and update based on IsoTpMessage. Need this upstream for timeout calls specific to multi frame. * update isotp-c submodule. * update autoset_pid tests. check that pid_length is dynamically set based on pid value. adjust other tests to use 2-byte pid for enhanced diagnostic mode requests. * add test for multi-frame response. * update changelog.
2014-09-27Propagate errors from isotp-c when sending requests.Christopher Peplin1-2/+11
2014-09-27Fix rendering of message arb ID in strings - use hex, not decimal.Christopher Peplin1-4/+4
2014-03-26If an OBD-II PID is unrecognized, return fully parsed payload.Christopher Peplin1-1/+1
2014-03-14Force 0x3e "pid" (actually service ID) to be 1 byte.Christopher Peplin1-1/+1
2014-03-14Add NRC for incomplete messages.Christopher Peplin1-0/+1
2014-03-06Add a function to check if a request is completely sent.Christopher Peplin2-0/+11
2014-02-27Use proper format specifier for uint32_t.Christopher Peplin1-2/+3
2014-02-27Increase arb IDs to uint32_t to fit extended IDs.Christopher Peplin3-7/+21
2014-02-26Optionally split up preparing a diag request and actually sending it.Christopher Peplin2-33/+82
2014-02-19Quiet some misleading log messages.Christopher Peplin1-28/+10
2014-02-19Leave payload parsing to applications using this library.Christopher Peplin2-4/+2
2014-02-18Shorten the negative response code log message.Christopher Peplin1-1/+1
2014-02-14Only include PID in log output if request has one.Christopher Peplin1-3/+10
2014-02-14Show negative response codes in log output.Christopher Peplin1-6/+20
2014-02-14Add helper functions to render requests and responses as strings.Christopher Peplin2-35/+86
2014-02-14Clean up log output if a diag request has no payload.Christopher Peplin1-10/+19
2014-02-14Clarify when we are using int vs float and move decoders up a level.Christopher Peplin3-14/+21
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.
2014-02-14Add an option to pad outgoing CAN frames to 8 bytes (on by default).Christopher Peplin2-1/+7
Fixed #3.
2014-02-14Display mode in more recognizable hex format in log messages.Christopher Peplin1-2/+2
2014-01-24Add calculations for many OBD-II PID values.Christopher Peplin3-2/+39
2014-01-24Automatically set pid length for outgoing requests if not specified.Christopher Peplin2-7/+26
2014-01-24Remove a few resolved TODOs.Christopher Peplin1-5/+0
2014-01-24Wrap lines at 80 characters.Christopher Peplin1-6/+8
2014-01-20Don't try and rx broadcast response on all handles after one completes.Christopher Peplin1-2/+4
2014-01-20Add a function to parse the entire payload as a float.Christopher Peplin2-0/+9
2014-01-20Rename from simply obd2 to more general UDS (unified diagnostics).Christopher Peplin5-16/+16
Fixed #1.
2014-01-17Mark whether a PID is present in response.Christopher Peplin2-4/+8
2014-01-15Preserve compatibility with C89 mode.Christopher Peplin1-2/+4
2014-01-15Accept functional broadcast responses to a range of arb IDs.Christopher Peplin3-36/+54
2014-01-08Don't log incorrect negative response mode, just cap it at 0.Christopher Peplin1-2/+3
2014-01-08Reject a response that should have had PID but did not.Christopher Peplin1-1/+2
2014-01-08Add a function prototype for payloder decoders.Christopher Peplin1-0/+2
2014-01-07Add a placeholder function for decoding OBD-II PIDs.Christopher Peplin1-0/+3
2014-01-07Prep request handler to receive again if we got wrong mode or PID.Christopher Peplin1-3/+9
2014-01-07Don't complete requests if mode or PID didn't match.Christopher Peplin1-15/+13
2014-01-07Add a constant for the functional broadcast address 0x7df.Christopher Peplin1-0/+2
2014-01-07Don't walk off the end of the payload array.Christopher Peplin1-2/+1
2014-01-06Grab PID from response without dereffing a type punned pointer.Christopher Peplin1-4/+2
2014-01-06Mark request handle and response completed even if an error ocurred.Christopher Peplin1-1/+13
Add extra logging and a few notes.
2014-01-06Make sure not to use a negative payload length.Christopher Peplin1-1/+5
2014-01-06Initialize outgoing payload to 0.Christopher Peplin1-1/+1
2014-01-06Use new set_bitfield function to handle swapping endianness.Christopher Peplin1-4/+2
2014-01-05Add a TODO about flipping byte order.Christopher Peplin1-1/+2
2014-01-05Log when sending a new diagnositc request.Christopher Peplin1-0/+16
2014-01-05Add imports and return values to allow compiling with projects.Christopher Peplin2-3/+20
2014-01-03Document all remaining methods and data structures.Christopher Peplin3-50/+129
2014-01-03Remove a resolved TODO.Christopher Peplin1-5/+0
2014-01-03Split up header file for clarity.Christopher Peplin3-143/+238