projects22 / OBDII

OBDII app, Windows VS2010 and Android App Inventor code for reading current data of 15 common parameters.
4 stars 0 forks source link

Hi! Has an error using your app, coudl you help me? #1

Open jarrka opened 1 year ago

jarrka commented 1 year ago

I have this error: -INVALID TEXT OPERATION Segment: Start (17) + lenght (2) - 1 exceeds text lenght (0) The obd im using is the ELM327. Think that is the v1.5. And you say it has to be 2.1. Dont know if could be the problem. I'm trying it by bluethoot.

projects22 commented 1 year ago

Bluetooth plug has to be ELM327 v2.1. v1.5 and v2.1 give different text messages and my code isn't sophisticated enough to read different text. Since I have only one bluetooth plug I don't know if all makes are the same. The one I used: obd

jarrka commented 1 year ago

I has exactly the same, but i think that my version is 1.5 and your is 2.1, do you know what changes should i do in your app to make it work for me? Thanks!

jarrka commented 1 year ago

Thats what i have:

image

projects22 commented 1 year ago

I'm pretty sure that our plugs aren't genuine ELM327, they are imitation only and they likely to give text messages that are different to ELM, and work only on some apps. ELM say that they have never released v1.5 so we don't know what to expect from the one we got.
When you send text "0105" to the ELM the reply from v1.5 is: "41 05 5A " and from v2.1 the reply is: "7E8 03 41 05 5A ". The app reads the last 2 letters (5A) and converts them to a decimal value. You get an error because v1.5 is shorter text and the app can't find the 17th letter. To correct the error you need to change the number of letter to read. It can be a complex process, it worth the effort only if you are interested in developing the code. Let me know which one out of the 5 apps you are using. I'll send you an app that only writes the text of the reply so I can see what may need correction. If you only need an app that works you can find many free apps on the net.

projects22 commented 1 year ago

I've added a new version OBD2-BT-10 , it works with several obd2 plugs. Try it and please let me know if it works with your BLUETOOTH Device.

jarrka commented 1 year ago

Now it say an error to try connect to the Bluetooth, when i click in the search botom i get an error that says erros starting discovery service or something like that… But in the old app it works (the Bluetooth) then i get the error that i told to you… And i have bought a new one device, the 2.1, in amazon, but i still getting the error that i told to you… in both apps, the both ones doesn’t work :/

El El mié, 8 feb 2023 a las 21:45, Moty @.***> escribió:

I've added a new version OBD2-BT-10 , it works with several obd2 plugs. Try it and please let me know if it works with your BLUETOOTH Device.

— Reply to this email directly, view it on GitHub https://github.com/projects22/OBDII/issues/1#issuecomment-1423217319, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5UZ2ADFXBYVJ6N7D5XAA6LWWQAWHANCNFSM6AAAAAAUQFY3L4 . You are receiving this because you authored the thread.Message ID: @.***>

projects22 commented 1 year ago

Please let me know which app you had the problem of INVALID TEXT OPERATION and the Bluetooth works. If it's "OBD2-Bluetooth-AI" then try the corrected version I added today "OBD_Bluetooth_AI_10".

jarrka commented 1 year ago

The invalid text was in the OBD2-Bluetooth-AI, as you say. Today i'm gived up to OBDs and App inventor af. Because i was reading all your code adn try to replicate and modified wasn't able. I will try this OBD_Bluetooth_AI_10, but tomorrow haha. Wish me good luck because im tired to all of this, just dont understand what is going on... :( Thank you by the way, I'll keep you updated. ;)

El jue, 9 feb 2023 a las 18:31, Moty @.***>) escribió:

Please let me know which app you had the problem of INVALID TEXT OPERATION and the Bluetooth works. If it's "OBD2-Bluetooth-AI" then try the corrected version I added today "OBD_Bluetooth_AI_10".

— Reply to this email directly, view it on GitHub https://github.com/projects22/OBDII/issues/1#issuecomment-1424560138, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5UZ2AGW2RGEHLCMSDIXN73WWUSYPANCNFSM6AAAAAAUQFY3L4 . You are receiving this because you authored the thread.Message ID: @.***>