kotlin-obd-api icon indicating copy to clipboard operation
kotlin-obd-api copied to clipboard

NonNumericResponseException while executing command [SPEED], response []

Open DoronShaul opened this issue 4 years ago • 8 comments

Hi Elton, i'm trying to use your library in my android project. my project is in java, but i created a kotlin class for your library. here is my kotlin class: obdThread

everytime i run this code it gives me a NonNumericResponseException. it happens with all of the commands. can you please help me?

Thanks, Doron.

DoronShaul avatar Sep 07 '20 14:09 DoronShaul

Hi Doron and Elton, I am experiencing exactly the same problem. What shows to me:

image

Please, tell me if you get any clue, Doron. Thanks, Lucas.

Lucastmarques avatar Oct 02 '20 06:10 Lucastmarques

Hey @DoronShaul and @Lucastmarques I went over this issue this weekend and was able to confirm this is an issue. I'm guessing this can be a release issue as the API is working properly in an app I developed before.

I'll continue looking further to resolve this ASAP. Feel free to share any findings.

eltonvs avatar Oct 05 '20 18:10 eltonvs

Hi Elton, i'm trying to use your library in my android project. my project is in java, but i created a kotlin class for your library. here is my kotlin class: obdThread

everytime i run this code it gives me a NonNumericResponseException. it happens with all of the commands. can you please help me?

Thanks, Doron.

Hi Doron. Could you post the sample you're using for the BluetoothSocket? How do you get it from the OBD bluetooth?

Thank you! @DoronShaul

AlexandruSava avatar Oct 19 '21 06:10 AlexandruSava

Hi Elton,

I ran into the same issue as I tried to fire the VIN Command. What I fonud out so far, is that the response is empty. I added a delay time up to 500 ms and I got an answer form the OBD device I used. The problem now is, that the answer is not correct. It is just some cryptic chars. While I debugged your library (master branch) the correct VIN of my car was displayed only once in many attempts.

Another Thing I found out is, that when I fire the command several times in a row, the answer was changed. Maybe it's a buffering problem or something like that. The raw response seams to change if you use the command several times. Don't know if its a problem with my obd device. Other apps work properly with that one.

Do you have any idea how to fix that? I will try to paste some code, when I have time for that. (added this comment also to the other issue, seams to be the same problem)

Would love to hear from you

sai3ot

sai3ot-priv avatar Oct 22 '21 08:10 sai3ot-priv

Hi Elton,

I ran into the same issue as I tried to fire the VIN Command. What I fonud out so far, is that the response is empty. I added a delay time up to 500 ms and I got an answer form the OBD device I used. The problem now is, that the answer is not correct. It is just some cryptic chars. While I debugged your library (master branch) the correct VIN of my car was displayed only once in many attempts.

Another Thing I found out is, that when I fire the command several times in a row, the answer was changed. Maybe it's a buffering problem or something like that. The raw response seams to change if you use the command several times. Don't know if its a problem with my obd device. Other apps work properly with that one.

Do you have any idea how to fix that? I will try to paste some code, when I have time for that. (added this comment also to the other issue, seams to be the same problem)

Would love to hear from you

sai3ot

Hi, would you be so kind to help me as well with the bluetooth connection? I don't know how to retrieve the Bluetooth socket in order to connect it to this library. Thank you so much!

AlexandruSava avatar Oct 22 '21 08:10 AlexandruSava

Same issue here...

cliffgr avatar Dec 30 '21 14:12 cliffgr

Hi,

Thank you for your lib, I try to avoid Python as much as I can and nearly all other libs are implemented in it.

I am also facing this issue. I've been writing a Mock OBD Adapter and I face the same issue unless I step through the code with a debugger. This could well be due to an issue on my side, concurrency and Sockets are tricky, but seeing as the same issue is occurring for other users, I suspect there's a more common problem.

LDuncAndroid avatar Jun 01 '22 23:06 LDuncAndroid

Hey!

Version 1.2.0 was just released and it should fix this issue.

eltonvs avatar Jul 11 '22 13:07 eltonvs

issues still exist :(

chubecode avatar Feb 02 '23 07:02 chubecode

This issue should now be resolved as version 1.3.0 was released.

eltonvs avatar Jun 22 '23 20:06 eltonvs