Does the current adapter support those?
Thanks.
Other than CAN, what about ISO and PWM?
Re: Other than CAN, what about ISO and PWM?
K-line is supported besides CAN.
Re: Other than CAN, what about ISO and PWM?
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?
Not a car it is a motorbike BMW 650GS right below i post a picture that shows my connections
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.
.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?
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 ?
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?
How did you do this test? With a serial adapter? What car is connected?
Re: Other than CAN, what about ISO and PWM?
UART OBDII, connected to a BMW 650GS diagnostics port as below :
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).
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?
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.