{"id":20253078,"url":"https://github.com/tomiwa-ot/obd","last_synced_at":"2025-04-10T23:27:07.056Z","repository":{"id":177930442,"uuid":"655324440","full_name":"Tomiwa-Ot/obd","owner":"Tomiwa-Ot","description":"Android library for getting vehicle diagnostics from ELM327 (Bluetooth) connector over OBD protocol","archived":false,"fork":false,"pushed_at":"2025-03-24T16:40:01.000Z","size":689,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T11:55:23.427Z","etag":null,"topics":["android","android-bluetooth","android-java","android-library","android-obd-diagnostics","canbus","elm327","java","obd","obd-ii","obd-port","obd2","on-board-diagnostic"],"latest_commit_sha":null,"homepage":"https://tomiwa-ot.github.io/obd/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tomiwa-Ot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-18T14:59:25.000Z","updated_at":"2025-03-24T16:39:01.000Z","dependencies_parsed_at":"2025-03-24T17:40:09.106Z","dependency_job_id":null,"html_url":"https://github.com/Tomiwa-Ot/obd","commit_stats":null,"previous_names":["tomiwa-ot/obd"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomiwa-Ot%2Fobd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomiwa-Ot%2Fobd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomiwa-Ot%2Fobd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomiwa-Ot%2Fobd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tomiwa-Ot","download_url":"https://codeload.github.com/Tomiwa-Ot/obd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248313989,"owners_count":21082961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-bluetooth","android-java","android-library","android-obd-diagnostics","canbus","elm327","java","obd","obd-ii","obd-port","obd2","on-board-diagnostic"],"created_at":"2024-11-14T10:21:17.830Z","updated_at":"2025-04-10T23:27:07.047Z","avatar_url":"https://github.com/Tomiwa-Ot.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java OBD\nAndroid library for getting vehicle diagnostics from ELM327 (USB/Bluetooth) connector over OBD protocol.\n\n### Basic Usage\n```java\n// For USB connections\nObd obd = new Obd(getApplicationContext());\n\n// For bluetooth connections\nfinal UUID SPP_UUID = UUID.fromString(\"00001101-0000-1000-8000-00805F9B34FB\");\n// NB: BluetoothDevice device\nObd obd = new Obd(device.createRfcommSocketToServiceRecord(SPP_UUID), getApplicationContext());\n\n// Enable/disable headers\nobd.enableHeaders(true);\n\n// Get device ID\nString deviceId = obd.sendCommand(AT.DEVICE_IDENTIFICATION);\n\n// Get engine coolant temperature\nString engineCoolantTemperature = obd.sendCommand(Mode01.ENGINE_COOLANT_TEMPERATURE);\n\n// Get vehicle speed (km/h)\ndouble speed = obd.getVehicleSpeed();\n\n// Get engine oil temperature (°C)\ndouble oilTemperature = obd.getEngineOilTemperature();\n\n// Register asynchronous requests\nMap\u003cString, AsyncCommand\u003cint\u003e\u003e commands = new HashMap\u003cString, AsyncCommand\u003cint\u003e\u003e();\ncommands.put(\"Ethanol fuel\", new AsyncCommand(Mode01.ETHANOL_FUEL));\n\n// Declare outside class or different file\nclass MyCallback\u003cT\u003e implements AsyncCallback {\n    public T run(Object... params) {\n        // Your implementation\n    }\n}\n\ncommands.put(\"ECU name\", new AsyncCommand(Mode09.ECU_NAME, new MyCallback\u003cint\u003e(), new Object[]{}));\n\nAsyncObd async = new AsyncObd(obd, commands, false);\nThread thread = new Thread(async);\nthread.start();\n\nString response = commads.get(\"ECU name\").getResponse(); // Get OBD response\nboolean isCallbackNull = commads.get(\"ECU name\").isCallbackNull(); // Check if async command has callback\nObject callbackResult = commads.get(\"ECU name\").getCallbackResult(); // Get callback output\nasync.stopExecuting() // To terminate thread\n```\n\n### Installation\n- Add maven support to ```settings.gradle``` or project level ```build.gradle```\n  \n  ```\n  repositories {\n\t        ...\n\t        mavenCentral()\n\t        maven { url 'https://jitpack.io' }\n\t    }\t\n  ```\n- Add dependency to app level build.gradle\n\n  ```\n  dependencies {\n\t        implementation 'com.github.Tomiwa-Ot.obd:obd:1.24'\n\t}\n  ```\n  \n### Documentation\nhttps://github.com/Tomiwa-Ot/obd/wiki\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomiwa-ot%2Fobd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomiwa-ot%2Fobd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomiwa-ot%2Fobd/lists"}