kotlin-obd-api
kotlin-obd-api copied to clipboard
NonNumericResponseException while executing command [SPEED], response []
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:
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 and Elton, I am experiencing exactly the same problem. What shows to me:
Please, tell me if you get any clue, Doron. Thanks, Lucas.
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.
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:
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
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 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!
Same issue here...
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.
issues still exist :(
This issue should now be resolved as version 1.3.0 was released.