0x8deadf00d / obd2net Goto Github PK
View Code? Open in Web Editor NEW.NET library for interacting with the OBDI and OBDII interface of vehicles
License: MIT License
.NET library for interacting with the OBDI and OBDII interface of vehicles
License: MIT License
mostey, mas
I tried getting the DTC's from OBDII Simulator, but it throws an exception.
The exception occurs at Vehicle.cs:line 163
because the byte array is not long enough. (6 bytes, but it tries to copy 2x 3 bytes starting from index 1 as far as i can see right now.)
Havent read into that part of the protocol yet, so not be able to fix it at this time. Maybe someone can drop an suggestion on why this happens and i'm happy to create a pull request later on.
This is a pretty cool project. I would like to make some additions. Would it be best to create a pull request or just do an honest to good fork?
Thanks so much for posting the code!
Seems to work fine.
To get it to work with my device, simply had to change BaudRate from default of 9600 to what my device uses: 38400.
Also, had to slightly change the RegEx in ControllerResponse... change the \n to \r.
your code: Match matchedPattern = Regex.Match(Raw, @"\n([0-9a-fA-F ]{5})([0-9a-fA-F ]+)\r\n>");
my code: Match matchedPattern = Regex.Match(Raw, @"\r([0-9a-fA-F ]{5})([0-9a-fA-F ]+)\r\r>");
Thanks again!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.