fr3ts0n / AndrOBD

Android OBD diagnostics with any ELM327 adapter
http://fr3ts0n.github.io/AndrOBD/
GNU General Public License v3.0
1.44k stars 309 forks source link

STN chips support (ObdLink devices etc.) #130

Open aha999 opened 4 years ago

aha999 commented 4 years ago

AndrOBD does currently not fully support STN chips from Obd Solutions.

The STN11xx/21xx OBD Interpreter ICs are based on the robust OBDLink® technology stack and provide a fast and cost-effective way to add OBD functionality to your project. All OBD interpreter ICs on this page are fully compatible with the de facto standard ELM327 command set, while outperforming the original ELM327 IC in every category: stability, performance, features and price.

OBD2 adapters with the STN chips are ELM327 compatible, but also have some extra functionalities, that app developers need to implement, to fully support them.

I contacted ObdLink support and they provided me with a link below with the instructions and code for supporting their chips/adapters.

OBD Development page and STN guide: https://www.scantool.net/forum/index.php?topic=14767.0

Included in their answer:

You can use the FRPM listed in this page to implement support for the OBDLink line of scan tools.

If AndrOBD would support them it would increase the obd2 adapter support, as OBDLink devices are popular and you could add "STN chips" to supported adapters/chips in the description.

Extra:

richtong commented 3 years ago

wow this would be great!

fr3ts0n commented 3 years ago

AFAIK the STN adapters are functionally fully suported since they emulate ELM command set.

richtong commented 3 years ago

Oh that’s good to know. I thought they didn’t elumate the elm instruction set. Will try that.

Sent from my iPhone

On Dec 13, 2020, at 08:47, Erwin Scheuch-Heilig notifications@github.com wrote:

 AFAIK the STN adapters are functionally fully suported since they emulate ELM command set.

Are there any important features missing to consider these as supported? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

richtong commented 3 years ago

Seems like you should close this issue :-)

aha999 commented 3 years ago

But can we be sure that it fully supports STN chips with the STN advanced functions which are not for elm327, just by guessing because it's mostly backwards compatible with ELM327 ?

richtong commented 3 years ago

I have one and can test it.

Sent via Superhuman iOS ( https://sprh.mn/?vip=rich@tongfamily.com )

On Fri, Jan 8 2021 at 16:02, Klemen Skerbiš < notifications@github.com > wrote:

But can we be sure that it fully supports STN chips just by guessing ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub ( https://github.com/fr3ts0n/AndrOBD/issues/130#issuecomment-757054805 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AANTCRZKETIGBMUEKDMGVFLSY6MIVANCNFSM4SCN7E5Q ).

aha999 commented 3 years ago

i've asked them this and this was their reply: if AndrOBD doesn't support "advanced feature set of STN" it doesn't mean that STN is fully supported. slika

richtong commented 3 years ago

Yes somethings are convenient with stn. For instance to set baud rate to highest is stbrd 2000000 whereas for commands it’s the divisor of 4000000 since the user clock runs at 4Mhz on the series bus st the command is like arbr 2

Sent via Superhuman iOS ( https://sprh.mn/?vip=rich@tongfamily.com )

On Thu, Jan 14 2021 at 11:03, Klemen Skerbiš < notifications@github.com > wrote:

i've asked them this and this was their reply: slika ( https://user-images.githubusercontent.com/50620416/104636338-7eaf2e80-56a3-11eb-9e7e-e5ce7279b84e.png )

— You are receiving this because you commented. Reply to this email directly, view it on GitHub ( https://github.com/fr3ts0n/AndrOBD/issues/130#issuecomment-760405049 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AANTCR54Q7PAGGTPNSSRUATSZ45ZPANCNFSM4SCN7E5Q ).

richtong commented 3 years ago

Exactly expained in https://www.scantool.net/blog/switching-communication-baud-rate/

Sent via Superhuman iOS ( https://sprh.mn/?vip=rich@tongfamily.com )

On Thu, Jan 14 2021 at 20:40, Rich Tong < rich@tongfamily.com > wrote:

Yes somethings are convenient with stn. For instance to set baud rate to highest is stbrd 2000000 whereas for commands it’s the divisor of 4000000 since the user clock runs at 4Mhz on the series bus st the command is like arbr 2

Sent via Superhuman iOS ( https://sprh.mn/?vip=rich@tongfamily.com )

On Thu, Jan 14 2021 at 11:03, Klemen Skerbiš < notifications@github.com > wrote:

i've asked them this and this was their reply: slika ( https://user-images.githubusercontent.com/50620416/104636338-7eaf2e80-56a3-11eb-9e7e-e5ce7279b84e.png )

— You are receiving this because you commented. Reply to this email directly, view it on GitHub ( https://github.com/fr3ts0n/AndrOBD/issues/130#issuecomment-760405049 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AANTCR54Q7PAGGTPNSSRUATSZ45ZPANCNFSM4SCN7E5Q ).

richtong commented 3 years ago

And that should stsbr and the method described there is a little scary. It’s permanent so you can brick the device. STSBR is not. The correct soft at command at ATBRD 2

Sent via Superhuman iOS ( https://sprh.mn/?vip=rich@tongfamily.com )

On Thu, Jan 14 2021 at 20:41, Rich Tong < rich@tongfamily.com > wrote:

Exactly expained in https://www.scantool.net/blog/switching-communication-baud-rate/

Sent via Superhuman iOS ( https://sprh.mn/?vip=rich@tongfamily.com )

On Thu, Jan 14 2021 at 20:40, Rich Tong < rich@tongfamily.com > wrote:

Yes somethings are convenient with stn. For instance to set baud rate to highest is stbrd 2000000 whereas for commands it’s the divisor of 4000000 since the user clock runs at 4Mhz on the series bus st the command is like arbr 2

Sent via Superhuman iOS ( https://sprh.mn/?vip=rich@tongfamily.com )

On Thu, Jan 14 2021 at 11:03, Klemen Skerbiš < notifications@github.com > wrote:

i've asked them this and this was their reply: slika ( https://user-images.githubusercontent.com/50620416/104636338-7eaf2e80-56a3-11eb-9e7e-e5ce7279b84e.png )

— You are receiving this because you commented. Reply to this email directly, view it on GitHub ( https://github.com/fr3ts0n/AndrOBD/issues/130#issuecomment-760405049 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AANTCR54Q7PAGGTPNSSRUATSZ45ZPANCNFSM4SCN7E5Q ).

aha999 commented 3 years ago

@fr3ts0n See this PDF of extra features comparison: https://www.obdsol.com/downloads/stn1110_vs_elm327.pdf

slika

autoMD commented 3 years ago

ObdLink MX supported ST cmd for SWCAN (most GMC car) and MSCAN (most Ford car). If you need for OEM ECU, need for ST cmd plus. I like supper AndrOBD project. I'm reading the code, but I don't understand. I don't smarter coder but know many car protocol. :)