And downlowded the V4 (intended for uno & Ardiono 1.0)
I unzipped the file into the examples folder, and put the lirary files into the library folder ( I am not sure i have done this correctly, I need to do more reading on that)
I try to compile the code and get all kinds off error messages.
I am thinking that it is just my lack of experiance with arduino that is causing these issues.
Wondering if someone else who has got this code up and running could give me a few pointers?
Sure! I tried to copy and paste the list but could not get that to work, i will list a few:
First error:
ecu_reader_logger.cpp In Function 'void logging()':
ecu_reader_logger: 262: error 'class Sdfile' has no member named 'write error'
So, I comment out the instance in the sketch (//) of 'write error'
And re compile. then i get a very large string of errors, starting with :
......\CAN\CAN.cpp:1:17: SPI.h : no such file or directory
OK, so i look and the SPI.h library has not been included in the sketch, so I include it.
Recompile, and get yet another long string of errors.
Most of them say " undefined reference to 'canbus' "
this is where i kinda gave up, acording to the posts on the CAN-BUS sheild page at sparkfun, several people have got this working and did not mention having to do all this, so i must have done something wrong. hoping to find out what.
Most of them say " undefined reference to 'canbus' "
this is where i kinda gave up, acording to the posts on the CAN-BUS sheild page at sparkfun, several people have got this working and did not mention having to do all this, so i must have done something wrong. hoping to find out what.
Too much handwaving; not enough code.
If you are getting undefined reference to canbus, and don't tell us where canbus is defined, or what type it is, we can't really help you, now can we?
Most of them say " undefined reference to 'canbus' "
this is where i kinda gave up, acording to the posts on the CAN-BUS sheild page at sparkfun, several people have got this working and did not mention having to do all this, so i must have done something wrong. hoping to find out what.
Too much handwaving; not enough code.
If you are getting undefined reference to canbus, and don't tell us where canbus is defined, or what type it is, we can't really help you, now can we?
Ok, I am fairly new to this so i apologize for my newb-ness (think i just made a new word.
would be handy if i could figure out how to copy and paste this from the compile error field but i will type the first couple:
ecu_reader_logger.cpp.o: In function 'loop'
C: \DOCUME~1\JMCPHER~1\LOCALS~1\Temp\build3631344006560428434.tmp/ecu_reader_logger.cpp:188:undefined reference to 'Canbus'
C: \DOCUME~1\JMCPHER~1\LOCALS~1\Temp\build3631344006560428434.tmp/ecu_reader_logger.cpp:188:undefined reference to 'Canbus'
C: \DOCUME~1\JMCPHER~1\LOCALS~1\Temp\build3631344006560428434.tmp/ecu_reader_logger.cpp:188:undefined reference to 'CanbusClass::ecu_req(unsigned char, char*)'
dxw00d:
I suspect you haven't installed the library correctly. You also need to have downloaded and installed the Adafruit SD library.
I just downloaded both, and the Canbus example sketch compiled with no problems.
I am thinking this may be the case, I posted elswhere asking how to propperly import a library (acuall where to put all the files asociated with a zip file such as this downloaded from a third party site) Do not want to cross post. But i have a feeling i did something wrong when i unzipped the file and tryed to put the library(s) into Arduino.
Thanks
The entire contents of the zip file you downloaded should be placed in the libraries subfolder of your sketchbook folder. If you don't know where your sketchbook folder is, open a sketch that you have written and select Sketch->Show Sketch Folder from the Arduino IDE menu.
Ok, I went into my arduino folder, deleted all the files related to the CAN-BUS code, re-downloaded the file, unzipped it to the library folder on My PC its here:
C:\Documents and Settings\jmcpherson\My Documents\Arduino\arduino-1.0\libraries\Canbus
I load the saple sketch and still get the compiler error:
ecu_reader_logger.cpp: In function 'void logging()'
ecu_reader_logger:262: error: 'class SdFile' has no member named 'write error'
Now, if i comment out the line:
file.writeError = 0;
in the sketch, it will compile.
So, still wondering what that is about. Im guessing there is something missing from the library in the .cpp file?
Ok, I went into my arduino folder, deleted all the files related to the CAN-BUS code, re-downloaded the file, unzipped it to the library folder on My PC its here:
C:\Documents and Settings\jmcpherson\My Documents\Arduino\arduino-1.0\libraries\Canbus
Wrong!
User downloaded libraries do NOT go here. There should be a libraries folder in the same folder that you store sketches in. If there is not, you should create one, and move the Canbus library there.