Page 1 of 1
Other than CAN, what about ISO and PWM?
Posted: Fri Oct 23, 2015 8:45 am
by Vince
Does the current adapter support those?
Thanks.
Re: Other than CAN, what about ISO and PWM?
Posted: Fri Oct 30, 2015 9:10 pm
by stanley
K-line is supported besides CAN.
Re: Other than CAN, what about ISO and PWM?
Posted: Thu Nov 19, 2015 5:23 am
by orisomio
Do we have to change parameters in the OBD library in order to communicate via K-line ? I really can not make it work.
Re: Other than CAN, what about ISO and PWM?
Posted: Fri Nov 20, 2015 10:17 am
by stanley
What car?
Re: Other than CAN, what about ISO and PWM?
Posted: Fri Nov 20, 2015 5:58 pm
by orisomio
Not a car it is a motorbike BMW 650GS right below i post a picture that shows my connections
- kline-Freematics-Arduino.jpg (95.78 KiB) Viewed 19328 times
.
I tried to test it with the example sketch RPM that is as follows : I added Serial.print commands to watch the flow . It seems that it stays to the [ while (!obd.init()); ].
#include <Arduino.h>
#include <Wire.h>
#include <OBD.h>
COBD obd;
void setup()
{
// we'll use the debug LED as output
pinMode(13, OUTPUT);
// start communication with OBD-II UART adapter
Serial.println("Initialize OBD");
obd.begin();
// initiate OBD-II connection until success
while (!obd.init());
Serial.println("OBD Ok");
}
void loop()
{
int value;
if (obd.read(PID_RPM, value)) {
// RPM is successfully read and its value stored in variable 'value'
// light on LED when RPM exceeds 3000
Serial.println(value);
digitalWrite(13, value > 3000 ? HIGH : LOW);
}
}
Any help from you is essential.
Re: Other than CAN, what about ISO and PWM?
Posted: Sun Nov 22, 2015 12:40 am
by orisomio
This what I am getting in debug mode :
OK
>OK
>[4]ATZ
-OBDUART v1.0
>[59]ATE0
-OK
>[112]ATL1
-OK
>[165]010C
-SEARCHING...
UNABLE TO CONNECT
Any suggestions ?
Re: Other than CAN, what about ISO and PWM?
Posted: Sun Nov 22, 2015 11:10 am
by stanley
How did you do this test? With a serial adapter? What car is connected?
Re: Other than CAN, what about ISO and PWM?
Posted: Mon Nov 23, 2015 10:07 am
by orisomio
UART OBDII, connected to a BMW 650GS diagnostics port as below :
- 12239478_969699389763916_43470240078153002_n.jpg (88.42 KiB) Viewed 19327 times
in debug mode from obd.cpp
Communication is 3 wire OBDII K-Line adhering to ISO 9141-2 physical layer and protocol ISO 14230 KWP2000 (Keyword Protocol 2000).
Re: Other than CAN, what about ISO and PWM?
Posted: Wed Nov 25, 2015 6:16 pm
by orisomio
stanley wrote:How did you do this test? With a serial adapter? What car is connected?
Will you reply to my previous post please ? (the one that has not been approved yet by you) I really need if I have to abort my project and look for other alternatives.