Page 1 of 1
Decoding Protocols
Posted: Fri Jun 20, 2014 4:06 am
by FluffyMcnumnums
Hi I'm wondering how you guys are determining and interpreting the OBDII protocols. I just noticed there was not a lot out of open stuff out there for decoding and determining RAW OBDII data and I want to build my own OBDII decoder from scratch. Did you guys use an ELM327 or STN1110 or developed your own algorithm? Is that what the STM32 MCU on the Freematics OBD-II Adapter does? Was your own code written on that to decode it? Sorry for all the questions, any help would be really appreciated.
Re: Decoding Protocols
Posted: Fri Jun 20, 2014 10:52 am
by stanley
We have our implementation and it is done with the onboard STM32 processor.
Re: Decoding Protocols
Posted: Sat Jun 21, 2014 8:19 am
by FluffyMcnumnums
Is it alright if I ask more on your implementation? The test vehicles are my friend's '00 Ford Focus (PWM) and my '09 Nissan Sentra (CAN) currently using an Arduino Due and OBD cable with what seem to be an ELM327 chip or the ELM commands in some form as a way to check if our system is working. How were you able to understand what the raw data from the vehicle means? Seems like a lot of that is manufacturer specific, especially the DTCs. I see your "elm327emu.ino", but does not seem to do much other than spit out what something it read from the STM32 I assume?
Re: Decoding Protocols
Posted: Mon Aug 04, 2014 4:59 pm
by CaddiSTS
There are two protocols for Ford:
1) legislated - SAE J1850 PWM which is not supported by the Freematics OBD - II Adapter's 32-bit protocol processor (CAN, KWP2000, ISO9141-2)
and
2) non legislated - Medium Speed CAN (MS-CAN) – Ford proprietary network. I'm not sure if the Freematics OBD - II Adapter's 32-bit protocol processor (CAN, KWP2000, ISO9141-2) can support MS-CAN.
I know this hardware is open source so it might be possible to add more protocols to the 32-bit protocol processor (CAN, KWP2000, ISO9141-2)? I have a Cadillac and Mustang and would be interested in adding SAE J1850 VPW (GM vehicles), Single Wire CAN (SW-CAN) – GM proprietary network, SAE J1850 PWM (Ford vehicles), and Medium Speed CAN (MS-CAN) – Ford proprietary network.
I also read somewhere that there is an issue with requesting information using ELM327 strings because the Freematics OBD - II Adapter outputs binary.
Re: Decoding Protocols
Posted: Mon Aug 04, 2014 11:04 pm
by stanley
Technically we can add J1850 support but this adds a lot of cost and will probably increase the enclosure size. So we didn't include it. For proprietary protocols, I am sorry we didn't spend any time on this.
Re: Decoding Protocols
Posted: Tue Aug 05, 2014 5:07 am
by CaddiSTS
Have you thought about using the STTN1170 chip in the Freematics OBD II adapter?
http://www.obdsol.com/solutions/chips/stn1170/
Re: Decoding Protocols
Posted: Wed Aug 06, 2014 12:19 am
by stanley
We will NEVER use products from this company.
Re: Decoding Protocols
Posted: Mon Dec 08, 2014 7:18 am
by Marek
stanley wrote:Technically we can add J1850 support but this adds a lot of cost and will probably increase the enclosure size. So we didn't include it. For proprietary protocols, I am sorry we didn't spend any time on this.
Hi Stanley,
could you elaborate on "more costs" and "increase the enclosure"? Does it mean that the hardware would need to be redesigned? Wouldn't it be more simple to just read out raw binary information and send via BT then decode the received raw data via a computer?
Re: Decoding Protocols
Posted: Tue Dec 09, 2014 2:02 am
by Black6spdZ
Is the decoder code for the STM32 available?
Re: Decoding Protocols
Posted: Mon Oct 12, 2015 3:30 am
by I_Code_do_this
Black6spdZ wrote:Is the decoder code for the STM32 available?
that's an interesting question.
the decoder code could be useful