Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Add Mode 22 Support #199

Open
malibu1320 opened this issue Oct 12, 2016 · 6 comments
Open

Add Mode 22 Support #199

malibu1320 opened this issue Oct 12, 2016 · 6 comments

Comments

@malibu1320
Copy link

Would be nice to work on adding mode 22 support for enhanced PID's. I can assist.

@pires
Copy link
Owner

pires commented Oct 12, 2016

Please, go ahead. github.com/pires/obd-java-api is where it should be implemented.

@malibu1320
Copy link
Author

Do you have any guidance on what needs to be modified? I'm not seeing where the base request header is setup that needs changed. I have the source running locally and connected to my bench PCMs.

@pires
Copy link
Owner

pires commented Oct 12, 2016

Share here what you have and I'll take a look.

@malibu1320
Copy link
Author

Here's an example for GM vs standard OBD. You request on mode $22 with PID "119D". Now I need to see where to adjust analyzing the buffer for a valid response.

public BarometricPressureCommand() {super("01 33");} //Standard OBD PID
public GMBarometricPressureCommand() {super("22 11 9D"); //GM Mode $22 PID

@malibu1320
Copy link
Author

@pires , do you have any tips on how I can implement this? I tried adding new command classes as seen above and adjusting the buffer offset for finding the data but didn't have any luck (yet).

@pires
Copy link
Owner

pires commented Oct 25, 2016

Just override fillBuffer or readRawData, depending on your needs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants