can you share the plugin and the sample skins for this please? I would like to see if I can get it working with elm327.
a) Turning the PC on when 'Unlock' signal is seen from the remote control keyfob. (And shutting down when the 'Lock' signal is sent)
b) Replicating the buzzer for things like PDC sensor, Cold temperature, etc.. (As I have removed the stereo and it used to do these functions)
c) Dimming the LCD display when the lights are turned on.
Admittedly, you could probably use the ELM327 to act as the interface but I was looking for a flexible development system.
cant wait for it. good luck...
Arduino UNO with CanBus Shield
.Net framework V4
Arduino Programming suite v0022 or v1.0.x
Step 1. Arduino
Download the file supplied below:-
This contains two directories:-
Copy the Canbus directory into the Libraries directory of the Arduino programmer
The other file is my Arduino sketch.
Compile and upload the Arduino Sketch* See note below if using Compiler 1.0.1 or 1.0.3
Step 2. Install the Plug-in
Unzip the folder below into the Plugins directory of RR
http://www.loopybunny.co.uk/temp/KCanBusRR.zip (Plugin name is KCanBusRR)
Register the DLL using Regasm, either by command line or via the RumMe1st.cmd in the KCanBuRR directory.
Change the com port in the .ini file
Change the skin names in the .ini file (Associated with the next and previous screen buttons)
Please read the Readme.txt file in this directory for more information on commands available.
Copy the skin example into a skin of your choice
Edit your current skin to call the KCAN.skin screen
You should be then good to go.
Arduino Compiler Versions 1.0.1 or 1.0.3
Note that my programming has been done with v0022, but v1.03 should work. The Canbus library is currently written for v0022, If you are using 1.0.1 or 1.0.3 you will need to rename the #includes:-
Change #include "WConstants.h" to #include "Arduino.h", in files mcp2515.c and Canbus.cpp
I should be able to supply pre-programmed little boards in the next few weeks like the one here:-
What does the Arduino code do?
The Arduino passively reads all Canbus data and streams it out over USB. The format is shown below:-
CAN ID, Data length, data (Decimal)
0x1A6 8 0 0 0 0 2 0 240 240
0x1E1 6 212 241 0 255 255 255
0x0A8 8 33 36 26 32 26 240 15 0
0x0A9 8 109 68 205 223 39 205 223 252
0x1D0 8 112 255 72 194 0 0 205 166
0x1D6 2 192 12
Other functions of the Arduino:-
Pin 7: Can turn the Car-PC on and off (1 when on, 0 when off). Even at 5V output this can drive the Ignition wire of an M2-ATX-90W style Car-PC power supply. This pin gets set on power-up or key-fob unlock and turns off on Keyfob lock.
Pin 8: This pin can directly drive a little DC piezo buzzer. This will get set if the PDC Reverse sensors detect and object close.
Windows 8 users:
Note that, if your Plugins directory is within 'Program Files' you will have to move the KCanBusRR.ini file to your desktop, edit it and copy it back to the Plugins folder. (Damn UAC, this can be disabled with a registry key but all metro screens will fail to work!)
If all Labels are blank, the dll has not been correctly registered. You may need to run Regasm as Administrator.
If all labels are showing '---' then the dll has been loaded but it is not seeing the COM port.
a) Has the COM port been set in the .ini file?
b) Has the Arduino been programmed and is it streaming data? (Test with a terminal emulator at 115200 baud). It should stream data out. If it is not streaming data, do you have the canbus wires the correct way round?
c) Are you sure the Canbus hasn’t gone to sleep? The BMW E84 goes to sleep after 50 seconds of inactivity, it will wake up again if a button is pressed, door opened or if the car started.
##Currently known issues.##
When you press the central locking button from within the car, RR crashes! I am passing an illegal value back to a variable that I have not yet isolated.
This is my first attempt at sharing a plugin, it is still in Alpha stage. Please let me know I have made any errors with the instructions etc...
thanks for sharing your long days hardwork with us for free.
my plan is to keep the radio with my car pc set-up, so the only thing I will only need is the functions of steering wheel buttons. I may disconnect the Can wires from the radio and use the commands only to control RR. and I can use the power of radio to wake the pc. I must admit, rest of the functions are also interesting but I can live without them if I will be able to read the data with an elm chip.
can it be possible to send few commands to elm in the beginning (or with some intervals) and start receiving the data only from ID 1D6? ok, elm cannot tell the can ID and message length as a response (can it?), but if plugin knows what it will receive(only 2 bytes of data), it can act accordingly, hey? its just 2 bytes of data to be resolved, shouldnt be a big deal (saying this knowing nothing about preparing such plugin)
I dont want to be a trouble to you on top of your favor you already did, so please count me in for an arduino board that you will prepare in any case.
TrevorC2 are you using the em-406 GPS on your can-bus shield? If not do you have any plans on using it in the future? What are your thoughts on adding a gsm/gprs shield into the mix? A curious mind want's to know. Love the work you have done so far! SNO
if you installed RideRunner in profile-mode, you can include and register plugins at subfolder in skin-path.
i bought this gps modul: www.ebay.de/itm/230860487388
i will connect it with my car(BMW E39) installed GPS antenna.
Last edited by harryberlin; 01-22-2013 at 12:40 PM.
In my car I have disabled UAC with a registry key so this isn't a problem. It is good advice for others, thanks
I am using a USB GPS with CuriousTech GPS splitter. I haven't tried plugging into the em-406 port ....Yet ........ I'm not good when someone puts an idea in my head, it make me think and want to have a play. I see in the UK I can get a em-406 for about £23. I may have a play in the future.SNOtwistR
are you using the em-406 GPS on your can-bus shield? If not do you have any plans on using it in the future?
Thanks for this share !!!
I don't see where i can download the skin files !
Is it possible to share also the plugin source files ?