Building a low cost OBD2 ECU Simulator

Re: Building a low cost OBD2 ECU Simulator

Postby MartinViljoen » Thu Mar 19, 2015 10:00 pm

Juanko wrote:Had a look at the variable resistor online... your help would really be appretiated Martin... the navara's fuel tank is taking strain with driving round testing obd2 units the whole day. I am bases in Irene.. or wecan try the remote help. Regards, Juan



How about we do this using team viewer, I can help you tomorrow night , say at around 8:00PM ?
Image
User avatar
MartinViljoen
 
Posts: 109
Joined: Mon Oct 06, 2014 5:23 pm
Location: Centurion South Africa

Re: Building a low cost OBD2 ECU Simulator

Postby farooquiirfan98 » Wed Apr 29, 2015 12:09 pm

Hi..Martin..!!!
I should appreciate your Job....You did it well...!!
what i need for simulator is what exactly you are transmitting through CAN...??
I mean 8 byte data and Frames Ids..!

Thanks & Regards.
Irfan.
farooquiirfan98
 
Posts: 2
Joined: Wed Apr 29, 2015 11:43 am

Re: Building a low cost OBD2 ECU Simulator

Postby MartinViljoen » Wed Apr 29, 2015 2:02 pm

farooquiirfan98 wrote:Hi..Martin..!!!
I should appreciate your Job....You did it well...!!
what i need for simulator is what exactly you are transmitting through CAN...??
I mean 8 byte data and Frames Ids..!

Thanks & Regards.
Irfan.


All good :D
Image
User avatar
MartinViljoen
 
Posts: 109
Joined: Mon Oct 06, 2014 5:23 pm
Location: Centurion South Africa

Re: Building a low cost OBD2 ECU Simulator

Postby farooquiirfan98 » Thu Apr 30, 2015 8:41 am

Hi Martin...!!
So can you show me ..what you are transmitting through CAN when request is made by STN1110 or ELM 327..??
farooquiirfan98
 
Posts: 2
Joined: Wed Apr 29, 2015 11:43 am

Re: Building a low cost OBD2 ECU Simulator

Postby cyberbob » Tue Jun 02, 2015 7:33 am

MartinViljoen wrote:I jus cant understand why it works for me and not for everyone else

It's easy.... ELM can be Original, Clone (pic18f2580 or pic18f25k80), and Fake (builded on Beken chips, usually answer that version is 2.1). So.... Fist two variants is working devices, but third is reaally shit.

Fake ELM -
Image

Image

Image

Image
cyberbob
 
Posts: 4
Joined: Sun May 31, 2015 5:21 pm

Re: Building a low cost OBD2 ECU Simulator

Postby mmessuri » Wed Jun 03, 2015 4:57 pm

All:

Please forgive me for this very newbie problem / question but I am new to both the Arduino and the CAN-BUS Shield v1.2 for it (from seed studio).

Now with that said, I am trying to follow along in the video for this OBD2 ECU Simulator but whenever I try to run the code I get the following message:
CAN BUS Shield init fail
Init CAN BUS Shield again

I have tried using different Can Bus Libraries: https://github.com/coryjfowler/MCP_CAN_lib, https://github.com/yexiaobo-seeedstudio/CAN_BUS_Shield, and https://github.com/Seeed-Studio/CAN_BUS_Shield

along with changing the various baud rates and serial rates:
CAN.begin(CAN_5KBPS)
Serial.begin(38400)

Since I am new to this device (Arduino) could someone please offer up some suggestions on how to get past this issue?

Thanks.

-- Michael --
mmessuri
 
Posts: 3
Joined: Wed Jun 03, 2015 4:45 pm

Re: Building a low cost OBD2 ECU Simulator

Postby MartinViljoen » Thu Jun 04, 2015 9:50 am

mmessuri wrote:All:

Please forgive me for this very newbie problem / question but I am new to both the Arduino and the CAN-BUS Shield v1.2 for it (from seed studio).

Now with that said, I am trying to follow along in the video for this OBD2 ECU Simulator but whenever I try to run the code I get the following message:
CAN BUS Shield init fail
Init CAN BUS Shield again

I have tried using different Can Bus Libraries: https://github.com/coryjfowler/MCP_CAN_lib, https://github.com/yexiaobo-seeedstudio/CAN_BUS_Shield, and https://github.com/Seeed-Studio/CAN_BUS_Shield

along with changing the various baud rates and serial rates:
CAN.begin(CAN_5KBPS)
Serial.begin(38400)

Since I am new to this device (Arduino) could someone please offer up some suggestions on how to get past this issue?

Thanks.

-- Michael --


Hi I will look at this for you tonight, I mostly heard of "Code Syntax" error your CAN-BUS shield does not seem to initialize. Will let you know soon
Image
User avatar
MartinViljoen
 
Posts: 109
Joined: Mon Oct 06, 2014 5:23 pm
Location: Centurion South Africa

Re: Building a low cost OBD2 ECU Simulator

Postby mmessuri » Thu Jun 04, 2015 2:29 pm

MartinViljoen:

First off thanks for your support and for this project.

Now concerning the issue that I posted about, after taking a step back from the situation I was finally able to solve the problem. It turns out that there was a CS pin change on newer CAN BUS shields (see below snippet from the seeedstudio wiki). Once I made this change I was able init the CAN BUS.

Again, thanks for everything and have a great day.


CAN BUS Shield init fail
As from CAN BUS shield V1.1 to latest version, we changed CS pin from D10 to D9 by default.
So please do this modification "MCP_CAN CAN(9); // Set CS to pin 9" in the example.
http://www.seeedstudio.com/wiki/CAN-BUS_Shield
mmessuri
 
Posts: 3
Joined: Wed Jun 03, 2015 4:45 pm

Re: Building a low cost OBD2 ECU Simulator

Postby craftycoder » Sun Jun 21, 2015 7:27 pm

I too cannot make this code work with a ScanTool dongle. The OBDWiz software errors saying it is not on. I can see differential pair traffic on the CANH-L lines during the connect process but it doesn't actually connect. I've confirmed the dongle works in the automobile. Any thoughts or should I buy a cheaper dongle? If so, which brand of ODB2 dongle is known to function?
craftycoder
 
Posts: 1
Joined: Sun Jun 21, 2015 7:19 pm

Re: Building a low cost OBD2 ECU Simulator

Postby litello » Wed Jul 08, 2015 3:28 pm

mmessuri wrote:
All:

Please forgive me for this very newbie problem / question but I am new to both the Arduino and the CAN-BUS Shield v1.2 for it (from seed studio).

Now with that said, I am trying to follow along in the video for this OBD2 ECU Simulator but whenever I try to run the code I get the following message:
CAN BUS Shield init fail
Init CAN BUS Shield again

I have tried using different Can Bus Libraries: https://github.com/coryjfowler/MCP_CAN_lib, https://github.com/yexiaobo-seeedstudio/CAN_BUS_Shield, and https://github.com/Seeed-Studio/CAN_BUS_Shield

along with changing the various baud rates and serial rates:
CAN.begin(CAN_5KBPS)
Serial.begin(38400)

Since I am new to this device (Arduino) could someone please offer up some suggestions on how to get past this issue?

Thanks.

-- Michael --


Hi I will look at this for you tonight, I mostly heard of "Code Syntax" error your CAN-BUS shield does not seem to initialize. Will let you know soon


Hi, I am also a newbie, and sorry for my english :) I have exactly the same problem than him. Could you please tell us what's wrong with the code?
litello
 
Posts: 2
Joined: Wed Jul 08, 2015 3:25 pm

PreviousNext

Return to OBD2 & CAN-BUS Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron