fr3ts0n / AndrOBD

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

Some new cheap ELM327 adapters work with other apps like Torque but not AndrOBD #233

Open DevelLevel opened 1 year ago

DevelLevel commented 1 year ago

Describe the bug

After connecting to the adapter in Android Bluetooth settings successfully and pressing on connect in the top right corner of AndrOBD a toast comes up saying something like "Connected to OBD II", instantly followed by another toast saying something like "Device disconnected". This is the same behavior as in issue 64, though it can't be resolved with disabling the ATZ command...

To Reproduce

Steps to reproduce the behavior:

  1. Plug the adapter into the OBD 2 port and turn the ignition on
  2. Connect to the Bluetooth device in Android settings (In my case with the password: "1234")
  3. Open AndrOBD, press connect and select the ELM327 Bluetooth device
  4. Observe the error

Expected behavior

  1. Plug the adapter into the OBD 2 port and turn the ignition on
  2. Connect to the Bluetooth device in Android settings (In my case with the password: "1234")
  3. Open AndrOBD, press connect and select the ELM327 Bluetooth device 4. Get a established connection for a prolonged time and the ability to read data.

AndrOBD Debug log files

Log without the ATZ command disabled
2023-03-19   16:20:36.590    INFO    AndrOBD AndrOBD V2.5.5 starting
2023-03-19  16:20:36.642    INFO    AndrOBD Conversion: metric
2023-03-19  16:20:42.479    INFO    CommService BT socket - UUIDs:00001101-0000-1000-8000-00805f9b34fb,
2023-03-19  16:20:42.480    INFO    CommService BEGIN mBtConnectThread SocketType:Insecure
2023-03-19  16:20:43.261    INFO    CommService BEGIN mBtWorkerThread
2023-03-19  16:20:43.262    INFO    stream  RX Thread started
2023-03-19  16:20:43.268    WARNING stream  com.fr3ts0n.prot.StreamHandler@9ac83e3 RX: End of stream!
2023-03-19  16:20:43.269    INFO    stream  RX Thread stopped
2023-03-19  16:20:43.269    INFO    CommService Closing BT socket
Log when disabling various commands such as ATZ
2023-03-19   16:46:33.416    INFO    AndrOBD AndrOBD V2.5.5 starting
2023-03-19  16:46:33.417    FINER   com.fr3ts0n.pvs +PvListener:com.fr3ts0n.pvs.PvList[null]->com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f
2023-03-19  16:46:33.417    FINER   com.fr3ts0n.pvs +PvListener:com.fr3ts0n.pvs.PvList[null]->com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f
2023-03-19  16:46:33.417    FINER   com.fr3ts0n.pvs +PvListener:com.fr3ts0n.pvs.PvList[null]->com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f
2023-03-19  16:46:33.418    FINER   com.fr3ts0n.pvs +PvListener:com.fr3ts0n.pvs.PvList[null]->com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f
2023-03-19  16:46:33.423    FINE    AndrOBD Adapter: android.bluetooth.BluetoothAdapter@8bec2b5
2023-03-19  16:46:33.504    INFO    AndrOBD Conversion: metric
2023-03-19  16:46:40.773    FINE    BtDeviceListActivity    Sending Result...
2023-03-19  16:46:40.811    FINE    CommService connect to: 00:10:CC:4F:36:03
2023-03-19  16:46:40.812    FINE    CommService setState() NONE -> CONNECTING
2023-03-19  16:46:40.817    INFO    CommService BT socket - UUIDs:00001101-0000-1000-8000-00805f9b34fb,
2023-03-19  16:46:40.819    INFO    CommService BEGIN mBtConnectThread SocketType:Insecure
2023-03-19  16:46:40.820    FINE    CommService Connect BT socket
2023-03-19  16:46:40.942    FINE    CommService connected, Socket Type:Insecure
2023-03-19  16:46:40.942    FINE    CommService create BtWorkerThread: Insecure
2023-03-19  16:46:40.943    INFO    CommService BEGIN mBtWorkerThread
2023-03-19  16:46:40.943    INFO    stream  RX Thread started
2023-03-19  16:46:40.944    FINE    CommService setState() CONNECTING -> CONNECTED
2023-03-19  16:46:40.953    WARNING stream  com.fr3ts0n.prot.StreamHandler@d59e04f RX: End of stream!
2023-03-19  16:46:40.953    INFO    stream  RX Thread stopped
2023-03-19  16:46:40.953    FINE    CommService stop
2023-03-19  16:46:40.954    INFO    CommService Closing BT socket
2023-03-19  16:46:40.954    FINE    CommService setState() CONNECTED -> OFFLINE
2023-03-19  16:46:40.955    FINE    CommService setState() OFFLINE -> OFFLINE
2023-03-19  16:46:40.961    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:46:40.961    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:46:40.962    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:46:40.962    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:46:40.962    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:46:40.962    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:46:40.963    FINE    com.fr3ts0n.prot    com.fr3ts0n.ecu.prot.obd.ElmProt@e9abc99 TX:'ATZ'
2023-03-19  16:46:40.963    FINER   com.fr3ts0n.prot    com.fr3ts0n.ecu.prot.obd.ElmProt@e9abc99 TX:41 54 5A  : ATZ
2023-03-19  16:47:40.425    FINE    com.fr3ts0n.prot    ELM command 'ATZ' -> disabled
2023-03-19  16:47:40.426    FINE    com.fr3ts0n.prot    ELM command 'ATWS' -> enabled
2023-03-19  16:47:40.426    FINE    com.fr3ts0n.prot    ELM command 'ATPC' -> enabled
2023-03-19  16:47:40.426    FINE    com.fr3ts0n.prot    ELM command 'ATD' -> enabled
2023-03-19  16:47:40.427    FINE    com.fr3ts0n.prot    ELM command 'ATI' -> enabled
2023-03-19  16:47:40.427    FINE    com.fr3ts0n.prot    ELM command 'ATLP' -> enabled
2023-03-19  16:47:40.427    FINE    com.fr3ts0n.prot    ELM command 'ATE' -> enabled
2023-03-19  16:47:40.428    FINE    com.fr3ts0n.prot    ELM command 'ATL' -> enabled
2023-03-19  16:47:40.428    FINE    com.fr3ts0n.prot    ELM command 'ATS' -> enabled
2023-03-19  16:47:40.428    FINE    com.fr3ts0n.prot    ELM command 'ATH' -> enabled
2023-03-19  16:47:40.429    FINE    com.fr3ts0n.prot    ELM command 'ATDP' -> enabled
2023-03-19  16:47:40.429    FINE    com.fr3ts0n.prot    ELM command 'ATSP' -> enabled
2023-03-19  16:47:40.429    FINE    com.fr3ts0n.prot    ELM command 'ATMA' -> enabled
2023-03-19  16:47:40.430    FINE    com.fr3ts0n.prot    ELM command 'ATSPA' -> enabled
2023-03-19  16:47:40.430    FINE    com.fr3ts0n.prot    ELM command 'ATAT' -> enabled
2023-03-19  16:47:40.430    FINE    com.fr3ts0n.prot    ELM command 'ATST' -> enabled
2023-03-19  16:47:40.431    FINE    com.fr3ts0n.prot    ELM command 'ATSH' -> enabled
2023-03-19  16:47:40.431    FINE    com.fr3ts0n.prot    ELM command 'ATCRA' -> enabled
2023-03-19  16:47:40.431    FINE    com.fr3ts0n.prot    ELM command 'ATCRA' -> enabled
2023-03-19  16:47:47.226    FINE    BtDeviceListActivity    Sending Result...
2023-03-19  16:47:47.256    FINE    CommService connect to: 00:10:CC:4F:36:03
2023-03-19  16:47:47.257    FINE    CommService setState() NONE -> CONNECTING
2023-03-19  16:47:47.260    INFO    CommService BT socket - UUIDs:00001101-0000-1000-8000-00805f9b34fb,
2023-03-19  16:47:47.261    INFO    CommService BEGIN mBtConnectThread SocketType:Insecure
2023-03-19  16:47:47.262    FINE    CommService Connect BT socket
2023-03-19  16:47:49.042    FINE    CommService connected, Socket Type:Insecure
2023-03-19  16:47:49.043    FINE    CommService create BtWorkerThread: Insecure
2023-03-19  16:47:49.046    INFO    CommService BEGIN mBtWorkerThread
2023-03-19  16:47:49.046    INFO    stream  RX Thread started
2023-03-19  16:47:49.048    FINE    CommService setState() CONNECTING -> CONNECTED
2023-03-19  16:47:49.051    WARNING stream  com.fr3ts0n.prot.StreamHandler@3c69471 RX: End of stream!
2023-03-19  16:47:49.052    INFO    stream  RX Thread stopped
2023-03-19  16:47:49.053    FINE    CommService stop
2023-03-19  16:47:49.053    INFO    CommService Closing BT socket
2023-03-19  16:47:49.054    FINE    CommService setState() CONNECTED -> OFFLINE
2023-03-19  16:47:49.055    FINE    CommService setState() OFFLINE -> OFFLINE
2023-03-19  16:47:49.067    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:47:49.068    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:47:49.068    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:47:49.069    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:47:49.069    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:47:49.069    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:47:49.070    FINE    com.fr3ts0n.prot    com.fr3ts0n.ecu.prot.obd.ElmProt@e9abc99 TX:'ATI'
2023-03-19  16:47:49.070    FINER   com.fr3ts0n.prot    com.fr3ts0n.ecu.prot.obd.ElmProt@e9abc99 TX:41 54 49  : ATI
2023-03-19  16:48:50.175    FINE    com.fr3ts0n.prot    ELM command 'ATZ' -> disabled
2023-03-19  16:48:50.176    FINE    com.fr3ts0n.prot    ELM command 'ATWS' -> enabled
2023-03-19  16:48:50.177    FINE    com.fr3ts0n.prot    ELM command 'ATPC' -> enabled
2023-03-19  16:48:50.177    FINE    com.fr3ts0n.prot    ELM command 'ATD' -> enabled
2023-03-19  16:48:50.177    FINE    com.fr3ts0n.prot    ELM command 'ATI' -> disabled
2023-03-19  16:48:50.178    FINE    com.fr3ts0n.prot    ELM command 'ATLP' -> enabled
2023-03-19  16:48:50.178    FINE    com.fr3ts0n.prot    ELM command 'ATE' -> enabled
2023-03-19  16:48:50.178    FINE    com.fr3ts0n.prot    ELM command 'ATL' -> enabled
2023-03-19  16:48:50.179    FINE    com.fr3ts0n.prot    ELM command 'ATS' -> enabled
2023-03-19  16:48:50.180    FINE    com.fr3ts0n.prot    ELM command 'ATH' -> enabled
2023-03-19  16:48:50.180    FINE    com.fr3ts0n.prot    ELM command 'ATDP' -> enabled
2023-03-19  16:48:50.180    FINE    com.fr3ts0n.prot    ELM command 'ATSP' -> enabled
2023-03-19  16:48:50.181    FINE    com.fr3ts0n.prot    ELM command 'ATMA' -> enabled
2023-03-19  16:48:50.181    FINE    com.fr3ts0n.prot    ELM command 'ATSPA' -> enabled
2023-03-19  16:48:50.182    FINE    com.fr3ts0n.prot    ELM command 'ATAT' -> enabled
2023-03-19  16:48:50.182    FINE    com.fr3ts0n.prot    ELM command 'ATST' -> enabled
2023-03-19  16:48:50.183    FINE    com.fr3ts0n.prot    ELM command 'ATSH' -> enabled
2023-03-19  16:48:50.184    FINE    com.fr3ts0n.prot    ELM command 'ATCRA' -> enabled
2023-03-19  16:48:50.184    FINE    com.fr3ts0n.prot    ELM command 'ATCRA' -> enabled
2023-03-19  16:48:54.259    FINE    BtDeviceListActivity    Sending Result...
2023-03-19  16:48:54.290    FINE    CommService connect to: 00:10:CC:4F:36:03
2023-03-19  16:48:54.292    FINE    CommService setState() NONE -> CONNECTING
2023-03-19  16:48:54.296    INFO    CommService BT socket - UUIDs:00001101-0000-1000-8000-00805f9b34fb,
2023-03-19  16:48:54.297    INFO    CommService BEGIN mBtConnectThread SocketType:Insecure
2023-03-19  16:48:54.298    FINE    CommService Connect BT socket
2023-03-19  16:48:54.611    FINE    CommService connected, Socket Type:Insecure
2023-03-19  16:48:54.612    FINE    CommService create BtWorkerThread: Insecure
2023-03-19  16:48:54.613    INFO    CommService BEGIN mBtWorkerThread
2023-03-19  16:48:54.613    INFO    stream  RX Thread started
2023-03-19  16:48:54.615    FINE    CommService setState() CONNECTING -> CONNECTED
2023-03-19  16:48:54.647    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:48:54.648    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:48:54.649    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:48:54.649    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:48:54.649    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:48:54.649    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:48:54.674    WARNING stream  com.fr3ts0n.prot.StreamHandler@d59489b RX: End of stream!
2023-03-19  16:48:54.676    INFO    stream  RX Thread stopped
2023-03-19  16:48:54.676    FINE    CommService stop
2023-03-19  16:48:54.677    INFO    CommService Closing BT socket
2023-03-19  16:48:54.677    FINE    CommService setState() CONNECTED -> OFFLINE
2023-03-19  16:48:54.678    FINE    CommService setState() OFFLINE -> OFFLINE
2023-03-19  16:49:58.151    FINE    com.fr3ts0n.prot    ELM command 'ATZ' -> disabled
2023-03-19  16:49:58.152    FINE    com.fr3ts0n.prot    ELM command 'ATWS' -> enabled
2023-03-19  16:49:58.152    FINE    com.fr3ts0n.prot    ELM command 'ATPC' -> enabled
2023-03-19  16:49:58.152    FINE    com.fr3ts0n.prot    ELM command 'ATD' -> enabled
2023-03-19  16:49:58.153    FINE    com.fr3ts0n.prot    ELM command 'ATI' -> enabled
2023-03-19  16:49:58.153    FINE    com.fr3ts0n.prot    ELM command 'ATLP' -> enabled
2023-03-19  16:49:58.153    FINE    com.fr3ts0n.prot    ELM command 'ATE' -> enabled
2023-03-19  16:49:58.153    FINE    com.fr3ts0n.prot    ELM command 'ATL' -> enabled
2023-03-19  16:49:58.154    FINE    com.fr3ts0n.prot    ELM command 'ATS' -> enabled
2023-03-19  16:49:58.154    FINE    com.fr3ts0n.prot    ELM command 'ATH' -> enabled
2023-03-19  16:49:58.154    FINE    com.fr3ts0n.prot    ELM command 'ATDP' -> enabled
2023-03-19  16:49:58.155    FINE    com.fr3ts0n.prot    ELM command 'ATSP' -> enabled
2023-03-19  16:49:58.155    FINE    com.fr3ts0n.prot    ELM command 'ATMA' -> enabled
2023-03-19  16:49:58.155    FINE    com.fr3ts0n.prot    ELM command 'ATSPA' -> enabled
2023-03-19  16:49:58.156    FINE    com.fr3ts0n.prot    ELM command 'ATAT' -> enabled
2023-03-19  16:49:58.156    FINE    com.fr3ts0n.prot    ELM command 'ATST' -> enabled
2023-03-19  16:49:58.156    FINE    com.fr3ts0n.prot    ELM command 'ATSH' -> enabled
2023-03-19  16:49:58.157    FINE    com.fr3ts0n.prot    ELM command 'ATCRA' -> enabled
2023-03-19  16:49:58.157    FINE    com.fr3ts0n.prot    ELM command 'ATCRA' -> enabled
2023-03-19  16:50:02.811    FINE    BtDeviceListActivity    Sending Result...
2023-03-19  16:50:02.860    FINE    CommService connect to: 00:10:CC:4F:36:03
2023-03-19  16:50:02.862    FINE    CommService setState() NONE -> CONNECTING
2023-03-19  16:50:02.865    INFO    CommService BT socket - UUIDs:00001101-0000-1000-8000-00805f9b34fb,
2023-03-19  16:50:02.868    INFO    CommService BEGIN mBtConnectThread SocketType:Insecure
2023-03-19  16:50:02.870    FINE    CommService Connect BT socket
2023-03-19  16:50:03.187    FINE    CommService connected, Socket Type:Insecure
2023-03-19  16:50:03.188    FINE    CommService create BtWorkerThread: Insecure
2023-03-19  16:50:03.189    INFO    CommService BEGIN mBtWorkerThread
2023-03-19  16:50:03.189    INFO    stream  RX Thread started
2023-03-19  16:50:03.191    FINE    CommService setState() CONNECTING -> CONNECTED
2023-03-19  16:50:03.197    WARNING stream  com.fr3ts0n.prot.StreamHandler@7ef9b90 RX: End of stream!
2023-03-19  16:50:03.198    INFO    stream  RX Thread stopped
2023-03-19  16:50:03.198    FINE    CommService stop
2023-03-19  16:50:03.199    INFO    CommService Closing BT socket
2023-03-19  16:50:03.199    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:50:03.199    FINE    CommService setState() CONNECTED -> OFFLINE
2023-03-19  16:50:03.199    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:50:03.200    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:50:03.200    FINE    CommService setState() OFFLINE -> OFFLINE
2023-03-19  16:50:03.200    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:50:03.201    FINER   com.fr3ts0n.pvs PvChange:32:null=null
2023-03-19  16:50:03.202    FINER   com.fr3ts0n.pvs Notify:com.fr3ts0n.ecu.gui.androbd.MainActivity@bf0ec3f=33
2023-03-19  16:50:03.202    FINE    com.fr3ts0n.prot    com.fr3ts0n.ecu.prot.obd.ElmProt@e9abc99 TX:'ATI'
2023-03-19  16:50:03.203    FINER   com.fr3ts0n.prot    com.fr3ts0n.ecu.prot.obd.ElmProt@e9abc99 TX:41 54 49  : ATI
2023-03-19  16:50:34.207    FINE    com.fr3ts0n.prot    ELM command 'ATZ' -> disabled
2023-03-19  16:50:34.208    FINE    com.fr3ts0n.prot    ELM command 'ATWS' -> enabled
2023-03-19  16:50:34.208    FINE    com.fr3ts0n.prot    ELM command 'ATPC' -> enabled
2023-03-19  16:50:34.209    FINE    com.fr3ts0n.prot    ELM command 'ATD' -> enabled
2023-03-19  16:50:34.209    FINE    com.fr3ts0n.prot    ELM command 'ATI' -> disabled
2023-03-19  16:50:34.209    FINE    com.fr3ts0n.prot    ELM command 'ATLP' -> enabled
2023-03-19  16:50:34.209    FINE    com.fr3ts0n.prot    ELM command 'ATE' -> enabled
2023-03-19  16:50:34.210    FINE    com.fr3ts0n.prot    ELM command 'ATL' -> enabled
2023-03-19  16:50:34.210    FINE    com.fr3ts0n.prot    ELM command 'ATS' -> enabled
2023-03-19  16:50:34.210    FINE    com.fr3ts0n.prot    ELM command 'ATH' -> enabled
2023-03-19  16:50:34.211    FINE    com.fr3ts0n.prot    ELM command 'ATDP' -> enabled
2023-03-19  16:50:34.211    FINE    com.fr3ts0n.prot    ELM command 'ATSP' -> enabled
2023-03-19  16:50:34.211    FINE    com.fr3ts0n.prot    ELM command 'ATMA' -> enabled
2023-03-19  16:50:34.211    FINE    com.fr3ts0n.prot    ELM command 'ATSPA' -> enabled
2023-03-19  16:50:34.212    FINE    com.fr3ts0n.prot    ELM command 'ATAT' -> enabled
2023-03-19  16:50:34.212    FINE    com.fr3ts0n.prot    ELM command 'ATST' -> enabled
2023-03-19  16:50:34.212    FINE    com.fr3ts0n.prot    ELM command 'ATSH' -> enabled
2023-03-19  16:50:34.213    FINE    com.fr3ts0n.prot    ELM command 'ATCRA' -> enabled
2023-03-19  16:50:34.213    FINE    com.fr3ts0n.prot    ELM command 'ATCRA' -> enabled

Log detail level

INFO/FINER

Important details on your environment:

Tested on

Additional context

The adapter seems to be a v2.1 v1.5 clone that after my research seems to be capable of BLE, which could be a problem if it is not backward compatible? It was bought on CDON. But the seller does not provide a lot of information. The device is though very similar to this one which specifies that "make sure to select in settings, "Connection type": Bluetooth 4.0 (LE)". As mentioned by @fr3ts0n in the telegram group this might require a "BLE specific comms module". I am thinking a command to enable BT version 1.x, 2.x or 3.x mode of some sort might also work... After connecting to the device in Bluetooth settings it does not show up as connected but instead you can see the scanner and it's MAC address in "Previously connected devices". Though it works without any issues on the other apps this way...

Any ideas?

Update 1. After some further testing with other apps like "Car Scanner" and "Torque" it seems like the device is not a BLE/Bluetooth 4.x device. In "Car Scanner" you can choose between BLE/Bluetooth 4.x or traditional BT and the device is only visible using the traditional BT setting. It is also possible to observe the OBD2 adapter blink once on AndrOBD original settings, but when disabling ATZ, ATLP and ATI it blinks a couple of times.

DevelLevel commented 1 year ago

(Accidentally closed the issue...) HCI Snoop log files from the android device trying to connect: Bluetooth_starting.log Car_Scanner-working.log AndrOBD-not_working-with_ATZ.log AndrOBD-not_working-without_ATZ.log

