Other than CAN, what about ISO and PWM?

Inquiry and support for Freematics products
Post Reply
Vince
Posts: 5
Joined: Fri Oct 23, 2015 8:43 am

Other than CAN, what about ISO and PWM?

Post by Vince »

Does the current adapter support those?
Thanks.
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: Other than CAN, what about ISO and PWM?

Post by stanley »

K-line is supported besides CAN.
orisomio
Posts: 5
Joined: Sun Nov 15, 2015 12:49 am

Re: Other than CAN, what about ISO and PWM?

Post 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.
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: Other than CAN, what about ISO and PWM?

Post by stanley »

What car?
orisomio
Posts: 5
Joined: Sun Nov 15, 2015 12:49 am

Re: Other than CAN, what about ISO and PWM?

Post 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
kline-Freematics-Arduino.jpg (95.78 KiB) Viewed 19334 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.
orisomio
Posts: 5
Joined: Sun Nov 15, 2015 12:49 am

Re: Other than CAN, what about ISO and PWM?

Post 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 ?
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: Other than CAN, what about ISO and PWM?

Post by stanley »

How did you do this test? With a serial adapter? What car is connected?
orisomio
Posts: 5
Joined: Sun Nov 15, 2015 12:49 am

Re: Other than CAN, what about ISO and PWM?

Post by orisomio »

UART OBDII, connected to a BMW 650GS diagnostics port as below :
12239478_969699389763916_43470240078153002_n.jpg
12239478_969699389763916_43470240078153002_n.jpg (88.42 KiB) Viewed 19333 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).
orisomio
Posts: 5
Joined: Sun Nov 15, 2015 12:49 am

Re: Other than CAN, what about ISO and PWM?

Post 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.
Post Reply