Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

androbd doesn't display data via usb and crashes after changing settings #139

Closed
20210213 opened this issue Feb 13, 2021 · 11 comments
Closed

Comments

@20210213
Copy link

With androbd V2.2.3 (20203) under android 9 the following happens:

  1. "clear application data" is required to start with.
  2. Plug in the usb, confirm to launch androbd, choose usb interface works OK.
  3. Connection seems to be established but no data are displayed.
  4. After changing any settings (e. g. suppress ATZ, change baud rate), closing the programme and restarting with step 2, android immediately terminates androbd with a corresponding notification. To start again, step 1 is required.
    Expected behaviour is that androbd connects via the ELM327 USB OBD II adapter to the CAN bus and displays the data e. g. of a 2009 W169. The last version working this way was com.fr3ts0n.ecu.gui.androbd_20103.apk.
    AndrOBD.log.2.txt
    AndrOBD.log.3.txt
@fr3ts0n
Copy link
Owner

fr3ts0n commented Feb 13, 2021

Thank you for your report,

Have you tried to start AndrOBD via launcher button first after 'clear application data'?

  • This step surprises me, since it is not really necessary to clear the data from previous V2.2.x versions
  • Please also check the app permission storage to be set.

Since there is no log output after the change to CONNECTING state, could you also check with logcat output if there is any more information what happens after that point?

Thx

@20210213
Copy link
Author

Have you tried to start AndrOBD via launcher button first after 'clear application data'?
Yes: It will then ask for the bluetooth permission.

  • Allowing bluetooth will make it search for a bluetooth device (which is not available because the adapter has an usb connection).
  • Denying bluetooth will make it turn to demo mode.
    Anyway, connecting the usb cable afterwards makes it detect the usb connection which can then be chosen.
  • After the message that the serial connection has been established no data are displayed (with the adapter plugged into the socket of the car with the ignition being turned on). At least the general information (number...) should probably appear.
  • When the demo mode is active the respective data are shown.
    Permission to access the storage has been granted; the log files are saved accordingly.
    Some log files from these attempts are attached (file names *.txt partially renamed to numbers of androbd and logcat.log of logcat).
    Thx!
    AndrOBD.log.4.txt
    logcat.log
    2259.txt
    2260.txt
    2653.txt
    2654.txt
    2655.txt
    3030.txt
    3068.txt
    3071.txt
    3074.txt

@fr3ts0n
Copy link
Owner

fr3ts0n commented Feb 15, 2021

I have found a bug which appears to be in there since V2.1.3 (like you have reported)

Here is a new test version which should fix the problem ...

https://t.me/AndrOBD_dev/230

Please could you retest with that version?
Thx

@20210213
Copy link
Author

Thank you! Unfortunately the packet installer (with rights granted to install from this source) asks whether to install the apk but ends up with an error message that the installation has not been performed.

@fr3ts0n
Copy link
Owner

fr3ts0n commented Feb 18, 2021

I have verified the apk to be valid. What is the error message you get?
Since this is a unsigned test apk your installer may refuse to install this over a F-Droid signed release version.
In that case it may require to uninstall the release version first.

@20210213
Copy link
Author

Thank you:
Installation of 2.2.4 indeed worked after removing the previous signed version.
2.2.4 did not crash anymore - the respective bug is obviously successfully fixed.
However it still doesn't display any data (from the car with ignition turned on, and although varying settings like baud rate; log attached). Any idea what might still be wrong?
AndrOBD.log.0.txt

@fr3ts0n
Copy link
Owner

fr3ts0n commented Feb 19, 2021

In your log file I can see some commands to be sent to your adapter, but there is never any response coming back from it ...

  • USB port seems to be opened successfully
  • TX message seems to be sent successfully
  • NO response detected

What adapter type is this?

Have you ever tried to talk to your adapter with a terminal program?
Can you see any response there?

@20210213
Copy link
Author

It is some probably Chinese no-name adapter "OBD II Interface USB V1.5".
As a cross-check I uninstalled the debug version androbd 2.2.4 and reinstalled the com.fr3ts0n.ecu.gui.androbd_20103.apk formerly from f-droid. After deleting storage, giving permission to access storage and disabling ATZ, the old version works, cf. the (shortened) log file attached.
So the adapter is obviously basically working, but there must be some change in the code after 2.1.3 which prevents the newer apks to run properly on this device.
log.txt

@fr3ts0n
Copy link
Owner

fr3ts0n commented Feb 20, 2021

The update of USB lib did require changes in lib calls.

Here is an updated test version.
https://t.me/AndrOBD_dev/231

Thanks for your re-tests

@20210213
Copy link
Author

That was it - the new test version works out of the box. Thank you!

@fr3ts0n
Copy link
Owner

fr3ts0n commented Feb 21, 2021

Yes 😃

I'll trigger a release to have the fix available on F-Droid soon...
Thank you for your efforts 👍

@fr3ts0n fr3ts0n closed this as completed Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants