Register
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2019
    Posts
    47
    Thanks Thanks Given 
    8
    Thanks Thanks Received 
    5
    Thanked in
    4 Posts

    Default 2008 GM truck GMLAN

    Ok so I know this isn't the normal heres my dump... PLZ BRO. I am playing with an Uno v3/MCP2515 module. I am noob when it comes to GMLan or Can-BUS. So far I got it to where I am reading it and I also think I have it sending. I am running at 33K3bts. I've been looking at the GMLAN_bible but I am just not sure exactly what I am looking at or looking for. So I am going to post the code. can someone please put a can message that will do something like set fuel level, RPM, MPH or Temp. I just want to make sure its sending correctly before really get down this rabbit hole. So instead of dump plz bro Im going to GMLAN plz bro .
    Code:
    #include <SPI.h>#include <mcp2515.h>
    
    
    struct can_frame canMsg1;
    struct can_frame canMsg2;
    MCP2515 mcp2515(10);
    
    
    
    
    void setup() {
    
    
      canMsg1.can_id  = 0x0F6;
      canMsg1.can_dlc = 8;
      canMsg1.data[0] = 0x8E;
      canMsg1.data[1] = 0x87;
      canMsg1.data[2] = 0x32;
      canMsg1.data[3] = 0xFA;
      canMsg1.data[4] = 0x26;
      canMsg1.data[5] = 0x8E;
      canMsg1.data[6] = 0xBE;
      canMsg1.data[7] = 0x86;
    
    
      canMsg2.can_id  = 0x036;
      canMsg2.can_dlc = 8;
      canMsg2.data[0] = 0x0E;
      canMsg2.data[1] = 0x00;
      canMsg2.data[2] = 0x00;
      canMsg2.data[3] = 0x08;
      canMsg2.data[4] = 0x01;
      canMsg2.data[5] = 0x00;
      canMsg2.data[6] = 0x00;
      canMsg2.data[7] = 0xA0;
      
      while (!Serial);
      Serial.begin(115200);
      SPI.begin();
      
      mcp2515.reset();
      mcp2515.setBitrate(CAN_33KBPS, MCP_8MHZ);
      mcp2515.setNormalMode();
      
      Serial.println("Example: Write to CAN");
    }
    
    
    void loop() {
      
      mcp2515.sendMessage(&canMsg1);
      mcp2515.sendMessage(&canMsg2);
    
    
      Serial.println("Messages sent");
      
      delay(1000);
    
    
    }
    Thanks in advance. I just want to prove to myself that this will work before I start my whole project. I want to make in the end something with a couple pots that will let you sweep gauges. I started with the 2007.5+ since its gm lan and easier to find data on instead of GM class 2. I also want to do one for the 03-07 later but one project at a time.

  2. #2
    V.I.P. Member
    clusters's Avatar
    Join Date
    Mar 2015
    Location
    Canada
    Posts
    7,958
    Thanks Thanks Given 
    1,278
    Thanks Thanks Received 
    8,319
    Thanked in
    5,277 Posts

    Default

    A lot of work for something you can do with any uplevel scantool, like Launch or Autel, even on the bench.

    I do it all the time with my Autel MS906BT to test 2003-2007 clusters on the bench.
    Please DO NOT PM me asking for help.

    Post in the forum, that is what it is here for.

  3. #3
    Member
    Join Date
    Mar 2019
    Posts
    47
    Thanks Thanks Given 
    8
    Thanks Thanks Received 
    5
    Thanked in
    4 Posts

    Default

    I know. Its really just something I wanted to do to learn more about Can-bus and arduino's. I also might skip the Pots and just have it go one at a time sweeping them.
    Last edited by garnerm; 25th August, 2019 at 10:30 PM.

  4. #4
    Member
    Join Date
    Mar 2019
    Posts
    47
    Thanks Thanks Given 
    8
    Thanks Thanks Received 
    5
    Thanked in
    4 Posts

    Default

    I haven't messed with it in almost a month but I am trying to pick back up.

    So I tried this thinking it would give some engine RPM & vehicle speed to the cluster but success
    Code:
    
      canMsg1.can_id  = 0x28;
      canMsg1.can_dlc = 8;
      canMsg1.data[0] = 0x00;
      canMsg1.data[1] = 0x01;
      canMsg1.data[2] = 0x2c;
      canMsg1.data[3] = 0x03;
      canMsg1.data[4] = 0xA9;
      canMsg1.data[5] = 0x00;
      canMsg1.data[6] = 0x00;
      canMsg1.data[7] = 0x00;
    BTW I do know it is sending at least when I run it at any bitrate that the Cantact supports. If cantact supported 33.33kbps I would use it for this project instead of the ardiuno. I wish I had a 2007NBS to data log on. any suggestions on some msgs to send to the cluster.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.