fr3ts0n / AndrOBD

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

Connected but no data is displayed in the app #71

Closed cfabio closed 5 years ago

cfabio commented 5 years ago

I am trying to use this app to get data from my car using a Vgate iCar 2 ELM327 WiFi OBD2 device.
It connects just fine but then nothing appears in the app, if I click in the menu on "get OBD data", "OBD vehicle info" or anything else I only get blank pages.
Any clue on how I can make this work?

Edit: I tried debugging with logcat but there is literally nothing interesting in the log even I select the most verbose logging option.

fr3ts0n commented 5 years ago

Thank you for your report.

Please could you send me the log? It is stored in files as described here: https://github.com/fr3ts0n/AndrOBD/wiki/Reporting-improvements---issues

Thx

cfabio commented 5 years ago

I missed that part or the wiki.
He is the log, there are indeed a few errors reported in the logs: AndrOBD.log.4.txt

fr3ts0n commented 5 years ago

Thanks for the log. Based on your log file, your problem looks very similar to the report of issue #70 (which I haven't received any details / log yet) It appears that you also use WIFI Elm adapter on Android 9.

Now that I have some details on this, I'll check into that.

cfabio commented 5 years ago

The phone I am trying this on actually runs lineageos 15.1 which is android 8.1.0

fr3ts0n commented 5 years ago

I don't have any V8.1 / V9 Hardware device yet, but I could reproduce the problem with android V9 emulator.

Here is a test version for you to verify the fix: https://t.me/AndrOBD_dev/212

Please let me know if this works for you

cfabio commented 5 years ago

Could you please attach the file to this post? I don't have telegram.

fr3ts0n commented 5 years ago

Here it is (in zip format) ... androbd-debug.zip

cfabio commented 5 years ago

Thanks for the link. I don't seem to be able to manually install this APK though, it tells me "App not installed".

fr3ts0n commented 5 years ago

Oh, yes, this is a debug version of the app, which does not contain any signature by the issuer (FDroid). Therefore you will have to remove the original F-Droid app before you can install the test version.

You may also have to allow installation of apps from other sources to get it installed.

fr3ts0n commented 5 years ago

PS: there is a FOSS version of telegram available on FDroid, which is a really good alternative to WhatsApp because it allows to use multiple clients (Mobile, Tablet, PC) on the same account simultaneously. (https://f-droid.org/de/packages/org.telegram.messenger/)

It's quite handy to exchange app versions, and report comments this way ...

mskorge commented 5 years ago

I'm seeing similar issues with my OnePlus 6 against a WiFi ELM adapter. Tried installing the zipped version after uninstalling from F-Droid but also got "App not installed".

This is what my log has: 2019-02-03 15:31:01.874 INFO CommService Connecting to 192.168.0.10 port 35000 2019-02-03 15:31:01.878 FINE CommService setState() NONE -> CONNECTING 2019-02-03 15:31:01.880 FINEST AndrOBD Handler notification: { when=-1ms what=1 obj=CONNECTING target=com.fr3ts0n.ecu.gui.androbd.MainActivity$3 } 2019-02-03 15:31:01.881 FINEST AndrOBD State change: { when=-2ms what=1 obj=CONNECTING target=com.fr3ts0n.ecu.gui.androbd.MainActivity$3 } 2019-02-03 15:31:33.331 SEVERE CommService failed to connect to /192.168.0.10 (port 35000) from /:: (port 41670): connect failed: ETIMEDOUT (Connection timed out) 2019-02-03 15:31:33.337 FINE CommService stop 2019-02-03 15:31:33.337 FINE CommService setState() CONNECTING -> OFFLINE 2019-02-03 15:31:33.338 FINE CommService setState() OFFLINE -> OFFLINE

cfabio commented 5 years ago

I couldn't install the app from the phone itself but running adb install -t app.apk did the trick. I can also confirm that @fr3ts0n fixed the issue, now I can connect to the device and get all kind of data from the ECU. Look forward to having the fix pushed to fdroid.

fr3ts0n commented 5 years ago

Fixed, released with V2.0.6