Page 1 of 1

Jeep Rubicon 2010 Turn Interiour Features on/off via CAN-BUS

PostPosted: Wed Oct 08, 2014 5:01 pm
by MartinViljoen
Using my CAN-BUS sniffer device which i builtr I did the below.
Link on how to build a sniffer device - viewtopic.php?f=14&t=15

Turn on the Jeep's Left Blinker

Code: Select all
// demo: CAN-BUS Shield, send data
// loovee, 2013-11-27

#include <mcp_can.h>
#include <SPI.h>

void setup()
{
    Serial.begin(115200);
 
START_INIT:

    if(CAN_OK == CAN.begin(CAN_125KBPS))                   // init can bus : baudrate = 500k
    {
        Serial.println("CAN BUS Shield init ok!");
    }
    else
    {
        Serial.println("CAN BUS Shield init fail");
        Serial.println("Init CAN BUS Shield again");
        delay(100);
        goto START_INIT;
    }
}

void loop()
{
    //TRY 3
    unsigned char stmp[6] = {8,0,0,0,0,0};
    CAN.sendMsgBuf(0x2A8, 0, 6 ,stmp);
    delay(1000);
     
}
/*********************************************************************************************************
  END FILE
*********************************************************************************************************/


Using the same code above and changing the below part
unsigned char stmp[6] = {8,0,0,0,0,0};
CAN.sendMsgBuf(0x2A8, 0, 6 ,stmp);


with the below.



Right Blinker
Code: Select all
    unsigned char stmp[6] = {16,0,0,0,0,0};
    CAN.sendMsgBuf(0x2A8, 0, 6 ,stmp);


Rear Locker
Code: Select all
  unsigned char stmp[4] = {3,0,35,0};
  CAN.sendMsgBuf(0x2B0, 0, 4 ,stmp);


Toggle Through Lockers
Code: Select all
  unsigned char stmp[4] = {3,0,35,0};
  CAN.sendMsgBuf(0x2B0, 0, 4 ,stmp);


Cancel Lockers
Code: Select all
  unsigned char stmp[4] = {3,0,19,0};
  CAN.sendMsgBuf(0x2B0, 0, 4 ,stmp);


Toggle ESP (Electronic Stability Control) On/Off
Code: Select all
  unsigned char stmp[4] = {3,1,3,0};
  CAN.sendMsgBuf(0x2B0, 0, 4 ,stmp);


Enable Disable Sway Bar
Code: Select all
    unsigned char stmp3[4] = {3, 0, 3, 0};
    CAN.sendMsgBuf(0x2B0, 0, 4, stmp3);   // send data:  id = 0x00, standrad flame, data len = 8, stmp: data buf

Re: Jeep Rubicon 2010 Turn Interiour Features on/off via CAN

PostPosted: Wed Jun 24, 2015 6:01 pm
by int
Hi,
I'm trying to create a logger and I have no idea how to transfer int instead of char.
For example, I want to send the following message: 0x04 0x1A 0x92 0xAD
The problem, I don't know how to send 0x04
From this table, it's equal to EOT char:
http://www.bibase.com/ascii.htm

Could you please throw me a bone how to send integer values?
I'm working with mcp_can library.

Re: Jeep Rubicon 2010 Turn Interiour Features on/off via CAN

PostPosted: Fri Jun 26, 2015 7:57 am
by MartinViljoen
int wrote:Hi,
I'm trying to create a logger and I have no idea how to transfer int instead of char.
For example, I want to send the following message: 0x04 0x1A 0x92 0xAD
The problem, I don't know how to send 0x04
From this table, it's equal to EOT char:
http://www.bibase.com/ascii.htm

Could you please throw me a bone how to send integer values?
I'm working with mcp_can library.


Hi , With the seeed studio shield you only send the ID in hex but the rest of the message is done in number format.
You cant just send 0x04 0x1A 0x92 0xAD you have to send it to a CAN ID,

When searching on the internet you find various formats, so sometimes you have to convert it from hex to number, when converting hex to number ignore 0x, which is just an indication that is a HEX value.
I use the normal Windows Calculator to do this.

Taking my example from the OP, CAN.sendMsgBuf(0x2B0, 0, 4, stmp3);
0x2B0 is hext for hex value 2B0
0 = not sure why
4 = means I have 4 bits to send
STmp3 is an array of 4 bits {3 and 0 and 3 and 0};

See how to convert using Windows Calculator



Does it make sense ? If not let me know and i will try to explain again.

Re: Jeep Rubicon 2010 Turn Interiour Features on/off via CAN

PostPosted: Fri Jun 26, 2015 11:59 pm
by int
Thanks for the answer!

I think I got it.

Re: Jeep Rubicon 2010 Turn Interiour Features on/off via CAN

PostPosted: Thu Sep 03, 2015 4:43 pm
by beachtroy
Does anyone know what the address and value would be to turn on the Jeep Radio outside of the vehicle? I'm using an Arduino Uno with the sparkfun can-bus shield. I can get it to say "CAN BUS Shield init ok! and nothing else.

Re: Jeep Rubicon 2010 Turn Interiour Features on/off via CAN

PostPosted: Wed Mar 29, 2017 6:35 am
by projek_01
Hi guys,

I am trying to send "skip track" to work just like my steering wheel does on my 2008 Audi A3. I used Super Sniffer and this is what corresponds to "skip track" on my steering wheel:

CAN_ID: 623
CAN Messages (Including CAN_ID):<1571,0,32,0,0,40,3,32,23,>
Change: Data Changed - <1571,0,25,89,55,40,3,32,23,>

Is is what I put in my sketch:

Code: Select all
//This Arduino UNO Sketch requires the Seeed CAN-BUS Shield Libraries
//https://github.com/yexiaobo-seeedstudio/CAN_BUS_Shield
#include <SPI.h>
#include "mcp_can.h"

void setup()
{
    Serial.begin(115200);
 
START_INIT:

    if(CAN_OK == CAN.begin(CAN_100KBPS))                   // init can bus : baudrate = 100k
    {
        Serial.println("CAN BUS Shield init ok!");
    }
    else
    {
        Serial.println("CAN BUS Shield init fail");
        Serial.println("Init CAN BUS Shield again");
        delay(100);
        goto START_INIT;
    }
}

void loop()
{
    //TRY 3
    unsigned char stmp[8] = {0,25,88,39,40,3,32,23};
    CAN.sendMsgBuf(0x623, 0, 8 ,stmp);
    delay(1000);
     
}
/*********************************************************************************************************
  END FILE
*********************************************************************************************************/


Can someone please help and tell me what I did wrong because it doesn't work. Thanks in advance!