Logging custom CAN-messages

All sensor specific discussions! Temperature, pressure, steering angle, brake and throttle, etc. Post adaptations of OEM-style sensors, and also your clever DIY hacks and custom designs here too!

Moderators: JeffC, rdoherty, stieg

Post Reply
EcoCars
Posts: 1
Joined: Tue Oct 04, 2016 1:46 pm

Logging custom CAN-messages

Post by EcoCars »

Hi, first post on the forum! :)
I would like to log custom received CAN messages and have after a few days of testing and searching not been able to find anything relevant. I thought about editing the source code, but thought I should consult all the knowledge on the forum first.
I am part of a research group who is building a small hybrid car, we have an established CAN-network used between the ECUs controlling the electrical motor, the ethanol engine and a bunch of other stuff. My question is how should I get the custom messages to be logged by the RCP2?
I have tried to use the existing predefined OBD-II channels but this have been unsuccessful since I can't set the channel to an custom CAN id.
I have written a lua-script to make sure that the messages is beeing recieved properly and that works fine.

Thanks for your input!

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Hi,

Our CAN integration is done through Lua, mapping CAN data to virtual channels. You don't need to modify firmware.

See the guide:
https://wiki.autosportlabs.com/CAN_Bus_Integration

One great example is the BMW E46 integration:
https://wiki.autosportlabs.com/BMW_E46_CAN

Let us know how your project goes!
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Post Reply