I am not able to connect to the OBD-2, when i tried with this code val connected = ObdInitSequence.run(mmSocket!!) I am getting null over here var cmd = OBDCommand(initPid).setIgnoreResult(true).run(inputStream, outputStream)