Sonsivri

Electronics => Projects => Topic started by: skullkar on December 19, 2014, 05:00:14 17:00



Title: OBD ii Stack
Post by: skullkar on December 19, 2014, 05:00:14 17:00
Hi

I was looking for OBD Stacks, I found a company called www.obdexperts.co.uk, how ever when I asked them about there stack they were so rude and did not want to do business with the likes of me lol.

So I am asking who would like to join in creating a FREE OBD Stack for donations?
Like FreeRTOS? If any one has a stack they would like to share or charge for please contact me.
I really would like to create a FREE OBD Stack, starting with microchips and moving to other chips.

Thank you


Title: Re: OBD ii Stack
Post by: Gallymimu on December 20, 2014, 05:34:15 05:34
hahaha that's a bummer,

What did you offer them in exchange for use of what probably cost them hundreds of thousands of dollars (if not more) to develop?

I hope you didn't call them and say "Hey, I've got an idea that will undercut your business, do you want to help me?"


Title: Re: OBD ii Stack
Post by: skullkar on December 22, 2014, 04:33:24 16:33
LOL, I asked them for a price list for the stack. They wanted to know more about me, I told them and they said sorry we cant help lol.
Because they are snobby britsh lol. Oh well, I decided to write a stack myself and give it away for free with donations like the FreeRTOS stack.
So any one want to help?


Title: Re: OBD ii Stack
Post by: Wilksey on December 22, 2014, 05:45:10 17:45
Don't stereotype, I am British.

You are correct WRT the fact that they do not want to deal with small companies or individuals, the reason being support I think, I approached them and asked them and they said it would cost a few thousand ££'s (yes, POUNDS not dollars), I can do CAN Bus which suits me at the moment, I haven't had time to look into any other protocols, CAN Bus is practically open source on the net, mind you, so are the other protocols if you search enough.

Your best bet (and mine when I have chance to actually get around to it) is to buy an ECU Sim, you can get one for a few hundred dollars.


Title: Re: OBD ii Stack
Post by: CocaCola on December 22, 2014, 10:05:14 22:05
I don't now your end goal, but you might find it easier to start with the ELM327 and build upon that...


Title: Re: OBD ii Stack
Post by: Signal on December 22, 2014, 10:54:13 22:54
There is a cheaper alternative to ELM327 - STN1170 http://www.obdsol.com/solutions/chips/stn1170/  Someone said that it has more features, but I did not study it yet.


Title: Re: OBD ii Stack
Post by: CocaCola on December 22, 2014, 11:10:16 23:10
There is a cheaper alternative to ELM327 - STN1170 http://www.obdsol.com/solutions/chips/stn1170/  Someone said that it has more features, but I did not study it yet.

You can get (likely clone) ELM327 bluetooth dongles inside an OBDII connector for about $5 delivered from Asia, that is cheaper then a single STN1170 chip and you get the connector as well as bluetooth chipset...  Cheap way to tinker...


Title: Re: OBD ii Stack
Post by: skullkar on December 23, 2014, 01:41:03 13:41
Hi, I was kidding about being British  :P. Thank you and I know all the options out there. I really want to write a full OBD stack and open source it. I don't like it when companies are discriminating against the little guys. I have brought the ECU simulators, they are on the way. I have brought the $5 obd and I will intercept the commnications between them. I am ordering a storage scope next.

I was hopping that some-one would have some starter code to start with, I am looking at using the PIC32MX270 device.

Thank you


Title: Re: OBD ii Stack
Post by: Signal on December 23, 2014, 03:46:16 15:46
I am looking at using the PIC32MX270 device.
Selected part does not have a built-in CAN controller.
Without CAN you have to use external MCP2515, without PPS - external multiplexer for CANRX/CANTX, so MX530 is the minimum (in case of PIC32).To simplify development of J1850 transceiver - fast predictable interrupts is a good option - so PIC24 maybe better (Obdexperts solved this task using PIC32, so maybe it is not a big problem).

Anyway I believe that this is not right if the main target of a project is just to spite someone ;)


Title: Re: OBD ii Stack
Post by: Wilksey on December 23, 2014, 04:48:44 16:48
Why do you want to use a 32 bit micro?
Use an 18f or 24f with built in CAN controller, you will still need the transceiver chip like the MCP 2551.

Unfortunately the automotive industry is an expensive one, and if people can afford to ignore the small fish then i'm afraid they will, and there is nothing stopping them, you try buying a few of the chips from Broadcom that they use in various routers etc, you will find the same response, unless you buy 1 million of them they don't care.

I believe ISO/KWP can be achieved by a RS232 level type shifter from what i've read.
PWM and VPW are supposedly very similar.  I think one is 8V rather than 5 or 12.
I think there are a few settings options for can, 500kbps, 250kbps 11 bit, 29 bit etc mine were set up for 500kbps 11 bit.
If I could afford the simulator I would have probably done all of the protocols.


