Go Down

Topic: Need help coding Arduino to pass Canbus data to computer (Read 937 times) previous topic - next topic

that_kid

Dec 07, 2012, 06:27 pm Last Edit: Dec 07, 2012, 06:37 pm by that_kid Reason: 1
I've been trying to wrap my head around this but i'm at a loss.  I have server different windows Canbus monitoring software but I don't know how to code the Arduino to pass the info it gets from the Canbus to the computer so I can use the programs.  I can have the information scroll through the serial monitor but I need an easier way to be able to see the the changes in data. 

In addition to above does anyone have any information on building a Canbus gateway?  What I want to do is place the gateway between two nodes so I can identify what node sends what.  My ultimate goal is to read the information my RNS2 head unit sends to and from the infotainment bus then use the Arduino to emulate the radio and interface with the carpc. 

The code i'm using as a starting point is from seedstudio http://www.seeedstudio.com/wiki/images/5/55/CAN_BUS_Shield.zip

PaulS

Quote
have server different windows Canbus monitoring software

All those collections of letters make sense. That collection of words does not.

Quote
but I don't know how to code the Arduino to pass the info it gets from the Canbus to the computer so I can use the programs.  I can have the information scroll through the serial monitor but I need an easier way to be able to see the the changes in data. 

So, you clearly DO know how to get the Arduino to pass data to the PC.

Quote
What I want to do is place the gateway between two nodes so I can identify what node sends what.

That will happen only if the two nodes identify themselves in some way.

Quote
My ultimate goal is to read the information my RNS2 head unit

Your what?

Quote
sends to and from the infotainment bus

The "infotainment" bus?

Quote
then use the Arduino to emulate the radio

And do what? I hope you realize that the Arduino is NOT a radio.

Quote
and interface with the carpc. 

"interface with" is such an overused, and meaningless term. No idea what a "carpc" is. Is that some kind of fish?

that_kid

Quote
All those collections of letters make sense. That collection of words does not.


that's a nice result of auto completion from my phone.  It really knows how to mess things up.

Quote
So, you clearly DO know how to get the Arduino to pass data to the PC.



Yes I can get it to the serial monitor but I want to be able to get the information to a canbus monitoring program on the computer.  I guess what I'm after is a way to dump the data i'm getting from the canbus over the arduino's com port so that I can view it with software like that from canhack.de. 

Quote
Your what?

It's the navigation radio in my car.  I just added it for reference.


Quote
The "infotainment" bus?



Yes the infotainment bus that's located my car.  There are three Canbus networks in my car 1.Drive Train 2. convenience 3. infotainment
The infotainment bus is what the navigation, radio, amplifier, steering wheel buttons and a few other things ride across.

Quote
And do what? I hope you realize that the Arduino is NOT a radio.


It's not??  I thought I could add a CD, radio and tape deck shield and it would work j/k

I removed the radio and replaced it with a car computer (apparently the words carpc mean nothing to you so I spelled it out).  The car computer provides all the functions of the original navigation radio plus much more.  So I want to be able to control parts of the computer from things like the steering wheel controls and also be able to put navigation information on the cars drivers display like the original nav unit did. 

Quote
"interface with" is such an overused, and meaningless term. No idea what a "carpc" is. Is that some kind of fish?


See above

Go Up