Sniffing the CAN-BUS with the SuperSniffer Software v1.xx

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby Andy26 » Mon Nov 03, 2014 5:28 pm



Hello capu81, Hello guys,

i wasn't able to answer earlier. I have finally finished my project can bus adapter with a lot of help from a friend of mine and i need to say, it's awesome!
The first problem i was facing is probably the same as yours, the can shield didn't receive any data eventhough it was connected right.
After lots of trying and reading i have found this solution. I desoldered the R3 resistor on the can shield and finally i could see that big data stream appearing on my screen :). I hope this will also get your can shield to work.

http://3.bp.blogspot.com/-UFLm09G1m9k/U817w1XLykI/AAAAAAAADoI/DSPa9HCwc9I/s1600/seeed_term_resistor.jpg
Andy26
 
Posts: 2
Joined: Mon Nov 03, 2014 5:16 pm

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby MartinViljoen » Mon Nov 03, 2014 8:02 pm

Andy26 wrote:


Hello capu81, Hello guys,

i wasn't able to answer earlier. I have finally finished my project can bus adapter with a lot of help from a friend of mine and i need to say, it's awesome!
The first problem i was facing is probably the same as yours, the can shield didn't receive any data eventhough it was connected right.
After lots of trying and reading i have found this solution. I desoldered the R3 resistor on the can shield and finally i could see that big data stream appearing on my screen :). I hope this will also get your can shield to work.

http://3.bp.blogspot.com/-UFLm09G1m9k/U817w1XLykI/AAAAAAAADoI/DSPa9HCwc9I/s1600/seeed_term_resistor.jpg


Hey Andy, Thanks a million hopfully it resolves Capu's problem and everyone elses,! Tell your friend i said he's the man! :mrgreen: :mrgreen: :mrgreen:
Image
User avatar
MartinViljoen
 
Posts: 111
Joined: Mon Oct 06, 2014 5:23 pm
Location: Centurion South Africa

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby capu81 » Tue Nov 04, 2014 9:19 am

Wonderfull!! :D

I'll try in this days an report to you!
capu81
 
Posts: 13
Joined: Sat Oct 18, 2014 4:57 pm

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby gapco » Tue Nov 04, 2014 3:43 pm

I'm sure the removal of the termination resistor is described in the documentation for the shield somewhere. I would add a switch to the circuit to bypass the resistor whenever required.
Give me an espresso and nobody gets hurt...
User avatar
gapco
 
Posts: 5
Joined: Sat Oct 18, 2014 8:06 pm
Location: Johannesburg, South Africa

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby MartinViljoen » Tue Nov 04, 2014 6:53 pm

gapco wrote:I'm sure the removal of the termination resistor is described in the documentation for the shield somewhere. I would add a switch to the circuit to bypass the resistor whenever required.



It is actually and ive read about the terminator resistor, but for me it wasn't necessary to remove, Never though it would make a difference.
Image
User avatar
MartinViljoen
 
Posts: 111
Joined: Mon Oct 06, 2014 5:23 pm
Location: Centurion South Africa

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby gapco » Tue Nov 04, 2014 9:02 pm

It is actually and ive read about the terminator resistor, but for me it wasn't necessary to remove, Never though it would make a difference.[/quote]

The point where the CAN H and CAN L are connected already has a terminating resistor. This is found in the radio or any other equipment that is being sniffed. In some cases such as your one there was a problem. So a switch placed in circuit of the CAN shield is advisable. There are times when the shield will need to "see" the terminating resistor and other times where it is not required.
Give me an espresso and nobody gets hurt...
User avatar
gapco
 
Posts: 5
Joined: Sat Oct 18, 2014 8:06 pm
Location: Johannesburg, South Africa

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby capu81 » Thu Nov 06, 2014 1:16 pm

I've cutted trace of P1 and.........

WORK WORK WORK WORK !!!!!! :D :D :P :P :o :o

Thank you to all for the support!

Now i'm working to send serial data through bluetooth and read from android tablet (with script and tasker)
capu81
 
Posts: 13
Joined: Sat Oct 18, 2014 4:57 pm

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby gapco » Thu Nov 06, 2014 3:41 pm

capu81 wrote:I've cutted trace of P1 and.........

WORK WORK WORK WORK !!!!!! :D :D :P :P :o :o

Thank you to all for the support!

Now i'm working to send serial data through bluetooth and read from android tablet (with script and tasker)


Bravo !!!!!!!!!....
Give me an espresso and nobody gets hurt...
User avatar
gapco
 
Posts: 5
Joined: Sat Oct 18, 2014 8:06 pm
Location: Johannesburg, South Africa

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby MartinViljoen » Thu Nov 06, 2014 4:55 pm

capu81 wrote:I've cutted trace of P1 and.........

WORK WORK WORK WORK !!!!!! :D :D :P :P :o :o

Thank you to all for the support!

Now i'm working to send serial data through bluetooth and read from android tablet (with script and tasker)


Nice!, Glad you came right
Image
User avatar
MartinViljoen
 
Posts: 111
Joined: Mon Oct 06, 2014 5:23 pm
Location: Centurion South Africa

Re: Sniffing the CAN-BUS with the SuperSniffer Software

Postby Sonnytkt » Sun Jan 11, 2015 7:05 pm

Hi, I have managed to make it work on a 2008 Toyota Yaris using a Elecfreaks CANBUS shield and this library:
https://github.com/Seeed-Studio/CAN_BUS_Shield
2015-01-11 18.01.48.jpg

I used a mix between Martin's code and the library example:
Code: Select all
#include <SPI.h>
#include "mcp_can.h"


unsigned char Flag_Recv = 0;
unsigned char len = 0;
unsigned char buf[8];
char str[20];
INT32U canId = 0x000;

MCP_CAN CAN(10);                                            // Set CS to pin 10

void setup()
{
    Serial.begin(38400);

START_INIT:

    if(CAN_OK == CAN.begin(CAN_500KBPS))                   // 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()
{
 
 
 
  if(CAN_MSGAVAIL == CAN.checkReceive()) 
    {
        CAN.readMsgBuf(&len, buf);
        canId = CAN.getCanId();
        Serial.print("<");Serial.print(canId);Serial.print(",");
        for(int i = 0; i<len; i++)
        {
            Serial.print(buf[i]);Serial.print(",");
        }
        Serial.print(">");
        Serial.println();
    }
}


I have also tried it on a 2002 Ford Mondeo and worked just fine and on a 2002 VW Polo and a 2001 Toyota RAV4 and didn't work on these last ones, even if watching the obd plug i could see the presence of the metal female pins at nr. 6 and 14. It might be that the cars aren't equipped with can bus and the producer used the pins for other communication? or as gapco said the 2002 wv polo has a gateway so I shouldn't have plugged it into the obd plug and search for other places to connect to the CAN-H and CAN-L? I have tried changing the speeds from 100 to 500 kbps but no result. The RAV4 as soon as I plugged the shield it started flickering the "abs" lamp so I think it isn't equipped with canbus communication. What do you think?

Thanks guys!
PS: great job Martin with that sniffer!!Congrats
You do not have the required permissions to view the files attached to this post.
User avatar
Sonnytkt
 
Posts: 7
Joined: Sat Jan 10, 2015 1:29 pm
Location: Targoviste, Romania

PreviousNext

Return to OBD2 & CAN-BUS Projects

Who is online

Users browsing this forum: No registered users and 1 guest