Title: Re: OBD ii Stack
Post by: skullkar on December 23, 2014, 09:38:01 21:38
The main purpose of this project is to create an OBD stack that we small fish can use for personal projects like showing rpm and speed.
Oh yes I did not think about the can controller on the pic32mx270, i guess i have to go for the pic24 for that.
Thanks for bringing that up, note this project is to find all the open sources to create a personal OBDD stack like FreeRTOS did when we cant afford $5k for other RTOS.


Title: Re: OBD ii Stack
Post by: CocaCola on December 23, 2014, 09:46:19 21:46
I am looking at using the PIC32MX270 device.

The ELM327 is a PIC18F2480, I would consider looking at that series of chips as a starting point as it's obviously a working choice...  Also consider the original ELM327 chips lock bits were not set, so there are public dumps of the original hex out there that can be reversed or at least used to help decode the intercepted communications...


Title: Re: OBD ii Stack
Post by: Signal on December 23, 2014, 10:30:59 22:30
The main purpose of this project is to create an OBD stack that we small fish can use for personal projects like showing rpm and speed.
Small fish can easily get rpm and speed without any higher protocols just listening for appropriate single CAN packet.
Pros: simple!
Cons: vehicle specific solution


Title: Re: OBD ii Stack
Post by: Wilksey on December 23, 2014, 10:46:36 22:46
Question for you, do you require all protocols?
CAN is mandatory on all >=2008 cars?


Title: Re: OBD ii Stack
Post by: skullkar on December 23, 2014, 11:18:57 23:18
Hi well it would be nice to have all protocols, how ever getting started one CAN would be great. What did you have in mind?


Title: Re: OBD ii Stack
Post by: Wilksey on December 24, 2014, 03:17:28 03:17
Just wondered if there was a reason you wanted all protocols.

There is enough open source projects on the web that will allow you to talk to your car via CAN bus.

If you have a ECU sim you are better placed than most of us to implement the other protocols.

I do wonder, regardless of what you say now, if you did manage to achieve what you wanted if you would actually release the "stack" FOC


Title: Re: OBD ii Stack
Post by: skullkar on December 24, 2014, 04:42:52 04:42
I think the problem with the protocols is determining the commands and if there is a CRC involved. So if someone can find docs on the communications then we can code it right. the ECU simulator will help to debug it. I believe there are ISO documents but I don't understand them. If only I could get the communications like talking to an I2C eeprom device. I found a cheap ECU sim on amazon for $$130 at

http://www.amazon.com/ScanTool-602201-ECUsim-Simulator-Development/dp/B008NAH6WE/ref=sr_1_1?ie=UTF8&qid=1419396193&sr=8-1&keywords=ecu+simulator



Title: Re: OBD ii Stack
Post by: CocaCola on December 24, 2014, 04:55:23 04:55
I found a cheap ECU sim on amazon for $$130 at

http://www.amazon.com/ScanTool-602201-ECUsim-Simulator-Development/dp/B008NAH6WE/ref=sr_1_1?ie=UTF8&qid=1419396193&sr=8-1&keywords=ecu+simulator

From the reviews...

"Be aware that it's only an entry model. As shipped, it only talks "CAN" and the rest of the protocols are locked. It requires four $200 software upgrades to run all five protocols (J1850 PWM, J1850 VPW, ISO 9141-2, ISO 14230-4 (KWP2000), ISO 15765 (CAN)) Furthermore, the "Standard" version of this board is what's shipped. There's a $300 upgrade for Professional and a $600 upgrade for Ultimate. So this means If you are REALLY going to test or develop software for an OBD-II device, you will need to eventually spend up to another $1000."

So not exactly cheap in the end...


Title: Re: OBD ii Stack
Post by: skullkar on December 24, 2014, 05:18:07 05:18
yup i know,I could not find how to unlock the protocols nothing exists on internet.

There is also

https://www.ozenelektronik.com/multiple-protocol-obd-ecu-simulator-p.html

I know of the simulators, I am looking at the protocols data communication.

Posted on: December 24, 2014, 06:11:00 06:11 - Automerged

Oh one more , I found one from Australia for $229 for all protocols.

http://freematics.com/store/index.php?route=product/product&product_id=53


Posted on: December 24, 2014, 06:15:29 06:15 - Automerged

He also has a new one controlled form the PC for $209

http://freematics.com/store/index.php?route=product/product&product_id=71


Title: Re: OBD ii Stack
Post by: bbarney on December 24, 2014, 06:06:56 06:06
Stop wasting everyones time
I find this all really funny , 6 years after asking the same shit your still trying to build a handheld code reader you can buy for $25 these days
You expect us to believe since  2008 you haven't learned anything to help you build this yet ? there is so much info out there now if you only looked for it
Your only here with a new name  after your $5 donation to get back in after being muted by me for never posting anything in 7 years here
 (old name graywolf) you are just padding your post count to avoid another mute - nice try
