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

Re: Sniffing the CAN-BUS with the SuperSniffer Software v1.x

Postby luisfrances » Fri Sep 04, 2015 11:38 am

Hi!
Can please someone tell me if CANTOOL sniffer has any limitations with baudrates/CASbus speeds?
I´m using the Techtinker sketch but changed Serial.begin(115200) and CAN.begin(CAN_500KBPS).
When starting Arduino serial monitor everything seems ok and data is flowing.. but when using Techtinker CANTOOL when opening the COM port it seems to register only the first messages and then it stops! fronzen! no time change, no msgcount, no nothing.. when i close the application and switch to Arduino serial monitor, the CAN messages start flowing again... weird... PLEASE HELP. THANK YOU!
luisfrances
 
Posts: 3
Joined: Wed Aug 12, 2015 2:13 pm

Re: Sniffing the CAN-BUS with the SuperSniffer Software v1.x

Postby likeADrug » Fri Nov 06, 2015 12:55 am

Hi all,

So I've got my canbus shield and my arduino, I'm connected via the db9 port to obd2 and am working with a 2010 ford fiesta. All sources say 500kb and 11 bit can.
I've uploaded the sketch to the arduino and opened the supersniffer and am getting loads of messages, great! I run it for a while and leave it filter out and drop the filter to 100 and eventually there is very little activity.

Then I attempt to do something, open a window. I will get some activity but it is not always straight away and not always the same data. I try saving the data changes that I can but everything is changing so fast it's hard to know for sure if im getting the right data for the action.

Am I doing anything wrong ? Is the CAN compatible or do I need to change any code ?

Any help appreciated!
likeADrug
 
Posts: 3
Joined: Wed Oct 21, 2015 1:24 am

Re: Sniffing the CAN-BUS with the SuperSniffer Software v1.x

Postby rogerwang1111 » Wed Nov 18, 2015 5:28 am

Hi

I have a problem about runtime error 8020 on win10
You do not have the required permissions to view the files attached to this post.
rogerwang1111
 
Posts: 1
Joined: Mon Nov 16, 2015 3:21 pm

Re: Sniffing the CAN-BUS with the SuperSniffer Software v1.x

Postby MartinViljoen » Tue Dec 08, 2015 9:44 pm

usually you get those kind of errors if you dont have the comm controll registered correctly,

Have you installed the VB6 Runtime libraries ? downloadable from the microsoft website
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 vlad94 » Fri Dec 25, 2015 8:32 pm

Sonnytkt wrote:I have now downloaded it, and I hadn't got the latest version. Now I can see the new features and the logo. It's nice and the auto filter function seems great. I don't have the possibility to test it now since my Opel Corsa B is dreaming at CANBUS communication :lol: I have managed to make some great filtering using both arduino serial monitor and your supersniffer. I have first read all the ID's with your software and then added a filter into the arduino code on each ID and it was a loot easyer on the serial monitor to identify some data due to the rapid flow of the numbers scrolling and their suddent change when I pressed certain buttons or moved the car. I also managed to send some data to the car and I had a bit of fun :D
2015-01-11%2021.32.49.jpg


Hi,
I just got into this thread. I am really interested in watching the signals and than send my own signal to overweight the original ones. I know that the signal that I send is not permanent, so for example I send a message to the rpm counter to show 3000RPM and the car is on idle, from time to time it will show the real value. My question is can you please explain to me how can I send signals to the car?
vlad94
 
Posts: 1
Joined: Fri Dec 25, 2015 7:04 pm

Re: Sniffing the CAN-BUS with the SuperSniffer Software v1.x

Postby Jos360 » Wed Jan 06, 2016 3:06 pm

I've just set up the CANBUS shield in my 2009 Jeep Wrangler, so fortunately I have the same vehicle as you.
I also had the library problems with D9 changed from D10 but that is solved now.
The only thing I can't work out is how to get the ignore list to work. I had Putty give me a log of 5mins of CAN data and it shows as such:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2016.01.05 17:26:31 =~=~=~=~=~=~=~=~=~=~=~=
MCP2515 Library Receive Example...
ID: 402 Data: FE 02 3F FF FF FF FF FF
ID: 3E6 Data: 11 1A 18

It's i a file sharing the same folder as CAN-BUS SuperSniffer.exe named ignoredatabase.can

EDIT :
I now have it in the correct format as i assume:

<1026,254,2,63,255,255,255,255,255,>
<998,17,14,8,>
<840,15,255,15,255,0,0,0,0,>
<322,255,0,0,0,0,0,>
<481,0,0,255,255,0,0,0,0,>
<1044,254,20,63,255,255,255,255,255,>
<723,1,12,24,6,0,0,0,0,>
<1046,254,22,63,255,255,255,255,255,>
<718,255,255,0,0,67,0,192,63,>
<680,0,5,0,0,0,0,>
<737,0,>

But still all these messages are displayed over and over again in the sniffer tool, so I think it still doesn't work.
Jos360
 
Posts: 1
Joined: Mon Jan 04, 2016 7:11 pm

Re: Sniffing the CAN-BUS with the SuperSniffer Software v1.x

Postby trik » Fri Jan 08, 2016 4:08 pm

Hi Martin, congratulations for Your software and for this very useful thread.
I have the Sparkfun shield and I have modified original code to generate a string that can
be used with Supersniffer.
Seems to works, but I don't understand because some time the message is 9 Byte (1 CAN ID + 8 CAN DATA) and sometime has a different lenght / different composition. Is this an error or is normal?
THe data that are not of 9Byte, must be filtered before send to Supersniffer?
(somtime the software crash)

Here are the code for Sparkfun:
Code: Select all
/*
This is for use with Sparkfun's CAN Bus Shield: https://www.sparkfun.com/products/10039
*/
#include <Canbus.h>
#include <defaults.h>
#include <global.h>
#include <mcp2515.h>
#include <mcp2515_defs.h>
// 15765-4 protocollo clio iv 500kb
void setup() {
  Serial.begin(38400); // For debug use
  Serial.println("CAN Read "); 
  delay(1000);
 
  if(Canbus.init(CANSPEED_500))  //Initialise MCP2515 CAN controller at the specified speed
    Serial.println("CAN Init ok ....");
  else
    Serial.println("Can't init CAN");
    delay(1000);
}
void loop()
{
tCAN message;
if (mcp2515_check_message())
{

  if (mcp2515_get_message(&message))
   {
         //if(message.id == 0x015)  //uncomment when you want to filter
         //{
               
             
               Serial.print("<"); Serial.print(message.id,HEX); Serial.print(",");
               Serial.print(message.header.length,DEC); // ?
               for(int i=0; i<message.header.length; i++)
                {   
                  Serial.print(message.data[i],DEC); Serial.print(",");
                }
               Serial.print(">");
               Serial.println();
               
          //}  // close filter check
        }
 }

} // loop


and this is an example of data received:

CAN Init ok ....
<673,70,0,255,255,255,255,0,>
<673,70,0,255,255,255,255,0,>
<12E,8198,127,255,127,224,255,255,0,>
<505,40,0,0,0,>
<657,20,0,>
<4AC,1128,>
<45C,40,0,0,0,>
<12E,8198,127,255,127,240,255,255,0,>
<392,40,5,0,0,>
<12E,8197,128,0,127,240,255,255,0,>
<C6,8116,202,128,0,127,250,190,10,>
<12E,8197,127,255,127,240,255,255,0,>
<12E,8197,127,255,127,240,255,255,0,>
<350,8195,10,156,36,20,20,164,133,>
<3B7,642,255,127,143,127,64,>
<581,4130,32,0,3,>
<673,70,0,255,255,255,255,0,>
<242,718,128,255,255,255,255,253,>
<657,20,0,>
<4AC,1128,>
<392,40,5,0,0,>
<211,7130,0,255,255,8,0,0,>
<12E,8197,127,255,127,224,255,255,0,>
<12E,8197,127,255,127,224,255,255,0,>
<12E,8198,128,0,127,224,255,255,0,>
<12E,8198,128,0,127,224,255,255,0,>
<350,8195,10,156,36,20,20,164,133,>

many thanks :)
User avatar
trik
 
Posts: 3
Joined: Fri Oct 23, 2015 2:34 pm
Location: Italy

Re: Sniffing the CAN-BUS with the SuperSniffer Software v1.x

Postby MartinViljoen » Sun Jan 10, 2016 8:51 pm

Hi Trik.

No its not 9bits or anything, its the software causing that I'm battling to get rid of it.

Your vehicle sends out a constant stream of CAN-BUS data, It couldn't care less if you managed to read it or not, so there's no confirmation.
So the Sniffer has some checks and tasks that takes time, so it ends up skipping a some of the data,

I.E <1234,255,255,255,255,255,255,255,255> becomes <1234,,255,255> or something similar, In the code it actually detects common errors and filters them out
which makes it good "Looking" but might cause you to miss some messages.

In your case it wasn't clever enough to filter out your message. The only way around this is to play with the read interval in options and to also set it to a lower baud rate.
The real solution is to redevelop the function that reads the stream with a different and more reliable approach.
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 v1.x

Postby trik » Tue Jan 12, 2016 1:05 pm

Hi Martin, many thanks for Your replay,
I've tried to catch some events (light on/off, window Up/down etc) but nothing happen :( and after some minutes the software crash (the same problem of Tatoo99 on post 8 - may be my notebook is too old...).
I have connected the CAN wires to the obd2 connector, may be this the problem?
User avatar
trik
 
Posts: 3
Joined: Fri Oct 23, 2015 2:34 pm
Location: Italy

Re: Sniffing the CAN-BUS with the SuperSniffer Software v1.x

Postby fntslz » Sat Feb 20, 2016 11:42 am

Hello to all...
i have the Opel Astra j
I'm also trying to read the can-bus data but I can not ...
I use Arduino yun and can-bus shield v1.2 ...
can you give me a hand?
P.S. capu81 you're Italian?
thank you.
fntslz
 
Posts: 1
Joined: Fri Feb 05, 2016 4:00 pm
Location: Italy

PreviousNext

Return to OBD2 & CAN-BUS Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron