feat(obd): W5-OBD-PR1 — Native Handshake + Supported PID Discovery#88
Open
selimmujdeci wants to merge 2 commits into
Open
feat(obd): W5-OBD-PR1 — Native Handshake + Supported PID Discovery#88selimmujdeci wants to merge 2 commits into
selimmujdeci wants to merge 2 commits into
Conversation
performHandshake() Android tarafında implement edilmemişti → guard hep false, handshake gerçek araçta ASLA çalışmıyordu. Bu PR native el sıkışması katmanını tamamlar (yalnız handshake — poll zinciri regresyonsuz, fail-soft). Native (Java): - ElmProtocol.performHandshakeRaw(): 0902 (VIN) + 0100 → süreklilik-bit'i set ise 0120/0140/0160/0180/01A0. Desteklenmeyen blok HİÇ sorulmaz (NO-DATA fırtınası yok). HAM yanıt döner (parse YOK — tek doğruluk kaynağı TS). safeSend ile her sorgu fail-soft: hiçbir exception dışarı sızmaz. - OBDManager/BleObdManager.performHandshake(): USER önceliği, tek atomik kuyruk görevi (araya poll komutu girmez). - CarLauncherPlugin.performHandshake(): ayrı thread → raw09..raw01A0 döner. TS (pure, test edilebilir): - OBDHandshake: çok-bloklu bitmap parse (PID 1–192), readBlocks kanıtı, classifyHandshakeResponse (NO DATA / TIMEOUT / UNSUPPORTED ayrı — sessiz yutma yok), buildHandshakeResult tüm blokları birleştirir (fail-soft). - obdPidConfig.refinePidList: capability-güdümlü poll listesi. Zero-trust + fail-soft: kanıt yoksa taban AYNEN; okunan blokta desteklenmeyen PID elenir; PID 2F (yakıt) bitmap kanıtıyla oto-aktive (statik kara liste kalktı). - obdService: handshake tüm blokları tüketir, capability'yi saklar (sonraki reconnect refinePidList kullanır), timeout türlerini loglar. Test: 14 yeni test (bitmap parse, desteklenen/desteklenmeyen PID, 2F capability, VIN oku + fail-soft, exception yok, timeout ayrımı, saf/mutasyonsuz, regresyon). Full suite 3834 yeşil · tsc temiz · lint temiz · production build OK. Ledger: 🔴 — gerçek araçta VIN/bitmap keşfi henüz doğrulanmadı. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RhFEghmLgYKdggregKbRmb
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RhFEghmLgYKdggregKbRmb
This was referenced Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Amaç
performHandshake()Android tarafında hiç implement edilmemişti (grepkanıtı:CarLauncherPlugin.java'da eşleşme yok) →if (CarLauncher.performHandshake)guard'ı native'de hepfalse→ el sıkışması gerçek araçta ASLA çalışmıyordu. VIN okunmuyor, desteklenen-PID bitmap keşfi yapılamıyordu.Bu PR yalnız Native Handshake katmanını tamamlar. Poll zinciri regresyonsuz, fail-soft, atomik.
Değişiklikler
Native (Java)
ElmProtocol.performHandshakeRaw():0902(VIN) +0100; süreklilik-bit'i set ise0120/0140/0160/0180/01A0. Desteklenmeyen blok hiç sorulmaz (NO-DATA fırtınası yok). HAM yanıt döner — parse yok (tek doğruluk kaynağı TS).safeSendile her sorgu fail-soft, hiçbir exception dışarı sızmaz.OBDManager/BleObdManager.performHandshake(): USER önceliği, tek atomik kuyruk görevi (araya poll komutu girmez).CarLauncherPlugin.performHandshake(): ayrı thread →raw09..raw01A0döner.TS (pure, test edilebilir)
OBDHandshake: çok-bloklu bitmap parse (PID 1–192),readBlockskanıtı,classifyHandshakeResponse(NO DATA / TIMEOUT / UNSUPPORTED ayrı — sessiz yutma yok),buildHandshakeResultfail-soft.obdPidConfig.refinePidList: capability-güdümlü poll listesi. Zero-trust + fail-soft — kanıt yoksa taban AYNEN; okunan blokta desteklenmeyen PID elenir; PID 2F (yakıt) bitmap kanıtıyla oto-aktive (statik kara liste kalktı, varsayım yok).obdService: handshake tüm blokları tüketir, capability'yi saklar (sonraki reconnectrefinePidListkullanır), timeout türlerini loglar.Test / CI (yerel)
tsc -btemiz · ESLint temiz · production build OK.Çözülen blocker
performHandshake()implement edildi (VIN + supported-PID bitmap keşfi).Kalan blocker
Ledger
🔴 — kabul ölçütü: gerçek araçta
[OBD:Handshake]logu VIN/bitmap/2F destekli göstermeli; sonraki reconnect'te 2F poll'a girmeli.🤖 Generated with Claude Code