Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: Is anyone interested in a plugin to control RR from a newer BMW using the K-CAN bus?

  1. #11
    Low Bitrate
    Join Date
    Oct 2008
    Location
    Wiltshire, UK
    Posts
    62
    Quote Originally Posted by canstb View Post
    excuse my ignorance being unfamiliar with arduino, but why not setting the plugin on an elm327 chip based obdII adapter but an arduino with canbus shield?

    and yes, I would be interested in such hardware (without bluetooth) +software for RR if elm327 is not capable of doing the same thing.
    My main reason for using the Arduino is that I am also using it for other functions :-
    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.

  2. #12
    Newbie
    Join Date
    Dec 2006
    Location
    istanbul
    Posts
    47
    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.

  3. #13
    Low Bitrate
    Join Date
    Oct 2008
    Location
    Wiltshire, UK
    Posts
    62
    I'm in the process of trying to get the Plugin to meet the release rules.
    I need to create unique GUID's and remove one dependency on it being specifically installed in a certain directory.

    I'll post it as soon as I have done that.

  4. #14
    Newbie
    Join Date
    Dec 2006
    Location
    istanbul
    Posts
    47
    cant wait for it. good luck...

  5. #15
    Low Bitrate
    Join Date
    Oct 2008
    Location
    Wiltshire, UK
    Posts
    62
    KCanBusRR install

    Requirements:
    Arduino UNO with CanBus Shield
    .Net framework V4
    Arduino Programming suite v0022 or v1.0.x

    Step 1. Arduino
    Download the file supplied below:-
    http://www.loopybunny.co.uk/temp/Kcan.zip
    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.

    Step 3.
    Copy the skin example into a skin of your choice
    http://www.loopybunny.co.uk/temp/Skin Example.zip
    Edit your current skin to call the KCAN.skin screen

    You should be then good to go.


    Extra Info

    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:-
    http://www.loopybunny.co.uk/temp/Kcan_interface.jpg

    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!)

    Fault finding.
    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...
    Last edited by TrevorC2; 01-23-2013 at 09:26 AM.

  6. #16
    Newbie
    Join Date
    Dec 2006
    Location
    istanbul
    Posts
    47
    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.

  7. #17
    FLAC SNOtwistR's Avatar
    Join Date
    Nov 2009
    Location
    Keswick,On Canada
    Posts
    1,596
    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

  8. #18
    Variable Bitrate
    Join Date
    Sep 2012
    Location
    Germany - Munich
    Posts
    375
    if you installed RideRunner in profile-mode, you can include and register plugins at subfolder in skin-path.

    off-topic:
    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.

  9. #19
    Low Bitrate
    Join Date
    Oct 2008
    Location
    Wiltshire, UK
    Posts
    62
    Quote Originally Posted by harryberlin View Post
    if you installed RideRunner in profile-mode, you can include and register plugins at subfolder in skin-path.
    I guess I am still old school. I have been using RideRunner in my car's for nearly 5 years and I hadn't tried profile mode until recently.
    In my car I have disabled UAC with a registry key so this isn't a problem. It is good advice for others, thanks

    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?
    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.

  10. #20
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,840
    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 ?

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. NEW PLUGIN: Brightness Control
    By justchat_1 in forum OM Skin/Plugin Developers
    Replies: 0
    Last Post: 01-11-2011, 06:20 AM
  2. Plugin Manager control of plugin Config
    By lambosprit in forum RR Plugins
    Replies: 17
    Last Post: 10-17-2010, 04:46 PM
  3. no audio control with XM plugin
    By DalenA in forum CF Bug Reports
    Replies: 4
    Last Post: 10-12-2007, 10:26 AM
  4. Plugin: Ipod Control
    By t00h0t in forum CF Plugins
    Replies: 15
    Last Post: 06-05-2007, 07:25 PM
  5. Web control Plugin idea...
    By CdRsKuLL in forum Road Runner
    Replies: 8
    Last Post: 11-20-2006, 06:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •