Unologger compile issues

Inquiry and support for Freematics products
Post Reply
LogicalUnit
Posts: 2
Joined: Tue Apr 07, 2015 3:46 pm

Unologger compile issues

Post 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.
haydent
Posts: 14
Joined: Fri Apr 03, 2015 2:10 pm

Re: Unologger compile issues

Post by haydent »

what code are you trying to load ?
LogicalUnit
Posts: 2
Joined: Tue Apr 07, 2015 3:46 pm

Re: Unologger compile issues

Post by LogicalUnit »

haydent
Posts: 14
Joined: Fri Apr 03, 2015 2:10 pm

Re: Unologger compile issues

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

Re: Unologger compile issues

Post by stanley »

Unologger hasn't been maintained for a while. It's not up to date. Please try again with the latest code.
Post Reply