Pages: 1 2 [3]
Author Topic: CAN Vehicle Information Display - Should I sniff the CAN bus or request values?  (Read 50987 times)
woj
Hero Member
*****

Karma: +43/-3
Offline Offline

Posts: 500



Are you sure you want to drive a tablet with four wheels? Wink
Logged
TRespect
Full Member
***

Karma: +1/-0
Offline Offline

Posts: 72



I have been driving a windows PC with four wheels for a long time already :-)
Logged
tao13
Sr. Member
****

Karma: +17/-47
Offline Offline

Posts: 471



Hi all.
Today i tried to receive can message from my ecu on the bench , only power connected , no other sensor or instrument.
I used an arduino nano and a mcp2515 can shield
I connected pin 58 and 60 from ecu to mcp shield and i received only messges from the end of the post, repetly.
Maybe the pin 58 and 60 from ecu is only to send data to instrument cluster , but if it is like this what can pins arrived in OBD socket?
I'll tri to find an obd cable to cut and connect my mcp2515 shield directly on pin 6 and 14 on OBD and will see if receive something there or not.

Standard ID: 0x588       DLC: 3  Data: 0x08 0x00 0x7E
Standard ID: 0x380       DLC: 8  Data: 0x80 0x80 0x00 0x00 0x00 0x00 0x00 0x00
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0x0A 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x380       DLC: 8  Data: 0x80 0x80 0x00 0x00 0x00 0x00 0x00 0x00
Standard ID: 0x288       DLC: 8  Data: 0x0A 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x288       DLC: 8  Data: 0xE8 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x380       DLC: 8  Data: 0x80 0x80 0x00 0x00 0x00 0x00 0x00 0x00
Standard ID: 0x380       DLC: 8  Data: 0x80 0x80 0x00 0x00 0x00 0x00 0x00 0x00
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0x0A 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0x56 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x480       DLC: 8  Data: 0x84 0x6C 0x00 0x00 0x00 0x00 0x00 0xE8
Standard ID: 0x288       DLC: 8  Data: 0x8F 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0xE8 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x488       DLC: 8  Data: 0x00 0x17 0x62 0x7E 0xA6 0x00 0x00 0x00
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0xE8 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x380       DLC: 8  Data: 0x80 0x80 0x00 0x00 0x00 0x00 0x00 0x00
Standard ID: 0x288       DLC: 8  Data: 0xE8 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x380       DLC: 8  Data: 0x80 0x80 0x00 0x00 0x00 0x00 0x00 0x00
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0xE8 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0xE8 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x488       DLC: 8  Data: 0x00 0x17 0x62 0x7E 0xA6 0x00 0x00 0x00
Standard ID: 0x288       DLC: 8  Data: 0x8F 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0x56 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x488       DLC: 8  Data: 0x00 0x17 0x62 0x7E 0xA6 0x00 0x00 0x00
Standard ID: 0x288       DLC: 8  Data: 0x0A 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x280       DLC: 8  Data: 0x11 0x61 0x00 0x00 0x17 0x00 0x17 0x17
Standard ID: 0x288       DLC: 8  Data: 0x56 0x5B 0x37 0x00 0x00 0x78 0x68 0x62
Standard ID: 0x288       DLC: 8  Data: 0x0A 0x5B 0x37 0x00 0x00 0x78 0x68 0x62


Logged
macxxx
Sr. Member
****

Karma: +30/-1
Offline Offline

Posts: 498



in OBD socket can pins are connected to the gateway or cluster ( eg.Passat B5 FL , A4 8E )

here you have some explanation of can frames ID: https://wiki.openstreetmap.org/wiki/VW-CAN#280_8_10.2F20.28Diesel.29ms_Motor_1
Logged
tao13
Sr. Member
****

Karma: +17/-47
Offline Offline

Posts: 471



Thanks for your answer.
I have a skoda octavia 1 , so i think i don't have a gateway.
If anybody have a copleate can id's list please attache it here.
many thanks in advance.
Logged
fknbrkn
Hero Member
*****

Karma: +186/-24
Offline Offline

Posts: 1455


mk4 1.8T AUM



read FR
Logged
airhaddock
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 9



What specific signals are you after?
Logged
tao13
Sr. Member
****

Karma: +17/-47
Offline Offline

Posts: 471



i try to send to ecu a request but without any response
Logged
tao13
Sr. Member
****

Karma: +17/-47
Offline Offline

Posts: 471



Hi again.
I made a little CAN sniffer with arduino.
On skoda octavia 1 on CANbus between cluster and ecu i got signal for canL and canH and i receive a lot of parameters.
I tried to send a CAN message on the same wires but i don't have any answer from ecu.
Anybody know if ME7.5 responde at CAN message, or if i must send message on other wires from cluster? I think on skoda 1 is only one can bus magsitral!
I used:
void setup() {
  Serial.begin(9600);

  Serial.println("CAN OBD-II engine RPM");

  // start the CAN bus at 500 kbps
  if (!CAN.begin(500E3)) {
    Serial.println("Starting CAN failed!");
    while (1);
  }

  // add filter to only receive the CAN bus ID's we care about
  if (useStandardAddressing) {
    CAN.filter(0x7e8);
  } else {
    CAN.filterExtended(0x18daf110);
  }
}

void loop() {
  if (useStandardAddressing) {
    CAN.beginPacket(0x7df,8);
  } else {
    CAN.beginExtendedPacket(0x18db33f1,8);
  }
  CAN.write(0x02); // number of additional bytes
  CAN.write(0x01); // show current data
  CAN.write(0x0c); // engine RPM
  CAN.endPacket();

  // wait for response
  while (CAN.parsePacket() == 0 ||
         CAN.read() < 3 ||          // correct length
         CAN.read() != 0x41 ||      // correct mode
         CAN.read() != 0x0c);       // correct PID

  float rpm = ((CAN.read() * 256.0) + CAN.read()) / 4.0;

  Serial.print("Engine RPM = ");
  Serial.println(rpm);

  delay(1000);
}
« Last Edit: December 31, 2021, 07:01:34 AM by tao13 » Logged
prj
Hero Member
*****

Karma: +1072/-482
Offline Offline

Posts: 6038



1Z is k-line duh.
CAN is only for comms between modules. All diags are on K.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
tao13
Sr. Member
****

Karma: +17/-47
Offline Offline

Posts: 471



PRJ , me7logger read ram variables on k-line?
Logged
prj
Hero Member
*****

Karma: +1072/-482
Offline Offline

Posts: 6038



Of course.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.022 seconds with 17 queries. (Pretty URLs adds 0s, 0q)