-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readerKWP not working for me #32
Comments
Great news! 🎉
Normally, the OBD9141 protocol doesn't support that. As far as I know the ECU is always the slave, and you have to actively request information and then listen for the response. I've not heard of any ECU that proactively sends information. If this answers your question, please close this issue. :) |
Thanks for your reply. |
Yeah, should be possible. Not sure if you need this library for that... it may help with the parsing though. Just enable the serial port with the right baud rate as set_port(true) would do. Then you can just read bytes from the serial port and those will be the bytes going over the kline. Depending on the timing of your particular vehicle you can probably just do a In short; set up the Rx line and serial port (see begin). Then use |
Hi @iwanders @jwdsoft, |
I don't think you're guaranteed to have |
@iwanders I tried 0xC2 but it didn't work. Let me brief you, what I am trying..... In
Please correct me. Thanks. |
But... So; you may need to read the |
Hi @iwanders yes, that the exact request that was sent. I just logged it to confirm what requesting is actually sending. This is when I am considering
This is when I consider
even though, in both the cases the buffer[0] comes same 128, but while reading msg_len from buffer[0], it gives '0'. |
Hmm, so the request you are sending is the start communication request; this one. But then for your system it returns more bytes than the expected 6 from here Searching for that Which implies that the length is the 4th bytes If we look at that url carefully, it's a txt from this wiki; perhaps Suzuki Diagnostic System requests aren't the same as KWP even though the physical bus is the same? That entire project could be of great help to you, given that it looks like you are dealing with this particular flavour? |
I'm using the readerKWP example which have initKWP and i'm setting init_success = true; so that in order for a request to be sent but on the logic analyzer nothing happens after the initKWP.
I also tried requestKWP and request but nothing work except the init.even if I make a request without the init it doesn't send anything.
I should mention that I'm only using a logic analyzer on the TX pin only I'm not using any tranceiver still waiting for them to come.
UPDATE: Solved the problem now it works without a problem.
can you suggest how can I receive without sending any request just keep receiving the frames.
The text was updated successfully, but these errors were encountered: