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

Inquiry and support for Freematics products
Mcsquizzy
Posts: 8
Joined: Fri Oct 10, 2014 11:25 am

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

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

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

Post by stanley »

Your OBD library might not be up-to-date.
Mcsquizzy
Posts: 8
Joined: Fri Oct 10, 2014 11:25 am

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

Post 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?
Gobla
Posts: 6
Joined: Fri Aug 08, 2014 3:24 am

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

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