fr3ts0n commented 1 year ago

I do have a similar / equal adapter available (also reports ELM V1.5), but unfortunately I can not reproduce the problem with this.

The only obvious thing I could find in the HCI Snoop files is some difference in the signal timing:

There is a chance that the adapter needs some preparation time when it can not take any command too early after connection is established. I will create a test version which includes a delay like this ...

fr3ts0n commented 1 year ago

Test version V2.6.4 is available here: https://t.me/AndrOBD_dev/251

DevelLevel commented 1 year ago

Test version V2.6.4 is available here: https://t.me/AndrOBD_dev/251

Thanks for the update, unfortunately it does not seem to work. Maybe even worse? (The adapter does not return "ELM327 v1.5") Here are some new HCI Snoop logs if they might help: AndrOBD_2.6.4-not_working-with_ATZ.log AndrOBD_2.6.4-not_working-without_ATZ.log Car_Scanner-working(2).log Torque-working.log

I haven't worked with Snoop logs before but from what I can see there seems to be a differences between AndrOBD and CS/TQ. The frame the phone sends right after the adapter responds with "ELM327" includes ATE0. (Frame 191 in Torque-working.log & 286 in Car_Scanner-working(2).log) Car Scanner even seems to be sending ATE0 before receiving the "ELM327" response... (Frame 282 in Car_Scanner-working(2).log) Could this have something to do with it?

fr3ts0n commented 1 year ago

You can.open hci logs with wireshark for Analysis.We are much earlier than sending ATE command. It seems to happen before the First command is sent.