Page 2 of 2

Re: Problems with reading with Arduino OBD-II Logger Kit #3

Posted: Sat Oct 25, 2014 5:09 am
by Mcsquizzy
Gabla, I changed the

Code: Select all

#define OBD_PROTOCOL 0

to

Code: Select all

#define OBD_PROTOCOL PROTO_KWP2000_FAST


When I tried to build the megalogger.ino file (version megalogger-src-20140612) within CodeBlocks, I received this error:

Code: Select all

megalogger.ino||In member function 'void COBDLogger::setup()':|
megalogger.ino|94|error: 'PROTO_KWP2000_FAST' was not declared in this scope|
||=== Build failed: 1 error(s), 76 warning(s) (0 minute(s), 6 second(s)) ===|


Then, I tried the newest megalogger.ino project folder (version megalogger-src-20140907) but recieved even more errors, without modifying any of the code:

Code: Select all

megalogger.ino||In member function 'void COBDLogger::setup()':|
megalogger.ino|97|error: 'PROTO_AUTO' was not declared in this scope|
megalogger.ino||In member function 'void COBDLogger::loop()':|
megalogger.ino|149|error: 'getVoltage' was not declared in this scope|
||=== Build failed: 2 error(s), 78 warning(s) (0 minute(s), 9 second(s)) ===|


Any ideas?

Re: Problems with reading with Arduino OBD-II Logger Kit #3

Posted: Sat Oct 25, 2014 1:27 pm
by stanley
Your OBD library might not be up-to-date.

Re: Problems with reading with Arduino OBD-II Logger Kit #3

Posted: Mon Oct 27, 2014 2:12 am
by Mcsquizzy
I downloaded the .zip file containing all files and libraries (http://sourceforge.net/projects/obdcon/files/logger/)
I downloaded version megalogger-src-20140907.zip and opened the CodeBlocks project file.
The older version (megalogger-src-20140612.zip) seemed to compile fine, but it's just the new one... Maybe there are other library files which are interfering with the CodeBlocks project?

Re: Problems with reading with Arduino OBD-II Logger Kit #3

Posted: Thu Oct 30, 2014 7:19 am
by Gobla
Most definitely your OBD library that is not up to date.

PROTO_KWP2000_FAST is defined in OBD.h.

You could try to update the following folder: "CodeBlocksDir\arduino\libraries\OBD" with the files from your download in "libraries/OBD".
You could also update the other libraries as well.