Page 1 of 1

Unologger compile issues

Posted: Tue Apr 07, 2015 4:07 pm
by LogicalUnit
Hello,

I purchased an OBD-II Telematics Kit #1 some time ago, and managed to get it working. I'm now trying to modify the code to add a Realtime Clock module for adding timestamps to the log files. For this I am using an Adafruit Data Logging Shield. I'm trying to upload the Unologger code to my Arduino Uno, but I get the following compilation errors. Any help would be appreciated.

Code: Select all

Arduino: 1.6.3 (Windows 8.1), Board: "Arduino Uno"

unologger.ino: In member function 'void COBDLogger::setup()':

unologger.ino:67:36: error: invalid conversion from 'int' to 'OBD_PROTOCOLS' [-fpermissive]

In file included from unologger.ino:9:0:

C:\Users\John\Documents\Arduino\libraries\OBD/OBD.h:109:15: error:   initializing argument 1 of 'virtual bool COBD::init(OBD_PROTOCOLS)' [-fpermissive]

  virtual bool init(OBD_PROTOCOLS protocol = PROTO_AUTO);

               ^

C:\Users\John\Documents\Arduino\libraries\OBD/OBD.h: In member function 'void COBDLogger::benchmark()':

C:\Users\John\Documents\Arduino\libraries\OBD/OBD.h:148:15: error: 'virtual byte COBD::receive(char*, int)' is private

  virtual byte receive(char* buffer = 0, int timeout = OBD_TIMEOUT_SHORT);

               ^

unologger.ino:115:17: error: within this context

In file included from unologger.ino:9:0:

C:\Users\John\Documents\Arduino\libraries\OBD/OBD.h:148:15: error: 'virtual byte COBD::receive(char*, int)' is private

  virtual byte receive(char* buffer = 0, int timeout = OBD_TIMEOUT_SHORT);

               ^

unologger.ino:115:28: error: within this context

unologger.ino: In member function 'void COBDLogger::reconnect()':

unologger.ino:305:21: error: 'class LCD_ILI9341' has no member named 'backlight'

unologger.ino:316:13: error: 'class LCD_ILI9341' has no member named 'backlight'

unologger.ino: In member function 'void COBDLogger::initLoggerScreen()':

unologger.ino:395:13: error: 'class LCD_ILI9341' has no member named 'backlight'

Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

Re: Unologger compile issues

Posted: Wed Apr 08, 2015 10:36 pm
by haydent
what code are you trying to load ?

Re: Unologger compile issues

Posted: Thu Apr 09, 2015 11:29 am
by LogicalUnit

Re: Unologger compile issues

Posted: Thu Apr 09, 2015 11:38 am
by haydent
try having a look here and see what you can find out (i tried compiling that code and got same error, so not you) https://github.com/stanleyhuangyc/ArduinoOBD/issues

Re: Unologger compile issues

Posted: Mon Apr 20, 2015 11:28 am
by stanley
Unologger hasn't been maintained for a while. It's not up to date. Please try again with the latest code.