post from 2008       http://www.sonsivri.to/forum/index.php?topic=7507.msg42060#msg42060

Go blow smoke up someone else's ass preferably on a different forum - muted again


Title: Re: OBD ii Stack
Post by: Gallymimu on December 27, 2014, 05:11:47 05:11
Stop wasting everyones time
I find this all really funny , 6 years after asking the same shit your still trying to build a handheld code reader you can buy for $25 these days
You expect us to believe since  2008 you haven't learned anything to help you build this yet ? there is so much info out there now if you only looked for it
Your only here with a new name  after your $5 donation to get back in after being muted by me for never posting anything in 7 years here
 (old name graywolf) you are just padding your post count to avoid another mute - nice try
post from 2008       http://www.sonsivri.to/forum/index.php?topic=7507.msg42060#msg42060

Go blow smoke up someone else's ass preferably on a different forum - muted again

Why'd ya have to quash our DREAMS.  He was gonna turn the OBDII world UPSIDE DOWN!!!


Title: Re: OBD ii Stack
Post by: bbarney on December 27, 2014, 03:55:42 15:55
Here's a tip - don't hold your breath waiting  ;)
I can always unmute him , nah that ain't going to happen  :P

And just in case anyone can't wait for skullkar  to sneak back in here with his new invention try this ,can't say I ever saw one cheaper
http://www.ebay.com/itm/Super-Mini-ELM327-Bluetooth-OBD2-OBD-II-Diagnostic-Car-Auto-Interface-Scanner-CD-/291306593076?pt=LH_DefaultDomain_0&hash=item43d339db34


Title: Re: OBD ii Stack
Post by: fpgaguy on December 29, 2014, 06:50:34 18:50
would this work ?
http://vi-firmware.openxcplatform.com/en/master/


Title: Re: OBD ii Stack
Post by: Gallymimu on December 30, 2014, 12:04:22 00:04
Here's a tip - don't hold your breath waiting  ;)
I can always unmute him , nah that ain't going to happen  :P

And just in case anyone can't wait for skullkar  to sneak back in here with his new invention try this ,can't say I ever saw one cheaper
http://www.ebay.com/itm/Super-Mini-ELM327-Bluetooth-OBD2-OBD-II-Diagnostic-Car-Auto-Interface-Scanner-CD-/291306593076?pt=LH_DefaultDomain_0&hash=item43d339db34

hehe, you know I was being facetious right?


Title: Re: OBD ii Stack
Post by: bbarney on December 30, 2014, 12:09:36 00:09
hehe, you know I was being facetious right?

Just a minute while I look up that word   :P Ok found it - yes I knew   ;)


Title: Re: OBD ii Stack
Post by: CocaCola on December 30, 2014, 01:31:01 01:31
And just in case anyone can't wait for skullkar  to sneak back in here with his new invention try this ,can't say I ever saw one cheaper
http://www.ebay.com/itm/Super-Mini-ELM327-Bluetooth-OBD2-OBD-II-Diagnostic-Car-Auto-Interface-Scanner-CD-/291306593076?pt=LH_DefaultDomain_0&hash=item43d339db34

They can be had cheaper, under $5 delivered with BIY and if you have patience you can literally get them for 99 cents delivered on Ebay...   It took me a few weeks worth of 99 cent bidding, but I finally did win one for 99 cents with free shipping a few months ago...


Title: Re: OBD ii Stack
Post by: bbarney on December 30, 2014, 04:32:00 04:32
They can be had cheaper, under $5 delivered with BIY and if you have patience you can literally get them for 99 cents delivered on Ebay...   It took me a few weeks worth of 99 cent bidding, but I finally did win one for 99 cents with free shipping a few months ago...
Hey I wasn't really shopping for one it was just the first one that popped up when I looked  ;D


Title: Re: OBD ii Stack
Post by: CocaCola on December 30, 2014, 04:40:30 04:40
Hey I wasn't really shopping for one it was just the first one that popped up when I looked  ;D

At the price they are selling and the fact most people have smart phones, it's a no brainier for me to have one laying around...  I keep mine in the glove box, so it's always handy as I have heard from way too many friends that panic when the check engine light comes on and end up paying $75 to find out their wife/kid didn't tighten gas cap when they filled up...


Title: Re: OBD ii Stack
Post by: bbarney on December 30, 2014, 03:42:32 15:42
At the price they are selling and the fact most people have smart phones, it's a no brainier for me to have one laying around...  I keep mine in the glove box, so it's always handy as I have heard from way too many friends that panic when the check engine light comes on and end up paying $75 to find out their wife/kid didn't tighten gas cap when they filled up...
Ah the dreaded large vacuum leak or small leak if it's half on :)  , they are handy if you know how the emissions system work's but in the end they only steer you in the right direction for real problems it takes a lot more troubleshooting to find the real problem