Archived
fix(obd): the Accent TCU block was truncated by flow control, not wrong
Reverts the mode change fromf86de06. Mode 21, PID A0 and header 7E1 were all correct — as the awesomeit profile says and as this car was observed doing. What was missing is flow control. Every one of the 115 logged replies was 61A0FFFF0000, exactly six bytes. That is not a short answer, it is the payload size of an ISO-TP First Frame: two PCI bytes plus exactly six data bytes, with the rest carried in consecutive frames that never arrived. The ECU was sending the whole block; only the first frame got through. Two things corroborate it. Multi-frame from 7E0 works fine on this setup — 21 03 returns 63 bytes and 21 01 returns 41 — so the reassembly path is sound and only 7E1 truncates, which is what a stalled flow-control negotiation looks like when an ELM327's automatic handling does not cover a non-default address. And the Carnival YP log sets ATFCSH7E1 explicitly before querying 7E1; its reply 6201A0FFFF84... shares the FF FF prefix with the Accent's 61A0FFFF0000, so both are the same block, one complete and one cut off at the first frame. Keep the flow control pre_commands added inf86de06and put the mode and PID back to 21 / A0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f86de06da4
commit
407800d0cd
1 file changed
+22
-22
+22
-22
@@ -322,27 +322,27 @@ templates:
|
|||||||
# 7F 22 22로 거부하므로 다른 DID를 더 뒤져볼 이유가 약하고, 표준 01A6은
|
# 7F 22 22로 거부하므로 다른 DID를 더 뒤져볼 이유가 약하고, 표준 01A6은
|
||||||
# mode 01 지원 목록에 없어 예상대로였다. 위 offset_value 보정을 계속 쓴다.
|
# mode 01 지원 목록에 없어 예상대로였다. 위 offset_value 보정을 계속 쓴다.
|
||||||
|
|
||||||
# ── 변속기(TCU) @ 7E1 — mode 22 로 재시도 ──────────────────────────
|
# ── 변속기(TCU) 21 A0 @ 7E1 ───────────────────────────────────────
|
||||||
# awesomeit 프로필의 21 A0 (mode 21)은 이 차에서 스텁만 돌려준다.
|
# 바이트 위치·모드·헤더 전부 awesomeit 엑센트RB 2013 D 1.6 TCI-U2 프로필 그대로다.
|
||||||
# 실측 115건이 전부 61A0FFFF0000 — 에코를 뺀 데이터가 4바이트(FF FF 00 00)
|
# N(byte 13) 미션오일온도, U(byte 20) 기어위치, V(byte 21) 기어단수
|
||||||
# 고정이라, 프로필이 읽는 byte 13/20/21 은 전부 범위 밖이었다.
|
|
||||||
# 헤더(7E1)도 파싱도 문제가 아니었고, 서비스 모드가 달랐던 것이다.
|
|
||||||
#
|
#
|
||||||
# 카니발(YP F/L 2018) 진단 로그에서 같은 7E1 에 대해:
|
# 값이 안 나오던 원인은 흐름제어였다. 실측 응답이 115건 전부 61A0FFFF0000 —
|
||||||
# 21 A0 → 7F 21 11 (serviceNotSupported)
|
# 정확히 6바이트인데, 이건 ISO-TP First Frame 이 담는 데이터 크기와 같다
|
||||||
# 22 01A0 → 6201A0 FF FF 84 00 00 00 00 13 … (42바이트 멀티프레임)
|
# (FF = PCI 2바이트 + 데이터 6바이트, 나머지는 CF 로 이어진다).
|
||||||
# 엑센트의 21A0 응답도 FF FF 로 시작하는 걸 보면 같은 블록의 축약본이고,
|
# 즉 ECU 는 전체 블록을 보내려 FF 를 띄웠는데 CF 가 한 개도 오지 않은,
|
||||||
# 실제 내용은 mode 22 쪽에 있는 것으로 보인다. awesomeit 의 21A0 은
|
# 잘린 응답이었다. 단순히 짧은 Single Frame 이 아니다.
|
||||||
# 더 구형 TCU 세대 기준이었을 가능성이 크다.
|
|
||||||
#
|
#
|
||||||
# 바이트 위치는 awesomeit 프로필 그대로 두고 모드만 바꿔 확인한다.
|
# 방증 둘:
|
||||||
# 응답이 짧으면 decode 가 null 을 돌려주므로 값이 안 올라올 뿐 안전하다.
|
# - 7E0 의 멀티프레임은 잘 받는다 (2103 63바이트, 2101 41바이트).
|
||||||
# 흐름제어는 카니발 로그가 7E1 조회 전에 설정한 것과 동일하게 맞췄다.
|
# 7E1 만 FF 에서 잘리는 건 ELM327 자동 흐름제어가 기본 주소 밖에서
|
||||||
# raw=6201A0FFFF84… → 성공. 세 값이 맞는지 기어를 바꿔가며 확인할 것
|
# 동작하지 않는 전형적인 증상이다.
|
||||||
# NO DATA / 7F → 이 차 TCU 에는 없는 것으로 확정하고 셋 다 지운다
|
# - 카니발 YP 진단 로그도 7E1 조회 전에 ATFCSH7E1 을 명시적으로 설정한다.
|
||||||
|
# 그 응답 6201A0FFFF84… 는 엑센트의 61A0FFFF0000 과 FF FF 접두까지 같다.
|
||||||
|
#
|
||||||
|
# 그래서 헤더 지정만으로는 부족하고 흐름제어를 함께 설정해야 한다.
|
||||||
- key: trans_oil_temp
|
- key: trans_oil_temp
|
||||||
mode: "22"
|
mode: "21"
|
||||||
pid: "01A0"
|
pid: "A0"
|
||||||
pre_commands: ["ATSH7E1", "ATFCSH7E1", "ATFCSD300000", "ATFCSM1"]
|
pre_commands: ["ATSH7E1", "ATFCSH7E1", "ATFCSD300000", "ATFCSM1"]
|
||||||
decode: { offset: 13, length: 1, type: uint8, offset_value: -40 }
|
decode: { offset: 13, length: 1, type: uint8, offset_value: -40 }
|
||||||
unit: "°C"
|
unit: "°C"
|
||||||
@@ -353,8 +353,8 @@ templates:
|
|||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
update_interval: 20s
|
update_interval: 20s
|
||||||
- key: gear_position
|
- key: gear_position
|
||||||
mode: "22"
|
mode: "21"
|
||||||
pid: "01A0"
|
pid: "A0"
|
||||||
pre_commands: ["ATSH7E1", "ATFCSH7E1", "ATFCSD300000", "ATFCSM1"]
|
pre_commands: ["ATSH7E1", "ATFCSH7E1", "ATFCSD300000", "ATFCSM1"]
|
||||||
platform: text_sensor
|
platform: text_sensor
|
||||||
icon: mdi:car-shift-pattern
|
icon: mdi:car-shift-pattern
|
||||||
@@ -372,8 +372,8 @@ templates:
|
|||||||
"16": "E Mode"
|
"16": "E Mode"
|
||||||
update_interval: 2s
|
update_interval: 2s
|
||||||
- key: gear
|
- key: gear
|
||||||
mode: "22"
|
mode: "21"
|
||||||
pid: "01A0"
|
pid: "A0"
|
||||||
pre_commands: ["ATSH7E1", "ATFCSH7E1", "ATFCSD300000", "ATFCSM1"]
|
pre_commands: ["ATSH7E1", "ATFCSH7E1", "ATFCSD300000", "ATFCSM1"]
|
||||||
platform: text_sensor
|
platform: text_sensor
|
||||||
icon: mdi:numeric
|
icon: mdi:numeric
|
||||||
|
|||||||
Reference in new issue
Block a user