Commit graph

23 commits

Author SHA1 Message Date
Robert Sammelson 1171380877
Fix lint issues and add comments
Lint issues:
- spelling problems
- iter instead of into_iter
2025-03-20 02:17:56 -04:00
Robert Sammelson db4b4d990d
Fix errors in doc comments 2023-05-31 21:31:01 -04:00
Robert Sammelson 13b9041511
Add the remaining service $00 PIDs up to $20
Also restructure the code to implement get_dtcs and get_dtc_info by
implementing GetObd2Values on the data types they return. This brings
them in line with every other getter function besides get_vin.
2023-05-21 01:53:12 -04:00
Robert Sammelson 5b20ac0ab9
Add more doc comments 2023-05-20 22:42:57 -04:00
Robert Sammelson fb35987b28
Switch to using macros for data retrieval commands 2023-05-20 22:42:57 -04:00
Robert Sammelson 8d521ff46d
Add more getter functions to the commands module 2023-05-20 22:42:57 -04:00
Robert Sammelson 97f17af790
Fix bug where OBD-II data was never encoded as hex 2023-05-20 22:42:57 -04:00
Robert Sammelson 3d7c88b4cb
Add README 2023-05-20 00:27:29 -04:00
Robert Sammelson 344f159170
Add ELM327 datasheet 2023-05-20 00:27:26 -04:00
Robert Sammelson 61dba62f5d
Reorganize commands module 2023-05-17 22:26:16 -04:00
Robert Sammelson cd0242b796
Split some files and add more documentation 2023-05-15 21:07:07 -04:00
Robert Sammelson 877722ed1b
Additional cleanup 2023-05-15 20:11:32 -04:00
Robert Sammelson 1b4ccd0dde
Documentation and organization improvements 2023-05-15 01:14:34 -04:00
Robert Sammelson 2a43bf94bd
Switch to a library and move main to an example 2023-05-14 23:41:18 -04:00
Robert Sammelson 559fbbaa12
Add get_rpm and get_speed 2023-05-14 23:16:05 -04:00
Robert Sammelson 4e8bfd38d1
Add baud rate search function 2023-05-14 23:16:04 -04:00
Robert Sammelson e6dc5e478a
Use trait for main device 2023-05-14 23:15:58 -04:00
Robert Sammelson cd82a02efb
Use traits for basic reader 2023-05-13 20:27:33 -04:00
Robert Sammelson 4d08a680d1
Add get_dtc_info 2023-05-13 20:04:37 -04:00
Robert Sammelson 4139dcea60
Add get_dtcs
- Required new function obd_mode_command for commands without PIDs
- Required new reading function for single line responses
- Multiple devices can respond to get_dtcs, so the responses are now
  vectors of the previous type - vectors of u8
2023-05-13 20:04:35 -04:00
Robert Sammelson 5231c3c9b7
Create general-purpose command functions
This will allow additional commands to be implemented more easily
2023-05-13 20:04:24 -04:00
Robert Sammelson 75acc9d4b3
Various improvements
- Remove line endings in get_line
- Check the echoed value in send_serial_cmd, instead of returning it
- Add flush function
2023-05-13 20:03:57 -04:00
Robert Sammelson 273c4159be
Initial commit 2023-05-12 19:07:59 -04:00