Error running 01 46, response: ...UNABLETOCONNECT
Asked Answered
B

1

3

Getting the data from OBD II simulator to android application via Bluetooth successfully.

Now I am trying get the data from ELM327 device to android application.

I have an ELM327 device connected to my Car. Bluetooth connection happens by ECU connection fails with unable to connect error.

getting below error, D:NetworkManagementSocketTagger: tagSocket(80) with statsTag=0xffffffff, statsUid=-1

E : Failed to run command. -> Error running 01 46, response: ...UNABLETOCONNECT

Could you please help me to resolve this issue.

Byrne answered 8/9, 2020 at 13:10 Comment(2)
Does this help? obd2-elm327.com/obd2-elm327-can-not-connect-ecuAmain
@Amain , Thanks fro you reply. ELM327 is working with another application.Byrne
P
0

i am trying to create an ionic obd-2 application for my university project. i am using "BluetoothSerial" in order to connect with obd simulator i have done all the settings required(that i know of) but i have hit a wall and i dont know what to do next. i connected to the bluetooth device and when is send the "ATZ" commands using bluetoothserial.write(obdcommand) i am getting "OK" can you please share with me how you connected with bluetoothserial or am i missing something...

I will post my code dow below.

    obdcommands=['ATD','ATZ','ATE0','ATL0','ATS0','ATH0','ATAT2','ATSP0','0100', '0105\r', '010C'];

   constructor(private bluetooth:BluetoothSerial,
          private DataSrv:DataSrvService,
          private action:ActionSheetController,
          private permission:AndroidPermissions, 
          private alert: AlertController,
          private toastctrl:ToastController) {
    }

connect(dvc)
{
if(dvc.address=="")
this.showError("No Address");
else{
this.bluetooth.connect(dvc.address).subscribe(success=>
  {
    this.modal.dismiss(null, 'cancel');
    this.presentToast("Connected Successfully");
    this.blue=false;
    this.deviceConnected();
    this.bluetooth.available().then(tr=>{alert(tr)})

    },error=>{
     alert("Connect Error: "+error);
    })

   }

    }
    deviceConnected()
  {
   this.bluetooth.subscribe('\n').subscribe(success=>{

    alert("Subscribed Successfully" +success);


   })

  }

 async searchOBD()
 {
  for(let k=0;k<this.obdcommands.length;k++)
    {
      await this.bluetooth.write(this.obdcommands[k]).then( (success) => {
        alert('Connected: '+this.obdcommands[k]+'Data: '+success );
    },
    (error) => {
        alert('Reading failed: ' + error );
    });

     } 
    }
Pash answered 19/10, 2022 at 1:26 Comment(1)
it is long back and I don't have to remember exactly. Can you find this sample code link.github.com/pires/android-obd-readerByrne

© 2022 - 2024 — McMap. All rights reserved.